Skip to main content

maintenance_window_execution_tasks

Creates, updates, deletes, gets or lists a maintenance_window_execution_tasks resource.

Overview

Namemaintenance_window_execution_tasks
TypeResource
Idaws.ssm.maintenance_window_execution_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
alarm_configurationobjectThe details for the CloudWatch alarm you want to apply to an automation or command.
end_timestring (date-time)The time the task execution completed.
max_concurrencystringThe defined maximum number of task executions that could be run in parallel. (pattern: <code>^([1-9][0-9]*|[1-9][0-9]%|[1-9]%|100%)$</code>)
max_errorsstringThe defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped. (pattern: <code>^([1-9][0-9]*|[0]|[1-9][0-9]%|[0-9]%|100%)$</code>)
priorityintegerThe priority of the task.
service_rolestringThe role that was assumed when running the task.
start_timestring (date-time)The time the task execution started.
statusstringThe status of the task. (PENDING, IN_PROGRESS, SUCCESS, FAILED, TIMED_OUT, CANCELLING, CANCELLED, SKIPPED_OVERLAPPING)
status_detailsstringThe details explaining the status. Not available for all status values.
task_arnstringThe Amazon Resource Name (ARN) of the task that ran.
task_execution_idstringThe ID of the specific task execution in the maintenance window task that was retrieved. (pattern: <code>^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$</code>)
task_parametersarrayThe parameters passed to the task when it was run. TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the TaskInvocationParameters structure. For information about how Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters. The map has the following format: Key: string, between 1 and 255 characters Value: an array of strings, each between 1 and 255 characters
triggered_alarmsarrayThe CloudWatch alarms that were invoked by the maintenance window task.
typestringThe type of task that was run. (RUN_COMMAND, AUTOMATION, STEP_FUNCTIONS, LAMBDA)
window_execution_idstringThe ID of the maintenance window execution that includes the task. (pattern: <code>^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_maintenance_window_execution_taskselectregionRetrieves the details about a specific task run as part of a maintenance window execution.
describe_maintenance_window_execution_tasksselectregionFor a given maintenance window execution, lists the tasks that were run.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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

SELECT
alarm_configuration,
end_time,
max_concurrency,
max_errors,
priority,
service_role,
start_time,
status,
status_details,
task_arn,
task_execution_id,
task_parameters,
triggered_alarms,
type,
window_execution_id
FROM aws.ssm.maintenance_window_execution_tasks
WHERE region = '{{ region }}' -- required
;