put_attachment
¶
put_attachment(
asset_identifier: AssetId,
attachment_name: AttachmentName,
content: FormContent,
form_type_id: FormTypeId,
*,
config_overrides: Optional[GlueClientConfig] = None,
iterable_form_name: Optional[IterableFormName] = None,
item_identifier: Optional[ItemIdentifier] = None,
client_token: Optional[HashString] = None,
) -> PutAttachmentResponse
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.
Parameters:
-
asset_identifier(AssetId) –The unique identifier of the asset to attach the form to.
-
iterable_form_name(Optional[IterableFormName], default:None) –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. -
item_identifier(Optional[ItemIdentifier], default:None) –The identifier of the item within the iterable form. Required when
iterableFormNameis specified. -
attachment_name(AttachmentName) –The name of the attachment.
-
content(FormContent) –The JSON content of the form, conforming to the schema of the specified form type.
-
form_type_id(FormTypeId) –The identifier of the form type for this attachment.
-
client_token(Optional[HashString], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
ConcurrentModificationException–Two processes are trying to modify a resource simultaneously.
-
EntityNotFoundException–A specified entity does not exist
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
ThrottlingException–The throttling threshhold was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/glue.py
16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 | |