{-# 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.RestoreDBInstanceFromDBSnapshot
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Creates a new DB instance from a DB snapshot. The target database is
-- created from the source database restore point with most of the
-- source\'s original configuration, including the default security group
-- and DB parameter group. By default, the new DB instance is created as a
-- Single-AZ deployment, except when the instance is a SQL Server instance
-- that has an option group associated with mirroring. In this case, the
-- instance becomes a Multi-AZ deployment, not a Single-AZ deployment.
--
-- If you want to replace your original DB instance with the new, restored
-- DB instance, then rename your original DB instance before you call the
-- RestoreDBInstanceFromDBSnapshot action. RDS doesn\'t allow two DB
-- instances with the same name. After you have renamed your original DB
-- instance with a different identifier, then you can pass the original
-- name of the DB instance as the DBInstanceIdentifier in the call to the
-- RestoreDBInstanceFromDBSnapshot action. The result is that you replace
-- the original DB instance with the DB instance created from the snapshot.
--
-- If you are restoring from a shared manual DB snapshot, the
-- @DBSnapshotIdentifier@ must be the ARN of the shared DB snapshot.
--
-- This command doesn\'t apply to Aurora MySQL and Aurora PostgreSQL. For
-- Aurora, use @RestoreDBClusterFromSnapshot@.
module Amazonka.RDS.RestoreDBInstanceFromDBSnapshot
  ( -- * Creating a Request
    RestoreDBInstanceFromDBSnapshot (..),
    newRestoreDBInstanceFromDBSnapshot,

    -- * Request Lenses
    restoreDBInstanceFromDBSnapshot_deletionProtection,
    restoreDBInstanceFromDBSnapshot_publiclyAccessible,
    restoreDBInstanceFromDBSnapshot_autoMinorVersionUpgrade,
    restoreDBInstanceFromDBSnapshot_dbSubnetGroupName,
    restoreDBInstanceFromDBSnapshot_iops,
    restoreDBInstanceFromDBSnapshot_domain,
    restoreDBInstanceFromDBSnapshot_enableCustomerOwnedIp,
    restoreDBInstanceFromDBSnapshot_engine,
    restoreDBInstanceFromDBSnapshot_tdeCredentialPassword,
    restoreDBInstanceFromDBSnapshot_processorFeatures,
    restoreDBInstanceFromDBSnapshot_dbInstanceClass,
    restoreDBInstanceFromDBSnapshot_licenseModel,
    restoreDBInstanceFromDBSnapshot_dbParameterGroupName,
    restoreDBInstanceFromDBSnapshot_availabilityZone,
    restoreDBInstanceFromDBSnapshot_vpcSecurityGroupIds,
    restoreDBInstanceFromDBSnapshot_multiAZ,
    restoreDBInstanceFromDBSnapshot_optionGroupName,
    restoreDBInstanceFromDBSnapshot_copyTagsToSnapshot,
    restoreDBInstanceFromDBSnapshot_tdeCredentialArn,
    restoreDBInstanceFromDBSnapshot_domainIAMRoleName,
    restoreDBInstanceFromDBSnapshot_tags,
    restoreDBInstanceFromDBSnapshot_port,
    restoreDBInstanceFromDBSnapshot_enableIAMDatabaseAuthentication,
    restoreDBInstanceFromDBSnapshot_useDefaultProcessorFeatures,
    restoreDBInstanceFromDBSnapshot_storageType,
    restoreDBInstanceFromDBSnapshot_enableCloudwatchLogsExports,
    restoreDBInstanceFromDBSnapshot_dbName,
    restoreDBInstanceFromDBSnapshot_dbInstanceIdentifier,
    restoreDBInstanceFromDBSnapshot_dbSnapshotIdentifier,

    -- * Destructuring the Response
    RestoreDBInstanceFromDBSnapshotResponse (..),
    newRestoreDBInstanceFromDBSnapshotResponse,

    -- * Response Lenses
    restoreDBInstanceFromDBSnapshotResponse_dbInstance,
    restoreDBInstanceFromDBSnapshotResponse_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:/ 'newRestoreDBInstanceFromDBSnapshot' smart constructor.
data RestoreDBInstanceFromDBSnapshot = RestoreDBInstanceFromDBSnapshot'
  { -- | A value that indicates whether the DB instance has deletion protection
    -- enabled. The database can\'t be deleted when deletion protection is
    -- enabled. By default, deletion protection is disabled. For more
    -- information, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html Deleting a DB Instance>.
    RestoreDBInstanceFromDBSnapshot -> Maybe Bool
deletionProtection :: Prelude.Maybe Prelude.Bool,
    -- | A value that indicates whether the DB instance is publicly accessible.
    --
    -- When the DB instance is publicly accessible, its DNS endpoint resolves
    -- to the private IP address from within the DB instance\'s VPC, and to the
    -- public IP address from outside of the DB instance\'s VPC. Access to the
    -- DB instance is ultimately controlled by the security group it uses, and
    -- that public access is not permitted if the security group assigned to
    -- the DB instance doesn\'t permit it.
    --
    -- When the DB instance isn\'t publicly accessible, it is an internal DB
    -- instance with a DNS name that resolves to a private IP address.
    --
    -- For more information, see CreateDBInstance.
    RestoreDBInstanceFromDBSnapshot -> Maybe Bool
publiclyAccessible :: Prelude.Maybe Prelude.Bool,
    -- | A value that indicates whether minor version upgrades are applied
    -- automatically to the DB instance during the maintenance window.
    RestoreDBInstanceFromDBSnapshot -> Maybe Bool
autoMinorVersionUpgrade :: Prelude.Maybe Prelude.Bool,
    -- | The DB subnet group name to use for the new instance.
    --
    -- Constraints: If supplied, must match the name of an existing
    -- DBSubnetGroup.
    --
    -- Example: @mySubnetgroup@
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbSubnetGroupName :: Prelude.Maybe Prelude.Text,
    -- | Specifies the amount of provisioned IOPS for the DB instance, expressed
    -- in I\/O operations per second. If this parameter isn\'t specified, the
    -- IOPS value is taken from the backup. If this parameter is set to 0, the
    -- new instance is converted to a non-PIOPS instance. The conversion takes
    -- additional time, though your DB instance is available for connections
    -- before the conversion starts.
    --
    -- The provisioned IOPS value must follow the requirements for your
    -- database engine. For more information, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS Amazon RDS Provisioned IOPS Storage to Improve Performance>
    -- in the /Amazon RDS User Guide./
    --
    -- Constraints: Must be an integer greater than 1000.
    RestoreDBInstanceFromDBSnapshot -> Maybe Int
iops :: Prelude.Maybe Prelude.Int,
    -- | Specify the Active Directory directory ID to restore the DB instance in.
    -- The domain must be created prior to this operation. Currently, only
    -- MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be
    -- created in an Active Directory Domain.
    --
    -- For more information, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html Kerberos Authentication>
    -- in the /Amazon RDS User Guide/.
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
domain :: Prelude.Maybe Prelude.Text,
    -- | A value that indicates whether to enable a customer-owned IP address
    -- (CoIP) for an RDS on Outposts DB instance.
    --
    -- A /CoIP/ provides local or external connectivity to resources in your
    -- Outpost subnets through your on-premises network. For some use cases, a
    -- CoIP can provide lower latency for connections to the DB instance from
    -- outside of its virtual private cloud (VPC) on your local network.
    --
    -- For more information about RDS on Outposts, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html Working with Amazon RDS on Amazon Web Services Outposts>
    -- in the /Amazon RDS User Guide/.
    --
    -- For more information about CoIPs, see
    -- <https://docs.aws.amazon.com/outposts/latest/userguide/outposts-networking-components.html#ip-addressing Customer-owned IP addresses>
    -- in the /Amazon Web Services Outposts User Guide/.
    RestoreDBInstanceFromDBSnapshot -> Maybe Bool
enableCustomerOwnedIp :: Prelude.Maybe Prelude.Bool,
    -- | The database engine to use for the new instance.
    --
    -- Default: The same as source
    --
    -- Constraint: Must be compatible with the engine of the source. For
    -- example, you can restore a MariaDB 10.1 DB instance from a MySQL 5.6
    -- snapshot.
    --
    -- Valid Values:
    --
    -- -   @mariadb@
    --
    -- -   @mysql@
    --
    -- -   @oracle-ee@
    --
    -- -   @oracle-ee-cdb@
    --
    -- -   @oracle-se2@
    --
    -- -   @oracle-se2-cdb@
    --
    -- -   @postgres@
    --
    -- -   @sqlserver-ee@
    --
    -- -   @sqlserver-se@
    --
    -- -   @sqlserver-ex@
    --
    -- -   @sqlserver-web@
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
engine :: Prelude.Maybe Prelude.Text,
    -- | The password for the given ARN from the key store in order to access the
    -- device.
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
tdeCredentialPassword :: Prelude.Maybe Prelude.Text,
    -- | The number of CPU cores and the number of threads per core for the DB
    -- instance class of the DB instance.
    RestoreDBInstanceFromDBSnapshot -> Maybe [ProcessorFeature]
processorFeatures :: Prelude.Maybe [ProcessorFeature],
    -- | The compute and memory capacity of the Amazon RDS DB instance, for
    -- example, @db.m4.large@. Not all DB instance classes are available in all
    -- Amazon Web Services Regions, or for all database engines. For the full
    -- list of DB instance classes, and availability for your engine, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html DB Instance Class>
    -- in the /Amazon RDS User Guide./
    --
    -- Default: The same DBInstanceClass as the original DB instance.
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbInstanceClass :: Prelude.Maybe Prelude.Text,
    -- | License model information for the restored DB instance.
    --
    -- Default: Same as source.
    --
    -- Valid values: @license-included@ | @bring-your-own-license@ |
    -- @general-public-license@
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
licenseModel :: Prelude.Maybe Prelude.Text,
    -- | The name of the DB parameter group to associate with this DB instance.
    --
    -- If you do not specify a value for @DBParameterGroupName@, then the
    -- default @DBParameterGroup@ for the specified DB engine is used.
    --
    -- Constraints:
    --
    -- -   If supplied, must match the name of an existing DBParameterGroup.
    --
    -- -   Must be 1 to 255 letters, numbers, or hyphens.
    --
    -- -   First character must be a letter.
    --
    -- -   Can\'t end with a hyphen or contain two consecutive hyphens.
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbParameterGroupName :: Prelude.Maybe Prelude.Text,
    -- | The Availability Zone (AZ) where the DB instance will be created.
    --
    -- Default: A random, system-chosen Availability Zone.
    --
    -- Constraint: You can\'t specify the @AvailabilityZone@ parameter if the
    -- DB instance is a Multi-AZ deployment.
    --
    -- Example: @us-east-1a@
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
    -- | A list of EC2 VPC security groups to associate with this DB instance.
    --
    -- Default: The default EC2 VPC security group for the DB subnet group\'s
    -- VPC.
    RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
vpcSecurityGroupIds :: Prelude.Maybe [Prelude.Text],
    -- | A value that indicates whether the DB instance is a Multi-AZ deployment.
    --
    -- Constraint: You can\'t specify the @AvailabilityZone@ parameter if the
    -- DB instance is a Multi-AZ deployment.
    RestoreDBInstanceFromDBSnapshot -> Maybe Bool
multiAZ :: Prelude.Maybe Prelude.Bool,
    -- | The name of the option group to be used for the restored DB instance.
    --
    -- Permanent options, such as the TDE option for Oracle Advanced Security
    -- TDE, can\'t be removed from an option group, and that option group
    -- can\'t be removed from a DB instance once it is associated with a DB
    -- instance
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
optionGroupName :: Prelude.Maybe Prelude.Text,
    -- | A value that indicates whether to copy all tags from the restored DB
    -- instance to snapshots of the DB instance. By default, tags are not
    -- copied.
    RestoreDBInstanceFromDBSnapshot -> Maybe Bool
copyTagsToSnapshot :: Prelude.Maybe Prelude.Bool,
    -- | The ARN from the key store with which to associate the instance for TDE
    -- encryption.
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
tdeCredentialArn :: Prelude.Maybe Prelude.Text,
    -- | Specify the name of the IAM role to be used when making API calls to the
    -- Directory Service.
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
domainIAMRoleName :: Prelude.Maybe Prelude.Text,
    RestoreDBInstanceFromDBSnapshot -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The port number on which the database accepts connections.
    --
    -- Default: The same port as the original DB instance
    --
    -- Constraints: Value must be @1150-65535@
    RestoreDBInstanceFromDBSnapshot -> 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 about IAM database authentication, see
    -- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html IAM Database Authentication for MySQL and PostgreSQL>
    -- in the /Amazon RDS User Guide./
    RestoreDBInstanceFromDBSnapshot -> Maybe Bool
enableIAMDatabaseAuthentication :: Prelude.Maybe Prelude.Bool,
    -- | A value that indicates whether the DB instance class of the DB instance
    -- uses its default processor features.
    RestoreDBInstanceFromDBSnapshot -> Maybe Bool
useDefaultProcessorFeatures :: Prelude.Maybe Prelude.Bool,
    -- | Specifies the storage type to be associated with the DB instance.
    --
    -- Valid values: @standard | gp2 | io1@
    --
    -- If you specify @io1@, you must also include a value for the @Iops@
    -- parameter.
    --
    -- Default: @io1@ if the @Iops@ parameter is specified, otherwise @gp2@
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
storageType :: Prelude.Maybe Prelude.Text,
    -- | The list of logs that the restored DB instance 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/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch Publishing Database Logs to Amazon CloudWatch Logs>
    -- in the /Amazon RDS User Guide/.
    RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
enableCloudwatchLogsExports :: Prelude.Maybe [Prelude.Text],
    -- | The database name for the restored DB instance.
    --
    -- This parameter doesn\'t apply to the MySQL, PostgreSQL, or MariaDB
    -- engines.
    RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbName :: Prelude.Maybe Prelude.Text,
    -- | Name of the DB instance to create from the DB snapshot. This parameter
    -- isn\'t case-sensitive.
    --
    -- Constraints:
    --
    -- -   Must contain from 1 to 63 numbers, letters, or hyphens
    --
    -- -   First character must be a letter
    --
    -- -   Can\'t end with a hyphen or contain two consecutive hyphens
    --
    -- Example: @my-snapshot-id@
    RestoreDBInstanceFromDBSnapshot -> Text
dbInstanceIdentifier :: Prelude.Text,
    -- | The identifier for the DB snapshot to restore from.
    --
    -- Constraints:
    --
    -- -   Must match the identifier of an existing DBSnapshot.
    --
    -- -   If you are restoring from a shared manual DB snapshot, the
    --     @DBSnapshotIdentifier@ must be the ARN of the shared DB snapshot.
    RestoreDBInstanceFromDBSnapshot -> Text
dbSnapshotIdentifier :: Prelude.Text
  }
  deriving (RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
(RestoreDBInstanceFromDBSnapshot
 -> RestoreDBInstanceFromDBSnapshot -> Bool)
-> (RestoreDBInstanceFromDBSnapshot
    -> RestoreDBInstanceFromDBSnapshot -> Bool)
-> Eq RestoreDBInstanceFromDBSnapshot
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
$c/= :: RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
== :: RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
$c== :: RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
Prelude.Eq, ReadPrec [RestoreDBInstanceFromDBSnapshot]
ReadPrec RestoreDBInstanceFromDBSnapshot
Int -> ReadS RestoreDBInstanceFromDBSnapshot
ReadS [RestoreDBInstanceFromDBSnapshot]
(Int -> ReadS RestoreDBInstanceFromDBSnapshot)
-> ReadS [RestoreDBInstanceFromDBSnapshot]
-> ReadPrec RestoreDBInstanceFromDBSnapshot
-> ReadPrec [RestoreDBInstanceFromDBSnapshot]
-> Read RestoreDBInstanceFromDBSnapshot
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RestoreDBInstanceFromDBSnapshot]
$creadListPrec :: ReadPrec [RestoreDBInstanceFromDBSnapshot]
readPrec :: ReadPrec RestoreDBInstanceFromDBSnapshot
$creadPrec :: ReadPrec RestoreDBInstanceFromDBSnapshot
readList :: ReadS [RestoreDBInstanceFromDBSnapshot]
$creadList :: ReadS [RestoreDBInstanceFromDBSnapshot]
readsPrec :: Int -> ReadS RestoreDBInstanceFromDBSnapshot
$creadsPrec :: Int -> ReadS RestoreDBInstanceFromDBSnapshot
Prelude.Read, Int -> RestoreDBInstanceFromDBSnapshot -> ShowS
[RestoreDBInstanceFromDBSnapshot] -> ShowS
RestoreDBInstanceFromDBSnapshot -> String
(Int -> RestoreDBInstanceFromDBSnapshot -> ShowS)
-> (RestoreDBInstanceFromDBSnapshot -> String)
-> ([RestoreDBInstanceFromDBSnapshot] -> ShowS)
-> Show RestoreDBInstanceFromDBSnapshot
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RestoreDBInstanceFromDBSnapshot] -> ShowS
$cshowList :: [RestoreDBInstanceFromDBSnapshot] -> ShowS
show :: RestoreDBInstanceFromDBSnapshot -> String
$cshow :: RestoreDBInstanceFromDBSnapshot -> String
showsPrec :: Int -> RestoreDBInstanceFromDBSnapshot -> ShowS
$cshowsPrec :: Int -> RestoreDBInstanceFromDBSnapshot -> ShowS
Prelude.Show, (forall x.
 RestoreDBInstanceFromDBSnapshot
 -> Rep RestoreDBInstanceFromDBSnapshot x)
-> (forall x.
    Rep RestoreDBInstanceFromDBSnapshot x
    -> RestoreDBInstanceFromDBSnapshot)
-> Generic RestoreDBInstanceFromDBSnapshot
forall x.
Rep RestoreDBInstanceFromDBSnapshot x
-> RestoreDBInstanceFromDBSnapshot
forall x.
RestoreDBInstanceFromDBSnapshot
-> Rep RestoreDBInstanceFromDBSnapshot x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RestoreDBInstanceFromDBSnapshot x
-> RestoreDBInstanceFromDBSnapshot
$cfrom :: forall x.
RestoreDBInstanceFromDBSnapshot
-> Rep RestoreDBInstanceFromDBSnapshot x
Prelude.Generic)

