Glue / Client / put_asset_type

put_asset_type

Glue.Client.put_asset_type(**kwargs)

Creates or updates an asset type in Glue Data Catalog. An asset type defines the structure of assets by specifying which forms they include. If an asset type with the given name already exists, it is updated.

See also: AWS API Documentation

Request Syntax

response = client.put_asset_type(
    Name='string',
    Forms={
        'string': {
            'FormTypeIdentifier': 'string'
        }
    },
    ClientToken='string'
)
Parameters:
  • Name (string) –

    [REQUIRED]

    The name of the asset type.

  • Forms (dict) –

    [REQUIRED]

    The forms that make up the asset type, keyed by form name. Each entry references the form type that defines the form’s schema.

    • (string) –

      • (dict) –

        A reference to a form type that is included in an asset type.

        • FormTypeIdentifier (string) – [REQUIRED]

          The identifier of the referenced form type.

  • ClientToken (string) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'Id': 'string',
    'Name': 'string',
    'Forms': {
        'string': {
            'FormTypeIdentifier': 'string'
        }
    }
}

Response Structure

  • (dict) –

    • Id (string) –

      The identifier of the asset type.

    • Name (string) –

      The name of the asset type.

    • Forms (dict) –

      The forms that make up the asset type, keyed by form name.

      • (string) –

        • (dict) –

          A reference to a form type that is included in an asset type.

          • FormTypeIdentifier (string) –

            The identifier of the referenced form type.

Exceptions