Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. UseAcceptReservedInstancesExchangeQuote to perform the exchange.
The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, seeCommon Query Parameters.
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 isDryRunOperation. Otherwise, it isUnauthorizedOperation.
Type: Boolean
Required: No
The IDs of the Convertible Reserved Instances to exchange.
Type: Array of strings
Required: Yes
The configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.
Type: Array ofTargetConfigurationRequest objects
Required: No
The following elements are returned by the service.
The currency of the transaction.
Type: String
Iftrue, the exchange is valid. Iffalse, the exchange cannot be completed.
Type: Boolean
The new end date of the reservation term.
Type: Timestamp
The total true upfront charge for the exchange.
Type: String
The ID of the request.
Type: String
The cost associated with the Reserved Instance.
Type:ReservationValue object
The configuration of your Convertible Reserved Instances.
Type: Array ofReservedInstanceReservationValue objects
The cost associated with the Reserved Instance.
Type:ReservationValue object
The values of the target Convertible Reserved Instances.
Type: Array ofTargetReservationValue objects
Describes the reason why the exchange cannot be completed.
Type: String
For information about the errors that are common to all actions, seeCommon client error codes.
This example describes the output of requesting whether a potential exchange is valid.
https://ec2.amazonaws.com/?Action=GetReservedInstancesExchangeQuote&ReservedInstanceId.1=649fd0c8-7768-46b8-8f84-a6400EXAMPLE&TargetConfiguration.1.OfferingId=24167194-6541-4041-9e31-bc7c5984aa53&AUTHPARAMS<GetReservedInstancesExchangeQuoteResponse> <requestId>d072f652-cc57-458c-89e0-e6c02EXAMPLE</requestId> <outputReservedInstancesWillExpireAt>2019-05-17T12:32:53Z</outputReservedInstancesWillExpireAt> <reservedInstanceValueSet> <item> <reservedInstancesId>649fd0c8-7768-46b8-8f84-a6400EXAMPLE</reservedInstanceId> <reservationValue> <remainingTotalValue>98.048402</remainingTotalValue> <hourlyPrice>0.018000</hourlyPrice> <remainingUpfrontValue>631.0</remainingUpfrontValue> </reservationValue> </item> </reservedInstanceValueSet> <targetConfigurationValueSet> <isValidExchange>false</isValidExchange> <paymentDue>-448.416438</paymentDue> <targetConfigurationValueRollup> <remainingTotalValue>0</remainingTotalValue> <hourlyPrice>0</hourlyPrice> <remainingUpfrontValue>0</remainingUpfrontValue> <targetConfigurationValueRollup> <reservedInstanceValueRollup> <remainingTotalValue>873.504438</remainingTotalValue> <hourlyPrice>0.018000</hourlyPrice> <remainingUpfrontValue>448.416438</remainingUpfrontValue> </reservedInstanceValueRollup> <currencyCode>USD</currencyCode> <validationFailureReason>The target configuration value is less than the input</validationFailureReason></GetReservedInstancesExchangeQuoteResponse>For more information about using this API in one of the language-specific AWS SDKs, see the following: