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.FleetLaunchTemplateSpecification

Description

 
Synopsis

Documentation

data FleetLaunchTemplateSpecification Source #

The Amazon EC2 launch template that can be used by a Spot Fleet to configure Amazon EC2 instances. You must specify either the ID or name of the launch template in the request, but not both.

For information about launch templates, see Launch an instance from a launch template in the Amazon EC2 User Guide.

See: newFleetLaunchTemplateSpecification smart constructor.

Constructors

FleetLaunchTemplateSpecification' 

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. You must specify a value, otherwise the request fails.

    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.

Instances

Instances details
ToQuery FleetLaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateSpecification

FromXML FleetLaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateSpecification

Generic FleetLaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateSpecification

Associated Types

type Rep FleetLaunchTemplateSpecification :: Type -> Type #

Read FleetLaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateSpecification

Show FleetLaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateSpecification

NFData FleetLaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateSpecification

Eq FleetLaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateSpecification

Hashable FleetLaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateSpecification

type Rep FleetLaunchTemplateSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateSpecification

type Rep FleetLaunchTemplateSpecification = D1 ('MetaData "FleetLaunchTemplateSpecification" "Amazonka.EC2.Types.FleetLaunchTemplateSpecification" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "FleetLaunchTemplateSpecification'" '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)))))

newFleetLaunchTemplateSpecification :: FleetLaunchTemplateSpecification Source #

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

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

$sel:launchTemplateName:FleetLaunchTemplateSpecification', fleetLaunchTemplateSpecification_launchTemplateName - The name of the launch template.

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

$sel:version:FleetLaunchTemplateSpecification', fleetLaunchTemplateSpecification_version - The launch template version number, $Latest, or $Default. You must specify a value, otherwise the request fails.

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.

fleetLaunchTemplateSpecification_launchTemplateId :: Lens' FleetLaunchTemplateSpecification (Maybe Text) Source #

The ID of the launch template.

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

fleetLaunchTemplateSpecification_launchTemplateName :: Lens' FleetLaunchTemplateSpecification (Maybe Text) Source #

The name of the launch template.

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

fleetLaunchTemplateSpecification_version :: Lens' FleetLaunchTemplateSpecification (Maybe Text) Source #

The launch template version number, $Latest, or $Default. You must specify a value, otherwise the request fails.

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.