put_asset
async
¶
put_asset(
asset_type_id: AssetTypeId,
identifier: AssetId,
name: AssetName,
forms: AssetFormMap,
*,
config_overrides: Optional[AsyncGlueClientConfig] = 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/async_glue.py
16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 | |