Interface ServerlessV2ClusterInstanceProps
- All Superinterfaces:
ClusterInstanceOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ServerlessV2ClusterInstanceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-27T16:51:04.211Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forServerlessV2ClusterInstanceProps
static final class
An implementation forServerlessV2ClusterInstanceProps
-
Method Summary
Methods inherited from interface software.amazon.awscdk.services.rds.ClusterInstanceOptions
getAllowMajorVersionUpgrade, getAutoMinorVersionUpgrade, getCaCertificate, getEnablePerformanceInsights, getInstanceIdentifier, getIsFromLegacyInstanceProps, getParameterGroup, getParameters, getPerformanceInsightEncryptionKey, getPerformanceInsightRetention, getPreferredMaintenanceWindow, getPubliclyAccessible
Methods 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 workfload on the instance
Default: false
-
builder
-