@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.506Z") @Stability(value=Stable) public interface ServerlessClusterFromSnapshotProps extends software.amazon.jsii.JsiiSerializable
Example:
Vpc vpc;
ServerlessClusterFromSnapshot.Builder.create(this, "Cluster")
.engine(DatabaseClusterEngine.AURORA_MYSQL)
.vpc(vpc)
.snapshotIdentifier("mySnapshot")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServerlessClusterFromSnapshotProps.Builder
A builder for
ServerlessClusterFromSnapshotProps |
static class |
ServerlessClusterFromSnapshotProps.Jsii$Proxy
An implementation for
ServerlessClusterFromSnapshotProps |
| Modifier and Type | Method and Description |
|---|---|
static ServerlessClusterFromSnapshotProps.Builder |
builder() |
default Duration |
getBackupRetention()
The number of days during which automatic DB snapshots are retained.
|
default String |
getClusterIdentifier()
An optional identifier for the cluster.
|
default Boolean |
getCopyTagsToSnapshot()
Whether to copy tags to the snapshot when a snapshot is created.
|
default SnapshotCredentials |
getCredentials()
Master user credentials.
|
default String |
getDefaultDatabaseName()
Name of a database which is automatically created inside the cluster.
|
default Boolean |
getDeletionProtection()
Indicates whether the DB cluster should have deletion protection enabled.
|
default Boolean |
getEnableDataApi()
Whether to enable the Data API.
|
IClusterEngine |
getEngine()
What kind of database to start.
|
default IParameterGroup |
getParameterGroup()
Additional parameters to pass to the database engine.
|
default RemovalPolicy |
getRemovalPolicy()
The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
|
default ServerlessScalingOptions |
getScaling()
Scaling configuration of an Aurora Serverless database cluster.
|
default List<ISecurityGroup> |
getSecurityGroups()
Security group.
|
String |
getSnapshotIdentifier()
The identifier for the DB instance snapshot or DB cluster snapshot to restore from.
|
default ISubnetGroup |
getSubnetGroup()
Existing subnet group for the cluster.
|
default IVpc |
getVpc()
The VPC that this Aurora Serverless cluster has been created in.
|
default SubnetSelection |
getVpcSubnets()
Where to place the instances within the VPC.
|
@Stability(value=Stable) @NotNull IClusterEngine getEngine()
@Stability(value=Stable) @NotNull String getSnapshotIdentifier()
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 instance snapshot.
@Stability(value=Stable) @Nullable default Duration getBackupRetention()
Automatic backup retention cannot be disabled on serverless clusters. Must be a value from 1 day to 35 days.
Default: Duration.days(1)
@Stability(value=Stable) @Nullable default String getClusterIdentifier()
Default: - A name is automatically generated.
@Stability(value=Stable) @Nullable default Boolean getCopyTagsToSnapshot()
Default: - true
@Stability(value=Stable) @Nullable default SnapshotCredentials getCredentials()
Note - It is not possible to change the master username for a snapshot; however, it is possible to provide (or generate) a new password.
Default: - The existing username and password from the snapshot will be used.
@Stability(value=Stable) @Nullable default String getDefaultDatabaseName()
Default: - Database is not created in cluster.
@Stability(value=Stable) @Nullable default Boolean getDeletionProtection()
Default: - true if removalPolicy is RETAIN, false otherwise
@Stability(value=Stable) @Nullable default Boolean getEnableDataApi()
Default: false
@Stability(value=Stable) @Nullable default IParameterGroup getParameterGroup()
Default: - no parameter group.
@Stability(value=Stable) @Nullable default RemovalPolicy getRemovalPolicy()
Default: - RemovalPolicy.SNAPSHOT (remove the cluster and instances, but retain a snapshot of the data)
@Stability(value=Stable) @Nullable default ServerlessScalingOptions getScaling()
Default: - Serverless cluster is automatically paused after 5 minutes of being idle. minimum capacity: 2 ACU maximum capacity: 16 ACU
@Stability(value=Stable) @Nullable default List<ISecurityGroup> getSecurityGroups()
Default: - a new security group is created if `vpc` was provided. If the `vpc` property was not provided, no VPC security groups will be associated with the DB cluster.
@Stability(value=Stable) @Nullable default ISubnetGroup getSubnetGroup()
Default: - a new subnet group is created if `vpc` was provided. If the `vpc` property was not provided, no subnet group will be associated with the DB cluster
@Stability(value=Stable) @Nullable default IVpc getVpc()
Default: - the default VPC in the account and region will be used
@Stability(value=Stable) @Nullable default SubnetSelection getVpcSubnets()
If provided, the vpc property must also be specified.
Default: - the VPC default strategy if not specified.
@Stability(value=Stable) static ServerlessClusterFromSnapshotProps.Builder builder()
Copyright © 2022. All rights reserved.