BedrockAgentCoreControl / Paginator / ListDatasetVersions

ListDatasetVersions

class BedrockAgentCoreControl.Paginator.ListDatasetVersions
paginator = client.get_paginator('list_dataset_versions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from BedrockAgentCoreControl.Client.list_dataset_versions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    datasetId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • datasetId (string) –

    [REQUIRED]

    The unique identifier of the dataset.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'versions': [
        {
            'datasetVersion': 'string',
            'exampleCount': 123,
            'createdAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • versions (list) –

      The list of published dataset versions.

      • (dict) –

        Summary information about a published dataset version.

        • datasetVersion (string) –

          Dataset version identifier. Accepts “DRAFT” or a non-negative integer string.

          ”DRAFT” refers to the single mutable working copy of the dataset.

          • Always present after CreateDataset ingestion completes.

          • Content changes in-place when examples are added, updated, or deleted.

          • NOT tracked as a DDB DatasetVersionItem — state lives in S3 (draft/manifest.json, draft/dataset.jsonl) and the DatasetItem.exampleCount field.

          • Default for read operations when ?datasetVersion is absent.

          An integer string (e.g. “1”, “2”, “3”) refers to a published, immutable snapshot created by CreateDatasetVersion. Once created, a published version’s content never changes. Stored as a DDB DatasetVersionItem (SK=VERSION#{zero-padded-N}).

        • exampleCount (integer) –

          The number of examples in this version.

        • createdAt (datetime) –

          The timestamp when this version was published.

    • NextToken (string) –

      A token to resume pagination.