#[non_exhaustive]pub struct DesiredConfigurationBuilder { /* private fields */ }Expand description
A builder for DesiredConfiguration.
Implementations§
source§impl DesiredConfigurationBuilder
impl DesiredConfigurationBuilder
sourcepub fn launch_template(self, input: LaunchTemplateSpecification) -> Self
pub fn launch_template(self, input: LaunchTemplateSpecification) -> Self
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.
sourcepub fn set_launch_template(
self,
input: Option<LaunchTemplateSpecification>
) -> Self
pub fn set_launch_template( self, input: Option<LaunchTemplateSpecification> ) -> Self
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.
sourcepub fn get_launch_template(&self) -> &Option<LaunchTemplateSpecification>
pub fn get_launch_template(&self) -> &Option<LaunchTemplateSpecification>
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.
sourcepub fn mixed_instances_policy(self, input: MixedInstancesPolicy) -> Self
pub fn mixed_instances_policy(self, input: MixedInstancesPolicy) -> Self
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
sourcepub fn set_mixed_instances_policy(
self,
input: Option<MixedInstancesPolicy>
) -> Self
pub fn set_mixed_instances_policy( self, input: Option<MixedInstancesPolicy> ) -> Self
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
sourcepub fn get_mixed_instances_policy(&self) -> &Option<MixedInstancesPolicy>
pub fn get_mixed_instances_policy(&self) -> &Option<MixedInstancesPolicy>
Use this structure to launch multiple instance types and On-Demand Instances and Spot Instances within a single Auto Scaling group.
A mixed instances policy contains information that Amazon EC2 Auto Scaling can use to launch instances and help optimize your costs. For more information, see Auto Scaling groups with multiple instance types and purchase options in the Amazon EC2 Auto Scaling User Guide.
sourcepub fn build(self) -> DesiredConfiguration
pub fn build(self) -> DesiredConfiguration
Consumes the builder and constructs a DesiredConfiguration.
Trait Implementations§
source§impl Clone for DesiredConfigurationBuilder
impl Clone for DesiredConfigurationBuilder
source§fn clone(&self) -> DesiredConfigurationBuilder
fn clone(&self) -> DesiredConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DesiredConfigurationBuilder
impl Debug for DesiredConfigurationBuilder
source§impl Default for DesiredConfigurationBuilder
impl Default for DesiredConfigurationBuilder
source§fn default() -> DesiredConfigurationBuilder
fn default() -> DesiredConfigurationBuilder
source§impl PartialEq for DesiredConfigurationBuilder
impl PartialEq for DesiredConfigurationBuilder
source§fn eq(&self, other: &DesiredConfigurationBuilder) -> bool
fn eq(&self, other: &DesiredConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.