{-# 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.RestoreDBClusterFromS3
-- 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 an Amazon Aurora DB cluster from MySQL data stored in an Amazon
-- S3 bucket. Amazon RDS must be authorized to access the Amazon S3 bucket
-- and the data must be created using the Percona XtraBackup utility as
-- described in
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.ExtMySQL.html#AuroraMySQL.Migrating.ExtMySQL.S3 Migrating Data from MySQL by Using an Amazon S3 Bucket>
-- in the /Amazon Aurora User Guide/.
--
-- 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 @RestoreDBClusterFromS3@ 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. The source DB engine
-- must be MySQL.
module Amazonka.RDS.RestoreDBClusterFromS3
  ( -- * Creating a Request
    RestoreDBClusterFromS3 (..),
    newRestoreDBClusterFromS3,

    -- * Request Lenses
    restoreDBClusterFromS3_engineVersion,
    restoreDBClusterFromS3_deletionProtection,
    restoreDBClusterFromS3_storageEncrypted,
    restoreDBClusterFromS3_dbSubnetGroupName,
    restoreDBClusterFromS3_domain,
    restoreDBClusterFromS3_backtrackWindow,
    restoreDBClusterFromS3_preferredMaintenanceWindow,
    restoreDBClusterFromS3_availabilityZones,
    restoreDBClusterFromS3_characterSetName,
    restoreDBClusterFromS3_kmsKeyId,
    restoreDBClusterFromS3_preferredBackupWindow,
    restoreDBClusterFromS3_backupRetentionPeriod,
    restoreDBClusterFromS3_vpcSecurityGroupIds,
    restoreDBClusterFromS3_databaseName,
    restoreDBClusterFromS3_dbClusterParameterGroupName,
    restoreDBClusterFromS3_s3Prefix,
    restoreDBClusterFromS3_optionGroupName,
    restoreDBClusterFromS3_copyTagsToSnapshot,
    restoreDBClusterFromS3_domainIAMRoleName,
    restoreDBClusterFromS3_tags,
    restoreDBClusterFromS3_port,
    restoreDBClusterFromS3_enableIAMDatabaseAuthentication,
    restoreDBClusterFromS3_enableCloudwatchLogsExports,
    restoreDBClusterFromS3_dbClusterIdentifier,
    restoreDBClusterFromS3_engine,
    restoreDBClusterFromS3_masterUsername,
    restoreDBClusterFromS3_masterUserPassword,
    restoreDBClusterFromS3_sourceEngine,
    restoreDBClusterFromS3_sourceEngineVersion,
    restoreDBClusterFromS3_s3BucketName,
    restoreDBClusterFromS3_s3IngestionRoleArn,

    -- * Destructuring the Response
    RestoreDBClusterFromS3Response (..),
    newRestoreDBClusterFromS3Response,

    -- * Response Lenses
    restoreDBClusterFromS3Response_dbCluster,
    restoreDBClusterFromS3Response_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:/ 'newRestoreDBClusterFromS3' smart constructor.
data RestoreDBClusterFromS3 = RestoreDBClusterFromS3'
  { -- | The version number of the database engine to use.
    --
    -- 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\"@
    --
    -- __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@
    RestoreDBClusterFromS3 -> 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.
    RestoreDBClusterFromS3 -> Maybe Bool
deletionProtection :: Prelude.Maybe Prelude.Bool,
    -- | A value that indicates whether the restored DB cluster is encrypted.
    RestoreDBClusterFromS3 -> Maybe Bool
storageEncrypted :: Prelude.Maybe Prelude.Bool,
    -- | A DB subnet group to associate with the restored DB cluster.
    --
    -- Constraints: If supplied, must match the name of an existing
    -- DBSubnetGroup.
    --
    -- Example: @mySubnetgroup@
    RestoreDBClusterFromS3 -> 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.
    --
    -- For Amazon Aurora DB clusters, Amazon RDS can use Kerberos
    -- Authentication to authenticate users that connect to the DB cluster. For
    -- more information, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html Kerberos Authentication>
    -- in the /Amazon Aurora User Guide/.
    RestoreDBClusterFromS3 -> 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).
    RestoreDBClusterFromS3 -> Maybe Integer
backtrackWindow :: Prelude.Maybe Prelude.Integer,
    -- | The weekly time range during which system maintenance can occur, in
    -- Universal Coordinated Time (UTC).
    --
    -- Format: @ddd:hh24:mi-ddd:hh24:mi@
    --
    -- The default is a 30-minute window selected at random from an 8-hour
    -- block of time for each Amazon Web Services Region, occurring on a random
    -- day of the week. To see the time blocks available, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora Adjusting the Preferred Maintenance Window>
    -- in the /Amazon Aurora User Guide./
    --
    -- Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
    --
    -- Constraints: Minimum 30-minute window.
    RestoreDBClusterFromS3 -> Maybe Text
preferredMaintenanceWindow :: Prelude.Maybe Prelude.Text,
    -- | A list of Availability Zones (AZs) where instances in the restored DB
    -- cluster can be created.
    RestoreDBClusterFromS3 -> Maybe [Text]
availabilityZones :: Prelude.Maybe [Prelude.Text],
    -- | A value that indicates that the restored DB cluster should be associated
    -- with the specified CharacterSet.
    RestoreDBClusterFromS3 -> Maybe Text
characterSetName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Services KMS key identifier for an encrypted DB cluster.
    --
    -- 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.
    --
    -- If the StorageEncrypted parameter is enabled, and you do not specify a
    -- value for the @KmsKeyId@ parameter, then Amazon RDS will use your
    -- default CMK. There is a default CMK for your Amazon Web Services
    -- account. Your Amazon Web Services account has a different default CMK
    -- for each Amazon Web Services Region.
    RestoreDBClusterFromS3 -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | The daily time range during which automated backups are created if
    -- automated backups are enabled using the @BackupRetentionPeriod@
    -- parameter.
    --
    -- The default is a 30-minute window selected at random from an 8-hour
    -- block of time for each Amazon Web Services Region. To view the time
    -- blocks available, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow Backup window>
    -- in the /Amazon Aurora User Guide./
    --
    -- Constraints:
    --
    -- -   Must be in the format @hh24:mi-hh24:mi@.
    --
    -- -   Must be in Universal Coordinated Time (UTC).
    --
    -- -   Must not conflict with the preferred maintenance window.
    --
    -- -   Must be at least 30 minutes.
    RestoreDBClusterFromS3 -> Maybe Text
preferredBackupWindow :: Prelude.Maybe Prelude.Text,
    -- | The number of days for which automated backups of the restored DB
    -- cluster are retained. You must specify a minimum value of 1.
    --
    -- Default: 1
    --
    -- Constraints:
    --
    -- -   Must be a value from 1 to 35
    RestoreDBClusterFromS3 -> Maybe Int
backupRetentionPeriod :: Prelude.Maybe Prelude.Int,
    -- | A list of EC2 VPC security groups to associate with the restored DB
    -- cluster.
    RestoreDBClusterFromS3 -> Maybe [Text]
vpcSecurityGroupIds :: Prelude.Maybe [Prelude.Text],
    -- | The database name for the restored DB cluster.
    RestoreDBClusterFromS3 -> Maybe Text
databaseName :: Prelude.Maybe Prelude.Text,
    -- | The name of the DB cluster parameter group to associate with the
    -- restored DB cluster. If this argument is omitted, @default.aurora5.6@ is
    -- used.
    --
    -- Constraints:
    --
    -- -   If supplied, must match the name of an existing
    --     DBClusterParameterGroup.
    RestoreDBClusterFromS3 -> Maybe Text
dbClusterParameterGroupName :: Prelude.Maybe Prelude.Text,
    -- | The prefix for all of the file names that contain the data used to
    -- create the Amazon Aurora DB cluster. If you do not specify a
    -- __SourceS3Prefix__ value, then the Amazon Aurora DB cluster is created
    -- by using all of the files in the Amazon S3 bucket.
    RestoreDBClusterFromS3 -> Maybe Text
s3Prefix :: Prelude.Maybe Prelude.Text,
    -- | A value that indicates that the restored DB cluster should be associated
    -- with the specified option group.
    --
    -- Permanent options can\'t be removed from an option group. An option
    -- group can\'t be removed from a DB cluster once it is associated with a
    -- DB cluster.
    RestoreDBClusterFromS3 -> 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.
    RestoreDBClusterFromS3 -> 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.
    RestoreDBClusterFromS3 -> Maybe Text
domainIAMRoleName :: Prelude.Maybe Prelude.Text,
    RestoreDBClusterFromS3 -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The port number on which the instances in the restored DB cluster accept
    -- connections.
    --
    -- Default: @3306@
    RestoreDBClusterFromS3 -> 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./
    RestoreDBClusterFromS3 -> Maybe Bool
enableIAMDatabaseAuthentication :: Prelude.Maybe Prelude.Bool,
    -- | The list of logs that the restored DB cluster is to export to 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/.
    RestoreDBClusterFromS3 -> Maybe [Text]
enableCloudwatchLogsExports :: Prelude.Maybe [Prelude.Text],
    -- | The name of the DB cluster to create from the source data in the Amazon
    -- S3 bucket. 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-cluster1@
    RestoreDBClusterFromS3 -> Text
dbClusterIdentifier :: Prelude.Text,
    -- | The name of the database engine to be used for this DB cluster.
    --
    -- Valid Values: @aurora@ (for MySQL 5.6-compatible Aurora), @aurora-mysql@
    -- (for MySQL 5.7-compatible Aurora), and @aurora-postgresql@
    RestoreDBClusterFromS3 -> Text
engine :: Prelude.Text,
    -- | The name of the master user for the restored DB cluster.
    --
    -- Constraints:
    --
    -- -   Must be 1 to 16 letters or numbers.
    --
    -- -   First character must be a letter.
    --
    -- -   Can\'t be a reserved word for the chosen database engine.
    RestoreDBClusterFromS3 -> Text
masterUsername :: Prelude.Text,
    -- | The password for the master database user. This password can contain any
    -- printable ASCII character except \"\/\", \"\"\", or \"\@\".
    --
    -- Constraints: Must contain from 8 to 41 characters.
    RestoreDBClusterFromS3 -> Text
masterUserPassword :: Prelude.Text,
    -- | The identifier for the database engine that was backed up to create the
    -- files stored in the Amazon S3 bucket.
    --
    -- Valid values: @mysql@
    RestoreDBClusterFromS3 -> Text
sourceEngine :: Prelude.Text,
    -- | The version of the database that the backup files were created from.
    --
    -- MySQL versions 5.5, 5.6, and 5.7 are supported.
    --
    -- Example: @5.6.40@, @5.7.28@
    RestoreDBClusterFromS3 -> Text
sourceEngineVersion :: Prelude.Text,
    -- | The name of the Amazon S3 bucket that contains the data used to create
    -- the Amazon Aurora DB cluster.
    RestoreDBClusterFromS3 -> Text
s3BucketName :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the Amazon Web Services Identity and
    -- Access Management (IAM) role that authorizes Amazon RDS to access the
    -- Amazon S3 bucket on your behalf.
    RestoreDBClusterFromS3 -> Text
s3IngestionRoleArn :: Prelude.Text
  }
  deriving (RestoreDBClusterFromS3 -> RestoreDBClusterFromS3 -> Bool
(RestoreDBClusterFromS3 -> RestoreDBClusterFromS3 -> Bool)
-> (RestoreDBClusterFromS3 -> RestoreDBClusterFromS3 -> Bool)
-> Eq RestoreDBClusterFromS3
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RestoreDBClusterFromS3 -> RestoreDBClusterFromS3 -> Bool
$c/= :: RestoreDBClusterFromS3 -> RestoreDBClusterFromS3 -> Bool
== :: RestoreDBClusterFromS3 -> RestoreDBClusterFromS3 -> Bool
$c== :: RestoreDBClusterFromS3 -> RestoreDBClusterFromS3 -> Bool
Prelude.Eq, ReadPrec [RestoreDBClusterFromS3]
ReadPrec RestoreDBClusterFromS3
Int -> ReadS RestoreDBClusterFromS3
ReadS [RestoreDBClusterFromS3]
(Int -> ReadS RestoreDBClusterFromS3)
-> ReadS [RestoreDBClusterFromS3]
-> ReadPrec RestoreDBClusterFromS3
-> ReadPrec [RestoreDBClusterFromS3]
-> Read RestoreDBClusterFromS3
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RestoreDBClusterFromS3]
$creadListPrec :: ReadPrec [RestoreDBClusterFromS3]
readPrec :: ReadPrec RestoreDBClusterFromS3
$creadPrec :: ReadPrec RestoreDBClusterFromS3
readList :: ReadS [RestoreDBClusterFromS3]
$creadList :: ReadS [RestoreDBClusterFromS3]
readsPrec :: Int -> ReadS RestoreDBClusterFromS3
$creadsPrec :: Int -> ReadS RestoreDBClusterFromS3
Prelude.Read, Int -> RestoreDBClusterFromS3 -> ShowS
[RestoreDBClusterFromS3] -> ShowS
RestoreDBClusterFromS3 -> String
(Int -> RestoreDBClusterFromS3 -> ShowS)
-> (RestoreDBClusterFromS3 -> String)
-> ([RestoreDBClusterFromS3] -> ShowS)
-> Show RestoreDBClusterFromS3
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RestoreDBClusterFromS3] -> ShowS
$cshowList :: [RestoreDBClusterFromS3] -> ShowS
show :: RestoreDBClusterFromS3 -> String
$cshow :: RestoreDBClusterFromS3 -> String
showsPrec :: Int -> RestoreDBClusterFromS3 -> ShowS
$cshowsPrec :: Int -> RestoreDBClusterFromS3 -> ShowS
Prelude.Show, (forall x. RestoreDBClusterFromS3 -> Rep RestoreDBClusterFromS3 x)
-> (forall x.
    Rep RestoreDBClusterFromS3 x -> RestoreDBClusterFromS3)
