{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.MGN.CreateReplicationConfigurationTemplate
-- 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)
--
-- Creates a new ReplicationConfigurationTemplate.
module Amazonka.MGN.CreateReplicationConfigurationTemplate
  ( -- * Creating a Request
    CreateReplicationConfigurationTemplate (..),
    newCreateReplicationConfigurationTemplate,

    -- * Request Lenses
    createReplicationConfigurationTemplate_ebsEncryptionKeyArn,
    createReplicationConfigurationTemplate_tags,
    createReplicationConfigurationTemplate_associateDefaultSecurityGroup,
    createReplicationConfigurationTemplate_bandwidthThrottling,
    createReplicationConfigurationTemplate_createPublicIP,
    createReplicationConfigurationTemplate_dataPlaneRouting,
    createReplicationConfigurationTemplate_defaultLargeStagingDiskType,
    createReplicationConfigurationTemplate_ebsEncryption,
    createReplicationConfigurationTemplate_replicationServerInstanceType,
    createReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs,
    createReplicationConfigurationTemplate_stagingAreaSubnetId,
    createReplicationConfigurationTemplate_stagingAreaTags,
    createReplicationConfigurationTemplate_useDedicatedReplicationServer,

    -- * Destructuring the Response
    ReplicationConfigurationTemplate (..),
    newReplicationConfigurationTemplate,

    -- * Response Lenses
    replicationConfigurationTemplate_createPublicIP,
    replicationConfigurationTemplate_stagingAreaTags,
    replicationConfigurationTemplate_arn,
    replicationConfigurationTemplate_stagingAreaSubnetId,
    replicationConfigurationTemplate_replicationServerInstanceType,
    replicationConfigurationTemplate_ebsEncryption,
    replicationConfigurationTemplate_associateDefaultSecurityGroup,
    replicationConfigurationTemplate_replicationServersSecurityGroupsIDs,
    replicationConfigurationTemplate_ebsEncryptionKeyArn,
    replicationConfigurationTemplate_defaultLargeStagingDiskType,
    replicationConfigurationTemplate_bandwidthThrottling,
    replicationConfigurationTemplate_dataPlaneRouting,
    replicationConfigurationTemplate_useDedicatedReplicationServer,
    replicationConfigurationTemplate_tags,
    replicationConfigurationTemplate_replicationConfigurationTemplateID,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MGN.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newCreateReplicationConfigurationTemplate' smart constructor.
data CreateReplicationConfigurationTemplate = CreateReplicationConfigurationTemplate'
  { -- | Request to configure an EBS enryption key during Replication Settings
    -- template creation.
    CreateReplicationConfigurationTemplate -> Maybe Text
ebsEncryptionKeyArn :: Prelude.Maybe Prelude.Text,
    -- | Request to configure tags during Replication Settings template creation.
    CreateReplicationConfigurationTemplate
-> Maybe (Sensitive (HashMap Text Text))
tags :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
    -- | Request to associate the default Application Migration Service Security
    -- group with the Replication Settings template.
    CreateReplicationConfigurationTemplate -> Bool
associateDefaultSecurityGroup :: Prelude.Bool,
    -- | Request to configure bandwidth throttling during Replication Settings
    -- template creation.
    CreateReplicationConfigurationTemplate -> Natural
bandwidthThrottling :: Prelude.Natural,
    -- | Request to create Public IP during Replication Settings template
    -- creation.
    CreateReplicationConfigurationTemplate -> Bool
createPublicIP :: Prelude.Bool,
    -- | Request to configure data plane routing during Replication Settings
    -- template creation.
    CreateReplicationConfigurationTemplate
-> ReplicationConfigurationDataPlaneRouting
dataPlaneRouting :: ReplicationConfigurationDataPlaneRouting,
    -- | Request to configure the Staging Disk EBS volume type to \"gp2\" during
    -- Replication Settings template creation.
    CreateReplicationConfigurationTemplate
-> ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType :: ReplicationConfigurationDefaultLargeStagingDiskType,
    -- | Request to configure EBS enryption during Replication Settings template
    -- creation.
    CreateReplicationConfigurationTemplate
-> ReplicationConfigurationEbsEncryption
ebsEncryption :: ReplicationConfigurationEbsEncryption,
    -- | Request to configure the Replication Server instance type during
    -- Replication Settings template creation.
    CreateReplicationConfigurationTemplate -> Text
replicationServerInstanceType :: Prelude.Text,
    -- | Request to configure the Replication Server Secuirity group ID during
    -- Replication Settings template creation.
    CreateReplicationConfigurationTemplate -> [Text]
replicationServersSecurityGroupsIDs :: [Prelude.Text],
    -- | Request to configure the Staging Area subnet ID during Replication
    -- Settings template creation.
    CreateReplicationConfigurationTemplate -> Text
stagingAreaSubnetId :: Prelude.Text,
    -- | Request to configure Staiging Area tags during Replication Settings
    -- template creation.
    CreateReplicationConfigurationTemplate
-> Sensitive (HashMap Text Text)
stagingAreaTags :: Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | Request to use Dedicated Replication Servers during Replication Settings
    -- template creation.
    CreateReplicationConfigurationTemplate -> Bool
useDedicatedReplicationServer :: Prelude.Bool
  }
  deriving (CreateReplicationConfigurationTemplate
-> CreateReplicationConfigurationTemplate -> Bool
(CreateReplicationConfigurationTemplate
 -> CreateReplicationConfigurationTemplate -> Bool)
-> (CreateReplicationConfigurationTemplate
    -> CreateReplicationConfigurationTemplate -> Bool)
-> Eq CreateReplicationConfigurationTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateReplicationConfigurationTemplate
-> CreateReplicationConfigurationTemplate -> Bool
$c/= :: CreateReplicationConfigurationTemplate
-> CreateReplicationConfigurationTemplate -> Bool
== :: CreateReplicationConfigurationTemplate
-> CreateReplicationConfigurationTemplate -> Bool
$c== :: CreateReplicationConfigurationTemplate
-> CreateReplicationConfigurationTemplate -> Bool
Prelude.Eq, Int -> CreateReplicationConfigurationTemplate -> ShowS
[CreateReplicationConfigurationTemplate] -> ShowS
CreateReplicationConfigurationTemplate -> String
(Int -> CreateReplicationConfigurationTemplate -> ShowS)
-> (CreateReplicationConfigurationTemplate -> String)
-> ([CreateReplicationConfigurationTemplate] -> ShowS)
-> Show CreateReplicationConfigurationTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateReplicationConfigurationTemplate] -> ShowS
$cshowList :: [CreateReplicationConfigurationTemplate] -> ShowS
show :: CreateReplicationConfigurationTemplate -> String
$cshow :: CreateReplicationConfigurationTemplate -> String
showsPrec :: Int -> CreateReplicationConfigurationTemplate -> ShowS
$cshowsPrec :: Int -> CreateReplicationConfigurationTemplate -> ShowS
Prelude.Show, (forall x.
 CreateReplicationConfigurationTemplate
 -> Rep CreateReplicationConfigurationTemplate x)
-> (forall x.
    Rep CreateReplicationConfigurationTemplate x
    -> CreateReplicationConfigurationTemplate)
-> Generic CreateReplicationConfigurationTemplate
forall x.
Rep CreateReplicationConfigurationTemplate x
-> CreateReplicationConfigurationTemplate
forall x.
CreateReplicationConfigurationTemplate
-> Rep CreateReplicationConfigurationTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateReplicationConfigurationTemplate x
-> CreateReplicationConfigurationTemplate
$cfrom :: forall x.
CreateReplicationConfigurationTemplate
-> Rep CreateReplicationConfigurationTemplate x
Prelude.Generic)

