put_attachment
async
¶
put_attachment(
asset_identifier: AssetId,
attachment_name: AttachmentName,
content: FormContent,
*,
config_overrides: Optional[AsyncGlueClientConfig] = 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/async_glue.py
17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 | |