CmdID

CmdID / aws / aws redshift

aws redshift modify-cluster-maintenance

Modifies the maintenance settings of a cluster. AWS CLI reference

1 example 6 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To modify cluster maintenance

The following modify-cluster-maintenance example defers the maintenance of the specified cluster by 30 days.

aws redshift modify-cluster-maintenance --cluster-identifier mycluster --defer-maintenance --defer-maintenance-duration 30Identify
--cluster-identifierA unique identifier for the cluster.
--defer-maintenanceA boolean indicating whether to enable the deferred maintenance window.
--defer-maintenance-durationAn integer indicating the duration of the maintenance window in days.
Its output, shortened
{
    "Cluster": {
        "ClusterIdentifier": "mycluster",
        "NodeType": "dc2.large",
        "ClusterStatus": "available",
        "ClusterAvailabilityStatus": "Available",
        "MasterUsername": "adminuser",
        "DBName": "dev",
        "Endpoint": {
            "Address": "mycluster.cmeaswqeuae.us-west-2.redshift.amazonaws.com",
            "Port": 5439
        },
        "ClusterCreateTime": "2019-12-05T18:44:36.991Z",
        "AutomatedSnapshotRetentionPeriod": 3,
        "ManualSnapshotRetentionPeriod": -1,
        "ClusterSecurityGroups": [],
        "VpcSecurityGroups": [
            {
                "VpcSecurityGroupId": "sh-a1a123ab",
                "Status": "active"
            }
        ],
        "ClusterParameterGroups": [
            {
                "ParameterGroupName": "default.redshift-1.0",
                "ParameterApplyStatus": "in-sync"
            }
        ],
        "ClusterSubnetGroupName": "default",
        "VpcId": "vpc-b1ael7t9",
… 33 more lines

For more information, see Cluster Maintenance in the Amazon Redshift Cluster Management Guide.

Options

6 in the AWS CLI reference
--cluster-identifierA unique identifier for the cluster.
--defer-maintenance-durationAn integer indicating the duration of the maintenance window in days.
--defer-maintenance-end-timeA timestamp indicating end time for the deferred maintenance window.
--defer-maintenance-identifierA unique identifier for the deferred maintenance window.
--defer-maintenance-start-timeA timestamp indicating the start time for the deferred maintenance window.
--defer-maintenanceA boolean indicating whether to enable the deferred maintenance window.