{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ec2-auto-scaling/json-schema/amazon-ec2-auto-scaling-update-auto-scaling-group-type-schema.json",
  "title": "UpdateAutoScalingGroupType",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ec2-auto-scaling-auto-scaling-group-api-openapi.yml#/components/schemas/UpdateAutoScalingGroupType",
  "type": "object",
  "properties": {
    "AutoScalingGroupName": {
      "type": "string",
      "description": "The name of the Auto Scaling group."
    },
    "LaunchConfigurationName": {
      "type": "string",
      "description": "The name of the launch configuration. If you specify LaunchConfigurationName in your update request, you can't specify LaunchTemplate or MixedInstancesPolicy."
    },
    "LaunchTemplate": {
      "$ref": "#/$defs/LaunchTemplateSpecification"
    },
    "MixedInstancesPolicy": {
      "$ref": "#/$defs/MixedInstancesPolicy"
    },
    "MinSize": {
      "type": "integer",
      "description": "The minimum size of the Auto Scaling group."
    },
    "MaxSize": {
      "type": "integer",
      "description": "The maximum size of the Auto Scaling group. With a mixed instances policy that uses instance weighting, Amazon EC2 Auto Scaling may need to go above MaxSize to meet your capacity requirements. In this event, Amazon EC2 Auto Scaling will never go above MaxSize by more than your largest instance weight (weights that define how many units each instance contributes to the desired capacity of the group)."
    },
    "DesiredCapacity": {
      "type": "integer",
      "description": "The desired capacity is the initial capacity of the Auto Scaling group after this operation completes and the capacity it attempts to maintain. This number must be greater than or equal to the minimum size of the group and less than or equal to the maximum size of the group."
    },
    "DefaultCooldown": {
      "type": "integer",
      "description": "Only needed if you use simple scaling policies. The amount of time, in seconds, between one scaling activity ending and another one starting due to simple scaling policies. For more information, see Scaling cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide."
    },
    "AvailabilityZones": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "One or more Availability Zones for the group."
    },
    "AvailabilityZoneIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of Availability Zone IDs for the Auto Scaling group. You cannot specify both AvailabilityZones and AvailabilityZoneIds in the same request."
    },
    "HealthCheckType": {
      "type": "string",
      "description": "A comma-separated value string of one or more health check types. The valid values are EC2, EBS, ELB, and VPC_LATTICE. EC2 is the default health check and cannot be disabled. For more information, see Health checks for instances in an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. Only specify EC2 if you must clear a value that was previously set."
    },
    "HealthCheckGracePeriod": {
      "type": "integer",
      "description": "The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking the health status of an EC2 instance that has come into service and marking it unhealthy due to a failed health check. This is useful if your instances do not immediately pass their health checks after they enter the InService state. For more information, see Set the health check grace period for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide."
    },
    "PlacementGroup": {
      "type": "string",
      "description": "The name of an existing placement group into which to launch your instances. To remove the placement group setting, pass an empty string for placement-group. For more information about placement groups, see Placement groups in the Amazon EC2 User Guide. A cluster placement group is a logical grouping of instances within a single Availability Zone. You cannot specify multiple Availability Zones and a cluster placement group."
    },
    "VPCZoneIdentifier": {
      "type": "string",
      "description": "A comma-separated list of subnet IDs for a virtual private cloud (VPC). If you specify VPCZoneIdentifier with AvailabilityZones, the subnets that you specify must reside in those Availability Zones."
    },
    "TerminationPolicies": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A policy or a list of policies that are used to select the instances to terminate. The policies are executed in the order that you list them. For more information, see Configure termination policies for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. Valid values: Default | AllocationStrategy | ClosestToNextInstanceHour | NewestInstance | OldestInstance | OldestLaunchConfiguration | OldestLaunchTemplate | arn:aws:lambda:region:account-id:function:my-function:my-alias"
    },
    "NewInstancesProtectedFromScaleIn": {
      "type": "boolean",
      "description": "Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in. For more information about preventing instances from terminating on scale in, see Use instance scale-in protection in the Amazon EC2 Auto Scaling User Guide."
    },
    "ServiceLinkedRoleARN": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group uses to call other Amazon Web Services on your behalf. For more information, see Service-linked roles in the Amazon EC2 Auto Scaling User Guide."
    },
    "MaxInstanceLifetime": {
      "type": "integer",
      "description": "The maximum amount of time, in seconds, that an instance can be in service. The default is null. If specified, the value must be either 0 or a number equal to or greater than 86,400 seconds (1 day). To clear a previously set value, specify a new value of 0. For more information, see Replacing Auto Scaling instances based on maximum instance lifetime in the Amazon EC2 Auto Scaling User Guide."
    },
    "CapacityRebalance": {
      "type": "boolean",
      "description": "Enables or disables Capacity Rebalancing. If Capacity Rebalancing is disabled, proactive replacement of at-risk Spot Instances does not occur. For more information, see Capacity Rebalancing in Auto Scaling to replace at-risk Spot Instances in the Amazon EC2 Auto Scaling User Guide. To suspend rebalancing across Availability Zones, use the SuspendProcesses API."
    },
    "Context": {
      "type": "string",
      "description": "Reserved."
    },
    "DesiredCapacityType": {
      "type": "string",
      "description": "The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports DesiredCapacityType for attribute-based instance type selection only. For more information, see Create a mixed instances group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide. By default, Amazon EC2 Auto Scaling specifies units, which translates into number of instances. Valid values: units | vcpu | memory-mib"
    },
    "DefaultInstanceWarmup": {
      "type": "integer",
      "description": "The amount of time, in seconds, until a new instance is considered to have finished initializing and resource consumption to become stable after it enters the InService state. During an instance refresh, Amazon EC2 Auto Scaling waits for the warm-up period after it replaces an instance before it moves on to replacing the next instance. Amazon EC2 Auto Scaling also waits for the warm-up period before aggregating the metrics for new instances with existing instances in the Amazon CloudWatch metrics that are used for scaling, resulting in more reliable usage data. For more information, see Set th"
    },
    "InstanceMaintenancePolicy": {
      "$ref": "#/$defs/InstanceMaintenancePolicy"
    },
    "AvailabilityZoneDistribution": {
      "$ref": "#/$defs/AvailabilityZoneDistribution"
    },
    "AvailabilityZoneImpairmentPolicy": {
      "$ref": "#/$defs/AvailabilityZoneImpairmentPolicy"
    },
    "SkipZonalShiftValidation": {
      "type": "boolean",
      "description": "If you enable zonal shift with cross-zone disabled load balancers, capacity could become imbalanced across Availability Zones. To skip the validation, specify true. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide."
    },
    "CapacityReservationSpecification": {
      "$ref": "#/$defs/CapacityReservationSpecification"
    },
    "InstanceLifecyclePolicy": {
      "$ref": "#/$defs/InstanceLifecyclePolicy"
    },
    "DeletionProtection": {
      "type": "string",
      "enum": [
        "none",
        "prevent-force-deletion",
        "prevent-all-deletion"
      ],
      "description": "The deletion protection setting for the Auto Scaling group. This setting helps safeguard your Auto Scaling group and its instances by controlling whether the DeleteAutoScalingGroup operation is allowed. When deletion protection is enabled, users cannot delete the Auto Scaling group according to the specified protection level until the setting is changed back to a less restrictive level. The valid values are none, prevent-force-deletion, and prevent-all-deletion. Default: none For more information, see Configure deletion protection for your Amazon EC2 Auto Scaling resources in the Amazon EC2 Au"
    }
  },
  "required": [
    "AutoScalingGroupName"
  ],
  "$defs": {
    "AcceleratorCountRequest": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "integer",
          "description": "The minimum value."
        },
        "Max": {
          "type": "integer",
          "description": "The maximum value."
        }
      }
    },
    "AcceleratorTotalMemoryMiBRequest": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "integer",
          "description": "The memory minimum in MiB."
        },
        "Max": {
          "type": "integer",
          "description": "The memory maximum in MiB."
        }
      }
    },
    "AvailabilityZoneDistribution": {
      "type": "object",
      "properties": {
        "CapacityDistributionStrategy": {
          "type": "string",
          "enum": [
            "balanced-only",
            "balanced-best-effort",
            "reservations-then-balanced"
          ],
          "description": "If launches fail in an Availability Zone, the following strategies are available. The default is balanced-best-effort. balanced-only - If launches fail in an Availability Zone, Auto Scaling will continue to attempt to launch in the unhealthy zone to preserve a balanced distribution. balanced-best-effort - If launches fail in an Availability Zone, Auto Scaling will attempt to launch in another healthy Availability Zone instead. reservations-then-balanced - Auto Scaling will first attempt to launch into your Capacity Reservations, and then balance any remaining capacity across healthy Availabili"
        }
      }
    },
    "AvailabilityZoneImpairmentPolicy": {
      "type": "object",
      "properties": {
        "ZonalShiftEnabled": {
          "type": "boolean",
          "description": "If true, enable zonal shift for your Auto Scaling group."
        },
        "ImpairedZoneHealthCheckBehavior": {
          "type": "string",
          "enum": [
            "ReplaceUnhealthy",
            "IgnoreUnhealthy"
          ],
          "description": "Specifies the health check behavior for the impaired Availability Zone in an active zonal shift. If you select Replace unhealthy, instances that appear unhealthy will be replaced in all Availability Zones. If you select Ignore unhealthy, instances will not be replaced in the Availability Zone with the active zonal shift. For more information, see Auto Scaling group zonal shift in the Amazon EC2 Auto Scaling User Guide."
        }
      }
    },
    "BaselineEbsBandwidthMbpsRequest": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "integer",
          "description": "The minimum value in Mbps."
        },
        "Max": {
          "type": "integer",
          "description": "The maximum value in Mbps."
        }
      }
    },
    "BaselinePerformanceFactorsRequest": {
      "type": "object",
      "properties": {
        "Cpu": {
          "$ref": "#/$defs/CpuPerformanceFactorRequest"
        }
      }
    },
    "CapacityReservationSpecification": {
      "type": "object",
      "properties": {
        "CapacityReservationPreference": {
          "type": "string",
          "enum": [
            "capacity-reservations-only",
            "capacity-reservations-first",
            "none",
            "default"
          ],
          "description": "The capacity reservation preference. The following options are available: capacity-reservations-only - Auto Scaling will only launch instances into a Capacity Reservation or Capacity Reservation resource group. If capacity isn't available, instances will fail to launch. capacity-reservations-first - Auto Scaling will try to launch instances into a Capacity Reservation or Capacity Reservation resource group first. If capacity isn't available, instances will run in On-Demand capacity. none - Auto Scaling will not launch instances into a Capacity Reservation. Instances will run in On-Demand capac"
        },
        "CapacityReservationTarget": {
          "$ref": "#/$defs/CapacityReservationTarget"
        }
      }
    },
    "CapacityReservationTarget": {
      "type": "object",
      "properties": {
        "CapacityReservationIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The Capacity Reservation IDs to launch instances into."
        },
        "CapacityReservationResourceGroupArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The resource group ARNs of the Capacity Reservation to launch instances into."
        }
      }
    },
    "CpuPerformanceFactorRequest": {
      "type": "object",
      "properties": {
        "References": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PerformanceFactorReferenceRequest"
          },
          "description": "Specify an instance family to use as the baseline reference for CPU performance. All instance types that match your specified attributes will be compared against the CPU performance of the referenced instance family, regardless of CPU manufacturer or architecture differences. Currently only one instance family can be specified in the list."
        }
      }
    },
    "DistributionSegment": {
      "type": "object",
      "properties": {
        "TargetCapacityTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "on-demand-capacity-reservation",
              "capacity-block",
              "interruptible-capacity-reservation",
              "on-demand"
            ]
          },
          "description": "The capacity types to prioritize, in order. Amazon EC2 Auto Scaling attempts to launch instances in the priority order of the capacity types, and within each capacity type, in the order of instance types listed in your launch template Overrides. The following lists the valid values: on-demand-capacity-reservation On-Demand Capacity Reservations. capacity-block Capacity Blocks. interruptible-capacity-reservation Interruptible Capacity Reservations. on-demand On-Demand capacity. Include this value to allow the group to fall back to On-Demand capacity when the preceding capacity types are unavail"
        }
      }
    },
    "InstanceLifecyclePolicy": {
      "type": "object",
      "properties": {
        "RetentionTriggers": {
          "$ref": "#/$defs/RetentionTriggers"
        }
      }
    },
    "InstanceMaintenancePolicy": {
      "type": "object",
      "properties": {
        "MinHealthyPercentage": {
          "type": "integer",
          "description": "Specifies the lower threshold as a percentage of the desired capacity of the Auto Scaling group. It represents the minimum percentage of the group to keep in service, healthy, and ready to use to support your workload when replacing instances. Value range is 0 to 100. To clear a previously set value, specify a value of -1."
        },
        "MaxHealthyPercentage": {
          "type": "integer",
          "description": "Specifies the upper threshold as a percentage of the desired capacity of the Auto Scaling group. It represents the maximum percentage of the group that can be in service and healthy, or pending, to support your workload when replacing instances. Value range is 100 to 200. To clear a previously set value, specify a value of -1. Both MinHealthyPercentage and MaxHealthyPercentage must be specified, and the difference between them cannot be greater than 100. A large range increases the number of instances that can be replaced at the same time."
        }
      }
    },
    "InstanceRequirements": {
      "type": "object",
      "properties": {
        "VCpuCount": {
          "$ref": "#/$defs/VCpuCountRequest"
        },
        "MemoryMiB": {
          "$ref": "#/$defs/MemoryMiBRequest"
        },
        "CpuManufacturers": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "intel",
              "amd",
              "amazon-web-services",
              "apple"
            ]
          },
          "description": "Lists which specific CPU manufacturers to include. For instance types with Intel CPUs, specify intel. For instance types with AMD CPUs, specify amd. For instance types with Amazon Web Services CPUs, specify amazon-web-services. For instance types with Apple CPUs, specify apple. Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template. Default: Any manufacturer"
        },
        "MemoryGiBPerVCpu": {
          "$ref": "#/$defs/MemoryGiBPerVCpuRequest"
        },
        "ExcludedInstanceTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (*), to exclude an instance family, type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, Amazon EC2 Auto Scaling will exclude all the M5a instance types, but not the M5n instance types. If you specify ExcludedInstanceTypes, you can't specify AllowedInstanceTypes. Default: No excluded instance types"
        },
        "InstanceGenerations": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "current",
              "previous"
            ]
          },
          "description": "Indicates whether current or previous generation instance types are included. For current generation instance types, specify current. The current generation includes EC2 instance types currently recommended for use. This typically includes the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide. For previous generation instance types, specify previous. Default: Any current or previous generation"
        },
        "SpotMaxPricePercentageOverLowestPrice": {
          "type": "integer",
          "description": "[Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes,"
        },
        "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice": {
          "type": "integer",
          "description": "[Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes"
        },
        "OnDemandMaxPricePercentageOverLowestPrice": {
          "type": "integer",
          "description": "[Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with y"
        },
        "BareMetal": {
          "type": "string",
          "enum": [
            "included",
            "excluded",
            "required"
          ],
          "description": "Indicates whether bare metal instance types are included, excluded, or required. Default: excluded"
        },
        "BurstablePerformance": {
          "type": "string",
          "enum": [
            "included",
            "excluded",
            "required"
          ],
          "description": "Indicates whether burstable performance instance types are included, excluded, or required. For more information, see Burstable performance instances in the Amazon EC2 User Guide. Default: excluded"
        },
        "RequireHibernateSupport": {
          "type": "boolean",
          "description": "Indicates whether instance types must provide On-Demand Instance hibernation support. Default: false"
        },
        "NetworkInterfaceCount": {
          "$ref": "#/$defs/NetworkInterfaceCountRequest"
        },
        "LocalStorage": {
          "type": "string",
          "enum": [
            "included",
            "excluded",
            "required"
          ],
          "description": "Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, see Amazon EC2 instance store in the Amazon EC2 User Guide. Default: included"
        },
        "LocalStorageTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "hdd",
              "ssd"
            ]
          },
          "description": "Indicates the type of local storage that is required. For instance types with hard disk drive (HDD) storage, specify hdd. For instance types with solid state drive (SSD) storage, specify ssd. Default: Any local storage type"
        },
        "TotalLocalStorageGB": {
          "$ref": "#/$defs/TotalLocalStorageGBRequest"
        },
        "BaselineEbsBandwidthMbps": {
          "$ref": "#/$defs/BaselineEbsBandwidthMbpsRequest"
        },
        "AcceleratorTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "gpu",
              "fpga",
              "inference"
            ]
          },
          "description": "Lists the accelerator types that must be on an instance type. For instance types with GPU accelerators, specify gpu. For instance types with FPGA accelerators, specify fpga. For instance types with inference accelerators, specify inference. Default: Any accelerator type"
        },
        "AcceleratorCount": {
          "$ref": "#/$defs/AcceleratorCountRequest"
        },
        "AcceleratorManufacturers": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "nvidia",
              "amd",
              "amazon-web-services",
              "xilinx"
            ]
          },
          "description": "Indicates whether instance types must have accelerators by specific manufacturers. For instance types with NVIDIA devices, specify nvidia. For instance types with AMD devices, specify amd. For instance types with Amazon Web Services devices, specify amazon-web-services. For instance types with Xilinx devices, specify xilinx. Default: Any manufacturer"
        },
        "AcceleratorNames": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "a100",
              "v100",
              "k80",
              "t4",
              "m60",
              "radeon-pro-v520",
              "vu9p"
            ]
          },
          "description": "Lists the accelerators that must be on an instance type. For instance types with NVIDIA A100 GPUs, specify a100. For instance types with NVIDIA V100 GPUs, specify v100. For instance types with NVIDIA K80 GPUs, specify k80. For instance types with NVIDIA T4 GPUs, specify t4. For instance types with NVIDIA M60 GPUs, specify m60. For instance types with AMD Radeon Pro V520 GPUs, specify radeon-pro-v520. For instance types with Xilinx VU9P FPGAs, specify vu9p. Default: Any accelerator"
        },
        "AcceleratorTotalMemoryMiB": {
          "$ref": "#/$defs/AcceleratorTotalMemoryMiBRequest"
        },
        "NetworkBandwidthGbps": {
          "$ref": "#/$defs/NetworkBandwidthGbpsRequest"
        },
        "AllowedInstanceTypes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes. You can use strings with one or more wild cards, represented by an asterisk (*), to allow an instance type, size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*, r*, *3*. For example, if you specify c5*, Amazon EC2 Auto Scaling will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, Amazon EC2 Auto Scaling will allow all the M5a instance types, but not the M5n instance types"
        },
        "BaselinePerformanceFactors": {
          "$ref": "#/$defs/BaselinePerformanceFactorsRequest"
        }
      },
      "required": [
        "VCpuCount",
        "MemoryMiB"
      ]
    },
    "InstancesDistribution": {
      "type": "object",
      "properties": {
        "OnDemandAllocationStrategy": {
          "type": "string",
          "description": "The allocation strategy to apply to your On-Demand Instances when they are launched. Possible instance types are determined by the launch template overrides that you specify. The following lists the valid values: lowest-price Uses price to determine which instance types are the highest priority, launching the lowest priced instance types within an Availability Zone first. This is the default value for Auto Scaling groups that specify InstanceRequirements. prioritized You set the order of instance types for the launch template overrides from highest to lowest priority (from first to last in the"
        },
        "OnDemandBaseCapacity": {
          "type": "integer",
          "description": "The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is launched first as your group scales. This number has the same unit of measurement as the group's desired capacity. If you change the default unit of measurement (number of instances) by specifying weighted capacity values in your launch template overrides list, or by changing the default desired capacity type setting of the group, you must specify this number using the same unit of measurement. Default: 0"
        },
        "OnDemandPercentageAboveBaseCapacity": {
          "type": "integer",
          "description": "Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity. Expressed as a number (for example, 20 specifies 20% On-Demand Instances, 80% Spot Instances). If set to 100, only On-Demand Instances are used. Default: 100"
        },
        "SpotAllocationStrategy": {
          "type": "string",
          "description": "The allocation strategy to apply to your Spot Instances when they are launched. Possible instance types are determined by the launch template overrides that you specify. The following lists the valid values: capacity-optimized Requests Spot Instances using pools that are optimally chosen based on the available Spot capacity. This strategy has the lowest risk of interruption. To give certain instance types a higher chance of launching first, use capacity-optimized-prioritized. capacity-optimized-prioritized You set the order of instance types for the launch template overrides from highest to lo"
        },
        "SpotInstancePools": {
          "type": "integer",
          "description": "The number of Spot Instance pools across which to allocate your Spot Instances. The Spot pools are determined from the different instance types in the overrides. Valid only when the SpotAllocationStrategy is lowest-price. Value must be in the range of 1–20. Default: 2"
        },
        "SpotMaxPrice": {
          "type": "string",
          "description": "The maximum price per unit hour that you are willing to pay for a Spot Instance. If your maximum price is lower than the Spot price for the instance types that you selected, your Spot Instances are not launched. We do not recommend specifying a maximum price because it can lead to increased interruptions. When Spot Instances launch, you pay the current Spot price. To remove a maximum price that you previously set, include the property but specify an empty string (\"\") for the value. If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify one"
        },
        "DistributionSegments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DistributionSegment"
          },
          "description": "The Distribution Segments configuration. Each segment contains an ordered list of capacity types to prioritize. For more information, see Use Distribution Segments to target multiple capacity types in the Amazon EC2 Auto Scaling User Guide."
        }
      }
    },
    "LaunchTemplate": {
      "type": "object",
      "properties": {
        "LaunchTemplateSpecification": {
          "$ref": "#/$defs/LaunchTemplateSpecification"
        },
        "Overrides": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LaunchTemplateOverrides"
          },
          "description": "Any properties that you specify override the same properties in the launch template."
        }
      }
    },
    "LaunchTemplateOverrides": {
      "type": "object",
      "properties": {
        "InstanceType": {
          "type": "string",
          "description": "The instance type, such as m3.xlarge. You must specify an instance type that is supported in your requested Region and Availability Zones. For more information, see Instance types in the Amazon EC2 User Guide. You can specify up to 40 instance types per Auto Scaling group."
        },
        "WeightedCapacity": {
          "type": "string",
          "description": "If you provide a list of instance types to use, you can specify the number of capacity units provided by each instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic. When a Spot or On-Demand Instance is launched, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling launches instances until the desired capacity is totally fulfilled, even if this results in an overage. For example, if there are two units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only launch an instance with a WeightedCapacity"
        },
        "LaunchTemplateSpecification": {
          "$ref": "#/$defs/LaunchTemplateSpecification"
        },
        "InstanceRequirements": {
          "$ref": "#/$defs/InstanceRequirements"
        },
        "ImageId": {
          "type": "string",
          "description": "The ID of the Amazon Machine Image (AMI) to use for instances launched with this override. When using Instance Refresh with ReplaceRootVolume strategy, this specifies the AMI for root volume replacement operations. For ReplaceRootVolume operations: All overrides in the MixedInstancesPolicy must specify an ImageId The AMI must contain only a single root volume Root volume replacement doesn't support multi-volume AMIs"
        }
      }
    },
    "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."
        }
      }
    },
    "MemoryGiBPerVCpuRequest": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "number",
          "description": "The memory minimum in GiB."
        },
        "Max": {
          "type": "number",
          "description": "The memory maximum in GiB."
        }
      }
    },
    "MemoryMiBRequest": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "integer",
          "description": "The memory minimum in MiB."
        },
        "Max": {
          "type": "integer",
          "description": "The memory maximum in MiB."
        }
      },
      "required": [
        "Min"
      ]
    },
    "MixedInstancesPolicy": {
      "type": "object",
      "properties": {
        "LaunchTemplate": {
          "$ref": "#/$defs/LaunchTemplate"
        },
        "InstancesDistribution": {
          "$ref": "#/$defs/InstancesDistribution"
        }
      }
    },
    "NetworkBandwidthGbpsRequest": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "number",
          "description": "The minimum amount of network bandwidth, in gigabits per second (Gbps)."
        },
        "Max": {
          "type": "number",
          "description": "The maximum amount of network bandwidth, in gigabits per second (Gbps)."
        }
      }
    },
    "NetworkInterfaceCountRequest": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "integer",
          "description": "The minimum number of network interfaces."
        },
        "Max": {
          "type": "integer",
          "description": "The maximum number of network interfaces."
        }
      }
    },
    "PerformanceFactorReferenceRequest": {
      "type": "object",
      "properties": {
        "InstanceFamily": {
          "type": "string",
          "description": "The instance family to use as a baseline reference. Make sure that you specify the correct value for the instance family. The instance family is everything before the period (.) in the instance type name. For example, in the instance c6i.large, the instance family is c6i, not c6. For more information, see Amazon EC2 instance type naming conventions in Amazon EC2 Instance Types. The following instance types are not supported for performance protection. c1 g3| g3s hpc7g m1| m2 mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro p3dn | p4d | p5 t1 u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9"
        }
      }
    },
    "RetentionTriggers": {
      "type": "object",
      "properties": {
        "TerminateHookAbandon": {
          "type": "string",
          "enum": [
            "retain",
            "terminate"
          ],
          "description": "Specifies the action when a termination lifecycle hook is abandoned due to failure, timeout, or explicit abandonment (calling CompleteLifecycleAction). Set to retain to move instances to a retained state. Set to terminate for default termination behavior. Retained instances don't count toward desired capacity and remain until you call TerminateInstanceInAutoScalingGroup."
        }
      }
    },
    "TotalLocalStorageGBRequest": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "number",
          "description": "The storage minimum in GB."
        },
        "Max": {
          "type": "number",
          "description": "The storage maximum in GB."
        }
      }
    },
    "VCpuCountRequest": {
      "type": "object",
      "properties": {
        "Min": {
          "type": "integer",
          "description": "The minimum number of vCPUs."
        },
        "Max": {
          "type": "integer",
          "description": "The maximum number of vCPUs."
        }
      },
      "required": [
        "Min"
      ]
    }
  }
}