Show / Hide Table of Contents

Class ClusterInstanceBindOptions

Options for binding the instance to the cluster.

Inheritance
object
ClusterInstanceBindOptions
Implements
IClusterInstanceBindOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ClusterInstanceBindOptions : IClusterInstanceBindOptions
Syntax (vb)
Public Class ClusterInstanceBindOptions Implements IClusterInstanceBindOptions
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;
            using Amazon.CDK.AWS.IAM;
            using Amazon.CDK.AWS.RDS;

            Role role;
            SubnetGroup subnetGroup;

            var clusterInstanceBindOptions = new ClusterInstanceBindOptions {
                MonitoringInterval = Duration.Minutes(30),
                MonitoringRole = role,
                PromotionTier = 123,
                RemovalPolicy = RemovalPolicy.DESTROY,
                SubnetGroup = subnetGroup
            };

Synopsis

Constructors

ClusterInstanceBindOptions()

Options for binding the instance to the cluster.

Properties

MonitoringInterval

The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.

MonitoringRole

Role that will be used to manage DB instances monitoring.

PromotionTier

The promotion tier of the cluster instance.

RemovalPolicy

The removal policy on the cluster.

SubnetGroup

Existing subnet group for the cluster.

Constructors

ClusterInstanceBindOptions()

Options for binding the instance to the cluster.

public ClusterInstanceBindOptions()
Remarks

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK;
            using Amazon.CDK.AWS.IAM;
            using Amazon.CDK.AWS.RDS;

            Role role;
            SubnetGroup subnetGroup;

            var clusterInstanceBindOptions = new ClusterInstanceBindOptions {
                MonitoringInterval = Duration.Minutes(30),
                MonitoringRole = role,
                PromotionTier = 123,
                RemovalPolicy = RemovalPolicy.DESTROY,
                SubnetGroup = subnetGroup
            };

Properties

MonitoringInterval

The interval, in seconds, between points when Amazon RDS collects enhanced monitoring metrics for the DB instances.

public Duration? MonitoringInterval { get; set; }
Property Value

Duration

Remarks

Default: no enhanced monitoring

MonitoringRole

Role that will be used to manage DB instances monitoring.

public IRole? MonitoringRole { get; set; }
Property Value

IRole

Remarks

Default: - A role is automatically created for you

PromotionTier

The promotion tier of the cluster instance.

public double? PromotionTier { get; set; }
Property Value

double?

Remarks

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

RemovalPolicy

The removal policy on the cluster.

public RemovalPolicy? RemovalPolicy { get; set; }
Property Value

RemovalPolicy?

Remarks

Default: - RemovalPolicy.DESTROY (cluster snapshot can restore)

SubnetGroup

Existing subnet group for the cluster.

public ISubnetGroup? SubnetGroup { get; set; }
Property Value

ISubnetGroup

Remarks

This is only needed when using the isFromLegacyInstanceProps

Default: - cluster subnet group is used

Implements

IClusterInstanceBindOptions
Back to top Generated by DocFX