-- |
-- Create a value of 'RestoreDBInstanceFromDBSnapshot' 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:
--
-- 'deletionProtection', 'restoreDBInstanceFromDBSnapshot_deletionProtection' - A value that indicates whether the DB instance has deletion protection
-- enabled. The database can\'t be deleted when deletion protection is
-- enabled. By default, deletion protection is disabled. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html Deleting a DB Instance>.
--
-- 'publiclyAccessible', 'restoreDBInstanceFromDBSnapshot_publiclyAccessible' - A value that indicates whether the DB instance is publicly accessible.
--
-- When the DB instance is publicly accessible, its DNS endpoint resolves
-- to the private IP address from within the DB instance\'s VPC, and to the
-- public IP address from outside of the DB instance\'s VPC. Access to the
-- DB instance is ultimately controlled by the security group it uses, and
-- that public access is not permitted if the security group assigned to
-- the DB instance doesn\'t permit it.
--
-- When the DB instance isn\'t publicly accessible, it is an internal DB
-- instance with a DNS name that resolves to a private IP address.
--
-- For more information, see CreateDBInstance.
--
-- 'autoMinorVersionUpgrade', 'restoreDBInstanceFromDBSnapshot_autoMinorVersionUpgrade' - A value that indicates whether minor version upgrades are applied
-- automatically to the DB instance during the maintenance window.
--
-- 'dbSubnetGroupName', 'restoreDBInstanceFromDBSnapshot_dbSubnetGroupName' - The DB subnet group name to use for the new instance.
--
-- Constraints: If supplied, must match the name of an existing
-- DBSubnetGroup.
--
-- Example: @mySubnetgroup@
--
-- 'iops', 'restoreDBInstanceFromDBSnapshot_iops' - Specifies the amount of provisioned IOPS for the DB instance, expressed
-- in I\/O operations per second. If this parameter isn\'t specified, the
-- IOPS value is taken from the backup. If this parameter is set to 0, the
-- new instance is converted to a non-PIOPS instance. The conversion takes
-- additional time, though your DB instance is available for connections
-- before the conversion starts.
--
-- The provisioned IOPS value must follow the requirements for your
-- database engine. For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS Amazon RDS Provisioned IOPS Storage to Improve Performance>
-- in the /Amazon RDS User Guide./
--
-- Constraints: Must be an integer greater than 1000.
--
-- 'domain', 'restoreDBInstanceFromDBSnapshot_domain' - Specify the Active Directory directory ID to restore the DB instance in.
-- The domain must be created prior to this operation. Currently, only
-- MySQL, Microsoft SQL Server, Oracle, and PostgreSQL DB instances can be
-- created in an Active Directory Domain.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/kerberos-authentication.html Kerberos Authentication>
-- in the /Amazon RDS User Guide/.
--
-- 'enableCustomerOwnedIp', 'restoreDBInstanceFromDBSnapshot_enableCustomerOwnedIp' - A value that indicates whether to enable a customer-owned IP address
-- (CoIP) for an RDS on Outposts DB instance.
--
-- A /CoIP/ provides local or external connectivity to resources in your
-- Outpost subnets through your on-premises network. For some use cases, a
-- CoIP can provide lower latency for connections to the DB instance from
-- outside of its virtual private cloud (VPC) on your local network.
--
-- For more information about RDS on Outposts, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html Working with Amazon RDS on Amazon Web Services Outposts>
-- in the /Amazon RDS User Guide/.
--
-- For more information about CoIPs, see
-- <https://docs.aws.amazon.com/outposts/latest/userguide/outposts-networking-components.html#ip-addressing Customer-owned IP addresses>
-- in the /Amazon Web Services Outposts User Guide/.
--
-- 'engine', 'restoreDBInstanceFromDBSnapshot_engine' - The database engine to use for the new instance.
--
-- Default: The same as source
--
-- Constraint: Must be compatible with the engine of the source. For
-- example, you can restore a MariaDB 10.1 DB instance from a MySQL 5.6
-- snapshot.
--
-- Valid Values:
--
-- -   @mariadb@
--
-- -   @mysql@
--
-- -   @oracle-ee@
--
-- -   @oracle-ee-cdb@
--
-- -   @oracle-se2@
--
-- -   @oracle-se2-cdb@
--
-- -   @postgres@
--
-- -   @sqlserver-ee@
--
-- -   @sqlserver-se@
--
-- -   @sqlserver-ex@
--
-- -   @sqlserver-web@
--
-- 'tdeCredentialPassword', 'restoreDBInstanceFromDBSnapshot_tdeCredentialPassword' - The password for the given ARN from the key store in order to access the
-- device.
--
-- 'processorFeatures', 'restoreDBInstanceFromDBSnapshot_processorFeatures' - The number of CPU cores and the number of threads per core for the DB
-- instance class of the DB instance.
--
-- 'dbInstanceClass', 'restoreDBInstanceFromDBSnapshot_dbInstanceClass' - The compute and memory capacity of the Amazon RDS DB instance, for
-- example, @db.m4.large@. Not all DB instance classes are available in all
-- Amazon Web Services Regions, or for all database engines. For the full
-- list of DB instance classes, and availability for your engine, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html DB Instance Class>
-- in the /Amazon RDS User Guide./
--
-- Default: The same DBInstanceClass as the original DB instance.
--
-- 'licenseModel', 'restoreDBInstanceFromDBSnapshot_licenseModel' - License model information for the restored DB instance.
--
-- Default: Same as source.
--
-- Valid values: @license-included@ | @bring-your-own-license@ |
-- @general-public-license@
--
-- 'dbParameterGroupName', 'restoreDBInstanceFromDBSnapshot_dbParameterGroupName' - The name of the DB parameter group to associate with this DB instance.
--
-- If you do not specify a value for @DBParameterGroupName@, then the
-- default @DBParameterGroup@ for the specified DB engine is used.
--
-- Constraints:
--
-- -   If supplied, must match the name of an existing DBParameterGroup.
--
-- -   Must be 1 to 255 letters, numbers, or hyphens.
--
-- -   First character must be a letter.
--
-- -   Can\'t end with a hyphen or contain two consecutive hyphens.
--
-- 'availabilityZone', 'restoreDBInstanceFromDBSnapshot_availabilityZone' - The Availability Zone (AZ) where the DB instance will be created.
--
-- Default: A random, system-chosen Availability Zone.
--
-- Constraint: You can\'t specify the @AvailabilityZone@ parameter if the
-- DB instance is a Multi-AZ deployment.
--
-- Example: @us-east-1a@
--
-- 'vpcSecurityGroupIds', 'restoreDBInstanceFromDBSnapshot_vpcSecurityGroupIds' - A list of EC2 VPC security groups to associate with this DB instance.
--
-- Default: The default EC2 VPC security group for the DB subnet group\'s
-- VPC.
--
-- 'multiAZ', 'restoreDBInstanceFromDBSnapshot_multiAZ' - A value that indicates whether the DB instance is a Multi-AZ deployment.
--
-- Constraint: You can\'t specify the @AvailabilityZone@ parameter if the
-- DB instance is a Multi-AZ deployment.
--
-- 'optionGroupName', 'restoreDBInstanceFromDBSnapshot_optionGroupName' - The name of the option group to be used for the restored DB instance.
--
-- Permanent options, such as the TDE option for Oracle Advanced Security
-- TDE, can\'t be removed from an option group, and that option group
-- can\'t be removed from a DB instance once it is associated with a DB
-- instance
--
-- 'copyTagsToSnapshot', 'restoreDBInstanceFromDBSnapshot_copyTagsToSnapshot' - A value that indicates whether to copy all tags from the restored DB
-- instance to snapshots of the DB instance. By default, tags are not
-- copied.
--
-- 'tdeCredentialArn', 'restoreDBInstanceFromDBSnapshot_tdeCredentialArn' - The ARN from the key store with which to associate the instance for TDE
-- encryption.
--
-- 'domainIAMRoleName', 'restoreDBInstanceFromDBSnapshot_domainIAMRoleName' - Specify the name of the IAM role to be used when making API calls to the
-- Directory Service.
--
-- 'tags', 'restoreDBInstanceFromDBSnapshot_tags' - Undocumented member.
--
-- 'port', 'restoreDBInstanceFromDBSnapshot_port' - The port number on which the database accepts connections.
--
-- Default: The same port as the original DB instance
--
-- Constraints: Value must be @1150-65535@
--
-- 'enableIAMDatabaseAuthentication', 'restoreDBInstanceFromDBSnapshot_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 about IAM database authentication, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html IAM Database Authentication for MySQL and PostgreSQL>
-- in the /Amazon RDS User Guide./
--
-- 'useDefaultProcessorFeatures', 'restoreDBInstanceFromDBSnapshot_useDefaultProcessorFeatures' - A value that indicates whether the DB instance class of the DB instance
-- uses its default processor features.
--
-- 'storageType', 'restoreDBInstanceFromDBSnapshot_storageType' - Specifies the storage type to be associated with the DB instance.
--
-- Valid values: @standard | gp2 | io1@
--
-- If you specify @io1@, you must also include a value for the @Iops@
-- parameter.
--
-- Default: @io1@ if the @Iops@ parameter is specified, otherwise @gp2@
--
-- 'enableCloudwatchLogsExports', 'restoreDBInstanceFromDBSnapshot_enableCloudwatchLogsExports' - The list of logs that the restored DB instance 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/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch Publishing Database Logs to Amazon CloudWatch Logs>
-- in the /Amazon RDS User Guide/.
--
-- 'dbName', 'restoreDBInstanceFromDBSnapshot_dbName' - The database name for the restored DB instance.
--
-- This parameter doesn\'t apply to the MySQL, PostgreSQL, or MariaDB
-- engines.
--
-- 'dbInstanceIdentifier', 'restoreDBInstanceFromDBSnapshot_dbInstanceIdentifier' - Name of the DB instance to create from the DB snapshot. This parameter
-- isn\'t case-sensitive.
--
-- Constraints:
--
-- -   Must contain from 1 to 63 numbers, letters, or hyphens
--
-- -   First character must be a letter
--
-- -   Can\'t end with a hyphen or contain two consecutive hyphens
--
-- Example: @my-snapshot-id@
--
-- 'dbSnapshotIdentifier', 'restoreDBInstanceFromDBSnapshot_dbSnapshotIdentifier' - The identifier for the DB snapshot to restore from.
--
-- Constraints:
--
-- -   Must match the identifier of an existing DBSnapshot.
--
-- -   If you are restoring from a shared manual DB snapshot, the
--     @DBSnapshotIdentifier@ must be the ARN of the shared DB snapshot.
newRestoreDBInstanceFromDBSnapshot ::
  -- | 'dbInstanceIdentifier'
  Prelude.Text ->
  -- | 'dbSnapshotIdentifier'
  Prelude.Text ->
  RestoreDBInstanceFromDBSnapshot
