Skip to main content

data_products

Creates, updates, deletes, gets or lists a data_products resource.

Overview

Namedata_products
TypeResource
Idaws.datazone.data_products

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the data product. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
namestringThe name of the data product.
created_atstring (date-time)The timestamp at which the data product is created.
created_bystringThe user who created the data product.
descriptionstringThe description of the data product.
domain_idstringThe ID of the domain where the data product lives. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
first_revision_created_atstring (date-time)The timestamp at which the first revision of the data product is created.
first_revision_created_bystringThe user who created the first revision of the data product.
forms_outputarrayThe metadata forms of the data product.
glossary_termsarrayThe glossary terms of the data product.
items_arrayThe data assets of the data product.
owning_project_idstringThe ID of the owning project of the data product. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
revisionstringThe revision of the data product.
statusstringThe status of the data product. (CREATED, CREATING, CREATE_FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_productselectdomain_identifier, identifier, regionrevisionGets the data product. Prerequisites: The data product ID must exist. The domain must be valid and accessible. User must have read or discovery permissions for the data product.
create_data_productinsertdomain_identifier, region, name, owningProjectIdentifierCreates a data product. A data product is a comprehensive package that combines data assets with their associated metadata, documentation, and access controls. It's designed to serve specific business needs or use cases, making it easier for users to find and consume data appropriately. Data products include important information about data quality, freshness, and usage guidelines, effectively bridging the gap between data producers and consumers while ensuring proper governance. Prerequisites: The domain must exist and be accessible. The owning project must be valid and active. The name must be unique within the domain (no existing data product with the same name). User must have create permissions for data products in the project.
delete_data_productdeletedomain_identifier, identifier, regionDeletes a data product in Amazon DataZone. Prerequisites: The data product must exist and not be deleted or archived. The user must have delete permissions for the data product. Domain and project must be active.

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 data product is deleted.
identifierstringThe identifier of the data product that is deleted.
regionstringAWS region (default: us-east-1)
revisionstringThe revision of the data product.

SELECT examples

Gets the data product. Prerequisites: The data product ID must exist. The domain must be valid and accessible. User must have read or discovery permissions for the data product.

SELECT
id,
name,
created_at,
created_by,
description,
domain_id,
first_revision_created_at,
first_revision_created_by,
forms_output,
glossary_terms,
items_,
owning_project_id,
revision,
status
FROM aws.datazone.data_products
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
AND revision = '{{ revision }}'
;

INSERT examples

Creates a data product. A data product is a comprehensive package that combines data assets with their associated metadata, documentation, and access controls. It's designed to serve specific business needs or use cases, making it easier for users to find and consume data appropriately. Data products include important information about data quality, freshness, and usage guidelines, effectively bridging the gap between data producers and consumers while ensuring proper governance. Prerequisites: The domain must exist and be accessible. The owning project must be valid and active. The name must be unique within the domain (no existing data product with the same name). User must have create permissions for data products in the project.

INSERT INTO aws.datazone.data_products (
name,
owningProjectIdentifier,
description,
glossaryTerms,
formsInput,
items,
clientToken,
domain_identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ owningProjectIdentifier }}' /* required */,
'{{ description }}',
'{{ glossaryTerms }}',
'{{ formsInput }}',
'{{ items }}',
'{{ clientToken }}',
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
id,
name,
created_at,
created_by,
description,
domain_id,
first_revision_created_at,
first_revision_created_by,
forms_output,
glossary_terms,
items_,
owning_project_id,
revision,
status
;

DELETE examples

Deletes a data product in Amazon DataZone. Prerequisites: The data product must exist and not be deleted or archived. The user must have delete permissions for the data product. Domain and project must be active.

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