{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2-auto-scaling/json-schema/amazon-ec2-auto-scaling-describe-warm-pool-answer-schema.json",
  "title": "DescribeWarmPoolAnswer",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-auto-scaling-warm-pool-api-openapi.yml#/components/schemas/DescribeWarmPoolAnswer",
  "type": "object",
  "properties": {
    "WarmPoolConfiguration": {
      "$ref": "#/$defs/WarmPoolConfiguration"
    },
    "Instances": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Instance"
      },
      "description": "The instances that are currently in the warm pool."
    },
    "NextToken": {
      "type": "string",
      "description": "This string indicates that the response contains more items than can be returned in a single response. To receive additional items, specify this string for the NextToken value when requesting the next set of items. This value is null when there are no more items to return."
    }
  },
  "$defs": {
    "Instance": {
      "type": "object",
      "properties": {
        "InstanceId": {
          "type": "string",
          "description": "The ID of the instance."
        },
        "InstanceType": {
          "type": "string",
          "description": "The instance type of the EC2 instance."
        },
        "AvailabilityZone": {
          "type": "string",
          "description": "The Availability Zone in which the instance is running."
        },
        "AvailabilityZoneId": {
          "type": "string",
          "description": "The Availability Zone ID where the instance was launched."
        },
        "LifecycleState": {
          "type": "string",
          "enum": [
            "Pending",
            "Pending:Wait",
            "Pending:Proceed",
            "Quarantined",
            "InService",
            "Terminating",
            "Terminating:Wait",
            "Terminating:Proceed",
            "Terminating:Retained",
            "Terminated",
            "Detaching",
            "Detached",
            "EnteringStandby",
            "Standby",
            "ReplacingRootVolume",
            "ReplacingRootVolume:Wait",
            "ReplacingRootVolume:Proceed",
            "RootVolumeReplaced",
            "Warmed:Pending",
            "Warmed:Pending:Wait",
            "Warmed:Pending:Proceed",
            "Warmed:Pending:Retained",
            "Warmed:Terminating",
            "Warmed:Terminating:Wait",
            "Warmed:Terminating:Proceed",
            "Warmed:Terminating:Retained",
            "Warmed:Terminated",
            "Warmed:Stopped",
            "Warmed:Running",
            "Warmed:Hibernated"
          ],
          "description": "A description of the current lifecycle state. The Quarantined state is not used. For more information, see Amazon EC2 Auto Scaling instance lifecycle in the Amazon EC2 Auto Scaling User Guide."
        },
        "HealthStatus": {
          "type": "string",
          "description": "The last reported health status of the instance. Healthy means that the instance is healthy and should remain in service. Unhealthy means that the instance is unhealthy and that Amazon EC2 Auto Scaling should terminate and replace it."
        },
        "LaunchConfigurationName": {
          "type": "string",
          "description": "The launch configuration associated with the instance."
        },
        "LaunchTemplate": {
          "$ref": "#/$defs/LaunchTemplateSpecification"
        },
        "ImageId": {
          "type": "string",
          "description": "The ID of the Amazon Machine Image (AMI) used for the instance's current root volume. This value reflects the most recent AMI applied to the instance, including updates made through root volume replacement operations. This field appears for: Instances with root volume replacements through Instance Refresh Instances launched with AMI overrides This field won't appear for: Existing instances launched from Launch Templates without overrides Existing instances that didn’t have their root volume replaced through Instance Refresh"
        },
        "ProtectedFromScaleIn": {
          "type": "boolean",
          "description": "Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in."
        },
        "WeightedCapacity": {
          "type": "string",
          "description": "The number of capacity units contributed by the instance based on its instance type. Valid Range: Minimum value of 1. Maximum value of 999."
        }
      },
      "required": [
        "InstanceId",
        "AvailabilityZone",
        "LifecycleState",
        "HealthStatus",
        "ProtectedFromScaleIn"
      ]
    },
    "InstanceReusePolicy": {
      "type": "object",
      "properties": {
        "ReuseOnScaleIn": {
          "type": "boolean",
          "description": "Specifies whether instances in the Auto Scaling group can be returned to the warm pool on scale in."
        }
      }
    },
    "LaunchTemplateSpecification": {
      "type": "object",
      "properties": {
        "LaunchTemplateId": {
          "type": "string",
          "description": "The ID of the launch template. To get the template ID, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API. Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName."
        },
        "LaunchTemplateName": {
          "type": "string",
          "description": "The name of the launch template. To get the template name, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API. Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName."
        },
        "Version": {
          "type": "string",
          "description": "The version number, $Latest, or $Default. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API. If the value is $Latest, Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is $Default, Amazon EC2 Auto Scaling selects the default version of the launch template when launching instances. The default value is $Default."
        }
      }
    },
    "WarmPoolConfiguration": {
      "type": "object",
      "properties": {
        "MaxGroupPreparedCapacity": {
          "type": "integer",
          "description": "The maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group."
        },
        "MinSize": {
          "type": "integer",
          "description": "The minimum number of instances to maintain in the warm pool."
        },
        "PoolState": {
          "type": "string",
          "enum": [
            "Stopped",
            "Running",
            "Hibernated"
          ],
          "description": "The instance state to transition to after the lifecycle actions are complete."
        },
        "Status": {
          "type": "string",
          "enum": [
            "PendingDelete"
          ],
          "description": "The status of a warm pool that is marked for deletion."
        },
        "InstanceReusePolicy": {
          "$ref": "#/$defs/InstanceReusePolicy"
        }
      }
    }
  }
}