newRestoreDBInstanceFromDBSnapshot :: Text -> Text -> RestoreDBInstanceFromDBSnapshot
newRestoreDBInstanceFromDBSnapshot
  Text
pDBInstanceIdentifier_
  Text
pDBSnapshotIdentifier_ =
    RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [ProcessorFeature]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Int
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Text
-> Text
-> RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot'
      { $sel:deletionProtection:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
deletionProtection =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:publiclyAccessible:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
publiclyAccessible = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:autoMinorVersionUpgrade:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:dbSubnetGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbSubnetGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:iops:RestoreDBInstanceFromDBSnapshot' :: Maybe Int
iops = Maybe Int
forall a. Maybe a
Prelude.Nothing,
        $sel:domain:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
domain = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:enableCustomerOwnedIp:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
enableCustomerOwnedIp = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:engine:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
engine = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tdeCredentialPassword:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
tdeCredentialPassword = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:processorFeatures:RestoreDBInstanceFromDBSnapshot' :: Maybe [ProcessorFeature]
processorFeatures = Maybe [ProcessorFeature]
forall a. Maybe a
Prelude.Nothing,
        $sel:dbInstanceClass:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbInstanceClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:licenseModel:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
licenseModel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:dbParameterGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbParameterGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:availabilityZone:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:vpcSecurityGroupIds:RestoreDBInstanceFromDBSnapshot' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:multiAZ:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
multiAZ = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:optionGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
optionGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:copyTagsToSnapshot:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
copyTagsToSnapshot = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:tdeCredentialArn:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
tdeCredentialArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:domainIAMRoleName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
domainIAMRoleName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:RestoreDBInstanceFromDBSnapshot' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
        $sel:port:RestoreDBInstanceFromDBSnapshot' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing,
        $sel:enableIAMDatabaseAuthentication:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
enableIAMDatabaseAuthentication =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:useDefaultProcessorFeatures:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
useDefaultProcessorFeatures =
          Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:storageType:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
storageType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:enableCloudwatchLogsExports:RestoreDBInstanceFromDBSnapshot' :: Maybe [Text]
enableCloudwatchLogsExports =
          Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
        $sel:dbName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:dbInstanceIdentifier:RestoreDBInstanceFromDBSnapshot' :: Text
dbInstanceIdentifier =
          Text
pDBInstanceIdentifier_,
        $sel:dbSnapshotIdentifier:RestoreDBInstanceFromDBSnapshot' :: Text
dbSnapshotIdentifier =
          Text
pDBSnapshotIdentifier_
      }

