RegisterTaskWithMaintenanceWindowRequest

AutomationAmazon Web ServicesManagement

Properties

Name Type Description
WindowId string The ID of the maintenance window the task should be added to.
Targets array The targets (either managed nodes or maintenance window targets). One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for o
TaskArn string The ARN of the task to run.
ServiceRoleArn string The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manag
TaskType string The type of task being registered.
TaskParameters object The parameters that should be passed to the task when it is run. TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, instead use the Parameters option in the Task
TaskInvocationParameters object
Priority integer The priority of the task in the maintenance window, the lower the number the higher the priority. Tasks in a maintenance window are scheduled in priority order with tasks that have the same priority s
MaxConcurrency string The maximum number of targets this task can be run for, in parallel. Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a targetless ta
MaxErrors string The maximum number of errors allowed before this task stops being scheduled. Although this element is listed as "Required: No", a value can be omitted only when you are registering or updating a targe
LoggingInfo object
Name string An optional name for the task.
Description string An optional description for the task.
ClientToken string User-provided idempotency token.
CutoffBehavior string Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. CONTINUE_TASK: When the cutoff time is reached, any tasks that are running continu
AlarmConfiguration object
View JSON Schema on GitHub

JSON Schema

amazon-systems-manager-register-task-with-maintenance-window-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-register-task-with-maintenance-window-request-schema.json",
  "title": "RegisterTaskWithMaintenanceWindowRequest",
  "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/RegisterTaskWithMaintenanceWindowRequest",
  "type": "object",
  "properties": {
    "WindowId": {
      "type": "string",
      "description": "The ID of the maintenance window the task should be added to."
    },
    "Targets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Target"
      },
      "description": "The targets (either managed nodes or maintenance window targets). One or more targets must be specified for maintenance window Run Command-type tasks. Depending on the task, targets are optional for other maintenance window task types (Automation, Lambda, and Step Functions). For more information about running tasks that don't specify targets, see Registering maintenance window tasks without targets in the Amazon Web Services Systems Manager User Guide. Specify managed nodes using the following format: Key=InstanceIds,Values=, Specify maintenance window targets using the following format: Key="
    },
    "TaskArn": {
      "type": "string",
      "description": "The ARN of the task to run."
    },
    "ServiceRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow. However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permis"
    },
    "TaskType": {
      "type": "string",
      "enum": [
        "RUN_COMMAND",
        "AUTOMATION",
        "STEP_FUNCTIONS",
        "LAMBDA"
      ],
      "description": "The type of task being registered."
    },
    "TaskParameters": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/MaintenanceWindowTaskParameterValueExpression"
      },
      "description": "The parameters that should be passed to the task when it is 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."
    },
    "TaskInvocationParameters": {
      "$ref": "#/$defs/MaintenanceWindowTaskInvocationParameters"
    },
    "Priority": {
      "type": "integer",
      "description": "The priority of the task in the maintenance window, the lower the number the higher the priority. Tasks in a maintenance window are scheduled in priority order with tasks that have the same priority scheduled in parallel."
    },
    "MaxConcurrency": {
      "type": "string",
      "description": "The maximum number of targets this task can be run for, in parallel. Although this element is listed as \"Required: No\", a value can be omitted only when you are registering or updating a targetless task You must provide a value in all other cases. For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1. This value doesn't affect the running of your task."
    },
    "MaxErrors": {
      "type": "string",
      "description": "The maximum number of errors allowed before this task stops being scheduled. Although this element is listed as \"Required: No\", a value can be omitted only when you are registering or updating a targetless task You must provide a value in all other cases. For maintenance window tasks without a target specified, you can't supply a value for this option. Instead, the system inserts a placeholder value of 1. This value doesn't affect the running of your task."
    },
    "LoggingInfo": {
      "$ref": "#/$defs/LoggingInfo"
    },
    "Name": {
      "type": "string",
      "description": "An optional name for the task."
    },
    "Description": {
      "type": "string",
      "description": "An optional description for the task."
    },
    "ClientToken": {
      "type": "string",
      "description": "User-provided idempotency token."
    },
    "CutoffBehavior": {
      "type": "string",
      "enum": [
        "CONTINUE_TASK",
        "CANCEL_TASK"
      ],
      "description": "Indicates whether tasks should continue to run after the cutoff time specified in the maintenance windows is reached. CONTINUE_TASK: When the cutoff time is reached, any tasks that are running continue. The default value. CANCEL_TASK: For Automation, Lambda, Step Functions tasks: When the cutoff time is reached, any task invocations that are already running continue, but no new task invocations are started. For Run Command tasks: When the cutoff time is reached, the system sends a CancelCommand operation that attempts to cancel the command associated with the task. However, there is no guarant"
    },
    "AlarmConfiguration": {
      "$ref": "#/$defs/AlarmConfiguration"
    }
  },
  "required": [
    "WindowId",
    "TaskArn",
    "TaskType"
  ],
  "$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"
      ]
    },
    "CloudWatchOutputConfig": {
      "type": "object",
      "properties": {
        "CloudWatchLogGroupName": {
          "type": "string",
          "description": "The name of the CloudWatch Logs log group where you want to send command output. If you don't specify a group name, Amazon Web Services Systems Manager automatically creates a log group for you. The log group uses the following naming format: aws/ssm/SystemsManagerDocumentName"
        },
        "CloudWatchOutputEnabled": {
          "type": "boolean",
          "description": "Enables Systems Manager to send command output to CloudWatch Logs."
        }
      }
    },
    "LoggingInfo": {
      "type": "object",
      "properties": {
        "S3BucketName": {
          "type": "string",
          "description": "The name of an S3 bucket where execution logs are stored."
        },
        "S3KeyPrefix": {
          "type": "string",
          "description": "(Optional) The S3 bucket subfolder."
        },
        "S3Region": {
          "type": "string",
          "description": "The Amazon Web Services Region where the S3 bucket is located."
        }
      },
      "required": [
        "S3BucketName",
        "S3Region"
      ]
    },
    "MaintenanceWindowAutomationParameters": {
      "type": "object",
      "properties": {
        "DocumentVersion": {
          "type": "string",
          "description": "The version of an Automation runbook to use during task execution."
        },
        "Parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "The parameters for the AUTOMATION task. For information about specifying and updating task parameters, see RegisterTaskWithMaintenanceWindow and UpdateMaintenanceWindowTask. LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance window task types, see MaintenanceWindowTaskInvocationParameters. TaskParameters has been d"
        }
      }
    },
    "MaintenanceWindowLambdaParameters": {
      "type": "object",
      "properties": {
        "ClientContext": {
          "type": "string",
          "description": "Pass client-specific information to the Lambda function that you are invoking. You can then process the client information in your Lambda function as you choose through the context variable."
        },
        "Qualifier": {
          "type": "string",
          "description": "(Optional) Specify an Lambda function version or alias name. If you specify a function version, the operation uses the qualified function Amazon Resource Name (ARN) to invoke a specific Lambda function. If you specify an alias name, the operation uses the alias ARN to invoke the Lambda function version to which the alias points."
        },
        "Payload": {
          "type": "string",
          "format": "byte",
          "description": "JSON to provide to your Lambda function as input."
        }
      }
    },
    "MaintenanceWindowRunCommandParameters": {
      "type": "object",
      "properties": {
        "Comment": {
          "type": "string",
          "description": "Information about the commands to run."
        },
        "CloudWatchOutputConfig": {
          "$ref": "#/$defs/CloudWatchOutputConfig"
        },
        "DocumentHash": {
          "type": "string",
          "description": "The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes have been deprecated."
        },
        "DocumentHashType": {
          "type": "string",
          "enum": [
            "Sha256",
            "Sha1"
          ],
          "description": "SHA-256 or SHA-1. SHA-1 hashes have been deprecated."
        },
        "DocumentVersion": {
          "type": "string",
          "description": "The Amazon Web Services Systems Manager document (SSM document) version to use in the request. You can specify $DEFAULT, $LATEST, or a specific version number. If you run commands by using the Amazon Web Services CLI, then you must escape the first two options by using a backslash. If you specify a version number, then you don't need to use the backslash. For example: --document-version \"\\$DEFAULT\" --document-version \"\\$LATEST\" --document-version \"3\""
        },
        "NotificationConfig": {
          "$ref": "#/$defs/NotificationConfig"
        },
        "OutputS3BucketName": {
          "type": "string",
          "description": "The name of the Amazon Simple Storage Service (Amazon S3) bucket."
        },
        "OutputS3KeyPrefix": {
          "type": "string",
          "description": "The S3 bucket subfolder."
        },
        "Parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "description": "The parameters for the RUN_COMMAND task execution."
        },
        "ServiceRoleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a maintenance window task. If you do not specify a service role ARN, Systems Manager uses a service-linked role in your account. If no appropriate service-linked role for Systems Manager exists in your account, it is created when you run RegisterTaskWithMaintenanceWindow. However, for an improved security posture, we strongly recommend creating a custom policy and custom service role for running your maintenance window tasks. The policy can be crafted to provide only the permis"
        },
        "TimeoutSeconds": {
          "type": "integer",
          "description": "If this time is reached and the command hasn't already started running, it doesn't run."
        }
      }
    },
    "MaintenanceWindowStepFunctionsParameters": {
      "type": "object",
      "properties": {
        "Input": {
          "type": "string",
          "description": "The inputs for the STEP_FUNCTIONS task."
        },
        "Name": {
          "type": "string",
          "description": "The name of the STEP_FUNCTIONS task."
        }
      }
    },
    "MaintenanceWindowTaskInvocationParameters": {
      "type": "object",
      "properties": {
        "RunCommand": {
          "$ref": "#/$defs/MaintenanceWindowRunCommandParameters"
        },
        "Automation": {
          "$ref": "#/$defs/MaintenanceWindowAutomationParameters"
        },
        "StepFunctions": {
          "$ref": "#/$defs/MaintenanceWindowStepFunctionsParameters"
        },
        "Lambda": {
          "$ref": "#/$defs/MaintenanceWindowLambdaParameters"
        }
      }
    },
    "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."
        }
      }
    },
    "NotificationConfig": {
      "type": "object",
      "properties": {
        "NotificationArn": {
          "type": "string",
          "description": "An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run Command pushes notifications about command status changes to this topic."
        },
        "NotificationEvents": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "All",
              "InProgress",
              "Success",
              "TimedOut",
              "Cancelled",
              "Failed"
            ]
          },
          "description": "The different events for which you can receive notifications. To learn more about these events, see Monitoring Systems Manager status changes using Amazon SNS notifications in the Amazon Web Services Systems Manager User Guide."
        },
        "NotificationType": {
          "type": "string",
          "enum": [
            "Command",
            "Invocation"
          ],
          "description": "The type of notification. Command: Receive notification when the status of a command changes. Invocation: For commands sent to multiple managed nodes, receive notification on a per-node basis when the status of a command changes."
        }
      }
    },
    "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."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-systems-manager-register-task-with-maintenance-window-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.