{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DynamoDB.Types.DeleteReplicationGroupMemberAction where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.DynamoDB.Types.AttributeValue
import Amazonka.DynamoDB.Types.WriteRequest
import qualified Amazonka.Prelude as Prelude
data DeleteReplicationGroupMemberAction = DeleteReplicationGroupMemberAction'
{
DeleteReplicationGroupMemberAction -> Text
regionName :: Prelude.Text
}
deriving (DeleteReplicationGroupMemberAction
-> DeleteReplicationGroupMemberAction -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteReplicationGroupMemberAction
-> DeleteReplicationGroupMemberAction -> Bool
$c/= :: DeleteReplicationGroupMemberAction
-> DeleteReplicationGroupMemberAction -> Bool
== :: DeleteReplicationGroupMemberAction
-> DeleteReplicationGroupMemberAction -> Bool
$c== :: DeleteReplicationGroupMemberAction
-> DeleteReplicationGroupMemberAction -> Bool
Prelude.Eq, ReadPrec [DeleteReplicationGroupMemberAction]
ReadPrec DeleteReplicationGroupMemberAction
Int -> ReadS DeleteReplicationGroupMemberAction
ReadS [DeleteReplicationGroupMemberAction]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteReplicationGroupMemberAction]
$creadListPrec :: ReadPrec [DeleteReplicationGroupMemberAction]
readPrec :: ReadPrec DeleteReplicationGroupMemberAction
$creadPrec :: ReadPrec DeleteReplicationGroupMemberAction
readList :: ReadS [DeleteReplicationGroupMemberAction]
$creadList :: ReadS [DeleteReplicationGroupMemberAction]
readsPrec :: Int -> ReadS DeleteReplicationGroupMemberAction
$creadsPrec :: Int -> ReadS DeleteReplicationGroupMemberAction
Prelude.Read, Int -> DeleteReplicationGroupMemberAction -> ShowS
[DeleteReplicationGroupMemberAction] -> ShowS
DeleteReplicationGroupMemberAction -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteReplicationGroupMemberAction] -> ShowS
$cshowList :: [DeleteReplicationGroupMemberAction] -> ShowS
show :: DeleteReplicationGroupMemberAction -> String
$cshow :: DeleteReplicationGroupMemberAction -> String
showsPrec :: Int -> DeleteReplicationGroupMemberAction -> ShowS
$cshowsPrec :: Int -> DeleteReplicationGroupMemberAction -> ShowS
Prelude.Show, forall x.
Rep DeleteReplicationGroupMemberAction x
-> DeleteReplicationGroupMemberAction
forall x.
DeleteReplicationGroupMemberAction
-> Rep DeleteReplicationGroupMemberAction x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteReplicationGroupMemberAction x
-> DeleteReplicationGroupMemberAction
$cfrom :: forall x.
DeleteReplicationGroupMemberAction
-> Rep DeleteReplicationGroupMemberAction x
Prelude.Generic)
newDeleteReplicationGroupMemberAction ::
Prelude.Text ->
DeleteReplicationGroupMemberAction
newDeleteReplicationGroupMemberAction :: Text -> DeleteReplicationGroupMemberAction
newDeleteReplicationGroupMemberAction Text
pRegionName_ =
DeleteReplicationGroupMemberAction'
{ $sel:regionName:DeleteReplicationGroupMemberAction' :: Text
regionName =
Text
pRegionName_
}
deleteReplicationGroupMemberAction_regionName :: Lens.Lens' DeleteReplicationGroupMemberAction Prelude.Text
deleteReplicationGroupMemberAction_regionName :: Lens' DeleteReplicationGroupMemberAction Text
deleteReplicationGroupMemberAction_regionName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteReplicationGroupMemberAction' {Text
regionName :: Text
$sel:regionName:DeleteReplicationGroupMemberAction' :: DeleteReplicationGroupMemberAction -> Text
regionName} -> Text
regionName) (\s :: DeleteReplicationGroupMemberAction
s@DeleteReplicationGroupMemberAction' {} Text
a -> DeleteReplicationGroupMemberAction
s {$sel:regionName:DeleteReplicationGroupMemberAction' :: Text
regionName = Text
a} :: DeleteReplicationGroupMemberAction)
instance
Prelude.Hashable
DeleteReplicationGroupMemberAction
where
hashWithSalt :: Int -> DeleteReplicationGroupMemberAction -> Int
hashWithSalt
Int
_salt
DeleteReplicationGroupMemberAction' {Text
regionName :: Text
$sel:regionName:DeleteReplicationGroupMemberAction' :: DeleteReplicationGroupMemberAction -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
regionName
instance
Prelude.NFData
DeleteReplicationGroupMemberAction
where
rnf :: DeleteReplicationGroupMemberAction -> ()
rnf DeleteReplicationGroupMemberAction' {Text
regionName :: Text
$sel:regionName:DeleteReplicationGroupMemberAction' :: DeleteReplicationGroupMemberAction -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
regionName
instance
Data.ToJSON
DeleteReplicationGroupMemberAction
where
toJSON :: DeleteReplicationGroupMemberAction -> Value
toJSON DeleteReplicationGroupMemberAction' {Text
regionName :: Text
$sel:regionName:DeleteReplicationGroupMemberAction' :: DeleteReplicationGroupMemberAction -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"RegionName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
regionName)]
)