-- |
-- Create a value of 'CreateReplicationConfigurationTemplate' 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:
--
-- 'ebsEncryptionKeyArn', 'createReplicationConfigurationTemplate_ebsEncryptionKeyArn' - Request to configure an EBS enryption key during Replication Settings
-- template creation.
--
-- 'tags', 'createReplicationConfigurationTemplate_tags' - Request to configure tags during Replication Settings template creation.
--
-- 'associateDefaultSecurityGroup', 'createReplicationConfigurationTemplate_associateDefaultSecurityGroup' - Request to associate the default Application Migration Service Security
-- group with the Replication Settings template.
--
-- 'bandwidthThrottling', 'createReplicationConfigurationTemplate_bandwidthThrottling' - Request to configure bandwidth throttling during Replication Settings
-- template creation.
--
-- 'createPublicIP', 'createReplicationConfigurationTemplate_createPublicIP' - Request to create Public IP during Replication Settings template
-- creation.
--
-- 'dataPlaneRouting', 'createReplicationConfigurationTemplate_dataPlaneRouting' - Request to configure data plane routing during Replication Settings
-- template creation.
--
-- 'defaultLargeStagingDiskType', 'createReplicationConfigurationTemplate_defaultLargeStagingDiskType' - Request to configure the Staging Disk EBS volume type to \"gp2\" during
-- Replication Settings template creation.
--
-- 'ebsEncryption', 'createReplicationConfigurationTemplate_ebsEncryption' - Request to configure EBS enryption during Replication Settings template
-- creation.
--
-- 'replicationServerInstanceType', 'createReplicationConfigurationTemplate_replicationServerInstanceType' - Request to configure the Replication Server instance type during
-- Replication Settings template creation.
--
-- 'replicationServersSecurityGroupsIDs', 'createReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs' - Request to configure the Replication Server Secuirity group ID during
-- Replication Settings template creation.
--
-- 'stagingAreaSubnetId', 'createReplicationConfigurationTemplate_stagingAreaSubnetId' - Request to configure the Staging Area subnet ID during Replication
-- Settings template creation.
--
-- 'stagingAreaTags', 'createReplicationConfigurationTemplate_stagingAreaTags' - Request to configure Staiging Area tags during Replication Settings
-- template creation.
--
-- 'useDedicatedReplicationServer', 'createReplicationConfigurationTemplate_useDedicatedReplicationServer' - Request to use Dedicated Replication Servers during Replication Settings
-- template creation.
newCreateReplicationConfigurationTemplate ::
  -- | 'associateDefaultSecurityGroup'
  Prelude.Bool ->
  -- | 'bandwidthThrottling'
  Prelude.Natural ->
  -- | 'createPublicIP'
  Prelude.Bool ->
  -- | 'dataPlaneRouting'
  ReplicationConfigurationDataPlaneRouting ->
  -- | 'defaultLargeStagingDiskType'
  ReplicationConfigurationDefaultLargeStagingDiskType ->
  -- | 'ebsEncryption'
  ReplicationConfigurationEbsEncryption ->
  -- | 'replicationServerInstanceType'
  Prelude.Text ->
  -- | 'stagingAreaSubnetId'
  Prelude.Text ->
  -- | 'useDedicatedReplicationServer'
  Prelude.Bool ->
  CreateReplicationConfigurationTemplate
