Enum ResourceAction

java.lang.Object
java.lang.Enum<ResourceAction>
software.amazon.awscdk.services.redshift.alpha.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();
 
  • Enum Constant Details

  • Method Details

    • values

      public static ResourceAction[] 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

      public static ResourceAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null