| 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 |
Amazonka.EC2.Types.FleetData
Description
Synopsis
- data FleetData = FleetData' {
- activityStatus :: Maybe FleetActivityStatus
- clientToken :: Maybe Text
- context :: Maybe Text
- createTime :: Maybe ISO8601
- errors :: Maybe [DescribeFleetError]
- excessCapacityTerminationPolicy :: Maybe FleetExcessCapacityTerminationPolicy
- fleetId :: Maybe Text
- fleetState :: Maybe FleetStateCode
- fulfilledCapacity :: Maybe Double
- fulfilledOnDemandCapacity :: Maybe Double
- instances :: Maybe [DescribeFleetsInstances]
- launchTemplateConfigs :: Maybe [FleetLaunchTemplateConfig]
- onDemandOptions :: Maybe OnDemandOptions
- replaceUnhealthyInstances :: Maybe Bool
- spotOptions :: Maybe SpotOptions
- tags :: Maybe [Tag]
- targetCapacitySpecification :: Maybe TargetCapacitySpecification
- terminateInstancesWithExpiration :: Maybe Bool
- type' :: Maybe FleetType
- validFrom :: Maybe ISO8601
- validUntil :: Maybe ISO8601
- newFleetData :: FleetData
- fleetData_activityStatus :: Lens' FleetData (Maybe FleetActivityStatus)
- fleetData_clientToken :: Lens' FleetData (Maybe Text)
- fleetData_context :: Lens' FleetData (Maybe Text)
- fleetData_createTime :: Lens' FleetData (Maybe UTCTime)
- fleetData_errors :: Lens' FleetData (Maybe [DescribeFleetError])
- fleetData_excessCapacityTerminationPolicy :: Lens' FleetData (Maybe FleetExcessCapacityTerminationPolicy)
- fleetData_fleetId :: Lens' FleetData (Maybe Text)
- fleetData_fleetState :: Lens' FleetData (Maybe FleetStateCode)
- fleetData_fulfilledCapacity :: Lens' FleetData (Maybe Double)
- fleetData_fulfilledOnDemandCapacity :: Lens' FleetData (Maybe Double)
- fleetData_instances :: Lens' FleetData (Maybe [DescribeFleetsInstances])
- fleetData_launchTemplateConfigs :: Lens' FleetData (Maybe [FleetLaunchTemplateConfig])
- fleetData_onDemandOptions :: Lens' FleetData (Maybe OnDemandOptions)
- fleetData_replaceUnhealthyInstances :: Lens' FleetData (Maybe Bool)
- fleetData_spotOptions :: Lens' FleetData (Maybe SpotOptions)
- fleetData_tags :: Lens' FleetData (Maybe [Tag])
- fleetData_targetCapacitySpecification :: Lens' FleetData (Maybe TargetCapacitySpecification)
- fleetData_terminateInstancesWithExpiration :: Lens' FleetData (Maybe Bool)
- fleetData_type :: Lens' FleetData (Maybe FleetType)
- fleetData_validFrom :: Lens' FleetData (Maybe UTCTime)
- fleetData_validUntil :: Lens' FleetData (Maybe UTCTime)
Documentation
Describes an EC2 Fleet.
See: newFleetData smart constructor.
Constructors
| FleetData' | |
Fields
| |
Instances
newFleetData :: FleetData Source #
Create a value of FleetData 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:activityStatus:FleetData', fleetData_activityStatus - The progress of the EC2 Fleet. If there is an error, the status is
error. After all requests are placed, the status is
pending_fulfillment. If the size of the EC2 Fleet is equal to or
greater than its target capacity, the status is fulfilled. If the size
of the EC2 Fleet is decreased, the status is pending_termination while
instances are terminating.
$sel:clientToken:FleetData', fleetData_clientToken - Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request. For more information, see
Ensuring idempotency.
Constraints: Maximum 64 ASCII characters
$sel:context:FleetData', fleetData_context - Reserved.
$sel:createTime:FleetData', fleetData_createTime - The creation date and time of the EC2 Fleet.
$sel:errors:FleetData', fleetData_errors - Information about the instances that could not be launched by the fleet.
Valid only when Type is set to instant.
$sel:excessCapacityTerminationPolicy:FleetData', fleetData_excessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the target
capacity of the EC2 Fleet is decreased below the current size of the EC2
Fleet.
$sel:fleetId:FleetData', fleetData_fleetId - The ID of the EC2 Fleet.
$sel:fleetState:FleetData', fleetData_fleetState - The state of the EC2 Fleet.
$sel:fulfilledCapacity:FleetData', fleetData_fulfilledCapacity - The number of units fulfilled by this request compared to the set target
capacity.
$sel:fulfilledOnDemandCapacity:FleetData', fleetData_fulfilledOnDemandCapacity - The number of units fulfilled by this request compared to the set target
On-Demand capacity.
$sel:instances:FleetData', fleetData_instances - Information about the instances that were launched by the fleet. Valid
only when Type is set to instant.
$sel:launchTemplateConfigs:FleetData', fleetData_launchTemplateConfigs - The launch template and overrides.
$sel:onDemandOptions:FleetData', fleetData_onDemandOptions - The allocation strategy of On-Demand Instances in an EC2 Fleet.
$sel:replaceUnhealthyInstances:FleetData', fleetData_replaceUnhealthyInstances - Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
Supported only for fleets of type maintain. For more information, see
EC2 Fleet health checks
in the Amazon EC2 User Guide.
$sel:spotOptions:FleetData', fleetData_spotOptions - The configuration of Spot Instances in an EC2 Fleet.
$sel:tags:FleetData', fleetData_tags - The tags for an EC2 Fleet resource.
$sel:targetCapacitySpecification:FleetData', fleetData_targetCapacitySpecification - The number of units to request. You can choose to set the target
capacity in terms of instances or a performance characteristic that is
important to your application workload, such as vCPUs, memory, or I/O.
If the request type is maintain, you can specify a target capacity of
0 and add capacity later.
$sel:terminateInstancesWithExpiration:FleetData', fleetData_terminateInstancesWithExpiration - Indicates whether running instances should be terminated when the EC2
Fleet expires.
$sel:type':FleetData', fleetData_type - The type of request. Indicates whether the EC2 Fleet only requests the
target capacity, or also attempts to maintain it. If you request a
certain target capacity, EC2 Fleet only places the required requests; it
does not attempt to replenish instances if capacity is diminished, and
it does not submit requests in alternative capacity pools if capacity is
unavailable. To maintain a certain target capacity, EC2 Fleet places the
required requests to meet this target capacity. It also automatically
replenishes any interrupted Spot Instances. Default: maintain.
$sel:validFrom:FleetData', fleetData_validFrom - The start date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling
the request immediately.
$sel:validUntil:FleetData', fleetData_validUntil - The end date and time of the request, in UTC format (for example,
YYYY-MM-DDTHH:MM:SSZ). At this point, no new instance
requests are placed or able to fulfill the request. The default end date
is 7 days from the current date.
fleetData_activityStatus :: Lens' FleetData (Maybe FleetActivityStatus) Source #
The progress of the EC2 Fleet. If there is an error, the status is
error. After all requests are placed, the status is
pending_fulfillment. If the size of the EC2 Fleet is equal to or
greater than its target capacity, the status is fulfilled. If the size
of the EC2 Fleet is decreased, the status is pending_termination while
instances are terminating.
fleetData_clientToken :: Lens' FleetData (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
Constraints: Maximum 64 ASCII characters
fleetData_createTime :: Lens' FleetData (Maybe UTCTime) Source #
The creation date and time of the EC2 Fleet.
fleetData_errors :: Lens' FleetData (Maybe [DescribeFleetError]) Source #
Information about the instances that could not be launched by the fleet.
Valid only when Type is set to instant.
fleetData_excessCapacityTerminationPolicy :: Lens' FleetData (Maybe FleetExcessCapacityTerminationPolicy) Source #
Indicates whether running instances should be terminated if the target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
fleetData_fleetState :: Lens' FleetData (Maybe FleetStateCode) Source #
The state of the EC2 Fleet.
fleetData_fulfilledCapacity :: Lens' FleetData (Maybe Double) Source #
The number of units fulfilled by this request compared to the set target capacity.
fleetData_fulfilledOnDemandCapacity :: Lens' FleetData (Maybe Double) Source #
The number of units fulfilled by this request compared to the set target On-Demand capacity.
fleetData_instances :: Lens' FleetData (Maybe [DescribeFleetsInstances]) Source #
Information about the instances that were launched by the fleet. Valid
only when Type is set to instant.
fleetData_launchTemplateConfigs :: Lens' FleetData (Maybe [FleetLaunchTemplateConfig]) Source #
The launch template and overrides.
fleetData_onDemandOptions :: Lens' FleetData (Maybe OnDemandOptions) Source #
The allocation strategy of On-Demand Instances in an EC2 Fleet.
fleetData_replaceUnhealthyInstances :: Lens' FleetData (Maybe Bool) Source #
Indicates whether EC2 Fleet should replace unhealthy Spot Instances.
Supported only for fleets of type maintain. For more information, see
EC2 Fleet health checks
in the Amazon EC2 User Guide.
fleetData_spotOptions :: Lens' FleetData (Maybe SpotOptions) Source #
The configuration of Spot Instances in an EC2 Fleet.
fleetData_targetCapacitySpecification :: Lens' FleetData (Maybe TargetCapacitySpecification) Source #
The number of units to request. You can choose to set the target
capacity in terms of instances or a performance characteristic that is
important to your application workload, such as vCPUs, memory, or I/O.
If the request type is maintain, you can specify a target capacity of
0 and add capacity later.
fleetData_terminateInstancesWithExpiration :: Lens' FleetData (Maybe Bool) Source #
Indicates whether running instances should be terminated when the EC2 Fleet expires.
fleetData_type :: Lens' FleetData (Maybe FleetType) Source #
The type of request. Indicates whether the EC2 Fleet only requests the
target capacity, or also attempts to maintain it. If you request a
certain target capacity, EC2 Fleet only places the required requests; it
does not attempt to replenish instances if capacity is diminished, and
it does not submit requests in alternative capacity pools if capacity is
unavailable. To maintain a certain target capacity, EC2 Fleet places the
required requests to meet this target capacity. It also automatically
replenishes any interrupted Spot Instances. Default: maintain.