{-# 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.UpdateReplicationConfigurationTemplate
-- 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)
--
-- Updates multiple ReplicationConfigurationTemplates by ID.
module Amazonka.MGN.UpdateReplicationConfigurationTemplate
  ( -- * Creating a Request
    UpdateReplicationConfigurationTemplate (..),
    newUpdateReplicationConfigurationTemplate,

    -- * Request Lenses
    updateReplicationConfigurationTemplate_createPublicIP,
    updateReplicationConfigurationTemplate_stagingAreaTags,
    updateReplicationConfigurationTemplate_arn,
    updateReplicationConfigurationTemplate_stagingAreaSubnetId,
    updateReplicationConfigurationTemplate_replicationServerInstanceType,
    updateReplicationConfigurationTemplate_ebsEncryption,
    updateReplicationConfigurationTemplate_associateDefaultSecurityGroup,
    updateReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs,
    updateReplicationConfigurationTemplate_ebsEncryptionKeyArn,
    updateReplicationConfigurationTemplate_defaultLargeStagingDiskType,
    updateReplicationConfigurationTemplate_bandwidthThrottling,
    updateReplicationConfigurationTemplate_dataPlaneRouting,
    updateReplicationConfigurationTemplate_useDedicatedReplicationServer,
    updateReplicationConfigurationTemplate_replicationConfigurationTemplateID,

    -- * 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:/ 'newUpdateReplicationConfigurationTemplate' smart constructor.
data UpdateReplicationConfigurationTemplate = UpdateReplicationConfigurationTemplate'
  { -- | Update replication configuration template create Public IP request.
    UpdateReplicationConfigurationTemplate -> Maybe Bool
createPublicIP :: Prelude.Maybe Prelude.Bool,
    -- | Update replication configuration template Staging Area Tags request.
    UpdateReplicationConfigurationTemplate
-> Maybe (Sensitive (HashMap Text Text))
stagingAreaTags :: Prelude.Maybe (Core.Sensitive (Prelude.HashMap Prelude.Text Prelude.Text)),
    -- | Update replication configuration template ARN request.
    UpdateReplicationConfigurationTemplate -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | Update replication configuration template Staging Area subnet ID
    -- request.
    UpdateReplicationConfigurationTemplate -> Maybe Text
stagingAreaSubnetId :: Prelude.Maybe Prelude.Text,
    -- | Update replication configuration template Replication Server instance
    -- type request.
    UpdateReplicationConfigurationTemplate -> Maybe Text
replicationServerInstanceType :: Prelude.Maybe Prelude.Text,
    -- | Update replication configuration template EBS encryption request.
    UpdateReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationEbsEncryption
ebsEncryption :: Prelude.Maybe ReplicationConfigurationEbsEncryption,
    -- | Update replication configuration template associate default Application
    -- Migration Service Security group request.
    UpdateReplicationConfigurationTemplate -> Maybe Bool
associateDefaultSecurityGroup :: Prelude.Maybe Prelude.Bool,
    -- | Update replication configuration template Replication Server Security
    -- groups IDs request.
    UpdateReplicationConfigurationTemplate -> Maybe [Text]
replicationServersSecurityGroupsIDs :: Prelude.Maybe [Prelude.Text],
    -- | Update replication configuration template EBS encryption key ARN
    -- request.
    UpdateReplicationConfigurationTemplate -> Maybe Text
ebsEncryptionKeyArn :: Prelude.Maybe Prelude.Text,
    -- | Update replication configuration template use default large Staging Disk
    -- type request.
    UpdateReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType :: Prelude.Maybe ReplicationConfigurationDefaultLargeStagingDiskType,
    -- | Update replication configuration template bandwidth throttling request.
    UpdateReplicationConfigurationTemplate -> Maybe Natural
bandwidthThrottling :: Prelude.Maybe Prelude.Natural,
    -- | Update replication configuration template data plane routing request.
    UpdateReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting :: Prelude.Maybe ReplicationConfigurationDataPlaneRouting,
    -- | Update replication configuration template use dedicated Replication
    -- Server request.
    UpdateReplicationConfigurationTemplate -> Maybe Bool
useDedicatedReplicationServer :: Prelude.Maybe Prelude.Bool,
    -- | Update replication configuration template template ID request.
    UpdateReplicationConfigurationTemplate -> Text
replicationConfigurationTemplateID :: Prelude.Text
  }
  deriving (UpdateReplicationConfigurationTemplate
-> UpdateReplicationConfigurationTemplate -> Bool
(UpdateReplicationConfigurationTemplate
 -> UpdateReplicationConfigurationTemplate -> Bool)
-> (UpdateReplicationConfigurationTemplate
    -> UpdateReplicationConfigurationTemplate -> Bool)
-> Eq UpdateReplicationConfigurationTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateReplicationConfigurationTemplate
-> UpdateReplicationConfigurationTemplate -> Bool
$c/= :: UpdateReplicationConfigurationTemplate
-> UpdateReplicationConfigurationTemplate -> Bool
== :: UpdateReplicationConfigurationTemplate
-> UpdateReplicationConfigurationTemplate -> Bool
$c== :: UpdateReplicationConfigurationTemplate
-> UpdateReplicationConfigurationTemplate -> Bool
Prelude.Eq, Int -> UpdateReplicationConfigurationTemplate -> ShowS
[UpdateReplicationConfigurationTemplate] -> ShowS
UpdateReplicationConfigurationTemplate -> String
(Int -> UpdateReplicationConfigurationTemplate -> ShowS)
-> (UpdateReplicationConfigurationTemplate -> String)
-> ([UpdateReplicationConfigurationTemplate] -> ShowS)
-> Show UpdateReplicationConfigurationTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateReplicationConfigurationTemplate] -> ShowS
$cshowList :: [UpdateReplicationConfigurationTemplate] -> ShowS
show :: UpdateReplicationConfigurationTemplate -> String
$cshow :: UpdateReplicationConfigurationTemplate -> String
showsPrec :: Int -> UpdateReplicationConfigurationTemplate -> ShowS
$cshowsPrec :: Int -> UpdateReplicationConfigurationTemplate -> ShowS
Prelude.Show, (forall x.
 UpdateReplicationConfigurationTemplate
 -> Rep UpdateReplicationConfigurationTemplate x)
-> (forall x.
    Rep UpdateReplicationConfigurationTemplate x
    -> UpdateReplicationConfigurationTemplate)
-> Generic UpdateReplicationConfigurationTemplate
forall x.
Rep UpdateReplicationConfigurationTemplate x
-> UpdateReplicationConfigurationTemplate
forall x.
UpdateReplicationConfigurationTemplate
-> Rep UpdateReplicationConfigurationTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateReplicationConfigurationTemplate x
-> UpdateReplicationConfigurationTemplate
$cfrom :: forall x.
UpdateReplicationConfigurationTemplate
-> Rep UpdateReplicationConfigurationTemplate x
Prelude.Generic)

