class Glue.Paginator.GetPartitionIndexes
paginator = client.get_paginator('get_partition_indexes')

Creates an iterator that will paginate through responses from Glue.Client.get_partition_indexes().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
        'MaxItems': 123,
        'StartingToken': 'string'
  • CatalogId (string) -- The catalog ID where the table resides.
  • DatabaseName (string) --


    Specifies the name of a database from which you want to retrieve partition indexes.

  • TableName (string) --


    Specifies the name of a table for which you want to retrieve the partition indexes.

  • 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.

    • StartingToken (string) --

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

Return type



Response Syntax

    'PartitionIndexDescriptorList': [
            'IndexName': 'string',
            'Keys': [
                    'Name': 'string',
                    'Type': 'string'
            'IndexStatus': 'CREATING'|'ACTIVE'|'DELETING'|'FAILED',
            'BackfillErrors': [
                    'Partitions': [
                            'Values': [


Response Structure

  • (dict) --

    • PartitionIndexDescriptorList (list) --

      A list of index descriptors.

      • (dict) --

        A descriptor for a partition index in a table.

        • IndexName (string) --

          The name of the partition index.

        • Keys (list) --

          A list of one or more keys, as KeySchemaElement structures, for the partition index.

          • (dict) --

            A partition key pair consisting of a name and a type.

            • Name (string) --

              The name of a partition key.

            • Type (string) --

              The type of a partition key.

        • IndexStatus (string) --

          The status of the partition index.

          The possible statuses are:

          • CREATING: The index is being created. When an index is in a CREATING state, the index or its table cannot be deleted.
          • ACTIVE: The index creation succeeds.
          • FAILED: The index creation fails.
          • DELETING: The index is deleted from the list of indexes.
        • BackfillErrors (list) --

          A list of errors that can occur when registering partition indexes for an existing table.

          • (dict) --

            A list of errors that can occur when registering partition indexes for an existing table.

            These errors give the details about why an index registration failed and provide a limited number of partitions in the response, so that you can fix the partitions at fault and try registering the index again. The most common set of errors that can occur are categorized as follows:

            • EncryptedPartitionError: The partitions are encrypted.
            • InvalidPartitionTypeDataError: The partition value doesn't match the data type for that partition column.
            • MissingPartitionValueError: The partitions are encrypted.
            • UnsupportedPartitionCharacterError: Characters inside the partition value are not supported. For example: U+0000 , U+0001, U+0002.
            • InternalError: Any error which does not belong to other error codes.
            • Code (string) --

              The error code for an error that occurred when registering partition indexes for an existing table.

            • Partitions (list) --

              A list of a limited number of partitions in the response.

              • (dict) --

                Contains a list of values defining partitions.

                • Values (list) --

                  The list of values.

                  • (string) --