#[non_exhaustive]
pub struct InstanceRequirementsBuilder { /* private fields */ }
Expand description

A builder for InstanceRequirements.

Implementations§

source§

impl InstanceRequirementsBuilder

source

pub fn v_cpu_count(self, input: VCpuCountRequest) -> Self

The minimum and maximum number of vCPUs for an instance type.

This field is required.
source

pub fn set_v_cpu_count(self, input: Option<VCpuCountRequest>) -> Self

The minimum and maximum number of vCPUs for an instance type.

source

pub fn get_v_cpu_count(&self) -> &Option<VCpuCountRequest>

The minimum and maximum number of vCPUs for an instance type.

source

pub fn memory_mib(self, input: MemoryMiBRequest) -> Self

The minimum and maximum instance memory size for an instance type, in MiB.

This field is required.
source

pub fn set_memory_mib(self, input: Option<MemoryMiBRequest>) -> Self

The minimum and maximum instance memory size for an instance type, in MiB.

source

pub fn get_memory_mib(&self) -> &Option<MemoryMiBRequest>

The minimum and maximum instance memory size for an instance type, in MiB.

source

pub fn cpu_manufacturers(self, input: CpuManufacturer) -> Self

Appends an item to cpu_manufacturers.

To override the contents of this collection use set_cpu_manufacturers.

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.

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

source

pub fn set_cpu_manufacturers(self, input: Option<Vec<CpuManufacturer>>) -> Self

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.

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

source

pub fn get_cpu_manufacturers(&self) -> &Option<Vec<CpuManufacturer>>

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.

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

source

pub fn memory_gib_per_v_cpu(self, input: MemoryGiBPerVCpuRequest) -> Self

The minimum and maximum amount of memory per vCPU for an instance type, in GiB.

Default: No minimum or maximum limits

source

pub fn set_memory_gib_per_v_cpu( self, input: Option<MemoryGiBPerVCpuRequest> ) -> Self

The minimum and maximum amount of memory per vCPU for an instance type, in GiB.

Default: No minimum or maximum limits

source

pub fn get_memory_gib_per_v_cpu(&self) -> &Option<MemoryGiBPerVCpuRequest>

The minimum and maximum amount of memory per vCPU for an instance type, in GiB.

Default: No minimum or maximum limits

source

pub fn excluded_instance_types(self, input: impl Into<String>) -> Self

Appends an item to excluded_instance_types.

To override the contents of this collection use set_excluded_instance_types.

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

source

pub fn set_excluded_instance_types(self, input: Option<Vec<String>>) -> Self

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

source

pub fn get_excluded_instance_types(&self) -> &Option<Vec<String>>

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

source

pub fn instance_generations(self, input: InstanceGeneration) -> Self

Appends an item to instance_generations.

To override the contents of this collection use set_instance_generations.

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 Linux Instances.

  • For previous generation instance types, specify previous.

Default: Any current or previous generation

source

pub fn set_instance_generations( self, input: Option<Vec<InstanceGeneration>> ) -> Self

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 Linux Instances.

  • For previous generation instance types, specify previous.

Default: Any current or previous generation

source

pub fn get_instance_generations(&self) -> &Option<Vec<InstanceGeneration>>

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 Linux Instances.

  • For previous generation instance types, specify previous.

Default: Any current or previous generation

source

pub fn spot_max_price_percentage_over_lowest_price(self, input: i32) -> Self

The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999.

If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.

Default: 100

source

pub fn set_spot_max_price_percentage_over_lowest_price( self, input: Option<i32> ) -> Self

The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999.

If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.

Default: 100

source

pub fn get_spot_max_price_percentage_over_lowest_price(&self) -> &Option<i32>

The price protection threshold for Spot Instances. This is the maximum you’ll pay for a Spot Instance, expressed as a percentage higher than the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999.

If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.

Default: 100

source

pub fn on_demand_max_price_percentage_over_lowest_price( self, input: i32 ) -> Self

The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999.

If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.

Default: 20

source

pub fn set_on_demand_max_price_percentage_over_lowest_price( self, input: Option<i32> ) -> Self

The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999.

If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.

Default: 20

source

pub fn get_on_demand_max_price_percentage_over_lowest_price( &self ) -> &Option<i32>

The price protection threshold for On-Demand Instances. This is the maximum you’ll pay for an On-Demand Instance, expressed as a percentage higher than the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price is higher than your threshold. The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. To turn off price protection, specify a high value, such as 999999.

