CmdID

CmdID / aws / aws ssm

aws ssm deregister-target-from-maintenance-window

Removes a target from a maintenance window. AWS CLI reference

1 example 3 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 remove a target from a maintenance window

The following deregister-target-from-maintenance-window example removes the specified target from the specified maintenance window.

aws ssm deregister-target-from-maintenance-window --window-id "mw-ab12cd34efEXAMPLE" --window-target-id "1a2b3c4d-1a2b-1a2b-1a2b-1a2b3c4d-1a2"Identify
--window-idThe ID of the maintenance window the target should be removed from.
--window-target-idThe ID of the target definition to remove.
Its output
{
    "WindowId":"mw-ab12cd34efEXAMPLE",
    "WindowTargetId":"1a2b3c4d-1a2b-1a2b-1a2b-1a2b3c4d-1a2"
}

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

Options

3 in the AWS CLI reference
--safeThe system checks if the target is being referenced by a task.
--window-idThe ID of the maintenance window the target should be removed from.
--window-target-idThe ID of the target definition to remove.