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

Description

 
Synopsis

Documentation

data TargetCapacitySpecificationRequest Source #

The number of units to request. You can choose to set the target capacity as the number of instances. Or you can set the target capacity to 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.

You can use the On-Demand Instance MaxTotalPrice parameter, the Spot Instance MaxTotalPrice parameter, or both parameters to ensure that your fleet cost does not exceed your budget. If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, EC2 Fleet will launch instances until it reaches the maximum amount that you're willing to pay. When the maximum amount you're willing to pay is reached, the fleet stops launching instances even if it hasn’t met the target capacity. The MaxTotalPrice parameters are located in OnDemandOptionsRequest and SpotOptionsRequest.

See: newTargetCapacitySpecificationRequest smart constructor.

Constructors

TargetCapacitySpecificationRequest' 

Fields

Instances

Instances details
ToQuery TargetCapacitySpecificationRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.TargetCapacitySpecificationRequest

Generic TargetCapacitySpecificationRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.TargetCapacitySpecificationRequest

Associated Types

type Rep TargetCapacitySpecificationRequest :: Type -> Type #

Read TargetCapacitySpecificationRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.TargetCapacitySpecificationRequest

Show TargetCapacitySpecificationRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.TargetCapacitySpecificationRequest

NFData TargetCapacitySpecificationRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.TargetCapacitySpecificationRequest

Eq TargetCapacitySpecificationRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.TargetCapacitySpecificationRequest

Hashable TargetCapacitySpecificationRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.TargetCapacitySpecificationRequest

type Rep TargetCapacitySpecificationRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.TargetCapacitySpecificationRequest

type Rep TargetCapacitySpecificationRequest = D1 ('MetaData "TargetCapacitySpecificationRequest" "Amazonka.EC2.Types.TargetCapacitySpecificationRequest" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "TargetCapacitySpecificationRequest'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "defaultTargetCapacityType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DefaultTargetCapacityType)) :*: S1 ('MetaSel ('Just "onDemandTargetCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "spotTargetCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "targetCapacityUnitType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TargetCapacityUnitType)) :*: S1 ('MetaSel ('Just "totalTargetCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newTargetCapacitySpecificationRequest Source #

Create a value of TargetCapacitySpecificationRequest 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:defaultTargetCapacityType:TargetCapacitySpecificationRequest', targetCapacitySpecificationRequest_defaultTargetCapacityType - The default TotalTargetCapacity, which is either Spot or On-Demand.

$sel:onDemandTargetCapacity:TargetCapacitySpecificationRequest', targetCapacitySpecificationRequest_onDemandTargetCapacity - The number of On-Demand units to request.

$sel:spotTargetCapacity:TargetCapacitySpecificationRequest', targetCapacitySpecificationRequest_spotTargetCapacity - The number of Spot units to request.

$sel:targetCapacityUnitType:TargetCapacitySpecificationRequest', targetCapacitySpecificationRequest_targetCapacityUnitType - The unit for the target capacity.

Default: units (translates to number of instances)

$sel:totalTargetCapacity:TargetCapacitySpecificationRequest', targetCapacitySpecificationRequest_totalTargetCapacity - The number of units to request, filled using DefaultTargetCapacityType.

targetCapacitySpecificationRequest_targetCapacityUnitType :: Lens' TargetCapacitySpecificationRequest (Maybe TargetCapacityUnitType) Source #

The unit for the target capacity.

Default: units (translates to number of instances)

targetCapacitySpecificationRequest_totalTargetCapacity :: Lens' TargetCapacitySpecificationRequest Int Source #

The number of units to request, filled using DefaultTargetCapacityType.