put_asset
¶
put_asset(
identifier: AssetId,
name: AssetName,
forms: AssetFormInputMap,
*,
config_overrides: Optional[GlueClientConfig] = None,
asset_type_identifier: Optional[AssetTypeId] = 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_identifier(Optional[AssetTypeId], default:None) –The identifier of the asset type for the asset. This field is required.
-
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(AssetFormInputMap) –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
16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 | |