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 FleetLaunchTemplateOverridesRequest = FleetLaunchTemplateOverridesRequest' {}
- newFleetLaunchTemplateOverridesRequest :: FleetLaunchTemplateOverridesRequest
- fleetLaunchTemplateOverridesRequest_availabilityZone :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Text)
- fleetLaunchTemplateOverridesRequest_imageId :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Text)
- fleetLaunchTemplateOverridesRequest_instanceRequirements :: Lens' FleetLaunchTemplateOverridesRequest (Maybe InstanceRequirementsRequest)
- fleetLaunchTemplateOverridesRequest_instanceType :: Lens' FleetLaunchTemplateOverridesRequest (Maybe InstanceType)
- fleetLaunchTemplateOverridesRequest_maxPrice :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Text)
- fleetLaunchTemplateOverridesRequest_placement :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Placement)
- fleetLaunchTemplateOverridesRequest_priority :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Double)
- fleetLaunchTemplateOverridesRequest_subnetId :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Text)
- fleetLaunchTemplateOverridesRequest_weightedCapacity :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Double)
Documentation
data FleetLaunchTemplateOverridesRequest Source #
Describes overrides for a launch template.
See: newFleetLaunchTemplateOverridesRequest
smart constructor.
FleetLaunchTemplateOverridesRequest' | |
|
Instances
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_availabilityZone :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Text) Source #
The Availability Zone in which to launch the instances.
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_placement :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Placement) Source #
The location where the instance launched, if applicable.
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.
fleetLaunchTemplateOverridesRequest_weightedCapacity :: Lens' FleetLaunchTemplateOverridesRequest (Maybe Double) Source #
The number of units provided by the specified instance type.