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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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) -> Option<&[LaunchTemplateOverrides]>
pub fn overrides(&self) -> Option<&[LaunchTemplateOverrides]>
Any parameters that you specify override the same parameters in the launch template.
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LaunchTemplateConfig
impl Debug for LaunchTemplateConfig
source§impl PartialEq<LaunchTemplateConfig> for LaunchTemplateConfig
impl PartialEq<LaunchTemplateConfig> for LaunchTemplateConfig
source§fn eq(&self, other: &LaunchTemplateConfig) -> bool
fn eq(&self, other: &LaunchTemplateConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LaunchTemplateConfig
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more