Struct aws_sdk_ec2::types::LaunchTemplateConfig
source · #[non_exhaustive]pub struct LaunchTemplateConfig {
pub launch_template_specification: Option<FleetLaunchTemplateSpecification>,
pub overrides: Option<Vec<LaunchTemplateOverrides>>,
}
Expand description
Describes a launch template and overrides.
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_specification: Option<FleetLaunchTemplateSpecification>
The launch template to use. Make sure that the launch template does not contain the NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet.
overrides: Option<Vec<LaunchTemplateOverrides>>
Any parameters that you specify override the same parameters in the launch template.
Implementations§
source§impl LaunchTemplateConfig
impl LaunchTemplateConfig
sourcepub fn launch_template_specification(
&self,
) -> Option<&FleetLaunchTemplateSpecification>
pub fn launch_template_specification( &self, ) -> Option<&FleetLaunchTemplateSpecification>
The launch template to use. Make sure that the launch template does not contain the NetworkInterfaceId
parameter because you can't specify a network interface ID in a Spot Fleet.
sourcepub fn overrides(&self) -> &[LaunchTemplateOverrides]
pub fn overrides(&self) -> &[LaunchTemplateOverrides]
Any parameters that you specify override the same parameters in the launch template.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .overrides.is_none()
.
source§impl LaunchTemplateConfig
impl LaunchTemplateConfig
sourcepub fn builder() -> LaunchTemplateConfigBuilder
pub fn builder() -> LaunchTemplateConfigBuilder
Creates a new builder-style object to manufacture LaunchTemplateConfig
.
Trait Implementations§
source§impl Clone for LaunchTemplateConfig
impl Clone for LaunchTemplateConfig
source§fn clone(&self) -> LaunchTemplateConfig
fn clone(&self) -> LaunchTemplateConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LaunchTemplateConfig
impl Debug for LaunchTemplateConfig
source§impl PartialEq for LaunchTemplateConfig
impl PartialEq for LaunchTemplateConfig
source§fn eq(&self, other: &LaunchTemplateConfig) -> bool
fn eq(&self, other: &LaunchTemplateConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplateConfig
Auto Trait Implementations§
impl Freeze for LaunchTemplateConfig
impl RefUnwindSafe for LaunchTemplateConfig
impl Send for LaunchTemplateConfig
impl Sync for LaunchTemplateConfig
impl Unpin for LaunchTemplateConfig
impl UnwindSafe for LaunchTemplateConfig
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