{-# 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.RDS.RestoreDBClusterFromSnapshot
-- 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 DB cluster from a DB snapshot or DB cluster snapshot. This
-- action only applies to Aurora DB clusters.
--
-- The target DB cluster is created from the source snapshot with a default
-- configuration. If you don\'t specify a security group, the new DB
-- cluster is associated with the default security group.
--
-- This action only restores the DB cluster, not the DB instances for that
-- DB cluster. You must invoke the @CreateDBInstance@ action to create DB
-- instances for the restored DB cluster, specifying the identifier of the
-- restored DB cluster in @DBClusterIdentifier@. You can create DB
-- instances only after the @RestoreDBClusterFromSnapshot@ action has
-- completed and the DB cluster is available.
--
-- For more information on Amazon Aurora, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html What Is Amazon Aurora?>
-- in the /Amazon Aurora User Guide./
--
-- This action only applies to Aurora DB clusters.
module Amazonka.RDS.RestoreDBClusterFromSnapshot
  ( -- * Creating a Request
    RestoreDBClusterFromSnapshot (..),
    newRestoreDBClusterFromSnapshot,

    -- * Request Lenses
    restoreDBClusterFromSnapshot_engineVersion,
    restoreDBClusterFromSnapshot_deletionProtection,
    restoreDBClusterFromSnapshot_dbSubnetGroupName,
    restoreDBClusterFromSnapshot_domain,
    restoreDBClusterFromSnapshot_backtrackWindow,
    restoreDBClusterFromSnapshot_availabilityZones,
    restoreDBClusterFromSnapshot_kmsKeyId,
    restoreDBClusterFromSnapshot_vpcSecurityGroupIds,
    restoreDBClusterFromSnapshot_databaseName,
    restoreDBClusterFromSnapshot_dbClusterParameterGroupName,
    restoreDBClusterFromSnapshot_engineMode,
    restoreDBClusterFromSnapshot_scalingConfiguration,
    restoreDBClusterFromSnapshot_optionGroupName,
    restoreDBClusterFromSnapshot_copyTagsToSnapshot,
    restoreDBClusterFromSnapshot_domainIAMRoleName,
    restoreDBClusterFromSnapshot_tags,
    restoreDBClusterFromSnapshot_port,
    restoreDBClusterFromSnapshot_enableIAMDatabaseAuthentication,
    restoreDBClusterFromSnapshot_enableCloudwatchLogsExports,
    restoreDBClusterFromSnapshot_dbClusterIdentifier,
    restoreDBClusterFromSnapshot_snapshotIdentifier,
    restoreDBClusterFromSnapshot_engine,

    -- * Destructuring the Response
    RestoreDBClusterFromSnapshotResponse (..),
    newRestoreDBClusterFromSnapshotResponse,

    -- * Response Lenses
    restoreDBClusterFromSnapshotResponse_dbCluster,
    restoreDBClusterFromSnapshotResponse_httpStatus,
  )
where

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

-- |
--
-- /See:/ 'newRestoreDBClusterFromSnapshot' smart constructor.
data RestoreDBClusterFromSnapshot = RestoreDBClusterFromSnapshot'
  { -- | The version of the database engine to use for the new DB cluster.
    --
    -- To list all of the available engine versions for @aurora@ (for MySQL
    -- 5.6-compatible Aurora), use the following command:
    --
    -- @aws rds describe-db-engine-versions --engine aurora --query \"DBEngineVersions[].EngineVersion\"@
    --
    -- To list all of the available engine versions for @aurora-mysql@ (for
    -- MySQL 5.7-compatible Aurora), use the following command:
    --
    -- @aws rds describe-db-engine-versions --engine aurora-mysql --query \"DBEngineVersions[].EngineVersion\"@
    --
    -- To list all of the available engine versions for @aurora-postgresql@,
    -- use the following command:
    --
    -- @aws rds describe-db-engine-versions --engine aurora-postgresql --query \"DBEngineVersions[].EngineVersion\"@
    --
    -- If you aren\'t using the default engine version, then you must specify
    -- the engine version.
    --
    -- __Aurora MySQL__
    --
    -- Example: @5.6.10a@, @5.6.mysql_aurora.1.19.2@, @5.7.12@,
    -- @5.7.mysql_aurora.2.04.5@
    --
    -- __Aurora PostgreSQL__
    --
    -- Example: @9.6.3@, @10.7@
    RestoreDBClusterFromSnapshot -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
    -- | A value that indicates whether the DB cluster has deletion protection
    -- enabled. The database can\'t be deleted when deletion protection is
    -- enabled. By default, deletion protection is disabled.
    RestoreDBClusterFromSnapshot -> Maybe Bool
deletionProtection :: Prelude.Maybe Prelude.Bool,
    -- | The name of the DB subnet group to use for the new DB cluster.
    --
    -- Constraints: If supplied, must match the name of an existing DB subnet
    -- group.
    --
    -- Example: @mySubnetgroup@
    RestoreDBClusterFromSnapshot -> Maybe Text
dbSubnetGroupName :: Prelude.Maybe Prelude.Text,
    -- | Specify the Active Directory directory ID to restore the DB cluster in.
    -- The domain must be created prior to this operation. Currently, only
    -- MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be
    -- created in an Active Directory Domain.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html Kerberos Authentication>
    -- in the /Amazon RDS User Guide/.
    RestoreDBClusterFromSnapshot -> Maybe Text
domain :: Prelude.Maybe Prelude.Text,
    -- | The target backtrack window, in seconds. To disable backtracking, set
    -- this value to 0.
    --
    -- Currently, Backtrack is only supported for Aurora MySQL DB clusters.
    --
    -- Default: 0
    --
    -- Constraints:
    --
    -- -   If specified, this value must be set to a number from 0 to 259,200
    --     (72 hours).
    RestoreDBClusterFromSnapshot -> Maybe Integer
backtrackWindow :: Prelude.Maybe Prelude.Integer,
    -- | Provides the list of Availability Zones (AZs) where instances in the
    -- restored DB cluster can be created.
    RestoreDBClusterFromSnapshot -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
    -- | The Amazon Web Services KMS key identifier to use when restoring an
    -- encrypted DB cluster from a DB snapshot or DB cluster snapshot.
    --
    -- The Amazon Web Services KMS key identifier is the key ARN, key ID, alias
    -- ARN, or alias name for the Amazon Web Services KMS customer master key
    -- (CMK). To use a CMK in a different Amazon Web Services account, specify
    -- the key ARN or alias ARN.
    --
    -- When you don\'t specify a value for the @KmsKeyId@ parameter, then the
    -- following occurs:
    --
    -- -   If the DB snapshot or DB cluster snapshot in @SnapshotIdentifier@ is
    --     encrypted, then the restored DB cluster is encrypted using the
    --     Amazon Web Services KMS CMK that was used to encrypt the DB snapshot
    --     or DB cluster snapshot.
    --
    -- -   If the DB snapshot or DB cluster snapshot in @SnapshotIdentifier@
    --     isn\'t encrypted, then the restored DB cluster isn\'t encrypted.
    RestoreDBClusterFromSnapshot -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | A list of VPC security groups that the new DB cluster will belong to.
    RestoreDBClusterFromSnapshot -> Maybe [Text]
vpcSecurityGroupIds :: Prelude.Maybe [Prelude.Text],
    -- | The database name for the restored DB cluster.
    RestoreDBClusterFromSnapshot -> Maybe Text
databaseName :: Prelude.Maybe Prelude.Text,
    -- | The name of the DB cluster parameter group to associate with this DB
    -- cluster. If this argument is omitted, the default DB cluster parameter
    -- group for the specified engine is used.
    --
    -- Constraints:
    --
    -- -   If supplied, must match the name of an existing default DB cluster
    --     parameter group.
    --
    -- -   Must be 1 to 255 letters, numbers, or hyphens.
    --
    -- -   First character must be a letter.
    --
    -- -   Can\'t end with a hyphen or contain two consecutive hyphens.
    RestoreDBClusterFromSnapshot -> Maybe Text
dbClusterParameterGroupName :: Prelude.Maybe Prelude.Text,
    -- | The DB engine mode of the DB cluster, either @provisioned@,
    -- @serverless@, @parallelquery@, @global@, or @multimaster@.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html CreateDBCluster>.
    RestoreDBClusterFromSnapshot -> Maybe Text
engineMode :: Prelude.Maybe Prelude.Text,
    -- | For DB clusters in @serverless@ DB engine mode, the scaling properties
    -- of the DB cluster.
    RestoreDBClusterFromSnapshot -> Maybe ScalingConfiguration
scalingConfiguration :: Prelude.Maybe ScalingConfiguration,
    -- | The name of the option group to use for the restored DB cluster.
    RestoreDBClusterFromSnapshot -> Maybe Text
optionGroupName :: Prelude.Maybe Prelude.Text,
    -- | A value that indicates whether to copy all tags from the restored DB
    -- cluster to snapshots of the restored DB cluster. The default is not to
    -- copy them.
    RestoreDBClusterFromSnapshot -> Maybe Bool
copyTagsToSnapshot :: Prelude.Maybe Prelude.Bool,
    -- | Specify the name of the IAM role to be used when making API calls to the
    -- Directory Service.
    RestoreDBClusterFromSnapshot -> Maybe Text
domainIAMRoleName :: Prelude.Maybe Prelude.Text,
    -- | The tags to be assigned to the restored DB cluster.
    RestoreDBClusterFromSnapshot -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The port number on which the new DB cluster accepts connections.
    --
    -- Constraints: This value must be @1150-65535@
    --
    -- Default: The same port as the original DB cluster.
    RestoreDBClusterFromSnapshot -> Maybe Int
port :: Prelude.Maybe Prelude.Int,
    -- | A value that indicates whether to enable mapping of Amazon Web Services
    -- Identity and Access Management (IAM) accounts to database accounts. By
    -- default, mapping is disabled.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html IAM Database Authentication>
    -- in the /Amazon Aurora User Guide./
    RestoreDBClusterFromSnapshot -> Maybe Bool
enableIAMDatabaseAuthentication :: Prelude.Maybe Prelude.Bool,
    -- | The list of logs that the restored DB cluster is to export to Amazon
    -- CloudWatch Logs. The values in the list depend on the DB engine being
    -- used. For more information, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch Publishing Database Logs to Amazon CloudWatch Logs>
    -- in the /Amazon Aurora User Guide/.
    RestoreDBClusterFromSnapshot -> Maybe [Text]
enableCloudwatchLogsExports :: Prelude.Maybe [Prelude.Text],
    -- | The name of the DB cluster to create from the DB snapshot or DB cluster
    -- snapshot. This parameter isn\'t case-sensitive.
    --
    -- Constraints:
    --
    -- -   Must contain from 1 to 63 letters, numbers, or hyphens
    --
    -- -   First character must be a letter
    --
    -- -   Can\'t end with a hyphen or contain two consecutive hyphens
    --
    -- Example: @my-snapshot-id@
    RestoreDBClusterFromSnapshot -> Text
dbClusterIdentifier :: Prelude.Text,
    -- | The identifier for the DB snapshot or DB cluster snapshot to restore
    -- from.
    --
    -- You can use either the name or the Amazon Resource Name (ARN) to specify
    -- a DB cluster snapshot. However, you can use only the ARN to specify a DB
    -- snapshot.
    --
    -- Constraints:
    --
    -- -   Must match the identifier of an existing Snapshot.
    RestoreDBClusterFromSnapshot -> Text
snapshotIdentifier :: Prelude.Text,
    -- | The database engine to use for the new DB cluster.
    --
    -- Default: The same as source
    --
    -- Constraint: Must be compatible with the engine of the source
    RestoreDBClusterFromSnapshot -> Text
engine :: Prelude.Text
  }
  deriving (RestoreDBClusterFromSnapshot
-> RestoreDBClusterFromSnapshot -> Bool
(RestoreDBClusterFromSnapshot
 -> RestoreDBClusterFromSnapshot -> Bool)
-> (RestoreDBClusterFromSnapshot
    -> RestoreDBClusterFromSnapshot -> Bool)
-> Eq RestoreDBClusterFromSnapshot
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RestoreDBClusterFromSnapshot
-> RestoreDBClusterFromSnapshot -> Bool
$c/= :: RestoreDBClusterFromSnapshot
-> RestoreDBClusterFromSnapshot -> Bool
== :: RestoreDBClusterFromSnapshot
-> RestoreDBClusterFromSnapshot -> Bool
$c== :: RestoreDBClusterFromSnapshot
-> RestoreDBClusterFromSnapshot -> Bool
Prelude.Eq, ReadPrec [RestoreDBClusterFromSnapshot]
ReadPrec RestoreDBClusterFromSnapshot
Int -> ReadS RestoreDBClusterFromSnapshot
ReadS [RestoreDBClusterFromSnapshot]
(Int -> ReadS RestoreDBClusterFromSnapshot)
-> ReadS [RestoreDBClusterFromSnapshot]
-> ReadPrec RestoreDBClusterFromSnapshot
-> ReadPrec [RestoreDBClusterFromSnapshot]
-> Read RestoreDBClusterFromSnapshot
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RestoreDBClusterFromSnapshot]
$creadListPrec :: ReadPrec [RestoreDBClusterFromSnapshot]
readPrec :: ReadPrec RestoreDBClusterFromSnapshot
$creadPrec :: ReadPrec RestoreDBClusterFromSnapshot
readList :: ReadS [RestoreDBClusterFromSnapshot]
$creadList :: ReadS [RestoreDBClusterFromSnapshot]
readsPrec :: Int -> ReadS RestoreDBClusterFromSnapshot
$creadsPrec :: Int -> ReadS RestoreDBClusterFromSnapshot
Prelude.Read, Int -> RestoreDBClusterFromSnapshot -> ShowS
[RestoreDBClusterFromSnapshot] -> ShowS
RestoreDBClusterFromSnapshot -> String
(Int -> RestoreDBClusterFromSnapshot -> ShowS)
-> (RestoreDBClusterFromSnapshot -> String)
-> ([RestoreDBClusterFromSnapshot] -> ShowS)
-> Show RestoreDBClusterFromSnapshot
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RestoreDBClusterFromSnapshot] -> ShowS
$cshowList :: [RestoreDBClusterFromSnapshot] -> ShowS
show :: RestoreDBClusterFromSnapshot -> String
$cshow :: RestoreDBClusterFromSnapshot -> String
showsPrec :: Int -> RestoreDBClusterFromSnapshot -> ShowS
$cshowsPrec :: Int -> RestoreDBClusterFromSnapshot -> ShowS
Prelude.Show, (forall x.
 RestoreDBClusterFromSnapshot -> Rep RestoreDBClusterFromSnapshot x)
-> (forall x.
    Rep RestoreDBClusterFromSnapshot x -> RestoreDBClusterFromSnapshot)
-> Generic RestoreDBClusterFromSnapshot
forall x.
Rep RestoreDBClusterFromSnapshot x -> RestoreDBClusterFromSnapshot
forall x.
RestoreDBClusterFromSnapshot -> Rep RestoreDBClusterFromSnapshot x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RestoreDBClusterFromSnapshot x -> RestoreDBClusterFromSnapshot
$cfrom :: forall x.
RestoreDBClusterFromSnapshot -> Rep RestoreDBClusterFromSnapshot x
Prelude.Generic)

-- |
-- Create a value of 'RestoreDBClusterFromSnapshot' 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:
--
-- 'engineVersion', 'restoreDBClusterFromSnapshot_engineVersion' - The version of the database engine to use for the new DB cluster.
--
-- To list all of the available engine versions for @aurora@ (for MySQL
-- 5.6-compatible Aurora), use the following command:
--
-- @aws rds describe-db-engine-versions --engine aurora --query \"DBEngineVersions[].EngineVersion\"@
--
-- To list all of the available engine versions for @aurora-mysql@ (for
-- MySQL 5.7-compatible Aurora), use the following command:
--
-- @aws rds describe-db-engine-versions --engine aurora-mysql --query \"DBEngineVersions[].EngineVersion\"@
--
-- To list all of the available engine versions for @aurora-postgresql@,
-- use the following command:
--
-- @aws rds describe-db-engine-versions --engine aurora-postgresql --query \"DBEngineVersions[].EngineVersion\"@
--
-- If you aren\'t using the default engine version, then you must specify
-- the engine version.
--
-- __Aurora MySQL__
--
-- Example: @5.6.10a@, @5.6.mysql_aurora.1.19.2@, @5.7.12@,
-- @5.7.mysql_aurora.2.04.5@
--
-- __Aurora PostgreSQL__
--
-- Example: @9.6.3@, @10.7@
--
-- 'deletionProtection', 'restoreDBClusterFromSnapshot_deletionProtection' - A value that indicates whether the DB cluster has deletion protection
-- enabled. The database can\'t be deleted when deletion protection is
-- enabled. By default, deletion protection is disabled.
--
-- 'dbSubnetGroupName', 'restoreDBClusterFromSnapshot_dbSubnetGroupName' - The name of the DB subnet group to use for the new DB cluster.
--
-- Constraints: If supplied, must match the name of an existing DB subnet
-- group.
--
-- Example: @mySubnetgroup@
--
-- 'domain', 'restoreDBClusterFromSnapshot_domain' - Specify the Active Directory directory ID to restore the DB cluster in.
-- The domain must be created prior to this operation. Currently, only
-- MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be
-- created in an Active Directory Domain.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html Kerberos Authentication>
-- in the /Amazon RDS User Guide/.
--
-- 'backtrackWindow', 'restoreDBClusterFromSnapshot_backtrackWindow' - The target backtrack window, in seconds. To disable backtracking, set
-- this value to 0.
--
-- Currently, Backtrack is only supported for Aurora MySQL DB clusters.
--
-- Default: 0
--
-- Constraints:
--
-- -   If specified, this value must be set to a number from 0 to 259,200
--     (72 hours).
--
-- 'availabilityZones', 'restoreDBClusterFromSnapshot_availabilityZones' - Provides the list of Availability Zones (AZs) where instances in the
-- restored DB cluster can be created.
--
-- 'kmsKeyId', 'restoreDBClusterFromSnapshot_kmsKeyId' - The Amazon Web Services KMS key identifier to use when restoring an
-- encrypted DB cluster from a DB snapshot or DB cluster snapshot.
--
-- The Amazon Web Services KMS key identifier is the key ARN, key ID, alias
-- ARN, or alias name for the Amazon Web Services KMS customer master key
-- (CMK). To use a CMK in a different Amazon Web Services account, specify
-- the key ARN or alias ARN.
--
-- When you don\'t specify a value for the @KmsKeyId@ parameter, then the
-- following occurs:
--
-- -   If the DB snapshot or DB cluster snapshot in @SnapshotIdentifier@ is
--     encrypted, then the restored DB cluster is encrypted using the
--     Amazon Web Services KMS CMK that was used to encrypt the DB snapshot
--     or DB cluster snapshot.
--
-- -   If the DB snapshot or DB cluster snapshot in @SnapshotIdentifier@
--     isn\'t encrypted, then the restored DB cluster isn\'t encrypted.
--
-- 'vpcSecurityGroupIds', 'restoreDBClusterFromSnapshot_vpcSecurityGroupIds' - A list of VPC security groups that the new DB cluster will belong to.
--
-- 'databaseName', 'restoreDBClusterFromSnapshot_databaseName' - The database name for the restored DB cluster.
--
-- 'dbClusterParameterGroupName', 'restoreDBClusterFromSnapshot_dbClusterParameterGroupName' - The name of the DB cluster parameter group to associate with this DB
-- cluster. If this argument is omitted, the default DB cluster parameter
-- group for the specified engine is used.
--
-- Constraints:
--
-- -   If supplied, must match the name of an existing default DB cluster
--     parameter group.
--
-- -   Must be 1 to 255 letters, numbers, or hyphens.
--
-- -   First character must be a letter.
--
-- -   Can\'t end with a hyphen or contain two consecutive hyphens.
--
-- 'engineMode', 'restoreDBClusterFromSnapshot_engineMode' - The DB engine mode of the DB cluster, either @provisioned@,
-- @serverless@, @parallelquery@, @global@, or @multimaster@.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html CreateDBCluster>.
--
-- 'scalingConfiguration', 'restoreDBClusterFromSnapshot_scalingConfiguration' - For DB clusters in @serverless@ DB engine mode, the scaling properties
-- of the DB cluster.
--
-- 'optionGroupName', 'restoreDBClusterFromSnapshot_optionGroupName' - The name of the option group to use for the restored DB cluster.
--
-- 'copyTagsToSnapshot', 'restoreDBClusterFromSnapshot_copyTagsToSnapshot' - A value that indicates whether to copy all tags from the restored DB
-- cluster to snapshots of the restored DB cluster. The default is not to
-- copy them.
--
-- 'domainIAMRoleName', 'restoreDBClusterFromSnapshot_domainIAMRoleName' - Specify the name of the IAM role to be used when making API calls to the
-- Directory Service.
--
-- 'tags', 'restoreDBClusterFromSnapshot_tags' - The tags to be assigned to the restored DB cluster.
--
-- 'port', 'restoreDBClusterFromSnapshot_port' - The port number on which the new DB cluster accepts connections.
--
-- Constraints: This value must be @1150-65535@
--
-- Default: The same port as the original DB cluster.
--
-- 'enableIAMDatabaseAuthentication', 'restoreDBClusterFromSnapshot_enableIAMDatabaseAuthentication' - A value that indicates whether to enable mapping of Amazon Web Services
-- Identity and Access Management (IAM) accounts to database accounts. By
-- default, mapping is disabled.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html IAM Database Authentication>
-- in the /Amazon Aurora User Guide./
--
-- 'enableCloudwatchLogsExports', 'restoreDBClusterFromSnapshot_enableCloudwatchLogsExports' - The list of logs that the restored DB cluster is to export to Amazon
-- CloudWatch Logs. The values in the list depend on the DB engine being
-- used. For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch Publishing Database Logs to Amazon CloudWatch Logs>
-- in the /Amazon Aurora User Guide/.
--
-- 'dbClusterIdentifier', 'restoreDBClusterFromSnapshot_dbClusterIdentifier' - The name of the DB cluster to create from the DB snapshot or DB cluster
-- snapshot. This parameter isn\'t case-sensitive.
--
-- Constraints:
--
-- -   Must contain from 1 to 63 letters, numbers, or hyphens
--
-- -   First character must be a letter
--
-- -   Can\'t end with a hyphen or contain two consecutive hyphens
--
-- Example: @my-snapshot-id@
--
-- 'snapshotIdentifier', 'restoreDBClusterFromSnapshot_snapshotIdentifier' - The identifier for the DB snapshot or DB cluster snapshot to restore
-- from.
--
-- You can use either the name or the Amazon Resource Name (ARN) to specify
-- a DB cluster snapshot. However, you can use only the ARN to specify a DB
-- snapshot.
--
-- Constraints:
--
-- -   Must match the identifier of an existing Snapshot.
--
-- 'engine', 'restoreDBClusterFromSnapshot_engine' - The database engine to use for the new DB cluster.
--
-- Default: The same as source
--
-- Constraint: Must be compatible with the engine of the source
newRestoreDBClusterFromSnapshot ::
  -- | 'dbClusterIdentifier'
  Prelude.Text ->
  -- | 'snapshotIdentifier'
  Prelude.Text ->
  -- | 'engine'
  Prelude.Text ->
  RestoreDBClusterFromSnapshot
