list_fleets
async
¶
list_fleets(
*,
config_overrides: Optional[AsyncCodeBuildClientConfig] = None,
next_token: Optional[SensitiveString] = None,
max_results: Optional[PageSize] = None,
sort_order: Optional[SortOrderType] = None,
sort_by: Optional[FleetSortByType] = None,
) -> ListFleetsOutput
Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.
Parameters:
-
next_token(Optional[SensitiveString], default:None) –During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a nextToken. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.
-
max_results(Optional[PageSize], default:None) –The maximum number of paginated compute fleets returned per response. Use
nextTokento iterate pages in the list of returned compute fleets. -
sort_order(Optional[SortOrderType], default:None) –The order in which to list compute fleets. Valid values include:
-
ASCENDING: List in ascending order. -
DESCENDING: List in descending order.
Use
sortByto specify the criterion to be used to list compute fleet names. -
-
sort_by(Optional[FleetSortByType], default:None) –The criterion to be used to list compute fleet names. Valid values include:
-
CREATED_TIME: List based on when each compute fleet was created. -
LAST_MODIFIED_TIME: List based on when information about each compute fleet was last changed. -
NAME: List based on each compute fleet's name.
Use
sortOrderto specify in what order to list the compute fleet names based on the preceding criteria. -
Raises:
-
InvalidInputException–The input value that was provided is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codebuild/_services/async_code_build.py
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 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 | |