Glue / Client / batch_delete_table_version

batch_delete_table_version#

Glue.Client.batch_delete_table_version(**kwargs)#

Deletes a specified batch of versions of a table.

See also: AWS API Documentation

Request Syntax

response = client.batch_delete_table_version(
    CatalogId='string',
    DatabaseName='string',
    TableName='string',
    VersionIds=[
        'string',
    ]
)
Parameters:
  • CatalogId (string) – The ID of the Data Catalog where the tables reside. If none is provided, the Amazon Web Services account ID is used by default.

  • DatabaseName (string) –

    [REQUIRED]

    The database in the catalog in which the table resides. For Hive compatibility, this name is entirely lowercase.

  • TableName (string) –

    [REQUIRED]

    The name of the table. For Hive compatibility, this name is entirely lowercase.

  • VersionIds (list) –

    [REQUIRED]

    A list of the IDs of versions to be deleted. A VersionId is a string representation of an integer. Each version is incremented by 1.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{
    'Errors': [
        {
            'TableName': 'string',
            'VersionId': 'string',
            'ErrorDetail': {
                'ErrorCode': 'string',
                'ErrorMessage': 'string'
            }
        },
    ]
}

Response Structure

  • (dict) –

    • Errors (list) –

      A list of errors encountered while trying to delete the specified table versions.

      • (dict) –

        An error record for table-version operations.

        • TableName (string) –

          The name of the table in question.

        • VersionId (string) –

          The ID value of the version in question. A VersionID is a string representation of an integer. Each version is incremented by 1.

        • ErrorDetail (dict) –

          The details about the error.

          • ErrorCode (string) –

            The code associated with this error.

          • ErrorMessage (string) –

            A message describing the error.

Exceptions