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

Description

 
Synopsis

Documentation

data OnDemandOptionsRequest Source #

Describes the configuration of On-Demand Instances in an EC2 Fleet.

See: newOnDemandOptionsRequest smart constructor.

Constructors

OnDemandOptionsRequest' 

Fields

  • allocationStrategy :: Maybe FleetOnDemandAllocationStrategy

    The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.

    lowest-price - EC2 Fleet uses price to determine the order, launching the lowest price first.

    prioritized - EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first.

    Default: lowest-price

  • capacityReservationOptions :: Maybe CapacityReservationOptionsRequest

    The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.

    Supported only for fleets of type instant.

  • maxTotalPrice :: Maybe Text

    The maximum amount per hour for On-Demand Instances that you're willing to pay.

  • minTargetCapacity :: Maybe Int

    The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

    Supported only for fleets of type instant.

    At least one of the following must be specified: SingleAvailabilityZone | SingleInstanceType

  • singleAvailabilityZone :: Maybe Bool

    Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.

    Supported only for fleets of type instant.

  • singleInstanceType :: Maybe Bool

    Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.

    Supported only for fleets of type instant.

Instances

Instances details
ToQuery OnDemandOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptionsRequest

Generic OnDemandOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptionsRequest

Associated Types

type Rep OnDemandOptionsRequest :: Type -> Type #

Read OnDemandOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptionsRequest

Show OnDemandOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptionsRequest

NFData OnDemandOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptionsRequest

Methods

rnf :: OnDemandOptionsRequest -> () #

Eq OnDemandOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptionsRequest

Hashable OnDemandOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptionsRequest

type Rep OnDemandOptionsRequest Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptionsRequest

type Rep OnDemandOptionsRequest = D1 ('MetaData "OnDemandOptionsRequest" "Amazonka.EC2.Types.OnDemandOptionsRequest" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "OnDemandOptionsRequest'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "allocationStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FleetOnDemandAllocationStrategy)) :*: (S1 ('MetaSel ('Just "capacityReservationOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CapacityReservationOptionsRequest)) :*: S1 ('MetaSel ('Just "maxTotalPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "minTargetCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "singleAvailabilityZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "singleInstanceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))))

newOnDemandOptionsRequest :: OnDemandOptionsRequest Source #

Create a value of OnDemandOptionsRequest 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:allocationStrategy:OnDemandOptionsRequest', onDemandOptionsRequest_allocationStrategy - The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.

lowest-price - EC2 Fleet uses price to determine the order, launching the lowest price first.

prioritized - EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first.

Default: lowest-price

$sel:capacityReservationOptions:OnDemandOptionsRequest', onDemandOptionsRequest_capacityReservationOptions - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.

Supported only for fleets of type instant.

$sel:maxTotalPrice:OnDemandOptionsRequest', onDemandOptionsRequest_maxTotalPrice - The maximum amount per hour for On-Demand Instances that you're willing to pay.

$sel:minTargetCapacity:OnDemandOptionsRequest', onDemandOptionsRequest_minTargetCapacity - The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

Supported only for fleets of type instant.

At least one of the following must be specified: SingleAvailabilityZone | SingleInstanceType

$sel:singleAvailabilityZone:OnDemandOptionsRequest', onDemandOptionsRequest_singleAvailabilityZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.

Supported only for fleets of type instant.

$sel:singleInstanceType:OnDemandOptionsRequest', onDemandOptionsRequest_singleInstanceType - Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.

Supported only for fleets of type instant.

onDemandOptionsRequest_allocationStrategy :: Lens' OnDemandOptionsRequest (Maybe FleetOnDemandAllocationStrategy) Source #

The strategy that determines the order of the launch template overrides to use in fulfilling On-Demand capacity.

lowest-price - EC2 Fleet uses price to determine the order, launching the lowest price first.

prioritized - EC2 Fleet uses the priority that you assigned to each launch template override, launching the highest priority first.

Default: lowest-price

onDemandOptionsRequest_capacityReservationOptions :: Lens' OnDemandOptionsRequest (Maybe CapacityReservationOptionsRequest) Source #

The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.

Supported only for fleets of type instant.

onDemandOptionsRequest_maxTotalPrice :: Lens' OnDemandOptionsRequest (Maybe Text) Source #

The maximum amount per hour for On-Demand Instances that you're willing to pay.

onDemandOptionsRequest_minTargetCapacity :: Lens' OnDemandOptionsRequest (Maybe Int) Source #

The minimum target capacity for On-Demand Instances in the fleet. If the minimum target capacity is not reached, the fleet launches no instances.

Supported only for fleets of type instant.

At least one of the following must be specified: SingleAvailabilityZone | SingleInstanceType

onDemandOptionsRequest_singleAvailabilityZone :: Lens' OnDemandOptionsRequest (Maybe Bool) Source #

Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.

Supported only for fleets of type instant.

onDemandOptionsRequest_singleInstanceType :: Lens' OnDemandOptionsRequest (Maybe Bool) Source #

Indicates that the fleet uses a single instance type to launch all On-Demand Instances in the fleet.

Supported only for fleets of type instant.