{-# 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.SecretsManager.RemoveRegionsFromReplication
(
RemoveRegionsFromReplication (..),
newRemoveRegionsFromReplication,
removeRegionsFromReplication_secretId,
removeRegionsFromReplication_removeReplicaRegions,
RemoveRegionsFromReplicationResponse (..),
newRemoveRegionsFromReplicationResponse,
removeRegionsFromReplicationResponse_arn,
removeRegionsFromReplicationResponse_replicationStatus,
removeRegionsFromReplicationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SecretsManager.Types
data RemoveRegionsFromReplication = RemoveRegionsFromReplication'
{
RemoveRegionsFromReplication -> Text
secretId :: Prelude.Text,
RemoveRegionsFromReplication -> NonEmpty Text
removeReplicaRegions :: Prelude.NonEmpty Prelude.Text
}
deriving (RemoveRegionsFromReplication
-> RemoveRegionsFromReplication -> Bool
(RemoveRegionsFromReplication
-> RemoveRegionsFromReplication -> Bool)
-> (RemoveRegionsFromReplication
-> RemoveRegionsFromReplication -> Bool)
-> Eq RemoveRegionsFromReplication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RemoveRegionsFromReplication
-> RemoveRegionsFromReplication -> Bool
$c/= :: RemoveRegionsFromReplication
-> RemoveRegionsFromReplication -> Bool
== :: RemoveRegionsFromReplication
-> RemoveRegionsFromReplication -> Bool
$c== :: RemoveRegionsFromReplication
-> RemoveRegionsFromReplication -> Bool
Prelude.Eq, ReadPrec [RemoveRegionsFromReplication]
ReadPrec RemoveRegionsFromReplication
Int -> ReadS RemoveRegionsFromReplication
ReadS [RemoveRegionsFromReplication]
(Int -> ReadS RemoveRegionsFromReplication)
-> ReadS [RemoveRegionsFromReplication]
-> ReadPrec RemoveRegionsFromReplication
-> ReadPrec [RemoveRegionsFromReplication]
-> Read RemoveRegionsFromReplication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RemoveRegionsFromReplication]
$creadListPrec :: ReadPrec [RemoveRegionsFromReplication]
readPrec :: ReadPrec RemoveRegionsFromReplication
$creadPrec :: ReadPrec RemoveRegionsFromReplication
readList :: ReadS [RemoveRegionsFromReplication]
$creadList :: ReadS [RemoveRegionsFromReplication]
readsPrec :: Int -> ReadS RemoveRegionsFromReplication
$creadsPrec :: Int -> ReadS RemoveRegionsFromReplication
Prelude.Read, Int -> RemoveRegionsFromReplication -> ShowS
[RemoveRegionsFromReplication] -> ShowS
RemoveRegionsFromReplication -> String
(Int -> RemoveRegionsFromReplication -> ShowS)
-> (RemoveRegionsFromReplication -> String)
-> ([RemoveRegionsFromReplication] -> ShowS)
-> Show RemoveRegionsFromReplication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RemoveRegionsFromReplication] -> ShowS
$cshowList :: [RemoveRegionsFromReplication] -> ShowS
show :: RemoveRegionsFromReplication -> String
$cshow :: RemoveRegionsFromReplication -> String
showsPrec :: Int -> RemoveRegionsFromReplication -> ShowS
$cshowsPrec :: Int -> RemoveRegionsFromReplication -> ShowS
Prelude.Show, (forall x.
RemoveRegionsFromReplication -> Rep RemoveRegionsFromReplication x)
-> (forall x.
Rep RemoveRegionsFromReplication x -> RemoveRegionsFromReplication)
-> Generic RemoveRegionsFromReplication
forall x.
Rep RemoveRegionsFromReplication x -> RemoveRegionsFromReplication
forall x.
RemoveRegionsFromReplication -> Rep RemoveRegionsFromReplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RemoveRegionsFromReplication x -> RemoveRegionsFromReplication
$cfrom :: forall x.
RemoveRegionsFromReplication -> Rep RemoveRegionsFromReplication x
Prelude.Generic)
newRemoveRegionsFromReplication ::
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
RemoveRegionsFromReplication
newRemoveRegionsFromReplication :: Text -> NonEmpty Text -> RemoveRegionsFromReplication
newRemoveRegionsFromReplication
Text
pSecretId_
NonEmpty Text
pRemoveReplicaRegions_ =
RemoveRegionsFromReplication' :: Text -> NonEmpty Text -> RemoveRegionsFromReplication
RemoveRegionsFromReplication'
{ $sel:secretId:RemoveRegionsFromReplication' :: Text
secretId =
Text
pSecretId_,
$sel:removeReplicaRegions:RemoveRegionsFromReplication' :: NonEmpty Text
removeReplicaRegions =
Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pRemoveReplicaRegions_
}
removeRegionsFromReplication_secretId :: Lens.Lens' RemoveRegionsFromReplication Prelude.Text
removeRegionsFromReplication_secretId :: (Text -> f Text)
-> RemoveRegionsFromReplication -> f RemoveRegionsFromReplication
removeRegionsFromReplication_secretId = (RemoveRegionsFromReplication -> Text)
-> (RemoveRegionsFromReplication
-> Text -> RemoveRegionsFromReplication)
-> Lens
RemoveRegionsFromReplication RemoveRegionsFromReplication Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveRegionsFromReplication' {Text
secretId :: Text
$sel:secretId:RemoveRegionsFromReplication' :: RemoveRegionsFromReplication -> Text
secretId} -> Text
secretId) (\s :: RemoveRegionsFromReplication
s@RemoveRegionsFromReplication' {} Text
a -> RemoveRegionsFromReplication
s {$sel:secretId:RemoveRegionsFromReplication' :: Text
secretId = Text
a} :: RemoveRegionsFromReplication)
removeRegionsFromReplication_removeReplicaRegions :: Lens.Lens' RemoveRegionsFromReplication (Prelude.NonEmpty Prelude.Text)
removeRegionsFromReplication_removeReplicaRegions :: (NonEmpty Text -> f (NonEmpty Text))
-> RemoveRegionsFromReplication -> f RemoveRegionsFromReplication
removeRegionsFromReplication_removeReplicaRegions = (RemoveRegionsFromReplication -> NonEmpty Text)
-> (RemoveRegionsFromReplication
-> NonEmpty Text -> RemoveRegionsFromReplication)
-> Lens
RemoveRegionsFromReplication
RemoveRegionsFromReplication
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveRegionsFromReplication' {NonEmpty Text
removeReplicaRegions :: NonEmpty Text
$sel:removeReplicaRegions:RemoveRegionsFromReplication' :: RemoveRegionsFromReplication -> NonEmpty Text
removeReplicaRegions} -> NonEmpty Text
removeReplicaRegions) (\s :: RemoveRegionsFromReplication
s@RemoveRegionsFromReplication' {} NonEmpty Text
a -> RemoveRegionsFromReplication
s {$sel:removeReplicaRegions:RemoveRegionsFromReplication' :: NonEmpty Text
removeReplicaRegions = NonEmpty Text
a} :: RemoveRegionsFromReplication) ((NonEmpty Text -> f (NonEmpty Text))
-> RemoveRegionsFromReplication -> f RemoveRegionsFromReplication)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> RemoveRegionsFromReplication
-> f RemoveRegionsFromReplication
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest RemoveRegionsFromReplication where
type
AWSResponse RemoveRegionsFromReplication =
RemoveRegionsFromReplicationResponse
request :: RemoveRegionsFromReplication
-> Request RemoveRegionsFromReplication
request = Service
-> RemoveRegionsFromReplication
-> Request RemoveRegionsFromReplication
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy RemoveRegionsFromReplication
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RemoveRegionsFromReplication)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse RemoveRegionsFromReplication))
-> Logger
-> Service
-> Proxy RemoveRegionsFromReplication
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RemoveRegionsFromReplication)))
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 Text
-> Maybe [ReplicationStatusType]
-> Int
-> RemoveRegionsFromReplicationResponse
RemoveRegionsFromReplicationResponse'
(Maybe Text
-> Maybe [ReplicationStatusType]
-> Int
-> RemoveRegionsFromReplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ReplicationStatusType]
-> Int -> RemoveRegionsFromReplicationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ARN")
Either
String
(Maybe [ReplicationStatusType]
-> Int -> RemoveRegionsFromReplicationResponse)
-> Either String (Maybe [ReplicationStatusType])
-> Either String (Int -> RemoveRegionsFromReplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ReplicationStatusType]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ReplicationStatus"
Either String (Maybe (Maybe [ReplicationStatusType]))
-> Maybe [ReplicationStatusType]
-> Either String (Maybe [ReplicationStatusType])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ReplicationStatusType]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> RemoveRegionsFromReplicationResponse)
-> Either String Int
-> Either String RemoveRegionsFromReplicationResponse
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
RemoveRegionsFromReplication
instance Prelude.NFData RemoveRegionsFromReplication
instance Core.ToHeaders RemoveRegionsFromReplication where
toHeaders :: RemoveRegionsFromReplication -> ResponseHeaders
toHeaders =
ResponseHeaders -> RemoveRegionsFromReplication -> 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
"secretsmanager.RemoveRegionsFromReplication" ::
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 RemoveRegionsFromReplication where
toJSON :: RemoveRegionsFromReplication -> Value
toJSON RemoveRegionsFromReplication' {NonEmpty Text
Text
removeReplicaRegions :: NonEmpty Text
secretId :: Text
$sel:removeReplicaRegions:RemoveRegionsFromReplication' :: RemoveRegionsFromReplication -> NonEmpty Text
$sel:secretId:RemoveRegionsFromReplication' :: RemoveRegionsFromReplication -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"SecretId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
secretId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"RemoveReplicaRegions"
Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
removeReplicaRegions
)
]
)
instance Core.ToPath RemoveRegionsFromReplication where
toPath :: RemoveRegionsFromReplication -> ByteString
toPath = ByteString -> RemoveRegionsFromReplication -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery RemoveRegionsFromReplication where
toQuery :: RemoveRegionsFromReplication -> QueryString
toQuery = QueryString -> RemoveRegionsFromReplication -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data RemoveRegionsFromReplicationResponse = RemoveRegionsFromReplicationResponse'
{
RemoveRegionsFromReplicationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
RemoveRegionsFromReplicationResponse
-> Maybe [ReplicationStatusType]
replicationStatus :: Prelude.Maybe [ReplicationStatusType],
RemoveRegionsFromReplicationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (RemoveRegionsFromReplicationResponse
-> RemoveRegionsFromReplicationResponse -> Bool
(RemoveRegionsFromReplicationResponse
-> RemoveRegionsFromReplicationResponse -> Bool)
-> (RemoveRegionsFromReplicationResponse
-> RemoveRegionsFromReplicationResponse -> Bool)
-> Eq RemoveRegionsFromReplicationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RemoveRegionsFromReplicationResponse
-> RemoveRegionsFromReplicationResponse -> Bool
$c/= :: RemoveRegionsFromReplicationResponse
-> RemoveRegionsFromReplicationResponse -> Bool
== :: RemoveRegionsFromReplicationResponse
-> RemoveRegionsFromReplicationResponse -> Bool
$c== :: RemoveRegionsFromReplicationResponse
-> RemoveRegionsFromReplicationResponse -> Bool
Prelude.Eq, ReadPrec [RemoveRegionsFromReplicationResponse]
ReadPrec RemoveRegionsFromReplicationResponse
Int -> ReadS RemoveRegionsFromReplicationResponse
ReadS [RemoveRegionsFromReplicationResponse]
(Int -> ReadS RemoveRegionsFromReplicationResponse)
-> ReadS [RemoveRegionsFromReplicationResponse]
-> ReadPrec RemoveRegionsFromReplicationResponse
-> ReadPrec [RemoveRegionsFromReplicationResponse]
-> Read RemoveRegionsFromReplicationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RemoveRegionsFromReplicationResponse]
$creadListPrec :: ReadPrec [RemoveRegionsFromReplicationResponse]
readPrec :: ReadPrec RemoveRegionsFromReplicationResponse
$creadPrec :: ReadPrec RemoveRegionsFromReplicationResponse
readList :: ReadS [RemoveRegionsFromReplicationResponse]
$creadList :: ReadS [RemoveRegionsFromReplicationResponse]
readsPrec :: Int -> ReadS RemoveRegionsFromReplicationResponse
$creadsPrec :: Int -> ReadS RemoveRegionsFromReplicationResponse
Prelude.Read, Int -> RemoveRegionsFromReplicationResponse -> ShowS
[RemoveRegionsFromReplicationResponse] -> ShowS
RemoveRegionsFromReplicationResponse -> String
(Int -> RemoveRegionsFromReplicationResponse -> ShowS)
-> (RemoveRegionsFromReplicationResponse -> String)
-> ([RemoveRegionsFromReplicationResponse] -> ShowS)
-> Show RemoveRegionsFromReplicationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RemoveRegionsFromReplicationResponse] -> ShowS
$cshowList :: [RemoveRegionsFromReplicationResponse] -> ShowS
show :: RemoveRegionsFromReplicationResponse -> String
$cshow :: RemoveRegionsFromReplicationResponse -> String
showsPrec :: Int -> RemoveRegionsFromReplicationResponse -> ShowS
$cshowsPrec :: Int -> RemoveRegionsFromReplicationResponse -> ShowS
Prelude.Show, (forall x.
RemoveRegionsFromReplicationResponse
-> Rep RemoveRegionsFromReplicationResponse x)
-> (forall x.
Rep RemoveRegionsFromReplicationResponse x
-> RemoveRegionsFromReplicationResponse)
-> Generic RemoveRegionsFromReplicationResponse
forall x.
Rep RemoveRegionsFromReplicationResponse x
-> RemoveRegionsFromReplicationResponse
forall x.
RemoveRegionsFromReplicationResponse
-> Rep RemoveRegionsFromReplicationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RemoveRegionsFromReplicationResponse x
-> RemoveRegionsFromReplicationResponse
$cfrom :: forall x.
RemoveRegionsFromReplicationResponse
-> Rep RemoveRegionsFromReplicationResponse x
Prelude.Generic)
newRemoveRegionsFromReplicationResponse ::
Prelude.Int ->
RemoveRegionsFromReplicationResponse
newRemoveRegionsFromReplicationResponse :: Int -> RemoveRegionsFromReplicationResponse
newRemoveRegionsFromReplicationResponse Int
pHttpStatus_ =
RemoveRegionsFromReplicationResponse' :: Maybe Text
-> Maybe [ReplicationStatusType]
-> Int
-> RemoveRegionsFromReplicationResponse
RemoveRegionsFromReplicationResponse'
{ $sel:arn:RemoveRegionsFromReplicationResponse' :: Maybe Text
arn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationStatus:RemoveRegionsFromReplicationResponse' :: Maybe [ReplicationStatusType]
replicationStatus = Maybe [ReplicationStatusType]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:RemoveRegionsFromReplicationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
removeRegionsFromReplicationResponse_arn :: Lens.Lens' RemoveRegionsFromReplicationResponse (Prelude.Maybe Prelude.Text)
removeRegionsFromReplicationResponse_arn :: (Maybe Text -> f (Maybe Text))
-> RemoveRegionsFromReplicationResponse
-> f RemoveRegionsFromReplicationResponse
removeRegionsFromReplicationResponse_arn = (RemoveRegionsFromReplicationResponse -> Maybe Text)
-> (RemoveRegionsFromReplicationResponse
-> Maybe Text -> RemoveRegionsFromReplicationResponse)
-> Lens
RemoveRegionsFromReplicationResponse
RemoveRegionsFromReplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveRegionsFromReplicationResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:RemoveRegionsFromReplicationResponse' :: RemoveRegionsFromReplicationResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: RemoveRegionsFromReplicationResponse
s@RemoveRegionsFromReplicationResponse' {} Maybe Text
a -> RemoveRegionsFromReplicationResponse
s {$sel:arn:RemoveRegionsFromReplicationResponse' :: Maybe Text
arn = Maybe Text
a} :: RemoveRegionsFromReplicationResponse)
removeRegionsFromReplicationResponse_replicationStatus :: Lens.Lens' RemoveRegionsFromReplicationResponse (Prelude.Maybe [ReplicationStatusType])
removeRegionsFromReplicationResponse_replicationStatus :: (Maybe [ReplicationStatusType]
-> f (Maybe [ReplicationStatusType]))
-> RemoveRegionsFromReplicationResponse
-> f RemoveRegionsFromReplicationResponse
removeRegionsFromReplicationResponse_replicationStatus = (RemoveRegionsFromReplicationResponse
-> Maybe [ReplicationStatusType])
-> (RemoveRegionsFromReplicationResponse
-> Maybe [ReplicationStatusType]
-> RemoveRegionsFromReplicationResponse)
-> Lens
RemoveRegionsFromReplicationResponse
RemoveRegionsFromReplicationResponse
(Maybe [ReplicationStatusType])
(Maybe [ReplicationStatusType])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveRegionsFromReplicationResponse' {Maybe [ReplicationStatusType]
replicationStatus :: Maybe [ReplicationStatusType]
$sel:replicationStatus:RemoveRegionsFromReplicationResponse' :: RemoveRegionsFromReplicationResponse
-> Maybe [ReplicationStatusType]
replicationStatus} -> Maybe [ReplicationStatusType]
replicationStatus) (\s :: RemoveRegionsFromReplicationResponse
s@RemoveRegionsFromReplicationResponse' {} Maybe [ReplicationStatusType]
a -> RemoveRegionsFromReplicationResponse
s {$sel:replicationStatus:RemoveRegionsFromReplicationResponse' :: Maybe [ReplicationStatusType]
replicationStatus = Maybe [ReplicationStatusType]
a} :: RemoveRegionsFromReplicationResponse) ((Maybe [ReplicationStatusType]
-> f (Maybe [ReplicationStatusType]))
-> RemoveRegionsFromReplicationResponse
-> f RemoveRegionsFromReplicationResponse)
-> ((Maybe [ReplicationStatusType]
-> f (Maybe [ReplicationStatusType]))
-> Maybe [ReplicationStatusType]
-> f (Maybe [ReplicationStatusType]))
-> (Maybe [ReplicationStatusType]
-> f (Maybe [ReplicationStatusType]))
-> RemoveRegionsFromReplicationResponse
-> f RemoveRegionsFromReplicationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ReplicationStatusType]
[ReplicationStatusType]
[ReplicationStatusType]
[ReplicationStatusType]
-> Iso
(Maybe [ReplicationStatusType])
(Maybe [ReplicationStatusType])
(Maybe [ReplicationStatusType])
(Maybe [ReplicationStatusType])
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
[ReplicationStatusType]
[ReplicationStatusType]
[ReplicationStatusType]
[ReplicationStatusType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
removeRegionsFromReplicationResponse_httpStatus :: Lens.Lens' RemoveRegionsFromReplicationResponse Prelude.Int
removeRegionsFromReplicationResponse_httpStatus :: (Int -> f Int)
-> RemoveRegionsFromReplicationResponse
-> f RemoveRegionsFromReplicationResponse
removeRegionsFromReplicationResponse_httpStatus = (RemoveRegionsFromReplicationResponse -> Int)
-> (RemoveRegionsFromReplicationResponse
-> Int -> RemoveRegionsFromReplicationResponse)
-> Lens
RemoveRegionsFromReplicationResponse
RemoveRegionsFromReplicationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveRegionsFromReplicationResponse' {Int
httpStatus :: Int
$sel:httpStatus:RemoveRegionsFromReplicationResponse' :: RemoveRegionsFromReplicationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RemoveRegionsFromReplicationResponse
s@RemoveRegionsFromReplicationResponse' {} Int
a -> RemoveRegionsFromReplicationResponse
s {$sel:httpStatus:RemoveRegionsFromReplicationResponse' :: Int
httpStatus = Int
a} :: RemoveRegionsFromReplicationResponse)
instance
Prelude.NFData
RemoveRegionsFromReplicationResponse