#[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 ==.impl StructuralPartialEq for ServiceManagedEc2InstanceCapabilities
Auto Trait Implementations§
impl Freeze for ServiceManagedEc2InstanceCapabilities
impl RefUnwindSafe for ServiceManagedEc2InstanceCapabilities
impl Send for ServiceManagedEc2InstanceCapabilities
impl Sync for ServiceManagedEc2InstanceCapabilities
impl Unpin for ServiceManagedEc2InstanceCapabilities
impl UnwindSafe for ServiceManagedEc2InstanceCapabilities
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more