list_connections
¶
list_connections(
*,
config_overrides: Optional[InterconnectClientConfig] = 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/interconnect.py
1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 | |