#[non_exhaustive]
pub struct InstanceTypeInfo {
Show 27 fields pub instance_type: Option<InstanceType>, pub current_generation: Option<bool>, pub free_tier_eligible: Option<bool>, pub supported_usage_classes: Option<Vec<UsageClassType>>, pub supported_root_device_types: Option<Vec<RootDeviceType>>, pub supported_virtualization_types: Option<Vec<VirtualizationType>>, pub bare_metal: Option<bool>, pub hypervisor: Option<InstanceTypeHypervisor>, pub processor_info: Option<ProcessorInfo>, pub v_cpu_info: Option<VCpuInfo>, pub memory_info: Option<MemoryInfo>, pub instance_storage_supported: Option<bool>, pub instance_storage_info: Option<InstanceStorageInfo>, pub ebs_info: Option<EbsInfo>, pub network_info: Option<NetworkInfo>, pub gpu_info: Option<GpuInfo>, pub fpga_info: Option<FpgaInfo>, pub placement_group_info: Option<PlacementGroupInfo>, pub inference_accelerator_info: Option<InferenceAcceleratorInfo>, pub hibernation_supported: Option<bool>, pub burstable_performance_supported: Option<bool>, pub dedicated_hosts_supported: Option<bool>, pub auto_recovery_supported: Option<bool>, pub supported_boot_modes: Option<Vec<BootModeType>>, pub nitro_enclaves_support: Option<NitroEnclavesSupport>, pub nitro_tpm_support: Option<NitroTpmSupport>, pub nitro_tpm_info: Option<NitroTpmInfo>,
}
Expand description

Describes the instance type.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§instance_type: Option<InstanceType>

The instance type. For more information, see Instance types in the Amazon EC2 User Guide.

§current_generation: Option<bool>

Indicates whether the instance type is current generation.

§free_tier_eligible: Option<bool>

Indicates whether the instance type is eligible for the free tier.

§supported_usage_classes: Option<Vec<UsageClassType>>

Indicates whether the instance type is offered for spot or On-Demand.

§supported_root_device_types: Option<Vec<RootDeviceType>>

The supported root device types.

§supported_virtualization_types: Option<Vec<VirtualizationType>>

The supported virtualization types.

§bare_metal: Option<bool>

Indicates whether the instance is a bare metal instance type.

§hypervisor: Option<InstanceTypeHypervisor>

The hypervisor for the instance type.

§processor_info: Option<ProcessorInfo>

Describes the processor.

§v_cpu_info: Option<VCpuInfo>

Describes the vCPU configurations for the instance type.

§memory_info: Option<MemoryInfo>

Describes the memory for the instance type.

§instance_storage_supported: Option<bool>

Indicates whether instance storage is supported.

§instance_storage_info: Option<InstanceStorageInfo>

Describes the instance storage for the instance type.

§ebs_info: Option<EbsInfo>

Describes the Amazon EBS settings for the instance type.

§network_info: Option<NetworkInfo>

Describes the network settings for the instance type.

§gpu_info: Option<GpuInfo>

Describes the GPU accelerator settings for the instance type.

§fpga_info: Option<FpgaInfo>

Describes the FPGA accelerator settings for the instance type.

§placement_group_info: Option<PlacementGroupInfo>

Describes the placement group settings for the instance type.

§inference_accelerator_info: Option<InferenceAcceleratorInfo>

Describes the Inference accelerator settings for the instance type.

§hibernation_supported: Option<bool>

Indicates whether On-Demand hibernation is supported.

§burstable_performance_supported: Option<bool>

Indicates whether the instance type is a burstable performance T instance type. For more information, see Burstable performance instances.

§dedicated_hosts_supported: Option<bool>

Indicates whether Dedicated Hosts are supported on the instance type.

§auto_recovery_supported: Option<bool>

Indicates whether Amazon CloudWatch action based recovery is supported.

§supported_boot_modes: Option<Vec<BootModeType>>

