Interface ProvisionedClusterInstanceProps
- All Superinterfaces:
ClusterInstanceOptions
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ProvisionedClusterInstanceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-12T12:32:09.917Z")
@Stability(Stable)
public interface ProvisionedClusterInstanceProps
extends software.amazon.jsii.JsiiSerializable, ClusterInstanceOptions
Options for creating a provisioned 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() .instanceType(InstanceType.of(InstanceClass.R6G, InstanceSize.XLARGE4)) .build())) .serverlessV2MinCapacity(6.5) .serverlessV2MaxCapacity(64) .readers(List.of(ClusterInstance.serverlessV2("reader1", ServerlessV2ClusterInstanceProps.builder().scaleWithWriter(true).build()), ClusterInstance.serverlessV2("reader2"))) .vpc(vpc) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forProvisionedClusterInstanceProps
static final class
An implementation forProvisionedClusterInstanceProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default InstanceType
The cluster instance type.default Number
The promotion tier of the cluster instance.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
-
getInstanceType
The cluster instance type.Default: db.t3.medium
-
getPromotionTier
The promotion tier of the cluster instance.Can be between 0-15
For provisioned instances this just determines the failover priority. If multiple instances have the same priority then one will be picked at random
Default: 2
-
builder
-