-- | A value that indicates whether the DB instance has deletion protection
-- enabled. The database can\'t be deleted when deletion protection is
-- enabled. By default, deletion protection is disabled. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_DeleteInstance.html Deleting a DB Instance>.
restoreDBInstanceFromDBSnapshot_deletionProtection :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_deletionProtection :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_deletionProtection = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
deletionProtection :: Maybe Bool
$sel:deletionProtection:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
deletionProtection} -> Maybe Bool
deletionProtection) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:deletionProtection:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
deletionProtection = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)

-- | A value that indicates whether the DB instance is publicly accessible.
--
-- When the DB instance is publicly accessible, its DNS endpoint resolves
-- to the private IP address from within the DB instance\'s VPC, and to the
-- public IP address from outside of the DB instance\'s VPC. Access to the
-- DB instance is ultimately controlled by the security group it uses, and
-- that public access is not permitted if the security group assigned to
-- the DB instance doesn\'t permit it.
--
-- When the DB instance isn\'t publicly accessible, it is an internal DB
-- instance with a DNS name that resolves to a private IP address.
--
-- For more information, see CreateDBInstance.
restoreDBInstanceFromDBSnapshot_publiclyAccessible :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_publiclyAccessible :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_publiclyAccessible = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
publiclyAccessible :: Maybe Bool
$sel:publiclyAccessible:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
publiclyAccessible} -> Maybe Bool
publiclyAccessible) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:publiclyAccessible:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
publiclyAccessible = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)

