Interface ClusterInstanceBindOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ClusterInstanceBindOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:46.961Z")
@Stability(Stable)
public interface ClusterInstanceBindOptions
extends software.amazon.jsii.JsiiSerializable
Options for binding the instance to the cluster.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.iam.*;
import software.amazon.awscdk.services.rds.*;
IRoleRef roleRef;
SubnetGroup subnetGroup;
ClusterInstanceBindOptions clusterInstanceBindOptions = ClusterInstanceBindOptions.builder()
.monitoringInterval(Duration.minutes(30))
.monitoringRole(roleRef)
.promotionTier(123)
.removalPolicy(RemovalPolicy.DESTROY)
.subnetGroup(subnetGroup)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forClusterInstanceBindOptionsstatic final classAn implementation forClusterInstanceBindOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default DurationThe interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.default IRoleRefRole that will be used to manage DB instances monitoring.default NumberThe promotion tier of the cluster instance.default RemovalPolicyThe removal policy on the cluster.default ISubnetGroupExisting subnet group for the cluster.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMonitoringInterval
The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.Default: no enhanced monitoring
-
getMonitoringRole
Role that will be used to manage DB instances monitoring.Default: - A role is automatically created for you
-
getPromotionTier
The promotion tier of the cluster instance.This matters more for serverlessV2 instances. If a serverless instance is in tier 0-1 then it will scale with the writer.
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
-
getRemovalPolicy
The removal policy on the cluster.Default: - RemovalPolicy.DESTROY (cluster snapshot can restore)
-
getSubnetGroup
Existing subnet group for the cluster.This is only needed when using the isFromLegacyInstanceProps
Default: - cluster subnet group is used
-
builder
- Returns:
- a
ClusterInstanceBindOptions.BuilderofClusterInstanceBindOptions
-