Skip to main content

reserved_instances_exchange_quotes

Creates, updates, deletes, gets or lists a reserved_instances_exchange_quotes resource.

Overview

Namereserved_instances_exchange_quotes
TypeResource
Idaws.ec2.reserved_instances_exchange_quotes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
currency_codestringThe currency of the transaction.
is_valid_exchangebooleanIf true, the exchange is valid. If false, the exchange cannot be completed.
output_reserved_instances_will_expire_atstringThe new end date of the reservation term.
payment_duestringThe total true upfront charge for the exchange.
reserved_instance_value_rollupstringThe cost associated with the Reserved Instance.
reserved_instance_value_setstringThe configuration of your Convertible Reserved Instances.
target_configuration_value_rollupstringThe cost associated with the Reserved Instance.
target_configuration_value_setstringThe values of the target Convertible Reserved Instances.
validation_failure_reasonstringDescribes the reason why the exchange cannot be completed.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_reserved_instances_exchange_quoteselectReservedInstanceId, regionDryRun, TargetConfigurationReturns 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. Use AcceptReservedInstancesExchangeQuote to perform the exchange.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ReservedInstanceIdarrayThe IDs of the Convertible Reserved Instances to exchange.
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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.
TargetConfigurationarrayThe configuration of the target Convertible Reserved Instance to exchange for your current Convertible Reserved Instances.

SELECT examples

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. Use AcceptReservedInstancesExchangeQuote to perform the exchange.

SELECT
currency_code,
is_valid_exchange,
output_reserved_instances_will_expire_at,
payment_due,
reserved_instance_value_rollup,
reserved_instance_value_set,
target_configuration_value_rollup,
target_configuration_value_set,
validation_failure_reason
FROM aws.ec2.reserved_instances_exchange_quotes
WHERE ReservedInstanceId = '{{ ReservedInstanceId }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND TargetConfiguration = '{{ TargetConfiguration }}'
;