newRestoreDBClusterFromSnapshot :: Text -> Text -> Text -> RestoreDBClusterFromSnapshot
newRestoreDBClusterFromSnapshot
  Text
pDBClusterIdentifier_
  Text
pSnapshotIdentifier_
  Text
pEngine_ =
    RestoreDBClusterFromSnapshot' :: Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe [Text]
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ScalingConfiguration
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Maybe Int
-> Maybe Bool
-> Maybe [Text]
-> Text
-> Text
-> Text
-> RestoreDBClusterFromSnapshot
RestoreDBClusterFromSnapshot'
      { $sel:engineVersion:RestoreDBClusterFromSnapshot' :: Maybe Text
engineVersion =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:deletionProtection:RestoreDBClusterFromSnapshot' :: Maybe Bool
deletionProtection = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:dbSubnetGroupName:RestoreDBClusterFromSnapshot' :: Maybe Text
dbSubnetGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:domain:RestoreDBClusterFromSnapshot' :: Maybe Text
domain = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:backtrackWindow:RestoreDBClusterFromSnapshot' :: Maybe Integer
backtrackWindow = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
        $sel:availabilityZones:RestoreDBClusterFromSnapshot' :: Maybe [Text]
availabilityZones = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:kmsKeyId:RestoreDBClusterFromSnapshot' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:vpcSecurityGroupIds:RestoreDBClusterFromSnapshot' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:databaseName:RestoreDBClusterFromSnapshot' :: Maybe Text
databaseName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:dbClusterParameterGroupName:RestoreDBClusterFromSnapshot' :: Maybe Text
dbClusterParameterGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:engineMode:RestoreDBClusterFromSnapshot' :: Maybe Text
engineMode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:scalingConfiguration:RestoreDBClusterFromSnapshot' :: Maybe ScalingConfiguration
scalingConfiguration = Maybe ScalingConfiguration
forall a. Maybe a
Prelude.Nothing,
        $sel:optionGroupName:RestoreDBClusterFromSnapshot' :: Maybe Text
optionGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:copyTagsToSnapshot:RestoreDBClusterFromSnapshot' :: Maybe Bool
copyTagsToSnapshot = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:domainIAMRoleName:RestoreDBClusterFromSnapshot' :: Maybe Text
domainIAMRoleName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:RestoreDBClusterFromSnapshot' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
        $sel:port:RestoreDBClusterFromSnapshot' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing,
        $sel:enableIAMDatabaseAuthentication:RestoreDBClusterFromSnapshot' :: Maybe Bool
enableIAMDatabaseAuthentication =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:enableCloudwatchLogsExports:RestoreDBClusterFromSnapshot' :: Maybe [Text]
enableCloudwatchLogsExports = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:dbClusterIdentifier:RestoreDBClusterFromSnapshot' :: Text
dbClusterIdentifier = Text
pDBClusterIdentifier_,
        $sel:snapshotIdentifier:RestoreDBClusterFromSnapshot' :: Text
snapshotIdentifier = Text
pSnapshotIdentifier_,
        $sel:engine:RestoreDBClusterFromSnapshot' :: Text
engine = Text
pEngine_
      }

