Glue / Client / put_attachment
put_attachment¶
- Glue.Client.put_attachment(**kwargs)¶
Attaches a form to an asset or an iterable form item in Glue Data Catalog. If an attachment with the same name already exists, it is overwritten.
See also: AWS API Documentation
Request Syntax
response = client.put_attachment( AssetIdentifier='string', IterableFormName='string', ItemIdentifier='string', AttachmentName='string', Content='string', FormTypeId='string', ClientToken='string' )
- Parameters:
AssetIdentifier (string) –
[REQUIRED]
The unique identifier of the asset to attach the form to.
IterableFormName (string) – The name of the iterable form. When specified along with
itemIdentifier, the attachment targets an item within the iterable form rather than the asset itself.ItemIdentifier (string) – The identifier of the item within the iterable form. Required when
iterableFormNameis specified.AttachmentName (string) –
[REQUIRED]
The name of the attachment.
Content (string) –
[REQUIRED]
The JSON content of the form, conforming to the schema of the specified form type.
FormTypeId (string) –
[REQUIRED]
The identifier of the form type for this attachment.
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
{ 'AssetIdentifier': 'string', 'IterableFormName': 'string', 'ItemIdentifier': 'string', 'AttachmentName': 'string', 'FormTypeId': 'string' }
Response Structure
(dict) –
AssetIdentifier (string) –
The unique identifier of the asset.
IterableFormName (string) –
The name of the iterable form, if the attachment targets an item.
ItemIdentifier (string) –
The identifier of the item within the iterable form, if applicable.
AttachmentName (string) –
The name of the attachment.
FormTypeId (string) –
The identifier of the form type for this attachment.
Exceptions
Glue.Client.exceptions.AccessDeniedExceptionGlue.Client.exceptions.EntityNotFoundExceptionGlue.Client.exceptions.InternalServiceExceptionGlue.Client.exceptions.InvalidInputExceptionGlue.Client.exceptions.ConcurrentModificationExceptionGlue.Client.exceptions.ThrottlingException