Enum ResourceAction
- All Implemented Interfaces:
Serializable
,Comparable<ResourceAction>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:25:08.131Z")
@Stability(Experimental)
public enum ResourceAction
extends Enum<ResourceAction>
(experimental) The Amazon Redshift operation.
Example:
// Example automatically generated from non-compiling source. May contain errors. import software.amazon.awscdk.services.ec2.*; import software.amazon.awscdk.services.redshift.alpha.ResourceAction; IVpc vpc; // Pause the cluster // Pause the cluster Cluster.Builder.create(this, "PausedCluster") .masterUser(Login.builder() .masterUsername("admin") .build()) .vpc(vpc) .resourceAction(ResourceAction.PAUSE) .build(); // Resume the cluster // Resume the cluster Cluster.Builder.create(this, "ResumedCluster") .masterUser(Login.builder() .masterUsername("admin") .build()) .vpc(vpc) .resourceAction(ResourceAction.RESUME) .build(); // Failover the cluster // Failover the cluster Cluster.Builder.create(this, "FailOverCluster") .masterUser(Login.builder() .masterUsername("admin") .build()) // VPC must have 3 AZs for the cluster which executes failover action .vpc(vpc) // Must be a multi-AZ cluster to failover .multiAz(true) .resourceAction(ResourceAction.FAILOVER_PRIMARY_COMPUTE) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription(experimental) Failing over to the other availability zone.(experimental) Pause the cluster.(experimental) Resume the cluster. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceAction
Returns the enum constant of this type with the specified name.static ResourceAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PAUSE_CLUSTER
(experimental) Pause the cluster. -
RESUME_CLUSTER
(experimental) Resume the cluster. -
FAILOVER_PRIMARY_COMPUTE
(experimental) Failing over to the other availability zone.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-