-- | A value that indicates whether minor version upgrades are applied
-- automatically to the DB instance during the maintenance window.
restoreDBInstanceFromDBSnapshot_autoMinorVersionUpgrade :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_autoMinorVersionUpgrade :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_autoMinorVersionUpgrade = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
autoMinorVersionUpgrade :: Maybe Bool
$sel:autoMinorVersionUpgrade:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
autoMinorVersionUpgrade} -> Maybe Bool
autoMinorVersionUpgrade) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:autoMinorVersionUpgrade:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)

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

-- | Specifies the amount of provisioned IOPS for the DB instance, expressed
-- in I\/O operations per second. If this parameter isn\'t specified, the
-- IOPS value is taken from the backup. If this parameter is set to 0, the
-- new instance is converted to a non-PIOPS instance. The conversion takes
-- additional time, though your DB instance is available for connections
-- before the conversion starts.
--
-- The provisioned IOPS value must follow the requirements for your
-- database engine. For more information, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS Amazon RDS Provisioned IOPS Storage to Improve Performance>
-- in the /Amazon RDS User Guide./
--
-- Constraints: Must be an integer greater than 1000.
restoreDBInstanceFromDBSnapshot_iops :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Int)
restoreDBInstanceFromDBSnapshot_iops :: (Maybe Int -> f (Maybe Int))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_iops = (RestoreDBInstanceFromDBSnapshot -> Maybe Int)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Int -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Int
iops :: Maybe Int
$sel:iops:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Int
iops} -> Maybe Int
iops) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Int
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:iops:RestoreDBInstanceFromDBSnapshot' :: Maybe Int
iops = Maybe Int
a} :: RestoreDBInstanceFromDBSnapshot)

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

-- | A value that indicates whether to enable a customer-owned IP address
-- (CoIP) for an RDS on Outposts DB instance.
--
-- A /CoIP/ provides local or external connectivity to resources in your
-- Outpost subnets through your on-premises network. For some use cases, a
-- CoIP can provide lower latency for connections to the DB instance from
-- outside of its virtual private cloud (VPC) on your local network.
--
-- For more information about RDS on Outposts, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-on-outposts.html Working with Amazon RDS on Amazon Web Services Outposts>
-- in the /Amazon RDS User Guide/.
--
-- For more information about CoIPs, see
-- <https://docs.aws.amazon.com/outposts/latest/userguide/outposts-networking-components.html#ip-addressing Customer-owned IP addresses>
-- in the /Amazon Web Services Outposts User Guide/.
restoreDBInstanceFromDBSnapshot_enableCustomerOwnedIp :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_enableCustomerOwnedIp :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_enableCustomerOwnedIp = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
enableCustomerOwnedIp :: Maybe Bool
$sel:enableCustomerOwnedIp:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
enableCustomerOwnedIp} -> Maybe Bool
enableCustomerOwnedIp) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:enableCustomerOwnedIp:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
enableCustomerOwnedIp = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)

