list_routes
async
¶
list_routes(
mesh_name: ResourceName,
virtual_router_name: ResourceName,
*,
config_overrides: Optional[AsyncAppMeshClientConfig] = None,
next_token: Optional[str] = None,
limit: Optional[ListRoutesLimit] = None,
mesh_owner: Optional[AccountId] = None,
) -> ListRoutesOutput
Returns a list of existing routes in a service mesh.
Parameters:
-
mesh_name(ResourceName) –The name of the service mesh to list routes in.
-
virtual_router_name(ResourceName) –The name of the virtual router to list routes in.
-
next_token(Optional[str], default:None) –The
nextTokenvalue returned from a previous paginatedListRoutesrequest 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[ListRoutesLimit], default:None) –The maximum number of results returned by
ListRoutesin paginated output. When you use this parameter,ListRoutesreturns onlylimitresults in a single page along with anextTokenresponse element. You can see the remaining results of the initial request by sending anotherListRoutesrequest with the returnednextTokenvalue. This value can be between 1 and 100. If you don't use this parameter,ListRoutesreturns 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
2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 | |