Interface ServerlessV2ClusterInstanceProps
- All Superinterfaces:
ClusterInstanceOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServerlessV2ClusterInstanceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:16.606Z")
@Stability(Stable)
public interface ServerlessV2ClusterInstanceProps
extends software.amazon.jsii.JsiiSerializable, ClusterInstanceOptions
Options for creating a serverless v2 instance.
Example:
Vpc vpc;
DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
.engine(DatabaseClusterEngine.auroraMysql(AuroraMysqlClusterEngineProps.builder().version(AuroraMysqlEngineVersion.VER_3_01_0).build()))
.writer(ClusterInstance.provisioned("writer", ProvisionedClusterInstanceProps.builder()
.caCertificate(CaCertificate.RDS_CA_RSA2048_G1)
.build()))
.readers(List.of(ClusterInstance.serverlessV2("reader", ServerlessV2ClusterInstanceProps.builder()
.caCertificate(CaCertificate.of("custom-ca"))
.build())))
.vpc(vpc)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forServerlessV2ClusterInstancePropsstatic final classAn implementation forServerlessV2ClusterInstanceProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.rds.ClusterInstanceOptions
getAllowMajorVersionUpgrade, getApplyImmediately, getAutoMinorVersionUpgrade, getAvailabilityZone, getCaCertificate, getEnablePerformanceInsights, getInstanceIdentifier, getIsFromLegacyInstanceProps, getParameterGroup, getParameters, getPerformanceInsightEncryptionKey, getPerformanceInsightRetention, getPreferredMaintenanceWindow, getPubliclyAccessibleMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getScaleWithWriter
Only applicable to reader instances.If this is true then the instance will be placed in promotion tier 1, otherwise it will be placed in promotion tier 2.
For serverless v2 instances this means:
- true: The serverless v2 reader will scale to match the writer instance (provisioned or serverless)
- false: The serverless v2 reader will scale with the read workload on the instance
Default: false
-
builder
-