put_asset
¶
put_asset(
asset_type_id: AssetTypeId,
identifier: AssetId,
name: AssetName,
forms: AssetFormMap,
*,
config_overrides: Optional[GlueClientConfig] = None,
description: Optional[AssetDescription] = None,
client_token: Optional[HashString] = None,
) -> PutAssetResponse
Creates or updates an asset in Glue Data Catalog. If the asset already exists, this operation updates it; otherwise, a new asset is created.
Parameters:
-
asset_type_id(AssetTypeId) –The identifier of the asset type for the asset.
-
identifier(AssetId) –The unique identifier of the asset. If an asset with this identifier already exists, it is updated.
-
name(AssetName) –The name of the asset.
-
description(Optional[AssetDescription], default:None) –The description of the asset.
-
forms(AssetFormMap) –The forms to set on the asset, keyed by form name. Each entry specifies the form type and its JSON content.
-
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
16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 | |