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

Implementations§

source§

impl InstanceRequirementsRequestBuilder

source

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

The minimum and maximum number of vCPUs.

source

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

The minimum and maximum number of vCPUs.

source

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

The minimum and maximum number of vCPUs.

source

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

The minimum and maximum amount of memory, in MiB.

source

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

The minimum and maximum amount of memory, in MiB.

source

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

The minimum and maximum amount of memory, 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.

The 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 manufacturer with the CPU 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

The 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 manufacturer with the CPU 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>>

The 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 manufacturer with the CPU 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_gi_b_per_v_cpu(self, input: MemoryGiBPerVCpuRequest) -> Self

The minimum and maximum amount of memory per vCPU, in GiB.

Default: No minimum or maximum limits

source

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

The minimum and maximum amount of memory per vCPU, in GiB.

Default: No minimum or maximum limits

source

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

The minimum and maximum amount of memory per vCPU, 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*,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, Amazon EC2 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*,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, Amazon EC2 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*,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, Amazon EC2 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. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide.

For current generation instance types, specify current.

For previous generation instance types, specify previous.

Default: Current and previous generation instance types

source

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

Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide.

For current generation instance types, specify current.

For previous generation instance types, specify previous.

Default: Current and previous generation instance types

source

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

Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically the latest two to three generations in each instance family. For more information, see Instance types in the Amazon EC2 User Guide.

For current generation instance types, specify current.

For previous generation instance types, specify previous.

Default: Current and previous generation instance types

source

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

The price protection threshold for Spot Instance. This is the maximum you’ll pay for an Spot Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

To turn off price protection, specify a high value, such as 999999.

This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements.

If you set TargetCapacityUnitType 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 Instance. This is the maximum you’ll pay for an Spot Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

To turn off price protection, specify a high value, such as 999999.

This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements.

If you set TargetCapacityUnitType 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 Instance. This is the maximum you’ll pay for an Spot Instance, expressed as a percentage above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

To turn off price protection, specify a high value, such as 999999.

This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements.

If you set TargetCapacityUnitType 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 above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

To turn off price protection, specify a high value, such as 999999.

This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements.

If you set TargetCapacityUnitType 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 above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

To turn off price protection, specify a high value, such as 999999.

This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements.

If you set TargetCapacityUnitType 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 above the least expensive current generation M, C, or R instance type with your specified attributes. When Amazon EC2 selects instance types with your attributes, it excludes instance types priced above your threshold.

The parameter accepts an integer, which Amazon EC2 interprets as a percentage.

To turn off price protection, specify a high value, such as 999999.

This parameter is not supported for GetSpotPlacementScores and GetInstanceTypesFromInstanceRequirements.

If you set TargetCapacityUnitType 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 must be included, excluded, or required.

  • To include bare metal instance types, specify included.

  • To require only bare metal instance types, specify required.

  • To exclude bare metal instance types, specify excluded.

Default: excluded

source

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

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

  • To include bare metal instance types, specify included.

  • To require only bare metal instance types, specify required.

  • To exclude bare metal instance types, specify excluded.

Default: excluded

source

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

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

  • To include bare metal instance types, specify included.

  • To require only bare metal instance types, specify required.

  • To exclude bare metal instance types, specify excluded.

Default: excluded

source

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

Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances.

  • To include burstable performance instance types, specify included.

  • To require only burstable performance instance types, specify required.

  • To exclude burstable performance instance types, specify excluded.

Default: excluded

source

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

Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances.

  • To include burstable performance instance types, specify included.

  • To require only burstable performance instance types, specify required.

  • To exclude burstable performance instance types, specify excluded.

Default: excluded

source

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

Indicates whether burstable performance T instance types are included, excluded, or required. For more information, see Burstable performance instances.

  • To include burstable performance instance types, specify included.

  • To require only burstable performance instance types, specify required.

  • To exclude burstable performance instance types, specify excluded.

Default: excluded

source

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

Indicates whether instance types must support hibernation for On-Demand Instances.

This parameter is not supported for GetSpotPlacementScores.

Default: false

source

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

Indicates whether instance types must support hibernation for On-Demand Instances.

This parameter is not supported for GetSpotPlacementScores.

Default: false

source

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

Indicates whether instance types must support hibernation for On-Demand Instances.