newCreateReplicationConfigurationTemplate :: Bool
-> Natural
-> Bool
-> ReplicationConfigurationDataPlaneRouting
-> ReplicationConfigurationDefaultLargeStagingDiskType
-> ReplicationConfigurationEbsEncryption
-> Text
-> Text
-> Bool
-> CreateReplicationConfigurationTemplate
newCreateReplicationConfigurationTemplate
  Bool
pAssociateDefaultSecurityGroup_
  Natural
pBandwidthThrottling_
  Bool
pCreatePublicIP_
  ReplicationConfigurationDataPlaneRouting
pDataPlaneRouting_
  ReplicationConfigurationDefaultLargeStagingDiskType
pDefaultLargeStagingDiskType_
  ReplicationConfigurationEbsEncryption
pEbsEncryption_
  Text
pReplicationServerInstanceType_
  Text
pStagingAreaSubnetId_
  Bool
pUseDedicatedReplicationServer_ =
    CreateReplicationConfigurationTemplate' :: Maybe Text
-> Maybe (Sensitive (HashMap Text Text))
-> Bool
-> Natural
-> Bool
-> ReplicationConfigurationDataPlaneRouting
-> ReplicationConfigurationDefaultLargeStagingDiskType
-> ReplicationConfigurationEbsEncryption
-> Text
-> [Text]
-> Text
-> Sensitive (HashMap Text Text)
-> Bool
-> CreateReplicationConfigurationTemplate
CreateReplicationConfigurationTemplate'
      { $sel:ebsEncryptionKeyArn:CreateReplicationConfigurationTemplate' :: Maybe Text
ebsEncryptionKeyArn =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:CreateReplicationConfigurationTemplate' :: Maybe (Sensitive (HashMap Text Text))
tags = Maybe (Sensitive (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
        $sel:associateDefaultSecurityGroup:CreateReplicationConfigurationTemplate' :: Bool
associateDefaultSecurityGroup =
          Bool
pAssociateDefaultSecurityGroup_,
        $sel:bandwidthThrottling:CreateReplicationConfigurationTemplate' :: Natural
bandwidthThrottling =
          Natural
pBandwidthThrottling_,
        $sel:createPublicIP:CreateReplicationConfigurationTemplate' :: Bool
createPublicIP = Bool
pCreatePublicIP_,
        $sel:dataPlaneRouting:CreateReplicationConfigurationTemplate' :: ReplicationConfigurationDataPlaneRouting
dataPlaneRouting =
          ReplicationConfigurationDataPlaneRouting
pDataPlaneRouting_,
        $sel:defaultLargeStagingDiskType:CreateReplicationConfigurationTemplate' :: ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType =
          ReplicationConfigurationDefaultLargeStagingDiskType
pDefaultLargeStagingDiskType_,
        $sel:ebsEncryption:CreateReplicationConfigurationTemplate' :: ReplicationConfigurationEbsEncryption
ebsEncryption = ReplicationConfigurationEbsEncryption
pEbsEncryption_,
        $sel:replicationServerInstanceType:CreateReplicationConfigurationTemplate' :: Text
replicationServerInstanceType =
          Text
pReplicationServerInstanceType_,
        $sel:replicationServersSecurityGroupsIDs:CreateReplicationConfigurationTemplate' :: [Text]
replicationServersSecurityGroupsIDs =
          [Text]
forall a. Monoid a => a
Prelude.mempty,
        $sel:stagingAreaSubnetId:CreateReplicationConfigurationTemplate' :: Text
stagingAreaSubnetId =
          Text
pStagingAreaSubnetId_,
        $sel:stagingAreaTags:CreateReplicationConfigurationTemplate' :: Sensitive (HashMap Text Text)
stagingAreaTags = Sensitive (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty,
        $sel:useDedicatedReplicationServer:CreateReplicationConfigurationTemplate' :: Bool
useDedicatedReplicationServer =
          Bool
pUseDedicatedReplicationServer_
      }

-- | Request to configure an EBS enryption key during Replication Settings
-- template creation.
createReplicationConfigurationTemplate_ebsEncryptionKeyArn :: Lens.Lens' CreateReplicationConfigurationTemplate (Prelude.Maybe Prelude.Text)
createReplicationConfigurationTemplate_ebsEncryptionKeyArn :: (Maybe Text -> f (Maybe Text))
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_ebsEncryptionKeyArn = (CreateReplicationConfigurationTemplate -> Maybe Text)
-> (CreateReplicationConfigurationTemplate
    -> Maybe Text -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {Maybe Text
ebsEncryptionKeyArn :: Maybe Text
$sel:ebsEncryptionKeyArn:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Maybe Text
ebsEncryptionKeyArn} -> Maybe Text
ebsEncryptionKeyArn) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} Maybe Text
a -> CreateReplicationConfigurationTemplate
s {$sel:ebsEncryptionKeyArn:CreateReplicationConfigurationTemplate' :: Maybe Text
ebsEncryptionKeyArn = Maybe Text
a} :: CreateReplicationConfigurationTemplate)

-- | Request to configure tags during Replication Settings template creation.
createReplicationConfigurationTemplate_tags :: Lens.Lens' CreateReplicationConfigurationTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createReplicationConfigurationTemplate_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_tags = (CreateReplicationConfigurationTemplate
 -> Maybe (Sensitive (HashMap Text Text)))
