{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MGN.Types.ReplicationConfigurationTemplate
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MGN.Types.ReplicationConfigurationTemplate 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 qualified Amazonka.Prelude as Prelude

-- | /See:/ 'newReplicationConfigurationTemplate' smart constructor.
data ReplicationConfigurationTemplate = ReplicationConfigurationTemplate'
  { -- | Replication Configuration template create Public IP.
    ReplicationConfigurationTemplate -> Maybe Bool
createPublicIP :: Prelude.Maybe Prelude.Bool,
    -- | Replication Configuration template Staging Area Tags.
    ReplicationConfigurationTemplate
-> Maybe (Sensitive (HashMap Text Text))
stagingAreaTags :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
    -- | Replication Configuration template ARN.
    ReplicationConfigurationTemplate -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | Replication Configuration template Staging Area subnet ID.
    ReplicationConfigurationTemplate -> Maybe Text
stagingAreaSubnetId :: Prelude.Maybe Prelude.Text,
    -- | Replication Configuration template server instance type.
    ReplicationConfigurationTemplate -> Maybe Text
replicationServerInstanceType :: Prelude.Maybe Prelude.Text,
    -- | Replication Configuration template EBS encryption.
    ReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationEbsEncryption
ebsEncryption :: Prelude.Maybe ReplicationConfigurationEbsEncryption,
    -- | Replication Configuration template associate default Application
    -- Migration Service Security group.
    ReplicationConfigurationTemplate -> Maybe Bool
associateDefaultSecurityGroup :: Prelude.Maybe Prelude.Bool,
    -- | Replication Configuration template server Security Groups IDs.
    ReplicationConfigurationTemplate -> Maybe [Text]
replicationServersSecurityGroupsIDs :: Prelude.Maybe [Prelude.Text],
    -- | Replication Configuration template EBS encryption key ARN.
    ReplicationConfigurationTemplate -> Maybe Text
ebsEncryptionKeyArn :: Prelude.Maybe Prelude.Text,
    -- | Replication Configuration template use dedault large Staging Disk type.
    ReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType :: Prelude.Maybe ReplicationConfigurationDefaultLargeStagingDiskType,
    -- | Replication Configuration template bandwidth throtting.
    ReplicationConfigurationTemplate -> Maybe Natural
bandwidthThrottling :: Prelude.Maybe Prelude.Natural,
    -- | Replication Configuration template data plane routing.
    ReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting :: Prelude.Maybe ReplicationConfigurationDataPlaneRouting,
    -- | Replication Configuration template use Dedicated Replication Server.
    ReplicationConfigurationTemplate -> Maybe Bool
useDedicatedReplicationServer :: Prelude.Maybe Prelude.Bool,
    -- | Replication Configuration template Tags.
    ReplicationConfigurationTemplate
-> Maybe (Sensitive (HashMap Text Text))
tags :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
    -- | Replication Configuration template template ID.
    ReplicationConfigurationTemplate -> Text
replicationConfigurationTemplateID :: Prelude.Text
  }
  deriving (ReplicationConfigurationTemplate
-> ReplicationConfigurationTemplate -> Bool
(ReplicationConfigurationTemplate
 -> ReplicationConfigurationTemplate -> Bool)
-> (ReplicationConfigurationTemplate
    -> ReplicationConfigurationTemplate -> Bool)
-> Eq ReplicationConfigurationTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReplicationConfigurationTemplate
-> ReplicationConfigurationTemplate -> Bool
$c/= :: ReplicationConfigurationTemplate
-> ReplicationConfigurationTemplate -> Bool
== :: ReplicationConfigurationTemplate
-> ReplicationConfigurationTemplate -> Bool
$c== :: ReplicationConfigurationTemplate
-> ReplicationConfigurationTemplate -> Bool
Prelude.Eq, Int -> ReplicationConfigurationTemplate -> ShowS
[ReplicationConfigurationTemplate] -> ShowS
ReplicationConfigurationTemplate -> String
(Int -> ReplicationConfigurationTemplate -> ShowS)
-> (ReplicationConfigurationTemplate -> String)
-> ([ReplicationConfigurationTemplate] -> ShowS)
-> Show ReplicationConfigurationTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ReplicationConfigurationTemplate] -> ShowS
$cshowList :: [ReplicationConfigurationTemplate] -> ShowS
show :: ReplicationConfigurationTemplate -> String
$cshow :: ReplicationConfigurationTemplate -> String
showsPrec :: Int -> ReplicationConfigurationTemplate -> ShowS
$cshowsPrec :: Int -> ReplicationConfigurationTemplate -> ShowS
Prelude.Show, (forall x.
 ReplicationConfigurationTemplate
 -> Rep ReplicationConfigurationTemplate x)
-> (forall x.
    Rep ReplicationConfigurationTemplate x
    -> ReplicationConfigurationTemplate)
-> Generic ReplicationConfigurationTemplate
forall x.
Rep ReplicationConfigurationTemplate x
-> ReplicationConfigurationTemplate
forall x.
ReplicationConfigurationTemplate
-> Rep ReplicationConfigurationTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ReplicationConfigurationTemplate x
-> ReplicationConfigurationTemplate
$cfrom :: forall x.
ReplicationConfigurationTemplate
-> Rep ReplicationConfigurationTemplate x
Prelude.Generic)