-> Generic RestoreDBClusterFromS3
forall x. Rep RestoreDBClusterFromS3 x -> RestoreDBClusterFromS3
forall x. RestoreDBClusterFromS3 -> Rep RestoreDBClusterFromS3 x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RestoreDBClusterFromS3 x -> RestoreDBClusterFromS3
$cfrom :: forall x. RestoreDBClusterFromS3 -> Rep RestoreDBClusterFromS3 x
Prelude.Generic)

-- |
-- Create a value of 'RestoreDBClusterFromS3' 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', 'restoreDBClusterFromS3_engineVersion' - The version number of the database engine to use.
--
-- 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\"@
--
-- __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', 'restoreDBClusterFromS3_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.
--
-- 'storageEncrypted', 'restoreDBClusterFromS3_storageEncrypted' - A value that indicates whether the restored DB cluster is encrypted.
--
-- 'dbSubnetGroupName', 'restoreDBClusterFromS3_dbSubnetGroupName' - A DB subnet group to associate with the restored DB cluster.
--
-- Constraints: If supplied, must match the name of an existing
-- DBSubnetGroup.
--
-- Example: @mySubnetgroup@
--
-- 'domain', 'restoreDBClusterFromS3_domain' - Specify the Active Directory directory ID to restore the DB cluster in.
-- The domain must be created prior to this operation.
--
-- For Amazon Aurora DB clusters, Amazon RDS can use Kerberos
-- Authentication to authenticate users that connect to the DB cluster. For
-- more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html Kerberos Authentication>
-- in the /Amazon Aurora User Guide/.
--
-- 'backtrackWindow', 'restoreDBClusterFromS3_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).
--
-- 'preferredMaintenanceWindow', 'restoreDBClusterFromS3_preferredMaintenanceWindow' - The weekly time range during which system maintenance can occur, in
-- Universal Coordinated Time (UTC).
--
-- Format: @ddd:hh24:mi-ddd:hh24:mi@
--
-- The default is a 30-minute window selected at random from an 8-hour
-- block of time for each Amazon Web Services Region, occurring on a random
-- day of the week. To see the time blocks available, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora Adjusting the Preferred Maintenance Window>
-- in the /Amazon Aurora User Guide./
--
-- Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
--
-- Constraints: Minimum 30-minute window.
--
-- 'availabilityZones', 'restoreDBClusterFromS3_availabilityZones' - A list of Availability Zones (AZs) where instances in the restored DB
-- cluster can be created.
--
-- 'characterSetName', 'restoreDBClusterFromS3_characterSetName' - A value that indicates that the restored DB cluster should be associated
-- with the specified CharacterSet.
--
-- 'kmsKeyId', 'restoreDBClusterFromS3_kmsKeyId' - The Amazon Web Services KMS key identifier for an encrypted DB cluster.
--
-- 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.
--
-- If the StorageEncrypted parameter is enabled, and you do not specify a
-- value for the @KmsKeyId@ parameter, then Amazon RDS will use your
-- default CMK. There is a default CMK for your Amazon Web Services
-- account. Your Amazon Web Services account has a different default CMK
-- for each Amazon Web Services Region.
--
-- 'preferredBackupWindow', 'restoreDBClusterFromS3_preferredBackupWindow' - The daily time range during which automated backups are created if
-- automated backups are enabled using the @BackupRetentionPeriod@
-- parameter.
--
-- The default is a 30-minute window selected at random from an 8-hour
-- block of time for each Amazon Web Services Region. To view the time
-- blocks available, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow Backup window>
-- in the /Amazon Aurora User Guide./
--
-- Constraints:
--
-- -   Must be in the format @hh24:mi-hh24:mi@.
--
-- -   Must be in Universal Coordinated Time (UTC).
--
-- -   Must not conflict with the preferred maintenance window.
--
-- -   Must be at least 30 minutes.
--
-- 'backupRetentionPeriod', 'restoreDBClusterFromS3_backupRetentionPeriod' - The number of days for which automated backups of the restored DB
-- cluster are retained. You must specify a minimum value of 1.
--
-- Default: 1
--
-- Constraints:
--
-- -   Must be a value from 1 to 35
--
-- 'vpcSecurityGroupIds', 'restoreDBClusterFromS3_vpcSecurityGroupIds' - A list of EC2 VPC security groups to associate with the restored DB
-- cluster.
--
-- 'databaseName', 'restoreDBClusterFromS3_databaseName' - The database name for the restored DB cluster.
--
-- 'dbClusterParameterGroupName', 'restoreDBClusterFromS3_dbClusterParameterGroupName' - The name of the DB cluster parameter group to associate with the
-- restored DB cluster. If this argument is omitted, @default.aurora5.6@ is
-- used.
--
-- Constraints:
--
-- -   If supplied, must match the name of an existing
--     DBClusterParameterGroup.
--
-- 's3Prefix', 'restoreDBClusterFromS3_s3Prefix' - The prefix for all of the file names that contain the data used to
-- create the Amazon Aurora DB cluster. If you do not specify a
-- __SourceS3Prefix__ value, then the Amazon Aurora DB cluster is created
-- by using all of the files in the Amazon S3 bucket.
--
-- 'optionGroupName', 'restoreDBClusterFromS3_optionGroupName' - A value that indicates that the restored DB cluster should be associated
-- with the specified option group.
--
-- Permanent options can\'t be removed from an option group. An option
-- group can\'t be removed from a DB cluster once it is associated with a
-- DB cluster.
--
-- 'copyTagsToSnapshot', 'restoreDBClusterFromS3_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', 'restoreDBClusterFromS3_domainIAMRoleName' - Specify the name of the IAM role to be used when making API calls to the
-- Directory Service.
--
-- 'tags', 'restoreDBClusterFromS3_tags' - Undocumented member.
--
-- 'port', 'restoreDBClusterFromS3_port' - The port number on which the instances in the restored DB cluster accept
-- connections.
--
-- Default: @3306@
--
-- 'enableIAMDatabaseAuthentication', 'restoreDBClusterFromS3_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', 'restoreDBClusterFromS3_enableCloudwatchLogsExports' - The list of logs that the restored DB cluster is to export to 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', 'restoreDBClusterFromS3_dbClusterIdentifier' - The name of the DB cluster to create from the source data in the Amazon
-- S3 bucket. 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-cluster1@
--
-- 'engine', 'restoreDBClusterFromS3_engine' - The name of the database engine to be used for this DB cluster.
--
-- Valid Values: @aurora@ (for MySQL 5.6-compatible Aurora), @aurora-mysql@
-- (for MySQL 5.7-compatible Aurora), and @aurora-postgresql@
--
-- 'masterUsername', 'restoreDBClusterFromS3_masterUsername' - The name of the master user for the restored DB cluster.
--
-- Constraints:
--
-- -   Must be 1 to 16 letters or numbers.
--
-- -   First character must be a letter.
--
-- -   Can\'t be a reserved word for the chosen database engine.
--
-- 'masterUserPassword', 'restoreDBClusterFromS3_masterUserPassword' - The password for the master database user. This password can contain any
-- printable ASCII character except \"\/\", \"\"\", or \"\@\".
--
-- Constraints: Must contain from 8 to 41 characters.
--
-- 'sourceEngine', 'restoreDBClusterFromS3_sourceEngine' - The identifier for the database engine that was backed up to create the
-- files stored in the Amazon S3 bucket.
--
-- Valid values: @mysql@
--
-- 'sourceEngineVersion', 'restoreDBClusterFromS3_sourceEngineVersion' - The version of the database that the backup files were created from.
--
-- MySQL versions 5.5, 5.6, and 5.7 are supported.
--
-- Example: @5.6.40@, @5.7.28@
--
-- 's3BucketName', 'restoreDBClusterFromS3_s3BucketName' - The name of the Amazon S3 bucket that contains the data used to create
-- the Amazon Aurora DB cluster.
--
-- 's3IngestionRoleArn', 'restoreDBClusterFromS3_s3IngestionRoleArn' - The Amazon Resource Name (ARN) of the Amazon Web Services Identity and
-- Access Management (IAM) role that authorizes Amazon RDS to access the
-- Amazon S3 bucket on your behalf.
newRestoreDBClusterFromS3 ::
  -- | 'dbClusterIdentifier'
  Prelude.Text ->
  -- | 'engine'
  Prelude.Text ->
  -- | 'masterUsername'
  Prelude.Text ->
  -- | 'masterUserPassword'
  Prelude.Text ->
  -- | 'sourceEngine'
  Prelude.Text ->
  -- | 'sourceEngineVersion'
  Prelude.Text ->
  -- | 's3BucketName'
  Prelude.Text ->
  -- | 's3IngestionRoleArn'
  Prelude.Text ->
  RestoreDBClusterFromS3
