Skip to main content

assets

Creates, updates, deletes, gets or lists an assets resource.

Overview

Nameassets
TypeResource
Idaws.datazone.assets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the asset. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
namestringThe name of the asset.
created_atstring (date-time)The timestamp of when the asset was created.
created_bystringThe Amazon DataZone user who created the asset.
descriptionstringThe description of the Amazon DataZone asset.
domain_idstringThe ID of the Amazon DataZone domain to which the asset belongs. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
external_identifierstringThe external ID of the asset.
first_revision_created_atstring (date-time)The timestamp of when the first revision of the asset was created.
first_revision_created_bystringThe Amazon DataZone user who created the first revision of the asset.
forms_outputarrayThe metadata forms attached to the asset.
glossary_termsarrayThe business glossary terms attached to the asset.
governed_glossary_termsarrayThe restricted glossary terms attached to an asset.
latest_time_series_data_point_forms_outputarrayThe latest data point that was imported into the time series form for the asset.
listingobjectThe listing of the asset.
owning_project_idstringThe ID of the project that owns the asset. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
read_only_forms_outputarrayThe read-only metadata forms attached to the asset.
revisionstringThe revision of the asset.
type_identifierstringThe ID of the asset type. (pattern: <code>(?!.)[\w.]*\w</code>)
type_revisionstringThe revision of the asset type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_assetselectdomain_identifier, identifier, regionrevisionGets 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
create_assetinsertdomain_identifier, region, name, typeIdentifier, owningProjectIdentifierCreates an asset in Amazon DataZone catalog. Before creating assets, make sure that the following requirements are met: --domain-identifier must refer to an existing domain. --owning-project-identifier must be a valid project within the domain. Asset type must be created beforehand using create-asset-type, or be a supported system-defined type. For more information, see create-asset-type. --type-revision (if used) must match a valid revision of the asset type. formsInput is required when it is associated as required in the asset-type. For more information, see create-form-type. Form content must include all required fields as per the form schema (e.g., bucketArn). You must invoke the following pre-requisite commands before invoking this API: CreateFormType CreateAssetType
delete_assetdeletedomain_identifier, identifier, regionDeletes an asset in Amazon DataZone. --domain-identifier must refer to a valid and existing domain. --identifier must refer to an existing asset in the specified domain. Asset must not be referenced in any existing asset filters. Asset must not be linked to any draft or published data product. User must have delete permissions for the domain and project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domain_identifierstringThe ID of the Amazon DataZone domain in which the asset is deleted.
identifierstringThe identifier of the asset that is deleted.
regionstringAWS region (default: us-east-1)
revisionstringThe revision of the Amazon DataZone asset.

SELECT examples

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

SELECT
id,
name,
created_at,
created_by,
description,
domain_id,
external_identifier,
first_revision_created_at,
first_revision_created_by,
forms_output,
glossary_terms,
governed_glossary_terms,
latest_time_series_data_point_forms_output,
listing,
owning_project_id,
read_only_forms_output,
revision,
type_identifier,
type_revision
FROM aws.datazone.assets
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
AND revision = '{{ revision }}'
;

INSERT examples

Creates an asset in Amazon DataZone catalog. Before creating assets, make sure that the following requirements are met: --domain-identifier must refer to an existing domain. --owning-project-identifier must be a valid project within the domain. Asset type must be created beforehand using create-asset-type, or be a supported system-defined type. For more information, see create-asset-type. --type-revision (if used) must match a valid revision of the asset type. formsInput is required when it is associated as required in the asset-type. For more information, see create-form-type. Form content must include all required fields as per the form schema (e.g., bucketArn). You must invoke the following pre-requisite commands before invoking this API: CreateFormType CreateAssetType

INSERT INTO aws.datazone.assets (
name,
externalIdentifier,
typeIdentifier,
typeRevision,
description,
glossaryTerms,
formsInput,
owningProjectIdentifier,
predictionConfiguration,
clientToken,
domain_identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ externalIdentifier }}',
'{{ typeIdentifier }}' /* required */,
'{{ typeRevision }}',
'{{ description }}',
'{{ glossaryTerms }}',
'{{ formsInput }}',
'{{ owningProjectIdentifier }}' /* required */,
'{{ predictionConfiguration }}',
'{{ clientToken }}',
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
id,
name,
created_at,
created_by,
description,
domain_id,
external_identifier,
first_revision_created_at,
first_revision_created_by,
forms_output,
glossary_terms,
governed_glossary_terms,
latest_time_series_data_point_forms_output,
listing,
owning_project_id,
prediction_configuration,
read_only_forms_output,
revision,
type_identifier,
type_revision
;

DELETE examples

Deletes an asset in Amazon DataZone. --domain-identifier must refer to a valid and existing domain. --identifier must refer to an existing asset in the specified domain. Asset must not be referenced in any existing asset filters. Asset must not be linked to any draft or published data product. User must have delete permissions for the domain and project.

DELETE FROM aws.datazone.assets
WHERE domain_identifier = '{{ domain_identifier }}' --required
AND identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
;