list_routes
¶
list_routes(
mesh_name: ResourceName,
virtual_router_name: ResourceName,
*,
config_overrides: Optional[AppMeshClientConfig] = 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/app_mesh.py
2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 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 | |