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

Description

 
Synopsis

Documentation

data FleetLaunchTemplateOverridesRequest Source #

Describes overrides for a launch template.

See: newFleetLaunchTemplateOverridesRequest smart constructor.

Constructors

FleetLaunchTemplateOverridesRequest' 

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 InstanceRequirementsRequest

    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 Placement

    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 launch template override has the lowest priority. You can set the same priority for different launch template overrides.

  • subnetId :: Maybe Text

    The IDs of the subnets in which to launch the instances. Separate multiple subnet IDs using commas (for example, subnet-1234abcdeexample1, subnet-0987cdef6example2). A request of type instant can have only one subnet ID.

  • weightedCapacity :: Maybe Double

    The number of units provided by the specified instance type.

Instances

Instances details
ToQuery FleetLaunchTemplateOverridesRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverridesRequest

Generic FleetLaunchTemplateOverridesRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverridesRequest

Read FleetLaunchTemplateOverridesRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverridesRequest

Show FleetLaunchTemplateOverridesRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverridesRequest

NFData FleetLaunchTemplateOverridesRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverridesRequest

Eq FleetLaunchTemplateOverridesRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverridesRequest

Hashable FleetLaunchTemplateOverridesRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverridesRequest

type Rep FleetLaunchTemplateOverridesRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetLaunchTemplateOverridesRequest

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

newFleetLaunchTemplateOverridesRequest :: FleetLaunchTemplateOverridesRequest Source #

Create a value of FleetLaunchTemplateOverridesRequest 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:

FleetLaunchTemplateOverridesRequest, fleetLaunchTemplateOverridesRequest_availabilityZone - The Availability Zone in which to launch the instances.

$sel:imageId:FleetLaunchTemplateOverridesRequest', fleetLaunchTemplateOverridesRequest_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:FleetLaunchTemplateOverridesRequest', fleetLaunchTemplateOverridesRequest_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:FleetLaunchTemplateOverridesRequest', fleetLaunchTemplateOverridesRequest_instanceType - The instance type.

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

$sel:maxPrice:FleetLaunchTemplateOverridesRequest', fleetLaunchTemplateOverridesRequest_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:FleetLaunchTemplateOverridesRequest', fleetLaunchTemplateOverridesRequest_placement - The location where the instance launched, if applicable.

$sel:priority:FleetLaunchTemplateOverridesRequest', fleetLaunchTemplateOverridesRequest_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 launch template override has the lowest priority. You can set the same priority for different launch template overrides.

$sel:subnetId:FleetLaunchTemplateOverridesRequest', fleetLaunchTemplateOverridesRequest_subnetId - The IDs of the subnets in which to launch the instances. Separate multiple subnet IDs using commas (for example, subnet-1234abcdeexample1, subnet-0987cdef6example2). A request of type instant can have only one subnet ID.

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

fleetLaunchTemplateOverridesRequest_imageId :: Lens' FleetLaunchTemplateOverridesRequest (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.

fleetLaunchTemplateOverridesRequest_instanceRequirements :: Lens' FleetLaunchTemplateOverridesRequest (Maybe InstanceRequirementsRequest) 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.

fleetLaunchTemplateOverridesRequest_instanceType :: Lens' FleetLaunchTemplateOverridesRequest (Maybe InstanceType) Source #

The instance type.

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

fleetLaunchTemplateOverridesRequest_maxPrice :: Lens' FleetLaunchTemplateOverridesRequest (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.

fleetLaunchTemplateOverridesRequest_priority :: Lens' FleetLaunchTemplateOverridesRequest (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 launch template override has the lowest priority. You can set the same priority for different launch template overrides.

fleetLaunchTemplateOverridesRequest_subnetId :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Text) Source #

The IDs of the subnets in which to launch the instances. Separate multiple subnet IDs using commas (for example, subnet-1234abcdeexample1, subnet-0987cdef6example2). A request of type instant can have only one subnet ID.