CmdID

CmdID / aws / aws redshift

aws redshift modify-scheduled-action

Modifies a scheduled action. AWS CLI reference

1 example 8 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 scheduled action

The following modify-scheduled-action example adds a description to the specified existing scheduled action.

aws redshift modify-scheduled-action --scheduled-action-name myscheduledaction --scheduled-action-description "My scheduled action"Identify
--scheduled-action-nameThe name of the scheduled action to modify.
--scheduled-action-descriptionA modified description of the scheduled action.
Its output
{
    "ScheduledActionName": "myscheduledaction",
    "TargetAction": {
        "ResizeCluster": {
            "ClusterIdentifier": "mycluster",
            "NumberOfNodes": 2,
            "Classic": false
        }
    },
    "Schedule": "at(2019-12-25T00:00:00)",
    "IamRole": "arn:aws:iam::123456789012:role/myRedshiftRole",
    "ScheduledActionDescription": "My scheduled action",
    "State": "ACTIVE",
    "NextInvocations": [
        "2019-12-25T00:00:00Z"
    ]
}

For more information, see Scheduling a resize in the Amazon Redshift Management Guide.

Options

8 in the AWS CLI reference
--enableA modified enable flag of the scheduled action.
--end-timeA modified end time of the scheduled action.
--iam-roleA different IAM role to assume to run the target action.
--scheduleA modified schedule in either at( ) or cron( ) format.
--scheduled-action-descriptionA modified description of the scheduled action.
--scheduled-action-nameThe name of the scheduled action to modify.
--start-timeA modified start time of the scheduled action.
--target-actionA modified JSON format of the scheduled action.