list_builds_for_project
¶
list_builds_for_project(
project_name: NonEmptyString,
*,
config_overrides: Optional[CodeBuildClientConfig] = None,
sort_order: Optional[SortOrderType] = None,
next_token: Optional[String] = None,
) -> ListBuildsForProjectOutput
Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.
Parameters:
-
project_name(NonEmptyString) –The name of the CodeBuild project.
-
sort_order(Optional[SortOrderType], default:None) –The order to sort the results in. The results are sorted by build number, not the build identifier. If this is not specified, the results are sorted in descending order.
Valid values include:
-
ASCENDING: List the build identifiers in ascending order, by build number. -
DESCENDING: List the build identifiers in descending order, by build number.
If the project has more than 100 builds, setting the sort order will result in an error.
-
-
next_token(Optional[String], 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.
Raises:
-
InvalidInputException–The input value that was provided is not valid.
-
ResourceNotFoundException–The specified Amazon Web Services resource cannot be found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codebuild/_services/code_build.py
2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 | |