Interface IProvisionedClusterInstanceProps
Options for creating a provisioned instance.
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IProvisionedClusterInstanceProps : IClusterInstanceOptions
Syntax (vb)
Public Interface IProvisionedClusterInstanceProps Inherits IClusterInstanceOptions
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
var cluster = new DatabaseCluster(this, "Database", new DatabaseClusterProps {
Engine = DatabaseClusterEngine.AuroraMysql(new AuroraMysqlClusterEngineProps { Version = AuroraMysqlEngineVersion.VER_3_01_0 }),
Writer = ClusterInstance.Provisioned("Instance", new ProvisionedClusterInstanceProps {
InstanceType = InstanceType.Of(InstanceClass.BURSTABLE3, InstanceSize.SMALL)
}),
Readers = new [] { ClusterInstance.Provisioned("reader") },
InstanceUpdateBehaviour = InstanceUpdateBehaviour.ROLLING, // Optional - defaults to rds.InstanceUpdateBehaviour.BULK
Vpc = vpc
});
Synopsis
Properties
| InstanceType | The cluster instance type. |
| PromotionTier | The promotion tier of the cluster instance. |
Properties
InstanceType
The cluster instance type.
InstanceType? InstanceType { get; }
Property Value
Remarks
Default: db.t3.medium
PromotionTier
The promotion tier of the cluster instance.
double? PromotionTier { get; }
Property Value
Remarks
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