ResourceAction
- class aws_cdk.aws_redshift_alpha.ResourceAction(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
(experimental) The Amazon Redshift operation.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
# Example automatically generated from non-compiling source. May contain errors. import aws_cdk.aws_ec2 as ec2 from aws_cdk.aws_redshift_alpha import ResourceAction # vpc: ec2.IVpc # Pause the cluster Cluster(self, "PausedCluster", master_user=Login( master_username="admin" ), vpc=vpc, resource_action=ResourceAction.PAUSE ) # Resume the cluster Cluster(self, "ResumedCluster", master_user=Login( master_username="admin" ), vpc=vpc, resource_action=ResourceAction.RESUME ) # Failover the cluster Cluster(self, "FailOverCluster", master_user=Login( master_username="admin" ), # VPC must have 3 AZs for the cluster which executes failover action vpc=vpc, # Must be a multi-AZ cluster to failover multi_az=True, resource_action=ResourceAction.FAILOVER_PRIMARY_COMPUTE )
Attributes
- FAILOVER_PRIMARY_COMPUTE
(experimental) Failing over to the other availability zone.
- See:
https://docs.aws.amazon.com/redshift/latest/mgmt/test-cluster-multi-az.html
- Stability:
experimental
- PAUSE_CLUSTER
(experimental) Pause the cluster.
- Stability:
experimental
- RESUME_CLUSTER
(experimental) Resume the cluster.
- Stability:
experimental