#[non_exhaustive]pub struct InstanceRequirementsRequestBuilder { /* private fields */ }
Expand description
A builder for InstanceRequirementsRequest
.
Implementations§
source§impl InstanceRequirementsRequestBuilder
impl InstanceRequirementsRequestBuilder
sourcepub fn v_cpu_count(self, input: VCpuCountRangeRequest) -> Self
pub fn v_cpu_count(self, input: VCpuCountRangeRequest) -> Self
The minimum and maximum number of vCPUs.
sourcepub fn set_v_cpu_count(self, input: Option<VCpuCountRangeRequest>) -> Self
pub fn set_v_cpu_count(self, input: Option<VCpuCountRangeRequest>) -> Self
The minimum and maximum number of vCPUs.
sourcepub fn get_v_cpu_count(&self) -> &Option<VCpuCountRangeRequest>
pub fn get_v_cpu_count(&self) -> &Option<VCpuCountRangeRequest>
The minimum and maximum number of vCPUs.
sourcepub fn memory_mi_b(self, input: MemoryMiBRequest) -> Self
pub fn memory_mi_b(self, input: MemoryMiBRequest) -> Self
The minimum and maximum amount of memory, in MiB.
sourcepub fn set_memory_mi_b(self, input: Option<MemoryMiBRequest>) -> Self
pub fn set_memory_mi_b(self, input: Option<MemoryMiBRequest>) -> Self
The minimum and maximum amount of memory, in MiB.
sourcepub fn get_memory_mi_b(&self) -> &Option<MemoryMiBRequest>
pub fn get_memory_mi_b(&self) -> &Option<MemoryMiBRequest>
The minimum and maximum amount of memory, in MiB.
sourcepub fn cpu_manufacturers(self, input: CpuManufacturer) -> Self
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
sourcepub fn set_cpu_manufacturers(self, input: Option<Vec<CpuManufacturer>>) -> Self
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
sourcepub fn get_cpu_manufacturers(&self) -> &Option<Vec<CpuManufacturer>>
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
sourcepub fn memory_gi_b_per_v_cpu(self, input: MemoryGiBPerVCpuRequest) -> Self
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
sourcepub fn set_memory_gi_b_per_v_cpu(
self,
input: Option<MemoryGiBPerVCpuRequest>
) -> Self
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
sourcepub fn get_memory_gi_b_per_v_cpu(&self) -> &Option<MemoryGiBPerVCpuRequest>
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
sourcepub fn excluded_instance_types(self, input: impl Into<String>) -> Self
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
sourcepub fn set_excluded_instance_types(self, input: Option<Vec<String>>) -> Self
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
sourcepub fn get_excluded_instance_types(&self) -> &Option<Vec<String>>
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
sourcepub fn instance_generations(self, input: InstanceGeneration) -> Self
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
sourcepub fn set_instance_generations(
self,
input: Option<Vec<InstanceGeneration>>
) -> Self
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
sourcepub fn get_instance_generations(&self) -> &Option<Vec<InstanceGeneration>>
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
sourcepub fn spot_max_price_percentage_over_lowest_price(self, input: i32) -> Self
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
sourcepub fn set_spot_max_price_percentage_over_lowest_price(
self,
input: Option<i32>
) -> Self
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
sourcepub fn get_spot_max_price_percentage_over_lowest_price(&self) -> &Option<i32>
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
sourcepub fn on_demand_max_price_percentage_over_lowest_price(
self,
input: i32
) -> Self
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
sourcepub fn set_on_demand_max_price_percentage_over_lowest_price(
self,
input: Option<i32>
) -> Self
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
sourcepub fn get_on_demand_max_price_percentage_over_lowest_price(
&self
) -> &Option<i32>
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
sourcepub fn bare_metal(self, input: BareMetal) -> Self
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
sourcepub fn set_bare_metal(self, input: Option<BareMetal>) -> Self
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
sourcepub fn get_bare_metal(&self) -> &Option<BareMetal>
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
sourcepub fn burstable_performance(self, input: BurstablePerformance) -> Self
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
sourcepub fn set_burstable_performance(
self,
input: Option<BurstablePerformance>
) -> Self
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
sourcepub fn get_burstable_performance(&self) -> &Option<BurstablePerformance>
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
sourcepub fn require_hibernate_support(self, input: bool) -> Self
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
sourcepub fn set_require_hibernate_support(self, input: Option<bool>) -> Self
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
sourcepub fn get_require_hibernate_support(&self) -> &Option<bool>
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
sourcepub fn network_interface_count(
self,
input: NetworkInterfaceCountRequest
) -> Self
pub fn network_interface_count( self, input: NetworkInterfaceCountRequest ) -> Self
The minimum and maximum number of network interfaces.
Default: No minimum or maximum limits
sourcepub fn set_network_interface_count(
self,
input: Option<NetworkInterfaceCountRequest>
) -> Self
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
sourcepub fn get_network_interface_count(
&self
) -> &Option<NetworkInterfaceCountRequest>
pub fn get_network_interface_count( &self ) -> &Option<NetworkInterfaceCountRequest>
The minimum and maximum number of network interfaces.
Default: No minimum or maximum limits
sourcepub fn local_storage(self, input: LocalStorage) -> Self
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
sourcepub fn set_local_storage(self, input: Option<LocalStorage>) -> Self
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
sourcepub fn get_local_storage(&self) -> &Option<LocalStorage>
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
sourcepub fn local_storage_types(self, input: LocalStorageType) -> Self
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
sourcepub fn set_local_storage_types(
self,
input: Option<Vec<LocalStorageType>>
) -> Self
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
sourcepub fn get_local_storage_types(&self) -> &Option<Vec<LocalStorageType>>
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
sourcepub fn total_local_storage_gb(self, input: TotalLocalStorageGbRequest) -> Self
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
sourcepub fn set_total_local_storage_gb(
self,
input: Option<TotalLocalStorageGbRequest>
) -> Self
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
sourcepub fn get_total_local_storage_gb(&self) -> &Option<TotalLocalStorageGbRequest>
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
sourcepub fn baseline_ebs_bandwidth_mbps(
self,
input: BaselineEbsBandwidthMbpsRequest
) -> Self
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
sourcepub fn set_baseline_ebs_bandwidth_mbps(
self,
input: Option<BaselineEbsBandwidthMbpsRequest>
) -> Self
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
sourcepub fn get_baseline_ebs_bandwidth_mbps(
&self
) -> &Option<BaselineEbsBandwidthMbpsRequest>
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
sourcepub fn accelerator_types(self, input: AcceleratorType) -> Self
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
sourcepub fn set_accelerator_types(self, input: Option<Vec<AcceleratorType>>) -> Self
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
sourcepub fn get_accelerator_types(&self) -> &Option<Vec<AcceleratorType>>
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
sourcepub fn accelerator_count(self, input: AcceleratorCountRequest) -> Self
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
sourcepub fn set_accelerator_count(
self,
input: Option<AcceleratorCountRequest>
) -> Self
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
sourcepub fn get_accelerator_count(&self) -> &Option<AcceleratorCountRequest>
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
sourcepub fn accelerator_manufacturers(self, input: AcceleratorManufacturer) -> Self
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
sourcepub fn set_accelerator_manufacturers(
self,
input: Option<Vec<AcceleratorManufacturer>>
) -> Self
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
sourcepub fn get_accelerator_manufacturers(
&self
) -> &Option<Vec<AcceleratorManufacturer>>
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
sourcepub fn accelerator_names(self, input: AcceleratorName) -> Self
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
sourcepub fn set_accelerator_names(self, input: Option<Vec<AcceleratorName>>) -> Self
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
sourcepub fn get_accelerator_names(&self) -> &Option<Vec<AcceleratorName>>
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
sourcepub fn accelerator_total_memory_mi_b(
self,
input: AcceleratorTotalMemoryMiBRequest
) -> Self
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
sourcepub fn set_accelerator_total_memory_mi_b(
self,
input: Option<AcceleratorTotalMemoryMiBRequest>
) -> Self
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
sourcepub fn get_accelerator_total_memory_mi_b(
&self
) -> &Option<AcceleratorTotalMemoryMiBRequest>
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
sourcepub fn network_bandwidth_gbps(self, input: NetworkBandwidthGbpsRequest) -> Self
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
sourcepub fn set_network_bandwidth_gbps(
self,
input: Option<NetworkBandwidthGbpsRequest>
) -> Self
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
sourcepub fn get_network_bandwidth_gbps(&self) -> &Option<NetworkBandwidthGbpsRequest>
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
sourcepub fn allowed_instance_types(self, input: impl Into<String>) -> Self
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
sourcepub fn set_allowed_instance_types(self, input: Option<Vec<String>>) -> Self
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
sourcepub fn get_allowed_instance_types(&self) -> &Option<Vec<String>>
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
sourcepub fn build(self) -> InstanceRequirementsRequest
pub fn build(self) -> InstanceRequirementsRequest
Consumes the builder and constructs a InstanceRequirementsRequest
.
Trait Implementations§
source§impl Clone for InstanceRequirementsRequestBuilder
impl Clone for InstanceRequirementsRequestBuilder
source§fn clone(&self) -> InstanceRequirementsRequestBuilder
fn clone(&self) -> InstanceRequirementsRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InstanceRequirementsRequestBuilder
impl Default for InstanceRequirementsRequestBuilder
source§fn default() -> InstanceRequirementsRequestBuilder
fn default() -> InstanceRequirementsRequestBuilder
source§impl PartialEq<InstanceRequirementsRequestBuilder> for InstanceRequirementsRequestBuilder
impl PartialEq<InstanceRequirementsRequestBuilder> for InstanceRequirementsRequestBuilder
source§fn eq(&self, other: &InstanceRequirementsRequestBuilder) -> bool
fn eq(&self, other: &InstanceRequirementsRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.