-- | The database engine to use for the new instance.
--
-- Default: The same as source
--
-- Constraint: Must be compatible with the engine of the source. For
-- example, you can restore a MariaDB 10.1 DB instance from a MySQL 5.6
-- snapshot.
--
-- Valid Values:
--
-- -   @mariadb@
--
-- -   @mysql@
--
-- -   @oracle-ee@
--
-- -   @oracle-ee-cdb@
--
-- -   @oracle-se2@
--
-- -   @oracle-se2-cdb@
--
-- -   @postgres@
--
-- -   @sqlserver-ee@
--
-- -   @sqlserver-se@
--
-- -   @sqlserver-ex@
--
-- -   @sqlserver-web@
restoreDBInstanceFromDBSnapshot_engine :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_engine :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_engine = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
engine :: Maybe Text
$sel:engine:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
engine} -> Maybe Text
engine) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:engine:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
engine = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

-- | The password for the given ARN from the key store in order to access the
-- device.
restoreDBInstanceFromDBSnapshot_tdeCredentialPassword :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_tdeCredentialPassword :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_tdeCredentialPassword = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
tdeCredentialPassword :: Maybe Text
$sel:tdeCredentialPassword:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
tdeCredentialPassword} -> Maybe Text
tdeCredentialPassword) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:tdeCredentialPassword:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
tdeCredentialPassword = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

-- | The number of CPU cores and the number of threads per core for the DB
-- instance class of the DB instance.
restoreDBInstanceFromDBSnapshot_processorFeatures :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe [ProcessorFeature])
restoreDBInstanceFromDBSnapshot_processorFeatures :: (Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_processorFeatures = (RestoreDBInstanceFromDBSnapshot -> Maybe [ProcessorFeature])
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe [ProcessorFeature] -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe [ProcessorFeature])
     (Maybe [ProcessorFeature])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe [ProcessorFeature]
processorFeatures :: Maybe [ProcessorFeature]
$sel:processorFeatures:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [ProcessorFeature]
processorFeatures} -> Maybe [ProcessorFeature]
processorFeatures) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe [ProcessorFeature]
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:processorFeatures:RestoreDBInstanceFromDBSnapshot' :: Maybe [ProcessorFeature]
processorFeatures = Maybe [ProcessorFeature]
a} :: RestoreDBInstanceFromDBSnapshot) ((Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
 -> RestoreDBInstanceFromDBSnapshot
 -> f RestoreDBInstanceFromDBSnapshot)
-> ((Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
    -> Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
-> (Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ProcessorFeature]
  [ProcessorFeature]
  [ProcessorFeature]
  [ProcessorFeature]
-> Iso
     (Maybe [ProcessorFeature])
     (Maybe [ProcessorFeature])
     (Maybe [ProcessorFeature])
     (Maybe [ProcessorFeature])
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
  [ProcessorFeature]
  [ProcessorFeature]
  [ProcessorFeature]
  [ProcessorFeature]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The compute and memory capacity of the Amazon RDS DB instance, for
-- example, @db.m4.large@. Not all DB instance classes are available in all
-- Amazon Web Services Regions, or for all database engines. For the full
-- list of DB instance classes, and availability for your engine, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html DB Instance Class>
-- in the /Amazon RDS User Guide./
--
-- Default: The same DBInstanceClass as the original DB instance.
restoreDBInstanceFromDBSnapshot_dbInstanceClass :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_dbInstanceClass :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbInstanceClass = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
dbInstanceClass :: Maybe Text
$sel:dbInstanceClass:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbInstanceClass} -> Maybe Text
dbInstanceClass) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbInstanceClass:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbInstanceClass = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

-- | License model information for the restored DB instance.
--
-- Default: Same as source.
--
-- Valid values: @license-included@ | @bring-your-own-license@ |
-- @general-public-license@
restoreDBInstanceFromDBSnapshot_licenseModel :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_licenseModel :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_licenseModel = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
licenseModel :: Maybe Text
$sel:licenseModel:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
licenseModel} -> Maybe Text
licenseModel) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:licenseModel:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
licenseModel = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

-- | The name of the DB parameter group to associate with this DB instance.
--
-- If you do not specify a value for @DBParameterGroupName@, then the
-- default @DBParameterGroup@ for the specified DB engine is used.
--
-- Constraints:
--
-- -   If supplied, must match the name of an existing DBParameterGroup.
--
-- -   Must be 1 to 255 letters, numbers, or hyphens.
--
-- -   First character must be a letter.
--
-- -   Can\'t end with a hyphen or contain two consecutive hyphens.
restoreDBInstanceFromDBSnapshot_dbParameterGroupName :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_dbParameterGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbParameterGroupName = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
dbParameterGroupName :: Maybe Text
$sel:dbParameterGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbParameterGroupName} -> Maybe Text
dbParameterGroupName) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbParameterGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbParameterGroupName = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

-- | The Availability Zone (AZ) where the DB instance will be created.
--
-- Default: A random, system-chosen Availability Zone.
--
-- Constraint: You can\'t specify the @AvailabilityZone@ parameter if the
-- DB instance is a Multi-AZ deployment.
--
-- Example: @us-east-1a@
restoreDBInstanceFromDBSnapshot_availabilityZone :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_availabilityZone :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_availabilityZone = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:availabilityZone:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
availabilityZone = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

-- | A list of EC2 VPC security groups to associate with this DB instance.
--
-- Default: The default EC2 VPC security group for the DB subnet group\'s
-- VPC.
restoreDBInstanceFromDBSnapshot_vpcSecurityGroupIds :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe [Prelude.Text])
restoreDBInstanceFromDBSnapshot_vpcSecurityGroupIds :: (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_vpcSecurityGroupIds = (RestoreDBInstanceFromDBSnapshot -> Maybe [Text])
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe [Text] -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe [Text]
vpcSecurityGroupIds :: Maybe [Text]
$sel:vpcSecurityGroupIds:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
vpcSecurityGroupIds} -> Maybe [Text]
vpcSecurityGroupIds) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe [Text]
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:vpcSecurityGroupIds:RestoreDBInstanceFromDBSnapshot' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
a} :: RestoreDBInstanceFromDBSnapshot) ((Maybe [Text] -> f (Maybe [Text]))
 -> RestoreDBInstanceFromDBSnapshot
 -> f RestoreDBInstanceFromDBSnapshot)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
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 whether the DB instance is a Multi-AZ deployment.
--
-- Constraint: You can\'t specify the @AvailabilityZone@ parameter if the
-- DB instance is a Multi-AZ deployment.
restoreDBInstanceFromDBSnapshot_multiAZ :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_multiAZ :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_multiAZ = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
multiAZ :: Maybe Bool
$sel:multiAZ:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
multiAZ} -> Maybe Bool
multiAZ) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:multiAZ:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
multiAZ = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)

-- | The name of the option group to be used for the restored DB instance.
--
-- Permanent options, such as the TDE option for Oracle Advanced Security
-- TDE, can\'t be removed from an option group, and that option group
-- can\'t be removed from a DB instance once it is associated with a DB
-- instance
restoreDBInstanceFromDBSnapshot_optionGroupName :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_optionGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_optionGroupName = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
optionGroupName :: Maybe Text
$sel:optionGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
optionGroupName} -> Maybe Text
optionGroupName) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:optionGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
optionGroupName = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

-- | A value that indicates whether to copy all tags from the restored DB
-- instance to snapshots of the DB instance. By default, tags are not
-- copied.
restoreDBInstanceFromDBSnapshot_copyTagsToSnapshot :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_copyTagsToSnapshot :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_copyTagsToSnapshot = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
copyTagsToSnapshot :: Maybe Bool
$sel:copyTagsToSnapshot:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
copyTagsToSnapshot} -> Maybe Bool
copyTagsToSnapshot) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:copyTagsToSnapshot:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
copyTagsToSnapshot = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)