The supported boot modes. For more information, see Boot modes in the Amazon EC2 User Guide.

§nitro_enclaves_support: Option<NitroEnclavesSupport>

Indicates whether Nitro Enclaves is supported.

§nitro_tpm_support: Option<NitroTpmSupport>

Indicates whether NitroTPM is supported.

§nitro_tpm_info: Option<NitroTpmInfo>

Describes the supported NitroTPM versions for the instance type.

Implementations§

source§

impl InstanceTypeInfo

source

pub fn instance_type(&self) -> Option<&InstanceType>

The instance type. For more information, see Instance types in the Amazon EC2 User Guide.

source

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

Indicates whether the instance type is current generation.

source

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

Indicates whether the instance type is eligible for the free tier.

source

pub fn supported_usage_classes(&self) -> Option<&[UsageClassType]>

Indicates whether the instance type is offered for spot or On-Demand.

source

pub fn supported_root_device_types(&self) -> Option<&[RootDeviceType]>

The supported root device types.

source

pub fn supported_virtualization_types(&self) -> Option<&[VirtualizationType]>

The supported virtualization types.

source

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

Indicates whether the instance is a bare metal instance type.

source

pub fn hypervisor(&self) -> Option<&InstanceTypeHypervisor>

The hypervisor for the instance type.

source

pub fn processor_info(&self) -> Option<&ProcessorInfo>

Describes the processor.

source

pub fn v_cpu_info(&self) -> Option<&VCpuInfo>

Describes the vCPU configurations for the instance type.

source

pub fn memory_info(&self) -> Option<&MemoryInfo>

Describes the memory for the instance type.

source

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

Indicates whether instance storage is supported.

source

pub fn instance_storage_info(&self) -> Option<&InstanceStorageInfo>

Describes the instance storage for the instance type.

source

pub fn ebs_info(&self) -> Option<&EbsInfo>

Describes the Amazon EBS settings for the instance type.

source

pub fn network_info(&self) -> Option<&NetworkInfo>

Describes the network settings for the instance type.

source

pub fn gpu_info(&self) -> Option<&GpuInfo>

Describes the GPU accelerator settings for the instance type.

source

pub fn fpga_info(&self) -> Option<&FpgaInfo>

Describes the FPGA accelerator settings for the instance type.

source

pub fn placement_group_info(&self) -> Option<&PlacementGroupInfo>

Describes the placement group settings for the instance type.

source

pub fn inference_accelerator_info(&self) -> Option<&InferenceAcceleratorInfo>

Describes the Inference accelerator settings for the instance type.

source

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

Indicates whether On-Demand hibernation is supported.

source

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

Indicates whether the instance type is a burstable performance T instance type. For more information, see Burstable performance instances.

source

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

Indicates whether Dedicated Hosts are supported on the instance type.

source

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

Indicates whether Amazon CloudWatch action based recovery is supported.

source

pub fn supported_boot_modes(&self) -> Option<&[BootModeType]>

The supported boot modes. For more information, see Boot modes in the Amazon EC2 User Guide.

source

pub fn nitro_enclaves_support(&self) -> Option<&NitroEnclavesSupport>

Indicates whether Nitro Enclaves is supported.

source

pub fn nitro_tpm_support(&self) -> Option<&NitroTpmSupport>

Indicates whether NitroTPM is supported.

source

pub fn nitro_tpm_info(&self) -> Option<&NitroTpmInfo>

Describes the supported NitroTPM versions for the instance type.

source§

impl InstanceTypeInfo

source

pub fn builder() -> InstanceTypeInfoBuilder

Creates a new builder-style object to manufacture InstanceTypeInfo.

Trait Implementations§

source§

impl Clone for InstanceTypeInfo

source§

fn clone(&self) -> InstanceTypeInfo

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 InstanceTypeInfo

source§

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

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

impl PartialEq<InstanceTypeInfo> for InstanceTypeInfo

source§

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

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