{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-describe-automation-executions-result-schema.json",
  "title": "DescribeAutomationExecutionsResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-automation-execution-api-openapi.yml#/components/schemas/DescribeAutomationExecutionsResult",
  "type": "object",
  "properties": {
    "AutomationExecutionMetadataList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AutomationExecutionMetadata"
      },
      "description": "The list of details about each automation execution which has occurred which matches the filter specification, if any."
    },
    "NextToken": {
      "type": "string",
      "description": "The token to use when requesting the next set of items. If there are no additional items to return, the string is empty."
    }
  },
  "$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"
      ]
    },
    "AutomationExecutionMetadata": {
      "type": "object",
      "properties": {
        "AutomationExecutionId": {
          "type": "string",
          "description": "The execution ID."
        },
        "DocumentName": {
          "type": "string",
          "description": "The name of the Automation runbook used during execution."
        },
        "DocumentVersion": {
          "type": "string",
          "description": "The document version used during the execution."
        },
        "AutomationExecutionStatus": {
          "type": "string",
          "enum": [
            "Pending",
            "InProgress",
            "Waiting",
            "Success",
            "TimedOut",
            "Cancelling",
            "Cancelled",
            "Failed",
            "PendingApproval",
            "Approved",
            "Rejected",
            "Scheduled",
            "RunbookInProgress",
            "PendingChangeCalendarOverride",
            "ChangeCalendarOverrideApproved",
            "ChangeCalendarOverrideRejected",
            "CompletedWithSuccess",
            "CompletedWithFailure",
            "Exited"
          ],
          "description": "The status of the execution."
        },
        "ExecutionStartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the execution started."
        },
        "ExecutionEndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time the execution finished. This isn't populated if the execution is still in progress."
        },
        "ExecutedBy": {
          "type": "string",
          "description": "The IAM role ARN of the user who ran the automation."
        },
        "LogFile": {
          "type": "string",
          "description": "An S3 bucket where execution information is stored."
        },
        "Outputs": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "The list of execution outputs as defined in the Automation runbook."
        },
        "Mode": {
          "type": "string",
          "enum": [
            "Auto",
            "Interactive"
          ],
          "description": "The Automation execution mode."
        },
        "ParentAutomationExecutionId": {
          "type": "string",
          "description": "The execution ID of the parent automation."
        },
        "CurrentStepName": {
          "type": "string",
          "description": "The name of the step that is currently running."
        },
        "CurrentAction": {
          "type": "string",
          "description": "The action of the step that is currently running."
        },
        "FailureMessage": {
          "type": "string",
          "description": "A message that describes a failure that occurred during the automation execution."
        },
        "WarningMessage": {
          "type": "string",
          "description": "A message that describes a non-critical issue that occurred during the automation execution."
        },
        "TargetParameterName": {
          "type": "string",
          "description": "The list of execution outputs as defined in the Automation runbook."
        },
        "Targets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Target"
          },
          "description": "The targets defined by the user when starting the automation."
        },
        "TargetMaps": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "description": "The specified key-value mapping of document parameters to target resources."
        },
        "ResolvedTargets": {
          "$ref": "#/$defs/ResolvedTargets"
        },
        "MaxConcurrency": {
          "type": "string",
          "description": "The MaxConcurrency value specified by the user when starting the automation."
        },
        "MaxErrors": {
          "type": "string",
          "description": "The MaxErrors value specified by the user when starting the automation."
        },
        "Target": {
          "type": "string",
          "description": "The list of execution outputs as defined in the Automation runbook."
        },
        "AutomationType": {
          "type": "string",
          "enum": [
            "CrossAccount",
            "Local"
          ],
          "description": "Use this filter with DescribeAutomationExecutions. Specify either Local or CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and Amazon Web Services accounts. For more information, see Running automations in multiple Amazon Web Services Regions and accounts in the Amazon Web Services Systems Manager User Guide."
        },
        "AlarmConfiguration": {
          "$ref": "#/$defs/AlarmConfiguration"
        },
        "TriggeredAlarms": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AlarmStateInformation"
          },
          "description": "The CloudWatch alarm that was invoked by the automation."
        },
        "TargetLocationsURL": {
          "type": "string",
          "description": "A publicly accessible URL for a file that contains the TargetLocations body. Currently, only files in presigned Amazon S3 buckets are supported"
        },
        "AutomationSubtype": {
          "type": "string",
          "enum": [
            "ChangeRequest",
            "AccessRequest"
          ],
          "description": "The subtype of the Automation operation. Currently, the only supported value is ChangeRequest."
        },
        "ScheduledTime": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time the Automation operation is scheduled to start."
        },
        "Runbooks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Runbook"
          },
          "description": "Information about the Automation runbooks that are run during a runbook workflow in Change Manager. The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received."
        },
        "OpsItemId": {
          "type": "string",
          "description": "The ID of an OpsItem that is created to represent a Change Manager change request."
        },
        "AssociationId": {
          "type": "string",
          "description": "The ID of a State Manager association used in the Automation operation."
        },
        "ChangeRequestName": {
          "type": "string",
          "description": "The name of the Change Manager change request."
        }
      }
    },
    "ResolvedTargets": {
      "type": "object",
      "properties": {
        "ParameterValues": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of parameter values sent to targets that resolved during the Automation execution."
        },
        "Truncated": {
          "type": "boolean",
          "description": "A boolean value indicating whether the resolved target list is truncated."
        }
      }
    },
    "Runbook": {
      "type": "object",
      "properties": {
        "DocumentName": {
          "type": "string",
          "description": "The name of the Automation runbook used in a runbook workflow."
        },
        "DocumentVersion": {
          "type": "string",
          "description": "The version of the Automation runbook used in a runbook workflow."
        },
        "Parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "The key-value map of execution parameters, which were supplied when calling StartChangeRequestExecution."
        },
        "TargetParameterName": {
          "type": "string",
          "description": "The name of the parameter used as the target resource for the rate-controlled runbook workflow. Required if you specify Targets."
        },
        "Targets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Target"
          },
          "description": "A key-value mapping to target resources that the runbook operation performs tasks on. Required if you specify TargetParameterName."
        },
        "TargetMaps": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "description": "A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps can't be specified together."
        },
        "MaxConcurrency": {
          "type": "string",
          "description": "The MaxConcurrency value specified by the user when the operation started, indicating the maximum number of resources that the runbook operation can run on at the same time."
        },
        "MaxErrors": {
          "type": "string",
          "description": "The MaxErrors value specified by the user when the execution started, indicating the maximum number of errors that can occur during the operation before the updates are stopped or rolled back."
        },
        "TargetLocations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TargetLocation"
          },
          "description": "Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Runbook operation."
        }
      },
      "required": [
        "DocumentName"
      ]
    },
    "Target": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "User-defined criteria for sending commands that target managed nodes that meet the criteria."
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to run a command on instances that include EC2 tags of ServerRole,WebServer. Depending on the type of target, the maximum number of values for a key might be lower than the global maximum of 50."
        }
      }
    },
    "TargetLocation": {
      "type": "object",
      "properties": {
        "Accounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services accounts targeted by the current Automation execution."
        },
        "Regions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Amazon Web Services Regions targeted by the current Automation execution."
        },
        "TargetLocationMaxConcurrency": {
          "type": "string",
          "description": "The maximum number of Amazon Web Services Regions and Amazon Web Services accounts allowed to run the Automation concurrently. TargetLocationMaxConcurrency has a default value of 1."
        },
        "TargetLocationMaxErrors": {
          "type": "string",
          "description": "The maximum number of errors allowed before the system stops queueing additional Automation executions for the currently running Automation. TargetLocationMaxErrors has a default value of 0."
        },
        "ExecutionRoleName": {
          "type": "string",
          "description": "The Automation execution role used by the currently running Automation. If not specified, the default value is AWS-SystemsManager-AutomationExecutionRole."
        },
        "TargetLocationAlarmConfiguration": {
          "$ref": "#/$defs/AlarmConfiguration"
        },
        "IncludeChildOrganizationUnits": {
          "type": "boolean",
          "description": "Indicates whether to include child organizational units (OUs) that are children of the targeted OUs. The default is false."
        },
        "ExcludeAccounts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Amazon Web Services accounts or organizational units to exclude as expanded targets."
        },
        "Targets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Target"
          },
          "description": "A list of key-value mappings to target resources. If you specify values for this data type, you must also specify a value for TargetParameterName. This Targets parameter takes precedence over the StartAutomationExecution:Targets parameter if both are supplied."
        },
        "TargetsMaxConcurrency": {
          "type": "string",
          "description": "The maximum number of targets allowed to run this task in parallel. This TargetsMaxConcurrency takes precedence over the StartAutomationExecution:MaxConcurrency parameter if both are supplied."
        },
        "TargetsMaxErrors": {
          "type": "string",
          "description": "The maximum number of errors that are allowed before the system stops running the automation on additional targets. This TargetsMaxErrors parameter takes precedence over the StartAutomationExecution:MaxErrors parameter if both are supplied."
        }
      }
    }
  }
}