update_maintenance_window_target
async
¶
update_maintenance_window_target(
window_id: MaintenanceWindowId,
window_target_id: MaintenanceWindowTargetId,
*,
config_overrides: Optional[AsyncSSMClientConfig] = 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/async_ssm.py
11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 | |