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

Description

 
Synopsis

Documentation

data FleetLaunchTemplateOverrides Source #

Describes overrides for a launch template.

See: newFleetLaunchTemplateOverrides smart constructor.

Constructors

FleetLaunchTemplateOverrides' 

Fields

  • availabilityZone :: Maybe Text

    The Availability Zone in which to launch the instances.

  • imageId :: Maybe Text

    The ID of the AMI. An AMI is required to launch an instance. The AMI ID must be specified here or in the launch template.

  • instanceRequirements :: Maybe InstanceRequirements

    The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.

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

  • instanceType :: Maybe InstanceType

    The instance type.

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

  • maxPrice :: 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.

  • placement :: Maybe PlacementResponse

    The location where the instance launched, if applicable.

  • priority :: Maybe Double

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

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

    If the Spot AllocationStrategy is set to capacity-optimized-prioritized, EC2 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 override has the lowest priority. You can set the same priority for different launch template overrides.

  • 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
FromXML FleetLaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverrides

Generic FleetLaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverrides

Associated Types

type Rep FleetLaunchTemplateOverrides :: Type -> Type #

Read FleetLaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverrides

Show FleetLaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverrides

NFData FleetLaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverrides

Eq FleetLaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverrides

Hashable FleetLaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverrides

type Rep FleetLaunchTemplateOverrides Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverrides

newFleetLaunchTemplateOverrides :: FleetLaunchTemplateOverrides Source #

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

$sel:imageId:FleetLaunchTemplateOverrides', fleetLaunchTemplateOverrides_imageId - The ID of the AMI. An AMI is required to launch an instance. The AMI ID must be specified here or in the launch template.

$sel:instanceRequirements:FleetLaunchTemplateOverrides', fleetLaunchTemplateOverrides_instanceRequirements - The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.

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

$sel:instanceType:FleetLaunchTemplateOverrides', fleetLaunchTemplateOverrides_instanceType - The instance type.

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

$sel:maxPrice:FleetLaunchTemplateOverrides', fleetLaunchTemplateOverrides_maxPrice - 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:placement:FleetLaunchTemplateOverrides', fleetLaunchTemplateOverrides_placement - The location where the instance launched, if applicable.

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

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

If the Spot AllocationStrategy is set to capacity-optimized-prioritized, EC2 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 override has the lowest priority. You can set the same priority for different launch template overrides.

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

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

fleetLaunchTemplateOverrides_availabilityZone :: Lens' FleetLaunchTemplateOverrides (Maybe Text) Source #

The Availability Zone in which to launch the instances.

fleetLaunchTemplateOverrides_imageId :: Lens' FleetLaunchTemplateOverrides (Maybe Text) Source #

The ID of the AMI. An AMI is required to launch an instance. The AMI ID must be specified here or in the launch template.

fleetLaunchTemplateOverrides_instanceRequirements :: Lens' FleetLaunchTemplateOverrides (Maybe InstanceRequirements) Source #

The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes.

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

fleetLaunchTemplateOverrides_instanceType :: Lens' FleetLaunchTemplateOverrides (Maybe InstanceType) Source #

The instance type.

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

fleetLaunchTemplateOverrides_maxPrice :: Lens' FleetLaunchTemplateOverrides (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.

fleetLaunchTemplateOverrides_placement :: Lens' FleetLaunchTemplateOverrides (Maybe PlacementResponse) Source #

The location where the instance launched, if applicable.

fleetLaunchTemplateOverrides_priority :: Lens' FleetLaunchTemplateOverrides (Maybe Double) Source #

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

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

If the Spot AllocationStrategy is set to capacity-optimized-prioritized, EC2 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 override has the lowest priority. You can set the same priority for different launch template overrides.

fleetLaunchTemplateOverrides_subnetId :: Lens' FleetLaunchTemplateOverrides (Maybe Text) Source #

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

fleetLaunchTemplateOverrides_weightedCapacity :: Lens' FleetLaunchTemplateOverrides (Maybe Double) Source #

The number of units provided by the specified instance type.