Struct aws_sdk_ec2::types::CreateFleetInstance
source · #[non_exhaustive]pub struct CreateFleetInstance {
pub launch_template_and_overrides: Option<LaunchTemplateAndOverridesResponse>,
pub lifecycle: Option<InstanceLifecycle>,
pub instance_ids: Option<Vec<String>>,
pub instance_type: Option<InstanceType>,
pub platform: Option<PlatformValues>,
}
Expand description
Describes the instances that were 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 was launched is a Spot Instance or On-Demand Instance.
instance_ids: Option<Vec<String>>
The IDs of the instances.
instance_type: Option<InstanceType>
The instance type.
platform: Option<PlatformValues>
The value is Windows
for Windows instances. Otherwise, the value is blank.
Implementations§
source§impl CreateFleetInstance
impl CreateFleetInstance
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 was launched is a Spot Instance or On-Demand Instance.
sourcepub fn instance_ids(&self) -> &[String]
pub fn instance_ids(&self) -> &[String]
The IDs of the instances.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .instance_ids.is_none()
.
sourcepub fn instance_type(&self) -> Option<&InstanceType>
pub fn instance_type(&self) -> Option<&InstanceType>
The instance type.
sourcepub fn platform(&self) -> Option<&PlatformValues>
pub fn platform(&self) -> Option<&PlatformValues>
The value is Windows
for Windows instances. Otherwise, the value is blank.
source§impl CreateFleetInstance
impl CreateFleetInstance
sourcepub fn builder() -> CreateFleetInstanceBuilder
pub fn builder() -> CreateFleetInstanceBuilder
Creates a new builder-style object to manufacture CreateFleetInstance
.
Trait Implementations§
source§impl Clone for CreateFleetInstance
impl Clone for CreateFleetInstance
source§fn clone(&self) -> CreateFleetInstance
fn clone(&self) -> CreateFleetInstance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateFleetInstance
impl Debug for CreateFleetInstance
source§impl PartialEq for CreateFleetInstance
impl PartialEq for CreateFleetInstance
source§fn eq(&self, other: &CreateFleetInstance) -> bool
fn eq(&self, other: &CreateFleetInstance) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateFleetInstance
Auto Trait Implementations§
impl Freeze for CreateFleetInstance
impl RefUnwindSafe for CreateFleetInstance
impl Send for CreateFleetInstance
impl Sync for CreateFleetInstance
impl Unpin for CreateFleetInstance
impl UnwindSafe for CreateFleetInstance
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