If you set DesiredCapacityType to vcpu or memory-mib, the price protection threshold is applied based on the per vCPU or per memory price instead of the per instance price.

Default: 20

source

pub fn bare_metal(self, input: BareMetal) -> Self

Indicates whether bare metal instance types are included, excluded, or required.

Default: excluded

source

pub fn set_bare_metal(self, input: Option<BareMetal>) -> Self

Indicates whether bare metal instance types are included, excluded, or required.

Default: excluded

source

pub fn get_bare_metal(&self) -> &Option<BareMetal>

Indicates whether bare metal instance types are included, excluded, or required.

Default: excluded

source

pub fn burstable_performance(self, input: BurstablePerformance) -> Self

Indicates whether burstable performance instance types are included, excluded, or required. For more information, see Burstable performance instances in the Amazon EC2 User Guide for Linux Instances.

Default: excluded

source

pub fn set_burstable_performance( self, input: Option<BurstablePerformance> ) -> Self

Indicates whether burstable performance instance types are included, excluded, or required. For more information, see Burstable performance instances in the Amazon EC2 User Guide for Linux Instances.

Default: excluded

source

pub fn get_burstable_performance(&self) -> &Option<BurstablePerformance>

Indicates whether burstable performance instance types are included, excluded, or required. For more information, see Burstable performance instances in the Amazon EC2 User Guide for Linux Instances.

Default: excluded

source

pub fn require_hibernate_support(self, input: bool) -> Self

Indicates whether instance types must provide On-Demand Instance hibernation support.

Default: false

source

pub fn set_require_hibernate_support(self, input: Option<bool>) -> Self

Indicates whether instance types must provide On-Demand Instance hibernation support.

Default: false

source

pub fn get_require_hibernate_support(&self) -> &Option<bool>

Indicates whether instance types must provide On-Demand Instance hibernation support.

Default: false

source

pub fn network_interface_count( self, input: NetworkInterfaceCountRequest ) -> Self

The minimum and maximum number of network interfaces for an instance type.

Default: No minimum or maximum limits

source

pub fn set_network_interface_count( self, input: Option<NetworkInterfaceCountRequest> ) -> Self

The minimum and maximum number of network interfaces for an instance type.

Default: No minimum or maximum limits

source

pub fn get_network_interface_count( &self ) -> &Option<NetworkInterfaceCountRequest>

The minimum and maximum number of network interfaces for an instance type.

Default: No minimum or maximum limits

source

pub fn local_storage(self, input: LocalStorage) -> Self

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 for Linux Instances.

Default: included

source

pub fn set_local_storage(self, input: Option<LocalStorage>) -> Self

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 for Linux Instances.

Default: included

source

pub fn get_local_storage(&self) -> &Option<LocalStorage>

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 for Linux Instances.

Default: included

source

pub fn local_storage_types(self, input: LocalStorageType) -> Self

Appends an item to local_storage_types.

To override the contents of this collection use set_local_storage_types.

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

source

pub fn set_local_storage_types( self, input: Option<Vec<LocalStorageType>> ) -> Self

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

source

pub fn get_local_storage_types(&self) -> &Option<Vec<LocalStorageType>>

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

source

pub fn total_local_storage_gb(self, input: TotalLocalStorageGbRequest) -> Self

The minimum and maximum total local storage size for an instance type, in GB.

Default: No minimum or maximum limits

source

pub fn set_total_local_storage_gb( self, input: Option<TotalLocalStorageGbRequest> ) -> Self

The minimum and maximum total local storage size for an instance type, in GB.

Default: No minimum or maximum limits

source

pub fn get_total_local_storage_gb(&self) -> &Option<TotalLocalStorageGbRequest>

The minimum and maximum total local storage size for an instance type, in GB.

Default: No minimum or maximum limits

source

pub fn baseline_ebs_bandwidth_mbps( self, input: BaselineEbsBandwidthMbpsRequest ) -> Self

The minimum and maximum baseline bandwidth performance for an instance type, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide for Linux Instances.

Default: No minimum or maximum limits

source

pub fn set_baseline_ebs_bandwidth_mbps( self, input: Option<BaselineEbsBandwidthMbpsRequest> ) -> Self

The minimum and maximum baseline bandwidth performance for an instance type, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide for Linux Instances.

Default: No minimum or maximum limits

source

pub fn get_baseline_ebs_bandwidth_mbps( &self ) -> &Option<BaselineEbsBandwidthMbpsRequest>