-- | The ARN from the key store with which to associate the instance for TDE
-- encryption.
restoreDBInstanceFromDBSnapshot_tdeCredentialArn :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_tdeCredentialArn :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_tdeCredentialArn = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
tdeCredentialArn :: Maybe Text
$sel:tdeCredentialArn:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
tdeCredentialArn} -> Maybe Text
tdeCredentialArn) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:tdeCredentialArn:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
tdeCredentialArn = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

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

-- | Undocumented member.
restoreDBInstanceFromDBSnapshot_tags :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe [Tag])
restoreDBInstanceFromDBSnapshot_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_tags = (RestoreDBInstanceFromDBSnapshot -> Maybe [Tag])
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe [Tag] -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe [Tag]
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:tags:RestoreDBInstanceFromDBSnapshot' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: RestoreDBInstanceFromDBSnapshot) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> RestoreDBInstanceFromDBSnapshot
 -> f RestoreDBInstanceFromDBSnapshot)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
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 database accepts connections.
--
-- Default: The same port as the original DB instance
--
-- Constraints: Value must be @1150-65535@
restoreDBInstanceFromDBSnapshot_port :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Int)
restoreDBInstanceFromDBSnapshot_port :: (Maybe Int -> f (Maybe Int))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_port = (RestoreDBInstanceFromDBSnapshot -> Maybe Int)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Int -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Int
port :: Maybe Int
$sel:port:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Int
port} -> Maybe Int
port) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Int
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:port:RestoreDBInstanceFromDBSnapshot' :: Maybe Int
port = Maybe Int
a} :: RestoreDBInstanceFromDBSnapshot)

-- | 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 about IAM database authentication, see
-- <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html IAM Database Authentication for MySQL and PostgreSQL>
-- in the /Amazon RDS User Guide./
restoreDBInstanceFromDBSnapshot_enableIAMDatabaseAuthentication :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_enableIAMDatabaseAuthentication :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_enableIAMDatabaseAuthentication = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
enableIAMDatabaseAuthentication :: Maybe Bool
$sel:enableIAMDatabaseAuthentication:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
enableIAMDatabaseAuthentication} -> Maybe Bool
enableIAMDatabaseAuthentication) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:enableIAMDatabaseAuthentication:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
enableIAMDatabaseAuthentication = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)

-- | A value that indicates whether the DB instance class of the DB instance
-- uses its default processor features.
restoreDBInstanceFromDBSnapshot_useDefaultProcessorFeatures :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_useDefaultProcessorFeatures :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_useDefaultProcessorFeatures = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
useDefaultProcessorFeatures :: Maybe Bool
$sel:useDefaultProcessorFeatures:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
useDefaultProcessorFeatures} -> Maybe Bool
useDefaultProcessorFeatures) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:useDefaultProcessorFeatures:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
useDefaultProcessorFeatures = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)

-- | Specifies the storage type to be associated with the DB instance.
--
-- Valid values: @standard | gp2 | io1@
--
-- If you specify @io1@, you must also include a value for the @Iops@
-- parameter.
--
-- Default: @io1@ if the @Iops@ parameter is specified, otherwise @gp2@
restoreDBInstanceFromDBSnapshot_storageType :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_storageType :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_storageType = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
storageType :: Maybe Text
$sel:storageType:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
storageType} -> Maybe Text
storageType) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:storageType:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
storageType = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

-- | The list of logs that the restored DB instance 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/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch Publishing Database Logs to Amazon CloudWatch Logs>
-- in the /Amazon RDS User Guide/.
restoreDBInstanceFromDBSnapshot_enableCloudwatchLogsExports :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe [Prelude.Text])
restoreDBInstanceFromDBSnapshot_enableCloudwatchLogsExports :: (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_enableCloudwatchLogsExports = (RestoreDBInstanceFromDBSnapshot -> Maybe [Text])
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe [Text] -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe [Text]
enableCloudwatchLogsExports :: Maybe [Text]
$sel:enableCloudwatchLogsExports:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
enableCloudwatchLogsExports} -> Maybe [Text]
enableCloudwatchLogsExports) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe [Text]
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:enableCloudwatchLogsExports:RestoreDBInstanceFromDBSnapshot' :: Maybe [Text]
enableCloudwatchLogsExports = Maybe [Text]
a} :: RestoreDBInstanceFromDBSnapshot) ((Maybe [Text] -> f (Maybe [Text]))
 -> RestoreDBInstanceFromDBSnapshot
 -> f RestoreDBInstanceFromDBSnapshot)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
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 instance.
--
-- This parameter doesn\'t apply to the MySQL, PostgreSQL, or MariaDB
-- engines.
restoreDBInstanceFromDBSnapshot_dbName :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_dbName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbName = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
dbName :: Maybe Text
$sel:dbName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbName} -> Maybe Text
dbName) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbName = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)

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

-- | The identifier for the DB snapshot to restore from.
--
-- Constraints:
--
-- -   Must match the identifier of an existing DBSnapshot.
--
-- -   If you are restoring from a shared manual DB snapshot, the
--     @DBSnapshotIdentifier@ must be the ARN of the shared DB snapshot.
restoreDBInstanceFromDBSnapshot_dbSnapshotIdentifier :: Lens.Lens' RestoreDBInstanceFromDBSnapshot Prelude.Text
restoreDBInstanceFromDBSnapshot_dbSnapshotIdentifier :: (Text -> f Text)
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbSnapshotIdentifier = (RestoreDBInstanceFromDBSnapshot -> Text)
-> (RestoreDBInstanceFromDBSnapshot
    -> Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
     RestoreDBInstanceFromDBSnapshot
     RestoreDBInstanceFromDBSnapshot
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Text
dbSnapshotIdentifier :: Text
$sel:dbSnapshotIdentifier:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Text
dbSnapshotIdentifier} -> Text
dbSnapshotIdentifier) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbSnapshotIdentifier:RestoreDBInstanceFromDBSnapshot' :: Text
dbSnapshotIdentifier = Text
a} :: RestoreDBInstanceFromDBSnapshot)

instance
  Core.AWSRequest
    RestoreDBInstanceFromDBSnapshot
  where
  type
    AWSResponse RestoreDBInstanceFromDBSnapshot =
      RestoreDBInstanceFromDBSnapshotResponse
  request :: RestoreDBInstanceFromDBSnapshot
-> Request RestoreDBInstanceFromDBSnapshot
request = Service
-> RestoreDBInstanceFromDBSnapshot
-> Request RestoreDBInstanceFromDBSnapshot
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy RestoreDBInstanceFromDBSnapshot
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse RestoreDBInstanceFromDBSnapshot)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse RestoreDBInstanceFromDBSnapshot))
-> Logger
-> Service
-> Proxy RestoreDBInstanceFromDBSnapshot
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse RestoreDBInstanceFromDBSnapshot)))
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
"RestoreDBInstanceFromDBSnapshotResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe DBInstance -> Int -> RestoreDBInstanceFromDBSnapshotResponse
RestoreDBInstanceFromDBSnapshotResponse'
            (Maybe DBInstance
 -> Int -> RestoreDBInstanceFromDBSnapshotResponse)
-> Either String (Maybe DBInstance)
-> Either String (Int -> RestoreDBInstanceFromDBSnapshotResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DBInstance)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBInstance")
            Either String (Int -> RestoreDBInstanceFromDBSnapshotResponse)
