update_maintenance_window_target
¶
update_maintenance_window_target(
window_id: MaintenanceWindowId,
window_target_id: MaintenanceWindowTargetId,
*,
config_overrides: Optional[SSMClientConfig] = None,
targets: Optional[Targets] = None,
owner_information: Optional[OwnerInformation] = None,
name: Optional[MaintenanceWindowName] = None,
description: Optional[MaintenanceWindowDescription] = None,
replace: Optional[Boolean] = None,
) -> UpdateMaintenanceWindowTargetResult
Modifies the target of an existing maintenance window. You can change the following:
-
Name
-
Description
-
Owner
-
IDs for an ID target
-
Tags for a Tag target
-
From any supported tag type to another. The three supported tag types are ID target, Tag target, and resource group. For more information, see Target.
If a parameter is null, then the corresponding field isn't modified.
Parameters:
-
window_id(MaintenanceWindowId) –The maintenance window ID with which to modify the target.
-
window_target_id(MaintenanceWindowTargetId) –The target ID to modify.
-
targets(Optional[Targets], default:None) –The targets to add or replace.
-
owner_information(Optional[OwnerInformation], default:None) –User-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.
-
name(Optional[MaintenanceWindowName], default:None) –A name for the update.
-
description(Optional[MaintenanceWindowDescription], default:None) –An optional description for the update.
-
replace(Optional[Boolean], default:None) –If
True, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API request. Optional fields that aren't specified are set to null.
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/ssm.py
11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 | |