{-# 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.ElastiCache.CreateReplicationGroup
(
CreateReplicationGroup (..),
newCreateReplicationGroup,
createReplicationGroup_automaticFailoverEnabled,
createReplicationGroup_engineVersion,
createReplicationGroup_cacheNodeType,
createReplicationGroup_nodeGroupConfiguration,
createReplicationGroup_atRestEncryptionEnabled,
createReplicationGroup_securityGroupIds,
createReplicationGroup_snapshotArns,
createReplicationGroup_autoMinorVersionUpgrade,
createReplicationGroup_cacheParameterGroupName,
createReplicationGroup_transitEncryptionEnabled,
createReplicationGroup_userGroupIds,
createReplicationGroup_snapshotWindow,
createReplicationGroup_logDeliveryConfigurations,
createReplicationGroup_authToken,
createReplicationGroup_primaryClusterId,
createReplicationGroup_engine,
createReplicationGroup_preferredMaintenanceWindow,
createReplicationGroup_kmsKeyId,
createReplicationGroup_multiAZEnabled,
createReplicationGroup_cacheSubnetGroupName,
createReplicationGroup_numNodeGroups,
createReplicationGroup_snapshotRetentionLimit,
createReplicationGroup_globalReplicationGroupId,
createReplicationGroup_replicasPerNodeGroup,
createReplicationGroup_numCacheClusters,
createReplicationGroup_preferredCacheClusterAZs,
createReplicationGroup_snapshotName,
createReplicationGroup_notificationTopicArn,
createReplicationGroup_tags,
createReplicationGroup_port,
createReplicationGroup_cacheSecurityGroupNames,
createReplicationGroup_replicationGroupId,
createReplicationGroup_replicationGroupDescription,
CreateReplicationGroupResponse (..),
newCreateReplicationGroupResponse,
createReplicationGroupResponse_replicationGroup,
createReplicationGroupResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ElastiCache.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 CreateReplicationGroup = CreateReplicationGroup'
{
CreateReplicationGroup -> Maybe Bool
automaticFailoverEnabled :: Prelude.Maybe Prelude.Bool,
CreateReplicationGroup -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Text
cacheNodeType :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe [NodeGroupConfiguration]
nodeGroupConfiguration :: Prelude.Maybe [NodeGroupConfiguration],
CreateReplicationGroup -> Maybe Bool
atRestEncryptionEnabled :: Prelude.Maybe Prelude.Bool,
CreateReplicationGroup -> Maybe [Text]
securityGroupIds :: Prelude.Maybe [Prelude.Text],
CreateReplicationGroup -> Maybe [Text]
snapshotArns :: Prelude.Maybe [Prelude.Text],
CreateReplicationGroup -> Maybe Bool
autoMinorVersionUpgrade :: Prelude.Maybe Prelude.Bool,
CreateReplicationGroup -> Maybe Text
cacheParameterGroupName :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Bool
transitEncryptionEnabled :: Prelude.Maybe Prelude.Bool,
CreateReplicationGroup -> Maybe (NonEmpty Text)
userGroupIds :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
CreateReplicationGroup -> Maybe Text
snapshotWindow :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe [LogDeliveryConfigurationRequest]
logDeliveryConfigurations :: Prelude.Maybe [LogDeliveryConfigurationRequest],
CreateReplicationGroup -> Maybe Text
authToken :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Text
primaryClusterId :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Text
engine :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Text
preferredMaintenanceWindow :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Bool
multiAZEnabled :: Prelude.Maybe Prelude.Bool,
CreateReplicationGroup -> Maybe Text
cacheSubnetGroupName :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Int
numNodeGroups :: Prelude.Maybe Prelude.Int,
CreateReplicationGroup -> Maybe Int
snapshotRetentionLimit :: Prelude.Maybe Prelude.Int,
CreateReplicationGroup -> Maybe Text
globalReplicationGroupId :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Int
replicasPerNodeGroup :: Prelude.Maybe Prelude.Int,
CreateReplicationGroup -> Maybe Int
numCacheClusters :: Prelude.Maybe Prelude.Int,
CreateReplicationGroup -> Maybe [Text]
preferredCacheClusterAZs :: Prelude.Maybe [Prelude.Text],
CreateReplicationGroup -> Maybe Text
snapshotName :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe Text
notificationTopicArn :: Prelude.Maybe Prelude.Text,
CreateReplicationGroup -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateReplicationGroup -> Maybe Int
port :: Prelude.Maybe Prelude.Int,
CreateReplicationGroup -> Maybe [Text]
cacheSecurityGroupNames :: Prelude.Maybe [Prelude.Text],
CreateReplicationGroup -> Text
replicationGroupId :: Prelude.Text,
CreateReplicationGroup -> Text
replicationGroupDescription :: Prelude.Text
}
deriving (CreateReplicationGroup -> CreateReplicationGroup -> Bool
(CreateReplicationGroup -> CreateReplicationGroup -> Bool)
-> (CreateReplicationGroup -> CreateReplicationGroup -> Bool)
-> Eq CreateReplicationGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateReplicationGroup -> CreateReplicationGroup -> Bool
$c/= :: CreateReplicationGroup -> CreateReplicationGroup -> Bool
== :: CreateReplicationGroup -> CreateReplicationGroup -> Bool
$c== :: CreateReplicationGroup -> CreateReplicationGroup -> Bool
Prelude.Eq, ReadPrec [CreateReplicationGroup]
ReadPrec CreateReplicationGroup
Int -> ReadS CreateReplicationGroup
ReadS [CreateReplicationGroup]
(Int -> ReadS CreateReplicationGroup)
-> ReadS [CreateReplicationGroup]
-> ReadPrec CreateReplicationGroup
-> ReadPrec [CreateReplicationGroup]
-> Read CreateReplicationGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateReplicationGroup]
$creadListPrec :: ReadPrec [CreateReplicationGroup]
readPrec :: ReadPrec CreateReplicationGroup
$creadPrec :: ReadPrec CreateReplicationGroup
readList :: ReadS [CreateReplicationGroup]
$creadList :: ReadS [CreateReplicationGroup]
readsPrec :: Int -> ReadS CreateReplicationGroup
$creadsPrec :: Int -> ReadS CreateReplicationGroup
Prelude.Read, Int -> CreateReplicationGroup -> ShowS
[CreateReplicationGroup] -> ShowS
CreateReplicationGroup -> String
(Int -> CreateReplicationGroup -> ShowS)
-> (CreateReplicationGroup -> String)
-> ([CreateReplicationGroup] -> ShowS)
-> Show CreateReplicationGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateReplicationGroup] -> ShowS
$cshowList :: [CreateReplicationGroup] -> ShowS
show :: CreateReplicationGroup -> String
$cshow :: CreateReplicationGroup -> String
showsPrec :: Int -> CreateReplicationGroup -> ShowS
$cshowsPrec :: Int -> CreateReplicationGroup -> ShowS
Prelude.Show, (forall x. CreateReplicationGroup -> Rep CreateReplicationGroup x)
-> (forall x.
Rep CreateReplicationGroup x -> CreateReplicationGroup)
-> Generic CreateReplicationGroup
forall x. Rep CreateReplicationGroup x -> CreateReplicationGroup
forall x. CreateReplicationGroup -> Rep CreateReplicationGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateReplicationGroup x -> CreateReplicationGroup
$cfrom :: forall x. CreateReplicationGroup -> Rep CreateReplicationGroup x
Prelude.Generic)
newCreateReplicationGroup ::
Prelude.Text ->
Prelude.Text ->
CreateReplicationGroup
newCreateReplicationGroup :: Text -> Text -> CreateReplicationGroup
newCreateReplicationGroup
Text
pReplicationGroupId_
Text
pReplicationGroupDescription_ =
CreateReplicationGroup' :: Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [NodeGroupConfiguration]
-> Maybe Bool
-> Maybe [Text]
-> Maybe [Text]
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe [LogDeliveryConfigurationRequest]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Int
-> Maybe [Text]
-> Text
-> Text
-> CreateReplicationGroup
CreateReplicationGroup'
{ $sel:automaticFailoverEnabled:CreateReplicationGroup' :: Maybe Bool
automaticFailoverEnabled =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:engineVersion:CreateReplicationGroup' :: Maybe Text
engineVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cacheNodeType:CreateReplicationGroup' :: Maybe Text
cacheNodeType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nodeGroupConfiguration:CreateReplicationGroup' :: Maybe [NodeGroupConfiguration]
nodeGroupConfiguration = Maybe [NodeGroupConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:atRestEncryptionEnabled:CreateReplicationGroup' :: Maybe Bool
atRestEncryptionEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:securityGroupIds:CreateReplicationGroup' :: Maybe [Text]
securityGroupIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotArns:CreateReplicationGroup' :: Maybe [Text]
snapshotArns = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:autoMinorVersionUpgrade:CreateReplicationGroup' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:cacheParameterGroupName:CreateReplicationGroup' :: Maybe Text
cacheParameterGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:transitEncryptionEnabled:CreateReplicationGroup' :: Maybe Bool
transitEncryptionEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:userGroupIds:CreateReplicationGroup' :: Maybe (NonEmpty Text)
userGroupIds = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotWindow:CreateReplicationGroup' :: Maybe Text
snapshotWindow = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:logDeliveryConfigurations:CreateReplicationGroup' :: Maybe [LogDeliveryConfigurationRequest]
logDeliveryConfigurations = Maybe [LogDeliveryConfigurationRequest]
forall a. Maybe a
Prelude.Nothing,
$sel:authToken:CreateReplicationGroup' :: Maybe Text
authToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:primaryClusterId:CreateReplicationGroup' :: Maybe Text
primaryClusterId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:engine:CreateReplicationGroup' :: Maybe Text
engine = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:preferredMaintenanceWindow:CreateReplicationGroup' :: Maybe Text
preferredMaintenanceWindow = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:CreateReplicationGroup' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:multiAZEnabled:CreateReplicationGroup' :: Maybe Bool
multiAZEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:cacheSubnetGroupName:CreateReplicationGroup' :: Maybe Text
cacheSubnetGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:numNodeGroups:CreateReplicationGroup' :: Maybe Int
numNodeGroups = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotRetentionLimit:CreateReplicationGroup' :: Maybe Int
snapshotRetentionLimit = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:globalReplicationGroupId:CreateReplicationGroup' :: Maybe Text
globalReplicationGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicasPerNodeGroup:CreateReplicationGroup' :: Maybe Int
replicasPerNodeGroup = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:numCacheClusters:CreateReplicationGroup' :: Maybe Int
numCacheClusters = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:preferredCacheClusterAZs:CreateReplicationGroup' :: Maybe [Text]
preferredCacheClusterAZs = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:snapshotName:CreateReplicationGroup' :: Maybe Text
snapshotName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:notificationTopicArn:CreateReplicationGroup' :: Maybe Text
notificationTopicArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateReplicationGroup' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:port:CreateReplicationGroup' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:cacheSecurityGroupNames:CreateReplicationGroup' :: Maybe [Text]
cacheSecurityGroupNames = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:replicationGroupId:CreateReplicationGroup' :: Text
replicationGroupId = Text
pReplicationGroupId_,
$sel:replicationGroupDescription:CreateReplicationGroup' :: Text
replicationGroupDescription =
Text
pReplicationGroupDescription_
}
createReplicationGroup_automaticFailoverEnabled :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Bool)
createReplicationGroup_automaticFailoverEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_automaticFailoverEnabled = (CreateReplicationGroup -> Maybe Bool)
-> (CreateReplicationGroup -> Maybe Bool -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Bool
automaticFailoverEnabled :: Maybe Bool
$sel:automaticFailoverEnabled:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
automaticFailoverEnabled} -> Maybe Bool
automaticFailoverEnabled) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Bool
a -> CreateReplicationGroup
s {$sel:automaticFailoverEnabled:CreateReplicationGroup' :: Maybe Bool
automaticFailoverEnabled = Maybe Bool
a} :: CreateReplicationGroup)
createReplicationGroup_engineVersion :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_engineVersion :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_engineVersion = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:engineVersion:CreateReplicationGroup' :: Maybe Text
engineVersion = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_cacheNodeType :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_cacheNodeType :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_cacheNodeType = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
cacheNodeType :: Maybe Text
$sel:cacheNodeType:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
cacheNodeType} -> Maybe Text
cacheNodeType) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:cacheNodeType:CreateReplicationGroup' :: Maybe Text
cacheNodeType = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_nodeGroupConfiguration :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe [NodeGroupConfiguration])
createReplicationGroup_nodeGroupConfiguration :: (Maybe [NodeGroupConfiguration]
-> f (Maybe [NodeGroupConfiguration]))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_nodeGroupConfiguration = (CreateReplicationGroup -> Maybe [NodeGroupConfiguration])
-> (CreateReplicationGroup
-> Maybe [NodeGroupConfiguration] -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe [NodeGroupConfiguration])
(Maybe [NodeGroupConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe [NodeGroupConfiguration]
nodeGroupConfiguration :: Maybe [NodeGroupConfiguration]
$sel:nodeGroupConfiguration:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [NodeGroupConfiguration]
nodeGroupConfiguration} -> Maybe [NodeGroupConfiguration]
nodeGroupConfiguration) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe [NodeGroupConfiguration]
a -> CreateReplicationGroup
s {$sel:nodeGroupConfiguration:CreateReplicationGroup' :: Maybe [NodeGroupConfiguration]
nodeGroupConfiguration = Maybe [NodeGroupConfiguration]
a} :: CreateReplicationGroup) ((Maybe [NodeGroupConfiguration]
-> f (Maybe [NodeGroupConfiguration]))
-> CreateReplicationGroup -> f CreateReplicationGroup)
-> ((Maybe [NodeGroupConfiguration]
-> f (Maybe [NodeGroupConfiguration]))
-> Maybe [NodeGroupConfiguration]
-> f (Maybe [NodeGroupConfiguration]))
-> (Maybe [NodeGroupConfiguration]
-> f (Maybe [NodeGroupConfiguration]))
-> CreateReplicationGroup
-> f CreateReplicationGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[NodeGroupConfiguration]
[NodeGroupConfiguration]
[NodeGroupConfiguration]
[NodeGroupConfiguration]
-> Iso
(Maybe [NodeGroupConfiguration])
(Maybe [NodeGroupConfiguration])
(Maybe [NodeGroupConfiguration])
(Maybe [NodeGroupConfiguration])
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
[NodeGroupConfiguration]
[NodeGroupConfiguration]
[NodeGroupConfiguration]
[NodeGroupConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createReplicationGroup_atRestEncryptionEnabled :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Bool)
createReplicationGroup_atRestEncryptionEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_atRestEncryptionEnabled = (CreateReplicationGroup -> Maybe Bool)
-> (CreateReplicationGroup -> Maybe Bool -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Bool
atRestEncryptionEnabled :: Maybe Bool
$sel:atRestEncryptionEnabled:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
atRestEncryptionEnabled} -> Maybe Bool
atRestEncryptionEnabled) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Bool
a -> CreateReplicationGroup
s {$sel:atRestEncryptionEnabled:CreateReplicationGroup' :: Maybe Bool
atRestEncryptionEnabled = Maybe Bool
a} :: CreateReplicationGroup)
createReplicationGroup_securityGroupIds :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe [Prelude.Text])
createReplicationGroup_securityGroupIds :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_securityGroupIds = (CreateReplicationGroup -> Maybe [Text])
-> (CreateReplicationGroup
-> Maybe [Text] -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe [Text]
securityGroupIds :: Maybe [Text]
$sel:securityGroupIds:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Text]
securityGroupIds} -> Maybe [Text]
securityGroupIds) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe [Text]
a -> CreateReplicationGroup
s {$sel:securityGroupIds:CreateReplicationGroup' :: Maybe [Text]
securityGroupIds = Maybe [Text]
a} :: CreateReplicationGroup) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup -> f CreateReplicationGroup)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup
-> f CreateReplicationGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createReplicationGroup_snapshotArns :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe [Prelude.Text])
createReplicationGroup_snapshotArns :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_snapshotArns = (CreateReplicationGroup -> Maybe [Text])
-> (CreateReplicationGroup
-> Maybe [Text] -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe [Text]
snapshotArns :: Maybe [Text]
$sel:snapshotArns:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Text]
snapshotArns} -> Maybe [Text]
snapshotArns) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe [Text]
a -> CreateReplicationGroup
s {$sel:snapshotArns:CreateReplicationGroup' :: Maybe [Text]
snapshotArns = Maybe [Text]
a} :: CreateReplicationGroup) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup -> f CreateReplicationGroup)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup
-> f CreateReplicationGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createReplicationGroup_autoMinorVersionUpgrade :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Bool)
createReplicationGroup_autoMinorVersionUpgrade :: (Maybe Bool -> f (Maybe Bool))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_autoMinorVersionUpgrade = (CreateReplicationGroup -> Maybe Bool)
-> (CreateReplicationGroup -> Maybe Bool -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Bool
autoMinorVersionUpgrade :: Maybe Bool
$sel:autoMinorVersionUpgrade:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
autoMinorVersionUpgrade} -> Maybe Bool
autoMinorVersionUpgrade) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Bool
a -> CreateReplicationGroup
s {$sel:autoMinorVersionUpgrade:CreateReplicationGroup' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
a} :: CreateReplicationGroup)
createReplicationGroup_cacheParameterGroupName :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_cacheParameterGroupName :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_cacheParameterGroupName = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
cacheParameterGroupName :: Maybe Text
$sel:cacheParameterGroupName:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
cacheParameterGroupName} -> Maybe Text
cacheParameterGroupName) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:cacheParameterGroupName:CreateReplicationGroup' :: Maybe Text
cacheParameterGroupName = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_transitEncryptionEnabled :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Bool)
createReplicationGroup_transitEncryptionEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_transitEncryptionEnabled = (CreateReplicationGroup -> Maybe Bool)
-> (CreateReplicationGroup -> Maybe Bool -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Bool
transitEncryptionEnabled :: Maybe Bool
$sel:transitEncryptionEnabled:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
transitEncryptionEnabled} -> Maybe Bool
transitEncryptionEnabled) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Bool
a -> CreateReplicationGroup
s {$sel:transitEncryptionEnabled:CreateReplicationGroup' :: Maybe Bool
transitEncryptionEnabled = Maybe Bool
a} :: CreateReplicationGroup)
createReplicationGroup_userGroupIds :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
createReplicationGroup_userGroupIds :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_userGroupIds = (CreateReplicationGroup -> Maybe (NonEmpty Text))
-> (CreateReplicationGroup
-> Maybe (NonEmpty Text) -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe (NonEmpty Text)
userGroupIds :: Maybe (NonEmpty Text)
$sel:userGroupIds:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe (NonEmpty Text)
userGroupIds} -> Maybe (NonEmpty Text)
userGroupIds) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe (NonEmpty Text)
a -> CreateReplicationGroup
s {$sel:userGroupIds:CreateReplicationGroup' :: Maybe (NonEmpty Text)
userGroupIds = Maybe (NonEmpty Text)
a} :: CreateReplicationGroup) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> CreateReplicationGroup -> f CreateReplicationGroup)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> CreateReplicationGroup
-> f CreateReplicationGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createReplicationGroup_snapshotWindow :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_snapshotWindow :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_snapshotWindow = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
snapshotWindow :: Maybe Text
$sel:snapshotWindow:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
snapshotWindow} -> Maybe Text
snapshotWindow) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:snapshotWindow:CreateReplicationGroup' :: Maybe Text
snapshotWindow = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_logDeliveryConfigurations :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe [LogDeliveryConfigurationRequest])
createReplicationGroup_logDeliveryConfigurations :: (Maybe [LogDeliveryConfigurationRequest]
-> f (Maybe [LogDeliveryConfigurationRequest]))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_logDeliveryConfigurations = (CreateReplicationGroup -> Maybe [LogDeliveryConfigurationRequest])
-> (CreateReplicationGroup
-> Maybe [LogDeliveryConfigurationRequest]
-> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe [LogDeliveryConfigurationRequest])
(Maybe [LogDeliveryConfigurationRequest])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe [LogDeliveryConfigurationRequest]
logDeliveryConfigurations :: Maybe [LogDeliveryConfigurationRequest]
$sel:logDeliveryConfigurations:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [LogDeliveryConfigurationRequest]
logDeliveryConfigurations} -> Maybe [LogDeliveryConfigurationRequest]
logDeliveryConfigurations) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe [LogDeliveryConfigurationRequest]
a -> CreateReplicationGroup
s {$sel:logDeliveryConfigurations:CreateReplicationGroup' :: Maybe [LogDeliveryConfigurationRequest]
logDeliveryConfigurations = Maybe [LogDeliveryConfigurationRequest]
a} :: CreateReplicationGroup) ((Maybe [LogDeliveryConfigurationRequest]
-> f (Maybe [LogDeliveryConfigurationRequest]))
-> CreateReplicationGroup -> f CreateReplicationGroup)
-> ((Maybe [LogDeliveryConfigurationRequest]
-> f (Maybe [LogDeliveryConfigurationRequest]))
-> Maybe [LogDeliveryConfigurationRequest]
-> f (Maybe [LogDeliveryConfigurationRequest]))
-> (Maybe [LogDeliveryConfigurationRequest]
-> f (Maybe [LogDeliveryConfigurationRequest]))
-> CreateReplicationGroup
-> f CreateReplicationGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[LogDeliveryConfigurationRequest]
[LogDeliveryConfigurationRequest]
[LogDeliveryConfigurationRequest]
[LogDeliveryConfigurationRequest]
-> Iso
(Maybe [LogDeliveryConfigurationRequest])
(Maybe [LogDeliveryConfigurationRequest])
(Maybe [LogDeliveryConfigurationRequest])
(Maybe [LogDeliveryConfigurationRequest])
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
[LogDeliveryConfigurationRequest]
[LogDeliveryConfigurationRequest]
[LogDeliveryConfigurationRequest]
[LogDeliveryConfigurationRequest]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createReplicationGroup_authToken :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_authToken :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_authToken = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
authToken :: Maybe Text
$sel:authToken:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
authToken} -> Maybe Text
authToken) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:authToken:CreateReplicationGroup' :: Maybe Text
authToken = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_primaryClusterId :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_primaryClusterId :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_primaryClusterId = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
primaryClusterId :: Maybe Text
$sel:primaryClusterId:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
primaryClusterId} -> Maybe Text
primaryClusterId) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:primaryClusterId:CreateReplicationGroup' :: Maybe Text
primaryClusterId = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_engine :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_engine :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_engine = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
engine :: Maybe Text
$sel:engine:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
engine} -> Maybe Text
engine) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:engine:CreateReplicationGroup' :: Maybe Text
engine = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_preferredMaintenanceWindow :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_preferredMaintenanceWindow :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_preferredMaintenanceWindow = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
preferredMaintenanceWindow :: Maybe Text
$sel:preferredMaintenanceWindow:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
preferredMaintenanceWindow} -> Maybe Text
preferredMaintenanceWindow) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:preferredMaintenanceWindow:CreateReplicationGroup' :: Maybe Text
preferredMaintenanceWindow = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_kmsKeyId :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_kmsKeyId = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:kmsKeyId:CreateReplicationGroup' :: Maybe Text
kmsKeyId = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_multiAZEnabled :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Bool)
createReplicationGroup_multiAZEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_multiAZEnabled = (CreateReplicationGroup -> Maybe Bool)
-> (CreateReplicationGroup -> Maybe Bool -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Bool
multiAZEnabled :: Maybe Bool
$sel:multiAZEnabled:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
multiAZEnabled} -> Maybe Bool
multiAZEnabled) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Bool
a -> CreateReplicationGroup
s {$sel:multiAZEnabled:CreateReplicationGroup' :: Maybe Bool
multiAZEnabled = Maybe Bool
a} :: CreateReplicationGroup)
createReplicationGroup_cacheSubnetGroupName :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_cacheSubnetGroupName :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_cacheSubnetGroupName = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
cacheSubnetGroupName :: Maybe Text
$sel:cacheSubnetGroupName:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
cacheSubnetGroupName} -> Maybe Text
cacheSubnetGroupName) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:cacheSubnetGroupName:CreateReplicationGroup' :: Maybe Text
cacheSubnetGroupName = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_numNodeGroups :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Int)
createReplicationGroup_numNodeGroups :: (Maybe Int -> f (Maybe Int))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_numNodeGroups = (CreateReplicationGroup -> Maybe Int)
-> (CreateReplicationGroup -> Maybe Int -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Int
numNodeGroups :: Maybe Int
$sel:numNodeGroups:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
numNodeGroups} -> Maybe Int
numNodeGroups) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Int
a -> CreateReplicationGroup
s {$sel:numNodeGroups:CreateReplicationGroup' :: Maybe Int
numNodeGroups = Maybe Int
a} :: CreateReplicationGroup)
createReplicationGroup_snapshotRetentionLimit :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Int)
createReplicationGroup_snapshotRetentionLimit :: (Maybe Int -> f (Maybe Int))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_snapshotRetentionLimit = (CreateReplicationGroup -> Maybe Int)
-> (CreateReplicationGroup -> Maybe Int -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Int
snapshotRetentionLimit :: Maybe Int
$sel:snapshotRetentionLimit:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
snapshotRetentionLimit} -> Maybe Int
snapshotRetentionLimit) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Int
a -> CreateReplicationGroup
s {$sel:snapshotRetentionLimit:CreateReplicationGroup' :: Maybe Int
snapshotRetentionLimit = Maybe Int
a} :: CreateReplicationGroup)
createReplicationGroup_globalReplicationGroupId :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_globalReplicationGroupId :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_globalReplicationGroupId = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
globalReplicationGroupId :: Maybe Text
$sel:globalReplicationGroupId:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
globalReplicationGroupId} -> Maybe Text
globalReplicationGroupId) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:globalReplicationGroupId:CreateReplicationGroup' :: Maybe Text
globalReplicationGroupId = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_replicasPerNodeGroup :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Int)
createReplicationGroup_replicasPerNodeGroup :: (Maybe Int -> f (Maybe Int))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_replicasPerNodeGroup = (CreateReplicationGroup -> Maybe Int)
-> (CreateReplicationGroup -> Maybe Int -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Int
replicasPerNodeGroup :: Maybe Int
$sel:replicasPerNodeGroup:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
replicasPerNodeGroup} -> Maybe Int
replicasPerNodeGroup) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Int
a -> CreateReplicationGroup
s {$sel:replicasPerNodeGroup:CreateReplicationGroup' :: Maybe Int
replicasPerNodeGroup = Maybe Int
a} :: CreateReplicationGroup)
createReplicationGroup_numCacheClusters :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Int)
createReplicationGroup_numCacheClusters :: (Maybe Int -> f (Maybe Int))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_numCacheClusters = (CreateReplicationGroup -> Maybe Int)
-> (CreateReplicationGroup -> Maybe Int -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Int
numCacheClusters :: Maybe Int
$sel:numCacheClusters:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
numCacheClusters} -> Maybe Int
numCacheClusters) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Int
a -> CreateReplicationGroup
s {$sel:numCacheClusters:CreateReplicationGroup' :: Maybe Int
numCacheClusters = Maybe Int
a} :: CreateReplicationGroup)
createReplicationGroup_preferredCacheClusterAZs :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe [Prelude.Text])
createReplicationGroup_preferredCacheClusterAZs :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_preferredCacheClusterAZs = (CreateReplicationGroup -> Maybe [Text])
-> (CreateReplicationGroup
-> Maybe [Text] -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe [Text]
preferredCacheClusterAZs :: Maybe [Text]
$sel:preferredCacheClusterAZs:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Text]
preferredCacheClusterAZs} -> Maybe [Text]
preferredCacheClusterAZs) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe [Text]
a -> CreateReplicationGroup
s {$sel:preferredCacheClusterAZs:CreateReplicationGroup' :: Maybe [Text]
preferredCacheClusterAZs = Maybe [Text]
a} :: CreateReplicationGroup) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup -> f CreateReplicationGroup)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup
-> f CreateReplicationGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createReplicationGroup_snapshotName :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_snapshotName :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_snapshotName = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
snapshotName :: Maybe Text
$sel:snapshotName:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
snapshotName} -> Maybe Text
snapshotName) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:snapshotName:CreateReplicationGroup' :: Maybe Text
snapshotName = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_notificationTopicArn :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Text)
createReplicationGroup_notificationTopicArn :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_notificationTopicArn = (CreateReplicationGroup -> Maybe Text)
-> (CreateReplicationGroup -> Maybe Text -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Text
notificationTopicArn :: Maybe Text
$sel:notificationTopicArn:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
notificationTopicArn} -> Maybe Text
notificationTopicArn) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Text
a -> CreateReplicationGroup
s {$sel:notificationTopicArn:CreateReplicationGroup' :: Maybe Text
notificationTopicArn = Maybe Text
a} :: CreateReplicationGroup)
createReplicationGroup_tags :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe [Tag])
createReplicationGroup_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_tags = (CreateReplicationGroup -> Maybe [Tag])
-> (CreateReplicationGroup
-> Maybe [Tag] -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe [Tag]
a -> CreateReplicationGroup
s {$sel:tags:CreateReplicationGroup' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateReplicationGroup) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateReplicationGroup -> f CreateReplicationGroup)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateReplicationGroup
-> f CreateReplicationGroup
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
createReplicationGroup_port :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe Prelude.Int)
createReplicationGroup_port :: (Maybe Int -> f (Maybe Int))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_port = (CreateReplicationGroup -> Maybe Int)
-> (CreateReplicationGroup -> Maybe Int -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe Int
port :: Maybe Int
$sel:port:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
port} -> Maybe Int
port) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe Int
a -> CreateReplicationGroup
s {$sel:port:CreateReplicationGroup' :: Maybe Int
port = Maybe Int
a} :: CreateReplicationGroup)
createReplicationGroup_cacheSecurityGroupNames :: Lens.Lens' CreateReplicationGroup (Prelude.Maybe [Prelude.Text])
createReplicationGroup_cacheSecurityGroupNames :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_cacheSecurityGroupNames = (CreateReplicationGroup -> Maybe [Text])
-> (CreateReplicationGroup
-> Maybe [Text] -> CreateReplicationGroup)
-> Lens
CreateReplicationGroup
CreateReplicationGroup
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Maybe [Text]
cacheSecurityGroupNames :: Maybe [Text]
$sel:cacheSecurityGroupNames:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Text]
cacheSecurityGroupNames} -> Maybe [Text]
cacheSecurityGroupNames) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Maybe [Text]
a -> CreateReplicationGroup
s {$sel:cacheSecurityGroupNames:CreateReplicationGroup' :: Maybe [Text]
cacheSecurityGroupNames = Maybe [Text]
a} :: CreateReplicationGroup) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup -> f CreateReplicationGroup)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateReplicationGroup
-> f CreateReplicationGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createReplicationGroup_replicationGroupId :: Lens.Lens' CreateReplicationGroup Prelude.Text
createReplicationGroup_replicationGroupId :: (Text -> f Text)
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_replicationGroupId = (CreateReplicationGroup -> Text)
-> (CreateReplicationGroup -> Text -> CreateReplicationGroup)
-> Lens CreateReplicationGroup CreateReplicationGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Text
replicationGroupId :: Text
$sel:replicationGroupId:CreateReplicationGroup' :: CreateReplicationGroup -> Text
replicationGroupId} -> Text
replicationGroupId) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Text
a -> CreateReplicationGroup
s {$sel:replicationGroupId:CreateReplicationGroup' :: Text
replicationGroupId = Text
a} :: CreateReplicationGroup)
createReplicationGroup_replicationGroupDescription :: Lens.Lens' CreateReplicationGroup Prelude.Text
createReplicationGroup_replicationGroupDescription :: (Text -> f Text)
-> CreateReplicationGroup -> f CreateReplicationGroup
createReplicationGroup_replicationGroupDescription = (CreateReplicationGroup -> Text)
-> (CreateReplicationGroup -> Text -> CreateReplicationGroup)
-> Lens CreateReplicationGroup CreateReplicationGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroup' {Text
replicationGroupDescription :: Text
$sel:replicationGroupDescription:CreateReplicationGroup' :: CreateReplicationGroup -> Text
replicationGroupDescription} -> Text
replicationGroupDescription) (\s :: CreateReplicationGroup
s@CreateReplicationGroup' {} Text
a -> CreateReplicationGroup
s {$sel:replicationGroupDescription:CreateReplicationGroup' :: Text
replicationGroupDescription = Text
a} :: CreateReplicationGroup)
instance Core.AWSRequest CreateReplicationGroup where
type
AWSResponse CreateReplicationGroup =
CreateReplicationGroupResponse
request :: CreateReplicationGroup -> Request CreateReplicationGroup
request = Service -> CreateReplicationGroup -> Request CreateReplicationGroup
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CreateReplicationGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateReplicationGroup)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateReplicationGroup))
-> Logger
-> Service
-> Proxy CreateReplicationGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateReplicationGroup)))
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
"CreateReplicationGroupResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe ReplicationGroup -> Int -> CreateReplicationGroupResponse
CreateReplicationGroupResponse'
(Maybe ReplicationGroup -> Int -> CreateReplicationGroupResponse)
-> Either String (Maybe ReplicationGroup)
-> Either String (Int -> CreateReplicationGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe ReplicationGroup)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ReplicationGroup")
Either String (Int -> CreateReplicationGroupResponse)
-> Either String Int
-> Either String CreateReplicationGroupResponse
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 CreateReplicationGroup
instance Prelude.NFData CreateReplicationGroup
instance Core.ToHeaders CreateReplicationGroup where
toHeaders :: CreateReplicationGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateReplicationGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateReplicationGroup where
toPath :: CreateReplicationGroup -> ByteString
toPath = ByteString -> CreateReplicationGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateReplicationGroup where
toQuery :: CreateReplicationGroup -> QueryString
toQuery CreateReplicationGroup' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [LogDeliveryConfigurationRequest]
Maybe [NodeGroupConfiguration]
Maybe [Tag]
Maybe (NonEmpty Text)
Maybe Text
Text
replicationGroupDescription :: Text
replicationGroupId :: Text
cacheSecurityGroupNames :: Maybe [Text]
port :: Maybe Int
tags :: Maybe [Tag]
notificationTopicArn :: Maybe Text
snapshotName :: Maybe Text
preferredCacheClusterAZs :: Maybe [Text]
numCacheClusters :: Maybe Int
replicasPerNodeGroup :: Maybe Int
globalReplicationGroupId :: Maybe Text
snapshotRetentionLimit :: Maybe Int
numNodeGroups :: Maybe Int
cacheSubnetGroupName :: Maybe Text
multiAZEnabled :: Maybe Bool
kmsKeyId :: Maybe Text
preferredMaintenanceWindow :: Maybe Text
engine :: Maybe Text
primaryClusterId :: Maybe Text
authToken :: Maybe Text
logDeliveryConfigurations :: Maybe [LogDeliveryConfigurationRequest]
snapshotWindow :: Maybe Text
userGroupIds :: Maybe (NonEmpty Text)
transitEncryptionEnabled :: Maybe Bool
cacheParameterGroupName :: Maybe Text
autoMinorVersionUpgrade :: Maybe Bool
snapshotArns :: Maybe [Text]
securityGroupIds :: Maybe [Text]
atRestEncryptionEnabled :: Maybe Bool
nodeGroupConfiguration :: Maybe [NodeGroupConfiguration]
cacheNodeType :: Maybe Text
engineVersion :: Maybe Text
automaticFailoverEnabled :: Maybe Bool
$sel:replicationGroupDescription:CreateReplicationGroup' :: CreateReplicationGroup -> Text
$sel:replicationGroupId:CreateReplicationGroup' :: CreateReplicationGroup -> Text
$sel:cacheSecurityGroupNames:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Text]
$sel:port:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
$sel:tags:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Tag]
$sel:notificationTopicArn:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:snapshotName:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:preferredCacheClusterAZs:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Text]
$sel:numCacheClusters:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
$sel:replicasPerNodeGroup:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
$sel:globalReplicationGroupId:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:snapshotRetentionLimit:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
$sel:numNodeGroups:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Int
$sel:cacheSubnetGroupName:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:multiAZEnabled:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
$sel:kmsKeyId:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:preferredMaintenanceWindow:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:engine:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:primaryClusterId:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:authToken:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:logDeliveryConfigurations:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [LogDeliveryConfigurationRequest]
$sel:snapshotWindow:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:userGroupIds:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe (NonEmpty Text)
$sel:transitEncryptionEnabled:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
$sel:cacheParameterGroupName:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:autoMinorVersionUpgrade:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
$sel:snapshotArns:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Text]
$sel:securityGroupIds:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [Text]
$sel:atRestEncryptionEnabled:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
$sel:nodeGroupConfiguration:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe [NodeGroupConfiguration]
$sel:cacheNodeType:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:engineVersion:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Text
$sel:automaticFailoverEnabled:CreateReplicationGroup' :: CreateReplicationGroup -> Maybe Bool
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"CreateReplicationGroup" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2015-02-02" :: Prelude.ByteString),
ByteString
"AutomaticFailoverEnabled"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
automaticFailoverEnabled,
ByteString
"EngineVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
engineVersion,
ByteString
"CacheNodeType" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
cacheNodeType,
ByteString
"NodeGroupConfiguration"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [NodeGroupConfiguration] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"NodeGroupConfiguration"
([NodeGroupConfiguration] -> QueryString)
-> Maybe [NodeGroupConfiguration] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [NodeGroupConfiguration]
nodeGroupConfiguration
),
ByteString
"AtRestEncryptionEnabled"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
atRestEncryptionEnabled,
ByteString
"SecurityGroupIds"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"SecurityGroupId"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
securityGroupIds
),
ByteString
"SnapshotArns"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"SnapshotArn"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
snapshotArns
),
ByteString
"AutoMinorVersionUpgrade"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
autoMinorVersionUpgrade,
ByteString
"CacheParameterGroupName"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
cacheParameterGroupName,
ByteString
"TransitEncryptionEnabled"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
transitEncryptionEnabled,
ByteString
"UserGroupIds"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> NonEmpty Text -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" (NonEmpty Text -> QueryString)
-> Maybe (NonEmpty Text) -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
userGroupIds),
ByteString
"SnapshotWindow" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
snapshotWindow,
ByteString
"LogDeliveryConfigurations"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [LogDeliveryConfigurationRequest] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"LogDeliveryConfigurationRequest"
([LogDeliveryConfigurationRequest] -> QueryString)
-> Maybe [LogDeliveryConfigurationRequest] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [LogDeliveryConfigurationRequest]
logDeliveryConfigurations
),
ByteString
"AuthToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
authToken,
ByteString
"PrimaryClusterId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
primaryClusterId,
ByteString
"Engine" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
engine,
ByteString
"PreferredMaintenanceWindow"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
preferredMaintenanceWindow,
ByteString
"KmsKeyId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
kmsKeyId,
ByteString
"MultiAZEnabled" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
multiAZEnabled,
ByteString
"CacheSubnetGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
cacheSubnetGroupName,
ByteString
"NumNodeGroups" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
numNodeGroups,
ByteString
"SnapshotRetentionLimit"
ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
snapshotRetentionLimit,
ByteString
"GlobalReplicationGroupId"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
globalReplicationGroupId,
ByteString
"ReplicasPerNodeGroup" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
replicasPerNodeGroup,
ByteString
"NumCacheClusters" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
numCacheClusters,
ByteString
"PreferredCacheClusterAZs"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"AvailabilityZone"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
preferredCacheClusterAZs
),
ByteString
"SnapshotName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
snapshotName,
ByteString
"NotificationTopicArn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
notificationTopicArn,
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
"Port" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
port,
ByteString
"CacheSecurityGroupNames"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"CacheSecurityGroupName"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
cacheSecurityGroupNames
),
ByteString
"ReplicationGroupId" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
replicationGroupId,
ByteString
"ReplicationGroupDescription"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
replicationGroupDescription
]
data CreateReplicationGroupResponse = CreateReplicationGroupResponse'
{ CreateReplicationGroupResponse -> Maybe ReplicationGroup
replicationGroup :: Prelude.Maybe ReplicationGroup,
CreateReplicationGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateReplicationGroupResponse
-> CreateReplicationGroupResponse -> Bool
(CreateReplicationGroupResponse
-> CreateReplicationGroupResponse -> Bool)
-> (CreateReplicationGroupResponse
-> CreateReplicationGroupResponse -> Bool)
-> Eq CreateReplicationGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateReplicationGroupResponse
-> CreateReplicationGroupResponse -> Bool
$c/= :: CreateReplicationGroupResponse
-> CreateReplicationGroupResponse -> Bool
== :: CreateReplicationGroupResponse
-> CreateReplicationGroupResponse -> Bool
$c== :: CreateReplicationGroupResponse
-> CreateReplicationGroupResponse -> Bool
Prelude.Eq, ReadPrec [CreateReplicationGroupResponse]
ReadPrec CreateReplicationGroupResponse
Int -> ReadS CreateReplicationGroupResponse
ReadS [CreateReplicationGroupResponse]
(Int -> ReadS CreateReplicationGroupResponse)
-> ReadS [CreateReplicationGroupResponse]
-> ReadPrec CreateReplicationGroupResponse
-> ReadPrec [CreateReplicationGroupResponse]
-> Read CreateReplicationGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateReplicationGroupResponse]
$creadListPrec :: ReadPrec [CreateReplicationGroupResponse]
readPrec :: ReadPrec CreateReplicationGroupResponse
$creadPrec :: ReadPrec CreateReplicationGroupResponse
readList :: ReadS [CreateReplicationGroupResponse]
$creadList :: ReadS [CreateReplicationGroupResponse]
readsPrec :: Int -> ReadS CreateReplicationGroupResponse
$creadsPrec :: Int -> ReadS CreateReplicationGroupResponse
Prelude.Read, Int -> CreateReplicationGroupResponse -> ShowS
[CreateReplicationGroupResponse] -> ShowS
CreateReplicationGroupResponse -> String
(Int -> CreateReplicationGroupResponse -> ShowS)
-> (CreateReplicationGroupResponse -> String)
-> ([CreateReplicationGroupResponse] -> ShowS)
-> Show CreateReplicationGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateReplicationGroupResponse] -> ShowS
$cshowList :: [CreateReplicationGroupResponse] -> ShowS
show :: CreateReplicationGroupResponse -> String
$cshow :: CreateReplicationGroupResponse -> String
showsPrec :: Int -> CreateReplicationGroupResponse -> ShowS
$cshowsPrec :: Int -> CreateReplicationGroupResponse -> ShowS
Prelude.Show, (forall x.
CreateReplicationGroupResponse
-> Rep CreateReplicationGroupResponse x)
-> (forall x.
Rep CreateReplicationGroupResponse x
-> CreateReplicationGroupResponse)
-> Generic CreateReplicationGroupResponse
forall x.
Rep CreateReplicationGroupResponse x
-> CreateReplicationGroupResponse
forall x.
CreateReplicationGroupResponse
-> Rep CreateReplicationGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateReplicationGroupResponse x
-> CreateReplicationGroupResponse
$cfrom :: forall x.
CreateReplicationGroupResponse
-> Rep CreateReplicationGroupResponse x
Prelude.Generic)
newCreateReplicationGroupResponse ::
Prelude.Int ->
CreateReplicationGroupResponse
newCreateReplicationGroupResponse :: Int -> CreateReplicationGroupResponse
newCreateReplicationGroupResponse Int
pHttpStatus_ =
CreateReplicationGroupResponse' :: Maybe ReplicationGroup -> Int -> CreateReplicationGroupResponse
CreateReplicationGroupResponse'
{ $sel:replicationGroup:CreateReplicationGroupResponse' :: Maybe ReplicationGroup
replicationGroup =
Maybe ReplicationGroup
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateReplicationGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createReplicationGroupResponse_replicationGroup :: Lens.Lens' CreateReplicationGroupResponse (Prelude.Maybe ReplicationGroup)
createReplicationGroupResponse_replicationGroup :: (Maybe ReplicationGroup -> f (Maybe ReplicationGroup))
-> CreateReplicationGroupResponse
-> f CreateReplicationGroupResponse
createReplicationGroupResponse_replicationGroup = (CreateReplicationGroupResponse -> Maybe ReplicationGroup)
-> (CreateReplicationGroupResponse
-> Maybe ReplicationGroup -> CreateReplicationGroupResponse)
-> Lens
CreateReplicationGroupResponse
CreateReplicationGroupResponse
(Maybe ReplicationGroup)
(Maybe ReplicationGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroupResponse' {Maybe ReplicationGroup
replicationGroup :: Maybe ReplicationGroup
$sel:replicationGroup:CreateReplicationGroupResponse' :: CreateReplicationGroupResponse -> Maybe ReplicationGroup
replicationGroup} -> Maybe ReplicationGroup
replicationGroup) (\s :: CreateReplicationGroupResponse
s@CreateReplicationGroupResponse' {} Maybe ReplicationGroup
a -> CreateReplicationGroupResponse
s {$sel:replicationGroup:CreateReplicationGroupResponse' :: Maybe ReplicationGroup
replicationGroup = Maybe ReplicationGroup
a} :: CreateReplicationGroupResponse)
createReplicationGroupResponse_httpStatus :: Lens.Lens' CreateReplicationGroupResponse Prelude.Int
createReplicationGroupResponse_httpStatus :: (Int -> f Int)
-> CreateReplicationGroupResponse
-> f CreateReplicationGroupResponse
createReplicationGroupResponse_httpStatus = (CreateReplicationGroupResponse -> Int)
-> (CreateReplicationGroupResponse
-> Int -> CreateReplicationGroupResponse)
-> Lens
CreateReplicationGroupResponse
CreateReplicationGroupResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateReplicationGroupResponse' :: CreateReplicationGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateReplicationGroupResponse
s@CreateReplicationGroupResponse' {} Int
a -> CreateReplicationGroupResponse
s {$sel:httpStatus:CreateReplicationGroupResponse' :: Int
httpStatus = Int
a} :: CreateReplicationGroupResponse)
instance
Prelude.NFData
CreateReplicationGroupResponse