newRestoreDBClusterFromS3 :: Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> RestoreDBClusterFromS3
newRestoreDBClusterFromS3
  Text
pDBClusterIdentifier_
  Text
pEngine_
  Text
pMasterUsername_
  Text
pMasterUserPassword_
  Text
pSourceEngine_
  Text
pSourceEngineVersion_
  Text
pS3BucketName_
  Text
pS3IngestionRoleArn_ =
    RestoreDBClusterFromS3' :: Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Maybe Int
-> Maybe Bool
-> Maybe [Text]
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> RestoreDBClusterFromS3
RestoreDBClusterFromS3'
      { $sel:engineVersion:RestoreDBClusterFromS3' :: Maybe Text
engineVersion =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:deletionProtection:RestoreDBClusterFromS3' :: Maybe Bool
deletionProtection = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:storageEncrypted:RestoreDBClusterFromS3' :: Maybe Bool
storageEncrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:dbSubnetGroupName:RestoreDBClusterFromS3' :: Maybe Text
dbSubnetGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:domain:RestoreDBClusterFromS3' :: Maybe Text
domain = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:backtrackWindow:RestoreDBClusterFromS3' :: Maybe Integer
backtrackWindow = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
        $sel:preferredMaintenanceWindow:RestoreDBClusterFromS3' :: Maybe Text
preferredMaintenanceWindow = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:availabilityZones:RestoreDBClusterFromS3' :: Maybe [Text]
availabilityZones = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:characterSetName:RestoreDBClusterFromS3' :: Maybe Text
characterSetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:kmsKeyId:RestoreDBClusterFromS3' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:preferredBackupWindow:RestoreDBClusterFromS3' :: Maybe Text
preferredBackupWindow = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:backupRetentionPeriod:RestoreDBClusterFromS3' :: Maybe Int
backupRetentionPeriod = Maybe Int
forall a. Maybe a
Prelude.Nothing,
        $sel:vpcSecurityGroupIds:RestoreDBClusterFromS3' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:databaseName:RestoreDBClusterFromS3' :: Maybe Text
databaseName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:dbClusterParameterGroupName:RestoreDBClusterFromS3' :: Maybe Text
dbClusterParameterGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:s3Prefix:RestoreDBClusterFromS3' :: Maybe Text
s3Prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:optionGroupName:RestoreDBClusterFromS3' :: Maybe Text
optionGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:copyTagsToSnapshot:RestoreDBClusterFromS3' :: Maybe Bool
copyTagsToSnapshot = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:domainIAMRoleName:RestoreDBClusterFromS3' :: Maybe Text
domainIAMRoleName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:RestoreDBClusterFromS3' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
        $sel:port:RestoreDBClusterFromS3' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing,
        $sel:enableIAMDatabaseAuthentication:RestoreDBClusterFromS3' :: Maybe Bool
enableIAMDatabaseAuthentication = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:enableCloudwatchLogsExports:RestoreDBClusterFromS3' :: Maybe [Text]
enableCloudwatchLogsExports = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:dbClusterIdentifier:RestoreDBClusterFromS3' :: Text
dbClusterIdentifier = Text
pDBClusterIdentifier_,
        $sel:engine:RestoreDBClusterFromS3' :: Text
engine = Text
pEngine_,
        $sel:masterUsername:RestoreDBClusterFromS3' :: Text
masterUsername = Text
pMasterUsername_,
        $sel:masterUserPassword:RestoreDBClusterFromS3' :: Text
masterUserPassword = Text
pMasterUserPassword_,
        $sel:sourceEngine:RestoreDBClusterFromS3' :: Text
sourceEngine = Text
pSourceEngine_,
        $sel:sourceEngineVersion:RestoreDBClusterFromS3' :: Text
sourceEngineVersion = Text
pSourceEngineVersion_,
        $sel:s3BucketName:RestoreDBClusterFromS3' :: Text
s3BucketName = Text
pS3BucketName_,
        $sel:s3IngestionRoleArn:RestoreDBClusterFromS3' :: Text
s3IngestionRoleArn = Text
pS3IngestionRoleArn_
      }

