@Stability(value=Stable) public static final class ServerlessClusterFromSnapshot.Builder extends Object implements software.amazon.jsii.Builder<ServerlessClusterFromSnapshot>
ServerlessClusterFromSnapshot.| Modifier and Type | Method and Description |
|---|---|
ServerlessClusterFromSnapshot.Builder |
backupRetention(Duration backupRetention)
The number of days during which automatic DB snapshots are retained.
|
ServerlessClusterFromSnapshot |
build() |
ServerlessClusterFromSnapshot.Builder |
clusterIdentifier(String clusterIdentifier)
An optional identifier for the cluster.
|
ServerlessClusterFromSnapshot.Builder |
copyTagsToSnapshot(Boolean copyTagsToSnapshot)
Whether to copy tags to the snapshot when a snapshot is created.
|
static ServerlessClusterFromSnapshot.Builder |
create(software.constructs.Construct scope,
String id) |
ServerlessClusterFromSnapshot.Builder |
credentials(SnapshotCredentials credentials)
Master user credentials.
|
ServerlessClusterFromSnapshot.Builder |
defaultDatabaseName(String defaultDatabaseName)
Name of a database which is automatically created inside the cluster.
|
ServerlessClusterFromSnapshot.Builder |
deletionProtection(Boolean deletionProtection)
Indicates whether the DB cluster should have deletion protection enabled.
|
ServerlessClusterFromSnapshot.Builder |
enableDataApi(Boolean enableDataApi)
Whether to enable the Data API.
|
ServerlessClusterFromSnapshot.Builder |
engine(IClusterEngine engine)
What kind of database to start.
|
ServerlessClusterFromSnapshot.Builder |
parameterGroup(IParameterGroup parameterGroup)
Additional parameters to pass to the database engine.
|
ServerlessClusterFromSnapshot.Builder |
removalPolicy(RemovalPolicy removalPolicy)
The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
|
ServerlessClusterFromSnapshot.Builder |
scaling(ServerlessScalingOptions scaling)
Scaling configuration of an Aurora Serverless database cluster.
|
ServerlessClusterFromSnapshot.Builder |
securityGroups(List<? extends ISecurityGroup> securityGroups)
Security group.
|
ServerlessClusterFromSnapshot.Builder |
snapshotIdentifier(String snapshotIdentifier)
The identifier for the DB instance snapshot or DB cluster snapshot to restore from.
|
ServerlessClusterFromSnapshot.Builder |
subnetGroup(ISubnetGroup subnetGroup)
Existing subnet group for the cluster.
|
ServerlessClusterFromSnapshot.Builder |
vpc(IVpc vpc)
The VPC that this Aurora Serverless cluster has been created in.
|
ServerlessClusterFromSnapshot.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
Where to place the instances within the VPC.
|
@Stability(value=Stable) public static ServerlessClusterFromSnapshot.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ServerlessClusterFromSnapshot.Builder.@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder engine(IClusterEngine engine)
engine - What kind of database to start. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder snapshotIdentifier(String snapshotIdentifier)
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.
snapshotIdentifier - The identifier for the DB instance snapshot or DB cluster snapshot to restore from. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder backupRetention(Duration backupRetention)
Automatic backup retention cannot be disabled on serverless clusters. Must be a value from 1 day to 35 days.
Default: Duration.days(1)
backupRetention - The number of days during which automatic DB snapshots are retained. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder clusterIdentifier(String clusterIdentifier)
Default: - A name is automatically generated.
clusterIdentifier - An optional identifier for the cluster. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot)
Default: - true
copyTagsToSnapshot - Whether to copy tags to the snapshot when a snapshot is created. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder credentials(SnapshotCredentials credentials)
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.
credentials - Master user credentials. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder defaultDatabaseName(String defaultDatabaseName)
Default: - Database is not created in cluster.
defaultDatabaseName - Name of a database which is automatically created inside the cluster. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder deletionProtection(Boolean deletionProtection)
Default: - true if removalPolicy is RETAIN, false otherwise
deletionProtection - Indicates whether the DB cluster should have deletion protection enabled. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder enableDataApi(Boolean enableDataApi)
Default: false
enableDataApi - Whether to enable the Data API. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder parameterGroup(IParameterGroup parameterGroup)
Default: - no parameter group.
parameterGroup - Additional parameters to pass to the database engine. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder removalPolicy(RemovalPolicy removalPolicy)
Default: - RemovalPolicy.SNAPSHOT (remove the cluster and instances, but retain a snapshot of the data)
removalPolicy - The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder scaling(ServerlessScalingOptions scaling)
Default: - Serverless cluster is automatically paused after 5 minutes of being idle. minimum capacity: 2 ACU maximum capacity: 16 ACU
scaling - Scaling configuration of an Aurora Serverless database cluster. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
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.
securityGroups - Security group. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder subnetGroup(ISubnetGroup subnetGroup)
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
subnetGroup - Existing subnet group for the cluster. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder vpc(IVpc vpc)
Default: - the default VPC in the account and region will be used
vpc - The VPC that this Aurora Serverless cluster has been created in. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot.Builder vpcSubnets(SubnetSelection vpcSubnets)
If provided, the vpc property must also be specified.
Default: - the VPC default strategy if not specified.
vpcSubnets - Where to place the instances within the VPC. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshot build()
build in interface software.amazon.jsii.Builder<ServerlessClusterFromSnapshot>Copyright © 2022. All rights reserved.