-> Either String Int
-> Either String RestoreDBInstanceFromDBSnapshotResponse
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
    RestoreDBInstanceFromDBSnapshot

instance
  Prelude.NFData
    RestoreDBInstanceFromDBSnapshot

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

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

instance Core.ToQuery RestoreDBInstanceFromDBSnapshot where
  toQuery :: RestoreDBInstanceFromDBSnapshot -> QueryString
toQuery RestoreDBInstanceFromDBSnapshot' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [ProcessorFeature]
Maybe [Tag]
Maybe Text
Text
dbSnapshotIdentifier :: Text
dbInstanceIdentifier :: Text
dbName :: Maybe Text
enableCloudwatchLogsExports :: Maybe [Text]
storageType :: Maybe Text
useDefaultProcessorFeatures :: Maybe Bool
enableIAMDatabaseAuthentication :: Maybe Bool
port :: Maybe Int
tags :: Maybe [Tag]
domainIAMRoleName :: Maybe Text
tdeCredentialArn :: Maybe Text
copyTagsToSnapshot :: Maybe Bool
optionGroupName :: Maybe Text
multiAZ :: Maybe Bool
vpcSecurityGroupIds :: Maybe [Text]
availabilityZone :: Maybe Text
dbParameterGroupName :: Maybe Text
licenseModel :: Maybe Text
dbInstanceClass :: Maybe Text
processorFeatures :: Maybe [ProcessorFeature]
tdeCredentialPassword :: Maybe Text
engine :: Maybe Text
enableCustomerOwnedIp :: Maybe Bool
domain :: Maybe Text
iops :: Maybe Int
dbSubnetGroupName :: Maybe Text
autoMinorVersionUpgrade :: Maybe Bool
publiclyAccessible :: Maybe Bool
deletionProtection :: Maybe Bool
$sel:dbSnapshotIdentifier:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Text
$sel:dbInstanceIdentifier:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Text
$sel:dbName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:enableCloudwatchLogsExports:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
$sel:storageType:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:useDefaultProcessorFeatures:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:enableIAMDatabaseAuthentication:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:port:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Int
$sel:tags:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Tag]
$sel:domainIAMRoleName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:tdeCredentialArn:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:copyTagsToSnapshot:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:optionGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:multiAZ:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:vpcSecurityGroupIds:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
$sel:availabilityZone:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:dbParameterGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:licenseModel:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:dbInstanceClass:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:processorFeatures:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [ProcessorFeature]
$sel:tdeCredentialPassword:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:engine:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:enableCustomerOwnedIp:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:domain:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:iops:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Int
$sel:dbSubnetGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:autoMinorVersionUpgrade:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:publiclyAccessible:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:deletionProtection:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"RestoreDBInstanceFromDBSnapshot" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
        ByteString
"DeletionProtection" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
deletionProtection,
        ByteString
"PubliclyAccessible" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
publiclyAccessible,
        ByteString
"AutoMinorVersionUpgrade"
          ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
autoMinorVersionUpgrade,
        ByteString
"DBSubnetGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbSubnetGroupName,
        ByteString
"Iops" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
iops,
        ByteString
"Domain" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
domain,
        ByteString
"EnableCustomerOwnedIp"
          ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
enableCustomerOwnedIp,
        ByteString
"Engine" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
engine,
        ByteString
"TdeCredentialPassword"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
tdeCredentialPassword,
        ByteString
"ProcessorFeatures"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            ( ByteString -> [ProcessorFeature] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"ProcessorFeature"
                ([ProcessorFeature] -> QueryString)
-> Maybe [ProcessorFeature] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ProcessorFeature]
processorFeatures
            ),
        ByteString
"DBInstanceClass" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbInstanceClass,
        ByteString
"LicenseModel" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
licenseModel,
        ByteString
"DBParameterGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbParameterGroupName,
        ByteString
"AvailabilityZone" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
availabilityZone,
        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
"MultiAZ" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
multiAZ,
        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
"TdeCredentialArn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
tdeCredentialArn,
        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
"UseDefaultProcessorFeatures"
          ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
useDefaultProcessorFeatures,
        ByteString
"StorageType" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
storageType,
        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
"DBName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbName,
        ByteString
"DBInstanceIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbInstanceIdentifier,
        ByteString
"DBSnapshotIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbSnapshotIdentifier
      ]

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

-- |
-- Create a value of 'RestoreDBInstanceFromDBSnapshotResponse' 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:
--
-- 'dbInstance', 'restoreDBInstanceFromDBSnapshotResponse_dbInstance' - Undocumented member.
--
-- 'httpStatus', 'restoreDBInstanceFromDBSnapshotResponse_httpStatus' - The response's http status code.
newRestoreDBInstanceFromDBSnapshotResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  RestoreDBInstanceFromDBSnapshotResponse
newRestoreDBInstanceFromDBSnapshotResponse :: Int -> RestoreDBInstanceFromDBSnapshotResponse
newRestoreDBInstanceFromDBSnapshotResponse
  Int
pHttpStatus_ =
    RestoreDBInstanceFromDBSnapshotResponse' :: Maybe DBInstance -> Int -> RestoreDBInstanceFromDBSnapshotResponse
RestoreDBInstanceFromDBSnapshotResponse'
      { $sel:dbInstance:RestoreDBInstanceFromDBSnapshotResponse' :: Maybe DBInstance
dbInstance =
          Maybe DBInstance
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:RestoreDBInstanceFromDBSnapshotResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Undocumented member.
restoreDBInstanceFromDBSnapshotResponse_dbInstance :: Lens.Lens' RestoreDBInstanceFromDBSnapshotResponse (Prelude.Maybe DBInstance)
restoreDBInstanceFromDBSnapshotResponse_dbInstance :: (Maybe DBInstance -> f (Maybe DBInstance))
-> RestoreDBInstanceFromDBSnapshotResponse
-> f RestoreDBInstanceFromDBSnapshotResponse
restoreDBInstanceFromDBSnapshotResponse_dbInstance = (RestoreDBInstanceFromDBSnapshotResponse -> Maybe DBInstance)
-> (RestoreDBInstanceFromDBSnapshotResponse
    -> Maybe DBInstance -> RestoreDBInstanceFromDBSnapshotResponse)
-> Lens
     RestoreDBInstanceFromDBSnapshotResponse
     RestoreDBInstanceFromDBSnapshotResponse
     (Maybe DBInstance)
     (Maybe DBInstance)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshotResponse' {Maybe DBInstance
dbInstance :: Maybe DBInstance
$sel:dbInstance:RestoreDBInstanceFromDBSnapshotResponse' :: RestoreDBInstanceFromDBSnapshotResponse -> Maybe DBInstance
dbInstance} -> Maybe DBInstance
dbInstance) (\s :: RestoreDBInstanceFromDBSnapshotResponse
s@RestoreDBInstanceFromDBSnapshotResponse' {} Maybe DBInstance
a -> RestoreDBInstanceFromDBSnapshotResponse
s {$sel:dbInstance:RestoreDBInstanceFromDBSnapshotResponse' :: Maybe DBInstance
dbInstance = Maybe DBInstance
a} :: RestoreDBInstanceFromDBSnapshotResponse)

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

instance
  Prelude.NFData
    RestoreDBInstanceFromDBSnapshotResponse