LexModelBuildingService / Paginator / GetSlotTypeVersions

GetSlotTypeVersions

class LexModelBuildingService.Paginator.GetSlotTypeVersions
paginator = client.get_paginator('get_slot_type_versions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from LexModelBuildingService.Client.get_slot_type_versions().

Danger

This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The name of the slot type for which versions should be returned.

  • 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

{
    'slotTypes': [
        {
            'name': 'string',
            'description': 'string',
            'lastUpdatedDate': datetime(2015, 1, 1),
            'createdDate': datetime(2015, 1, 1),
            'version': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • slotTypes (list) –

      An array of SlotTypeMetadata objects, one for each numbered version of the slot type plus one for the $LATEST version.

      • (dict) –

        Provides information about a slot type..

        • name (string) –

          The name of the slot type.

        • description (string) –

          A description of the slot type.

        • lastUpdatedDate (datetime) –

          The date that the slot type was updated. When you create a resource, the creation date and last updated date are the same.

        • createdDate (datetime) –

          The date that the slot type was created.

        • version (string) –

          The version of the slot type.

    • NextToken (string) –

      A token to resume pagination.