v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-141381,185842.7 KB

Retrieves the details about a specific task run as part of a maintenance window execution.

post/#X-Amz-Target=AmazonSSM.GetMaintenanceWindowExecutionTask

Headers

X-Amz-Target'AmazonSSM.GetMaintenanceWindowExecutionTask' required

Request body

WindowExecutionIdstring required

The ID of the maintenance window execution that includes the task.

TaskIdstring required

The ID of the specific task execution in the maintenance window task that should be retrieved.

Response

Success

WindowExecutionIdstring

The ID of the maintenance window execution that includes the task.

TaskExecutionIdstring

The ID of the specific task execution in the maintenance window task that was retrieved.

TaskArnstring

The Amazon Resource Name (ARN) of the task that ran.

ServiceRolestring

The role that was assumed when running the task.

Type'RUN_COMMAND' | 'AUTOMATION' | 'STEP_FUNCTIONS' | 'LAMBDA'

The type of task that was run.

TaskParametersMaintenanceWindowTaskParameters[]
<p>The parameters passed to the task when it was run.</p> <note> <p> <code>TaskParameters</code> has been deprecated. To specify parameters to pass to a task when it runs, instead use the <code>Parameters</code> option in the <code>TaskInvocationParameters</code> structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see <a>MaintenanceWindowTaskInvocationParameters</a>.</p> </note> <p>The map has the following format:</p> <ul> <li> <p> <code>Key</code>: string, between 1 and 255 characters</p> </li> <li> <p> <code>Value</code>: an array of strings, each between 1 and 255 characters</p> </li> </ul>
Priorityinteger

The priority of the task.

MaxConcurrencystring

The defined maximum number of task executions that could be run in parallel.

MaxErrorsstring

The defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped.

Status'PENDING' | 'IN_PROGRESS' | 'SUCCESS' | 'FAILED' | 'TIMED_OUT' | 'CANCELLING' | 'CANCELLED' | 'SKIPPED_OVERLAPPING'

The status of the task.

StatusDetailsstring

The details explaining the status. Not available for all status values.

StartTimestring date-time

The time the task execution started.

EndTimestring date-time

The time the task execution completed.