-> (CreateReplicationConfigurationTemplate
    -> Maybe (Sensitive (HashMap Text Text))
    -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     (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 (\CreateReplicationConfigurationTemplate' {Maybe (Sensitive (HashMap Text Text))
tags :: Maybe (Sensitive (HashMap Text Text))
$sel:tags:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> Maybe (Sensitive (HashMap Text Text))
tags} -> Maybe (Sensitive (HashMap Text Text))
tags) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} Maybe (Sensitive (HashMap Text Text))
a -> CreateReplicationConfigurationTemplate
s {$sel:tags:CreateReplicationConfigurationTemplate' :: Maybe (Sensitive (HashMap Text Text))
tags = Maybe (Sensitive (HashMap Text Text))
a} :: CreateReplicationConfigurationTemplate) ((Maybe (Sensitive (HashMap Text Text))
  -> f (Maybe (Sensitive (HashMap Text Text))))
 -> CreateReplicationConfigurationTemplate
 -> f CreateReplicationConfigurationTemplate)
-> ((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)))
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
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)

-- | Request to associate the default Application Migration Service Security
-- group with the Replication Settings template.
createReplicationConfigurationTemplate_associateDefaultSecurityGroup :: Lens.Lens' CreateReplicationConfigurationTemplate Prelude.Bool
createReplicationConfigurationTemplate_associateDefaultSecurityGroup :: (Bool -> f Bool)
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_associateDefaultSecurityGroup = (CreateReplicationConfigurationTemplate -> Bool)
-> (CreateReplicationConfigurationTemplate
    -> Bool -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     Bool
     Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {Bool
associateDefaultSecurityGroup :: Bool
$sel:associateDefaultSecurityGroup:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Bool
associateDefaultSecurityGroup} -> Bool
associateDefaultSecurityGroup) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} Bool
a -> CreateReplicationConfigurationTemplate
s {$sel:associateDefaultSecurityGroup:CreateReplicationConfigurationTemplate' :: Bool
associateDefaultSecurityGroup = Bool
a} :: CreateReplicationConfigurationTemplate)

