{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Redshift.ModifyCluster
(
ModifyCluster (..),
newModifyCluster,
modifyCluster_manualSnapshotRetentionPeriod,
modifyCluster_enhancedVpcRouting,
modifyCluster_masterUserPassword,
modifyCluster_publiclyAccessible,
modifyCluster_maintenanceTrackName,
modifyCluster_hsmConfigurationIdentifier,
modifyCluster_clusterSecurityGroups,
modifyCluster_automatedSnapshotRetentionPeriod,
modifyCluster_encrypted,
modifyCluster_hsmClientCertificateIdentifier,
modifyCluster_numberOfNodes,
modifyCluster_elasticIp,
modifyCluster_preferredMaintenanceWindow,
modifyCluster_kmsKeyId,
modifyCluster_availabilityZone,
modifyCluster_vpcSecurityGroupIds,
modifyCluster_clusterType,
modifyCluster_newClusterIdentifier,
modifyCluster_availabilityZoneRelocation,
modifyCluster_clusterVersion,
modifyCluster_nodeType,
modifyCluster_allowVersionUpgrade,
modifyCluster_clusterParameterGroupName,
modifyCluster_port,
modifyCluster_clusterIdentifier,
ModifyClusterResponse (..),
newModifyClusterResponse,
modifyClusterResponse_cluster,
modifyClusterResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ModifyCluster = ModifyCluster'
{
ModifyCluster -> Maybe Int
manualSnapshotRetentionPeriod :: Prelude.Maybe Prelude.Int,
ModifyCluster -> Maybe Bool
enhancedVpcRouting :: Prelude.Maybe Prelude.Bool,
ModifyCluster -> Maybe Text
masterUserPassword :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Bool
publiclyAccessible :: Prelude.Maybe Prelude.Bool,
ModifyCluster -> Maybe Text
maintenanceTrackName :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Text
hsmConfigurationIdentifier :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe [Text]
clusterSecurityGroups :: Prelude.Maybe [Prelude.Text],
ModifyCluster -> Maybe Int
automatedSnapshotRetentionPeriod :: Prelude.Maybe Prelude.Int,
ModifyCluster -> Maybe Bool
encrypted :: Prelude.Maybe Prelude.Bool,
ModifyCluster -> Maybe Text
hsmClientCertificateIdentifier :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Int
numberOfNodes :: Prelude.Maybe Prelude.Int,
ModifyCluster -> Maybe Text
elasticIp :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Text
preferredMaintenanceWindow :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe [Text]
vpcSecurityGroupIds :: Prelude.Maybe [Prelude.Text],
ModifyCluster -> Maybe Text
clusterType :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Text
newClusterIdentifier' :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Bool
availabilityZoneRelocation :: Prelude.Maybe Prelude.Bool,
ModifyCluster -> Maybe Text
clusterVersion :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Text
nodeType :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Bool
allowVersionUpgrade :: Prelude.Maybe Prelude.Bool,
ModifyCluster -> Maybe Text
clusterParameterGroupName :: Prelude.Maybe Prelude.Text,
ModifyCluster -> Maybe Int
port :: Prelude.Maybe Prelude.Int,
ModifyCluster -> Text
clusterIdentifier :: Prelude.Text
}
deriving (ModifyCluster -> ModifyCluster -> Bool
(ModifyCluster -> ModifyCluster -> Bool)
-> (ModifyCluster -> ModifyCluster -> Bool) -> Eq ModifyCluster
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyCluster -> ModifyCluster -> Bool
$c/= :: ModifyCluster -> ModifyCluster -> Bool
== :: ModifyCluster -> ModifyCluster -> Bool
$c== :: ModifyCluster -> ModifyCluster -> Bool
Prelude.Eq, ReadPrec [ModifyCluster]
ReadPrec ModifyCluster
Int -> ReadS ModifyCluster
ReadS [ModifyCluster]
(Int -> ReadS ModifyCluster)
-> ReadS [ModifyCluster]
-> ReadPrec ModifyCluster
-> ReadPrec [ModifyCluster]
-> Read ModifyCluster
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyCluster]
$creadListPrec :: ReadPrec [ModifyCluster]
readPrec :: ReadPrec ModifyCluster
$creadPrec :: ReadPrec ModifyCluster
readList :: ReadS [ModifyCluster]
$creadList :: ReadS [ModifyCluster]
readsPrec :: Int -> ReadS ModifyCluster
$creadsPrec :: Int -> ReadS ModifyCluster
Prelude.Read, Int -> ModifyCluster -> ShowS
[ModifyCluster] -> ShowS
ModifyCluster -> String
(Int -> ModifyCluster -> ShowS)
-> (ModifyCluster -> String)
-> ([ModifyCluster] -> ShowS)
-> Show ModifyCluster
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyCluster] -> ShowS
$cshowList :: [ModifyCluster] -> ShowS
show :: ModifyCluster -> String
$cshow :: ModifyCluster -> String
showsPrec :: Int -> ModifyCluster -> ShowS
$cshowsPrec :: Int -> ModifyCluster -> ShowS
Prelude.Show, (forall x. ModifyCluster -> Rep ModifyCluster x)
-> (forall x. Rep ModifyCluster x -> ModifyCluster)
-> Generic ModifyCluster
forall x. Rep ModifyCluster x -> ModifyCluster
forall x. ModifyCluster -> Rep ModifyCluster x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModifyCluster x -> ModifyCluster
$cfrom :: forall x. ModifyCluster -> Rep ModifyCluster x
Prelude.Generic)
newModifyCluster ::
Prelude.Text ->
ModifyCluster
newModifyCluster :: Text -> ModifyCluster
newModifyCluster Text
pClusterIdentifier_ =
ModifyCluster' :: Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Int
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Text
-> ModifyCluster
ModifyCluster'
{ $sel:manualSnapshotRetentionPeriod:ModifyCluster' :: Maybe Int
manualSnapshotRetentionPeriod =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:enhancedVpcRouting:ModifyCluster' :: Maybe Bool
enhancedVpcRouting = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:masterUserPassword:ModifyCluster' :: Maybe Text
masterUserPassword = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:publiclyAccessible:ModifyCluster' :: Maybe Bool
publiclyAccessible = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:maintenanceTrackName:ModifyCluster' :: Maybe Text
maintenanceTrackName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:hsmConfigurationIdentifier:ModifyCluster' :: Maybe Text
hsmConfigurationIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clusterSecurityGroups:ModifyCluster' :: Maybe [Text]
clusterSecurityGroups = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:automatedSnapshotRetentionPeriod:ModifyCluster' :: Maybe Int
automatedSnapshotRetentionPeriod = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:encrypted:ModifyCluster' :: Maybe Bool
encrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:hsmClientCertificateIdentifier:ModifyCluster' :: Maybe Text
hsmClientCertificateIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:numberOfNodes:ModifyCluster' :: Maybe Int
numberOfNodes = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:elasticIp:ModifyCluster' :: Maybe Text
elasticIp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:preferredMaintenanceWindow:ModifyCluster' :: Maybe Text
preferredMaintenanceWindow = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:ModifyCluster' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZone:ModifyCluster' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vpcSecurityGroupIds:ModifyCluster' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:clusterType:ModifyCluster' :: Maybe Text
clusterType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:newClusterIdentifier':ModifyCluster' :: Maybe Text
newClusterIdentifier' = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZoneRelocation:ModifyCluster' :: Maybe Bool
availabilityZoneRelocation = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:clusterVersion:ModifyCluster' :: Maybe Text
clusterVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nodeType:ModifyCluster' :: Maybe Text
nodeType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:allowVersionUpgrade:ModifyCluster' :: Maybe Bool
allowVersionUpgrade = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:clusterParameterGroupName:ModifyCluster' :: Maybe Text
clusterParameterGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:port:ModifyCluster' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:clusterIdentifier:ModifyCluster' :: Text
clusterIdentifier = Text
pClusterIdentifier_
}
modifyCluster_manualSnapshotRetentionPeriod :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Int)
modifyCluster_manualSnapshotRetentionPeriod :: (Maybe Int -> f (Maybe Int)) -> ModifyCluster -> f ModifyCluster
modifyCluster_manualSnapshotRetentionPeriod = (ModifyCluster -> Maybe Int)
-> (ModifyCluster -> Maybe Int -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Int
manualSnapshotRetentionPeriod :: Maybe Int
$sel:manualSnapshotRetentionPeriod:ModifyCluster' :: ModifyCluster -> Maybe Int
manualSnapshotRetentionPeriod} -> Maybe Int
manualSnapshotRetentionPeriod) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Int
a -> ModifyCluster
s {$sel:manualSnapshotRetentionPeriod:ModifyCluster' :: Maybe Int
manualSnapshotRetentionPeriod = Maybe Int
a} :: ModifyCluster)
modifyCluster_enhancedVpcRouting :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Bool)
modifyCluster_enhancedVpcRouting :: (Maybe Bool -> f (Maybe Bool)) -> ModifyCluster -> f ModifyCluster
modifyCluster_enhancedVpcRouting = (ModifyCluster -> Maybe Bool)
-> (ModifyCluster -> Maybe Bool -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Bool
enhancedVpcRouting :: Maybe Bool
$sel:enhancedVpcRouting:ModifyCluster' :: ModifyCluster -> Maybe Bool
enhancedVpcRouting} -> Maybe Bool
enhancedVpcRouting) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Bool
a -> ModifyCluster
s {$sel:enhancedVpcRouting:ModifyCluster' :: Maybe Bool
enhancedVpcRouting = Maybe Bool
a} :: ModifyCluster)
modifyCluster_masterUserPassword :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_masterUserPassword :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_masterUserPassword = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
masterUserPassword :: Maybe Text
$sel:masterUserPassword:ModifyCluster' :: ModifyCluster -> Maybe Text
masterUserPassword} -> Maybe Text
masterUserPassword) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:masterUserPassword:ModifyCluster' :: Maybe Text
masterUserPassword = Maybe Text
a} :: ModifyCluster)
modifyCluster_publiclyAccessible :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Bool)
modifyCluster_publiclyAccessible :: (Maybe Bool -> f (Maybe Bool)) -> ModifyCluster -> f ModifyCluster
modifyCluster_publiclyAccessible = (ModifyCluster -> Maybe Bool)
-> (ModifyCluster -> Maybe Bool -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Bool
publiclyAccessible :: Maybe Bool
$sel:publiclyAccessible:ModifyCluster' :: ModifyCluster -> Maybe Bool
publiclyAccessible} -> Maybe Bool
publiclyAccessible) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Bool
a -> ModifyCluster
s {$sel:publiclyAccessible:ModifyCluster' :: Maybe Bool
publiclyAccessible = Maybe Bool
a} :: ModifyCluster)
modifyCluster_maintenanceTrackName :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_maintenanceTrackName :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_maintenanceTrackName = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
maintenanceTrackName :: Maybe Text
$sel:maintenanceTrackName:ModifyCluster' :: ModifyCluster -> Maybe Text
maintenanceTrackName} -> Maybe Text
maintenanceTrackName) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:maintenanceTrackName:ModifyCluster' :: Maybe Text
maintenanceTrackName = Maybe Text
a} :: ModifyCluster)
modifyCluster_hsmConfigurationIdentifier :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_hsmConfigurationIdentifier :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_hsmConfigurationIdentifier = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
hsmConfigurationIdentifier :: Maybe Text
$sel:hsmConfigurationIdentifier:ModifyCluster' :: ModifyCluster -> Maybe Text
hsmConfigurationIdentifier} -> Maybe Text
hsmConfigurationIdentifier) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:hsmConfigurationIdentifier:ModifyCluster' :: Maybe Text
hsmConfigurationIdentifier = Maybe Text
a} :: ModifyCluster)
modifyCluster_clusterSecurityGroups :: Lens.Lens' ModifyCluster (Prelude.Maybe [Prelude.Text])
modifyCluster_clusterSecurityGroups :: (Maybe [Text] -> f (Maybe [Text]))
-> ModifyCluster -> f ModifyCluster
modifyCluster_clusterSecurityGroups = (ModifyCluster -> Maybe [Text])
-> (ModifyCluster -> Maybe [Text] -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe [Text]
clusterSecurityGroups :: Maybe [Text]
$sel:clusterSecurityGroups:ModifyCluster' :: ModifyCluster -> Maybe [Text]
clusterSecurityGroups} -> Maybe [Text]
clusterSecurityGroups) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe [Text]
a -> ModifyCluster
s {$sel:clusterSecurityGroups:ModifyCluster' :: Maybe [Text]
clusterSecurityGroups = Maybe [Text]
a} :: ModifyCluster) ((Maybe [Text] -> f (Maybe [Text]))
-> ModifyCluster -> f ModifyCluster)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ModifyCluster
-> f ModifyCluster
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
modifyCluster_automatedSnapshotRetentionPeriod :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Int)
modifyCluster_automatedSnapshotRetentionPeriod :: (Maybe Int -> f (Maybe Int)) -> ModifyCluster -> f ModifyCluster
modifyCluster_automatedSnapshotRetentionPeriod = (ModifyCluster -> Maybe Int)
-> (ModifyCluster -> Maybe Int -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Int
automatedSnapshotRetentionPeriod :: Maybe Int
$sel:automatedSnapshotRetentionPeriod:ModifyCluster' :: ModifyCluster -> Maybe Int
automatedSnapshotRetentionPeriod} -> Maybe Int
automatedSnapshotRetentionPeriod) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Int
a -> ModifyCluster
s {$sel:automatedSnapshotRetentionPeriod:ModifyCluster' :: Maybe Int
automatedSnapshotRetentionPeriod = Maybe Int
a} :: ModifyCluster)
modifyCluster_encrypted :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Bool)
modifyCluster_encrypted :: (Maybe Bool -> f (Maybe Bool)) -> ModifyCluster -> f ModifyCluster
modifyCluster_encrypted = (ModifyCluster -> Maybe Bool)
-> (ModifyCluster -> Maybe Bool -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Bool
encrypted :: Maybe Bool
$sel:encrypted:ModifyCluster' :: ModifyCluster -> Maybe Bool
encrypted} -> Maybe Bool
encrypted) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Bool
a -> ModifyCluster
s {$sel:encrypted:ModifyCluster' :: Maybe Bool
encrypted = Maybe Bool
a} :: ModifyCluster)
modifyCluster_hsmClientCertificateIdentifier :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_hsmClientCertificateIdentifier :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_hsmClientCertificateIdentifier = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
hsmClientCertificateIdentifier :: Maybe Text
$sel:hsmClientCertificateIdentifier:ModifyCluster' :: ModifyCluster -> Maybe Text
hsmClientCertificateIdentifier} -> Maybe Text
hsmClientCertificateIdentifier) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:hsmClientCertificateIdentifier:ModifyCluster' :: Maybe Text
hsmClientCertificateIdentifier = Maybe Text
a} :: ModifyCluster)
modifyCluster_numberOfNodes :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Int)
modifyCluster_numberOfNodes :: (Maybe Int -> f (Maybe Int)) -> ModifyCluster -> f ModifyCluster
modifyCluster_numberOfNodes = (ModifyCluster -> Maybe Int)
-> (ModifyCluster -> Maybe Int -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Int
numberOfNodes :: Maybe Int
$sel:numberOfNodes:ModifyCluster' :: ModifyCluster -> Maybe Int
numberOfNodes} -> Maybe Int
numberOfNodes) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Int
a -> ModifyCluster
s {$sel:numberOfNodes:ModifyCluster' :: Maybe Int
numberOfNodes = Maybe Int
a} :: ModifyCluster)
modifyCluster_elasticIp :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_elasticIp :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_elasticIp = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
elasticIp :: Maybe Text
$sel:elasticIp:ModifyCluster' :: ModifyCluster -> Maybe Text
elasticIp} -> Maybe Text
elasticIp) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:elasticIp:ModifyCluster' :: Maybe Text
elasticIp = Maybe Text
a} :: ModifyCluster)
modifyCluster_preferredMaintenanceWindow :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_preferredMaintenanceWindow :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_preferredMaintenanceWindow = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
preferredMaintenanceWindow :: Maybe Text
$sel:preferredMaintenanceWindow:ModifyCluster' :: ModifyCluster -> Maybe Text
preferredMaintenanceWindow} -> Maybe Text
preferredMaintenanceWindow) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:preferredMaintenanceWindow:ModifyCluster' :: Maybe Text
preferredMaintenanceWindow = Maybe Text
a} :: ModifyCluster)
modifyCluster_kmsKeyId :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_kmsKeyId :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_kmsKeyId = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:ModifyCluster' :: ModifyCluster -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:kmsKeyId:ModifyCluster' :: Maybe Text
kmsKeyId = Maybe Text
a} :: ModifyCluster)
modifyCluster_availabilityZone :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_availabilityZone :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_availabilityZone = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:ModifyCluster' :: ModifyCluster -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:availabilityZone:ModifyCluster' :: Maybe Text
availabilityZone = Maybe Text
a} :: ModifyCluster)
modifyCluster_vpcSecurityGroupIds :: Lens.Lens' ModifyCluster (Prelude.Maybe [Prelude.Text])
modifyCluster_vpcSecurityGroupIds :: (Maybe [Text] -> f (Maybe [Text]))
-> ModifyCluster -> f ModifyCluster
modifyCluster_vpcSecurityGroupIds = (ModifyCluster -> Maybe [Text])
-> (ModifyCluster -> Maybe [Text] -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe [Text]
vpcSecurityGroupIds :: Maybe [Text]
$sel:vpcSecurityGroupIds:ModifyCluster' :: ModifyCluster -> Maybe [Text]
vpcSecurityGroupIds} -> Maybe [Text]
vpcSecurityGroupIds) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe [Text]
a -> ModifyCluster
s {$sel:vpcSecurityGroupIds:ModifyCluster' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
a} :: ModifyCluster) ((Maybe [Text] -> f (Maybe [Text]))
-> ModifyCluster -> f ModifyCluster)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ModifyCluster
-> f ModifyCluster
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
modifyCluster_clusterType :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_clusterType :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_clusterType = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
clusterType :: Maybe Text
$sel:clusterType:ModifyCluster' :: ModifyCluster -> Maybe Text
clusterType} -> Maybe Text
clusterType) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:clusterType:ModifyCluster' :: Maybe Text
clusterType = Maybe Text
a} :: ModifyCluster)
modifyCluster_newClusterIdentifier :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_newClusterIdentifier :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_newClusterIdentifier = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
newClusterIdentifier' :: Maybe Text
$sel:newClusterIdentifier':ModifyCluster' :: ModifyCluster -> Maybe Text
newClusterIdentifier'} -> Maybe Text
newClusterIdentifier') (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:newClusterIdentifier':ModifyCluster' :: Maybe Text
newClusterIdentifier' = Maybe Text
a} :: ModifyCluster)
modifyCluster_availabilityZoneRelocation :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Bool)
modifyCluster_availabilityZoneRelocation :: (Maybe Bool -> f (Maybe Bool)) -> ModifyCluster -> f ModifyCluster
modifyCluster_availabilityZoneRelocation = (ModifyCluster -> Maybe Bool)
-> (ModifyCluster -> Maybe Bool -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Bool
availabilityZoneRelocation :: Maybe Bool
$sel:availabilityZoneRelocation:ModifyCluster' :: ModifyCluster -> Maybe Bool
availabilityZoneRelocation} -> Maybe Bool
availabilityZoneRelocation) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Bool
a -> ModifyCluster
s {$sel:availabilityZoneRelocation:ModifyCluster' :: Maybe Bool
availabilityZoneRelocation = Maybe Bool
a} :: ModifyCluster)
modifyCluster_clusterVersion :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_clusterVersion :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_clusterVersion = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
clusterVersion :: Maybe Text
$sel:clusterVersion:ModifyCluster' :: ModifyCluster -> Maybe Text
clusterVersion} -> Maybe Text
clusterVersion) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:clusterVersion:ModifyCluster' :: Maybe Text
clusterVersion = Maybe Text
a} :: ModifyCluster)
modifyCluster_nodeType :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_nodeType :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_nodeType = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
nodeType :: Maybe Text
$sel:nodeType:ModifyCluster' :: ModifyCluster -> Maybe Text
nodeType} -> Maybe Text
nodeType) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:nodeType:ModifyCluster' :: Maybe Text
nodeType = Maybe Text
a} :: ModifyCluster)
modifyCluster_allowVersionUpgrade :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Bool)
modifyCluster_allowVersionUpgrade :: (Maybe Bool -> f (Maybe Bool)) -> ModifyCluster -> f ModifyCluster
modifyCluster_allowVersionUpgrade = (ModifyCluster -> Maybe Bool)
-> (ModifyCluster -> Maybe Bool -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Bool
allowVersionUpgrade :: Maybe Bool
$sel:allowVersionUpgrade:ModifyCluster' :: ModifyCluster -> Maybe Bool
allowVersionUpgrade} -> Maybe Bool
allowVersionUpgrade) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Bool
a -> ModifyCluster
s {$sel:allowVersionUpgrade:ModifyCluster' :: Maybe Bool
allowVersionUpgrade = Maybe Bool
a} :: ModifyCluster)
modifyCluster_clusterParameterGroupName :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Text)
modifyCluster_clusterParameterGroupName :: (Maybe Text -> f (Maybe Text)) -> ModifyCluster -> f ModifyCluster
modifyCluster_clusterParameterGroupName = (ModifyCluster -> Maybe Text)
-> (ModifyCluster -> Maybe Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Text
clusterParameterGroupName :: Maybe Text
$sel:clusterParameterGroupName:ModifyCluster' :: ModifyCluster -> Maybe Text
clusterParameterGroupName} -> Maybe Text
clusterParameterGroupName) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Text
a -> ModifyCluster
s {$sel:clusterParameterGroupName:ModifyCluster' :: Maybe Text
clusterParameterGroupName = Maybe Text
a} :: ModifyCluster)
modifyCluster_port :: Lens.Lens' ModifyCluster (Prelude.Maybe Prelude.Int)
modifyCluster_port :: (Maybe Int -> f (Maybe Int)) -> ModifyCluster -> f ModifyCluster
modifyCluster_port = (ModifyCluster -> Maybe Int)
-> (ModifyCluster -> Maybe Int -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Maybe Int
port :: Maybe Int
$sel:port:ModifyCluster' :: ModifyCluster -> Maybe Int
port} -> Maybe Int
port) (\s :: ModifyCluster
s@ModifyCluster' {} Maybe Int
a -> ModifyCluster
s {$sel:port:ModifyCluster' :: Maybe Int
port = Maybe Int
a} :: ModifyCluster)
modifyCluster_clusterIdentifier :: Lens.Lens' ModifyCluster Prelude.Text
modifyCluster_clusterIdentifier :: (Text -> f Text) -> ModifyCluster -> f ModifyCluster
modifyCluster_clusterIdentifier = (ModifyCluster -> Text)
-> (ModifyCluster -> Text -> ModifyCluster)
-> Lens ModifyCluster ModifyCluster Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyCluster' {Text
clusterIdentifier :: Text
$sel:clusterIdentifier:ModifyCluster' :: ModifyCluster -> Text
clusterIdentifier} -> Text
clusterIdentifier) (\s :: ModifyCluster
s@ModifyCluster' {} Text
a -> ModifyCluster
s {$sel:clusterIdentifier:ModifyCluster' :: Text
clusterIdentifier = Text
a} :: ModifyCluster)
instance Core.AWSRequest ModifyCluster where
type
AWSResponse ModifyCluster =
ModifyClusterResponse
request :: ModifyCluster -> Request ModifyCluster
request = Service -> ModifyCluster -> Request ModifyCluster
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ModifyCluster
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ModifyCluster)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ModifyCluster))
-> Logger
-> Service
-> Proxy ModifyCluster
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ModifyCluster)))
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
"ModifyClusterResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Cluster -> Int -> ModifyClusterResponse
ModifyClusterResponse'
(Maybe Cluster -> Int -> ModifyClusterResponse)
-> Either String (Maybe Cluster)
-> Either String (Int -> ModifyClusterResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Cluster)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Cluster")
Either String (Int -> ModifyClusterResponse)
-> Either String Int -> Either String ModifyClusterResponse
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 ModifyCluster
instance Prelude.NFData ModifyCluster
instance Core.ToHeaders ModifyCluster where
toHeaders :: ModifyCluster -> ResponseHeaders
toHeaders = ResponseHeaders -> ModifyCluster -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ModifyCluster where
toPath :: ModifyCluster -> ByteString
toPath = ByteString -> ModifyCluster -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ModifyCluster where
toQuery :: ModifyCluster -> QueryString
toQuery ModifyCluster' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe Text
Text
clusterIdentifier :: Text
port :: Maybe Int
clusterParameterGroupName :: Maybe Text
allowVersionUpgrade :: Maybe Bool
nodeType :: Maybe Text
clusterVersion :: Maybe Text
availabilityZoneRelocation :: Maybe Bool
newClusterIdentifier' :: Maybe Text
clusterType :: Maybe Text
vpcSecurityGroupIds :: Maybe [Text]
availabilityZone :: Maybe Text
kmsKeyId :: Maybe Text
preferredMaintenanceWindow :: Maybe Text
elasticIp :: Maybe Text
numberOfNodes :: Maybe Int
hsmClientCertificateIdentifier :: Maybe Text
encrypted :: Maybe Bool
automatedSnapshotRetentionPeriod :: Maybe Int
clusterSecurityGroups :: Maybe [Text]
hsmConfigurationIdentifier :: Maybe Text
maintenanceTrackName :: Maybe Text
publiclyAccessible :: Maybe Bool
masterUserPassword :: Maybe Text
enhancedVpcRouting :: Maybe Bool
manualSnapshotRetentionPeriod :: Maybe Int
$sel:clusterIdentifier:ModifyCluster' :: ModifyCluster -> Text
$sel:port:ModifyCluster' :: ModifyCluster -> Maybe Int
$sel:clusterParameterGroupName:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:allowVersionUpgrade:ModifyCluster' :: ModifyCluster -> Maybe Bool
$sel:nodeType:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:clusterVersion:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:availabilityZoneRelocation:ModifyCluster' :: ModifyCluster -> Maybe Bool
$sel:newClusterIdentifier':ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:clusterType:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:vpcSecurityGroupIds:ModifyCluster' :: ModifyCluster -> Maybe [Text]
$sel:availabilityZone:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:kmsKeyId:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:preferredMaintenanceWindow:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:elasticIp:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:numberOfNodes:ModifyCluster' :: ModifyCluster -> Maybe Int
$sel:hsmClientCertificateIdentifier:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:encrypted:ModifyCluster' :: ModifyCluster -> Maybe Bool
$sel:automatedSnapshotRetentionPeriod:ModifyCluster' :: ModifyCluster -> Maybe Int
$sel:clusterSecurityGroups:ModifyCluster' :: ModifyCluster -> Maybe [Text]
$sel:hsmConfigurationIdentifier:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:maintenanceTrackName:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:publiclyAccessible:ModifyCluster' :: ModifyCluster -> Maybe Bool
$sel:masterUserPassword:ModifyCluster' :: ModifyCluster -> Maybe Text
$sel:enhancedVpcRouting:ModifyCluster' :: ModifyCluster -> Maybe Bool
$sel:manualSnapshotRetentionPeriod:ModifyCluster' :: ModifyCluster -> Maybe Int
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"ModifyCluster" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
ByteString
"ManualSnapshotRetentionPeriod"
ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
manualSnapshotRetentionPeriod,
ByteString
"EnhancedVpcRouting" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
enhancedVpcRouting,
ByteString
"MasterUserPassword" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
masterUserPassword,
ByteString
"PubliclyAccessible" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
publiclyAccessible,
ByteString
"MaintenanceTrackName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
maintenanceTrackName,
ByteString
"HsmConfigurationIdentifier"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
hsmConfigurationIdentifier,
ByteString
"ClusterSecurityGroups"
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
"ClusterSecurityGroupName"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
clusterSecurityGroups
),
ByteString
"AutomatedSnapshotRetentionPeriod"
ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
automatedSnapshotRetentionPeriod,
ByteString
"Encrypted" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
encrypted,
ByteString
"HsmClientCertificateIdentifier"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
hsmClientCertificateIdentifier,
ByteString
"NumberOfNodes" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
numberOfNodes,
ByteString
"ElasticIp" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
elasticIp,
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
"AvailabilityZone" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
availabilityZone,
ByteString
"VpcSecurityGroupIds"
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
"VpcSecurityGroupId"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
vpcSecurityGroupIds
),
ByteString
"ClusterType" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
clusterType,
ByteString
"NewClusterIdentifier" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
newClusterIdentifier',
ByteString
"AvailabilityZoneRelocation"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
availabilityZoneRelocation,
ByteString
"ClusterVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
clusterVersion,
ByteString
"NodeType" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nodeType,
ByteString
"AllowVersionUpgrade" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
allowVersionUpgrade,
ByteString
"ClusterParameterGroupName"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
clusterParameterGroupName,
ByteString
"Port" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
port,
ByteString
"ClusterIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
clusterIdentifier
]
data ModifyClusterResponse = ModifyClusterResponse'
{ ModifyClusterResponse -> Maybe Cluster
cluster :: Prelude.Maybe Cluster,
ModifyClusterResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ModifyClusterResponse -> ModifyClusterResponse -> Bool
(ModifyClusterResponse -> ModifyClusterResponse -> Bool)
-> (ModifyClusterResponse -> ModifyClusterResponse -> Bool)
-> Eq ModifyClusterResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyClusterResponse -> ModifyClusterResponse -> Bool
$c/= :: ModifyClusterResponse -> ModifyClusterResponse -> Bool
== :: ModifyClusterResponse -> ModifyClusterResponse -> Bool
$c== :: ModifyClusterResponse -> ModifyClusterResponse -> Bool
Prelude.Eq, ReadPrec [ModifyClusterResponse]
ReadPrec ModifyClusterResponse
Int -> ReadS ModifyClusterResponse
ReadS [ModifyClusterResponse]
(Int -> ReadS ModifyClusterResponse)
-> ReadS [ModifyClusterResponse]
-> ReadPrec ModifyClusterResponse
-> ReadPrec [ModifyClusterResponse]
-> Read ModifyClusterResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyClusterResponse]
$creadListPrec :: ReadPrec [ModifyClusterResponse]
readPrec :: ReadPrec ModifyClusterResponse
$creadPrec :: ReadPrec ModifyClusterResponse
readList :: ReadS [ModifyClusterResponse]
$creadList :: ReadS [ModifyClusterResponse]
readsPrec :: Int -> ReadS ModifyClusterResponse
$creadsPrec :: Int -> ReadS ModifyClusterResponse
Prelude.Read, Int -> ModifyClusterResponse -> ShowS
[ModifyClusterResponse] -> ShowS
ModifyClusterResponse -> String
(Int -> ModifyClusterResponse -> ShowS)
-> (ModifyClusterResponse -> String)
-> ([ModifyClusterResponse] -> ShowS)
-> Show ModifyClusterResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyClusterResponse] -> ShowS
$cshowList :: [ModifyClusterResponse] -> ShowS
show :: ModifyClusterResponse -> String
$cshow :: ModifyClusterResponse -> String
showsPrec :: Int -> ModifyClusterResponse -> ShowS
$cshowsPrec :: Int -> ModifyClusterResponse -> ShowS
Prelude.Show, (forall x. ModifyClusterResponse -> Rep ModifyClusterResponse x)
-> (forall x. Rep ModifyClusterResponse x -> ModifyClusterResponse)
-> Generic ModifyClusterResponse
forall x. Rep ModifyClusterResponse x -> ModifyClusterResponse
forall x. ModifyClusterResponse -> Rep ModifyClusterResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModifyClusterResponse x -> ModifyClusterResponse
$cfrom :: forall x. ModifyClusterResponse -> Rep ModifyClusterResponse x
Prelude.Generic)
newModifyClusterResponse ::
Prelude.Int ->
ModifyClusterResponse
newModifyClusterResponse :: Int -> ModifyClusterResponse
newModifyClusterResponse Int
pHttpStatus_ =
ModifyClusterResponse' :: Maybe Cluster -> Int -> ModifyClusterResponse
ModifyClusterResponse'
{ $sel:cluster:ModifyClusterResponse' :: Maybe Cluster
cluster = Maybe Cluster
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ModifyClusterResponse' :: Int
httpStatus = Int
pHttpStatus_
}
modifyClusterResponse_cluster :: Lens.Lens' ModifyClusterResponse (Prelude.Maybe Cluster)
modifyClusterResponse_cluster :: (Maybe Cluster -> f (Maybe Cluster))
-> ModifyClusterResponse -> f ModifyClusterResponse
modifyClusterResponse_cluster = (ModifyClusterResponse -> Maybe Cluster)
-> (ModifyClusterResponse
-> Maybe Cluster -> ModifyClusterResponse)
-> Lens
ModifyClusterResponse
ModifyClusterResponse
(Maybe Cluster)
(Maybe Cluster)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyClusterResponse' {Maybe Cluster
cluster :: Maybe Cluster
$sel:cluster:ModifyClusterResponse' :: ModifyClusterResponse -> Maybe Cluster
cluster} -> Maybe Cluster
cluster) (\s :: ModifyClusterResponse
s@ModifyClusterResponse' {} Maybe Cluster
a -> ModifyClusterResponse
s {$sel:cluster:ModifyClusterResponse' :: Maybe Cluster
cluster = Maybe Cluster
a} :: ModifyClusterResponse)
modifyClusterResponse_httpStatus :: Lens.Lens' ModifyClusterResponse Prelude.Int
modifyClusterResponse_httpStatus :: (Int -> f Int) -> ModifyClusterResponse -> f ModifyClusterResponse
modifyClusterResponse_httpStatus = (ModifyClusterResponse -> Int)
-> (ModifyClusterResponse -> Int -> ModifyClusterResponse)
-> Lens ModifyClusterResponse ModifyClusterResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyClusterResponse' {Int
httpStatus :: Int
$sel:httpStatus:ModifyClusterResponse' :: ModifyClusterResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ModifyClusterResponse
s@ModifyClusterResponse' {} Int
a -> ModifyClusterResponse
s {$sel:httpStatus:ModifyClusterResponse' :: Int
httpStatus = Int
a} :: ModifyClusterResponse)
instance Prelude.NFData ModifyClusterResponse