{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-describe-maintenance-windows-for-target-request-schema.json",
  "title": "DescribeMaintenanceWindowsForTargetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-maintenance-window-api-openapi.yml#/components/schemas/DescribeMaintenanceWindowsForTargetRequest",
  "type": "object",
  "properties": {
    "Targets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Target"
      },
      "description": "The managed node ID or key-value pair to retrieve information about."
    },
    "ResourceType": {
      "type": "string",
      "enum": [
        "INSTANCE",
        "RESOURCE_GROUP"
      ],
      "description": "The type of resource you want to retrieve information about. For example, INSTANCE."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results."
    },
    "NextToken": {
      "type": "string",
      "description": "The token for the next set of items to return. (You received this token from a previous call.)"
    }
  },
  "required": [
    "Targets",
    "ResourceType"
  ],
  "$defs": {
    "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."
        }
      }
    }
  }
}