Skip to content

modify_reserved_instances

Operation

modify_reserved_instances

modify_reserved_instances(request: ModifyReservedInstancesInput | ModifyReservedInstancesInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyReservedInstancesInputDict]) -> 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
request ModifyReservedInstancesInput | ModifyReservedInstancesInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[ModifyReservedInstancesInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ModifyReservedInstancesOutput

An instance of ModifyReservedInstancesOutput.

modify_reserved_instances async

modify_reserved_instances(request: ModifyReservedInstancesInput | ModifyReservedInstancesInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyReservedInstancesInputDict]) -> 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
request ModifyReservedInstancesInput | ModifyReservedInstancesInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[ModifyReservedInstancesInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
ModifyReservedInstancesOutput

An instance of ModifyReservedInstancesOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

ModifyReservedInstancesInputDict

Bases: TypedDict

Dictionary form of ModifyReservedInstancesInput.

Attributes

client_token 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 instance-attribute
reserved_instances_ids: Required[Sequence[str]]

The IDs of the Reserved Instances to modify.

target_configurations instance-attribute

The configuration settings for the Reserved Instances to modify.

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.