LakeFormation / Paginator / SearchDatabasesByLFTags

SearchDatabasesByLFTags#

class LakeFormation.Paginator.SearchDatabasesByLFTags#
paginator = client.get_paginator('search_databases_by_lf_tags')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from LakeFormation.Client.search_databases_by_lf_tags().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    CatalogId='string',
    Expression=[
        {
            'TagKey': 'string',
            'TagValues': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • CatalogId (string) – The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

  • Expression (list) –

    [REQUIRED]

    A list of conditions ( LFTag structures) to search for in database resources.

    • (dict) –

      A structure that allows an admin to grant user permissions on certain conditions. For example, granting a role access to all columns that do not have the LF-tag ‘PII’ in tables that have the LF-tag ‘Prod’.

      • TagKey (string) – [REQUIRED]

        The key-name for the LF-tag.

      • TagValues (list) – [REQUIRED]

        A list of possible values an attribute can take.

        The maximum number of values that can be defined for a LF-Tag is 1000. A single API call supports 50 values. You can use multiple API calls to add more values.

        • (string) –

  • 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

{
    'DatabaseList': [
        {
            'Database': {
                'CatalogId': 'string',
                'Name': 'string'
            },
            'LFTags': [
                {
                    'CatalogId': 'string',
                    'TagKey': 'string',
                    'TagValues': [
                        'string',
                    ]
                },
            ]
        },
    ]
}

Response Structure

  • (dict) –

    • DatabaseList (list) –

      A list of databases that meet the LF-tag conditions.

      • (dict) –

        A structure describing a database resource with LF-tags.

        • Database (dict) –

          A database that has LF-tags attached to it.

          • CatalogId (string) –

            The identifier for the Data Catalog. By default, it is the account ID of the caller.

          • Name (string) –

            The name of the database resource. Unique to the Data Catalog.

        • LFTags (list) –

          A list of LF-tags attached to the database.

          • (dict) –

            A structure containing an LF-tag key-value pair.

            • CatalogId (string) –

              The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.

            • TagKey (string) –

              The key-name for the LF-tag.

            • TagValues (list) –

              A list of possible values an attribute can take.

              • (string) –