-- |
-- Create a value of 'UpdateReplicationConfigurationTemplate' 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', 'updateReplicationConfigurationTemplate_createPublicIP' - Update replication configuration template create Public IP request.
--
-- 'stagingAreaTags', 'updateReplicationConfigurationTemplate_stagingAreaTags' - Update replication configuration template Staging Area Tags request.
--
-- 'arn', 'updateReplicationConfigurationTemplate_arn' - Update replication configuration template ARN request.
--
-- 'stagingAreaSubnetId', 'updateReplicationConfigurationTemplate_stagingAreaSubnetId' - Update replication configuration template Staging Area subnet ID
-- request.
--
-- 'replicationServerInstanceType', 'updateReplicationConfigurationTemplate_replicationServerInstanceType' - Update replication configuration template Replication Server instance
-- type request.
--
-- 'ebsEncryption', 'updateReplicationConfigurationTemplate_ebsEncryption' - Update replication configuration template EBS encryption request.
--
-- 'associateDefaultSecurityGroup', 'updateReplicationConfigurationTemplate_associateDefaultSecurityGroup' - Update replication configuration template associate default Application
-- Migration Service Security group request.
--
-- 'replicationServersSecurityGroupsIDs', 'updateReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs' - Update replication configuration template Replication Server Security
-- groups IDs request.
--
-- 'ebsEncryptionKeyArn', 'updateReplicationConfigurationTemplate_ebsEncryptionKeyArn' - Update replication configuration template EBS encryption key ARN
-- request.
--
-- 'defaultLargeStagingDiskType', 'updateReplicationConfigurationTemplate_defaultLargeStagingDiskType' - Update replication configuration template use default large Staging Disk
-- type request.
--
-- 'bandwidthThrottling', 'updateReplicationConfigurationTemplate_bandwidthThrottling' - Update replication configuration template bandwidth throttling request.
--
-- 'dataPlaneRouting', 'updateReplicationConfigurationTemplate_dataPlaneRouting' - Update replication configuration template data plane routing request.
--
-- 'useDedicatedReplicationServer', 'updateReplicationConfigurationTemplate_useDedicatedReplicationServer' - Update replication configuration template use dedicated Replication
-- Server request.
--
-- 'replicationConfigurationTemplateID', 'updateReplicationConfigurationTemplate_replicationConfigurationTemplateID' - Update replication configuration template template ID request.
newUpdateReplicationConfigurationTemplate ::
  -- | 'replicationConfigurationTemplateID'
  Prelude.Text ->
  UpdateReplicationConfigurationTemplate
