Copyright | (c) 2013-2017 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) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a new DB cluster from a DB snapshot or DB cluster snapshot.
If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default configuration and default security group.
If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point with the same configuration as the original source DB cluster, except that the new DB cluster is created with the default security group.
For more information on Amazon Aurora, see Aurora on Amazon RDS in the Amazon RDS User Guide.
- restoreDBClusterFromSnapshot :: Text -> Text -> Text -> RestoreDBClusterFromSnapshot
- data RestoreDBClusterFromSnapshot
- rdbcfsEngineVersion :: Lens' RestoreDBClusterFromSnapshot (Maybe Text)
- rdbcfsDBSubnetGroupName :: Lens' RestoreDBClusterFromSnapshot (Maybe Text)
- rdbcfsAvailabilityZones :: Lens' RestoreDBClusterFromSnapshot [Text]
- rdbcfsKMSKeyId :: Lens' RestoreDBClusterFromSnapshot (Maybe Text)
- rdbcfsVPCSecurityGroupIds :: Lens' RestoreDBClusterFromSnapshot [Text]
- rdbcfsDatabaseName :: Lens' RestoreDBClusterFromSnapshot (Maybe Text)
- rdbcfsOptionGroupName :: Lens' RestoreDBClusterFromSnapshot (Maybe Text)
- rdbcfsTags :: Lens' RestoreDBClusterFromSnapshot [Tag]
- rdbcfsPort :: Lens' RestoreDBClusterFromSnapshot (Maybe Int)
- rdbcfsEnableIAMDatabaseAuthentication :: Lens' RestoreDBClusterFromSnapshot (Maybe Bool)
- rdbcfsDBClusterIdentifier :: Lens' RestoreDBClusterFromSnapshot Text
- rdbcfsSnapshotIdentifier :: Lens' RestoreDBClusterFromSnapshot Text
- rdbcfsEngine :: Lens' RestoreDBClusterFromSnapshot Text
- restoreDBClusterFromSnapshotResponse :: Int -> RestoreDBClusterFromSnapshotResponse
- data RestoreDBClusterFromSnapshotResponse
- rdbcfsrsDBCluster :: Lens' RestoreDBClusterFromSnapshotResponse (Maybe DBCluster)
- rdbcfsrsResponseStatus :: Lens' RestoreDBClusterFromSnapshotResponse Int
Creating a Request
restoreDBClusterFromSnapshot Source #
:: Text | |
-> Text | |
-> Text | |
-> RestoreDBClusterFromSnapshot |
Creates a value of RestoreDBClusterFromSnapshot
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rdbcfsEngineVersion
- The version of the database engine to use for the new DB cluster.rdbcfsDBSubnetGroupName
- The name of the DB subnet group to use for the new DB cluster. Constraints: If supplied, must match the name of an existing DBSubnetGroup. Example:mySubnetgroup
rdbcfsAvailabilityZones
- Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.rdbcfsKMSKeyId
- The KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster snapshot. The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same AWS account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key. If you do not specify a value for theKmsKeyId
parameter, then the following will occur: * If the DB snapshot or DB cluster snapshot inSnapshotIdentifier
is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster snapshot. * If the DB snapshot or DB cluster snapshot inSnapshotIdentifier
is not encrypted, then the restored DB cluster is not encrypted.rdbcfsVPCSecurityGroupIds
- A list of VPC security groups that the new DB cluster will belong to.rdbcfsDatabaseName
- The database name for the restored DB cluster.rdbcfsOptionGroupName
- The name of the option group to use for the restored DB cluster.rdbcfsTags
- The tags to be assigned to the restored DB cluster.rdbcfsPort
- The port number on which the new DB cluster accepts connections. Constraints: Value must be1150-65535
Default: The same port as the original DB cluster.rdbcfsEnableIAMDatabaseAuthentication
- A Boolean value that is true to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false. Default:false
rdbcfsDBClusterIdentifier
- The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't case-sensitive. Constraints: * Must contain from 1 to 255 letters, numbers, or hyphens * First character must be a letter * Cannot end with a hyphen or contain two consecutive hyphens Example:my-snapshot-id
rdbcfsSnapshotIdentifier
- The identifier for the DB snapshot or DB cluster snapshot to restore from. You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot. Constraints: * Must match the identifier of an existing Snapshot.rdbcfsEngine
- The database engine to use for the new DB cluster. Default: The same as source Constraint: Must be compatible with the engine of the source
data RestoreDBClusterFromSnapshot Source #
See: restoreDBClusterFromSnapshot
smart constructor.
Request Lenses
rdbcfsEngineVersion :: Lens' RestoreDBClusterFromSnapshot (Maybe Text) Source #
The version of the database engine to use for the new DB cluster.
rdbcfsDBSubnetGroupName :: Lens' RestoreDBClusterFromSnapshot (Maybe Text) Source #
The name of the DB subnet group to use for the new DB cluster. Constraints: If supplied, must match the name of an existing DBSubnetGroup. Example: mySubnetgroup
rdbcfsAvailabilityZones :: Lens' RestoreDBClusterFromSnapshot [Text] Source #
Provides the list of EC2 Availability Zones that instances in the restored DB cluster can be created in.
rdbcfsKMSKeyId :: Lens' RestoreDBClusterFromSnapshot (Maybe Text) Source #
The KMS key identifier to use when restoring an encrypted DB cluster from a DB snapshot or DB cluster snapshot. The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. If you are restoring a DB cluster with the same AWS account that owns the KMS encryption key used to encrypt the new DB cluster, then you can use the KMS key alias instead of the ARN for the KMS encryption key. If you do not specify a value for the KmsKeyId
parameter, then the following will occur: * If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is encrypted, then the restored DB cluster is encrypted using the KMS key that was used to encrypt the DB snapshot or DB cluster snapshot. * If the DB snapshot or DB cluster snapshot in SnapshotIdentifier
is not encrypted, then the restored DB cluster is not encrypted.
rdbcfsVPCSecurityGroupIds :: Lens' RestoreDBClusterFromSnapshot [Text] Source #
A list of VPC security groups that the new DB cluster will belong to.
rdbcfsDatabaseName :: Lens' RestoreDBClusterFromSnapshot (Maybe Text) Source #
The database name for the restored DB cluster.
rdbcfsOptionGroupName :: Lens' RestoreDBClusterFromSnapshot (Maybe Text) Source #
The name of the option group to use for the restored DB cluster.
rdbcfsTags :: Lens' RestoreDBClusterFromSnapshot [Tag] Source #
The tags to be assigned to the restored DB cluster.
rdbcfsPort :: Lens' RestoreDBClusterFromSnapshot (Maybe Int) Source #
The port number on which the new DB cluster accepts connections. Constraints: Value must be 1150-65535
Default: The same port as the original DB cluster.
rdbcfsEnableIAMDatabaseAuthentication :: Lens' RestoreDBClusterFromSnapshot (Maybe Bool) Source #
A Boolean value that is true to enable mapping of AWS Identity and Access Management (IAM) accounts to database accounts, and otherwise false. Default: false
rdbcfsDBClusterIdentifier :: Lens' RestoreDBClusterFromSnapshot Text Source #
The name of the DB cluster to create from the DB snapshot or DB cluster snapshot. This parameter isn't case-sensitive. Constraints: * Must contain from 1 to 255 letters, numbers, or hyphens * First character must be a letter * Cannot end with a hyphen or contain two consecutive hyphens Example: my-snapshot-id
rdbcfsSnapshotIdentifier :: Lens' RestoreDBClusterFromSnapshot Text Source #
The identifier for the DB snapshot or DB cluster snapshot to restore from. You can use either the name or the Amazon Resource Name (ARN) to specify a DB cluster snapshot. However, you can use only the ARN to specify a DB snapshot. Constraints: * Must match the identifier of an existing Snapshot.
rdbcfsEngine :: Lens' RestoreDBClusterFromSnapshot Text Source #
The database engine to use for the new DB cluster. Default: The same as source Constraint: Must be compatible with the engine of the source
Destructuring the Response
restoreDBClusterFromSnapshotResponse Source #
Creates a value of RestoreDBClusterFromSnapshotResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
rdbcfsrsDBCluster
- Undocumented member.rdbcfsrsResponseStatus
- -- | The response status code.
data RestoreDBClusterFromSnapshotResponse Source #
See: restoreDBClusterFromSnapshotResponse
smart constructor.
Response Lenses
rdbcfsrsDBCluster :: Lens' RestoreDBClusterFromSnapshotResponse (Maybe DBCluster) Source #
Undocumented member.
rdbcfsrsResponseStatus :: Lens' RestoreDBClusterFromSnapshotResponse Int Source #
- - | The response status code.