#[non_exhaustive]pub enum FleetConfiguration {
CustomerManaged(CustomerManagedFleetConfiguration),
ServiceManagedEc2(ServiceManagedEc2FleetConfiguration),
Unknown,
}Expand description
Fleet configuration details.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CustomerManaged(CustomerManagedFleetConfiguration)
The customer managed fleets within a fleet configuration.
ServiceManagedEc2(ServiceManagedEc2FleetConfiguration)
The service managed Amazon EC2 instances for a fleet configuration.
Unknown
The Unknown variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl FleetConfiguration
impl FleetConfiguration
sourcepub fn as_customer_managed(
&self
) -> Result<&CustomerManagedFleetConfiguration, &Self>
pub fn as_customer_managed( &self ) -> Result<&CustomerManagedFleetConfiguration, &Self>
Tries to convert the enum instance into CustomerManaged, extracting the inner CustomerManagedFleetConfiguration.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_customer_managed(&self) -> bool
pub fn is_customer_managed(&self) -> bool
Returns true if this is a CustomerManaged.
sourcepub fn as_service_managed_ec2(
&self
) -> Result<&ServiceManagedEc2FleetConfiguration, &Self>
pub fn as_service_managed_ec2( &self ) -> Result<&ServiceManagedEc2FleetConfiguration, &Self>
Tries to convert the enum instance into ServiceManagedEc2, extracting the inner ServiceManagedEc2FleetConfiguration.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_service_managed_ec2(&self) -> bool
pub fn is_service_managed_ec2(&self) -> bool
Returns true if this is a ServiceManagedEc2.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown variant.
Trait Implementations§
source§impl Clone for FleetConfiguration
impl Clone for FleetConfiguration
source§fn clone(&self) -> FleetConfiguration
fn clone(&self) -> FleetConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FleetConfiguration
impl Debug for FleetConfiguration
source§impl PartialEq for FleetConfiguration
impl PartialEq for FleetConfiguration
source§fn eq(&self, other: &FleetConfiguration) -> bool
fn eq(&self, other: &FleetConfiguration) -> bool
self and other values to be equal, and is used
by ==.