The minimum and maximum baseline bandwidth performance for an instance type, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide for Linux Instances.

Default: No minimum or maximum limits

source

pub fn accelerator_types(self, input: AcceleratorType) -> Self

Appends an item to accelerator_types.

To override the contents of this collection use set_accelerator_types.

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

source

pub fn set_accelerator_types(self, input: Option<Vec<AcceleratorType>>) -> Self

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

source

pub fn get_accelerator_types(&self) -> &Option<Vec<AcceleratorType>>

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

source

pub fn accelerator_count(self, input: AcceleratorCountRequest) -> Self

The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) for an instance type.

To exclude accelerator-enabled instance types, set Max to 0.

Default: No minimum or maximum limits

source

pub fn set_accelerator_count( self, input: Option<AcceleratorCountRequest> ) -> Self

The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) for an instance type.

To exclude accelerator-enabled instance types, set Max to 0.

Default: No minimum or maximum limits

source

pub fn get_accelerator_count(&self) -> &Option<AcceleratorCountRequest>

The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) for an instance type.

To exclude accelerator-enabled instance types, set Max to 0.

Default: No minimum or maximum limits

source

pub fn accelerator_manufacturers(self, input: AcceleratorManufacturer) -> Self

Appends an item to accelerator_manufacturers.

To override the contents of this collection use set_accelerator_manufacturers.

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

source

pub fn set_accelerator_manufacturers( self, input: Option<Vec<AcceleratorManufacturer>> ) -> Self

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

source

pub fn get_accelerator_manufacturers( &self ) -> &Option<Vec<AcceleratorManufacturer>>

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

source

pub fn accelerator_names(self, input: AcceleratorName) -> Self

Appends an item to accelerator_names.

To override the contents of this collection use set_accelerator_names.

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

source

pub fn set_accelerator_names(self, input: Option<Vec<AcceleratorName>>) -> Self

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

source

pub fn get_accelerator_names(&self) -> &Option<Vec<AcceleratorName>>

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

source

pub fn accelerator_total_memory_mib( self, input: AcceleratorTotalMemoryMiBRequest ) -> Self

The minimum and maximum total memory size for the accelerators on an instance type, in MiB.

Default: No minimum or maximum limits

source

pub fn set_accelerator_total_memory_mib( self, input: Option<AcceleratorTotalMemoryMiBRequest> ) -> Self

The minimum and maximum total memory size for the accelerators on an instance type, in MiB.

Default: No minimum or maximum limits

source

pub fn get_accelerator_total_memory_mib( &self ) -> &Option<AcceleratorTotalMemoryMiBRequest>

The minimum and maximum total memory size for the accelerators on an instance type, in MiB.

Default: No minimum or maximum limits

source

pub fn network_bandwidth_gbps(self, input: NetworkBandwidthGbpsRequest) -> Self

The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).

Default: No minimum or maximum limits

source

pub fn set_network_bandwidth_gbps( self, input: Option<NetworkBandwidthGbpsRequest> ) -> Self

The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).

Default: No minimum or maximum limits

source

pub fn get_network_bandwidth_gbps(&self) -> &Option<NetworkBandwidthGbpsRequest>

The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).

Default: No minimum or maximum limits

source

pub fn allowed_instance_types(self, input: impl Into<String>) -> Self

Appends an item to allowed_instance_types.

To override the contents of this collection use set_allowed_instance_types.

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.

If you specify AllowedInstanceTypes, you can't specify ExcludedInstanceTypes.

Default: All instance types

source

pub fn set_allowed_instance_types(self, input: Option<Vec<String>>) -> Self

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.

If you specify AllowedInstanceTypes, you can't specify ExcludedInstanceTypes.

Default: All instance types

source

pub fn get_allowed_instance_types(&self) -> &Option<Vec<String>>

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.

If you specify AllowedInstanceTypes, you can't specify ExcludedInstanceTypes.

Default: All instance types

source

pub fn build(self) -> InstanceRequirements

Consumes the builder and constructs a InstanceRequirements.

Trait Implementations§

source§

impl Clone for InstanceRequirementsBuilder

source§

fn clone(&self) -> InstanceRequirementsBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InstanceRequirementsBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for InstanceRequirementsBuilder

source§

fn default() -> InstanceRequirementsBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for InstanceRequirementsBuilder

source§

fn eq(&self, other: &InstanceRequirementsBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for InstanceRequirementsBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more