ModifyReservedInstances - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Modifies the configuration of your Reserved Instances, such as the Availability Zone, instance count, or instance type. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

For more information, see Modifying Reserved Instances in the Amazon EC2 User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.


A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.

Type: String

Required: No


The configuration settings for the Reserved Instances to modify.

Type: Array of ReservedInstancesConfiguration objects

Required: Yes


The IDs of the Reserved Instances to modify.

Type: Array of strings

Required: Yes

Response Elements

The following elements are returned by the service.


The ID of the request.

Type: String


The ID for the modification.

Type: String


For information about the errors that are common to all actions, see Common client error codes.



This example illustrates one usage of ModifyReservedInstances.

Sample Request &ClientToken=myClientToken &ReservedInstancesConfigurationSetItemType.1.AvailabilityZone=us-east-1a &ReservedInstancesConfigurationSetItemType.1.InstanceCount=1 &ReservedInstancesConfigurationSetItemType.1.Platform=EC2-VPC &ReservedInstancesConfigurationSetItemType.1.InstanceType=m1.small &ReservedInstancesId.1=d16f7a91-4d0f-4f19-9d7f-a74d26b1ccfa &AUTHPARAMS

Sample Response

<ModifyReservedInstancesResponse xmlns=""> <requestId>bef729b6-0731-4489-8881-2258746ae163</requestId> <reservedInstancesModificationId>rimod-3aae219d-3d63-47a9-a7e9-e764example</reservedInstancesModificationId> </ModifyReservedInstancesResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: