{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.MGN.Types.ReplicationConfiguration where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MGN.Types.ReplicationConfigurationDataPlaneRouting
import Amazonka.MGN.Types.ReplicationConfigurationDefaultLargeStagingDiskType
import Amazonka.MGN.Types.ReplicationConfigurationEbsEncryption
import Amazonka.MGN.Types.ReplicationConfigurationReplicatedDisk
import qualified Amazonka.Prelude as Prelude
data ReplicationConfiguration = ReplicationConfiguration'
{
ReplicationConfiguration -> Maybe Bool
createPublicIP :: Prelude.Maybe Prelude.Bool,
ReplicationConfiguration -> Maybe (Sensitive (HashMap Text Text))
stagingAreaTags :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
ReplicationConfiguration -> Maybe Text
stagingAreaSubnetId :: Prelude.Maybe Prelude.Text,
ReplicationConfiguration -> Maybe Text
replicationServerInstanceType :: Prelude.Maybe Prelude.Text,
ReplicationConfiguration
-> Maybe ReplicationConfigurationEbsEncryption
ebsEncryption :: Prelude.Maybe ReplicationConfigurationEbsEncryption,
ReplicationConfiguration -> Maybe Bool
associateDefaultSecurityGroup :: Prelude.Maybe Prelude.Bool,
:: Prelude.Maybe [Prelude.Text],
ReplicationConfiguration -> Maybe Text
ebsEncryptionKeyArn :: Prelude.Maybe Prelude.Text,
ReplicationConfiguration -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ReplicationConfiguration
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType :: Prelude.Maybe ReplicationConfigurationDefaultLargeStagingDiskType,
ReplicationConfiguration -> Maybe Natural
bandwidthThrottling :: Prelude.Maybe Prelude.Natural,
ReplicationConfiguration
-> Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting :: Prelude.Maybe ReplicationConfigurationDataPlaneRouting,
ReplicationConfiguration -> Maybe Text
sourceServerID :: Prelude.Maybe Prelude.Text,
ReplicationConfiguration
-> Maybe [ReplicationConfigurationReplicatedDisk]
replicatedDisks :: Prelude.Maybe [ReplicationConfigurationReplicatedDisk],
ReplicationConfiguration -> Maybe Bool
useDedicatedReplicationServer :: Prelude.Maybe Prelude.Bool
}
deriving (ReplicationConfiguration -> ReplicationConfiguration -> Bool
(ReplicationConfiguration -> ReplicationConfiguration -> Bool)
-> (ReplicationConfiguration -> ReplicationConfiguration -> Bool)
-> Eq ReplicationConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReplicationConfiguration -> ReplicationConfiguration -> Bool
$c/= :: ReplicationConfiguration -> ReplicationConfiguration -> Bool
== :: ReplicationConfiguration -> ReplicationConfiguration -> Bool
$c== :: ReplicationConfiguration -> ReplicationConfiguration -> Bool
Prelude.Eq, Int -> ReplicationConfiguration -> ShowS
[ReplicationConfiguration] -> ShowS
ReplicationConfiguration -> String
(Int -> ReplicationConfiguration -> ShowS)
-> (ReplicationConfiguration -> String)
-> ([ReplicationConfiguration] -> ShowS)
-> Show ReplicationConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReplicationConfiguration] -> ShowS
$cshowList :: [ReplicationConfiguration] -> ShowS
show :: ReplicationConfiguration -> String
$cshow :: ReplicationConfiguration -> String
showsPrec :: Int -> ReplicationConfiguration -> ShowS
$cshowsPrec :: Int -> ReplicationConfiguration -> ShowS
Prelude.Show, (forall x.
ReplicationConfiguration -> Rep ReplicationConfiguration x)
-> (forall x.
Rep ReplicationConfiguration x -> ReplicationConfiguration)
-> Generic ReplicationConfiguration
forall x.
Rep ReplicationConfiguration x -> ReplicationConfiguration
forall x.
ReplicationConfiguration -> Rep ReplicationConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ReplicationConfiguration x -> ReplicationConfiguration
$cfrom :: forall x.
ReplicationConfiguration -> Rep ReplicationConfiguration x
Prelude.Generic)
newReplicationConfiguration ::
ReplicationConfiguration
newReplicationConfiguration :: ReplicationConfiguration
newReplicationConfiguration =
ReplicationConfiguration' :: Maybe Bool
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration
ReplicationConfiguration'
{ $sel:createPublicIP:ReplicationConfiguration' :: Maybe Bool
createPublicIP =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:stagingAreaTags:ReplicationConfiguration' :: Maybe (Sensitive (HashMap Text Text))
stagingAreaTags = Maybe (Sensitive (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
$sel:stagingAreaSubnetId:ReplicationConfiguration' :: Maybe Text
stagingAreaSubnetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicationServerInstanceType:ReplicationConfiguration' :: Maybe Text
replicationServerInstanceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ebsEncryption:ReplicationConfiguration' :: Maybe ReplicationConfigurationEbsEncryption
ebsEncryption = Maybe ReplicationConfigurationEbsEncryption
forall a. Maybe a
Prelude.Nothing,
$sel:associateDefaultSecurityGroup:ReplicationConfiguration' :: Maybe Bool
associateDefaultSecurityGroup = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:replicationServersSecurityGroupsIDs:ReplicationConfiguration' :: Maybe [Text]
replicationServersSecurityGroupsIDs =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:ebsEncryptionKeyArn:ReplicationConfiguration' :: Maybe Text
ebsEncryptionKeyArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:ReplicationConfiguration' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultLargeStagingDiskType:ReplicationConfiguration' :: Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType = Maybe ReplicationConfigurationDefaultLargeStagingDiskType
forall a. Maybe a
Prelude.Nothing,
$sel:bandwidthThrottling:ReplicationConfiguration' :: Maybe Natural
bandwidthThrottling = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dataPlaneRouting:ReplicationConfiguration' :: Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting = Maybe ReplicationConfigurationDataPlaneRouting
forall a. Maybe a
Prelude.Nothing,
$sel:sourceServerID:ReplicationConfiguration' :: Maybe Text
sourceServerID = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:replicatedDisks:ReplicationConfiguration' :: Maybe [ReplicationConfigurationReplicatedDisk]
replicatedDisks = Maybe [ReplicationConfigurationReplicatedDisk]
forall a. Maybe a
Prelude.Nothing,
$sel:useDedicatedReplicationServer:ReplicationConfiguration' :: Maybe Bool
useDedicatedReplicationServer = Maybe Bool
forall a. Maybe a
Prelude.Nothing
}
replicationConfiguration_createPublicIP :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe Prelude.Bool)
replicationConfiguration_createPublicIP :: (Maybe Bool -> f (Maybe Bool))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_createPublicIP = (ReplicationConfiguration -> Maybe Bool)
-> (ReplicationConfiguration
-> Maybe Bool -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe Bool
createPublicIP :: Maybe Bool
$sel:createPublicIP:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe Bool
createPublicIP} -> Maybe Bool
createPublicIP) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe Bool
a -> ReplicationConfiguration
s {$sel:createPublicIP:ReplicationConfiguration' :: Maybe Bool
createPublicIP = Maybe Bool
a} :: ReplicationConfiguration)
replicationConfiguration_stagingAreaTags :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
replicationConfiguration_stagingAreaTags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_stagingAreaTags = (ReplicationConfiguration -> Maybe (Sensitive (HashMap Text Text)))
-> (ReplicationConfiguration
-> Maybe (Sensitive (HashMap Text Text))
-> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe (Sensitive (HashMap Text Text)))
(Maybe (Sensitive (HashMap Text Text)))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe (Sensitive (HashMap Text Text))
stagingAreaTags :: Maybe (Sensitive (HashMap Text Text))
$sel:stagingAreaTags:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe (Sensitive (HashMap Text Text))
stagingAreaTags} -> Maybe (Sensitive (HashMap Text Text))
stagingAreaTags) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe (Sensitive (HashMap Text Text))
a -> ReplicationConfiguration
s {$sel:stagingAreaTags:ReplicationConfiguration' :: Maybe (Sensitive (HashMap Text Text))
stagingAreaTags = Maybe (Sensitive (HashMap Text Text))
a} :: ReplicationConfiguration) ((Maybe (Sensitive (HashMap Text Text))
-> f (Maybe (Sensitive (HashMap Text Text))))
-> ReplicationConfiguration -> f ReplicationConfiguration)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (Sensitive (HashMap Text Text))
-> f (Maybe (Sensitive (HashMap Text Text))))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ReplicationConfiguration
-> f ReplicationConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (Sensitive (HashMap Text Text)))
(Maybe (Sensitive (HashMap Text Text)))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text 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
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
-> (Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text)))
-> AnIso
(Sensitive (HashMap Text Text))
(Sensitive (HashMap Text Text))
(HashMap Text Text)
(HashMap Text Text)
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
-> Exchange
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(Identity (HashMap Text Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced)
replicationConfiguration_stagingAreaSubnetId :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe Prelude.Text)
replicationConfiguration_stagingAreaSubnetId :: (Maybe Text -> f (Maybe Text))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_stagingAreaSubnetId = (ReplicationConfiguration -> Maybe Text)
-> (ReplicationConfiguration
-> Maybe Text -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe Text
stagingAreaSubnetId :: Maybe Text
$sel:stagingAreaSubnetId:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe Text
stagingAreaSubnetId} -> Maybe Text
stagingAreaSubnetId) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe Text
a -> ReplicationConfiguration
s {$sel:stagingAreaSubnetId:ReplicationConfiguration' :: Maybe Text
stagingAreaSubnetId = Maybe Text
a} :: ReplicationConfiguration)
replicationConfiguration_replicationServerInstanceType :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe Prelude.Text)
replicationConfiguration_replicationServerInstanceType :: (Maybe Text -> f (Maybe Text))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_replicationServerInstanceType = (ReplicationConfiguration -> Maybe Text)
-> (ReplicationConfiguration
-> Maybe Text -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe Text
replicationServerInstanceType :: Maybe Text
$sel:replicationServerInstanceType:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe Text
replicationServerInstanceType} -> Maybe Text
replicationServerInstanceType) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe Text
a -> ReplicationConfiguration
s {$sel:replicationServerInstanceType:ReplicationConfiguration' :: Maybe Text
replicationServerInstanceType = Maybe Text
a} :: ReplicationConfiguration)
replicationConfiguration_ebsEncryption :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe ReplicationConfigurationEbsEncryption)
replicationConfiguration_ebsEncryption :: (Maybe ReplicationConfigurationEbsEncryption
-> f (Maybe ReplicationConfigurationEbsEncryption))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_ebsEncryption = (ReplicationConfiguration
-> Maybe ReplicationConfigurationEbsEncryption)
-> (ReplicationConfiguration
-> Maybe ReplicationConfigurationEbsEncryption
-> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe ReplicationConfigurationEbsEncryption)
(Maybe ReplicationConfigurationEbsEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe ReplicationConfigurationEbsEncryption
ebsEncryption :: Maybe ReplicationConfigurationEbsEncryption
$sel:ebsEncryption:ReplicationConfiguration' :: ReplicationConfiguration
-> Maybe ReplicationConfigurationEbsEncryption
ebsEncryption} -> Maybe ReplicationConfigurationEbsEncryption
ebsEncryption) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe ReplicationConfigurationEbsEncryption
a -> ReplicationConfiguration
s {$sel:ebsEncryption:ReplicationConfiguration' :: Maybe ReplicationConfigurationEbsEncryption
ebsEncryption = Maybe ReplicationConfigurationEbsEncryption
a} :: ReplicationConfiguration)
replicationConfiguration_associateDefaultSecurityGroup :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe Prelude.Bool)
replicationConfiguration_associateDefaultSecurityGroup :: (Maybe Bool -> f (Maybe Bool))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_associateDefaultSecurityGroup = (ReplicationConfiguration -> Maybe Bool)
-> (ReplicationConfiguration
-> Maybe Bool -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe Bool
associateDefaultSecurityGroup :: Maybe Bool
$sel:associateDefaultSecurityGroup:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe Bool
associateDefaultSecurityGroup} -> Maybe Bool
associateDefaultSecurityGroup) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe Bool
a -> ReplicationConfiguration
s {$sel:associateDefaultSecurityGroup:ReplicationConfiguration' :: Maybe Bool
associateDefaultSecurityGroup = Maybe Bool
a} :: ReplicationConfiguration)
replicationConfiguration_replicationServersSecurityGroupsIDs :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe [Prelude.Text])
= (ReplicationConfiguration -> Maybe [Text])
-> (ReplicationConfiguration
-> Maybe [Text] -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe [Text]
replicationServersSecurityGroupsIDs :: Maybe [Text]
$sel:replicationServersSecurityGroupsIDs:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe [Text]
replicationServersSecurityGroupsIDs} -> Maybe [Text]
replicationServersSecurityGroupsIDs) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe [Text]
a -> ReplicationConfiguration
s {$sel:replicationServersSecurityGroupsIDs:ReplicationConfiguration' :: Maybe [Text]
replicationServersSecurityGroupsIDs = Maybe [Text]
a} :: ReplicationConfiguration) ((Maybe [Text] -> f (Maybe [Text]))
-> ReplicationConfiguration -> f ReplicationConfiguration)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ReplicationConfiguration
-> f ReplicationConfiguration
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
replicationConfiguration_ebsEncryptionKeyArn :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe Prelude.Text)
replicationConfiguration_ebsEncryptionKeyArn :: (Maybe Text -> f (Maybe Text))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_ebsEncryptionKeyArn = (ReplicationConfiguration -> Maybe Text)
-> (ReplicationConfiguration
-> Maybe Text -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe Text
ebsEncryptionKeyArn :: Maybe Text
$sel:ebsEncryptionKeyArn:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe Text
ebsEncryptionKeyArn} -> Maybe Text
ebsEncryptionKeyArn) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe Text
a -> ReplicationConfiguration
s {$sel:ebsEncryptionKeyArn:ReplicationConfiguration' :: Maybe Text
ebsEncryptionKeyArn = Maybe Text
a} :: ReplicationConfiguration)
replicationConfiguration_name :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe Prelude.Text)
replicationConfiguration_name :: (Maybe Text -> f (Maybe Text))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_name = (ReplicationConfiguration -> Maybe Text)
-> (ReplicationConfiguration
-> Maybe Text -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe Text
name :: Maybe Text
$sel:name:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe Text
name} -> Maybe Text
name) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe Text
a -> ReplicationConfiguration
s {$sel:name:ReplicationConfiguration' :: Maybe Text
name = Maybe Text
a} :: ReplicationConfiguration)
replicationConfiguration_defaultLargeStagingDiskType :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
replicationConfiguration_defaultLargeStagingDiskType :: (Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> f (Maybe ReplicationConfigurationDefaultLargeStagingDiskType))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_defaultLargeStagingDiskType = (ReplicationConfiguration
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
-> (ReplicationConfiguration
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
(Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType :: Maybe ReplicationConfigurationDefaultLargeStagingDiskType
$sel:defaultLargeStagingDiskType:ReplicationConfiguration' :: ReplicationConfiguration
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType} -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe ReplicationConfigurationDefaultLargeStagingDiskType
a -> ReplicationConfiguration
s {$sel:defaultLargeStagingDiskType:ReplicationConfiguration' :: Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType = Maybe ReplicationConfigurationDefaultLargeStagingDiskType
a} :: ReplicationConfiguration)
replicationConfiguration_bandwidthThrottling :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe Prelude.Natural)
replicationConfiguration_bandwidthThrottling :: (Maybe Natural -> f (Maybe Natural))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_bandwidthThrottling = (ReplicationConfiguration -> Maybe Natural)
-> (ReplicationConfiguration
-> Maybe Natural -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe Natural
bandwidthThrottling :: Maybe Natural
$sel:bandwidthThrottling:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe Natural
bandwidthThrottling} -> Maybe Natural
bandwidthThrottling) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe Natural
a -> ReplicationConfiguration
s {$sel:bandwidthThrottling:ReplicationConfiguration' :: Maybe Natural
bandwidthThrottling = Maybe Natural
a} :: ReplicationConfiguration)
replicationConfiguration_dataPlaneRouting :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe ReplicationConfigurationDataPlaneRouting)
replicationConfiguration_dataPlaneRouting :: (Maybe ReplicationConfigurationDataPlaneRouting
-> f (Maybe ReplicationConfigurationDataPlaneRouting))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_dataPlaneRouting = (ReplicationConfiguration
-> Maybe ReplicationConfigurationDataPlaneRouting)
-> (ReplicationConfiguration
-> Maybe ReplicationConfigurationDataPlaneRouting
-> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe ReplicationConfigurationDataPlaneRouting)
(Maybe ReplicationConfigurationDataPlaneRouting)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting :: Maybe ReplicationConfigurationDataPlaneRouting
$sel:dataPlaneRouting:ReplicationConfiguration' :: ReplicationConfiguration
-> Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting} -> Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe ReplicationConfigurationDataPlaneRouting
a -> ReplicationConfiguration
s {$sel:dataPlaneRouting:ReplicationConfiguration' :: Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting = Maybe ReplicationConfigurationDataPlaneRouting
a} :: ReplicationConfiguration)
replicationConfiguration_sourceServerID :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe Prelude.Text)
replicationConfiguration_sourceServerID :: (Maybe Text -> f (Maybe Text))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_sourceServerID = (ReplicationConfiguration -> Maybe Text)
-> (ReplicationConfiguration
-> Maybe Text -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe Text
sourceServerID :: Maybe Text
$sel:sourceServerID:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe Text
sourceServerID} -> Maybe Text
sourceServerID) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe Text
a -> ReplicationConfiguration
s {$sel:sourceServerID:ReplicationConfiguration' :: Maybe Text
sourceServerID = Maybe Text
a} :: ReplicationConfiguration)
replicationConfiguration_replicatedDisks :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe [ReplicationConfigurationReplicatedDisk])
replicationConfiguration_replicatedDisks :: (Maybe [ReplicationConfigurationReplicatedDisk]
-> f (Maybe [ReplicationConfigurationReplicatedDisk]))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_replicatedDisks = (ReplicationConfiguration
-> Maybe [ReplicationConfigurationReplicatedDisk])
-> (ReplicationConfiguration
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe [ReplicationConfigurationReplicatedDisk])
(Maybe [ReplicationConfigurationReplicatedDisk])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe [ReplicationConfigurationReplicatedDisk]
replicatedDisks :: Maybe [ReplicationConfigurationReplicatedDisk]
$sel:replicatedDisks:ReplicationConfiguration' :: ReplicationConfiguration
-> Maybe [ReplicationConfigurationReplicatedDisk]
replicatedDisks} -> Maybe [ReplicationConfigurationReplicatedDisk]
replicatedDisks) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe [ReplicationConfigurationReplicatedDisk]
a -> ReplicationConfiguration
s {$sel:replicatedDisks:ReplicationConfiguration' :: Maybe [ReplicationConfigurationReplicatedDisk]
replicatedDisks = Maybe [ReplicationConfigurationReplicatedDisk]
a} :: ReplicationConfiguration) ((Maybe [ReplicationConfigurationReplicatedDisk]
-> f (Maybe [ReplicationConfigurationReplicatedDisk]))
-> ReplicationConfiguration -> f ReplicationConfiguration)
-> ((Maybe [ReplicationConfigurationReplicatedDisk]
-> f (Maybe [ReplicationConfigurationReplicatedDisk]))
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> f (Maybe [ReplicationConfigurationReplicatedDisk]))
-> (Maybe [ReplicationConfigurationReplicatedDisk]
-> f (Maybe [ReplicationConfigurationReplicatedDisk]))
-> ReplicationConfiguration
-> f ReplicationConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ReplicationConfigurationReplicatedDisk]
[ReplicationConfigurationReplicatedDisk]
[ReplicationConfigurationReplicatedDisk]
[ReplicationConfigurationReplicatedDisk]
-> Iso
(Maybe [ReplicationConfigurationReplicatedDisk])
(Maybe [ReplicationConfigurationReplicatedDisk])
(Maybe [ReplicationConfigurationReplicatedDisk])
(Maybe [ReplicationConfigurationReplicatedDisk])
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
[ReplicationConfigurationReplicatedDisk]
[ReplicationConfigurationReplicatedDisk]
[ReplicationConfigurationReplicatedDisk]
[ReplicationConfigurationReplicatedDisk]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
replicationConfiguration_useDedicatedReplicationServer :: Lens.Lens' ReplicationConfiguration (Prelude.Maybe Prelude.Bool)
replicationConfiguration_useDedicatedReplicationServer :: (Maybe Bool -> f (Maybe Bool))
-> ReplicationConfiguration -> f ReplicationConfiguration
replicationConfiguration_useDedicatedReplicationServer = (ReplicationConfiguration -> Maybe Bool)
-> (ReplicationConfiguration
-> Maybe Bool -> ReplicationConfiguration)
-> Lens
ReplicationConfiguration
ReplicationConfiguration
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfiguration' {Maybe Bool
useDedicatedReplicationServer :: Maybe Bool
$sel:useDedicatedReplicationServer:ReplicationConfiguration' :: ReplicationConfiguration -> Maybe Bool
useDedicatedReplicationServer} -> Maybe Bool
useDedicatedReplicationServer) (\s :: ReplicationConfiguration
s@ReplicationConfiguration' {} Maybe Bool
a -> ReplicationConfiguration
s {$sel:useDedicatedReplicationServer:ReplicationConfiguration' :: Maybe Bool
useDedicatedReplicationServer = Maybe Bool
a} :: ReplicationConfiguration)
instance Core.FromJSON ReplicationConfiguration where
parseJSON :: Value -> Parser ReplicationConfiguration
parseJSON =
String
-> (Object -> Parser ReplicationConfiguration)
-> Value
-> Parser ReplicationConfiguration
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ReplicationConfiguration"
( \Object
x ->
Maybe Bool
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration
ReplicationConfiguration'
(Maybe Bool
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe Bool)
-> Parser
(Maybe (Sensitive (HashMap Text Text))
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"createPublicIP")
Parser
(Maybe (Sensitive (HashMap Text Text))
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe (Sensitive (HashMap Text Text)))
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Parser (Maybe (Maybe (Sensitive (HashMap Text Text))))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"stagingAreaTags"
Parser (Maybe (Maybe (Sensitive (HashMap Text Text))))
-> Maybe (Sensitive (HashMap Text Text))
-> Parser (Maybe (Sensitive (HashMap Text Text)))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (Sensitive (HashMap Text Text))
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"stagingAreaSubnetId")
Parser
(Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe Text)
-> Parser
(Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"replicationServerInstanceType")
Parser
(Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe ReplicationConfigurationEbsEncryption)
-> Parser
(Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe ReplicationConfigurationEbsEncryption)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ebsEncryption")
Parser
(Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe Bool)
-> Parser
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"associateDefaultSecurityGroup")
Parser
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe [Text])
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"replicationServersSecurityGroupsIDs"
Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ebsEncryptionKeyArn")
Parser
(Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe Text)
-> Parser
(Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"name")
Parser
(Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser
(Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
-> Parser
(Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser
(Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"defaultLargeStagingDiskType")
Parser
(Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe Natural)
-> Parser
(Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"bandwidthThrottling")
Parser
(Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe ReplicationConfigurationDataPlaneRouting)
-> Parser
(Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe ReplicationConfigurationDataPlaneRouting)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"dataPlaneRouting")
Parser
(Maybe Text
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool
-> ReplicationConfiguration)
-> Parser (Maybe Text)
-> Parser
(Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool -> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"sourceServerID")
Parser
(Maybe [ReplicationConfigurationReplicatedDisk]
-> Maybe Bool -> ReplicationConfiguration)
-> Parser (Maybe [ReplicationConfigurationReplicatedDisk])
-> Parser (Maybe Bool -> ReplicationConfiguration)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Parser (Maybe (Maybe [ReplicationConfigurationReplicatedDisk]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"replicatedDisks"
Parser (Maybe (Maybe [ReplicationConfigurationReplicatedDisk]))
-> Maybe [ReplicationConfigurationReplicatedDisk]
-> Parser (Maybe [ReplicationConfigurationReplicatedDisk])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [ReplicationConfigurationReplicatedDisk]
forall a. Monoid a => a
Prelude.mempty
)
Parser (Maybe Bool -> ReplicationConfiguration)
-> Parser (Maybe Bool) -> Parser ReplicationConfiguration
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"useDedicatedReplicationServer")
)
instance Prelude.Hashable ReplicationConfiguration
instance Prelude.NFData ReplicationConfiguration