CodeBuild / Client / list_builds_for_project

list_builds_for_project#

CodeBuild.Client.list_builds_for_project(**kwargs)#

Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.

See also: AWS API Documentation

Request Syntax

response = client.list_builds_for_project(
    projectName='string',
    sortOrder='ASCENDING'|'DESCENDING',
    nextToken='string'
)
Parameters:
  • projectName (string) –

    [REQUIRED]

    The name of the CodeBuild project.

  • sortOrder (string) –

    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.

  • nextToken (string) – 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.

Return type:

dict

Returns:

Response Syntax

{
    'ids': [
        'string',
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • ids (list) –

      A list of build identifiers for the specified build project, with each build ID representing a single build.

      • (string) –

    • nextToken (string) –

      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.

Exceptions

  • CodeBuild.Client.exceptions.InvalidInputException

  • CodeBuild.Client.exceptions.ResourceNotFoundException