Class CapacityProviderManagedInstancesProviderInstanceLaunchTemplateInstanceRequirements


  • public final class CapacityProviderManagedInstancesProviderInstanceLaunchTemplateInstanceRequirements
    extends java.lang.Object
    • Method Detail

      • acceleratorManufacturers

        public java.util.List<java.lang.String> acceleratorManufacturers()
        Returns:
        Accelerator manufacturers to include. You can specify `nvidia`, `amd`, `amazon-web-services`, `xilinx`, or `habana` depending on your accelerator requirements. Valid values are `amazon-web-services`, `amd`, `nvidia`, `xilinx`, `habana`.
      • acceleratorNames

        public java.util.List<java.lang.String> acceleratorNames()
        Returns:
        Specific accelerator names to include. For example, you can specify `a100`, `v100`, `k80`, or other specific accelerator models. Valid values are `a100`, `inferentia`, `k520`, `k80`, `m60`, `radeon-pro-v520`, `t4`, `vu9p`, `v100`, `a10g`, `h100`, `t4g`.
      • acceleratorTypes

        public java.util.List<java.lang.String> acceleratorTypes()
        Returns:
        Accelerator types to include. You can specify `gpu` for GPUs, `fpga` for field programmable gate arrays, or `inference` for machine learning inference accelerators. Valid values are `gpu`, `fpga`, `inference`.
      • allowedInstanceTypes

        public java.util.List<java.lang.String> allowedInstanceTypes()
        Returns:
        Instance types to include in the selection. When specified, Amazon ECS only considers these instance types, subject to the other requirements specified. Maximum of 400 instance types. You can specify instance type patterns using wildcards (e.g., `m5.*`).
      • bareMetal

        public java.util.Optional<java.lang.String> bareMetal()
        Returns:
        Whether to include bare metal instance types. Set to `included` to allow bare metal instances, `excluded` to exclude them, or `required` to use only bare metal instances. Valid values are `included`, `excluded`, `required`.
      • burstablePerformance

        public java.util.Optional<java.lang.String> burstablePerformance()
        Returns:
        Whether to include burstable performance instance types (T2, T3, T3a, T4g). Set to `included` to allow burstable instances, `excluded` to exclude them, or `required` to use only burstable instances. Valid values are `included`, `excluded`, `required`.
      • cpuManufacturers

        public java.util.List<java.lang.String> cpuManufacturers()
        Returns:
        CPU manufacturers to include or exclude. You can specify `intel`, `amd`, or `amazon-web-services` to control which CPU types are used for your workloads. Valid values are `intel`, `amd`, `amazon-web-services`.
      • excludedInstanceTypes

        public java.util.List<java.lang.String> excludedInstanceTypes()
        Returns:
        Instance types to exclude from selection. Use this to prevent Amazon ECS from selecting specific instance types that may not be suitable for your workloads. Maximum of 400 instance types.
      • instanceGenerations

        public java.util.List<java.lang.String> instanceGenerations()
        Returns:
        Instance generations to include. You can specify `current` to use the latest generation instances, or `previous` to include previous generation instances for cost optimization. Valid values are `current`, `previous`.
      • localStorage

        public java.util.Optional<java.lang.String> localStorage()
        Returns:
        Whether to include instance types with local storage. Set to `included` to allow local storage, `excluded` to exclude it, or `required` to use only instances with local storage. Valid values are `included`, `excluded`, `required`.
      • localStorageTypes

        public java.util.List<java.lang.String> localStorageTypes()
        Returns:
        Local storage types to include. You can specify `hdd` for hard disk drives, `ssd` for solid state drives, or both. Valid values are `hdd`, `ssd`.
      • maxSpotPriceAsPercentageOfOptimalOnDemandPrice

        public java.util.Optional<java.lang.Integer> maxSpotPriceAsPercentageOfOptimalOnDemandPrice()
        Returns:
        Maximum price for Spot instances as a percentage of the optimal On-Demand price. This provides more precise cost control for Spot instance selection.
      • onDemandMaxPricePercentageOverLowestPrice

        public java.util.Optional<java.lang.Integer> onDemandMaxPricePercentageOverLowestPrice()
        Returns:
        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. When Amazon ECS selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
      • requireHibernateSupport

        public java.util.Optional<java.lang.Boolean> requireHibernateSupport()
        Returns:
        Whether the instance types must support hibernation. When set to `true`, only instance types that support hibernation are selected.
      • spotMaxPricePercentageOverLowestPrice

        public java.util.Optional<java.lang.Integer> spotMaxPricePercentageOverLowestPrice()
        Returns:
        Maximum price for Spot instances as a percentage over the lowest priced On-Demand instance. This helps control Spot instance costs while maintaining access to capacity.