-- |
-- Create a value of 'ReplicationConfigurationTemplate' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'createPublicIP', 'replicationConfigurationTemplate_createPublicIP' - Replication Configuration template create Public IP.
--
-- 'stagingAreaTags', 'replicationConfigurationTemplate_stagingAreaTags' - Replication Configuration template Staging Area Tags.
--
-- 'arn', 'replicationConfigurationTemplate_arn' - Replication Configuration template ARN.
--
-- 'stagingAreaSubnetId', 'replicationConfigurationTemplate_stagingAreaSubnetId' - Replication Configuration template Staging Area subnet ID.
--
-- 'replicationServerInstanceType', 'replicationConfigurationTemplate_replicationServerInstanceType' - Replication Configuration template server instance type.
--
-- 'ebsEncryption', 'replicationConfigurationTemplate_ebsEncryption' - Replication Configuration template EBS encryption.
--
-- 'associateDefaultSecurityGroup', 'replicationConfigurationTemplate_associateDefaultSecurityGroup' - Replication Configuration template associate default Application
-- Migration Service Security group.
--
-- 'replicationServersSecurityGroupsIDs', 'replicationConfigurationTemplate_replicationServersSecurityGroupsIDs' - Replication Configuration template server Security Groups IDs.
--
-- 'ebsEncryptionKeyArn', 'replicationConfigurationTemplate_ebsEncryptionKeyArn' - Replication Configuration template EBS encryption key ARN.
--
-- 'defaultLargeStagingDiskType', 'replicationConfigurationTemplate_defaultLargeStagingDiskType' - Replication Configuration template use dedault large Staging Disk type.
--
-- 'bandwidthThrottling', 'replicationConfigurationTemplate_bandwidthThrottling' - Replication Configuration template bandwidth throtting.
--
-- 'dataPlaneRouting', 'replicationConfigurationTemplate_dataPlaneRouting' - Replication Configuration template data plane routing.
--
-- 'useDedicatedReplicationServer', 'replicationConfigurationTemplate_useDedicatedReplicationServer' - Replication Configuration template use Dedicated Replication Server.
--
-- 'tags', 'replicationConfigurationTemplate_tags' - Replication Configuration template Tags.
--
-- 'replicationConfigurationTemplateID', 'replicationConfigurationTemplate_replicationConfigurationTemplateID' - Replication Configuration template template ID.
newReplicationConfigurationTemplate ::
  -- | 'replicationConfigurationTemplateID'
  Prelude.Text ->
  ReplicationConfigurationTemplate
newReplicationConfigurationTemplate :: Text -> ReplicationConfigurationTemplate
newReplicationConfigurationTemplate
  Text
