#[non_exhaustive]pub struct LaunchTemplateSpecificationBuilder { /* private fields */ }
Expand description
A builder for LaunchTemplateSpecification
.
Implementations§
source§impl LaunchTemplateSpecificationBuilder
impl LaunchTemplateSpecificationBuilder
sourcepub fn launch_template_id(self, input: impl Into<String>) -> Self
pub fn launch_template_id(self, input: impl Into<String>) -> Self
The ID of the launch template.
sourcepub fn set_launch_template_id(self, input: Option<String>) -> Self
pub fn set_launch_template_id(self, input: Option<String>) -> Self
The ID of the launch template.
sourcepub fn get_launch_template_id(&self) -> &Option<String>
pub fn get_launch_template_id(&self) -> &Option<String>
The ID of the launch template.
sourcepub fn launch_template_name(self, input: impl Into<String>) -> Self
pub fn launch_template_name(self, input: impl Into<String>) -> Self
The name of the launch template.
sourcepub fn set_launch_template_name(self, input: Option<String>) -> Self
pub fn set_launch_template_name(self, input: Option<String>) -> Self
The name of the launch template.
sourcepub fn get_launch_template_name(&self) -> &Option<String>
pub fn get_launch_template_name(&self) -> &Option<String>
The name of the launch template.
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The version number of the launch template, $Latest
, or $Default
.
If the value is $Latest
, the latest version of the launch template is used. If the value is $Default
, the default version of the launch template is used.
If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the compute environment is updated. It's only changed if the updateToLatestImageVersion
parameter for the compute environment is set to true
. During an infrastructure update, if either $Latest
or $Default
is specified, Batch re-evaluates the launch template version, and it might use a different version of the launch template. This is the case even if the launch template isn't specified in the update. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide.
Default: $Default
.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version number of the launch template, $Latest
, or $Default
.
If the value is $Latest
, the latest version of the launch template is used. If the value is $Default
, the default version of the launch template is used.
If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the compute environment is updated. It's only changed if the updateToLatestImageVersion
parameter for the compute environment is set to true
. During an infrastructure update, if either $Latest
or $Default
is specified, Batch re-evaluates the launch template version, and it might use a different version of the launch template. This is the case even if the launch template isn't specified in the update. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide.
Default: $Default
.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version number of the launch template, $Latest
, or $Default
.
If the value is $Latest
, the latest version of the launch template is used. If the value is $Default
, the default version of the launch template is used.
If the AMI ID that's used in a compute environment is from the launch template, the AMI isn't changed when the compute environment is updated. It's only changed if the updateToLatestImageVersion
parameter for the compute environment is set to true
. During an infrastructure update, if either $Latest
or $Default
is specified, Batch re-evaluates the launch template version, and it might use a different version of the launch template. This is the case even if the launch template isn't specified in the update. When updating a compute environment, changing the launch template requires an infrastructure update of the compute environment. For more information, see Updating compute environments in the Batch User Guide.
Default: $Default
.
sourcepub fn build(self) -> LaunchTemplateSpecification
pub fn build(self) -> LaunchTemplateSpecification
Consumes the builder and constructs a LaunchTemplateSpecification
.
Trait Implementations§
source§impl Clone for LaunchTemplateSpecificationBuilder
impl Clone for LaunchTemplateSpecificationBuilder
source§fn clone(&self) -> LaunchTemplateSpecificationBuilder
fn clone(&self) -> LaunchTemplateSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LaunchTemplateSpecificationBuilder
impl Default for LaunchTemplateSpecificationBuilder
source§fn default() -> LaunchTemplateSpecificationBuilder
fn default() -> LaunchTemplateSpecificationBuilder
source§impl PartialEq<LaunchTemplateSpecificationBuilder> for LaunchTemplateSpecificationBuilder
impl PartialEq<LaunchTemplateSpecificationBuilder> for LaunchTemplateSpecificationBuilder
source§fn eq(&self, other: &LaunchTemplateSpecificationBuilder) -> bool
fn eq(&self, other: &LaunchTemplateSpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.