{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-outposts/json-schema/amazon-outposts-start-capacity-task-input-schema.json",
  "title": "StartCapacityTaskInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-outposts-capacity-api-openapi.yml#/components/schemas/StartCapacityTaskInput",
  "type": "object",
  "properties": {
    "OutpostIdentifier": {
      "type": "string",
      "description": "The ID or ARN of the Outposts associated with the specified capacity task."
    },
    "OrderId": {
      "type": "string",
      "description": "The ID of the Amazon Web Services Outposts order associated with the specified capacity task."
    },
    "AssetId": {
      "type": "string",
      "description": "The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration."
    },
    "InstancePools": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InstanceTypeCapacity"
      },
      "description": "The instance pools specified in the capacity task."
    },
    "InstancesToExclude": {
      "$ref": "#/$defs/InstancesToExclude"
    },
    "DryRun": {
      "type": "boolean",
      "description": "You can request a dry run to determine if the instance type and instance size changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan."
    },
    "TaskActionOnBlockingInstances": {
      "type": "string",
      "enum": [
        "WAIT_FOR_EVACUATION",
        "FAIL_TASK"
      ],
      "description": "Specify one of the following options in case an instance is blocking the capacity task from running. WAIT_FOR_EVACUATION - Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task. FAIL_TASK - The capacity task fails."
    }
  },
  "required": [
    "OutpostIdentifier",
    "InstancePools"
  ],
  "$defs": {
    "InstanceTypeCapacity": {
      "type": "object",
      "properties": {
        "InstanceType": {
          "type": "string",
          "description": "The instance type of the hosts."
        },
        "Count": {
          "type": "integer",
          "description": "The number of instances for the specified instance type."
        }
      },
      "required": [
        "InstanceType",
        "Count"
      ]
    },
    "InstancesToExclude": {
      "type": "object",
      "properties": {
        "Instances": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of user-specified instances that must not be stopped."
        },
        "AccountIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "IDs of the accounts that own each instance that must not be stopped."
        },
        "Services": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "AWS",
              "EC2",
              "EKS",
              "ELASTICACHE",
              "ELB",
              "RDS",
              "ROUTE53"
            ]
          },
          "description": "Names of the services that own each instance that must not be stopped in order to free up the capacity needed to run the capacity task."
        }
      }
    }
  }
}