-- | The version of the database engine to use for the new DB cluster.
--
-- To list all of the available engine versions for @aurora@ (for MySQL
-- 5.6-compatible Aurora), use the following command:
--
-- @aws rds describe-db-engine-versions --engine aurora --query \"DBEngineVersions[].EngineVersion\"@
--
-- To list all of the available engine versions for @aurora-mysql@ (for
-- MySQL 5.7-compatible Aurora), use the following command:
--
-- @aws rds describe-db-engine-versions --engine aurora-mysql --query \"DBEngineVersions[].EngineVersion\"@
--
-- To list all of the available engine versions for @aurora-postgresql@,
-- use the following command:
--
-- @aws rds describe-db-engine-versions --engine aurora-postgresql --query \"DBEngineVersions[].EngineVersion\"@
--
-- If you aren\'t using the default engine version, then you must specify
-- the engine version.
--
-- __Aurora MySQL__
--
-- Example: @5.6.10a@, @5.6.mysql_aurora.1.19.2@, @5.7.12@,
-- @5.7.mysql_aurora.2.04.5@
--
-- __Aurora PostgreSQL__
--
-- Example: @9.6.3@, @10.7@
restoreDBClusterFromSnapshot_engineVersion :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Text)
restoreDBClusterFromSnapshot_engineVersion :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_engineVersion = (RestoreDBClusterFromSnapshot -> Maybe Text)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Text
a -> RestoreDBClusterFromSnapshot
s {$sel:engineVersion:RestoreDBClusterFromSnapshot' :: Maybe Text
engineVersion = Maybe Text
a} :: RestoreDBClusterFromSnapshot)

-- | A value that indicates whether the DB cluster has deletion protection
-- enabled. The database can\'t be deleted when deletion protection is
-- enabled. By default, deletion protection is disabled.
restoreDBClusterFromSnapshot_deletionProtection :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBClusterFromSnapshot_deletionProtection :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_deletionProtection = (RestoreDBClusterFromSnapshot -> Maybe Bool)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Bool -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Bool
deletionProtection :: Maybe Bool
$sel:deletionProtection:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Bool
deletionProtection} -> Maybe Bool
deletionProtection) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Bool
a -> RestoreDBClusterFromSnapshot
s {$sel:deletionProtection:RestoreDBClusterFromSnapshot' :: Maybe Bool
deletionProtection = Maybe Bool
a} :: RestoreDBClusterFromSnapshot)

-- | The name of the DB subnet group to use for the new DB cluster.
--
-- Constraints: If supplied, must match the name of an existing DB subnet
-- group.
--
-- Example: @mySubnetgroup@
restoreDBClusterFromSnapshot_dbSubnetGroupName :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Text)
restoreDBClusterFromSnapshot_dbSubnetGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_dbSubnetGroupName = (RestoreDBClusterFromSnapshot -> Maybe Text)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Text
dbSubnetGroupName :: Maybe Text
$sel:dbSubnetGroupName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
dbSubnetGroupName} -> Maybe Text
dbSubnetGroupName) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Text
a -> RestoreDBClusterFromSnapshot
s {$sel:dbSubnetGroupName:RestoreDBClusterFromSnapshot' :: Maybe Text
dbSubnetGroupName = Maybe Text
a} :: RestoreDBClusterFromSnapshot)

-- | Specify the Active Directory directory ID to restore the DB cluster in.
-- The domain must be created prior to this operation. Currently, only
-- MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be
-- created in an Active Directory Domain.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html Kerberos Authentication>
-- in the /Amazon RDS User Guide/.
restoreDBClusterFromSnapshot_domain :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Text)
restoreDBClusterFromSnapshot_domain :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_domain = (RestoreDBClusterFromSnapshot -> Maybe Text)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Text
domain :: Maybe Text
$sel:domain:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
domain} -> Maybe Text
domain) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Text
a -> RestoreDBClusterFromSnapshot
s {$sel:domain:RestoreDBClusterFromSnapshot' :: Maybe Text
domain = Maybe Text
a} :: RestoreDBClusterFromSnapshot)

