list_fleets
¶
list_fleets(
*,
config_overrides: Optional[CodeBuildClientConfig] = 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/code_build.py
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 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 | |