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

Description

 
Synopsis

Documentation

data FleetData Source #

Describes an EC2 Fleet.

See: newFleetData smart constructor.

Constructors

FleetData' 

Fields

  • activityStatus :: Maybe FleetActivityStatus

    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.

  • clientToken :: Maybe Text

    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

  • context :: Maybe Text

    Reserved.

  • createTime :: Maybe ISO8601

    The creation date and time of the EC2 Fleet.

  • errors :: Maybe [DescribeFleetError]

    Information about the instances that could not be launched by the fleet. Valid only when Type is set to instant.

  • excessCapacityTerminationPolicy :: Maybe FleetExcessCapacityTerminationPolicy

    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.

  • fleetId :: Maybe Text

    The ID of the EC2 Fleet.

  • fleetState :: Maybe FleetStateCode

    The state of the EC2 Fleet.

  • fulfilledCapacity :: Maybe Double

    The number of units fulfilled by this request compared to the set target capacity.

  • fulfilledOnDemandCapacity :: Maybe Double

    The number of units fulfilled by this request compared to the set target On-Demand capacity.

  • instances :: Maybe [DescribeFleetsInstances]

    Information about the instances that were launched by the fleet. Valid only when Type is set to instant.

  • launchTemplateConfigs :: Maybe [FleetLaunchTemplateConfig]

    The launch template and overrides.

  • onDemandOptions :: Maybe OnDemandOptions

    The allocation strategy of On-Demand Instances in an EC2 Fleet.

  • replaceUnhealthyInstances :: Maybe Bool

    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.

  • spotOptions :: Maybe SpotOptions

    The configuration of Spot Instances in an EC2 Fleet.

  • tags :: Maybe [Tag]

    The tags for an EC2 Fleet resource.

  • targetCapacitySpecification :: Maybe 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.

  • terminateInstancesWithExpiration :: Maybe Bool

    Indicates whether running instances should be terminated when the EC2 Fleet expires.

  • type' :: Maybe FleetType

    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.

  • validFrom :: Maybe ISO8601

    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.

  • validUntil :: Maybe ISO8601

    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.

Instances

Instances details
FromXML FleetData Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetData

Generic FleetData Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetData

Associated Types

type Rep FleetData :: Type -> Type #

Read FleetData Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetData

Show FleetData Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetData

NFData FleetData Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetData

Methods

rnf :: FleetData -> () #

Eq FleetData Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetData

Hashable FleetData Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetData

type Rep FleetData Source # 
Instance details

Defined in Amazonka.EC2.Types.FleetData

type Rep FleetData = D1 ('MetaData "FleetData" "Amazonka.EC2.Types.FleetData" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "FleetData'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "activityStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FleetActivityStatus)) :*: S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "context") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "createTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DescribeFleetError]))))) :*: ((S1 ('MetaSel ('Just "excessCapacityTerminationPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FleetExcessCapacityTerminationPolicy)) :*: S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "fleetState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FleetStateCode)) :*: (S1 ('MetaSel ('Just "fulfilledCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "fulfilledOnDemandCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))))) :*: (((S1 ('MetaSel ('Just "instances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DescribeFleetsInstances])) :*: S1 ('MetaSel ('Just "launchTemplateConfigs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [FleetLaunchTemplateConfig]))) :*: (S1 ('MetaSel ('Just "onDemandOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OnDemandOptions)) :*: (S1 ('MetaSel ('Just "replaceUnhealthyInstances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "spotOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SpotOptions))))) :*: ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "targetCapacitySpecification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TargetCapacitySpecification)) :*: S1 ('MetaSel ('Just "terminateInstancesWithExpiration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FleetType)) :*: (S1 ('MetaSel ('Just "validFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "validUntil") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601))))))))

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_fleetId :: Lens' FleetData (Maybe Text) Source #

The ID 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_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_tags :: Lens' FleetData (Maybe [Tag]) Source #

The tags for an EC2 Fleet resource.

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.

fleetData_validFrom :: Lens' FleetData (Maybe UTCTime) Source #

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.

fleetData_validUntil :: Lens' FleetData (Maybe UTCTime) Source #

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.