Parameter options for the register-task-with-maintenance-windows command
The register-task-with-maintenance-window command provides several options for configuring a task according to your needs. Some are required, some are optional, and some apply to only a single maintenance window task type.
This topic provides information about some of these options to help you work with samples in this tutorial section. For information about all command options, see register-task-with-maintenance-window in the Amazon CLI Command Reference.
Command option: --task-arn
The option --task-arn
is used to specify the resource
that the task operates on. The value that you specify depends on the
type of task you're registering, as described in the following
table.
Maintenance window task type | TaskArn value |
---|---|
|
-or-
|
|
-or-
ImportantThe IAM policy for Maintenance Windows requires that you add the
prefix |
|
ImportantThe IAM policy for maintenance windows
requires that you prefix Step Functions state machine names
with |
Command option: --service-role-arn
The role for Amazon Systems Manager to assume when running the maintenance window task.
For more information, see Setting up Maintenance Windows
Command option: --task-invocation-parameters
The --task-invocation-parameters
option is used to
specify the parameters that are unique to each of the four task
types. The supported parameters for each of the four task types are
described in the following table.
Note
For information about using pseudo parameters in
--task-invocation-parameters
content, such as
{{TARGET_ID}}, see Using pseudo parameters
when registering maintenance window tasks.
Task invocation parameters options for maintenance window tasks
Maintenance window task type | Available parameters | Example |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|