-- | Request to configure bandwidth throttling during Replication Settings
-- template creation.
createReplicationConfigurationTemplate_bandwidthThrottling :: Lens.Lens' CreateReplicationConfigurationTemplate Prelude.Natural
createReplicationConfigurationTemplate_bandwidthThrottling :: (Natural -> f Natural)
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_bandwidthThrottling = (CreateReplicationConfigurationTemplate -> Natural)
-> (CreateReplicationConfigurationTemplate
    -> Natural -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     Natural
     Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {Natural
bandwidthThrottling :: Natural
$sel:bandwidthThrottling:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Natural
bandwidthThrottling} -> Natural
bandwidthThrottling) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} Natural
a -> CreateReplicationConfigurationTemplate
s {$sel:bandwidthThrottling:CreateReplicationConfigurationTemplate' :: Natural
bandwidthThrottling = Natural
a} :: CreateReplicationConfigurationTemplate)

-- | Request to create Public IP during Replication Settings template
-- creation.
createReplicationConfigurationTemplate_createPublicIP :: Lens.Lens' CreateReplicationConfigurationTemplate Prelude.Bool
createReplicationConfigurationTemplate_createPublicIP :: (Bool -> f Bool)
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_createPublicIP = (CreateReplicationConfigurationTemplate -> Bool)
-> (CreateReplicationConfigurationTemplate
    -> Bool -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     Bool
     Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {Bool
createPublicIP :: Bool
$sel:createPublicIP:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Bool
createPublicIP} -> Bool
createPublicIP) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} Bool
a -> CreateReplicationConfigurationTemplate
s {$sel:createPublicIP:CreateReplicationConfigurationTemplate' :: Bool
createPublicIP = Bool
a} :: CreateReplicationConfigurationTemplate)

-- | Request to configure data plane routing during Replication Settings
-- template creation.
createReplicationConfigurationTemplate_dataPlaneRouting :: Lens.Lens' CreateReplicationConfigurationTemplate ReplicationConfigurationDataPlaneRouting
createReplicationConfigurationTemplate_dataPlaneRouting :: (ReplicationConfigurationDataPlaneRouting
 -> f ReplicationConfigurationDataPlaneRouting)
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_dataPlaneRouting = (CreateReplicationConfigurationTemplate
 -> ReplicationConfigurationDataPlaneRouting)
-> (CreateReplicationConfigurationTemplate
    -> ReplicationConfigurationDataPlaneRouting
    -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     ReplicationConfigurationDataPlaneRouting
     ReplicationConfigurationDataPlaneRouting
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {ReplicationConfigurationDataPlaneRouting
dataPlaneRouting :: ReplicationConfigurationDataPlaneRouting
$sel:dataPlaneRouting:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> ReplicationConfigurationDataPlaneRouting
dataPlaneRouting} -> ReplicationConfigurationDataPlaneRouting
dataPlaneRouting) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} ReplicationConfigurationDataPlaneRouting
a -> CreateReplicationConfigurationTemplate
s {$sel:dataPlaneRouting:CreateReplicationConfigurationTemplate' :: ReplicationConfigurationDataPlaneRouting
dataPlaneRouting = ReplicationConfigurationDataPlaneRouting
a} :: CreateReplicationConfigurationTemplate)

-- | Request to configure the Staging Disk EBS volume type to \"gp2\" during
-- Replication Settings template creation.
createReplicationConfigurationTemplate_defaultLargeStagingDiskType :: Lens.Lens' CreateReplicationConfigurationTemplate ReplicationConfigurationDefaultLargeStagingDiskType
createReplicationConfigurationTemplate_defaultLargeStagingDiskType :: (ReplicationConfigurationDefaultLargeStagingDiskType
 -> f ReplicationConfigurationDefaultLargeStagingDiskType)
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_defaultLargeStagingDiskType = (CreateReplicationConfigurationTemplate
 -> ReplicationConfigurationDefaultLargeStagingDiskType)
-> (CreateReplicationConfigurationTemplate
    -> ReplicationConfigurationDefaultLargeStagingDiskType
    -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     ReplicationConfigurationDefaultLargeStagingDiskType
     ReplicationConfigurationDefaultLargeStagingDiskType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType :: ReplicationConfigurationDefaultLargeStagingDiskType
$sel:defaultLargeStagingDiskType:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType} -> ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} ReplicationConfigurationDefaultLargeStagingDiskType
a -> CreateReplicationConfigurationTemplate
s {$sel:defaultLargeStagingDiskType:CreateReplicationConfigurationTemplate' :: ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType = ReplicationConfigurationDefaultLargeStagingDiskType
a} :: CreateReplicationConfigurationTemplate)