-- | The target backtrack window, in seconds. To disable backtracking, set
-- this value to 0.
--
-- Currently, Backtrack is only supported for Aurora MySQL DB clusters.
--
-- Default: 0
--
-- Constraints:
--
-- -   If specified, this value must be set to a number from 0 to 259,200
--     (72 hours).
restoreDBClusterFromSnapshot_backtrackWindow :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Integer)
restoreDBClusterFromSnapshot_backtrackWindow :: (Maybe Integer -> f (Maybe Integer))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_backtrackWindow = (RestoreDBClusterFromSnapshot -> Maybe Integer)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Integer -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Integer
backtrackWindow :: Maybe Integer
$sel:backtrackWindow:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Integer
backtrackWindow} -> Maybe Integer
backtrackWindow) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Integer
a -> RestoreDBClusterFromSnapshot
s {$sel:backtrackWindow:RestoreDBClusterFromSnapshot' :: Maybe Integer
backtrackWindow = Maybe Integer
a} :: RestoreDBClusterFromSnapshot)

-- | Provides the list of Availability Zones (AZs) where instances in the
-- restored DB cluster can be created.
restoreDBClusterFromSnapshot_availabilityZones :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe [Prelude.Text])
restoreDBClusterFromSnapshot_availabilityZones :: (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_availabilityZones = (RestoreDBClusterFromSnapshot -> Maybe [Text])
-> (RestoreDBClusterFromSnapshot
    -> Maybe [Text] -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe [Text]
availabilityZones :: Maybe [Text]
$sel:availabilityZones:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe [Text]
availabilityZones} -> Maybe [Text]
availabilityZones) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe [Text]
a -> RestoreDBClusterFromSnapshot
s {$sel:availabilityZones:RestoreDBClusterFromSnapshot' :: Maybe [Text]
availabilityZones = Maybe [Text]
a} :: RestoreDBClusterFromSnapshot) ((Maybe [Text] -> f (Maybe [Text]))
 -> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromSnapshot
-> f RestoreDBClusterFromSnapshot
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

-- | The Amazon Web Services KMS key identifier to use when restoring an
-- encrypted DB cluster from a DB snapshot or DB cluster snapshot.
--
-- The Amazon Web Services KMS key identifier is the key ARN, key ID, alias
-- ARN, or alias name for the Amazon Web Services KMS customer master key
-- (CMK). To use a CMK in a different Amazon Web Services account, specify
-- the key ARN or alias ARN.
--
-- When you don\'t specify a value for the @KmsKeyId@ parameter, then the
-- following occurs:
--
-- -   If the DB snapshot or DB cluster snapshot in @SnapshotIdentifier@ is
--     encrypted, then the restored DB cluster is encrypted using the
--     Amazon Web Services KMS CMK that was used to encrypt the DB snapshot
--     or DB cluster snapshot.
--
-- -   If the DB snapshot or DB cluster snapshot in @SnapshotIdentifier@
--     isn\'t encrypted, then the restored DB cluster isn\'t encrypted.
restoreDBClusterFromSnapshot_kmsKeyId :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Text)
restoreDBClusterFromSnapshot_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_kmsKeyId = (RestoreDBClusterFromSnapshot -> Maybe Text)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Text
a -> RestoreDBClusterFromSnapshot
s {$sel:kmsKeyId:RestoreDBClusterFromSnapshot' :: Maybe Text
kmsKeyId = Maybe Text
a} :: RestoreDBClusterFromSnapshot)

-- | A list of VPC security groups that the new DB cluster will belong to.
restoreDBClusterFromSnapshot_vpcSecurityGroupIds :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe [Prelude.Text])
restoreDBClusterFromSnapshot_vpcSecurityGroupIds :: (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_vpcSecurityGroupIds = (RestoreDBClusterFromSnapshot -> Maybe [Text])
-> (RestoreDBClusterFromSnapshot
    -> Maybe [Text] -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe [Text]
vpcSecurityGroupIds :: Maybe [Text]
$sel:vpcSecurityGroupIds:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe [Text]
vpcSecurityGroupIds} -> Maybe [Text]
vpcSecurityGroupIds) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe [Text]
a -> RestoreDBClusterFromSnapshot
s {$sel:vpcSecurityGroupIds:RestoreDBClusterFromSnapshot' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
a} :: RestoreDBClusterFromSnapshot) ((Maybe [Text] -> f (Maybe [Text]))
 -> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromSnapshot
-> f RestoreDBClusterFromSnapshot
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

-- | The database name for the restored DB cluster.
restoreDBClusterFromSnapshot_databaseName :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Text)
restoreDBClusterFromSnapshot_databaseName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_databaseName = (RestoreDBClusterFromSnapshot -> Maybe Text)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Text
databaseName :: Maybe Text
$sel:databaseName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
databaseName} -> Maybe Text
databaseName) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Text
a -> RestoreDBClusterFromSnapshot
s {$sel:databaseName:RestoreDBClusterFromSnapshot' :: Maybe Text
databaseName = Maybe Text
a} :: RestoreDBClusterFromSnapshot)

-- | The name of the DB cluster parameter group to associate with this DB
-- cluster. If this argument is omitted, the default DB cluster parameter
-- group for the specified engine is used.
--
-- Constraints:
--
-- -   If supplied, must match the name of an existing default DB cluster
--     parameter group.
--
-- -   Must be 1 to 255 letters, numbers, or hyphens.
--
-- -   First character must be a letter.
--
-- -   Can\'t end with a hyphen or contain two consecutive hyphens.
restoreDBClusterFromSnapshot_dbClusterParameterGroupName :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Text)
restoreDBClusterFromSnapshot_dbClusterParameterGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_dbClusterParameterGroupName = (RestoreDBClusterFromSnapshot -> Maybe Text)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Text
dbClusterParameterGroupName :: Maybe Text
$sel:dbClusterParameterGroupName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
dbClusterParameterGroupName} -> Maybe Text
dbClusterParameterGroupName) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Text
a -> RestoreDBClusterFromSnapshot
s {$sel:dbClusterParameterGroupName:RestoreDBClusterFromSnapshot' :: Maybe Text
dbClusterParameterGroupName = Maybe Text
a} :: RestoreDBClusterFromSnapshot)

-- | The DB engine mode of the DB cluster, either @provisioned@,
-- @serverless@, @parallelquery@, @global@, or @multimaster@.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBCluster.html CreateDBCluster>.
restoreDBClusterFromSnapshot_engineMode :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Text)
restoreDBClusterFromSnapshot_engineMode :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_engineMode = (RestoreDBClusterFromSnapshot -> Maybe Text)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Text
engineMode :: Maybe Text
$sel:engineMode:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
engineMode} -> Maybe Text
engineMode) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Text
a -> RestoreDBClusterFromSnapshot
s {$sel:engineMode:RestoreDBClusterFromSnapshot' :: Maybe Text
engineMode = Maybe Text
a} :: RestoreDBClusterFromSnapshot)

-- | For DB clusters in @serverless@ DB engine mode, the scaling properties
-- of the DB cluster.
restoreDBClusterFromSnapshot_scalingConfiguration :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe ScalingConfiguration)
restoreDBClusterFromSnapshot_scalingConfiguration :: (Maybe ScalingConfiguration -> f (Maybe ScalingConfiguration))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_scalingConfiguration = (RestoreDBClusterFromSnapshot -> Maybe ScalingConfiguration)
-> (RestoreDBClusterFromSnapshot
    -> Maybe ScalingConfiguration -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe ScalingConfiguration)
     (Maybe ScalingConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe ScalingConfiguration
scalingConfiguration :: Maybe ScalingConfiguration
$sel:scalingConfiguration:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe ScalingConfiguration
scalingConfiguration} -> Maybe ScalingConfiguration
scalingConfiguration) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe ScalingConfiguration
a -> RestoreDBClusterFromSnapshot
s {$sel:scalingConfiguration:RestoreDBClusterFromSnapshot' :: Maybe ScalingConfiguration
scalingConfiguration = Maybe ScalingConfiguration
a} :: RestoreDBClusterFromSnapshot)

