Show / Hide Table of Contents

Enum ResourceAction

(experimental) The Amazon Redshift operation.

Namespace: Amazon.CDK.AWS.Redshift.Alpha
Assembly: Amazon.CDK.AWS.Redshift.Alpha.dll
Syntax (csharp)
public enum ResourceAction
Syntax (vb)
Public Enum ResourceAction
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
// Example automatically generated from non-compiling source. May contain errors.
             using Amazon.CDK.AWS.EC2;
             using Amazon.CDK.AWS.Redshift.Alpha;

             IVpc vpc;


             // Pause the cluster
             // Pause the cluster
             new Cluster(this, "PausedCluster", new ClusterProps {
                 MasterUser = new Login {
                     MasterUsername = "admin"
                 },
                 Vpc = vpc,
                 ResourceAction = ResourceAction.PAUSE
             });

             // Resume the cluster
             // Resume the cluster
             new Cluster(this, "ResumedCluster", new ClusterProps {
                 MasterUser = new Login {
                     MasterUsername = "admin"
                 },
                 Vpc = vpc,
                 ResourceAction = ResourceAction.RESUME
             });

             // Failover the cluster
             // Failover the cluster
             new Cluster(this, "FailOverCluster", new ClusterProps {
                 MasterUser = new Login {
                     MasterUsername = "admin"
                 },
                 // 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
             });

Synopsis

Fields

FAILOVER_PRIMARY_COMPUTE

(experimental) Failing over to the other availability zone.

PAUSE_CLUSTER

(experimental) Pause the cluster.

RESUME_CLUSTER

(experimental) Resume the cluster.

Fields

Name Description
FAILOVER_PRIMARY_COMPUTE

(experimental) Failing over to the other availability zone.

PAUSE_CLUSTER

(experimental) Pause the cluster.

RESUME_CLUSTER

(experimental) Resume the cluster.

Back to top Generated by DocFX