-- | Request to configure EBS enryption during Replication Settings template
-- creation.
createReplicationConfigurationTemplate_ebsEncryption :: Lens.Lens' CreateReplicationConfigurationTemplate ReplicationConfigurationEbsEncryption
createReplicationConfigurationTemplate_ebsEncryption :: (ReplicationConfigurationEbsEncryption
 -> f ReplicationConfigurationEbsEncryption)
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_ebsEncryption = (CreateReplicationConfigurationTemplate
 -> ReplicationConfigurationEbsEncryption)
-> (CreateReplicationConfigurationTemplate
    -> ReplicationConfigurationEbsEncryption
    -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     ReplicationConfigurationEbsEncryption
     ReplicationConfigurationEbsEncryption
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {ReplicationConfigurationEbsEncryption
ebsEncryption :: ReplicationConfigurationEbsEncryption
$sel:ebsEncryption:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> ReplicationConfigurationEbsEncryption
ebsEncryption} -> ReplicationConfigurationEbsEncryption
ebsEncryption) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} ReplicationConfigurationEbsEncryption
a -> CreateReplicationConfigurationTemplate
s {$sel:ebsEncryption:CreateReplicationConfigurationTemplate' :: ReplicationConfigurationEbsEncryption
ebsEncryption = ReplicationConfigurationEbsEncryption
a} :: CreateReplicationConfigurationTemplate)

-- | Request to configure the Replication Server instance type during
-- Replication Settings template creation.
createReplicationConfigurationTemplate_replicationServerInstanceType :: Lens.Lens' CreateReplicationConfigurationTemplate Prelude.Text
createReplicationConfigurationTemplate_replicationServerInstanceType :: (Text -> f Text)
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_replicationServerInstanceType = (CreateReplicationConfigurationTemplate -> Text)
-> (CreateReplicationConfigurationTemplate
    -> Text -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {Text
replicationServerInstanceType :: Text
$sel:replicationServerInstanceType:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Text
replicationServerInstanceType} -> Text
replicationServerInstanceType) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} Text
a -> CreateReplicationConfigurationTemplate
s {$sel:replicationServerInstanceType:CreateReplicationConfigurationTemplate' :: Text
replicationServerInstanceType = Text
a} :: CreateReplicationConfigurationTemplate)

-- | Request to configure the Replication Server Secuirity group ID during
-- Replication Settings template creation.
createReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs :: Lens.Lens' CreateReplicationConfigurationTemplate [Prelude.Text]
createReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs :: ([Text] -> f [Text])
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs = (CreateReplicationConfigurationTemplate -> [Text])
-> (CreateReplicationConfigurationTemplate
    -> [Text] -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {[Text]
replicationServersSecurityGroupsIDs :: [Text]
$sel:replicationServersSecurityGroupsIDs:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> [Text]
replicationServersSecurityGroupsIDs} -> [Text]
replicationServersSecurityGroupsIDs) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} [Text]
a -> CreateReplicationConfigurationTemplate
s {$sel:replicationServersSecurityGroupsIDs:CreateReplicationConfigurationTemplate' :: [Text]
replicationServersSecurityGroupsIDs = [Text]
a} :: CreateReplicationConfigurationTemplate) (([Text] -> f [Text])
 -> CreateReplicationConfigurationTemplate
 -> f CreateReplicationConfigurationTemplate)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Request to configure the Staging Area subnet ID during Replication
-- Settings template creation.
createReplicationConfigurationTemplate_stagingAreaSubnetId :: Lens.Lens' CreateReplicationConfigurationTemplate Prelude.Text
createReplicationConfigurationTemplate_stagingAreaSubnetId :: (Text -> f Text)
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_stagingAreaSubnetId = (CreateReplicationConfigurationTemplate -> Text)
-> (CreateReplicationConfigurationTemplate
    -> Text -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {Text
stagingAreaSubnetId :: Text
$sel:stagingAreaSubnetId:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Text
stagingAreaSubnetId} -> Text
stagingAreaSubnetId) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} Text
a -> CreateReplicationConfigurationTemplate
s {$sel:stagingAreaSubnetId:CreateReplicationConfigurationTemplate' :: Text
stagingAreaSubnetId = Text
a} :: CreateReplicationConfigurationTemplate)

