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

Description

 
Synopsis

Documentation

data OnDemandOptions Source #

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

See: newOnDemandOptions smart constructor.

Constructors

OnDemandOptions' 

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 CapacityReservationOptions

    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
FromXML OnDemandOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptions

Generic OnDemandOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptions

Associated Types

type Rep OnDemandOptions :: Type -> Type #

Read OnDemandOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptions

Show OnDemandOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptions

NFData OnDemandOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptions

Methods

rnf :: OnDemandOptions -> () #

Eq OnDemandOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptions

Hashable OnDemandOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptions

type Rep OnDemandOptions Source # 
Instance details

Defined in Amazonka.EC2.Types.OnDemandOptions

type Rep OnDemandOptions = D1 ('MetaData "OnDemandOptions" "Amazonka.EC2.Types.OnDemandOptions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "OnDemandOptions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "allocationStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FleetOnDemandAllocationStrategy)) :*: (S1 ('MetaSel ('Just "capacityReservationOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CapacityReservationOptions)) :*: 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))))))

newOnDemandOptions :: OnDemandOptions Source #

Create a value of OnDemandOptions 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:OnDemandOptions', onDemandOptions_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:OnDemandOptions', onDemandOptions_capacityReservationOptions - The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.

Supported only for fleets of type instant.

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

$sel:minTargetCapacity:OnDemandOptions', onDemandOptions_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:OnDemandOptions', onDemandOptions_singleAvailabilityZone - Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.

Supported only for fleets of type instant.

$sel:singleInstanceType:OnDemandOptions', onDemandOptions_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.

onDemandOptions_allocationStrategy :: Lens' OnDemandOptions (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

onDemandOptions_capacityReservationOptions :: Lens' OnDemandOptions (Maybe CapacityReservationOptions) Source #

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

Supported only for fleets of type instant.

onDemandOptions_maxTotalPrice :: Lens' OnDemandOptions (Maybe Text) Source #

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

onDemandOptions_minTargetCapacity :: Lens' OnDemandOptions (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

onDemandOptions_singleAvailabilityZone :: Lens' OnDemandOptions (Maybe Bool) Source #

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

Supported only for fleets of type instant.

onDemandOptions_singleInstanceType :: Lens' OnDemandOptions (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.