Glue / Client / delete_attachment

delete_attachment

Glue.Client.delete_attachment(**kwargs)

Deletes a form attachment from an asset in Glue Data Catalog.

See also: AWS API Documentation

Request Syntax

response = client.delete_attachment(
    AssetIdentifier='string',
    IterableFormName='string',
    ItemIdentifier='string',
    AttachmentName='string'
)
Parameters:
  • AssetIdentifier (string) –

    [REQUIRED]

    The unique identifier of the asset from which to delete the attachment.

  • IterableFormName (string) – The name of the iterable form. When specified along with itemIdentifier, the attachment is deleted from an item within the iterable form rather than from the asset itself.

  • ItemIdentifier (string) – The identifier of the item within the iterable form. Required when iterableFormName is specified.

  • AttachmentName (string) –

    [REQUIRED]

    The name of the attachment to delete.

Return type:

dict

Returns:

Response Syntax

{
    'AssetIdentifier': 'string'
}

Response Structure

  • (dict) –

    • AssetIdentifier (string) –

      The unique identifier of the asset.

Exceptions

  • Glue.Client.exceptions.AccessDeniedException

  • Glue.Client.exceptions.EntityNotFoundException

  • Glue.Client.exceptions.InternalServiceException

  • Glue.Client.exceptions.InvalidInputException

  • Glue.Client.exceptions.ConcurrentModificationException

  • Glue.Client.exceptions.ThrottlingException