选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

ModifyReservedInstances - Amazon Elastic Compute Cloud
此页面尚未翻译为您的语言。 请求翻译

ModifyReservedInstances

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 Modify 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.

ClientToken

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

Type: String

Required: No

ReservedInstancesConfigurationSetItemType.N

The configuration settings for the Reserved Instances to modify.

Type: Array of ReservedInstancesConfiguration objects

Required: Yes

ReservedInstancesId.N

The IDs of the Reserved Instances to modify.

Type: Array of strings

Required: Yes

Response Elements

The following elements are returned by the service.

requestId

The ID of the request.

Type: String

reservedInstancesModificationId

The ID for the modification.

Type: String

Errors

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

Examples

Example

This example illustrates one usage of ModifyReservedInstances.

Sample Request

https://ec2.amazonaws.com/?Action=ModifyReservedInstances &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="http://ec2.amazonaws.com/doc/2016-11-15/"> <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 AWS SDKs, see the following:

隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。