Modifies the target of an existing maintenance window¶
Description¶
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.
Usage¶
ssm_update_maintenance_window_target(WindowId, WindowTargetId, Targets,
OwnerInformation, Name, Description, Replace)
Arguments¶
-
WindowId[required] The maintenance window ID with which to modify the target.
-
WindowTargetId[required] The target ID to modify.
-
TargetsThe targets to add or replace.
-
OwnerInformationUser-provided value that will be included in any Amazon CloudWatch Events events raised while running tasks for these targets in this maintenance window.
-
NameA name for the update.
-
DescriptionAn optional description for the update.
-
ReplaceIf
True, then all fields that are required by theregister_target_with_maintenance_windowoperation are also required for this API request. Optional fields that aren't specified are set to null.
Value¶
A list with the following syntax:
list(
WindowId = "string",
WindowTargetId = "string",
Targets = list(
list(
Key = "string",
Values = list(
"string"
)
)
),
OwnerInformation = "string",
Name = "string",
Description = "string"
)