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
11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 | |