list_connections
async
¶
list_connections(
*,
config_overrides: Optional[AsyncInterconnectClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
state: Optional[ConnectionState] = None,
environment_id: Optional[EnvironmentId] = None,
provider: Optional[Provider] = None,
attach_point: Optional[AttachPoint] = None,
) -> ListConnectionsResponse
Lists all connection objects to which the caller has access.
Allows for optional filtering by the following properties:
-
state -
environmentId -
provider -
attach point
Only Connection objects matching all filters will be returned.
Parameters:
-
max_results(Optional[MaxResults], default:None) –The max number of list results in a single paginated response.
-
next_token(Optional[NextToken], default:None) –A pagination token from a previous paginated response indicating you wish to get the next page of results.
-
state(Optional[ConnectionState], default:None) –Filter the results to only include Connection objects in the given Connection$state.
-
environment_id(Optional[EnvironmentId], default:None) –Filter the results to only include Connection objects on the given Environment.
-
provider(Optional[Provider], default:None) –Filter the results to only include Connection objects to the given Provider.
-
attach_point(Optional[AttachPoint], default:None) –Filter results to only include Connection objects attached to the given AttachPoint.
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:
List All Connections
Source code in docs_src/capo_interconnect/_services/async_interconnect.py
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 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 | |