Bedrock / Paginator / ListImportedModels

ListImportedModels#

class Bedrock.Paginator.ListImportedModels#
paginator = client.get_paginator('list_imported_models')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from Bedrock.Client.list_imported_models().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    creationTimeBefore=datetime(2015, 1, 1),
    creationTimeAfter=datetime(2015, 1, 1),
    nameContains='string',
    sortBy='CreationTime',
    sortOrder='Ascending'|'Descending',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • creationTimeBefore (datetime) – Return imported models that created before the specified time.

  • creationTimeAfter (datetime) – Return imported models that were created after the specified time.

  • nameContains (string) – Return imported models only if the model name contains these characters.

  • sortBy (string) – The field to sort by in the returned list of imported models.

  • sortOrder (string) – Specifies whetehr to sort the results in ascending or descending order.

  • 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

{
    'modelSummaries': [
        {
            'modelArn': 'string',
            'modelName': 'string',
            'creationTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • modelSummaries (list) –

      Model summaries.

      • (dict) –

        Information about tne imported model.

        • modelArn (string) –

          The Amazon Resource Name (ARN) of the imported model.

        • modelName (string) –

          Name of the imported model.

        • creationTime (datetime) –

          Creation time of the imported model.

    • NextToken (string) –

      A token to resume pagination.