/AWS1/CL_EC2ONDEMANDOPTIONS¶
Describes the configuration of On-Demand Instances in an EC2 Fleet.
CONSTRUCTOR
¶
IMPORTING¶
Optional arguments:¶
IV_ALLOCATIONSTRATEGY
TYPE /AWS1/EC2FLEETONDEMALLOCSTRAG
/AWS1/EC2FLEETONDEMALLOCSTRAG
¶
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
IO_CAPRESERVATIONOPTIONS
TYPE REF TO /AWS1/CL_EC2CAPRESERVATIONOPTS
/AWS1/CL_EC2CAPRESERVATIONOPTS
¶
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
Supported only for fleets of type
instant
.
IV_SINGLEINSTANCETYPE
TYPE /AWS1/EC2BOOLEAN
/AWS1/EC2BOOLEAN
¶
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
.
IV_SINGLEAVAILABILITYZONE
TYPE /AWS1/EC2BOOLEAN
/AWS1/EC2BOOLEAN
¶
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
Supported only for fleets of type
instant
.
IV_MINTARGETCAPACITY
TYPE /AWS1/EC2INTEGER
/AWS1/EC2INTEGER
¶
The minimum target capacity for On-Demand Instances in the fleet. If this minimum capacity isn't reached, no instances are launched.
Constraints: Maximum value of
1000
. Supported only for fleets of typeinstant
.At least one of the following must be specified:
SingleAvailabilityZone
|SingleInstanceType
IV_MAXTOTALPRICE
TYPE /AWS1/EC2STRING
/AWS1/EC2STRING
¶
The maximum amount per hour for On-Demand Instances that you're willing to pay.
If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. ThemaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified formaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide.
Queryable Attributes¶
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
Accessible with the following methods¶
Method | Description |
---|---|
GET_ALLOCATIONSTRATEGY() |
Getter for ALLOCATIONSTRATEGY, with configurable default |
ASK_ALLOCATIONSTRATEGY() |
Getter for ALLOCATIONSTRATEGY w/ exceptions if field has no |
HAS_ALLOCATIONSTRATEGY() |
Determine if ALLOCATIONSTRATEGY has a value |
CapacityReservationOptions¶
The strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.
Supported only for fleets of type
instant
.
Accessible with the following methods¶
Method | Description |
---|---|
GET_CAPRESERVATIONOPTIONS() |
Getter for CAPACITYRESERVATIONOPTIONS |
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
.
Accessible with the following methods¶
Method | Description |
---|---|
GET_SINGLEINSTANCETYPE() |
Getter for SINGLEINSTANCETYPE, with configurable default |
ASK_SINGLEINSTANCETYPE() |
Getter for SINGLEINSTANCETYPE w/ exceptions if field has no |
HAS_SINGLEINSTANCETYPE() |
Determine if SINGLEINSTANCETYPE has a value |
SingleAvailabilityZone¶
Indicates that the fleet launches all On-Demand Instances into a single Availability Zone.
Supported only for fleets of type
instant
.
Accessible with the following methods¶
Method | Description |
---|---|
GET_SINGLEAVAILABILITYZONE() |
Getter for SINGLEAVAILABILITYZONE, with configurable default |
ASK_SINGLEAVAILABILITYZONE() |
Getter for SINGLEAVAILABILITYZONE w/ exceptions if field has |
HAS_SINGLEAVAILABILITYZONE() |
Determine if SINGLEAVAILABILITYZONE has a value |
MinTargetCapacity¶
The minimum target capacity for On-Demand Instances in the fleet. If this minimum capacity isn't reached, no instances are launched.
Constraints: Maximum value of
1000
. Supported only for fleets of typeinstant
.At least one of the following must be specified:
SingleAvailabilityZone
|SingleInstanceType
Accessible with the following methods¶
Method | Description |
---|---|
GET_MINTARGETCAPACITY() |
Getter for MINTARGETCAPACITY, with configurable default |
ASK_MINTARGETCAPACITY() |
Getter for MINTARGETCAPACITY w/ exceptions if field has no v |
HAS_MINTARGETCAPACITY() |
Determine if MINTARGETCAPACITY has a value |
MaxTotalPrice¶
The maximum amount per hour for On-Demand Instances that you're willing to pay.
If your fleet includes T instances that are configured as
unlimited
, and if their average CPU usage exceeds the baseline utilization, you will incur a charge for surplus credits. ThemaxTotalPrice
does not account for surplus credits, and, if you use surplus credits, your final cost might be higher than what you specified formaxTotalPrice
. For more information, see Surplus credits can incur charges in the Amazon EC2 User Guide.
Accessible with the following methods¶
Method | Description |
---|---|
GET_MAXTOTALPRICE() |
Getter for MAXTOTALPRICE, with configurable default |
ASK_MAXTOTALPRICE() |
Getter for MAXTOTALPRICE w/ exceptions if field has no value |
HAS_MAXTOTALPRICE() |
Determine if MAXTOTALPRICE has a value |