@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:13.552Z") @Stability(value=Experimental) 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()
(experimental) The number of days during which automatic DB snapshots are retained.
|
default String |
getClusterIdentifier()
(experimental) An optional identifier for the cluster.
|
default SnapshotCredentials |
getCredentials()
(experimental) Master user credentials.
|
default String |
getDefaultDatabaseName()
(experimental) Name of a database which is automatically created inside the cluster.
|
default Boolean |
getDeletionProtection()
(experimental) Indicates whether the DB cluster should have deletion protection enabled.
|
default Boolean |
getEnableDataApi()
(experimental) Whether to enable the Data API.
|
IClusterEngine |
getEngine()
(experimental) What kind of database to start.
|
default IParameterGroup |
getParameterGroup()
(experimental) Additional parameters to pass to the database engine.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
|
default ServerlessScalingOptions |
getScaling()
(experimental) Scaling configuration of an Aurora Serverless database cluster.
|
default List<ISecurityGroup> |
getSecurityGroups()
(experimental) Security group.
|
String |
getSnapshotIdentifier()
(experimental) The identifier for the DB instance snapshot or DB cluster snapshot to restore from.
|
default ISubnetGroup |
getSubnetGroup()
(experimental) Existing subnet group for the cluster.
|
IVpc |
getVpc()
(experimental) The VPC that this Aurora Serverless cluster has been created in.
|
default SubnetSelection |
getVpcSubnets()
(experimental) Where to place the instances within the VPC.
|
@Stability(value=Experimental) @NotNull IClusterEngine getEngine()
@Stability(value=Experimental) @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=Experimental) @NotNull IVpc getVpc()
@Stability(value=Experimental) @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=Experimental) @Nullable default String getClusterIdentifier()
Default: - A name is automatically generated.
@Stability(value=Experimental) @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=Experimental) @Nullable default String getDefaultDatabaseName()
Default: - Database is not created in cluster.
@Stability(value=Experimental) @Nullable default Boolean getDeletionProtection()
Default: - true if removalPolicy is RETAIN, false otherwise
@Stability(value=Experimental) @Nullable default Boolean getEnableDataApi()
Default: false
https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html@Stability(value=Experimental) @Nullable default IParameterGroup getParameterGroup()
Default: - no parameter group.
@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
Default: - RemovalPolicy.SNAPSHOT (remove the cluster and instances, but retain a snapshot of the data)
@Stability(value=Experimental) @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=Experimental) @Nullable default List<ISecurityGroup> getSecurityGroups()
Default: - a new security group is created.
@Stability(value=Experimental) @Nullable default ISubnetGroup getSubnetGroup()
Default: - a new subnet group will be created.
@Stability(value=Experimental) @Nullable default SubnetSelection getVpcSubnets()
Default: - the VPC default strategy if not specified.
@Stability(value=Experimental) static ServerlessClusterFromSnapshotProps.Builder builder()
Copyright © 2022. All rights reserved.