Glue / Client / get_asset

get_asset

Glue.Client.get_asset(**kwargs)

Retrieves the metadata for an asset in Glue Data Catalog, including its forms, additional attachments, and associated glossary terms.

See also: AWS API Documentation

Request Syntax

response = client.get_asset(
    Identifier='string'
)
Parameters:

Identifier (string) –

[REQUIRED]

The unique identifier of the asset to retrieve.

Return type:

dict

Returns:

Response Syntax

{
    'Id': 'string',
    'Name': 'string',
    'Description': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1),
    'AssetTypeId': 'string',
    'GlossaryTerms': [
        'string',
    ],
    'Forms': {
        'string': {
            'FormTypeId': 'string',
            'Content': 'string'
        }
    },
    'Attachments': {
        'string': {
            'FormTypeId': 'string',
            'Content': 'string'
        }
    },
    'IterableForms': {
        'string': {
            'FormTypeId': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • Id (string) –

      The unique identifier of the asset.

    • Name (string) –

      The name of the asset.

    • Description (string) –

      The description of the asset.

    • CreatedAt (datetime) –

      The timestamp at which the asset was created.

    • UpdatedAt (datetime) –

      The timestamp at which the asset was last updated.

    • AssetTypeId (string) –

      The identifier of the asset type for this asset.

    • GlossaryTerms (list) –

      The identifiers of the glossary terms associated with the asset.

      • (string) –

    • Forms (dict) –

      The forms on the asset, keyed by form name.

      • (string) –

        • (dict) –

          A form on an asset, consisting of the form type identifier and its JSON content.

          • FormTypeId (string) –

            The identifier of the form type that defines this form’s schema.

          • Content (string) –

            The JSON content of the form, conforming to the schema of the specified form type.

    • Attachments (dict) –

      Additional attachments on the asset for more context, keyed by attachment name.

      • (string) –

        • (dict) –

          A form on an asset, consisting of the form type identifier and its JSON content.

          • FormTypeId (string) –

            The identifier of the form type that defines this form’s schema.

          • Content (string) –

            The JSON content of the form, conforming to the schema of the specified form type.

    • IterableForms (dict) –

      The iterable forms available on the asset, keyed by form name (for example, columns). Use the form name with ListIterableForms or BatchGetIterableForms to retrieve the form’s items.

      • (string) –

        • (dict) –

          An iterable form available on an asset, identified by its form type.

          • FormTypeId (string) –

            The form type identifier of the iterable form (for example, columns), used to retrieve its items via ListIterableForms or BatchGetIterableForms.

Exceptions

  • Glue.Client.exceptions.AccessDeniedException

  • Glue.Client.exceptions.EntityNotFoundException

  • Glue.Client.exceptions.InternalServiceException

  • Glue.Client.exceptions.ThrottlingException

  • Glue.Client.exceptions.InvalidInputException