libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AutoScaling.Types.LaunchTemplate

Description

 
Synopsis

Documentation

data LaunchTemplate Source #

Describes a launch template and overrides.

You specify these properties as part of a mixed instances policy.

When you update the launch template or overrides in the UpdateAutoScalingGroup API call, existing Amazon EC2 instances continue to run. When scale out occurs, Amazon EC2 Auto Scaling launches instances to match the new settings. When scale in occurs, Amazon EC2 Auto Scaling terminates instances according to the group's termination policies.

See: newLaunchTemplate smart constructor.

Constructors

LaunchTemplate' 

Fields

Instances

Instances details
Eq LaunchTemplate Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LaunchTemplate

Read LaunchTemplate Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LaunchTemplate

Show LaunchTemplate Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LaunchTemplate

Generic LaunchTemplate Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LaunchTemplate

Associated Types

type Rep LaunchTemplate :: Type -> Type #

NFData LaunchTemplate Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LaunchTemplate

Methods

rnf :: LaunchTemplate -> () #

Hashable LaunchTemplate Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LaunchTemplate

ToQuery LaunchTemplate Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LaunchTemplate

FromXML LaunchTemplate Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LaunchTemplate

type Rep LaunchTemplate Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.LaunchTemplate

type Rep LaunchTemplate = D1 ('MetaData "LaunchTemplate" "Amazonka.AutoScaling.Types.LaunchTemplate" "libZSservicesZSamazonka-autoscalingZSamazonka-autoscaling" 'False) (C1 ('MetaCons "LaunchTemplate'" 'PrefixI 'True) (S1 ('MetaSel ('Just "overrides") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LaunchTemplateOverrides])) :*: S1 ('MetaSel ('Just "launchTemplateSpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LaunchTemplateSpecification))))

newLaunchTemplate :: LaunchTemplate Source #

Create a value of LaunchTemplate with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:overrides:LaunchTemplate', launchTemplate_overrides - Any properties that you specify override the same properties in the launch template. If not provided, Amazon EC2 Auto Scaling uses the instance type specified in the launch template when it launches an instance.

$sel:launchTemplateSpecification:LaunchTemplate', launchTemplate_launchTemplateSpecification - The launch template to use.

launchTemplate_overrides :: Lens' LaunchTemplate (Maybe [LaunchTemplateOverrides]) Source #

Any properties that you specify override the same properties in the launch template. If not provided, Amazon EC2 Auto Scaling uses the instance type specified in the launch template when it launches an instance.