-- | The version number of the database engine to use.
--
-- 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\"@
--
-- __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@
restoreDBClusterFromS3_engineVersion :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_engineVersion :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_engineVersion = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:engineVersion:RestoreDBClusterFromS3' :: Maybe Text
engineVersion = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | 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.
restoreDBClusterFromS3_deletionProtection :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Bool)
restoreDBClusterFromS3_deletionProtection :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_deletionProtection = (RestoreDBClusterFromS3 -> Maybe Bool)
-> (RestoreDBClusterFromS3 -> Maybe Bool -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Bool
deletionProtection :: Maybe Bool
$sel:deletionProtection:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Bool
deletionProtection} -> Maybe Bool
deletionProtection) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Bool
a -> RestoreDBClusterFromS3
s {$sel:deletionProtection:RestoreDBClusterFromS3' :: Maybe Bool
deletionProtection = Maybe Bool
a} :: RestoreDBClusterFromS3)

-- | A value that indicates whether the restored DB cluster is encrypted.
restoreDBClusterFromS3_storageEncrypted :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Bool)
restoreDBClusterFromS3_storageEncrypted :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_storageEncrypted = (RestoreDBClusterFromS3 -> Maybe Bool)
-> (RestoreDBClusterFromS3 -> Maybe Bool -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Bool
storageEncrypted :: Maybe Bool
$sel:storageEncrypted:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Bool
storageEncrypted} -> Maybe Bool
storageEncrypted) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Bool
a -> RestoreDBClusterFromS3
s {$sel:storageEncrypted:RestoreDBClusterFromS3' :: Maybe Bool
storageEncrypted = Maybe Bool
a} :: RestoreDBClusterFromS3)

