amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.LaunchTemplateSpecification

Description

 
Synopsis

Documentation

data LaunchTemplateSpecification Source #

The launch template to use. You must specify either the launch template ID or launch template name in the request, but not both.

See: newLaunchTemplateSpecification smart constructor.

Constructors

LaunchTemplateSpecification' 

Fields

  • launchTemplateId :: Maybe Text

    The ID of the launch template.

    You must specify the LaunchTemplateId or the LaunchTemplateName, but not both.

  • launchTemplateName :: Maybe Text

    The name of the launch template.

    You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.

  • version :: Maybe Text

    The launch template version number, $Latest, or $Default.

    If the value is $Latest, Amazon EC2 uses the latest version of the launch template.

    If the value is $Default, Amazon EC2 uses the default version of the launch template.

    Default: The default version of the launch template.

Instances

Instances details
ToQuery LaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpecification

Generic LaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpecification

Associated Types

type Rep LaunchTemplateSpecification :: Type -> Type #

Read LaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpecification

Show LaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpecification

NFData LaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpecification

Eq LaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpecification

Hashable LaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpecification

type Rep LaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateSpecification

type Rep LaunchTemplateSpecification = D1 ('MetaData "LaunchTemplateSpecification" "Amazonka.EC2.Types.LaunchTemplateSpecification" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "LaunchTemplateSpecification'" 'PrefixI 'True) (S1 ('MetaSel ('Just "launchTemplateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "launchTemplateName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newLaunchTemplateSpecification :: LaunchTemplateSpecification Source #

Create a value of LaunchTemplateSpecification 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:launchTemplateId:LaunchTemplateSpecification', launchTemplateSpecification_launchTemplateId - The ID of the launch template.

You must specify the LaunchTemplateId or the LaunchTemplateName, but not both.

$sel:launchTemplateName:LaunchTemplateSpecification', launchTemplateSpecification_launchTemplateName - The name of the launch template.

You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.

$sel:version:LaunchTemplateSpecification', launchTemplateSpecification_version - The launch template version number, $Latest, or $Default.

If the value is $Latest, Amazon EC2 uses the latest version of the launch template.

If the value is $Default, Amazon EC2 uses the default version of the launch template.

Default: The default version of the launch template.

launchTemplateSpecification_launchTemplateId :: Lens' LaunchTemplateSpecification (Maybe Text) Source #

The ID of the launch template.

You must specify the LaunchTemplateId or the LaunchTemplateName, but not both.

launchTemplateSpecification_launchTemplateName :: Lens' LaunchTemplateSpecification (Maybe Text) Source #

The name of the launch template.

You must specify the LaunchTemplateName or the LaunchTemplateId, but not both.

launchTemplateSpecification_version :: Lens' LaunchTemplateSpecification (Maybe Text) Source #

The launch template version number, $Latest, or $Default.

If the value is $Latest, Amazon EC2 uses the latest version of the launch template.

If the value is $Default, Amazon EC2 uses the default version of the launch template.

Default: The default version of the launch template.