pReplicationConfigurationTemplateID_ =
    ReplicationConfigurationTemplate' :: Maybe Bool
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Bool
-> Maybe (Sensitive (HashMap Text Text))
-> Text
-> ReplicationConfigurationTemplate
ReplicationConfigurationTemplate'
      { $sel:createPublicIP:ReplicationConfigurationTemplate' :: Maybe Bool
createPublicIP =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:stagingAreaTags:ReplicationConfigurationTemplate' :: Maybe (Sensitive (HashMap Text Text))
stagingAreaTags = Maybe (Sensitive (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
        $sel:arn:ReplicationConfigurationTemplate' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:stagingAreaSubnetId:ReplicationConfigurationTemplate' :: Maybe Text
stagingAreaSubnetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:replicationServerInstanceType:ReplicationConfigurationTemplate' :: Maybe Text
replicationServerInstanceType =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:ebsEncryption:ReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationEbsEncryption
ebsEncryption = Maybe ReplicationConfigurationEbsEncryption
forall a. Maybe a
Prelude.Nothing,
        $sel:associateDefaultSecurityGroup:ReplicationConfigurationTemplate' :: Maybe Bool
associateDefaultSecurityGroup =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:replicationServersSecurityGroupsIDs:ReplicationConfigurationTemplate' :: Maybe [Text]
replicationServersSecurityGroupsIDs =
          Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:ebsEncryptionKeyArn:ReplicationConfigurationTemplate' :: Maybe Text
ebsEncryptionKeyArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:defaultLargeStagingDiskType:ReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType =
          Maybe ReplicationConfigurationDefaultLargeStagingDiskType
forall a. Maybe a
Prelude.Nothing,
        $sel:bandwidthThrottling:ReplicationConfigurationTemplate' :: Maybe Natural
bandwidthThrottling = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:dataPlaneRouting:ReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting = Maybe ReplicationConfigurationDataPlaneRouting
forall a. Maybe a
Prelude.Nothing,
        $sel:useDedicatedReplicationServer:ReplicationConfigurationTemplate' :: Maybe Bool
useDedicatedReplicationServer =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:ReplicationConfigurationTemplate' :: Maybe (Sensitive (HashMap Text Text))
tags = Maybe (Sensitive (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
        $sel:replicationConfigurationTemplateID:ReplicationConfigurationTemplate' :: Text
replicationConfigurationTemplateID =
          Text
pReplicationConfigurationTemplateID_
      }

-- | Replication Configuration template create Public IP.
replicationConfigurationTemplate_createPublicIP :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe Prelude.Bool)
replicationConfigurationTemplate_createPublicIP :: (Maybe Bool -> f (Maybe Bool))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_createPublicIP = (ReplicationConfigurationTemplate -> Maybe Bool)
-> (ReplicationConfigurationTemplate
    -> Maybe Bool -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe Bool
createPublicIP :: Maybe Bool
$sel:createPublicIP:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Maybe Bool
createPublicIP} -> Maybe Bool
createPublicIP) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe Bool
a -> ReplicationConfigurationTemplate
s {$sel:createPublicIP:ReplicationConfigurationTemplate' :: Maybe Bool
createPublicIP = Maybe Bool
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template Staging Area Tags.
replicationConfigurationTemplate_stagingAreaTags :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
replicationConfigurationTemplate_stagingAreaTags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_stagingAreaTags = (ReplicationConfigurationTemplate
 -> Maybe (Sensitive (HashMap Text Text)))
-> (ReplicationConfigurationTemplate
    -> Maybe (Sensitive (HashMap Text Text))
    -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (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 (\ReplicationConfigurationTemplate' {Maybe (Sensitive (HashMap Text Text))
stagingAreaTags :: Maybe (Sensitive (HashMap Text Text))
$sel:stagingAreaTags:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate
-> Maybe (Sensitive (HashMap Text Text))
stagingAreaTags} -> Maybe (Sensitive (HashMap Text Text))
stagingAreaTags) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe (Sensitive (HashMap Text Text))
a -> ReplicationConfigurationTemplate
s {$sel:stagingAreaTags:ReplicationConfigurationTemplate' :: Maybe (Sensitive (HashMap Text Text))
stagingAreaTags = Maybe (Sensitive (HashMap Text Text))
a} :: ReplicationConfigurationTemplate) ((Maybe (Sensitive (HashMap Text Text))
  -> f (Maybe (Sensitive (HashMap Text Text))))
 -> ReplicationConfigurationTemplate
 -> f ReplicationConfigurationTemplate)
-> ((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)))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
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)

-- | Replication Configuration template ARN.
replicationConfigurationTemplate_arn :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe Prelude.Text)
replicationConfigurationTemplate_arn :: (Maybe Text -> f (Maybe Text))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_arn = (ReplicationConfigurationTemplate -> Maybe Text)
-> (ReplicationConfigurationTemplate
    -> Maybe Text -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe Text
arn :: Maybe Text
$sel:arn:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe Text
a -> ReplicationConfigurationTemplate
s {$sel:arn:ReplicationConfigurationTemplate' :: Maybe Text
arn = Maybe Text
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template Staging Area subnet ID.
replicationConfigurationTemplate_stagingAreaSubnetId :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe Prelude.Text)
replicationConfigurationTemplate_stagingAreaSubnetId :: (Maybe Text -> f (Maybe Text))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_stagingAreaSubnetId = (ReplicationConfigurationTemplate -> Maybe Text)
-> (ReplicationConfigurationTemplate
    -> Maybe Text -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe Text
stagingAreaSubnetId :: Maybe Text
$sel:stagingAreaSubnetId:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Maybe Text
stagingAreaSubnetId} -> Maybe Text
stagingAreaSubnetId) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe Text
a -> ReplicationConfigurationTemplate
s {$sel:stagingAreaSubnetId:ReplicationConfigurationTemplate' :: Maybe Text
stagingAreaSubnetId = Maybe Text
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template server instance type.
replicationConfigurationTemplate_replicationServerInstanceType :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe Prelude.Text)
replicationConfigurationTemplate_replicationServerInstanceType :: (Maybe Text -> f (Maybe Text))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_replicationServerInstanceType = (ReplicationConfigurationTemplate -> Maybe Text)
-> (ReplicationConfigurationTemplate
    -> Maybe Text -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe Text
replicationServerInstanceType :: Maybe Text
$sel:replicationServerInstanceType:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Maybe Text
replicationServerInstanceType} -> Maybe Text
replicationServerInstanceType) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe Text
a -> ReplicationConfigurationTemplate
s {$sel:replicationServerInstanceType:ReplicationConfigurationTemplate' :: Maybe Text
replicationServerInstanceType = Maybe Text
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template EBS encryption.
replicationConfigurationTemplate_ebsEncryption :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe ReplicationConfigurationEbsEncryption)
replicationConfigurationTemplate_ebsEncryption :: (Maybe ReplicationConfigurationEbsEncryption
 -> f (Maybe ReplicationConfigurationEbsEncryption))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_ebsEncryption = (ReplicationConfigurationTemplate
 -> Maybe ReplicationConfigurationEbsEncryption)
