---
type: resource-type
title: MaintenanceWindowTask
description: aws resource type AWS::SSM::MaintenanceWindowTask
name: MaintenanceWindowTask
lexicon: aws
resource_type: AWS::SSM::MaintenanceWindowTask
---
`AWS::SSM::MaintenanceWindowTask`, a resource type of the aws lexicon.

## Properties

- `Priority` (`number`, required): The priority of the task in the maintenance window. The lower the number, the higher the priority. Tasks that have the same priority are scheduled in parallel.
- `TaskArn` (`string`, required): The resource that the task uses during execution.
- `TaskType` (`string`, required): The type of task.
- `WindowId` (`string`, required): The ID of the maintenance window where the task is registered.
- `CutoffBehavior` (`string`, optional): The specification for whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached.
- `Description` (`string`, optional): A description of the task.
- `LoggingInfo` (`MaintenanceWindowTask_LoggingInfo`, optional): Information about an Amazon S3 bucket to write Run Command task-level logs to.
- `MaxConcurrency` (`string`, optional): The maximum number of targets this task can be run for, in parallel.
- `MaxErrors` (`string`, optional): The maximum number of errors allowed before this task stops being scheduled.
- `Name` (`string`, optional): The task name.
- `ServiceRoleArn` (`string`, optional): The Amazon Resource Name (ARN) of the IAM service role for AWS Systems Manager to assume when running a maintenance window task.
- `Targets` (`MaintenanceWindowTask_Target[]`, optional): The targets (either instances or window target ids).
- `TaskInvocationParameters` (`MaintenanceWindowTask_TaskInvocationParameters`, optional): The parameters to pass to the task when it runs. Populate only the fields that match the task type. All other fields should be empty.
- `TaskParameters` (`Record<string, unknown>`, optional): The parameters to pass to the task when it runs.
- `WindowTaskId` (`string`, optional): Unique identifier of the maintenance window task.

## Attributes

- `WindowTaskId`
