Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data FleetLaunchTemplateOverrides = FleetLaunchTemplateOverrides' {}
- newFleetLaunchTemplateOverrides :: FleetLaunchTemplateOverrides
- fleetLaunchTemplateOverrides_availabilityZone :: Lens' FleetLaunchTemplateOverrides (Maybe Text)
- fleetLaunchTemplateOverrides_imageId :: Lens' FleetLaunchTemplateOverrides (Maybe Text)
- fleetLaunchTemplateOverrides_instanceRequirements :: Lens' FleetLaunchTemplateOverrides (Maybe InstanceRequirements)
- fleetLaunchTemplateOverrides_instanceType :: Lens' FleetLaunchTemplateOverrides (Maybe InstanceType)
- fleetLaunchTemplateOverrides_maxPrice :: Lens' FleetLaunchTemplateOverrides (Maybe Text)
- fleetLaunchTemplateOverrides_placement :: Lens' FleetLaunchTemplateOverrides (Maybe PlacementResponse)
- fleetLaunchTemplateOverrides_priority :: Lens' FleetLaunchTemplateOverrides (Maybe Double)
- fleetLaunchTemplateOverrides_subnetId :: Lens' FleetLaunchTemplateOverrides (Maybe Text)
- fleetLaunchTemplateOverrides_weightedCapacity :: Lens' FleetLaunchTemplateOverrides (Maybe Double)
Documentation
data FleetLaunchTemplateOverrides Source #
Describes overrides for a launch template.
See: newFleetLaunchTemplateOverrides
smart constructor.
FleetLaunchTemplateOverrides' | |
|
Instances
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.