{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-get-maintenance-window-execution-task-result-schema.json",
  "title": "GetMaintenanceWindowExecutionTaskResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-operations-api-openapi.yml#/components/schemas/GetMaintenanceWindowExecutionTaskResult",
  "type": "object",
  "properties": {
    "WindowExecutionId": {
      "type": "string",
      "description": "The ID of the maintenance window execution that includes the task."
    },
    "TaskExecutionId": {
      "type": "string",
      "description": "The ID of the specific task execution in the maintenance window task that was retrieved."
    },
    "TaskArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the task that ran."
    },
    "ServiceRole": {
      "type": "string",
      "description": "The role that was assumed when running the task."
    },
    "Type": {
      "type": "string",
      "enum": [
        "RUN_COMMAND",
        "AUTOMATION",
        "STEP_FUNCTIONS",
        "LAMBDA"
      ],
      "description": "The type of task that was run."
    },
    "TaskParameters": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {
          "$ref": "#/$defs/MaintenanceWindowTaskParameterValueExpression"
        }
      },
      "description": "The 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"
    },
    "Priority": {
      "type": "integer",
      "description": "The priority of the task."
    },
    "MaxConcurrency": {
      "type": "string",
      "description": "The defined maximum number of task executions that could be run in parallel."
    },
    "MaxErrors": {
      "type": "string",
      "description": "The defined maximum number of task execution errors allowed before scheduling of the task execution would have been stopped."
    },
    "Status": {
      "type": "string",
      "enum": [
        "PENDING",
        "IN_PROGRESS",
        "SUCCESS",
        "FAILED",
        "TIMED_OUT",
        "CANCELLING",
        "CANCELLED",
        "SKIPPED_OVERLAPPING"
      ],
      "description": "The status of the task."
    },
    "StatusDetails": {
      "type": "string",
      "description": "The details explaining the status. Not available for all status values."
    },
    "StartTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time the task execution started."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "The time the task execution completed."
    },
    "AlarmConfiguration": {
      "$ref": "#/$defs/AlarmConfiguration"
    },
    "TriggeredAlarms": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlarmStateInformation"
      },
      "description": "The CloudWatch alarms that were invoked by the maintenance window task."
    }
  },
  "$defs": {
    "Alarm": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of your CloudWatch alarm."
        }
      },
      "required": [
        "Name"
      ]
    },
    "AlarmConfiguration": {
      "type": "object",
      "properties": {
        "IgnorePollAlarmFailure": {
          "type": "boolean",
          "description": "When this value is true, your automation or command continues to run in cases where we can’t retrieve alarm status information from CloudWatch. In cases where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or command continues to run, regardless of this value. Default is false."
        },
        "Alarms": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Alarm"
          },
          "description": "The name of the CloudWatch alarm specified in the configuration."
        }
      },
      "required": [
        "Alarms"
      ]
    },
    "AlarmStateInformation": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of your CloudWatch alarm."
        },
        "State": {
          "type": "string",
          "enum": [
            "UNKNOWN",
            "ALARM"
          ],
          "description": "The state of your CloudWatch alarm."
        }
      },
      "required": [
        "Name",
        "State"
      ]
    },
    "MaintenanceWindowTaskParameterValueExpression": {
      "type": "object",
      "properties": {
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "This field contains an array of 0 or more strings, each 1 to 255 characters in length."
        }
      }
    }
  }
}