interface ClusterInstanceBindOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.RDS.ClusterInstanceBindOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#ClusterInstanceBindOptions |
![]() | software.amazon.awscdk.services.rds.ClusterInstanceBindOptions |
![]() | aws_cdk.aws_rds.ClusterInstanceBindOptions |
![]() | aws-cdk-lib » aws_rds » ClusterInstanceBindOptions |
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 * as cdk from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_rds as rds } from 'aws-cdk-lib';
declare const role: iam.Role;
declare const subnetGroup: rds.SubnetGroup;
const clusterInstanceBindOptions: rds.ClusterInstanceBindOptions = {
monitoringInterval: cdk.Duration.minutes(30),
monitoringRole: role,
promotionTier: 123,
removalPolicy: cdk.RemovalPolicy.DESTROY,
subnetGroup: subnetGroup,
};
Properties
Name | Type | Description |
---|---|---|
monitoring | Duration | The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances. |
monitoring | IRole | Role that will be used to manage DB instances monitoring. |
promotion | number | The promotion tier of the cluster instance. |
removal | Removal | The removal policy on the cluster. |
subnet | ISubnet | Existing subnet group for the cluster. |
monitoringInterval?
Type:
Duration
(optional, default: no enhanced monitoring)
The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.
monitoringRole?
Type:
IRole
(optional, default: A role is automatically created for you)
Role that will be used to manage DB instances monitoring.
promotionTier?
Type:
number
(optional, default: 2)
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
removalPolicy?
Type:
Removal
(optional, default: RemovalPolicy.DESTROY (cluster snapshot can restore))
The removal policy on the cluster.
subnetGroup?
Type:
ISubnet
(optional, default: cluster subnet group is used)
Existing subnet group for the cluster.
This is only needed when using the isFromLegacyInstanceProps