-> (ReplicationConfigurationTemplate
    -> Maybe ReplicationConfigurationEbsEncryption
    -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe ReplicationConfigurationEbsEncryption)
     (Maybe ReplicationConfigurationEbsEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe ReplicationConfigurationEbsEncryption
ebsEncryption :: Maybe ReplicationConfigurationEbsEncryption
$sel:ebsEncryption:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationEbsEncryption
ebsEncryption} -> Maybe ReplicationConfigurationEbsEncryption
ebsEncryption) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe ReplicationConfigurationEbsEncryption
a -> ReplicationConfigurationTemplate
s {$sel:ebsEncryption:ReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationEbsEncryption
ebsEncryption = Maybe ReplicationConfigurationEbsEncryption
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template associate default Application
-- Migration Service Security group.
replicationConfigurationTemplate_associateDefaultSecurityGroup :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe Prelude.Bool)
replicationConfigurationTemplate_associateDefaultSecurityGroup :: (Maybe Bool -> f (Maybe Bool))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_associateDefaultSecurityGroup = (ReplicationConfigurationTemplate -> Maybe Bool)
-> (ReplicationConfigurationTemplate
    -> Maybe Bool -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe Bool
associateDefaultSecurityGroup :: Maybe Bool
$sel:associateDefaultSecurityGroup:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Maybe Bool
associateDefaultSecurityGroup} -> Maybe Bool
associateDefaultSecurityGroup) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe Bool
a -> ReplicationConfigurationTemplate
s {$sel:associateDefaultSecurityGroup:ReplicationConfigurationTemplate' :: Maybe Bool
associateDefaultSecurityGroup = Maybe Bool
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template server Security Groups IDs.
replicationConfigurationTemplate_replicationServersSecurityGroupsIDs :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe [Prelude.Text])
replicationConfigurationTemplate_replicationServersSecurityGroupsIDs :: (Maybe [Text] -> f (Maybe [Text]))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_replicationServersSecurityGroupsIDs = (ReplicationConfigurationTemplate -> Maybe [Text])
-> (ReplicationConfigurationTemplate
    -> Maybe [Text] -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe [Text]
replicationServersSecurityGroupsIDs :: Maybe [Text]
$sel:replicationServersSecurityGroupsIDs:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Maybe [Text]
replicationServersSecurityGroupsIDs} -> Maybe [Text]
replicationServersSecurityGroupsIDs) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe [Text]
a -> ReplicationConfigurationTemplate
s {$sel:replicationServersSecurityGroupsIDs:ReplicationConfigurationTemplate' :: Maybe [Text]
replicationServersSecurityGroupsIDs = Maybe [Text]
a} :: ReplicationConfigurationTemplate) ((Maybe [Text] -> f (Maybe [Text]))
 -> ReplicationConfigurationTemplate
 -> f ReplicationConfigurationTemplate)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
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

