TaskARN
. For example, you can change a RUN_COMMAND
task from AWS-RunPowerShellScript
to AWS-RunShellScript
.ServiceRoleArn
TaskInvocationParameters
Priority
MaxConcurrency
MaxErrors
UpdateMaintenanceWindowTask
is null, then the corresponding field isn't modified. If you set Replace
to true, then all fields required by the RegisterTaskWithMaintenanceWindow operation are required for this request. Optional fields that aren't specified are set to null.curl --location -g --request POST 'http://ssm.{region}.amazonaws.com/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
"WindowId": "string",
"WindowTaskId": "string",
"Targets": [],
"TaskArn": "string",
"ServiceRoleArn": "string",
"TaskParameters": {
"property1": {
"Values": []
}
},
"TaskInvocationParameters": {
"RunCommand": {},
"Automation": {
"DocumentVersion": "string",
"Parameters": {
"property1": [
"string"
],
"property2": [
"string"
]
}
},
"StepFunctions": {},
"Lambda": {}
},
"Priority": 0,
"MaxConcurrency": "string",
"MaxErrors": "string",
"LoggingInfo": {},
"Name": "string",
"Description": "string",
"Replace": true,
"CutoffBehavior": "CONTINUE_TASK",
"AlarmConfiguration": {
"IgnorePollAlarmFailure": true,
"Alarms": []
}
}'
{
"WindowId": "string",
"WindowTaskId": "string",
"Targets": [],
"TaskArn": "string",
"ServiceRoleArn": "string",
"TaskParameters": {
"property1": {
"Values": []
}
},
"TaskInvocationParameters": {
"RunCommand": {},
"Automation": {
"DocumentVersion": "string",
"Parameters": {
"property1": [
"string"
],
"property2": [
"string"
]
}
},
"StepFunctions": {},
"Lambda": {}
},
"Priority": 0,
"MaxConcurrency": "string",
"MaxErrors": "string",
"LoggingInfo": {},
"Name": "string",
"Description": "string",
"CutoffBehavior": "CONTINUE_TASK",
"AlarmConfiguration": {
"IgnorePollAlarmFailure": true,
"Alarms": []
}
}