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 ==
.