{-# 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.DMS.CreateReplicationSubnetGroup
(
CreateReplicationSubnetGroup (..),
newCreateReplicationSubnetGroup,
createReplicationSubnetGroup_tags,
createReplicationSubnetGroup_replicationSubnetGroupIdentifier,
createReplicationSubnetGroup_replicationSubnetGroupDescription,
createReplicationSubnetGroup_subnetIds,
CreateReplicationSubnetGroupResponse (..),
newCreateReplicationSubnetGroupResponse,
createReplicationSubnetGroupResponse_replicationSubnetGroup,
createReplicationSubnetGroupResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DMS.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateReplicationSubnetGroup = CreateReplicationSubnetGroup'
{
CreateReplicationSubnetGroup -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateReplicationSubnetGroup -> Text
replicationSubnetGroupIdentifier :: Prelude.Text,
CreateReplicationSubnetGroup -> Text
replicationSubnetGroupDescription :: Prelude.Text,
CreateReplicationSubnetGroup -> [Text]
subnetIds :: [Prelude.Text]
}
deriving (CreateReplicationSubnetGroup
-> CreateReplicationSubnetGroup -> Bool
(CreateReplicationSubnetGroup
-> CreateReplicationSubnetGroup -> Bool)
-> (CreateReplicationSubnetGroup
-> CreateReplicationSubnetGroup -> Bool)
-> Eq CreateReplicationSubnetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateReplicationSubnetGroup
-> CreateReplicationSubnetGroup -> Bool
$c/= :: CreateReplicationSubnetGroup
-> CreateReplicationSubnetGroup -> Bool
== :: CreateReplicationSubnetGroup
-> CreateReplicationSubnetGroup -> Bool
$c== :: CreateReplicationSubnetGroup
-> CreateReplicationSubnetGroup -> Bool
Prelude.Eq, ReadPrec [CreateReplicationSubnetGroup]
ReadPrec CreateReplicationSubnetGroup
Int -> ReadS CreateReplicationSubnetGroup
ReadS [CreateReplicationSubnetGroup]
(Int -> ReadS CreateReplicationSubnetGroup)
-> ReadS [CreateReplicationSubnetGroup]
-> ReadPrec CreateReplicationSubnetGroup
-> ReadPrec [CreateReplicationSubnetGroup]
-> Read CreateReplicationSubnetGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateReplicationSubnetGroup]
$creadListPrec :: ReadPrec [CreateReplicationSubnetGroup]
readPrec :: ReadPrec CreateReplicationSubnetGroup
$creadPrec :: ReadPrec CreateReplicationSubnetGroup
readList :: ReadS [CreateReplicationSubnetGroup]
$creadList :: ReadS [CreateReplicationSubnetGroup]
readsPrec :: Int -> ReadS CreateReplicationSubnetGroup
$creadsPrec :: Int -> ReadS CreateReplicationSubnetGroup
Prelude.Read, Int -> CreateReplicationSubnetGroup -> ShowS
[CreateReplicationSubnetGroup] -> ShowS
CreateReplicationSubnetGroup -> String
(Int -> CreateReplicationSubnetGroup -> ShowS)
-> (CreateReplicationSubnetGroup -> String)
-> ([CreateReplicationSubnetGroup] -> ShowS)
-> Show CreateReplicationSubnetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateReplicationSubnetGroup] -> ShowS
$cshowList :: [CreateReplicationSubnetGroup] -> ShowS
show :: CreateReplicationSubnetGroup -> String
$cshow :: CreateReplicationSubnetGroup -> String
showsPrec :: Int -> CreateReplicationSubnetGroup -> ShowS
$cshowsPrec :: Int -> CreateReplicationSubnetGroup -> ShowS
Prelude.Show, (forall x.
CreateReplicationSubnetGroup -> Rep CreateReplicationSubnetGroup x)
-> (forall x.
Rep CreateReplicationSubnetGroup x -> CreateReplicationSubnetGroup)
-> Generic CreateReplicationSubnetGroup
forall x.
Rep CreateReplicationSubnetGroup x -> CreateReplicationSubnetGroup
forall x.
CreateReplicationSubnetGroup -> Rep CreateReplicationSubnetGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateReplicationSubnetGroup x -> CreateReplicationSubnetGroup
$cfrom :: forall x.
CreateReplicationSubnetGroup -> Rep CreateReplicationSubnetGroup x
Prelude.Generic)
newCreateReplicationSubnetGroup ::
Prelude.Text ->
Prelude.Text ->
CreateReplicationSubnetGroup
newCreateReplicationSubnetGroup :: Text -> Text -> CreateReplicationSubnetGroup
newCreateReplicationSubnetGroup
Text
pReplicationSubnetGroupIdentifier_
Text
pReplicationSubnetGroupDescription_ =
CreateReplicationSubnetGroup' :: Maybe [Tag]
-> Text -> Text -> [Text] -> CreateReplicationSubnetGroup
CreateReplicationSubnetGroup'
{ $sel:tags:CreateReplicationSubnetGroup' :: Maybe [Tag]
tags =
Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:replicationSubnetGroupIdentifier:CreateReplicationSubnetGroup' :: Text
replicationSubnetGroupIdentifier =
Text
pReplicationSubnetGroupIdentifier_,
$sel:replicationSubnetGroupDescription:CreateReplicationSubnetGroup' :: Text
replicationSubnetGroupDescription =
Text
pReplicationSubnetGroupDescription_,
$sel:subnetIds:CreateReplicationSubnetGroup' :: [Text]
subnetIds = [Text]
forall a. Monoid a => a
Prelude.mempty
}
createReplicationSubnetGroup_tags :: Lens.Lens' CreateReplicationSubnetGroup (Prelude.Maybe [Tag])
createReplicationSubnetGroup_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateReplicationSubnetGroup -> f CreateReplicationSubnetGroup
createReplicationSubnetGroup_tags = (CreateReplicationSubnetGroup -> Maybe [Tag])
-> (CreateReplicationSubnetGroup
-> Maybe [Tag] -> CreateReplicationSubnetGroup)
-> Lens
CreateReplicationSubnetGroup
CreateReplicationSubnetGroup
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationSubnetGroup' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateReplicationSubnetGroup' :: CreateReplicationSubnetGroup -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateReplicationSubnetGroup
s@CreateReplicationSubnetGroup' {} Maybe [Tag]
a -> CreateReplicationSubnetGroup
s {$sel:tags:CreateReplicationSubnetGroup' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateReplicationSubnetGroup) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateReplicationSubnetGroup -> f CreateReplicationSubnetGroup)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateReplicationSubnetGroup
-> f CreateReplicationSubnetGroup
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
createReplicationSubnetGroup_replicationSubnetGroupIdentifier :: Lens.Lens' CreateReplicationSubnetGroup Prelude.Text
createReplicationSubnetGroup_replicationSubnetGroupIdentifier :: (Text -> f Text)
-> CreateReplicationSubnetGroup -> f CreateReplicationSubnetGroup
createReplicationSubnetGroup_replicationSubnetGroupIdentifier = (CreateReplicationSubnetGroup -> Text)
-> (CreateReplicationSubnetGroup
-> Text -> CreateReplicationSubnetGroup)
-> Lens
CreateReplicationSubnetGroup CreateReplicationSubnetGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationSubnetGroup' {Text
replicationSubnetGroupIdentifier :: Text
$sel:replicationSubnetGroupIdentifier:CreateReplicationSubnetGroup' :: CreateReplicationSubnetGroup -> Text
replicationSubnetGroupIdentifier} -> Text
replicationSubnetGroupIdentifier) (\s :: CreateReplicationSubnetGroup
s@CreateReplicationSubnetGroup' {} Text
a -> CreateReplicationSubnetGroup
s {$sel:replicationSubnetGroupIdentifier:CreateReplicationSubnetGroup' :: Text
replicationSubnetGroupIdentifier = Text
a} :: CreateReplicationSubnetGroup)
createReplicationSubnetGroup_replicationSubnetGroupDescription :: Lens.Lens' CreateReplicationSubnetGroup Prelude.Text
createReplicationSubnetGroup_replicationSubnetGroupDescription :: (Text -> f Text)
-> CreateReplicationSubnetGroup -> f CreateReplicationSubnetGroup
createReplicationSubnetGroup_replicationSubnetGroupDescription = (CreateReplicationSubnetGroup -> Text)
-> (CreateReplicationSubnetGroup
-> Text -> CreateReplicationSubnetGroup)
-> Lens
CreateReplicationSubnetGroup CreateReplicationSubnetGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationSubnetGroup' {Text
replicationSubnetGroupDescription :: Text
$sel:replicationSubnetGroupDescription:CreateReplicationSubnetGroup' :: CreateReplicationSubnetGroup -> Text
replicationSubnetGroupDescription} -> Text
replicationSubnetGroupDescription) (\s :: CreateReplicationSubnetGroup
s@CreateReplicationSubnetGroup' {} Text
a -> CreateReplicationSubnetGroup
s {$sel:replicationSubnetGroupDescription:CreateReplicationSubnetGroup' :: Text
replicationSubnetGroupDescription = Text
a} :: CreateReplicationSubnetGroup)
createReplicationSubnetGroup_subnetIds :: Lens.Lens' CreateReplicationSubnetGroup [Prelude.Text]
createReplicationSubnetGroup_subnetIds :: ([Text] -> f [Text])
-> CreateReplicationSubnetGroup -> f CreateReplicationSubnetGroup
createReplicationSubnetGroup_subnetIds = (CreateReplicationSubnetGroup -> [Text])
-> (CreateReplicationSubnetGroup
-> [Text] -> CreateReplicationSubnetGroup)
-> Lens
CreateReplicationSubnetGroup
CreateReplicationSubnetGroup
[Text]
[Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationSubnetGroup' {[Text]
subnetIds :: [Text]
$sel:subnetIds:CreateReplicationSubnetGroup' :: CreateReplicationSubnetGroup -> [Text]
subnetIds} -> [Text]
subnetIds) (\s :: CreateReplicationSubnetGroup
s@CreateReplicationSubnetGroup' {} [Text]
a -> CreateReplicationSubnetGroup
s {$sel:subnetIds:CreateReplicationSubnetGroup' :: [Text]
subnetIds = [Text]
a} :: CreateReplicationSubnetGroup) (([Text] -> f [Text])
-> CreateReplicationSubnetGroup -> f CreateReplicationSubnetGroup)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> CreateReplicationSubnetGroup
-> f CreateReplicationSubnetGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CreateReplicationSubnetGroup where
type
AWSResponse CreateReplicationSubnetGroup =
CreateReplicationSubnetGroupResponse
request :: CreateReplicationSubnetGroup
-> Request CreateReplicationSubnetGroup
request = Service
-> CreateReplicationSubnetGroup
-> Request CreateReplicationSubnetGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateReplicationSubnetGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateReplicationSubnetGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateReplicationSubnetGroup))
-> Logger
-> Service
-> Proxy CreateReplicationSubnetGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateReplicationSubnetGroup)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe ReplicationSubnetGroup
-> Int -> CreateReplicationSubnetGroupResponse
CreateReplicationSubnetGroupResponse'
(Maybe ReplicationSubnetGroup
-> Int -> CreateReplicationSubnetGroupResponse)
-> Either String (Maybe ReplicationSubnetGroup)
-> Either String (Int -> CreateReplicationSubnetGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ReplicationSubnetGroup)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ReplicationSubnetGroup")
Either String (Int -> CreateReplicationSubnetGroupResponse)
-> Either String Int
-> Either String CreateReplicationSubnetGroupResponse
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
CreateReplicationSubnetGroup
instance Prelude.NFData CreateReplicationSubnetGroup
instance Core.ToHeaders CreateReplicationSubnetGroup where
toHeaders :: CreateReplicationSubnetGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateReplicationSubnetGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonDMSv20160101.CreateReplicationSubnetGroup" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateReplicationSubnetGroup where
toJSON :: CreateReplicationSubnetGroup -> Value
toJSON CreateReplicationSubnetGroup' {[Text]
Maybe [Tag]
Text
subnetIds :: [Text]
replicationSubnetGroupDescription :: Text
replicationSubnetGroupIdentifier :: Text
tags :: Maybe [Tag]
$sel:subnetIds:CreateReplicationSubnetGroup' :: CreateReplicationSubnetGroup -> [Text]
$sel:replicationSubnetGroupDescription:CreateReplicationSubnetGroup' :: CreateReplicationSubnetGroup -> Text
$sel:replicationSubnetGroupIdentifier:CreateReplicationSubnetGroup' :: CreateReplicationSubnetGroup -> Text
$sel:tags:CreateReplicationSubnetGroup' :: CreateReplicationSubnetGroup -> Maybe [Tag]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"ReplicationSubnetGroupIdentifier"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
replicationSubnetGroupIdentifier
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"ReplicationSubnetGroupDescription"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
replicationSubnetGroupDescription
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"SubnetIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
subnetIds)
]
)
instance Core.ToPath CreateReplicationSubnetGroup where
toPath :: CreateReplicationSubnetGroup -> ByteString
toPath = ByteString -> CreateReplicationSubnetGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateReplicationSubnetGroup where
toQuery :: CreateReplicationSubnetGroup -> QueryString
toQuery = QueryString -> CreateReplicationSubnetGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateReplicationSubnetGroupResponse = CreateReplicationSubnetGroupResponse'
{
CreateReplicationSubnetGroupResponse
-> Maybe ReplicationSubnetGroup
replicationSubnetGroup :: Prelude.Maybe ReplicationSubnetGroup,
CreateReplicationSubnetGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateReplicationSubnetGroupResponse
-> CreateReplicationSubnetGroupResponse -> Bool
(CreateReplicationSubnetGroupResponse
-> CreateReplicationSubnetGroupResponse -> Bool)
-> (CreateReplicationSubnetGroupResponse
-> CreateReplicationSubnetGroupResponse -> Bool)
-> Eq CreateReplicationSubnetGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateReplicationSubnetGroupResponse
-> CreateReplicationSubnetGroupResponse -> Bool
$c/= :: CreateReplicationSubnetGroupResponse
-> CreateReplicationSubnetGroupResponse -> Bool
== :: CreateReplicationSubnetGroupResponse
-> CreateReplicationSubnetGroupResponse -> Bool
$c== :: CreateReplicationSubnetGroupResponse
-> CreateReplicationSubnetGroupResponse -> Bool
Prelude.Eq, ReadPrec [CreateReplicationSubnetGroupResponse]
ReadPrec CreateReplicationSubnetGroupResponse
Int -> ReadS CreateReplicationSubnetGroupResponse
ReadS [CreateReplicationSubnetGroupResponse]
(Int -> ReadS CreateReplicationSubnetGroupResponse)
-> ReadS [CreateReplicationSubnetGroupResponse]
-> ReadPrec CreateReplicationSubnetGroupResponse
-> ReadPrec [CreateReplicationSubnetGroupResponse]
-> Read CreateReplicationSubnetGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateReplicationSubnetGroupResponse]
$creadListPrec :: ReadPrec [CreateReplicationSubnetGroupResponse]
readPrec :: ReadPrec CreateReplicationSubnetGroupResponse
$creadPrec :: ReadPrec CreateReplicationSubnetGroupResponse
readList :: ReadS [CreateReplicationSubnetGroupResponse]
$creadList :: ReadS [CreateReplicationSubnetGroupResponse]
readsPrec :: Int -> ReadS CreateReplicationSubnetGroupResponse
$creadsPrec :: Int -> ReadS CreateReplicationSubnetGroupResponse
Prelude.Read, Int -> CreateReplicationSubnetGroupResponse -> ShowS
[CreateReplicationSubnetGroupResponse] -> ShowS
CreateReplicationSubnetGroupResponse -> String
(Int -> CreateReplicationSubnetGroupResponse -> ShowS)
-> (CreateReplicationSubnetGroupResponse -> String)
-> ([CreateReplicationSubnetGroupResponse] -> ShowS)
-> Show CreateReplicationSubnetGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateReplicationSubnetGroupResponse] -> ShowS
$cshowList :: [CreateReplicationSubnetGroupResponse] -> ShowS
show :: CreateReplicationSubnetGroupResponse -> String
$cshow :: CreateReplicationSubnetGroupResponse -> String
showsPrec :: Int -> CreateReplicationSubnetGroupResponse -> ShowS
$cshowsPrec :: Int -> CreateReplicationSubnetGroupResponse -> ShowS
Prelude.Show, (forall x.
CreateReplicationSubnetGroupResponse
-> Rep CreateReplicationSubnetGroupResponse x)
-> (forall x.
Rep CreateReplicationSubnetGroupResponse x
-> CreateReplicationSubnetGroupResponse)
-> Generic CreateReplicationSubnetGroupResponse
forall x.
Rep CreateReplicationSubnetGroupResponse x
-> CreateReplicationSubnetGroupResponse
forall x.
CreateReplicationSubnetGroupResponse
-> Rep CreateReplicationSubnetGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateReplicationSubnetGroupResponse x
-> CreateReplicationSubnetGroupResponse
$cfrom :: forall x.
CreateReplicationSubnetGroupResponse
-> Rep CreateReplicationSubnetGroupResponse x
Prelude.Generic)
newCreateReplicationSubnetGroupResponse ::
Prelude.Int ->
CreateReplicationSubnetGroupResponse
newCreateReplicationSubnetGroupResponse :: Int -> CreateReplicationSubnetGroupResponse
newCreateReplicationSubnetGroupResponse Int
pHttpStatus_ =
CreateReplicationSubnetGroupResponse' :: Maybe ReplicationSubnetGroup
-> Int -> CreateReplicationSubnetGroupResponse
CreateReplicationSubnetGroupResponse'
{ $sel:replicationSubnetGroup:CreateReplicationSubnetGroupResponse' :: Maybe ReplicationSubnetGroup
replicationSubnetGroup =
Maybe ReplicationSubnetGroup
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateReplicationSubnetGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createReplicationSubnetGroupResponse_replicationSubnetGroup :: Lens.Lens' CreateReplicationSubnetGroupResponse (Prelude.Maybe ReplicationSubnetGroup)
createReplicationSubnetGroupResponse_replicationSubnetGroup :: (Maybe ReplicationSubnetGroup -> f (Maybe ReplicationSubnetGroup))
-> CreateReplicationSubnetGroupResponse
-> f CreateReplicationSubnetGroupResponse
createReplicationSubnetGroupResponse_replicationSubnetGroup = (CreateReplicationSubnetGroupResponse
-> Maybe ReplicationSubnetGroup)
-> (CreateReplicationSubnetGroupResponse
-> Maybe ReplicationSubnetGroup
-> CreateReplicationSubnetGroupResponse)
-> Lens
CreateReplicationSubnetGroupResponse
CreateReplicationSubnetGroupResponse
(Maybe ReplicationSubnetGroup)
(Maybe ReplicationSubnetGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationSubnetGroupResponse' {Maybe ReplicationSubnetGroup
replicationSubnetGroup :: Maybe ReplicationSubnetGroup
$sel:replicationSubnetGroup:CreateReplicationSubnetGroupResponse' :: CreateReplicationSubnetGroupResponse
-> Maybe ReplicationSubnetGroup
replicationSubnetGroup} -> Maybe ReplicationSubnetGroup
replicationSubnetGroup) (\s :: CreateReplicationSubnetGroupResponse
s@CreateReplicationSubnetGroupResponse' {} Maybe ReplicationSubnetGroup
a -> CreateReplicationSubnetGroupResponse
s {$sel:replicationSubnetGroup:CreateReplicationSubnetGroupResponse' :: Maybe ReplicationSubnetGroup
replicationSubnetGroup = Maybe ReplicationSubnetGroup
a} :: CreateReplicationSubnetGroupResponse)
createReplicationSubnetGroupResponse_httpStatus :: Lens.Lens' CreateReplicationSubnetGroupResponse Prelude.Int
createReplicationSubnetGroupResponse_httpStatus :: (Int -> f Int)
-> CreateReplicationSubnetGroupResponse
-> f CreateReplicationSubnetGroupResponse
createReplicationSubnetGroupResponse_httpStatus = (CreateReplicationSubnetGroupResponse -> Int)
-> (CreateReplicationSubnetGroupResponse
-> Int -> CreateReplicationSubnetGroupResponse)
-> Lens
CreateReplicationSubnetGroupResponse
CreateReplicationSubnetGroupResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationSubnetGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateReplicationSubnetGroupResponse' :: CreateReplicationSubnetGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateReplicationSubnetGroupResponse
s@CreateReplicationSubnetGroupResponse' {} Int
a -> CreateReplicationSubnetGroupResponse
s {$sel:httpStatus:CreateReplicationSubnetGroupResponse' :: Int
httpStatus = Int
a} :: CreateReplicationSubnetGroupResponse)
instance
Prelude.NFData
CreateReplicationSubnetGroupResponse