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
Examples
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
--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.