{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Redshift.CreateSnapshotCopyGrant
(
CreateSnapshotCopyGrant (..),
newCreateSnapshotCopyGrant,
createSnapshotCopyGrant_kmsKeyId,
createSnapshotCopyGrant_tags,
createSnapshotCopyGrant_snapshotCopyGrantName,
CreateSnapshotCopyGrantResponse (..),
newCreateSnapshotCopyGrantResponse,
createSnapshotCopyGrantResponse_snapshotCopyGrant,
createSnapshotCopyGrantResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateSnapshotCopyGrant = CreateSnapshotCopyGrant'
{
CreateSnapshotCopyGrant -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
CreateSnapshotCopyGrant -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateSnapshotCopyGrant -> Text
snapshotCopyGrantName :: Prelude.Text
}
deriving (CreateSnapshotCopyGrant -> CreateSnapshotCopyGrant -> Bool
(CreateSnapshotCopyGrant -> CreateSnapshotCopyGrant -> Bool)
-> (CreateSnapshotCopyGrant -> CreateSnapshotCopyGrant -> Bool)
-> Eq CreateSnapshotCopyGrant
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSnapshotCopyGrant -> CreateSnapshotCopyGrant -> Bool
$c/= :: CreateSnapshotCopyGrant -> CreateSnapshotCopyGrant -> Bool
== :: CreateSnapshotCopyGrant -> CreateSnapshotCopyGrant -> Bool
$c== :: CreateSnapshotCopyGrant -> CreateSnapshotCopyGrant -> Bool
Prelude.Eq, ReadPrec [CreateSnapshotCopyGrant]
ReadPrec CreateSnapshotCopyGrant
Int -> ReadS CreateSnapshotCopyGrant
ReadS [CreateSnapshotCopyGrant]
(Int -> ReadS CreateSnapshotCopyGrant)
-> ReadS [CreateSnapshotCopyGrant]
-> ReadPrec CreateSnapshotCopyGrant
-> ReadPrec [CreateSnapshotCopyGrant]
-> Read CreateSnapshotCopyGrant
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSnapshotCopyGrant]
$creadListPrec :: ReadPrec [CreateSnapshotCopyGrant]
readPrec :: ReadPrec CreateSnapshotCopyGrant
$creadPrec :: ReadPrec CreateSnapshotCopyGrant
readList :: ReadS [CreateSnapshotCopyGrant]
$creadList :: ReadS [CreateSnapshotCopyGrant]
readsPrec :: Int -> ReadS CreateSnapshotCopyGrant
$creadsPrec :: Int -> ReadS CreateSnapshotCopyGrant
Prelude.Read, Int -> CreateSnapshotCopyGrant -> ShowS
[CreateSnapshotCopyGrant] -> ShowS
CreateSnapshotCopyGrant -> String
(Int -> CreateSnapshotCopyGrant -> ShowS)
-> (CreateSnapshotCopyGrant -> String)
-> ([CreateSnapshotCopyGrant] -> ShowS)
-> Show CreateSnapshotCopyGrant
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSnapshotCopyGrant] -> ShowS
$cshowList :: [CreateSnapshotCopyGrant] -> ShowS
show :: CreateSnapshotCopyGrant -> String
$cshow :: CreateSnapshotCopyGrant -> String
showsPrec :: Int -> CreateSnapshotCopyGrant -> ShowS
$cshowsPrec :: Int -> CreateSnapshotCopyGrant -> ShowS
Prelude.Show, (forall x.
CreateSnapshotCopyGrant -> Rep CreateSnapshotCopyGrant x)
-> (forall x.
Rep CreateSnapshotCopyGrant x -> CreateSnapshotCopyGrant)
-> Generic CreateSnapshotCopyGrant
forall x. Rep CreateSnapshotCopyGrant x -> CreateSnapshotCopyGrant
forall x. CreateSnapshotCopyGrant -> Rep CreateSnapshotCopyGrant x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateSnapshotCopyGrant x -> CreateSnapshotCopyGrant
$cfrom :: forall x. CreateSnapshotCopyGrant -> Rep CreateSnapshotCopyGrant x
Prelude.Generic)
newCreateSnapshotCopyGrant ::
Prelude.Text ->
CreateSnapshotCopyGrant
newCreateSnapshotCopyGrant :: Text -> CreateSnapshotCopyGrant
newCreateSnapshotCopyGrant Text
pSnapshotCopyGrantName_ =
CreateSnapshotCopyGrant' :: Maybe Text -> Maybe [Tag] -> Text -> CreateSnapshotCopyGrant
CreateSnapshotCopyGrant'
{ $sel:kmsKeyId:CreateSnapshotCopyGrant' :: Maybe Text
kmsKeyId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateSnapshotCopyGrant' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotCopyGrantName:CreateSnapshotCopyGrant' :: Text
snapshotCopyGrantName = Text
pSnapshotCopyGrantName_
}
createSnapshotCopyGrant_kmsKeyId :: Lens.Lens' CreateSnapshotCopyGrant (Prelude.Maybe Prelude.Text)
createSnapshotCopyGrant_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> CreateSnapshotCopyGrant -> f CreateSnapshotCopyGrant
createSnapshotCopyGrant_kmsKeyId = (CreateSnapshotCopyGrant -> Maybe Text)
-> (CreateSnapshotCopyGrant
-> Maybe Text -> CreateSnapshotCopyGrant)
-> Lens
CreateSnapshotCopyGrant
CreateSnapshotCopyGrant
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotCopyGrant' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:CreateSnapshotCopyGrant' :: CreateSnapshotCopyGrant -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: CreateSnapshotCopyGrant
s@CreateSnapshotCopyGrant' {} Maybe Text
a -> CreateSnapshotCopyGrant
s {$sel:kmsKeyId:CreateSnapshotCopyGrant' :: Maybe Text
kmsKeyId = Maybe Text
a} :: CreateSnapshotCopyGrant)
createSnapshotCopyGrant_tags :: Lens.Lens' CreateSnapshotCopyGrant (Prelude.Maybe [Tag])
createSnapshotCopyGrant_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSnapshotCopyGrant -> f CreateSnapshotCopyGrant
createSnapshotCopyGrant_tags = (CreateSnapshotCopyGrant -> Maybe [Tag])
-> (CreateSnapshotCopyGrant
-> Maybe [Tag] -> CreateSnapshotCopyGrant)
-> Lens
CreateSnapshotCopyGrant
CreateSnapshotCopyGrant
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotCopyGrant' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateSnapshotCopyGrant' :: CreateSnapshotCopyGrant -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateSnapshotCopyGrant
s@CreateSnapshotCopyGrant' {} Maybe [Tag]
a -> CreateSnapshotCopyGrant
s {$sel:tags:CreateSnapshotCopyGrant' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateSnapshotCopyGrant) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSnapshotCopyGrant -> f CreateSnapshotCopyGrant)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSnapshotCopyGrant
-> f CreateSnapshotCopyGrant
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createSnapshotCopyGrant_snapshotCopyGrantName :: Lens.Lens' CreateSnapshotCopyGrant Prelude.Text
createSnapshotCopyGrant_snapshotCopyGrantName :: (Text -> f Text)
-> CreateSnapshotCopyGrant -> f CreateSnapshotCopyGrant
createSnapshotCopyGrant_snapshotCopyGrantName = (CreateSnapshotCopyGrant -> Text)
-> (CreateSnapshotCopyGrant -> Text -> CreateSnapshotCopyGrant)
-> Lens CreateSnapshotCopyGrant CreateSnapshotCopyGrant Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotCopyGrant' {Text
snapshotCopyGrantName :: Text
$sel:snapshotCopyGrantName:CreateSnapshotCopyGrant' :: CreateSnapshotCopyGrant -> Text
snapshotCopyGrantName} -> Text
snapshotCopyGrantName) (\s :: CreateSnapshotCopyGrant
s@CreateSnapshotCopyGrant' {} Text
a -> CreateSnapshotCopyGrant
s {$sel:snapshotCopyGrantName:CreateSnapshotCopyGrant' :: Text
snapshotCopyGrantName = Text
a} :: CreateSnapshotCopyGrant)
instance Core.AWSRequest CreateSnapshotCopyGrant where
type
AWSResponse CreateSnapshotCopyGrant =
CreateSnapshotCopyGrantResponse
request :: CreateSnapshotCopyGrant -> Request CreateSnapshotCopyGrant
request = Service
-> CreateSnapshotCopyGrant -> Request CreateSnapshotCopyGrant
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CreateSnapshotCopyGrant
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateSnapshotCopyGrant)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateSnapshotCopyGrant))
-> Logger
-> Service
-> Proxy CreateSnapshotCopyGrant
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateSnapshotCopyGrant)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"CreateSnapshotCopyGrantResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe SnapshotCopyGrant -> Int -> CreateSnapshotCopyGrantResponse
CreateSnapshotCopyGrantResponse'
(Maybe SnapshotCopyGrant -> Int -> CreateSnapshotCopyGrantResponse)
-> Either String (Maybe SnapshotCopyGrant)
-> Either String (Int -> CreateSnapshotCopyGrantResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe SnapshotCopyGrant)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SnapshotCopyGrant")
Either String (Int -> CreateSnapshotCopyGrantResponse)
-> Either String Int
-> Either String CreateSnapshotCopyGrantResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateSnapshotCopyGrant
instance Prelude.NFData CreateSnapshotCopyGrant
instance Core.ToHeaders CreateSnapshotCopyGrant where
toHeaders :: CreateSnapshotCopyGrant -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateSnapshotCopyGrant -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateSnapshotCopyGrant where
toPath :: CreateSnapshotCopyGrant -> ByteString
toPath = ByteString -> CreateSnapshotCopyGrant -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateSnapshotCopyGrant where
toQuery :: CreateSnapshotCopyGrant -> QueryString
toQuery CreateSnapshotCopyGrant' {Maybe [Tag]
Maybe Text
Text
snapshotCopyGrantName :: Text
tags :: Maybe [Tag]
kmsKeyId :: Maybe Text
$sel:snapshotCopyGrantName:CreateSnapshotCopyGrant' :: CreateSnapshotCopyGrant -> Text
$sel:tags:CreateSnapshotCopyGrant' :: CreateSnapshotCopyGrant -> Maybe [Tag]
$sel:kmsKeyId:CreateSnapshotCopyGrant' :: CreateSnapshotCopyGrant -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"CreateSnapshotCopyGrant" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
ByteString
"KmsKeyId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
kmsKeyId,
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Tag" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"SnapshotCopyGrantName"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
snapshotCopyGrantName
]
data CreateSnapshotCopyGrantResponse = CreateSnapshotCopyGrantResponse'
{ CreateSnapshotCopyGrantResponse -> Maybe SnapshotCopyGrant
snapshotCopyGrant :: Prelude.Maybe SnapshotCopyGrant,
CreateSnapshotCopyGrantResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateSnapshotCopyGrantResponse
-> CreateSnapshotCopyGrantResponse -> Bool
(CreateSnapshotCopyGrantResponse
-> CreateSnapshotCopyGrantResponse -> Bool)
-> (CreateSnapshotCopyGrantResponse
-> CreateSnapshotCopyGrantResponse -> Bool)
-> Eq CreateSnapshotCopyGrantResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSnapshotCopyGrantResponse
-> CreateSnapshotCopyGrantResponse -> Bool
$c/= :: CreateSnapshotCopyGrantResponse
-> CreateSnapshotCopyGrantResponse -> Bool
== :: CreateSnapshotCopyGrantResponse
-> CreateSnapshotCopyGrantResponse -> Bool
$c== :: CreateSnapshotCopyGrantResponse
-> CreateSnapshotCopyGrantResponse -> Bool
Prelude.Eq, ReadPrec [CreateSnapshotCopyGrantResponse]
ReadPrec CreateSnapshotCopyGrantResponse
Int -> ReadS CreateSnapshotCopyGrantResponse
ReadS [CreateSnapshotCopyGrantResponse]
(Int -> ReadS CreateSnapshotCopyGrantResponse)
-> ReadS [CreateSnapshotCopyGrantResponse]
-> ReadPrec CreateSnapshotCopyGrantResponse
-> ReadPrec [CreateSnapshotCopyGrantResponse]
-> Read CreateSnapshotCopyGrantResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSnapshotCopyGrantResponse]
$creadListPrec :: ReadPrec [CreateSnapshotCopyGrantResponse]
readPrec :: ReadPrec CreateSnapshotCopyGrantResponse
$creadPrec :: ReadPrec CreateSnapshotCopyGrantResponse
readList :: ReadS [CreateSnapshotCopyGrantResponse]
$creadList :: ReadS [CreateSnapshotCopyGrantResponse]
readsPrec :: Int -> ReadS CreateSnapshotCopyGrantResponse
$creadsPrec :: Int -> ReadS CreateSnapshotCopyGrantResponse
Prelude.Read, Int -> CreateSnapshotCopyGrantResponse -> ShowS
[CreateSnapshotCopyGrantResponse] -> ShowS
CreateSnapshotCopyGrantResponse -> String
(Int -> CreateSnapshotCopyGrantResponse -> ShowS)
-> (CreateSnapshotCopyGrantResponse -> String)
-> ([CreateSnapshotCopyGrantResponse] -> ShowS)
-> Show CreateSnapshotCopyGrantResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSnapshotCopyGrantResponse] -> ShowS
$cshowList :: [CreateSnapshotCopyGrantResponse] -> ShowS
show :: CreateSnapshotCopyGrantResponse -> String
$cshow :: CreateSnapshotCopyGrantResponse -> String
showsPrec :: Int -> CreateSnapshotCopyGrantResponse -> ShowS
$cshowsPrec :: Int -> CreateSnapshotCopyGrantResponse -> ShowS
Prelude.Show, (forall x.
CreateSnapshotCopyGrantResponse
-> Rep CreateSnapshotCopyGrantResponse x)
-> (forall x.
Rep CreateSnapshotCopyGrantResponse x
-> CreateSnapshotCopyGrantResponse)
-> Generic CreateSnapshotCopyGrantResponse
forall x.
Rep CreateSnapshotCopyGrantResponse x
-> CreateSnapshotCopyGrantResponse
forall x.
CreateSnapshotCopyGrantResponse
-> Rep CreateSnapshotCopyGrantResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSnapshotCopyGrantResponse x
-> CreateSnapshotCopyGrantResponse
$cfrom :: forall x.
CreateSnapshotCopyGrantResponse
-> Rep CreateSnapshotCopyGrantResponse x
Prelude.Generic)
newCreateSnapshotCopyGrantResponse ::
Prelude.Int ->
CreateSnapshotCopyGrantResponse
newCreateSnapshotCopyGrantResponse :: Int -> CreateSnapshotCopyGrantResponse
newCreateSnapshotCopyGrantResponse Int
pHttpStatus_ =
CreateSnapshotCopyGrantResponse' :: Maybe SnapshotCopyGrant -> Int -> CreateSnapshotCopyGrantResponse
CreateSnapshotCopyGrantResponse'
{ $sel:snapshotCopyGrant:CreateSnapshotCopyGrantResponse' :: Maybe SnapshotCopyGrant
snapshotCopyGrant =
Maybe SnapshotCopyGrant
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateSnapshotCopyGrantResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createSnapshotCopyGrantResponse_snapshotCopyGrant :: Lens.Lens' CreateSnapshotCopyGrantResponse (Prelude.Maybe SnapshotCopyGrant)
createSnapshotCopyGrantResponse_snapshotCopyGrant :: (Maybe SnapshotCopyGrant -> f (Maybe SnapshotCopyGrant))
-> CreateSnapshotCopyGrantResponse
-> f CreateSnapshotCopyGrantResponse
createSnapshotCopyGrantResponse_snapshotCopyGrant = (CreateSnapshotCopyGrantResponse -> Maybe SnapshotCopyGrant)
-> (CreateSnapshotCopyGrantResponse
-> Maybe SnapshotCopyGrant -> CreateSnapshotCopyGrantResponse)
-> Lens
CreateSnapshotCopyGrantResponse
CreateSnapshotCopyGrantResponse
(Maybe SnapshotCopyGrant)
(Maybe SnapshotCopyGrant)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotCopyGrantResponse' {Maybe SnapshotCopyGrant
snapshotCopyGrant :: Maybe SnapshotCopyGrant
$sel:snapshotCopyGrant:CreateSnapshotCopyGrantResponse' :: CreateSnapshotCopyGrantResponse -> Maybe SnapshotCopyGrant
snapshotCopyGrant} -> Maybe SnapshotCopyGrant
snapshotCopyGrant) (\s :: CreateSnapshotCopyGrantResponse
s@CreateSnapshotCopyGrantResponse' {} Maybe SnapshotCopyGrant
a -> CreateSnapshotCopyGrantResponse
s {$sel:snapshotCopyGrant:CreateSnapshotCopyGrantResponse' :: Maybe SnapshotCopyGrant
snapshotCopyGrant = Maybe SnapshotCopyGrant
a} :: CreateSnapshotCopyGrantResponse)
createSnapshotCopyGrantResponse_httpStatus :: Lens.Lens' CreateSnapshotCopyGrantResponse Prelude.Int
createSnapshotCopyGrantResponse_httpStatus :: (Int -> f Int)
-> CreateSnapshotCopyGrantResponse
-> f CreateSnapshotCopyGrantResponse
createSnapshotCopyGrantResponse_httpStatus = (CreateSnapshotCopyGrantResponse -> Int)
-> (CreateSnapshotCopyGrantResponse
-> Int -> CreateSnapshotCopyGrantResponse)
-> Lens
CreateSnapshotCopyGrantResponse
CreateSnapshotCopyGrantResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSnapshotCopyGrantResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateSnapshotCopyGrantResponse' :: CreateSnapshotCopyGrantResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateSnapshotCopyGrantResponse
s@CreateSnapshotCopyGrantResponse' {} Int
a -> CreateSnapshotCopyGrantResponse
s {$sel:httpStatus:CreateSnapshotCopyGrantResponse' :: Int
httpStatus = Int
a} :: CreateSnapshotCopyGrantResponse)
instance
Prelude.NFData
CreateSnapshotCopyGrantResponse