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
784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 | |