-- | The name of the option group to use for the restored DB cluster.
restoreDBClusterFromSnapshot_optionGroupName :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Text)
restoreDBClusterFromSnapshot_optionGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_optionGroupName = (RestoreDBClusterFromSnapshot -> Maybe Text)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Text
optionGroupName :: Maybe Text
$sel:optionGroupName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
optionGroupName} -> Maybe Text
optionGroupName) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Text
a -> RestoreDBClusterFromSnapshot
s {$sel:optionGroupName:RestoreDBClusterFromSnapshot' :: Maybe Text
optionGroupName = Maybe Text
a} :: RestoreDBClusterFromSnapshot)

-- | A value that indicates whether to copy all tags from the restored DB
-- cluster to snapshots of the restored DB cluster. The default is not to
-- copy them.
restoreDBClusterFromSnapshot_copyTagsToSnapshot :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBClusterFromSnapshot_copyTagsToSnapshot :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_copyTagsToSnapshot = (RestoreDBClusterFromSnapshot -> Maybe Bool)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Bool -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Bool
copyTagsToSnapshot :: Maybe Bool
$sel:copyTagsToSnapshot:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Bool
copyTagsToSnapshot} -> Maybe Bool
copyTagsToSnapshot) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Bool
a -> RestoreDBClusterFromSnapshot
s {$sel:copyTagsToSnapshot:RestoreDBClusterFromSnapshot' :: Maybe Bool
copyTagsToSnapshot = Maybe Bool
a} :: RestoreDBClusterFromSnapshot)

-- | Specify the name of the IAM role to be used when making API calls to the
-- Directory Service.
restoreDBClusterFromSnapshot_domainIAMRoleName :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Text)
restoreDBClusterFromSnapshot_domainIAMRoleName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_domainIAMRoleName = (RestoreDBClusterFromSnapshot -> Maybe Text)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Text
domainIAMRoleName :: Maybe Text
$sel:domainIAMRoleName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
domainIAMRoleName} -> Maybe Text
domainIAMRoleName) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Text
a -> RestoreDBClusterFromSnapshot
s {$sel:domainIAMRoleName:RestoreDBClusterFromSnapshot' :: Maybe Text
domainIAMRoleName = Maybe Text
a} :: RestoreDBClusterFromSnapshot)

-- | The tags to be assigned to the restored DB cluster.
restoreDBClusterFromSnapshot_tags :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe [Tag])
restoreDBClusterFromSnapshot_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_tags = (RestoreDBClusterFromSnapshot -> Maybe [Tag])
-> (RestoreDBClusterFromSnapshot
    -> Maybe [Tag] -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe [Tag]
a -> RestoreDBClusterFromSnapshot
s {$sel:tags:RestoreDBClusterFromSnapshot' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: RestoreDBClusterFromSnapshot) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> RestoreDBClusterFromSnapshot
-> f RestoreDBClusterFromSnapshot
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The port number on which the new DB cluster accepts connections.
--
-- Constraints: This value must be @1150-65535@
--
-- Default: The same port as the original DB cluster.
restoreDBClusterFromSnapshot_port :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Int)
restoreDBClusterFromSnapshot_port :: (Maybe Int -> f (Maybe Int))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_port = (RestoreDBClusterFromSnapshot -> Maybe Int)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Int -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Int
port :: Maybe Int
$sel:port:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Int
port} -> Maybe Int
port) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Int
a -> RestoreDBClusterFromSnapshot
s {$sel:port:RestoreDBClusterFromSnapshot' :: Maybe Int
port = Maybe Int
a} :: RestoreDBClusterFromSnapshot)

-- | A value that indicates whether to enable mapping of Amazon Web Services
-- Identity and Access Management (IAM) accounts to database accounts. By
-- default, mapping is disabled.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html IAM Database Authentication>
-- in the /Amazon Aurora User Guide./
restoreDBClusterFromSnapshot_enableIAMDatabaseAuthentication :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBClusterFromSnapshot_enableIAMDatabaseAuthentication :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_enableIAMDatabaseAuthentication = (RestoreDBClusterFromSnapshot -> Maybe Bool)
-> (RestoreDBClusterFromSnapshot
    -> Maybe Bool -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe Bool
enableIAMDatabaseAuthentication :: Maybe Bool
$sel:enableIAMDatabaseAuthentication:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Bool
enableIAMDatabaseAuthentication} -> Maybe Bool
enableIAMDatabaseAuthentication) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe Bool
a -> RestoreDBClusterFromSnapshot
s {$sel:enableIAMDatabaseAuthentication:RestoreDBClusterFromSnapshot' :: Maybe Bool
enableIAMDatabaseAuthentication = Maybe Bool
a} :: RestoreDBClusterFromSnapshot)

-- | The list of logs that the restored DB cluster is to export to Amazon
-- CloudWatch Logs. The values in the list depend on the DB engine being
-- used. For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch Publishing Database Logs to Amazon CloudWatch Logs>
-- in the /Amazon Aurora User Guide/.
restoreDBClusterFromSnapshot_enableCloudwatchLogsExports :: Lens.Lens' RestoreDBClusterFromSnapshot (Prelude.Maybe [Prelude.Text])
restoreDBClusterFromSnapshot_enableCloudwatchLogsExports :: (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_enableCloudwatchLogsExports = (RestoreDBClusterFromSnapshot -> Maybe [Text])
-> (RestoreDBClusterFromSnapshot
    -> Maybe [Text] -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot
     RestoreDBClusterFromSnapshot
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Maybe [Text]
enableCloudwatchLogsExports :: Maybe [Text]
$sel:enableCloudwatchLogsExports:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe [Text]
enableCloudwatchLogsExports} -> Maybe [Text]
enableCloudwatchLogsExports) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Maybe [Text]
a -> RestoreDBClusterFromSnapshot
s {$sel:enableCloudwatchLogsExports:RestoreDBClusterFromSnapshot' :: Maybe [Text]
enableCloudwatchLogsExports = Maybe [Text]
a} :: RestoreDBClusterFromSnapshot) ((Maybe [Text] -> f (Maybe [Text]))
 -> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromSnapshot
-> f RestoreDBClusterFromSnapshot
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

-- | The name of the DB cluster to create from the DB snapshot or DB cluster
-- snapshot. This parameter isn\'t case-sensitive.
--
-- Constraints:
--
-- -   Must contain from 1 to 63 letters, numbers, or hyphens
--
-- -   First character must be a letter
--
-- -   Can\'t end with a hyphen or contain two consecutive hyphens
--
-- Example: @my-snapshot-id@
restoreDBClusterFromSnapshot_dbClusterIdentifier :: Lens.Lens' RestoreDBClusterFromSnapshot Prelude.Text
restoreDBClusterFromSnapshot_dbClusterIdentifier :: (Text -> f Text)
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_dbClusterIdentifier = (RestoreDBClusterFromSnapshot -> Text)
-> (RestoreDBClusterFromSnapshot
    -> Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot RestoreDBClusterFromSnapshot Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Text
dbClusterIdentifier :: Text
$sel:dbClusterIdentifier:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Text
dbClusterIdentifier} -> Text
dbClusterIdentifier) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Text
a -> RestoreDBClusterFromSnapshot
s {$sel:dbClusterIdentifier:RestoreDBClusterFromSnapshot' :: Text
dbClusterIdentifier = Text
a} :: RestoreDBClusterFromSnapshot)

-- | The identifier for the DB snapshot or DB cluster snapshot to restore
-- from.
--
-- You can use either the name or the Amazon Resource Name (ARN) to specify
-- a DB cluster snapshot. However, you can use only the ARN to specify a DB
-- snapshot.
--
-- Constraints:
--
-- -   Must match the identifier of an existing Snapshot.
restoreDBClusterFromSnapshot_snapshotIdentifier :: Lens.Lens' RestoreDBClusterFromSnapshot Prelude.Text
restoreDBClusterFromSnapshot_snapshotIdentifier :: (Text -> f Text)
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_snapshotIdentifier = (RestoreDBClusterFromSnapshot -> Text)
-> (RestoreDBClusterFromSnapshot
    -> Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot RestoreDBClusterFromSnapshot Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Text
snapshotIdentifier :: Text
$sel:snapshotIdentifier:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Text
snapshotIdentifier} -> Text
snapshotIdentifier) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Text
a -> RestoreDBClusterFromSnapshot
s {$sel:snapshotIdentifier:RestoreDBClusterFromSnapshot' :: Text
snapshotIdentifier = Text
a} :: RestoreDBClusterFromSnapshot)