newUpdateReplicationConfigurationTemplate :: Text -> UpdateReplicationConfigurationTemplate
newUpdateReplicationConfigurationTemplate
  Text
pReplicationConfigurationTemplateID_ =
    UpdateReplicationConfigurationTemplate' :: 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
-> Text
-> UpdateReplicationConfigurationTemplate
UpdateReplicationConfigurationTemplate'
      { $sel:createPublicIP:UpdateReplicationConfigurationTemplate' :: Maybe Bool
createPublicIP =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:stagingAreaTags:UpdateReplicationConfigurationTemplate' :: Maybe (Sensitive (HashMap Text Text))
stagingAreaTags = Maybe (Sensitive (HashMap Text Text))
forall a. Maybe a
Prelude.Nothing,
        $sel:arn:UpdateReplicationConfigurationTemplate' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:stagingAreaSubnetId:UpdateReplicationConfigurationTemplate' :: Maybe Text
stagingAreaSubnetId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:replicationServerInstanceType:UpdateReplicationConfigurationTemplate' :: Maybe Text
replicationServerInstanceType =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:ebsEncryption:UpdateReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationEbsEncryption
ebsEncryption = Maybe ReplicationConfigurationEbsEncryption
forall a. Maybe a
Prelude.Nothing,
        $sel:associateDefaultSecurityGroup:UpdateReplicationConfigurationTemplate' :: Maybe Bool
associateDefaultSecurityGroup =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:replicationServersSecurityGroupsIDs:UpdateReplicationConfigurationTemplate' :: Maybe [Text]
replicationServersSecurityGroupsIDs =
          Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:ebsEncryptionKeyArn:UpdateReplicationConfigurationTemplate' :: Maybe Text
ebsEncryptionKeyArn =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:defaultLargeStagingDiskType:UpdateReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType =
          Maybe ReplicationConfigurationDefaultLargeStagingDiskType
forall a. Maybe a
Prelude.Nothing,
        $sel:bandwidthThrottling:UpdateReplicationConfigurationTemplate' :: Maybe Natural
bandwidthThrottling =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:dataPlaneRouting:UpdateReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting = Maybe ReplicationConfigurationDataPlaneRouting
forall a. Maybe a
Prelude.Nothing,
        $sel:useDedicatedReplicationServer:UpdateReplicationConfigurationTemplate' :: Maybe Bool
useDedicatedReplicationServer =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:replicationConfigurationTemplateID:UpdateReplicationConfigurationTemplate' :: Text
replicationConfigurationTemplateID =
          Text
pReplicationConfigurationTemplateID_
      }

-- | Update replication configuration template create Public IP request.
updateReplicationConfigurationTemplate_createPublicIP :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe Prelude.Bool)
updateReplicationConfigurationTemplate_createPublicIP :: (Maybe Bool -> f (Maybe Bool))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_createPublicIP = (UpdateReplicationConfigurationTemplate -> Maybe Bool)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe Bool -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe Bool
createPublicIP :: Maybe Bool
$sel:createPublicIP:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Maybe Bool
createPublicIP} -> Maybe Bool
createPublicIP) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe Bool
a -> UpdateReplicationConfigurationTemplate
s {$sel:createPublicIP:UpdateReplicationConfigurationTemplate' :: Maybe Bool
createPublicIP = Maybe Bool
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template Staging Area Tags request.
updateReplicationConfigurationTemplate_stagingAreaTags :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateReplicationConfigurationTemplate_stagingAreaTags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_stagingAreaTags = (UpdateReplicationConfigurationTemplate
 -> Maybe (Sensitive (HashMap Text Text)))
-> (UpdateReplicationConfigurationTemplate
    -> Maybe (Sensitive (HashMap Text Text))
    -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (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 (\UpdateReplicationConfigurationTemplate' {Maybe (Sensitive (HashMap Text Text))
stagingAreaTags :: Maybe (Sensitive (HashMap Text Text))
$sel:stagingAreaTags:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate
-> Maybe (Sensitive (HashMap Text Text))
stagingAreaTags} -> Maybe (Sensitive (HashMap Text Text))
stagingAreaTags) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe (Sensitive (HashMap Text Text))
a -> UpdateReplicationConfigurationTemplate
s {$sel:stagingAreaTags:UpdateReplicationConfigurationTemplate' :: Maybe (Sensitive (HashMap Text Text))
stagingAreaTags = Maybe (Sensitive (HashMap Text Text))
a} :: UpdateReplicationConfigurationTemplate) ((Maybe (Sensitive (HashMap Text Text))
  -> f (Maybe (Sensitive (HashMap Text Text))))
 -> UpdateReplicationConfigurationTemplate
 -> f UpdateReplicationConfigurationTemplate)
-> ((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)))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
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)

