put_attachment
¶
put_attachment(
asset_identifier: AssetId,
attachment_name: AttachmentName,
content: FormContent,
*,
config_overrides: Optional[GlueClientConfig] = None,
iterable_form_name: Optional[IterableFormName] = None,
item_identifier: Optional[ItemIdentifier] = None,
form_type_identifier: Optional[FormTypeId] = 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_identifier(Optional[FormTypeId], default:None) –The identifier of the form type for this attachment. This field is required.
-
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
16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 | |