-- | The database engine to use for the new DB cluster.
--
-- Default: The same as source
--
-- Constraint: Must be compatible with the engine of the source
restoreDBClusterFromSnapshot_engine :: Lens.Lens' RestoreDBClusterFromSnapshot Prelude.Text
restoreDBClusterFromSnapshot_engine :: (Text -> f Text)
-> RestoreDBClusterFromSnapshot -> f RestoreDBClusterFromSnapshot
restoreDBClusterFromSnapshot_engine = (RestoreDBClusterFromSnapshot -> Text)
-> (RestoreDBClusterFromSnapshot
    -> Text -> RestoreDBClusterFromSnapshot)
-> Lens
     RestoreDBClusterFromSnapshot RestoreDBClusterFromSnapshot Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshot' {Text
engine :: Text
$sel:engine:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Text
engine} -> Text
engine) (\s :: RestoreDBClusterFromSnapshot
s@RestoreDBClusterFromSnapshot' {} Text
a -> RestoreDBClusterFromSnapshot
s {$sel:engine:RestoreDBClusterFromSnapshot' :: Text
engine = Text
a} :: RestoreDBClusterFromSnapshot)

instance Core.AWSRequest RestoreDBClusterFromSnapshot where
  type
    AWSResponse RestoreDBClusterFromSnapshot =
      RestoreDBClusterFromSnapshotResponse
  request :: RestoreDBClusterFromSnapshot
-> Request RestoreDBClusterFromSnapshot
request = Service
-> RestoreDBClusterFromSnapshot
-> Request RestoreDBClusterFromSnapshot
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy RestoreDBClusterFromSnapshot
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RestoreDBClusterFromSnapshot)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse RestoreDBClusterFromSnapshot))
-> Logger
-> Service
-> Proxy RestoreDBClusterFromSnapshot
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RestoreDBClusterFromSnapshot)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"RestoreDBClusterFromSnapshotResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe DBCluster -> Int -> RestoreDBClusterFromSnapshotResponse
RestoreDBClusterFromSnapshotResponse'
            (Maybe DBCluster -> Int -> RestoreDBClusterFromSnapshotResponse)
-> Either String (Maybe DBCluster)
-> Either String (Int -> RestoreDBClusterFromSnapshotResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DBCluster)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBCluster")
            Either String (Int -> RestoreDBClusterFromSnapshotResponse)
-> Either String Int
-> Either String RestoreDBClusterFromSnapshotResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    RestoreDBClusterFromSnapshot

instance Prelude.NFData RestoreDBClusterFromSnapshot

instance Core.ToHeaders RestoreDBClusterFromSnapshot where
  toHeaders :: RestoreDBClusterFromSnapshot -> ResponseHeaders
toHeaders = ResponseHeaders -> RestoreDBClusterFromSnapshot -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

instance Core.ToQuery RestoreDBClusterFromSnapshot where
  toQuery :: RestoreDBClusterFromSnapshot -> QueryString
toQuery RestoreDBClusterFromSnapshot' {Maybe Bool
Maybe Int
Maybe Integer
Maybe [Text]
Maybe [Tag]
Maybe Text
Maybe ScalingConfiguration
Text
engine :: Text
snapshotIdentifier :: Text
dbClusterIdentifier :: Text
enableCloudwatchLogsExports :: Maybe [Text]
enableIAMDatabaseAuthentication :: Maybe Bool
port :: Maybe Int
tags :: Maybe [Tag]
domainIAMRoleName :: Maybe Text
copyTagsToSnapshot :: Maybe Bool
optionGroupName :: Maybe Text
scalingConfiguration :: Maybe ScalingConfiguration
engineMode :: Maybe Text
dbClusterParameterGroupName :: Maybe Text
databaseName :: Maybe Text
vpcSecurityGroupIds :: Maybe [Text]
kmsKeyId :: Maybe Text
availabilityZones :: Maybe [Text]
backtrackWindow :: Maybe Integer
domain :: Maybe Text
dbSubnetGroupName :: Maybe Text
deletionProtection :: Maybe Bool
engineVersion :: Maybe Text
$sel:engine:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Text
$sel:snapshotIdentifier:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Text
$sel:dbClusterIdentifier:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Text
$sel:enableCloudwatchLogsExports:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe [Text]
$sel:enableIAMDatabaseAuthentication:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Bool
$sel:port:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Int
$sel:tags:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe [Tag]
$sel:domainIAMRoleName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
$sel:copyTagsToSnapshot:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Bool
$sel:optionGroupName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
$sel:scalingConfiguration:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe ScalingConfiguration
$sel:engineMode:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
$sel:dbClusterParameterGroupName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
$sel:databaseName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
$sel:vpcSecurityGroupIds:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe [Text]
$sel:kmsKeyId:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
$sel:availabilityZones:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe [Text]
$sel:backtrackWindow:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Integer
$sel:domain:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
$sel:dbSubnetGroupName:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
$sel:deletionProtection:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Bool
$sel:engineVersion:RestoreDBClusterFromSnapshot' :: RestoreDBClusterFromSnapshot -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"RestoreDBClusterFromSnapshot" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
        ByteString
"EngineVersion" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
engineVersion,
        ByteString
"DeletionProtection" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
deletionProtection,
        ByteString
"DBSubnetGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbSubnetGroupName,
        ByteString
"Domain" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
domain,
        ByteString
"BacktrackWindow" ByteString -> Maybe Integer -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Integer
backtrackWindow,
        ByteString
"AvailabilityZones"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            ( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"AvailabilityZone"
                ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
availabilityZones
            ),
        ByteString
"KmsKeyId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
kmsKeyId,
        ByteString
"VpcSecurityGroupIds"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            ( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"VpcSecurityGroupId"
                ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
vpcSecurityGroupIds
            ),
        ByteString
"DatabaseName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
databaseName,
        ByteString
"DBClusterParameterGroupName"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbClusterParameterGroupName,
        ByteString
"EngineMode" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
engineMode,
        ByteString
"ScalingConfiguration" ByteString -> Maybe ScalingConfiguration -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe ScalingConfiguration
scalingConfiguration,
        ByteString
"OptionGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
optionGroupName,
        ByteString
"CopyTagsToSnapshot" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
copyTagsToSnapshot,
        ByteString
"DomainIAMRoleName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
domainIAMRoleName,
        ByteString
"Tags"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            (ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Tag" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
        ByteString
"Port" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
port,
        ByteString
"EnableIAMDatabaseAuthentication"
          ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
enableIAMDatabaseAuthentication,
        ByteString
"EnableCloudwatchLogsExports"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            ( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
                ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
enableCloudwatchLogsExports
            ),
        ByteString
"DBClusterIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbClusterIdentifier,
        ByteString
"SnapshotIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
snapshotIdentifier,
        ByteString
"Engine" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
engine
      ]