-- | Replication Configuration template EBS encryption key ARN.
replicationConfigurationTemplate_ebsEncryptionKeyArn :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe Prelude.Text)
replicationConfigurationTemplate_ebsEncryptionKeyArn :: (Maybe Text -> f (Maybe Text))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_ebsEncryptionKeyArn = (ReplicationConfigurationTemplate -> Maybe Text)
-> (ReplicationConfigurationTemplate
    -> Maybe Text -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe Text
ebsEncryptionKeyArn :: Maybe Text
$sel:ebsEncryptionKeyArn:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Maybe Text
ebsEncryptionKeyArn} -> Maybe Text
ebsEncryptionKeyArn) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe Text
a -> ReplicationConfigurationTemplate
s {$sel:ebsEncryptionKeyArn:ReplicationConfigurationTemplate' :: Maybe Text
ebsEncryptionKeyArn = Maybe Text
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template use dedault large Staging Disk type.
replicationConfigurationTemplate_defaultLargeStagingDiskType :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
replicationConfigurationTemplate_defaultLargeStagingDiskType :: (Maybe ReplicationConfigurationDefaultLargeStagingDiskType
 -> f (Maybe ReplicationConfigurationDefaultLargeStagingDiskType))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_defaultLargeStagingDiskType = (ReplicationConfigurationTemplate
 -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
-> (ReplicationConfigurationTemplate
    -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
    -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
     (Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType :: Maybe ReplicationConfigurationDefaultLargeStagingDiskType
$sel:defaultLargeStagingDiskType:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType} -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe ReplicationConfigurationDefaultLargeStagingDiskType
a -> ReplicationConfigurationTemplate
s {$sel:defaultLargeStagingDiskType:ReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType = Maybe ReplicationConfigurationDefaultLargeStagingDiskType
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template bandwidth throtting.
replicationConfigurationTemplate_bandwidthThrottling :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe Prelude.Natural)
replicationConfigurationTemplate_bandwidthThrottling :: (Maybe Natural -> f (Maybe Natural))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_bandwidthThrottling = (ReplicationConfigurationTemplate -> Maybe Natural)
-> (ReplicationConfigurationTemplate
    -> Maybe Natural -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe Natural
bandwidthThrottling :: Maybe Natural
$sel:bandwidthThrottling:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Maybe Natural
bandwidthThrottling} -> Maybe Natural
bandwidthThrottling) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe Natural
a -> ReplicationConfigurationTemplate
s {$sel:bandwidthThrottling:ReplicationConfigurationTemplate' :: Maybe Natural
bandwidthThrottling = Maybe Natural
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template data plane routing.
replicationConfigurationTemplate_dataPlaneRouting :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe ReplicationConfigurationDataPlaneRouting)
replicationConfigurationTemplate_dataPlaneRouting :: (Maybe ReplicationConfigurationDataPlaneRouting
 -> f (Maybe ReplicationConfigurationDataPlaneRouting))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_dataPlaneRouting = (ReplicationConfigurationTemplate
 -> Maybe ReplicationConfigurationDataPlaneRouting)
-> (ReplicationConfigurationTemplate
    -> Maybe ReplicationConfigurationDataPlaneRouting
    -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe ReplicationConfigurationDataPlaneRouting)
     (Maybe ReplicationConfigurationDataPlaneRouting)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting :: Maybe ReplicationConfigurationDataPlaneRouting
$sel:dataPlaneRouting:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting} -> Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe ReplicationConfigurationDataPlaneRouting
a -> ReplicationConfigurationTemplate
s {$sel:dataPlaneRouting:ReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting = Maybe ReplicationConfigurationDataPlaneRouting
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template use Dedicated Replication Server.
replicationConfigurationTemplate_useDedicatedReplicationServer :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe Prelude.Bool)
replicationConfigurationTemplate_useDedicatedReplicationServer :: (Maybe Bool -> f (Maybe Bool))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_useDedicatedReplicationServer = (ReplicationConfigurationTemplate -> Maybe Bool)
-> (ReplicationConfigurationTemplate
    -> Maybe Bool -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Maybe Bool
useDedicatedReplicationServer :: Maybe Bool
$sel:useDedicatedReplicationServer:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Maybe Bool
useDedicatedReplicationServer} -> Maybe Bool
useDedicatedReplicationServer) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe Bool
a -> ReplicationConfigurationTemplate
s {$sel:useDedicatedReplicationServer:ReplicationConfigurationTemplate' :: Maybe Bool
useDedicatedReplicationServer = Maybe Bool
a} :: ReplicationConfigurationTemplate)

