list_gateway_routes
async
¶
list_gateway_routes(
mesh_name: ResourceName,
virtual_gateway_name: ResourceName,
*,
config_overrides: Optional[AsyncAppMeshClientConfig] = None,
next_token: Optional[str] = None,
limit: Optional[ListGatewayRoutesLimit] = None,
mesh_owner: Optional[AccountId] = None,
) -> ListGatewayRoutesOutput
Returns a list of existing gateway routes that are associated to a virtual gateway.
Parameters:
-
mesh_name(ResourceName) –The name of the service mesh to list gateway routes in.
-
virtual_gateway_name(ResourceName) –The name of the virtual gateway to list gateway routes in.
-
next_token(Optional[str], default:None) –The
nextTokenvalue returned from a previous paginatedListGatewayRoutesrequest wherelimitwas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. -
limit(Optional[ListGatewayRoutesLimit], default:None) –The maximum number of results returned by
ListGatewayRoutesin paginated output. When you use this parameter,ListGatewayRoutesreturns onlylimitresults in a single page along with anextTokenresponse element. You can see the remaining results of the initial request by sending anotherListGatewayRoutesrequest with the returnednextTokenvalue. This value can be between 1 and 100. If you don't use this parameter,ListGatewayRoutesreturns up to 100 results and anextTokenvalue if applicable. -
mesh_owner(Optional[AccountId], default:None) –The Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
Raises:
-
BadRequestException–The request syntax was malformed. Check your request syntax and try again.
-
ForbiddenException–You don't have permissions to perform this action.
-
InternalServerErrorException–The request processing has failed because of an unknown error, exception, or failure.
-
NotFoundException–The specified resource doesn't exist. Check your request syntax and try again.
-
ServiceUnavailableException–The request has failed due to a temporary failure of the service.
-
TooManyRequestsException–The maximum request rate permitted by the App Mesh APIs has been exceeded for your account. For best results, use an increasing or variable sleep interval between requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_app_mesh/_services/async_app_mesh.py
1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 | |