@Stability(value=Experimental) public static final class ServerlessCluster.Builder extends Object implements software.amazon.jsii.Builder<ServerlessCluster>
ServerlessCluster.| Modifier and Type | Method and Description |
|---|---|
ServerlessCluster.Builder |
backupRetention(Duration backupRetention)
(experimental) The number of days during which automatic DB snapshots are retained.
|
ServerlessCluster |
build() |
ServerlessCluster.Builder |
clusterIdentifier(String clusterIdentifier)
(experimental) An optional identifier for the cluster.
|
static ServerlessCluster.Builder |
create(software.constructs.Construct scope,
String id) |
ServerlessCluster.Builder |
credentials(Credentials credentials)
(experimental) Credentials for the administrative user.
|
ServerlessCluster.Builder |
defaultDatabaseName(String defaultDatabaseName)
(experimental) Name of a database which is automatically created inside the cluster.
|
ServerlessCluster.Builder |
deletionProtection(Boolean deletionProtection)
(experimental) Indicates whether the DB cluster should have deletion protection enabled.
|
ServerlessCluster.Builder |
enableDataApi(Boolean enableDataApi)
(experimental) Whether to enable the Data API.
|
ServerlessCluster.Builder |
engine(IClusterEngine engine)
(experimental) What kind of database to start.
|
ServerlessCluster.Builder |
parameterGroup(IParameterGroup parameterGroup)
(experimental) Additional parameters to pass to the database engine.
|
ServerlessCluster.Builder |
removalPolicy(RemovalPolicy removalPolicy)
(experimental) The removal policy to apply when the cluster and its instances are removed from the stack or replaced during an update.
|
ServerlessCluster.Builder |
scaling(ServerlessScalingOptions scaling)
(experimental) Scaling configuration of an Aurora Serverless database cluster.
|
ServerlessCluster.Builder |
securityGroups(List<? extends ISecurityGroup> securityGroups)
(experimental) Security group.
|
ServerlessCluster.Builder |
storageEncryptionKey(IKey storageEncryptionKey)
(experimental) The KMS key for storage encryption.
|
ServerlessCluster.Builder |
subnetGroup(ISubnetGroup subnetGroup)
(experimental) Existing subnet group for the cluster.
|
ServerlessCluster.Builder |
vpc(IVpc vpc)
(experimental) The VPC that this Aurora Serverless cluster has been created in.
|
ServerlessCluster.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
(experimental) Where to place the instances within the VPC.
|
@Stability(value=Experimental) public static ServerlessCluster.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ServerlessCluster.Builder.@Stability(value=Experimental) public ServerlessCluster.Builder engine(IClusterEngine engine)
engine - What kind of database to start. This parameter is required.this@Stability(value=Experimental) public ServerlessCluster.Builder vpc(IVpc vpc)
vpc - The VPC that this Aurora Serverless cluster has been created in. This parameter is required.this@Stability(value=Experimental) public ServerlessCluster.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=Experimental) public ServerlessCluster.Builder clusterIdentifier(String clusterIdentifier)
Default: - A name is automatically generated.
clusterIdentifier - An optional identifier for the cluster. This parameter is required.this@Stability(value=Experimental) public ServerlessCluster.Builder credentials(Credentials credentials)
Default: - A username of 'admin' and SecretsManager-generated password
credentials - Credentials for the administrative user. This parameter is required.this@Stability(value=Experimental) public ServerlessCluster.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=Experimental) public ServerlessCluster.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=Experimental) public ServerlessCluster.Builder enableDataApi(Boolean enableDataApi)
Default: false
enableDataApi - Whether to enable the Data API. This parameter is required.thishttps://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html@Stability(value=Experimental) public ServerlessCluster.Builder parameterGroup(IParameterGroup parameterGroup)
Default: - no parameter group.
parameterGroup - Additional parameters to pass to the database engine. This parameter is required.this@Stability(value=Experimental) public ServerlessCluster.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=Experimental) public ServerlessCluster.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=Experimental) public ServerlessCluster.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
Default: - a new security group is created.
securityGroups - Security group. This parameter is required.this@Stability(value=Experimental) public ServerlessCluster.Builder storageEncryptionKey(IKey storageEncryptionKey)
Default: - the default master key will be used for storage encryption
storageEncryptionKey - The KMS key for storage encryption. This parameter is required.this@Stability(value=Experimental) public ServerlessCluster.Builder subnetGroup(ISubnetGroup subnetGroup)
Default: - a new subnet group will be created.
subnetGroup - Existing subnet group for the cluster. This parameter is required.this@Stability(value=Experimental) public ServerlessCluster.Builder vpcSubnets(SubnetSelection vpcSubnets)
Default: - the VPC default strategy if not specified.
vpcSubnets - Where to place the instances within the VPC. This parameter is required.this@Stability(value=Experimental) public ServerlessCluster build()
build in interface software.amazon.jsii.Builder<ServerlessCluster>Copyright © 2021. All rights reserved.