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 LaunchTemplateOverrides = LaunchTemplateOverrides' {}
- newLaunchTemplateOverrides :: LaunchTemplateOverrides
- launchTemplateOverrides_availabilityZone :: Lens' LaunchTemplateOverrides (Maybe Text)
- launchTemplateOverrides_instanceRequirements :: Lens' LaunchTemplateOverrides (Maybe InstanceRequirements)
- launchTemplateOverrides_instanceType :: Lens' LaunchTemplateOverrides (Maybe InstanceType)
- launchTemplateOverrides_priority :: Lens' LaunchTemplateOverrides (Maybe Double)
- launchTemplateOverrides_spotPrice :: Lens' LaunchTemplateOverrides (Maybe Text)
- launchTemplateOverrides_subnetId :: Lens' LaunchTemplateOverrides (Maybe Text)
- launchTemplateOverrides_weightedCapacity :: Lens' LaunchTemplateOverrides (Maybe Double)
Documentation
data LaunchTemplateOverrides Source #
Describes overrides for a launch template.
See: newLaunchTemplateOverrides
smart constructor.
LaunchTemplateOverrides' | |
|
Instances
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_instanceType :: Lens' LaunchTemplateOverrides (Maybe InstanceType) Source #
The instance type.
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.