-- | Update replication configuration template ARN request.
updateReplicationConfigurationTemplate_arn :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe Prelude.Text)
updateReplicationConfigurationTemplate_arn :: (Maybe Text -> f (Maybe Text))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_arn = (UpdateReplicationConfigurationTemplate -> Maybe Text)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe Text -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe Text
a -> UpdateReplicationConfigurationTemplate
s {$sel:arn:UpdateReplicationConfigurationTemplate' :: Maybe Text
arn = Maybe Text
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template Staging Area subnet ID
-- request.
updateReplicationConfigurationTemplate_stagingAreaSubnetId :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe Prelude.Text)
updateReplicationConfigurationTemplate_stagingAreaSubnetId :: (Maybe Text -> f (Maybe Text))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_stagingAreaSubnetId = (UpdateReplicationConfigurationTemplate -> Maybe Text)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe Text -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe Text
stagingAreaSubnetId :: Maybe Text
$sel:stagingAreaSubnetId:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Maybe Text
stagingAreaSubnetId} -> Maybe Text
stagingAreaSubnetId) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe Text
a -> UpdateReplicationConfigurationTemplate
s {$sel:stagingAreaSubnetId:UpdateReplicationConfigurationTemplate' :: Maybe Text
stagingAreaSubnetId = Maybe Text
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template Replication Server instance
-- type request.
updateReplicationConfigurationTemplate_replicationServerInstanceType :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe Prelude.Text)
updateReplicationConfigurationTemplate_replicationServerInstanceType :: (Maybe Text -> f (Maybe Text))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_replicationServerInstanceType = (UpdateReplicationConfigurationTemplate -> Maybe Text)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe Text -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe Text
replicationServerInstanceType :: Maybe Text
$sel:replicationServerInstanceType:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Maybe Text
replicationServerInstanceType} -> Maybe Text
replicationServerInstanceType) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe Text
a -> UpdateReplicationConfigurationTemplate
s {$sel:replicationServerInstanceType:UpdateReplicationConfigurationTemplate' :: Maybe Text
replicationServerInstanceType = Maybe Text
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template EBS encryption request.
updateReplicationConfigurationTemplate_ebsEncryption :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe ReplicationConfigurationEbsEncryption)
updateReplicationConfigurationTemplate_ebsEncryption :: (Maybe ReplicationConfigurationEbsEncryption
 -> f (Maybe ReplicationConfigurationEbsEncryption))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_ebsEncryption = (UpdateReplicationConfigurationTemplate
 -> Maybe ReplicationConfigurationEbsEncryption)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe ReplicationConfigurationEbsEncryption
    -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe ReplicationConfigurationEbsEncryption)
     (Maybe ReplicationConfigurationEbsEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe ReplicationConfigurationEbsEncryption
ebsEncryption :: Maybe ReplicationConfigurationEbsEncryption
$sel:ebsEncryption:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationEbsEncryption
ebsEncryption} -> Maybe ReplicationConfigurationEbsEncryption
ebsEncryption) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe ReplicationConfigurationEbsEncryption
a -> UpdateReplicationConfigurationTemplate
s {$sel:ebsEncryption:UpdateReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationEbsEncryption
ebsEncryption = Maybe ReplicationConfigurationEbsEncryption
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template associate default Application
-- Migration Service Security group request.
updateReplicationConfigurationTemplate_associateDefaultSecurityGroup :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe Prelude.Bool)
updateReplicationConfigurationTemplate_associateDefaultSecurityGroup :: (Maybe Bool -> f (Maybe Bool))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_associateDefaultSecurityGroup = (UpdateReplicationConfigurationTemplate -> Maybe Bool)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe Bool -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe Bool
associateDefaultSecurityGroup :: Maybe Bool
$sel:associateDefaultSecurityGroup:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Maybe Bool
associateDefaultSecurityGroup} -> Maybe Bool
associateDefaultSecurityGroup) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe Bool
a -> UpdateReplicationConfigurationTemplate
s {$sel:associateDefaultSecurityGroup:UpdateReplicationConfigurationTemplate' :: Maybe Bool
associateDefaultSecurityGroup = Maybe Bool
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template Replication Server Security
-- groups IDs request.
updateReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe [Prelude.Text])
updateReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_replicationServersSecurityGroupsIDs = (UpdateReplicationConfigurationTemplate -> Maybe [Text])
-> (UpdateReplicationConfigurationTemplate
    -> Maybe [Text] -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe [Text]
replicationServersSecurityGroupsIDs :: Maybe [Text]
$sel:replicationServersSecurityGroupsIDs:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Maybe [Text]
replicationServersSecurityGroupsIDs} -> Maybe [Text]
replicationServersSecurityGroupsIDs) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe [Text]
a -> UpdateReplicationConfigurationTemplate
s {$sel:replicationServersSecurityGroupsIDs:UpdateReplicationConfigurationTemplate' :: Maybe [Text]
replicationServersSecurityGroupsIDs = Maybe [Text]
a} :: UpdateReplicationConfigurationTemplate) ((Maybe [Text] -> f (Maybe [Text]))
 -> UpdateReplicationConfigurationTemplate
 -> f UpdateReplicationConfigurationTemplate)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
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

