modify_reserved_instances
async
¶
modify_reserved_instances(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
52912 52913 52914 52915 52916 52917 52918 52919 52920 52921 52922 52923 52924 52925 52926 52927 52928 52929 52930 52931 52932 52933 52934 52935 52936 52937 52938 52939 52940 52941 52942 52943 52944 52945 52946 52947 52948 52949 52950 52951 52952 52953 52954 52955 52956 52957 52958 52959 52960 52961 52962 52963 52964 52965 52966 52967 52968 52969 | |