list_environments
async
¶
list_environments(
*,
config_overrides: Optional[AsyncInterconnectClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
provider: Optional[Provider] = None,
location: Optional[Location] = None,
) -> ListEnvironmentsResponse
Lists all of the environments that can produce connections that will land in the called AWS region.
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.
-
provider(Optional[Provider], default:None) –Filter results to only include Environment objects that connect to the Provider.
-
location(Optional[Location], default:None) –Filter results to only include Environment objects that connect to a given location distiguisher.
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 Environments
Source code in docs_src/capo_interconnect/_services/async_interconnect.py
1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 | |