Skip to content

EC2  >  Operations  >  modify_reserved_instances

modify_reserved_instances

Operation

modify_reserved_instances async

modify_reserved_instances(input: ModifyReservedInstancesInput, plugins: list[Plugin] | None = None) -> ModifyReservedInstancesOutput

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.

Parameters:

Name Type Description Default
input ModifyReservedInstancesInput

An instance of ModifyReservedInstancesInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
ModifyReservedInstancesOutput

An instance of ModifyReservedInstancesOutput.

Input

ModifyReservedInstancesInput dataclass

Bases: _SerdeShape

Contains the parameters for ModifyReservedInstances.

Attributes

client_token class-attribute instance-attribute
client_token: str | None = ...

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

reserved_instances_ids class-attribute instance-attribute
reserved_instances_ids: list[str] | None = ...

The IDs of the Reserved Instances to modify.

target_configurations class-attribute instance-attribute
target_configurations: list[ReservedInstancesConfiguration] | None = ...

The configuration settings for the Reserved Instances to modify.

Output

ModifyReservedInstancesOutput dataclass

Bases: _SerdeShape

Contains the output of ModifyReservedInstances.

Attributes

reserved_instances_modification_id class-attribute instance-attribute
reserved_instances_modification_id: str | None = ...

The ID for the modification.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.