#[non_exhaustive]pub struct ServiceManagedEc2InstanceCapabilities {
pub v_cpu_count: Option<VCpuCountRange>,
pub memory_mib: Option<MemoryMiBRange>,
pub os_family: ServiceManagedFleetOperatingSystemFamily,
pub cpu_architecture_type: CpuArchitectureType,
pub root_ebs_volume: Option<Ec2EbsVolume>,
pub allowed_instance_types: Option<Vec<String>>,
pub excluded_instance_types: Option<Vec<String>>,
pub custom_amounts: Option<Vec<FleetAmountCapability>>,
pub custom_attributes: Option<Vec<FleetAttributeCapability>>,
}Expand description
The Amazon EC2 instance capabilities.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.v_cpu_count: Option<VCpuCountRange>The amount of vCPU to require for instances in this fleet.
memory_mib: Option<MemoryMiBRange>The memory, as MiB, for the Amazon EC2 instance type.
os_family: ServiceManagedFleetOperatingSystemFamilyThe operating system (OS) family.
cpu_architecture_type: CpuArchitectureTypeThe CPU architecture type.
root_ebs_volume: Option<Ec2EbsVolume>The root EBS volume.
allowed_instance_types: Option<Vec<String>>The allowable Amazon EC2 instance types.
excluded_instance_types: Option<Vec<String>>The instance types to exclude from the fleet.
custom_amounts: Option<Vec<FleetAmountCapability>>The custom capability amounts to require for instances in this fleet.
custom_attributes: Option<Vec<FleetAttributeCapability>>The custom capability attributes to require for instances in this fleet.
Implementations§
source§impl ServiceManagedEc2InstanceCapabilities
impl ServiceManagedEc2InstanceCapabilities
sourcepub fn v_cpu_count(&self) -> Option<&VCpuCountRange>
pub fn v_cpu_count(&self) -> Option<&VCpuCountRange>
The amount of vCPU to require for instances in this fleet.
sourcepub fn memory_mib(&self) -> Option<&MemoryMiBRange>
pub fn memory_mib(&self) -> Option<&MemoryMiBRange>
The memory, as MiB, for the Amazon EC2 instance type.
sourcepub fn os_family(&self) -> &ServiceManagedFleetOperatingSystemFamily
pub fn os_family(&self) -> &ServiceManagedFleetOperatingSystemFamily
The operating system (OS) family.
sourcepub fn cpu_architecture_type(&self) -> &CpuArchitectureType
pub fn cpu_architecture_type(&self) -> &CpuArchitectureType
The CPU architecture type.
sourcepub fn root_ebs_volume(&self) -> Option<&Ec2EbsVolume>
pub fn root_ebs_volume(&self) -> Option<&Ec2EbsVolume>
The root EBS volume.
sourcepub fn allowed_instance_types(&self) -> &[String]
pub fn allowed_instance_types(&self) -> &[String]
The allowable Amazon EC2 instance types.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .allowed_instance_types.is_none().
sourcepub fn excluded_instance_types(&self) -> &[String]
pub fn excluded_instance_types(&self) -> &[String]
The instance types to exclude from the fleet.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .excluded_instance_types.is_none().
sourcepub fn custom_amounts(&self) -> &[FleetAmountCapability]
pub fn custom_amounts(&self) -> &[FleetAmountCapability]
The custom capability amounts to require for instances in this fleet.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .custom_amounts.is_none().
sourcepub fn custom_attributes(&self) -> &[FleetAttributeCapability]
pub fn custom_attributes(&self) -> &[FleetAttributeCapability]
The custom capability attributes to require for instances in this fleet.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .custom_attributes.is_none().
source§impl ServiceManagedEc2InstanceCapabilities
impl ServiceManagedEc2InstanceCapabilities
sourcepub fn builder() -> ServiceManagedEc2InstanceCapabilitiesBuilder
pub fn builder() -> ServiceManagedEc2InstanceCapabilitiesBuilder
Creates a new builder-style object to manufacture ServiceManagedEc2InstanceCapabilities.
Trait Implementations§
source§impl Clone for ServiceManagedEc2InstanceCapabilities
impl Clone for ServiceManagedEc2InstanceCapabilities
source§fn clone(&self) -> ServiceManagedEc2InstanceCapabilities
fn clone(&self) -> ServiceManagedEc2InstanceCapabilities
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for ServiceManagedEc2InstanceCapabilities
impl PartialEq for ServiceManagedEc2InstanceCapabilities
source§fn eq(&self, other: &ServiceManagedEc2InstanceCapabilities) -> bool
fn eq(&self, other: &ServiceManagedEc2InstanceCapabilities) -> bool
self and other values to be equal, and is used
by ==.