-- | A DB subnet group to associate with the restored DB cluster.
--
-- Constraints: If supplied, must match the name of an existing
-- DBSubnetGroup.
--
-- Example: @mySubnetgroup@
restoreDBClusterFromS3_dbSubnetGroupName :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_dbSubnetGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_dbSubnetGroupName = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
dbSubnetGroupName :: Maybe Text
$sel:dbSubnetGroupName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
dbSubnetGroupName} -> Maybe Text
dbSubnetGroupName) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:dbSubnetGroupName:RestoreDBClusterFromS3' :: Maybe Text
dbSubnetGroupName = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | Specify the Active Directory directory ID to restore the DB cluster in.
-- The domain must be created prior to this operation.
--
-- For Amazon Aurora DB clusters, Amazon RDS can use Kerberos
-- Authentication to authenticate users that connect to the DB cluster. For
-- more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html Kerberos Authentication>
-- in the /Amazon Aurora User Guide/.
restoreDBClusterFromS3_domain :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_domain :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_domain = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
domain :: Maybe Text
$sel:domain:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
domain} -> Maybe Text
domain) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:domain:RestoreDBClusterFromS3' :: Maybe Text
domain = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | 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).
restoreDBClusterFromS3_backtrackWindow :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Integer)
restoreDBClusterFromS3_backtrackWindow :: (Maybe Integer -> f (Maybe Integer))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_backtrackWindow = (RestoreDBClusterFromS3 -> Maybe Integer)
-> (RestoreDBClusterFromS3
    -> Maybe Integer -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Integer
backtrackWindow :: Maybe Integer
$sel:backtrackWindow:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Integer
backtrackWindow} -> Maybe Integer
backtrackWindow) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Integer
a -> RestoreDBClusterFromS3
s {$sel:backtrackWindow:RestoreDBClusterFromS3' :: Maybe Integer
backtrackWindow = Maybe Integer
a} :: RestoreDBClusterFromS3)

-- | The weekly time range during which system maintenance can occur, in
-- Universal Coordinated Time (UTC).
--
-- Format: @ddd:hh24:mi-ddd:hh24:mi@
--
-- The default is a 30-minute window selected at random from an 8-hour
-- block of time for each Amazon Web Services Region, occurring on a random
-- day of the week. To see the time blocks available, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora Adjusting the Preferred Maintenance Window>
-- in the /Amazon Aurora User Guide./
--
-- Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
--
-- Constraints: Minimum 30-minute window.
restoreDBClusterFromS3_preferredMaintenanceWindow :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_preferredMaintenanceWindow :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_preferredMaintenanceWindow = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
preferredMaintenanceWindow :: Maybe Text
$sel:preferredMaintenanceWindow:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
preferredMaintenanceWindow} -> Maybe Text
preferredMaintenanceWindow) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:preferredMaintenanceWindow:RestoreDBClusterFromS3' :: Maybe Text
preferredMaintenanceWindow = Maybe Text
a} :: RestoreDBClusterFromS3)

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

-- | A value that indicates that the restored DB cluster should be associated
-- with the specified CharacterSet.
restoreDBClusterFromS3_characterSetName :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_characterSetName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_characterSetName = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
characterSetName :: Maybe Text
$sel:characterSetName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
characterSetName} -> Maybe Text
characterSetName) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:characterSetName:RestoreDBClusterFromS3' :: Maybe Text
characterSetName = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | The Amazon Web Services KMS key identifier for an encrypted DB cluster.
--
-- 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.
--
-- If the StorageEncrypted parameter is enabled, and you do not specify a
-- value for the @KmsKeyId@ parameter, then Amazon RDS will use your
-- default CMK. There is a default CMK for your Amazon Web Services
-- account. Your Amazon Web Services account has a different default CMK
-- for each Amazon Web Services Region.
restoreDBClusterFromS3_kmsKeyId :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_kmsKeyId = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:kmsKeyId:RestoreDBClusterFromS3' :: Maybe Text
kmsKeyId = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | The daily time range during which automated backups are created if
-- automated backups are enabled using the @BackupRetentionPeriod@
-- parameter.
--
-- The default is a 30-minute window selected at random from an 8-hour
-- block of time for each Amazon Web Services Region. To view the time
-- blocks available, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow Backup window>
-- in the /Amazon Aurora User Guide./
--
-- Constraints:
--
-- -   Must be in the format @hh24:mi-hh24:mi@.
--
-- -   Must be in Universal Coordinated Time (UTC).
--
-- -   Must not conflict with the preferred maintenance window.
--
-- -   Must be at least 30 minutes.
restoreDBClusterFromS3_preferredBackupWindow :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_preferredBackupWindow :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_preferredBackupWindow = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
preferredBackupWindow :: Maybe Text
$sel:preferredBackupWindow:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
preferredBackupWindow} -> Maybe Text
preferredBackupWindow) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:preferredBackupWindow:RestoreDBClusterFromS3' :: Maybe Text
preferredBackupWindow = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | The number of days for which automated backups of the restored DB
-- cluster are retained. You must specify a minimum value of 1.
--
-- Default: 1
--
-- Constraints:
--
-- -   Must be a value from 1 to 35
restoreDBClusterFromS3_backupRetentionPeriod :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Int)
restoreDBClusterFromS3_backupRetentionPeriod :: (Maybe Int -> f (Maybe Int))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_backupRetentionPeriod = (RestoreDBClusterFromS3 -> Maybe Int)
-> (RestoreDBClusterFromS3 -> Maybe Int -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Int
backupRetentionPeriod :: Maybe Int
$sel:backupRetentionPeriod:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Int
backupRetentionPeriod} -> Maybe Int
backupRetentionPeriod) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Int
a -> RestoreDBClusterFromS3
s {$sel:backupRetentionPeriod:RestoreDBClusterFromS3' :: Maybe Int
backupRetentionPeriod = Maybe Int
a} :: RestoreDBClusterFromS3)

