get_asset
async
¶
get_asset(
domain_identifier: DomainId,
identifier: AssetIdentifier,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
revision: Optional[Revision] = None,
) -> GetAssetOutput
Gets an Amazon DataZone asset.
An asset is the fundamental building block in Amazon DataZone, representing any data resource that needs to be cataloged and managed. It can take many forms, from Amazon S3 buckets and database tables to dashboards and machine learning models. Each asset contains comprehensive metadata about the resource, including its location, schema, ownership, and lineage information. Assets are essential for organizing and managing data resources across an organization, making them discoverable and usable while maintaining proper governance.
Before using the Amazon DataZone GetAsset command, ensure the following prerequisites are met:
-
Domain identifier must exist and be valid
-
Asset identifier must exist
-
User must have the required permissions to perform the action
Parameters:
-
domain_identifier(DomainId) –The ID of the Amazon DataZone domain to which the asset belongs.
-
identifier(AssetIdentifier) –The ID of the Amazon DataZone asset.
This parameter supports either the value of
assetIdorexternalIdentifieras input. If you are passing the value ofexternalIdentifier, you must prefix this value withexternalIdentifer%2F. -
revision(Optional[Revision], default:None) –The revision of the Amazon DataZone asset.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The specified resource cannot be found.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/async_data_zone.py
11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 | |