#[non_exhaustive]pub struct AwsEc2LaunchTemplateDataInstanceRequirementsDetails { /* private fields */ }
Expand description
The attributes for the Amazon EC2 instance types.
Implementations§
source§impl AwsEc2LaunchTemplateDataInstanceRequirementsDetails
impl AwsEc2LaunchTemplateDataInstanceRequirementsDetails
sourcepub fn accelerator_count(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails>
pub fn accelerator_count(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorCountDetails>
The minimum and maximum number of accelerators (GPUs, FPGAs, or Amazon Web Services Inferentia chips) on an instance.
sourcepub fn accelerator_manufacturers(&self) -> Option<&[String]>
pub fn accelerator_manufacturers(&self) -> Option<&[String]>
Indicates whether instance types must have accelerators by specific manufacturers.
sourcepub fn accelerator_names(&self) -> Option<&[String]>
pub fn accelerator_names(&self) -> Option<&[String]>
The accelerators that must be on the instance type.
sourcepub fn accelerator_total_memory_mi_b(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails>
pub fn accelerator_total_memory_mi_b(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsAcceleratorTotalMemoryMiBDetails>
The minimum and maximum amount of total accelerator memory, in MiB.
sourcepub fn accelerator_types(&self) -> Option<&[String]>
pub fn accelerator_types(&self) -> Option<&[String]>
The accelerator types that must be on the instance type.
sourcepub fn bare_metal(&self) -> Option<&str>
pub fn bare_metal(&self) -> Option<&str>
Indicates whether bare metal instance types must be included, excluded, or required.
sourcepub fn baseline_ebs_bandwidth_mbps(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails>
pub fn baseline_ebs_bandwidth_mbps(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsBaselineEbsBandwidthMbpsDetails>
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.
sourcepub fn burstable_performance(&self) -> Option<&str>
pub fn burstable_performance(&self) -> Option<&str>
Indicates whether burstable performance T instance types are included, excluded, or required. For more information, Burstable performance instances in the Amazon EC2 User Guide.
sourcepub fn cpu_manufacturers(&self) -> Option<&[String]>
pub fn cpu_manufacturers(&self) -> Option<&[String]>
The CPU manufacturers to include.
sourcepub fn excluded_instance_types(&self) -> Option<&[String]>
pub fn excluded_instance_types(&self) -> Option<&[String]>
The instance types to exclude.
sourcepub fn instance_generations(&self) -> Option<&[String]>
pub fn instance_generations(&self) -> Option<&[String]>
Indicates whether current or previous generation instance types are included.
sourcepub fn local_storage(&self) -> Option<&str>
pub fn local_storage(&self) -> Option<&str>
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.
sourcepub fn local_storage_types(&self) -> Option<&[String]>
pub fn local_storage_types(&self) -> Option<&[String]>
The type of local storage that is required.
sourcepub fn memory_gi_b_per_v_cpu(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails>
pub fn memory_gi_b_per_v_cpu(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsMemoryGiBPerVCpuDetails>
The minimum and maximum amount of memory per vCPU, in GiB.
sourcepub fn memory_mi_b(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails>
pub fn memory_mi_b(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsMemoryMiBDetails>
The minimum and maximum amount of memory, in MiB.
sourcepub fn network_interface_count(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails>
pub fn network_interface_count(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsNetworkInterfaceCountDetails>
The minimum and maximum number of network interfaces.
sourcepub fn on_demand_max_price_percentage_over_lowest_price(&self) -> i32
pub fn on_demand_max_price_percentage_over_lowest_price(&self) -> 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.
A high value, such as 999999
, turns off price protection.
sourcepub fn require_hibernate_support(&self) -> bool
pub fn require_hibernate_support(&self) -> bool
Indicates whether instance types must support hibernation for On-Demand Instances.
sourcepub fn spot_max_price_percentage_over_lowest_price(&self) -> i32
pub fn spot_max_price_percentage_over_lowest_price(&self) -> i32
The price protection threshold for Spot Instances. This is the maximum you’ll pay for a 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.
A high value, such as 999999
, turns off price protection.
sourcepub fn total_local_storage_gb(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGbDetails>
pub fn total_local_storage_gb(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsTotalLocalStorageGbDetails>
The minimum and maximum amount of total local storage, in GB.
sourcepub fn v_cpu_count(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails>
pub fn v_cpu_count(
&self
) -> Option<&AwsEc2LaunchTemplateDataInstanceRequirementsVCpuCountDetails>
The minimum and maximum number of vCPUs.
source§impl AwsEc2LaunchTemplateDataInstanceRequirementsDetails
impl AwsEc2LaunchTemplateDataInstanceRequirementsDetails
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AwsEc2LaunchTemplateDataInstanceRequirementsDetails
.
Trait Implementations§
source§impl Clone for AwsEc2LaunchTemplateDataInstanceRequirementsDetails
impl Clone for AwsEc2LaunchTemplateDataInstanceRequirementsDetails
source§fn clone(&self) -> AwsEc2LaunchTemplateDataInstanceRequirementsDetails
fn clone(&self) -> AwsEc2LaunchTemplateDataInstanceRequirementsDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq<AwsEc2LaunchTemplateDataInstanceRequirementsDetails> for AwsEc2LaunchTemplateDataInstanceRequirementsDetails
impl PartialEq<AwsEc2LaunchTemplateDataInstanceRequirementsDetails> for AwsEc2LaunchTemplateDataInstanceRequirementsDetails
source§fn eq(&self, other: &AwsEc2LaunchTemplateDataInstanceRequirementsDetails) -> bool
fn eq(&self, other: &AwsEc2LaunchTemplateDataInstanceRequirementsDetails) -> bool
self
and other
values to be equal, and is used
by ==
.