@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.495Z") @Stability(value=Stable) public enum InstanceUpdateBehaviour extends Enum<InstanceUpdateBehaviour>
Example:
Vpc vpc;
DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database")
.engine(DatabaseClusterEngine.auroraMysql(AuroraMysqlClusterEngineProps.builder().version(AuroraMysqlEngineVersion.VER_3_01_0).build()))
.instances(2)
.instanceProps(InstanceProps.builder()
.instanceType(InstanceType.of(InstanceClass.BURSTABLE3, InstanceSize.SMALL))
.vpc(vpc)
.build())
.instanceUpdateBehaviour(InstanceUpdateBehaviour.ROLLING)
.build();
| Enum Constant and 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.
|
| Modifier and Type | Method and Description |
|---|---|
static InstanceUpdateBehaviour |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InstanceUpdateBehaviour[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final InstanceUpdateBehaviour BULK
This results in a faster update procedure. During the update, however, all instances might be unavailable at the same time and thus a downtime might occur.
@Stability(value=Stable) public static final InstanceUpdateBehaviour ROLLING
This results in at most one instance being unavailable during the update. If your cluster consists of more than 1 instance, the downtime periods are limited to the time a primary switch needs.
public static InstanceUpdateBehaviour[] values()
for (InstanceUpdateBehaviour c : InstanceUpdateBehaviour.values()) System.out.println(c);
public static InstanceUpdateBehaviour valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.