-- | Request to configure Staiging Area tags during Replication Settings
-- template creation.
createReplicationConfigurationTemplate_stagingAreaTags :: Lens.Lens' CreateReplicationConfigurationTemplate (Prelude.HashMap Prelude.Text Prelude.Text)
createReplicationConfigurationTemplate_stagingAreaTags :: (HashMap Text Text -> f (HashMap Text Text))
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_stagingAreaTags = (CreateReplicationConfigurationTemplate
 -> Sensitive (HashMap Text Text))
-> (CreateReplicationConfigurationTemplate
    -> Sensitive (HashMap Text Text)
    -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     (Sensitive (HashMap Text Text))
     (Sensitive (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {Sensitive (HashMap Text Text)
stagingAreaTags :: Sensitive (HashMap Text Text)
$sel:stagingAreaTags:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> Sensitive (HashMap Text Text)
stagingAreaTags} -> Sensitive (HashMap Text Text)
stagingAreaTags) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} Sensitive (HashMap Text Text)
a -> CreateReplicationConfigurationTemplate
s {$sel:stagingAreaTags:CreateReplicationConfigurationTemplate' :: Sensitive (HashMap Text Text)
stagingAreaTags = Sensitive (HashMap Text Text)
a} :: CreateReplicationConfigurationTemplate) ((Sensitive (HashMap Text Text)
  -> f (Sensitive (HashMap Text Text)))
 -> CreateReplicationConfigurationTemplate
 -> f CreateReplicationConfigurationTemplate)
-> ((HashMap Text Text -> f (HashMap Text Text))
    -> Sensitive (HashMap Text Text)
    -> f (Sensitive (HashMap Text Text)))
-> (HashMap Text Text -> f (HashMap Text Text))
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text Text -> f (HashMap Text Text))
-> Sensitive (HashMap Text Text)
-> f (Sensitive (HashMap Text Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive ((HashMap Text Text -> f (HashMap Text Text))
 -> Sensitive (HashMap Text Text)
 -> f (Sensitive (HashMap Text Text)))
-> ((HashMap Text Text -> f (HashMap Text Text))
    -> HashMap Text Text -> f (HashMap Text Text))
-> (HashMap Text Text -> f (HashMap Text Text))
-> Sensitive (HashMap Text Text)
-> f (Sensitive (HashMap Text Text))
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text Text -> f (HashMap Text Text))
-> HashMap Text Text -> f (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Request to use Dedicated Replication Servers during Replication Settings
-- template creation.
createReplicationConfigurationTemplate_useDedicatedReplicationServer :: Lens.Lens' CreateReplicationConfigurationTemplate Prelude.Bool
createReplicationConfigurationTemplate_useDedicatedReplicationServer :: (Bool -> f Bool)
-> CreateReplicationConfigurationTemplate
-> f CreateReplicationConfigurationTemplate
createReplicationConfigurationTemplate_useDedicatedReplicationServer = (CreateReplicationConfigurationTemplate -> Bool)
-> (CreateReplicationConfigurationTemplate
    -> Bool -> CreateReplicationConfigurationTemplate)
-> Lens
     CreateReplicationConfigurationTemplate
     CreateReplicationConfigurationTemplate
     Bool
     Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateReplicationConfigurationTemplate' {Bool
useDedicatedReplicationServer :: Bool
$sel:useDedicatedReplicationServer:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Bool
useDedicatedReplicationServer} -> Bool
useDedicatedReplicationServer) (\s :: CreateReplicationConfigurationTemplate
s@CreateReplicationConfigurationTemplate' {} Bool
a -> CreateReplicationConfigurationTemplate
s {$sel:useDedicatedReplicationServer:CreateReplicationConfigurationTemplate' :: Bool
useDedicatedReplicationServer = Bool
a} :: CreateReplicationConfigurationTemplate)

instance
  Core.AWSRequest
    CreateReplicationConfigurationTemplate
  where
  type
    AWSResponse
      CreateReplicationConfigurationTemplate =
      ReplicationConfigurationTemplate
  request :: CreateReplicationConfigurationTemplate
-> Request CreateReplicationConfigurationTemplate
request = Service
-> CreateReplicationConfigurationTemplate
-> Request CreateReplicationConfigurationTemplate
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateReplicationConfigurationTemplate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse CreateReplicationConfigurationTemplate)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse CreateReplicationConfigurationTemplate))
-> Logger
-> Service
-> Proxy CreateReplicationConfigurationTemplate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse CreateReplicationConfigurationTemplate)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      (\Int
s ResponseHeaders
h Object
x -> Object -> Either String ReplicationConfigurationTemplate
forall a. FromJSON a => Object -> Either String a
Core.eitherParseJSON Object
x)

