CmdID

CmdID / aws / aws ssm

aws ssm update-maintenance-window-target

Modifies the target of an existing maintenance window. AWS CLI reference

1 example 7 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 update a maintenance window target

The following update-maintenance-window-target example updates only the name of a maintenance window target.

aws ssm update-maintenance-window-target --window-id "mw-0c5ed765acEXAMPLE" --window-target-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" --name "NewName" --no-replaceIdentify
--window-idThe maintenance window ID with which to modify the target.
--window-target-idThe target ID to modify.
--nameA name for the update.
--no-replaceIf True, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API request.
Its output
{
    "Description": "",
    "OwnerInformation": "",
    "WindowTargetId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "WindowId": "mw-0c5ed765acEXAMPLE",
    "Targets": [
        {
            "Values": [
                "i-1234567890EXAMPLE"
            ],
            "Key": "InstanceIds"
        }
    ],
    "Name": "NewName"
}

For more information, see Update a Maintenance Window (AWS CLI) in the AWS Systems Manager User Guide.

Options

7 in the AWS CLI reference
--descriptionAn optional description for the update.
--nameA name for the update.
--owner-informationUser-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.
--replaceIf True, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API request.
--targetsThe targets to add or replace.
--window-idThe maintenance window ID with which to modify the target.
--window-target-idThe target ID to modify.