-- | Replication Configuration template Tags.
replicationConfigurationTemplate_tags :: Lens.Lens' ReplicationConfigurationTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
replicationConfigurationTemplate_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_tags = (ReplicationConfigurationTemplate
 -> Maybe (Sensitive (HashMap Text Text)))
-> (ReplicationConfigurationTemplate
    -> Maybe (Sensitive (HashMap Text Text))
    -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     (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 (\ReplicationConfigurationTemplate' {Maybe (Sensitive (HashMap Text Text))
tags :: Maybe (Sensitive (HashMap Text Text))
$sel:tags:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate
-> Maybe (Sensitive (HashMap Text Text))
tags} -> Maybe (Sensitive (HashMap Text Text))
tags) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Maybe (Sensitive (HashMap Text Text))
a -> ReplicationConfigurationTemplate
s {$sel:tags:ReplicationConfigurationTemplate' :: Maybe (Sensitive (HashMap Text Text))
tags = Maybe (Sensitive (HashMap Text Text))
a} :: ReplicationConfigurationTemplate) ((Maybe (Sensitive (HashMap Text Text))
  -> f (Maybe (Sensitive (HashMap Text Text))))
 -> ReplicationConfigurationTemplate
 -> f ReplicationConfigurationTemplate)
-> ((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)))
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
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)

-- | Replication Configuration template template ID.
replicationConfigurationTemplate_replicationConfigurationTemplateID :: Lens.Lens' ReplicationConfigurationTemplate Prelude.Text
replicationConfigurationTemplate_replicationConfigurationTemplateID :: (Text -> f Text)
-> ReplicationConfigurationTemplate
-> f ReplicationConfigurationTemplate
replicationConfigurationTemplate_replicationConfigurationTemplateID = (ReplicationConfigurationTemplate -> Text)
-> (ReplicationConfigurationTemplate
    -> Text -> ReplicationConfigurationTemplate)
-> Lens
     ReplicationConfigurationTemplate
     ReplicationConfigurationTemplate
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ReplicationConfigurationTemplate' {Text
replicationConfigurationTemplateID :: Text
$sel:replicationConfigurationTemplateID:ReplicationConfigurationTemplate' :: ReplicationConfigurationTemplate -> Text
replicationConfigurationTemplateID} -> Text
replicationConfigurationTemplateID) (\s :: ReplicationConfigurationTemplate
s@ReplicationConfigurationTemplate' {} Text
a -> ReplicationConfigurationTemplate
s {$sel:replicationConfigurationTemplateID:ReplicationConfigurationTemplate' :: Text
replicationConfigurationTemplateID = Text
a} :: ReplicationConfigurationTemplate)

instance
  Core.FromJSON
    ReplicationConfigurationTemplate
  where
  parseJSON :: Value -> Parser ReplicationConfigurationTemplate
parseJSON =
    String
