list_projects
¶
list_projects(
*,
config_overrides: Optional[CodeBuildClientConfig] = None,
sort_by: Optional[ProjectSortByType] = None,
sort_order: Optional[SortOrderType] = None,
next_token: Optional[NonEmptyString] = None,
) -> ListProjectsOutput
Gets a list of build project names, with each build project name representing a single build project.
Parameters:
-
sort_by(Optional[ProjectSortByType], default:None) –The criterion to be used to list build project names. Valid values include:
-
CREATED_TIME: List based on when each build project was created. -
LAST_MODIFIED_TIME: List based on when information about each build project was last changed. -
NAME: List based on each build project's name.
Use
sortOrderto specify in what order to list the build project names based on the preceding criteria. -
-
sort_order(Optional[SortOrderType], default:None) –The order in which to list build projects. Valid values include:
-
ASCENDING: List in ascending order. -
DESCENDING: List in descending order.
Use
sortByto specify the criterion to be used to list build project names. -
-
next_token(Optional[NonEmptyString], 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.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codebuild/_services/code_build.py
2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 | |