Use ModifyCluster
with an AWS SDK or CLI
The following code examples show how to use ModifyCluster
.
Action examples are code excerpts from larger programs and must be run in context. You can see this action in context in the following code example:
- AWS CLI
-
Associate a Security Group with a ClusterThis example shows how to associate a cluster security group with the specified cluster.Command:
aws redshift modify-cluster --cluster-identifier mycluster --cluster-security-groups mysecuritygroup
Modify the Maintenance Window for a ClusterThis shows how to change the weekly preferred maintenance window for a cluster to be the minimum four hour window starting Sundays at 11:15 PM, and ending Mondays at 3:15 AM.Command:
aws redshift modify-cluster --cluster-identifier mycluster --preferred-maintenance-window Sun:23:15-Mon:03:15
Change the Master Password for the ClusterThis example shows how to change the master password for a cluster.Command:
aws redshift modify-cluster --cluster-identifier mycluster --master-user-password A1b2c3d4
-
For API details, see ModifyCluster
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.