-- | A list of EC2 VPC security groups to associate with the restored DB
-- cluster.
restoreDBClusterFromS3_vpcSecurityGroupIds :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe [Prelude.Text])
restoreDBClusterFromS3_vpcSecurityGroupIds :: (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_vpcSecurityGroupIds = (RestoreDBClusterFromS3 -> Maybe [Text])
-> (RestoreDBClusterFromS3
    -> Maybe [Text] -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe [Text]
vpcSecurityGroupIds :: Maybe [Text]
$sel:vpcSecurityGroupIds:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe [Text]
vpcSecurityGroupIds} -> Maybe [Text]
vpcSecurityGroupIds) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe [Text]
a -> RestoreDBClusterFromS3
s {$sel:vpcSecurityGroupIds:RestoreDBClusterFromS3' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
a} :: RestoreDBClusterFromS3) ((Maybe [Text] -> f (Maybe [Text]))
 -> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromS3
-> f RestoreDBClusterFromS3
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.
restoreDBClusterFromS3_databaseName :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_databaseName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_databaseName = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
databaseName :: Maybe Text
$sel:databaseName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
databaseName} -> Maybe Text
databaseName) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:databaseName:RestoreDBClusterFromS3' :: Maybe Text
databaseName = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | The name of the DB cluster parameter group to associate with the
-- restored DB cluster. If this argument is omitted, @default.aurora5.6@ is
-- used.
--
-- Constraints:
--
-- -   If supplied, must match the name of an existing
--     DBClusterParameterGroup.
restoreDBClusterFromS3_dbClusterParameterGroupName :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_dbClusterParameterGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_dbClusterParameterGroupName = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
dbClusterParameterGroupName :: Maybe Text
$sel:dbClusterParameterGroupName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
dbClusterParameterGroupName} -> Maybe Text
dbClusterParameterGroupName) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:dbClusterParameterGroupName:RestoreDBClusterFromS3' :: Maybe Text
dbClusterParameterGroupName = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | The prefix for all of the file names that contain the data used to
-- create the Amazon Aurora DB cluster. If you do not specify a
-- __SourceS3Prefix__ value, then the Amazon Aurora DB cluster is created
-- by using all of the files in the Amazon S3 bucket.
restoreDBClusterFromS3_s3Prefix :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_s3Prefix :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_s3Prefix = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
s3Prefix :: Maybe Text
$sel:s3Prefix:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
s3Prefix} -> Maybe Text
s3Prefix) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:s3Prefix:RestoreDBClusterFromS3' :: Maybe Text
s3Prefix = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | A value that indicates that the restored DB cluster should be associated
-- with the specified option group.
--
-- Permanent options can\'t be removed from an option group. An option
-- group can\'t be removed from a DB cluster once it is associated with a
-- DB cluster.
restoreDBClusterFromS3_optionGroupName :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Text)
restoreDBClusterFromS3_optionGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_optionGroupName = (RestoreDBClusterFromS3 -> Maybe Text)
-> (RestoreDBClusterFromS3 -> Maybe Text -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Text
optionGroupName :: Maybe Text
$sel:optionGroupName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
optionGroupName} -> Maybe Text
optionGroupName) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Text
a -> RestoreDBClusterFromS3
s {$sel:optionGroupName:RestoreDBClusterFromS3' :: Maybe Text
optionGroupName = Maybe Text
a} :: RestoreDBClusterFromS3)

-- | 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.
restoreDBClusterFromS3_copyTagsToSnapshot :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Bool)
restoreDBClusterFromS3_copyTagsToSnapshot :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_copyTagsToSnapshot = (RestoreDBClusterFromS3 -> Maybe Bool)
-> (RestoreDBClusterFromS3 -> Maybe Bool -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Bool
copyTagsToSnapshot :: Maybe Bool
$sel:copyTagsToSnapshot:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Bool
copyTagsToSnapshot} -> Maybe Bool
copyTagsToSnapshot) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Bool
a -> RestoreDBClusterFromS3
s {$sel:copyTagsToSnapshot:RestoreDBClusterFromS3' :: Maybe Bool
copyTagsToSnapshot = Maybe Bool
a} :: RestoreDBClusterFromS3)

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

-- | Undocumented member.
restoreDBClusterFromS3_tags :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe [Tag])
restoreDBClusterFromS3_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_tags = (RestoreDBClusterFromS3 -> Maybe [Tag])
-> (RestoreDBClusterFromS3
    -> Maybe [Tag] -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe [Tag]
a -> RestoreDBClusterFromS3
s {$sel:tags:RestoreDBClusterFromS3' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: RestoreDBClusterFromS3) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> RestoreDBClusterFromS3
-> f RestoreDBClusterFromS3
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 instances in the restored DB cluster accept
-- connections.
--
-- Default: @3306@
restoreDBClusterFromS3_port :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Int)
restoreDBClusterFromS3_port :: (Maybe Int -> f (Maybe Int))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_port = (RestoreDBClusterFromS3 -> Maybe Int)
-> (RestoreDBClusterFromS3 -> Maybe Int -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Int
port :: Maybe Int
$sel:port:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Int
port} -> Maybe Int
port) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Int
a -> RestoreDBClusterFromS3
s {$sel:port:RestoreDBClusterFromS3' :: Maybe Int
port = Maybe Int
a} :: RestoreDBClusterFromS3)

-- | 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./
restoreDBClusterFromS3_enableIAMDatabaseAuthentication :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe Prelude.Bool)
restoreDBClusterFromS3_enableIAMDatabaseAuthentication :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_enableIAMDatabaseAuthentication = (RestoreDBClusterFromS3 -> Maybe Bool)
-> (RestoreDBClusterFromS3 -> Maybe Bool -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe Bool
enableIAMDatabaseAuthentication :: Maybe Bool
$sel:enableIAMDatabaseAuthentication:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Bool
enableIAMDatabaseAuthentication} -> Maybe Bool
enableIAMDatabaseAuthentication) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe Bool
a -> RestoreDBClusterFromS3
s {$sel:enableIAMDatabaseAuthentication:RestoreDBClusterFromS3' :: Maybe Bool
enableIAMDatabaseAuthentication = Maybe Bool
a} :: RestoreDBClusterFromS3)

