@Stability(value=Stable) public static final class ServerlessClusterFromSnapshotProps.Builder extends Object implements software.amazon.jsii.Builder<ServerlessClusterFromSnapshotProps>
ServerlessClusterFromSnapshotProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder engine(IClusterEngine engine)
ServerlessClusterFromSnapshotProps.getEngine()engine - What kind of database to start. This parameter is required.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder snapshotIdentifier(String snapshotIdentifier)
ServerlessClusterFromSnapshotProps.getSnapshotIdentifier()snapshotIdentifier - The identifier for the DB instance snapshot or DB cluster snapshot to restore from. This parameter is required.
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.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder backupRetention(Duration backupRetention)
ServerlessClusterFromSnapshotProps.getBackupRetention()backupRetention - The number of days during which automatic DB snapshots are retained.
Automatic backup retention cannot be disabled on serverless clusters.
Must be a value from 1 day to 35 days.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder clusterIdentifier(String clusterIdentifier)
ServerlessClusterFromSnapshotProps.getClusterIdentifier()clusterIdentifier - An optional identifier for the cluster.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder copyTagsToSnapshot(Boolean copyTagsToSnapshot)
ServerlessClusterFromSnapshotProps.getCopyTagsToSnapshot()copyTagsToSnapshot - Whether to copy tags to the snapshot when a snapshot is created.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder credentials(SnapshotCredentials credentials)
ServerlessClusterFromSnapshotProps.getCredentials()credentials - Master user 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.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder defaultDatabaseName(String defaultDatabaseName)
ServerlessClusterFromSnapshotProps.getDefaultDatabaseName()defaultDatabaseName - Name of a database which is automatically created inside the cluster.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder deletionProtection(Boolean deletionProtection)
ServerlessClusterFromSnapshotProps.getDeletionProtection()deletionProtection - Indicates whether the DB cluster should have deletion protection enabled.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder enableDataApi(Boolean enableDataApi)
ServerlessClusterFromSnapshotProps.getEnableDataApi()enableDataApi - Whether to enable the Data API.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder parameterGroup(IParameterGroup parameterGroup)
ServerlessClusterFromSnapshotProps.getParameterGroup()parameterGroup - Additional parameters to pass to the database engine.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder removalPolicy(RemovalPolicy removalPolicy)
ServerlessClusterFromSnapshotProps.getRemovalPolicy()removalPolicy - The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder scaling(ServerlessScalingOptions scaling)
ServerlessClusterFromSnapshotProps.getScaling()scaling - Scaling configuration of an Aurora Serverless database cluster.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
ServerlessClusterFromSnapshotProps.getSecurityGroups()securityGroups - Security group.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder subnetGroup(ISubnetGroup subnetGroup)
ServerlessClusterFromSnapshotProps.getSubnetGroup()subnetGroup - Existing subnet group for the cluster.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder vpc(IVpc vpc)
ServerlessClusterFromSnapshotProps.getVpc()vpc - The VPC that this Aurora Serverless cluster has been created in.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps.Builder vpcSubnets(SubnetSelection vpcSubnets)
ServerlessClusterFromSnapshotProps.getVpcSubnets()vpcSubnets - Where to place the instances within the VPC.
If provided, the vpc property must also be specified.this@Stability(value=Stable) public ServerlessClusterFromSnapshotProps build()
build in interface software.amazon.jsii.Builder<ServerlessClusterFromSnapshotProps>ServerlessClusterFromSnapshotPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.