#[non_exhaustive]pub struct LaunchTemplateSpecification {
pub launch_template_id: Option<String>,
pub launch_template_name: Option<String>,
pub version: Option<String>,
}Expand description
Describes the launch template and the version of the launch template that Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information about launch templates, see Launch templates in the Amazon EC2 Auto Scaling User Guide.
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_id: Option<String>The ID of the launch template. To get the template ID, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.
Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.
launch_template_name: Option<String>The name of the launch template. To get the template name, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.
Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.
version: Option<String>The version number, $Latest, or $Default. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API. If the value is $Latest, Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is $Default, Amazon EC2 Auto Scaling selects the default version of the launch template when launching instances. The default value is $Default.
Implementations§
source§impl LaunchTemplateSpecification
impl LaunchTemplateSpecification
sourcepub fn launch_template_id(&self) -> Option<&str>
pub fn launch_template_id(&self) -> Option<&str>
The ID of the launch template. To get the template ID, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.
Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.
sourcepub fn launch_template_name(&self) -> Option<&str>
pub fn launch_template_name(&self) -> Option<&str>
The name of the launch template. To get the template name, use the Amazon EC2 DescribeLaunchTemplates API operation. New launch templates can be created using the Amazon EC2 CreateLaunchTemplate API.
Conditional: You must specify either a LaunchTemplateId or a LaunchTemplateName.
sourcepub fn version(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
The version number, $Latest, or $Default. To get the version number, use the Amazon EC2 DescribeLaunchTemplateVersions API operation. New launch template versions can be created using the Amazon EC2 CreateLaunchTemplateVersion API. If the value is $Latest, Amazon EC2 Auto Scaling selects the latest version of the launch template when launching instances. If the value is $Default, Amazon EC2 Auto Scaling selects the default version of the launch template when launching instances. The default value is $Default.
source§impl LaunchTemplateSpecification
impl LaunchTemplateSpecification
sourcepub fn builder() -> LaunchTemplateSpecificationBuilder
pub fn builder() -> LaunchTemplateSpecificationBuilder
Creates a new builder-style object to manufacture LaunchTemplateSpecification.
Trait Implementations§
source§impl Clone for LaunchTemplateSpecification
impl Clone for LaunchTemplateSpecification
source§fn clone(&self) -> LaunchTemplateSpecification
fn clone(&self) -> LaunchTemplateSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for LaunchTemplateSpecification
impl Debug for LaunchTemplateSpecification
source§impl PartialEq for LaunchTemplateSpecification
impl PartialEq for LaunchTemplateSpecification
source§fn eq(&self, other: &LaunchTemplateSpecification) -> bool
fn eq(&self, other: &LaunchTemplateSpecification) -> bool
self and other values to be equal, and is used
by ==.