-- | The list of logs that the restored DB cluster is to export to 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/.
restoreDBClusterFromS3_enableCloudwatchLogsExports :: Lens.Lens' RestoreDBClusterFromS3 (Prelude.Maybe [Prelude.Text])
restoreDBClusterFromS3_enableCloudwatchLogsExports :: (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_enableCloudwatchLogsExports = (RestoreDBClusterFromS3 -> Maybe [Text])
-> (RestoreDBClusterFromS3
    -> Maybe [Text] -> RestoreDBClusterFromS3)
-> Lens
     RestoreDBClusterFromS3
     RestoreDBClusterFromS3
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Maybe [Text]
enableCloudwatchLogsExports :: Maybe [Text]
$sel:enableCloudwatchLogsExports:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe [Text]
enableCloudwatchLogsExports} -> Maybe [Text]
enableCloudwatchLogsExports) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Maybe [Text]
a -> RestoreDBClusterFromS3
s {$sel:enableCloudwatchLogsExports:RestoreDBClusterFromS3' :: Maybe [Text]
enableCloudwatchLogsExports = Maybe [Text]
a} :: RestoreDBClusterFromS3) ((Maybe [Text] -> f (Maybe [Text]))
 -> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBClusterFromS3
-> f RestoreDBClusterFromS3
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 source data in the Amazon
-- S3 bucket. 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-cluster1@
restoreDBClusterFromS3_dbClusterIdentifier :: Lens.Lens' RestoreDBClusterFromS3 Prelude.Text
restoreDBClusterFromS3_dbClusterIdentifier :: (Text -> f Text)
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_dbClusterIdentifier = (RestoreDBClusterFromS3 -> Text)
-> (RestoreDBClusterFromS3 -> Text -> RestoreDBClusterFromS3)
-> Lens RestoreDBClusterFromS3 RestoreDBClusterFromS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Text
dbClusterIdentifier :: Text
$sel:dbClusterIdentifier:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
dbClusterIdentifier} -> Text
dbClusterIdentifier) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Text
a -> RestoreDBClusterFromS3
s {$sel:dbClusterIdentifier:RestoreDBClusterFromS3' :: Text
dbClusterIdentifier = Text
a} :: RestoreDBClusterFromS3)

-- | The name of the database engine to be used for this DB cluster.
--
-- Valid Values: @aurora@ (for MySQL 5.6-compatible Aurora), @aurora-mysql@
-- (for MySQL 5.7-compatible Aurora), and @aurora-postgresql@
restoreDBClusterFromS3_engine :: Lens.Lens' RestoreDBClusterFromS3 Prelude.Text
restoreDBClusterFromS3_engine :: (Text -> f Text)
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_engine = (RestoreDBClusterFromS3 -> Text)
-> (RestoreDBClusterFromS3 -> Text -> RestoreDBClusterFromS3)
-> Lens RestoreDBClusterFromS3 RestoreDBClusterFromS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Text
engine :: Text
$sel:engine:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
engine} -> Text
engine) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Text
a -> RestoreDBClusterFromS3
s {$sel:engine:RestoreDBClusterFromS3' :: Text
engine = Text
a} :: RestoreDBClusterFromS3)

-- | The name of the master user for the restored DB cluster.
--
-- Constraints:
--
-- -   Must be 1 to 16 letters or numbers.
--
-- -   First character must be a letter.
--
-- -   Can\'t be a reserved word for the chosen database engine.
restoreDBClusterFromS3_masterUsername :: Lens.Lens' RestoreDBClusterFromS3 Prelude.Text
restoreDBClusterFromS3_masterUsername :: (Text -> f Text)
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_masterUsername = (RestoreDBClusterFromS3 -> Text)
-> (RestoreDBClusterFromS3 -> Text -> RestoreDBClusterFromS3)
-> Lens RestoreDBClusterFromS3 RestoreDBClusterFromS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Text
masterUsername :: Text
$sel:masterUsername:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
masterUsername} -> Text
masterUsername) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Text
a -> RestoreDBClusterFromS3
s {$sel:masterUsername:RestoreDBClusterFromS3' :: Text
masterUsername = Text
a} :: RestoreDBClusterFromS3)

-- | The password for the master database user. This password can contain any
-- printable ASCII character except \"\/\", \"\"\", or \"\@\".
--
-- Constraints: Must contain from 8 to 41 characters.
restoreDBClusterFromS3_masterUserPassword :: Lens.Lens' RestoreDBClusterFromS3 Prelude.Text
restoreDBClusterFromS3_masterUserPassword :: (Text -> f Text)
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_masterUserPassword = (RestoreDBClusterFromS3 -> Text)
-> (RestoreDBClusterFromS3 -> Text -> RestoreDBClusterFromS3)
-> Lens RestoreDBClusterFromS3 RestoreDBClusterFromS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Text
masterUserPassword :: Text
$sel:masterUserPassword:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
masterUserPassword} -> Text
masterUserPassword) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Text
a -> RestoreDBClusterFromS3
s {$sel:masterUserPassword:RestoreDBClusterFromS3' :: Text
masterUserPassword = Text
a} :: RestoreDBClusterFromS3)

-- | The identifier for the database engine that was backed up to create the
-- files stored in the Amazon S3 bucket.
--
-- Valid values: @mysql@
restoreDBClusterFromS3_sourceEngine :: Lens.Lens' RestoreDBClusterFromS3 Prelude.Text
restoreDBClusterFromS3_sourceEngine :: (Text -> f Text)
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_sourceEngine = (RestoreDBClusterFromS3 -> Text)
-> (RestoreDBClusterFromS3 -> Text -> RestoreDBClusterFromS3)
-> Lens RestoreDBClusterFromS3 RestoreDBClusterFromS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Text
sourceEngine :: Text
$sel:sourceEngine:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
sourceEngine} -> Text
sourceEngine) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Text
a -> RestoreDBClusterFromS3
s {$sel:sourceEngine:RestoreDBClusterFromS3' :: Text
sourceEngine = Text
a} :: RestoreDBClusterFromS3)

-- | The version of the database that the backup files were created from.
--
-- MySQL versions 5.5, 5.6, and 5.7 are supported.
--
-- Example: @5.6.40@, @5.7.28@
restoreDBClusterFromS3_sourceEngineVersion :: Lens.Lens' RestoreDBClusterFromS3 Prelude.Text
restoreDBClusterFromS3_sourceEngineVersion :: (Text -> f Text)
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_sourceEngineVersion = (RestoreDBClusterFromS3 -> Text)
-> (RestoreDBClusterFromS3 -> Text -> RestoreDBClusterFromS3)
-> Lens RestoreDBClusterFromS3 RestoreDBClusterFromS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Text
sourceEngineVersion :: Text
$sel:sourceEngineVersion:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
sourceEngineVersion} -> Text
sourceEngineVersion) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Text
a -> RestoreDBClusterFromS3
s {$sel:sourceEngineVersion:RestoreDBClusterFromS3' :: Text
sourceEngineVersion = Text
a} :: RestoreDBClusterFromS3)

