update_connection
async
¶
update_connection(
identifier: ConnectionId,
*,
config_overrides: Optional[AsyncInterconnectClientConfig] = None,
description: Optional[ConnectionDescription] = None,
bandwidth: Optional[ConnectionBandwidth] = None,
client_token: Optional[str] = None,
) -> UpdateConnectionResponse
Modifies an existing connection. Currently we support modifications to the connection's description and/or bandwidth.
Parameters:
-
identifier(ConnectionId) –The identifier of the Connection that should be updated.
-
description(Optional[ConnectionDescription], default:None) –An updated description to apply to the Connection
-
bandwidth(Optional[ConnectionBandwidth], default:None) –Request a new bandwidth size on the given Connection.
Note that changes to the size may be subject to additional policy, and does require the remote partner provider to acknowledge and permit this new bandwidth size.
-
client_token(Optional[str], default:None) –Idempotency token used for the request.
Raises:
-
AccessDeniedException–The calling principal is not allowed to access the specified resource, or the resource does not exist.
-
InterconnectClientException–The request was denied due to incorrect client supplied parameters.
-
InterconnectServerException–The request resulted in an exception internal to the service.
-
InterconnectValidationException–The input fails to satisfy the constraints specified.
-
ResourceNotFoundException–The request specifies a resource that does not exist on the server.
-
ServiceQuotaExceededException–The requested operation would result in the calling principal exceeding their allotted quota.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Update Connection Description
>>> await client.update_connection(identifier='mcc-abc12345', description='Changed Description')
Update Connection Bandwidth
Source code in docs_src/capo_interconnect/_services/async_interconnect.py
898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 | |