Skip to content

/AWS1/CL_ECSCAPRESVREQUEST

The Capacity Reservation configurations to be used when using the RESERVED capacity option type.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_reservationgrouparn TYPE /AWS1/ECSSTRING /AWS1/ECSSTRING

The ARN of the Capacity Reservation resource group in which to run the instance.

iv_reservationpreference TYPE /AWS1/ECSCAPACITYRESVPREF /AWS1/ECSCAPACITYRESVPREF

The preference on when capacity reservations should be used.

Valid values are:

  • RESERVATIONS_ONLY - Exclusively launch instances into capacity reservations that match the instance requirements configured for the capacity provider. If none exist, instances will fail to provision.

  • RESERVATIONS_FIRST - Prefer to launch instances into a capacity reservation if any exist that match the instance requirements configured for the capacity provider. If none exist, fall back to launching instances On-Demand.

  • RESERVATIONS_EXCLUDED - Avoid using capacity reservations and launch exclusively On-Demand.


Queryable Attributes

reservationGroupArn

The ARN of the Capacity Reservation resource group in which to run the instance.

Accessible with the following methods

Method Description
GET_RESERVATIONGROUPARN() Getter for RESERVATIONGROUPARN, with configurable default
ASK_RESERVATIONGROUPARN() Getter for RESERVATIONGROUPARN w/ exceptions if field has no
HAS_RESERVATIONGROUPARN() Determine if RESERVATIONGROUPARN has a value

reservationPreference

The preference on when capacity reservations should be used.

Valid values are:

  • RESERVATIONS_ONLY - Exclusively launch instances into capacity reservations that match the instance requirements configured for the capacity provider. If none exist, instances will fail to provision.

  • RESERVATIONS_FIRST - Prefer to launch instances into a capacity reservation if any exist that match the instance requirements configured for the capacity provider. If none exist, fall back to launching instances On-Demand.

  • RESERVATIONS_EXCLUDED - Avoid using capacity reservations and launch exclusively On-Demand.

Accessible with the following methods

Method Description
GET_RESERVATIONPREFERENCE() Getter for RESERVATIONPREFERENCE, with configurable default
ASK_RESERVATIONPREFERENCE() Getter for RESERVATIONPREFERENCE w/ exceptions if field has
HAS_RESERVATIONPREFERENCE() Determine if RESERVATIONPREFERENCE has a value