Skip to content

/AWS1/CL_EC2=>MDFYINSTCAPRESERVATIONATTRS()

About ModifyInstanceCapacityReservationAttributes

Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity.

Method Signature

IMPORTING

Required arguments:

IV_INSTANCEID TYPE /AWS1/EC2INSTANCEID /AWS1/EC2INSTANCEID

The ID of the instance to be modified.

IO_CAPACITYRESERVATIONSPEC TYPE REF TO /AWS1/CL_EC2CAPACITYRSVPEC /AWS1/CL_EC2CAPACITYRSVPEC

Information about the Capacity Reservation targeting option.

Optional arguments:

IV_DRYRUN TYPE /AWS1/EC2BOOLEAN /AWS1/EC2BOOLEAN

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_EC2MODINSTCAPRESERV01 /AWS1/CL_EC2MODINSTCAPRESERV01