-> (Object -> Parser ReplicationConfigurationTemplate)
-> Value
-> Parser ReplicationConfigurationTemplate
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ReplicationConfigurationTemplate"
      ( \Object
x ->
          Maybe Bool
-> Maybe (Sensitive (HashMap Text Text))
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ReplicationConfigurationEbsEncryption
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
-> Maybe Natural
-> Maybe ReplicationConfigurationDataPlaneRouting
-> Maybe Bool
-> Maybe (Sensitive (HashMap Text Text))
-> Text
-> ReplicationConfigurationTemplate
ReplicationConfigurationTemplate'
            (Maybe Bool
 -> Maybe (Sensitive (HashMap Text Text))
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe ReplicationConfigurationEbsEncryption
 -> Maybe Bool
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
 -> Maybe Natural
 -> Maybe ReplicationConfigurationDataPlaneRouting
 -> Maybe Bool
 -> Maybe (Sensitive (HashMap Text Text))
 -> Text
 -> ReplicationConfigurationTemplate)
-> Parser (Maybe Bool)
-> Parser
     (Maybe (Sensitive (HashMap Text Text))
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe ReplicationConfigurationEbsEncryption
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
      -> Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 Text
   -> Maybe ReplicationConfigurationEbsEncryption
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
   -> Maybe Natural
   -> Maybe ReplicationConfigurationDataPlaneRouting
   -> Maybe Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe (Sensitive (HashMap Text Text)))
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe ReplicationConfigurationEbsEncryption
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
      -> Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 Text
   -> Maybe ReplicationConfigurationEbsEncryption
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
   -> Maybe Natural
   -> Maybe ReplicationConfigurationDataPlaneRouting
   -> Maybe Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe ReplicationConfigurationEbsEncryption
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
      -> Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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
"arn")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe ReplicationConfigurationEbsEncryption
   -> Maybe Bool
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
   -> Maybe Natural
   -> Maybe ReplicationConfigurationDataPlaneRouting
   -> Maybe Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe ReplicationConfigurationEbsEncryption
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
      -> Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 ReplicationConfigurationDefaultLargeStagingDiskType
   -> Maybe Natural
   -> Maybe ReplicationConfigurationDataPlaneRouting
   -> Maybe Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe Text)
-> Parser
     (Maybe ReplicationConfigurationEbsEncryption
      -> Maybe Bool
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
      -> Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 ReplicationConfigurationDefaultLargeStagingDiskType
   -> Maybe Natural
   -> Maybe ReplicationConfigurationDataPlaneRouting
   -> Maybe Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe ReplicationConfigurationEbsEncryption)
-> Parser
     (Maybe Bool
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
      -> Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 ReplicationConfigurationDefaultLargeStagingDiskType
   -> Maybe Natural
   -> Maybe ReplicationConfigurationDataPlaneRouting
   -> Maybe Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe Bool)
-> Parser
     (Maybe [Text]
      -> Maybe Text
      -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
      -> Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 ReplicationConfigurationDefaultLargeStagingDiskType
   -> Maybe Natural
   -> Maybe ReplicationConfigurationDataPlaneRouting
   -> Maybe Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe [Text])
-> Parser
     (Maybe Text
      -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
      -> Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 ReplicationConfigurationDefaultLargeStagingDiskType
   -> Maybe Natural
   -> Maybe ReplicationConfigurationDataPlaneRouting
   -> Maybe Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe Text)
-> Parser
     (Maybe ReplicationConfigurationDefaultLargeStagingDiskType
      -> Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 ReplicationConfigurationDefaultLargeStagingDiskType
   -> Maybe Natural
   -> Maybe ReplicationConfigurationDataPlaneRouting
   -> Maybe Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser
     (Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
-> Parser
     (Maybe Natural
      -> Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe Natural)
-> Parser
     (Maybe ReplicationConfigurationDataPlaneRouting
      -> Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe ReplicationConfigurationDataPlaneRouting)
-> Parser
     (Maybe Bool
      -> Maybe (Sensitive (HashMap Text Text))
      -> Text
      -> ReplicationConfigurationTemplate)
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 Bool
   -> Maybe (Sensitive (HashMap Text Text))
   -> Text
   -> ReplicationConfigurationTemplate)
-> Parser (Maybe Bool)
-> Parser
     (Maybe (Sensitive (HashMap Text Text))
      -> Text -> ReplicationConfigurationTemplate)
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")
            Parser
  (Maybe (Sensitive (HashMap Text Text))
   -> Text -> ReplicationConfigurationTemplate)
-> Parser (Maybe (Sensitive (HashMap Text Text)))
-> Parser (Text -> ReplicationConfigurationTemplate)
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
"tags" 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 (Text -> ReplicationConfigurationTemplate)
-> Parser Text -> Parser ReplicationConfigurationTemplate
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"replicationConfigurationTemplateID")
      )

instance
  Prelude.Hashable
    ReplicationConfigurationTemplate

instance
  Prelude.NFData
    ReplicationConfigurationTemplate