deregister_target_from_maintenance_window
¶
deregister_target_from_maintenance_window(
window_id: MaintenanceWindowId,
window_target_id: MaintenanceWindowTargetId,
*,
config_overrides: Optional[SSMClientConfig] = None,
safe: Optional[Boolean] = None,
) -> DeregisterTargetFromMaintenanceWindowResult
Removes a target from a maintenance window.
Parameters:
-
window_id(MaintenanceWindowId) –The ID of the maintenance window the target should be removed from.
-
window_target_id(MaintenanceWindowTargetId) –The ID of the target definition to remove.
-
safe(Optional[Boolean], default:None) –The system checks if the target is being referenced by a task. If the target is being referenced, the system returns an error and doesn't deregister the target from the maintenance window.
Raises:
-
DoesNotExistException–Error returned when the ID specified for a resource, such as a maintenance window or patch baseline, doesn't exist.
For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the Amazon Web Services General Reference.
-
InternalServerError–An error occurred on the server side.
-
TargetInUseException–You specified the
Safeoption for the DeregisterTargetFromMaintenanceWindow operation, but the target is still referenced in a task. -
UnknownServiceError–The service returned an error code this client does not model.