instance
  Prelude.Hashable
    CreateReplicationConfigurationTemplate

instance
  Prelude.NFData
    CreateReplicationConfigurationTemplate

instance
  Core.ToHeaders
    CreateReplicationConfigurationTemplate
  where
  toHeaders :: CreateReplicationConfigurationTemplate -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> CreateReplicationConfigurationTemplate -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Core.ToJSON
    CreateReplicationConfigurationTemplate
  where
  toJSON :: CreateReplicationConfigurationTemplate -> Value
toJSON CreateReplicationConfigurationTemplate' {Bool
Natural
[Text]
Maybe Text
Maybe (Sensitive (HashMap Text Text))
Text
Sensitive (HashMap Text Text)
ReplicationConfigurationDataPlaneRouting
ReplicationConfigurationDefaultLargeStagingDiskType
ReplicationConfigurationEbsEncryption
useDedicatedReplicationServer :: Bool
stagingAreaTags :: Sensitive (HashMap Text Text)
stagingAreaSubnetId :: Text
replicationServersSecurityGroupsIDs :: [Text]
replicationServerInstanceType :: Text
ebsEncryption :: ReplicationConfigurationEbsEncryption
defaultLargeStagingDiskType :: ReplicationConfigurationDefaultLargeStagingDiskType
dataPlaneRouting :: ReplicationConfigurationDataPlaneRouting
createPublicIP :: Bool
bandwidthThrottling :: Natural
associateDefaultSecurityGroup :: Bool
tags :: Maybe (Sensitive (HashMap Text Text))
ebsEncryptionKeyArn :: Maybe Text
$sel:useDedicatedReplicationServer:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Bool
$sel:stagingAreaTags:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> Sensitive (HashMap Text Text)
$sel:stagingAreaSubnetId:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Text
$sel:replicationServersSecurityGroupsIDs:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> [Text]
$sel:replicationServerInstanceType:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Text
$sel:ebsEncryption:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> ReplicationConfigurationEbsEncryption
$sel:defaultLargeStagingDiskType:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> ReplicationConfigurationDefaultLargeStagingDiskType
$sel:dataPlaneRouting:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> ReplicationConfigurationDataPlaneRouting
$sel:createPublicIP:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Bool
$sel:bandwidthThrottling:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Natural
$sel:associateDefaultSecurityGroup:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Bool
$sel:tags:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate
-> Maybe (Sensitive (HashMap Text Text))
$sel:ebsEncryptionKeyArn:CreateReplicationConfigurationTemplate' :: CreateReplicationConfigurationTemplate -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"ebsEncryptionKeyArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
ebsEncryptionKeyArn,
            (Text
"tags" Text -> Sensitive (HashMap Text Text) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive (HashMap Text Text) -> Pair)
-> Maybe (Sensitive (HashMap Text Text)) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive (HashMap Text Text))
tags,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"associateDefaultSecurityGroup"
                  Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Bool
associateDefaultSecurityGroup
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"bandwidthThrottling" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
bandwidthThrottling),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"createPublicIP" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Bool
createPublicIP),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"dataPlaneRouting" Text -> ReplicationConfigurationDataPlaneRouting -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ReplicationConfigurationDataPlaneRouting
dataPlaneRouting),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"defaultLargeStagingDiskType"
                  Text -> ReplicationConfigurationDefaultLargeStagingDiskType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ebsEncryption" Text -> ReplicationConfigurationEbsEncryption -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ReplicationConfigurationEbsEncryption
ebsEncryption),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"replicationServerInstanceType"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
replicationServerInstanceType
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"replicationServersSecurityGroupsIDs"
                  Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
replicationServersSecurityGroupsIDs
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"stagingAreaSubnetId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
stagingAreaSubnetId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"stagingAreaTags" Text -> Sensitive (HashMap Text Text) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive (HashMap Text Text)
stagingAreaTags),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"useDedicatedReplicationServer"
                  Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Bool
useDedicatedReplicationServer
              )
          ]
      )

instance
  Core.ToPath
    CreateReplicationConfigurationTemplate
  where
  toPath :: CreateReplicationConfigurationTemplate -> ByteString
toPath =
    ByteString -> CreateReplicationConfigurationTemplate -> ByteString
forall a b. a -> b -> a
Prelude.const
      ByteString
"/CreateReplicationConfigurationTemplate"

instance
  Core.ToQuery
    CreateReplicationConfigurationTemplate
  where
  toQuery :: CreateReplicationConfigurationTemplate -> QueryString
toQuery = QueryString
-> CreateReplicationConfigurationTemplate -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty