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

Description

 
Synopsis

Documentation

data LaunchTemplateOverrides Source #

Describes overrides for a launch template.

See: newLaunchTemplateOverrides smart constructor.

Constructors

LaunchTemplateOverrides' 

Fields

  • availabilityZone :: Maybe Text

    The Availability Zone in which to launch the instances.

  • instanceRequirements :: Maybe InstanceRequirements

    The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.

    If you specify InstanceRequirements, you can't specify InstanceType.

  • instanceType :: Maybe InstanceType

    The instance type.

  • priority :: Maybe Double

    The priority for the launch template override. The highest priority is launched first.

    If OnDemandAllocationStrategy is set to prioritized, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.

    If the Spot AllocationStrategy is set to capacityOptimizedPrioritized, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.

    Valid values are whole numbers starting at 0. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.

  • spotPrice :: Maybe Text

    The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

    If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.

  • subnetId :: Maybe Text

    The ID of the subnet in which to launch the instances.

  • weightedCapacity :: Maybe Double

    The number of units provided by the specified instance type.

Instances

Instances details
ToQuery LaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateOverrides

FromXML LaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateOverrides

Generic LaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateOverrides

Associated Types

type Rep LaunchTemplateOverrides :: Type -> Type #

Read LaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateOverrides

Show LaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateOverrides

NFData LaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateOverrides

Methods

rnf :: LaunchTemplateOverrides -> () #

Eq LaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateOverrides

Hashable LaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateOverrides

type Rep LaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.LaunchTemplateOverrides

type Rep LaunchTemplateOverrides = D1 ('MetaData "LaunchTemplateOverrides" "Amazonka.EC2.Types.LaunchTemplateOverrides" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "LaunchTemplateOverrides'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "availabilityZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "instanceRequirements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceRequirements)) :*: S1 ('MetaSel ('Just "instanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceType)))) :*: ((S1 ('MetaSel ('Just "priority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "spotPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "subnetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "weightedCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))))))

newLaunchTemplateOverrides :: LaunchTemplateOverrides Source #

Create a value of LaunchTemplateOverrides 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:availabilityZone:LaunchTemplateOverrides', launchTemplateOverrides_availabilityZone - The Availability Zone in which to launch the instances.

$sel:instanceRequirements:LaunchTemplateOverrides', launchTemplateOverrides_instanceRequirements - The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.

If you specify InstanceRequirements, you can't specify InstanceType.

$sel:instanceType:LaunchTemplateOverrides', launchTemplateOverrides_instanceType - The instance type.

$sel:priority:LaunchTemplateOverrides', launchTemplateOverrides_priority - The priority for the launch template override. The highest priority is launched first.

If OnDemandAllocationStrategy is set to prioritized, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.

If the Spot AllocationStrategy is set to capacityOptimizedPrioritized, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.

Valid values are whole numbers starting at 0. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.

$sel:spotPrice:LaunchTemplateOverrides', launchTemplateOverrides_spotPrice - The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.

$sel:subnetId:LaunchTemplateOverrides', launchTemplateOverrides_subnetId - The ID of the subnet in which to launch the instances.

$sel:weightedCapacity:LaunchTemplateOverrides', launchTemplateOverrides_weightedCapacity - The number of units provided by the specified instance type.

launchTemplateOverrides_availabilityZone :: Lens' LaunchTemplateOverrides (Maybe Text) Source #

The Availability Zone in which to launch the instances.

launchTemplateOverrides_instanceRequirements :: Lens' LaunchTemplateOverrides (Maybe InstanceRequirements) Source #

The instance requirements. When you specify instance requirements, Amazon EC2 will identify instance types with the provided requirements, and then use your On-Demand and Spot allocation strategies to launch instances from these instance types, in the same way as when you specify a list of instance types.

If you specify InstanceRequirements, you can't specify InstanceType.

launchTemplateOverrides_priority :: Lens' LaunchTemplateOverrides (Maybe Double) Source #

The priority for the launch template override. The highest priority is launched first.

If OnDemandAllocationStrategy is set to prioritized, Spot Fleet uses priority to determine which launch template override to use first in fulfilling On-Demand capacity.

If the Spot AllocationStrategy is set to capacityOptimizedPrioritized, Spot Fleet uses priority on a best-effort basis to determine which launch template override to use in fulfilling Spot capacity, but optimizes for capacity first.

Valid values are whole numbers starting at 0. The lower the number, the higher the priority. If no number is set, the launch template override has the lowest priority. You can set the same priority for different launch template overrides.

launchTemplateOverrides_spotPrice :: Lens' LaunchTemplateOverrides (Maybe Text) Source #

The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.

launchTemplateOverrides_subnetId :: Lens' LaunchTemplateOverrides (Maybe Text) Source #

The ID of the subnet in which to launch the instances.

launchTemplateOverrides_weightedCapacity :: Lens' LaunchTemplateOverrides (Maybe Double) Source #

The number of units provided by the specified instance type.