Struct aws_sdk_ec2::types::CreateFleetError
source · #[non_exhaustive]pub struct CreateFleetError {
pub launch_template_and_overrides: Option<LaunchTemplateAndOverridesResponse>,
pub lifecycle: Option<InstanceLifecycle>,
pub error_code: Option<String>,
pub error_message: Option<String>,
}
Expand description
Describes the instances that could not be launched by the fleet.
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.launch_template_and_overrides: Option<LaunchTemplateAndOverridesResponse>
The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.
lifecycle: Option<InstanceLifecycle>
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
error_code: Option<String>
The error code that indicates why the instance could not be launched. For more information about error codes, see Error codes.
error_message: Option<String>
The error message that describes why the instance could not be launched. For more information about error messages, see Error codes.
Implementations§
source§impl CreateFleetError
impl CreateFleetError
sourcepub fn launch_template_and_overrides(
&self
) -> Option<&LaunchTemplateAndOverridesResponse>
pub fn launch_template_and_overrides( &self ) -> Option<&LaunchTemplateAndOverridesResponse>
The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.
sourcepub fn lifecycle(&self) -> Option<&InstanceLifecycle>
pub fn lifecycle(&self) -> Option<&InstanceLifecycle>
Indicates if the instance that could not be launched was a Spot Instance or On-Demand Instance.
sourcepub fn error_code(&self) -> Option<&str>
pub fn error_code(&self) -> Option<&str>
The error code that indicates why the instance could not be launched. For more information about error codes, see Error codes.
sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
The error message that describes why the instance could not be launched. For more information about error messages, see Error codes.
source§impl CreateFleetError
impl CreateFleetError
sourcepub fn builder() -> CreateFleetErrorBuilder
pub fn builder() -> CreateFleetErrorBuilder
Creates a new builder-style object to manufacture CreateFleetError
.
Trait Implementations§
source§impl Clone for CreateFleetError
impl Clone for CreateFleetError
source§fn clone(&self) -> CreateFleetError
fn clone(&self) -> CreateFleetError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateFleetError
impl Debug for CreateFleetError
source§impl PartialEq for CreateFleetError
impl PartialEq for CreateFleetError
source§fn eq(&self, other: &CreateFleetError) -> bool
fn eq(&self, other: &CreateFleetError) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateFleetError
Auto Trait Implementations§
impl Freeze for CreateFleetError
impl RefUnwindSafe for CreateFleetError
impl Send for CreateFleetError
impl Sync for CreateFleetError
impl Unpin for CreateFleetError
impl UnwindSafe for CreateFleetError
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