Registers a target with a maintenance window.
ssm_register_target_with_maintenance_window(WindowId, ResourceType,
Targets, OwnerInformation, Name, Description, ClientToken)[required] The ID of the maintenance window the target should be registered with.
[required] The type of target being registered with the maintenance window.
[required] The targets to register with the maintenance window. In other words, the instances to run commands on when the maintenance window runs.
You can specify targets using either instance IDs or tags that have been applied to instances.
Example 1: Specify instance IDs
Key=InstanceIds,Values=<i>instance-id-1</i>,<i>instance-id-2</i>,<i>instance-id-3</i>
Example 2: Use tag key-pairs applied to instances
Key=tag:<i>my-tag-key</i>,Values=<i>my-tag-value-1</i>,<i>my-tag-value-2</i>
Example 3: Use tag-keys applied to instances
Key=tag-key,Values=<i>my-tag-key-1</i>,<i>my-tag-key-2</i>
For more information about these examples formats, including the best use case for each one, see Examples: Register Targets with a Maintenance Window in the AWS Systems Manager User Guide.
User-provided value that will be included in any CloudWatch events raised while running tasks for these targets in this maintenance window.
An optional name for the target.
An optional description for the target.
User-provided idempotency token.
svc$register_target_with_maintenance_window(
WindowId = "string",
ResourceType = "INSTANCE",
Targets = list(
list(
Key = "string",
Values = list(
"string"
)
)
),
OwnerInformation = "string",
Name = "string",
Description = "string",
ClientToken = "string"
)