-- | Update replication configuration template EBS encryption key ARN
-- request.
updateReplicationConfigurationTemplate_ebsEncryptionKeyArn :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe Prelude.Text)
updateReplicationConfigurationTemplate_ebsEncryptionKeyArn :: (Maybe Text -> f (Maybe Text))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_ebsEncryptionKeyArn = (UpdateReplicationConfigurationTemplate -> Maybe Text)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe Text -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe Text
ebsEncryptionKeyArn :: Maybe Text
$sel:ebsEncryptionKeyArn:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Maybe Text
ebsEncryptionKeyArn} -> Maybe Text
ebsEncryptionKeyArn) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe Text
a -> UpdateReplicationConfigurationTemplate
s {$sel:ebsEncryptionKeyArn:UpdateReplicationConfigurationTemplate' :: Maybe Text
ebsEncryptionKeyArn = Maybe Text
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template use default large Staging Disk
-- type request.
updateReplicationConfigurationTemplate_defaultLargeStagingDiskType :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
updateReplicationConfigurationTemplate_defaultLargeStagingDiskType :: (Maybe ReplicationConfigurationDefaultLargeStagingDiskType
 -> f (Maybe ReplicationConfigurationDefaultLargeStagingDiskType))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_defaultLargeStagingDiskType = (UpdateReplicationConfigurationTemplate
 -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
    -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
     (Maybe ReplicationConfigurationDefaultLargeStagingDiskType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType :: Maybe ReplicationConfigurationDefaultLargeStagingDiskType
$sel:defaultLargeStagingDiskType:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType} -> Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe ReplicationConfigurationDefaultLargeStagingDiskType
a -> UpdateReplicationConfigurationTemplate
s {$sel:defaultLargeStagingDiskType:UpdateReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationDefaultLargeStagingDiskType
defaultLargeStagingDiskType = Maybe ReplicationConfigurationDefaultLargeStagingDiskType
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template bandwidth throttling request.
updateReplicationConfigurationTemplate_bandwidthThrottling :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe Prelude.Natural)
updateReplicationConfigurationTemplate_bandwidthThrottling :: (Maybe Natural -> f (Maybe Natural))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_bandwidthThrottling = (UpdateReplicationConfigurationTemplate -> Maybe Natural)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe Natural -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe Natural
bandwidthThrottling :: Maybe Natural
$sel:bandwidthThrottling:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Maybe Natural
bandwidthThrottling} -> Maybe Natural
bandwidthThrottling) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe Natural
a -> UpdateReplicationConfigurationTemplate
s {$sel:bandwidthThrottling:UpdateReplicationConfigurationTemplate' :: Maybe Natural
bandwidthThrottling = Maybe Natural
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template data plane routing request.
updateReplicationConfigurationTemplate_dataPlaneRouting :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe ReplicationConfigurationDataPlaneRouting)
updateReplicationConfigurationTemplate_dataPlaneRouting :: (Maybe ReplicationConfigurationDataPlaneRouting
 -> f (Maybe ReplicationConfigurationDataPlaneRouting))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_dataPlaneRouting = (UpdateReplicationConfigurationTemplate
 -> Maybe ReplicationConfigurationDataPlaneRouting)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe ReplicationConfigurationDataPlaneRouting
    -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe ReplicationConfigurationDataPlaneRouting)
     (Maybe ReplicationConfigurationDataPlaneRouting)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting :: Maybe ReplicationConfigurationDataPlaneRouting
