list_builds

CodeBuild.Client.list_builds(**kwargs)

Gets a list of build IDs, with each build ID representing a single build.

See also: AWS API Documentation

Request Syntax

response = client.list_builds(
    sortOrder='ASCENDING'|'DESCENDING',
    nextToken='string'
)
Parameters
  • sortOrder (string) --

    The order to list build IDs. Valid values include:

    • ASCENDING : List the build IDs in ascending order by build ID.
    • DESCENDING : List the build IDs in descending order by build ID.
  • 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 IDs, 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