Skip to main content

reserved_instances_modifications

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

Overview

Namereserved_instances_modifications
TypeResource
Idaws.ec2.reserved_instances_modifications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
client_tokenstringA unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
create_datestringThe time when the modification request was created.
effective_datestringThe time for the modification to become effective.
modification_resultsstringContains target configurations along with their corresponding new Reserved Instance IDs.
reserved_instances_idsstringThe IDs of one or more Reserved Instances.
reserved_instances_modification_idstringA unique ID for the Reserved Instance modification.
statusstringThe status of the Reserved Instances modification request.
status_messagestringThe reason for the status.
update_datestringThe time when the modification request was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_reserved_instances_modificationsselectregionReservedInstancesModificationId, NextToken, FilterDescribes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned. For more information, see Modify Reserved Instances in the Amazon EC2 User Guide. The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

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
regionstringAWS region (default: us-east-1)
FilterarrayOne or more filters. client-token - The idempotency token for the modification request. create-date - The time when the modification request was created. effective-date - The time when the modification becomes effective. modification-result.reserved-instances-id - The ID for the Reserved Instances created as part of the modification request. This ID is only available when the status of the modification is fulfilled. modification-result.target-configuration.availability-zone - The Availability Zone for the new Reserved Instances. modification-result.target-configuration.availability-zone-id - The ID of the Availability Zone for the new Reserved Instances. modification-result.target-configuration.instance-count - The number of new Reserved Instances. modification-result.target-configuration.instance-type - The instance type of the new Reserved Instances. reserved-instances-id - The ID of the Reserved Instances modified. reserved-instances-modification-id - The ID of the modification request. status - The status of the Reserved Instances modification request (processing | fulfilled | failed). status-message - The reason for the status. update-date - The time when the modification request was last updated.
NextTokenstringThe token to retrieve the next page of results.
ReservedInstancesModificationIdarrayIDs for the submitted modification request.

SELECT examples

Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned. For more information, see Modify Reserved Instances in the Amazon EC2 User Guide. The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

SELECT
client_token,
create_date,
effective_date,
modification_results,
reserved_instances_ids,
reserved_instances_modification_id,
status,
status_message,
update_date
FROM aws.ec2.reserved_instances_modifications
WHERE region = '{{ region }}' -- required
AND ReservedInstancesModificationId = '{{ ReservedInstancesModificationId }}'
AND NextToken = '{{ NextToken }}'
AND Filter = '{{ Filter }}'
;