Enum InstanceUpdateBehaviour
The orchestration of updates of multiple instances.
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum InstanceUpdateBehaviour
Syntax (vb)
Public Enum InstanceUpdateBehaviour
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
Fields
BULK | In a bulk update, all instances of the cluster are updated at the same time. |
ROLLING | In a rolling update, one instance after another is updated. |
Fields
Name | Description |
---|---|
BULK | In a bulk update, all instances of the cluster are updated at the same time. |
ROLLING | In a rolling update, one instance after another is updated. |