$sel:dataPlaneRouting:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate
-> Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting} -> Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe ReplicationConfigurationDataPlaneRouting
a -> UpdateReplicationConfigurationTemplate
s {$sel:dataPlaneRouting:UpdateReplicationConfigurationTemplate' :: Maybe ReplicationConfigurationDataPlaneRouting
dataPlaneRouting = Maybe ReplicationConfigurationDataPlaneRouting
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template use dedicated Replication
-- Server request.
updateReplicationConfigurationTemplate_useDedicatedReplicationServer :: Lens.Lens' UpdateReplicationConfigurationTemplate (Prelude.Maybe Prelude.Bool)
updateReplicationConfigurationTemplate_useDedicatedReplicationServer :: (Maybe Bool -> f (Maybe Bool))
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_useDedicatedReplicationServer = (UpdateReplicationConfigurationTemplate -> Maybe Bool)
-> (UpdateReplicationConfigurationTemplate
    -> Maybe Bool -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Maybe Bool
useDedicatedReplicationServer :: Maybe Bool
$sel:useDedicatedReplicationServer:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Maybe Bool
useDedicatedReplicationServer} -> Maybe Bool
useDedicatedReplicationServer) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Maybe Bool
a -> UpdateReplicationConfigurationTemplate
s {$sel:useDedicatedReplicationServer:UpdateReplicationConfigurationTemplate' :: Maybe Bool
useDedicatedReplicationServer = Maybe Bool
a} :: UpdateReplicationConfigurationTemplate)

-- | Update replication configuration template template ID request.
updateReplicationConfigurationTemplate_replicationConfigurationTemplateID :: Lens.Lens' UpdateReplicationConfigurationTemplate Prelude.Text
updateReplicationConfigurationTemplate_replicationConfigurationTemplateID :: (Text -> f Text)
-> UpdateReplicationConfigurationTemplate
-> f UpdateReplicationConfigurationTemplate
updateReplicationConfigurationTemplate_replicationConfigurationTemplateID = (UpdateReplicationConfigurationTemplate -> Text)
-> (UpdateReplicationConfigurationTemplate
    -> Text -> UpdateReplicationConfigurationTemplate)
-> Lens
     UpdateReplicationConfigurationTemplate
     UpdateReplicationConfigurationTemplate
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateReplicationConfigurationTemplate' {Text
replicationConfigurationTemplateID :: Text
$sel:replicationConfigurationTemplateID:UpdateReplicationConfigurationTemplate' :: UpdateReplicationConfigurationTemplate -> Text
replicationConfigurationTemplateID} -> Text
replicationConfigurationTemplateID) (\s :: UpdateReplicationConfigurationTemplate
s@UpdateReplicationConfigurationTemplate' {} Text
a -> UpdateReplicationConfigurationTemplate
s {$sel:replicationConfigurationTemplateID:UpdateReplicationConfigurationTemplate' :: Text
replicationConfigurationTemplateID = Text
a} :: UpdateReplicationConfigurationTemplate)

instance
  Core.AWSRequest
    UpdateReplicationConfigurationTemplate
  where
  type
    AWSResponse
      UpdateReplicationConfigurationTemplate =
      ReplicationConfigurationTemplate
  request :: UpdateReplicationConfigurationTemplate
-> Request UpdateReplicationConfigurationTemplate
request = Service
-> UpdateReplicationConfigurationTemplate
-> Request UpdateReplicationConfigurationTemplate
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateReplicationConfigurationTemplate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse UpdateReplicationConfigurationTemplate)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse UpdateReplicationConfigurationTemplate))
-> Logger
-> Service
-> Proxy UpdateReplicationConfigurationTemplate
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse UpdateReplicationConfigurationTemplate)))
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
    UpdateReplicationConfigurationTemplate

instance
  Prelude.NFData
    UpdateReplicationConfigurationTemplate

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

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

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