This parameter is not supported for GetSpotPlacementScores.

Default: false

source

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

The minimum and maximum number of network interfaces.

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.

Default: No minimum or maximum limits

source

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

The minimum and maximum number of network interfaces.

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, Amazon EC2 instance store in the Amazon EC2 User Guide.

  • To include instance types with instance store volumes, specify included.

  • To require only instance types with instance store volumes, specify required.

  • To exclude instance types with instance store volumes, specify excluded.

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, Amazon EC2 instance store in the Amazon EC2 User Guide.

  • To include instance types with instance store volumes, specify included.

  • To require only instance types with instance store volumes, specify required.

  • To exclude instance types with instance store volumes, specify excluded.

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, Amazon EC2 instance store in the Amazon EC2 User Guide.

  • To include instance types with instance store volumes, specify included.

  • To require only instance types with instance store volumes, specify required.

  • To exclude instance types with instance store volumes, specify excluded.

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.

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: hdd and ssd

source

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

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: hdd and ssd

source

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

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: hdd and ssd

source

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

The minimum and maximum amount of total local storage, 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 amount of total local storage, in GB.

Default: No minimum or maximum limits

source

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

The minimum and maximum amount of total local storage, 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 to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide.

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 to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide.

Default: No minimum or maximum limits

source

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

The minimum and maximum baseline bandwidth to Amazon EBS, in Mbps. For more information, see Amazon EBS–optimized instances in the Amazon EC2 User Guide.

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.

The accelerator types that must be on the instance type.

  • To include instance types with GPU hardware, specify gpu.

  • To include instance types with FPGA hardware, specify fpga.

  • To include instance types with inference hardware, specify inference.

Default: Any accelerator type

source

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

The accelerator types that must be on the instance type.

  • To include instance types with GPU hardware, specify gpu.

  • To include instance types with FPGA hardware, specify fpga.

  • To include instance types with inference hardware, specify inference.

Default: Any accelerator type

source

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

The accelerator types that must be on the instance type.

  • To include instance types with GPU hardware, specify gpu.

  • To include instance types with FPGA hardware, specify fpga.

  • To include instance types with inference hardware, 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) on an instance.

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) on an instance.

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) on an instance.

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.

The accelerators that must be on the 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.

  • For instance types with Amazon Web Services Inferentia chips, specify inferentia.

  • For instance types with NVIDIA GRID K520 GPUs, specify k520.

Default: Any accelerator

source

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

The accelerators that must be on the 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.

  • For instance types with Amazon Web Services Inferentia chips, specify inferentia.

  • For instance types with NVIDIA GRID K520 GPUs, specify k520.

Default: Any accelerator

source

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

The accelerators that must be on the 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.

  • For instance types with Amazon Web Services Inferentia chips, specify inferentia.

  • For instance types with NVIDIA GRID K520 GPUs, specify k520.

Default: Any accelerator

source

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

The minimum and maximum amount of total accelerator memory, in MiB.

Default: No minimum or maximum limits

source

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

The minimum and maximum amount of total accelerator memory, in MiB.

Default: No minimum or maximum limits

source

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

The minimum and maximum amount of total accelerator memory, in MiB.

Default: No minimum or maximum limits

source

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

The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide.

Default: No minimum or maximum limits

source

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

The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide.

Default: No minimum or maximum limits

source

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

The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see Amazon EC2 instance network bandwidth in the Amazon EC2 User Guide.

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 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, Amazon EC2 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 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, Amazon EC2 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 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify m5a.*, Amazon EC2 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) -> InstanceRequirementsRequest

Consumes the builder and constructs a InstanceRequirementsRequest.

Trait Implementations§

source§

impl Clone for InstanceRequirementsRequestBuilder

source§

fn clone(&self) -> InstanceRequirementsRequestBuilder

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 InstanceRequirementsRequestBuilder

source§

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

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

impl Default for InstanceRequirementsRequestBuilder

source§

fn default() -> InstanceRequirementsRequestBuilder

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

impl PartialEq<InstanceRequirementsRequestBuilder> for InstanceRequirementsRequestBuilder

source§

fn eq(&self, other: &InstanceRequirementsRequestBuilder) -> 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 InstanceRequirementsRequestBuilder

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<T> Same<T> 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