get_asset
¶
get_asset(
domain_identifier: DomainId,
identifier: AssetIdentifier,
*,
config_overrides: Optional[DataZoneClientConfig] = 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/data_zone.py
11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 | |