list_builds_for_project
async
¶
list_builds_for_project(
project_name: NonEmptyString,
*,
config_overrides: Optional[AsyncCodeBuildClientConfig] = 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/async_code_build.py
2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 | |