-- | The name of the Amazon S3 bucket that contains the data used to create
-- the Amazon Aurora DB cluster.
restoreDBClusterFromS3_s3BucketName :: Lens.Lens' RestoreDBClusterFromS3 Prelude.Text
restoreDBClusterFromS3_s3BucketName :: (Text -> f Text)
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_s3BucketName = (RestoreDBClusterFromS3 -> Text)
-> (RestoreDBClusterFromS3 -> Text -> RestoreDBClusterFromS3)
-> Lens RestoreDBClusterFromS3 RestoreDBClusterFromS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Text
s3BucketName :: Text
$sel:s3BucketName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
s3BucketName} -> Text
s3BucketName) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Text
a -> RestoreDBClusterFromS3
s {$sel:s3BucketName:RestoreDBClusterFromS3' :: Text
s3BucketName = Text
a} :: RestoreDBClusterFromS3)

-- | The Amazon Resource Name (ARN) of the Amazon Web Services Identity and
-- Access Management (IAM) role that authorizes Amazon RDS to access the
-- Amazon S3 bucket on your behalf.
restoreDBClusterFromS3_s3IngestionRoleArn :: Lens.Lens' RestoreDBClusterFromS3 Prelude.Text
restoreDBClusterFromS3_s3IngestionRoleArn :: (Text -> f Text)
-> RestoreDBClusterFromS3 -> f RestoreDBClusterFromS3
restoreDBClusterFromS3_s3IngestionRoleArn = (RestoreDBClusterFromS3 -> Text)
-> (RestoreDBClusterFromS3 -> Text -> RestoreDBClusterFromS3)
-> Lens RestoreDBClusterFromS3 RestoreDBClusterFromS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBClusterFromS3' {Text
s3IngestionRoleArn :: Text
$sel:s3IngestionRoleArn:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
s3IngestionRoleArn} -> Text
s3IngestionRoleArn) (\s :: RestoreDBClusterFromS3
s@RestoreDBClusterFromS3' {} Text
a -> RestoreDBClusterFromS3
s {$sel:s3IngestionRoleArn:RestoreDBClusterFromS3' :: Text
s3IngestionRoleArn = Text
a} :: RestoreDBClusterFromS3)

instance Core.AWSRequest RestoreDBClusterFromS3 where
  type
    AWSResponse RestoreDBClusterFromS3 =
      RestoreDBClusterFromS3Response
  request :: RestoreDBClusterFromS3 -> Request RestoreDBClusterFromS3
request = Service -> RestoreDBClusterFromS3 -> Request RestoreDBClusterFromS3
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy RestoreDBClusterFromS3
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RestoreDBClusterFromS3)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse RestoreDBClusterFromS3))
-> Logger
-> Service
-> Proxy RestoreDBClusterFromS3
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RestoreDBClusterFromS3)))
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
"RestoreDBClusterFromS3Result"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe DBCluster -> Int -> RestoreDBClusterFromS3Response
RestoreDBClusterFromS3Response'
            (Maybe DBCluster -> Int -> RestoreDBClusterFromS3Response)
-> Either String (Maybe DBCluster)
-> Either String (Int -> RestoreDBClusterFromS3Response)
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 -> RestoreDBClusterFromS3Response)
-> Either String Int
-> Either String RestoreDBClusterFromS3Response
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 RestoreDBClusterFromS3

instance Prelude.NFData RestoreDBClusterFromS3

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

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

instance Core.ToQuery RestoreDBClusterFromS3 where
  toQuery :: RestoreDBClusterFromS3 -> QueryString
toQuery RestoreDBClusterFromS3' {Maybe Bool
Maybe Int
Maybe Integer
Maybe [Text]
Maybe [Tag]
Maybe Text
Text
s3IngestionRoleArn :: Text
s3BucketName :: Text
sourceEngineVersion :: Text
sourceEngine :: Text
masterUserPassword :: Text
masterUsername :: Text
engine :: Text
dbClusterIdentifier :: Text
enableCloudwatchLogsExports :: Maybe [Text]
enableIAMDatabaseAuthentication :: Maybe Bool
port :: Maybe Int
tags :: Maybe [Tag]
domainIAMRoleName :: Maybe Text
copyTagsToSnapshot :: Maybe Bool
optionGroupName :: Maybe Text
s3Prefix :: Maybe Text
dbClusterParameterGroupName :: Maybe Text
databaseName :: Maybe Text
vpcSecurityGroupIds :: Maybe [Text]
backupRetentionPeriod :: Maybe Int
preferredBackupWindow :: Maybe Text
kmsKeyId :: Maybe Text
characterSetName :: Maybe Text
availabilityZones :: Maybe [Text]
preferredMaintenanceWindow :: Maybe Text
backtrackWindow :: Maybe Integer
domain :: Maybe Text
dbSubnetGroupName :: Maybe Text
storageEncrypted :: Maybe Bool
deletionProtection :: Maybe Bool
engineVersion :: Maybe Text
$sel:s3IngestionRoleArn:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
$sel:s3BucketName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
$sel:sourceEngineVersion:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
$sel:sourceEngine:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
$sel:masterUserPassword:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
$sel:masterUsername:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
$sel:engine:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
$sel:dbClusterIdentifier:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Text
$sel:enableCloudwatchLogsExports:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe [Text]
$sel:enableIAMDatabaseAuthentication:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Bool
$sel:port:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Int
$sel:tags:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe [Tag]
$sel:domainIAMRoleName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:copyTagsToSnapshot:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Bool
$sel:optionGroupName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:s3Prefix:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:dbClusterParameterGroupName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:databaseName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:vpcSecurityGroupIds:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe [Text]
$sel:backupRetentionPeriod:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Int
$sel:preferredBackupWindow:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:kmsKeyId:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:characterSetName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:availabilityZones:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe [Text]
$sel:preferredMaintenanceWindow:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:backtrackWindow:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Integer
$sel:domain:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:dbSubnetGroupName:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Text
$sel:storageEncrypted:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Bool
$sel:deletionProtection:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> Maybe Bool
$sel:engineVersion:RestoreDBClusterFromS3' :: RestoreDBClusterFromS3 -> 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
"RestoreDBClusterFromS3" :: 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
"StorageEncrypted" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
storageEncrypted,
        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
"PreferredMaintenanceWindow"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
preferredMaintenanceWindow,
        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
"CharacterSetName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
characterSetName,
        ByteString
"KmsKeyId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
kmsKeyId,
        ByteString
"PreferredBackupWindow"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
preferredBackupWindow,
        ByteString
"BackupRetentionPeriod"
          ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
backupRetentionPeriod,
        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
"S3Prefix" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
s3Prefix,
        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
"Engine" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
engine,
        ByteString
"MasterUsername" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
masterUsername,
        ByteString
"MasterUserPassword" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
masterUserPassword,
        ByteString
"SourceEngine" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
sourceEngine,
        ByteString
"SourceEngineVersion" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
sourceEngineVersion,
        ByteString
"S3BucketName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
s3BucketName,
        ByteString
"S3IngestionRoleArn" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
s3IngestionRoleArn
      ]

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

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

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

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

instance
  Prelude.NFData
    RestoreDBClusterFromS3Response