-- | /See:/ 'newRestoreDBClusterFromSnapshotResponse' smart constructor.
data RestoreDBClusterFromSnapshotResponse = RestoreDBClusterFromSnapshotResponse'
  { RestoreDBClusterFromSnapshotResponse -> Maybe DBCluster
dbCluster :: Prelude.Maybe DBCluster,
    -- | The response's http status code.
    RestoreDBClusterFromSnapshotResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (RestoreDBClusterFromSnapshotResponse
-> RestoreDBClusterFromSnapshotResponse -> Bool
(RestoreDBClusterFromSnapshotResponse
 -> RestoreDBClusterFromSnapshotResponse -> Bool)
-> (RestoreDBClusterFromSnapshotResponse
    -> RestoreDBClusterFromSnapshotResponse -> Bool)
-> Eq RestoreDBClusterFromSnapshotResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RestoreDBClusterFromSnapshotResponse
-> RestoreDBClusterFromSnapshotResponse -> Bool
$c/= :: RestoreDBClusterFromSnapshotResponse
-> RestoreDBClusterFromSnapshotResponse -> Bool
== :: RestoreDBClusterFromSnapshotResponse
-> RestoreDBClusterFromSnapshotResponse -> Bool
$c== :: RestoreDBClusterFromSnapshotResponse
-> RestoreDBClusterFromSnapshotResponse -> Bool
Prelude.Eq, ReadPrec [RestoreDBClusterFromSnapshotResponse]
ReadPrec RestoreDBClusterFromSnapshotResponse
Int -> ReadS RestoreDBClusterFromSnapshotResponse
ReadS [RestoreDBClusterFromSnapshotResponse]
(Int -> ReadS RestoreDBClusterFromSnapshotResponse)
-> ReadS [RestoreDBClusterFromSnapshotResponse]
-> ReadPrec RestoreDBClusterFromSnapshotResponse
-> ReadPrec [RestoreDBClusterFromSnapshotResponse]
-> Read RestoreDBClusterFromSnapshotResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RestoreDBClusterFromSnapshotResponse]
$creadListPrec :: ReadPrec [RestoreDBClusterFromSnapshotResponse]
readPrec :: ReadPrec RestoreDBClusterFromSnapshotResponse
$creadPrec :: ReadPrec RestoreDBClusterFromSnapshotResponse
readList :: ReadS [RestoreDBClusterFromSnapshotResponse]
$creadList :: ReadS [RestoreDBClusterFromSnapshotResponse]
readsPrec :: Int -> ReadS RestoreDBClusterFromSnapshotResponse
$creadsPrec :: Int -> ReadS RestoreDBClusterFromSnapshotResponse
Prelude.Read, Int -> RestoreDBClusterFromSnapshotResponse -> ShowS
[RestoreDBClusterFromSnapshotResponse] -> ShowS
RestoreDBClusterFromSnapshotResponse -> String
(Int -> RestoreDBClusterFromSnapshotResponse -> ShowS)
-> (RestoreDBClusterFromSnapshotResponse -> String)
-> ([RestoreDBClusterFromSnapshotResponse] -> ShowS)
-> Show RestoreDBClusterFromSnapshotResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RestoreDBClusterFromSnapshotResponse] -> ShowS
$cshowList :: [RestoreDBClusterFromSnapshotResponse] -> ShowS
show :: RestoreDBClusterFromSnapshotResponse -> String
$cshow :: RestoreDBClusterFromSnapshotResponse -> String
showsPrec :: Int -> RestoreDBClusterFromSnapshotResponse -> ShowS
$cshowsPrec :: Int -> RestoreDBClusterFromSnapshotResponse -> ShowS
Prelude.Show, (forall x.
 RestoreDBClusterFromSnapshotResponse
 -> Rep RestoreDBClusterFromSnapshotResponse x)
-> (forall x.
    Rep RestoreDBClusterFromSnapshotResponse x
    -> RestoreDBClusterFromSnapshotResponse)
-> Generic RestoreDBClusterFromSnapshotResponse
forall x.
Rep RestoreDBClusterFromSnapshotResponse x
-> RestoreDBClusterFromSnapshotResponse
forall x.
RestoreDBClusterFromSnapshotResponse
-> Rep RestoreDBClusterFromSnapshotResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RestoreDBClusterFromSnapshotResponse x
-> RestoreDBClusterFromSnapshotResponse
$cfrom :: forall x.
RestoreDBClusterFromSnapshotResponse
-> Rep RestoreDBClusterFromSnapshotResponse x
Prelude.Generic)

-- |
-- Create a value of 'RestoreDBClusterFromSnapshotResponse' 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:
--
-- 'dbCluster', 'restoreDBClusterFromSnapshotResponse_dbCluster' - Undocumented member.
--
-- 'httpStatus', 'restoreDBClusterFromSnapshotResponse_httpStatus' - The response's http status code.
newRestoreDBClusterFromSnapshotResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  RestoreDBClusterFromSnapshotResponse
newRestoreDBClusterFromSnapshotResponse :: Int -> RestoreDBClusterFromSnapshotResponse
newRestoreDBClusterFromSnapshotResponse Int
pHttpStatus_ =
  RestoreDBClusterFromSnapshotResponse' :: Maybe DBCluster -> Int -> RestoreDBClusterFromSnapshotResponse
RestoreDBClusterFromSnapshotResponse'
    { $sel:dbCluster:RestoreDBClusterFromSnapshotResponse' :: Maybe DBCluster
dbCluster =
        Maybe DBCluster
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:RestoreDBClusterFromSnapshotResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
restoreDBClusterFromSnapshotResponse_dbCluster :: Lens.Lens' RestoreDBClusterFromSnapshotResponse (Prelude.Maybe DBCluster)
restoreDBClusterFromSnapshotResponse_dbCluster :: (Maybe DBCluster -> f (Maybe DBCluster))
-> RestoreDBClusterFromSnapshotResponse
-> f RestoreDBClusterFromSnapshotResponse
restoreDBClusterFromSnapshotResponse_dbCluster = (RestoreDBClusterFromSnapshotResponse -> Maybe DBCluster)
-> (RestoreDBClusterFromSnapshotResponse
    -> Maybe DBCluster -> RestoreDBClusterFromSnapshotResponse)
-> Lens
     RestoreDBClusterFromSnapshotResponse
     RestoreDBClusterFromSnapshotResponse
     (Maybe DBCluster)
     (Maybe DBCluster)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshotResponse' {Maybe DBCluster
dbCluster :: Maybe DBCluster
$sel:dbCluster:RestoreDBClusterFromSnapshotResponse' :: RestoreDBClusterFromSnapshotResponse -> Maybe DBCluster
dbCluster} -> Maybe DBCluster
dbCluster) (\s :: RestoreDBClusterFromSnapshotResponse
s@RestoreDBClusterFromSnapshotResponse' {} Maybe DBCluster
a -> RestoreDBClusterFromSnapshotResponse
s {$sel:dbCluster:RestoreDBClusterFromSnapshotResponse' :: Maybe DBCluster
dbCluster = Maybe DBCluster
a} :: RestoreDBClusterFromSnapshotResponse)

-- | The response's http status code.
restoreDBClusterFromSnapshotResponse_httpStatus :: Lens.Lens' RestoreDBClusterFromSnapshotResponse Prelude.Int
restoreDBClusterFromSnapshotResponse_httpStatus :: (Int -> f Int)
-> RestoreDBClusterFromSnapshotResponse
-> f RestoreDBClusterFromSnapshotResponse
restoreDBClusterFromSnapshotResponse_httpStatus = (RestoreDBClusterFromSnapshotResponse -> Int)
-> (RestoreDBClusterFromSnapshotResponse
    -> Int -> RestoreDBClusterFromSnapshotResponse)
-> Lens
     RestoreDBClusterFromSnapshotResponse
     RestoreDBClusterFromSnapshotResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromSnapshotResponse' {Int
httpStatus :: Int
$sel:httpStatus:RestoreDBClusterFromSnapshotResponse' :: RestoreDBClusterFromSnapshotResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RestoreDBClusterFromSnapshotResponse
s@RestoreDBClusterFromSnapshotResponse' {} Int
a -> RestoreDBClusterFromSnapshotResponse
s {$sel:httpStatus:RestoreDBClusterFromSnapshotResponse' :: Int
httpStatus = Int
a} :: RestoreDBClusterFromSnapshotResponse)

instance
  Prelude.NFData
    RestoreDBClusterFromSnapshotResponse