modify_reserved_instances
¶
modify_reserved_instances(
*,
config_overrides: Optional[EC2ClientConfig] = None,
reserved_instances_ids: Optional[ReservedInstancesIdStringList] = None,
client_token: Optional[String] = None,
target_configurations: Optional[ReservedInstancesConfigurationList] = None,
) -> ModifyReservedInstancesResult
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:
-
reserved_instances_ids(Optional[ReservedInstancesIdStringList], default:None) –The IDs of the Reserved Instances to modify.
-
client_token(Optional[String], default:None) –A unique, case-sensitive token you provide to ensure idempotency of your modification request. For more information, see Ensuring Idempotency.
-
target_configurations(Optional[ReservedInstancesConfigurationList], default:None) –The configuration settings for the Reserved Instances to modify.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
52186 52187 52188 52189 52190 52191 52192 52193 52194 52195 52196 52197 52198 52199 52200 52201 52202 52203 52204 52205 52206 52207 52208 52209 52210 52211 52212 52213 52214 52215 52216 52217 52218 52219 52220 52221 52222 52223 52224 52225 52226 52227 52228 52229 52230 52231 52232 52233 52234 52235 52236 52237 52238 52239 52240 52241 52242 | |