Skip to main content

asset_types

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

Overview

Nameasset_types
TypeResource
Idaws.datazone.asset_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the asset type. (pattern: <code>[^.].</code>)
created_atstring (date-time)The timestamp of when the asset type was created.
created_bystringThe Amazon DataZone user who created the asset type.
descriptionstringThe description of the asset type.
domain_idstringThe ID of the Amazon DataZone domain in which the asset type exists. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
forms_outputobjectThe metadata forms attached to the asset type.
origin_domain_idstringThe ID of the Amazon DataZone domain in which the asset type was originally created. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
origin_project_idstringThe ID of the Amazon DataZone project in which the asset type was originally created. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
owning_project_idstringThe ID of the Amazon DataZone project that owns the asset type. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
revisionstringThe revision of the asset type.
updated_atstring (date-time)The timestamp of when the asset type was updated.
updated_bystringThe Amazon DataZone user that updated the asset type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_asset_typeselectdomain_identifier, identifier, regionrevisionGets an Amazon DataZone asset type. Asset types define the categories and characteristics of different kinds of data assets within Amazon DataZone.. They determine what metadata fields are required, what operations are possible, and how the asset integrates with other Amazon Web Services services. Asset types can range from built-in types like Amazon S3 buckets and Amazon Web Services Glue tables to custom types defined for specific organizational needs. Understanding asset types is crucial for properly organizing and managing different kinds of data resources. Prerequisites: The asset type with identifier must exist in the domain. ResourceNotFoundException. You must have the GetAssetType permission. Ensure the domain-identifier value is correct and accessible.
create_asset_typeinsertdomain_identifier, region, name, formsInput, owningProjectIdentifierCreates a custom asset type. Prerequisites: The formsInput field is required, however, can be passed as empty (e.g. -forms-input {}). You must have CreateAssetType permissions. The domain-identifier and owning-project-identifier must be valid and active. The name of the asset type must be unique within the domain — duplicate names will cause failure. JSON input must be valid — incorrect formatting causes Invalid JSON errors.
delete_asset_typedeletedomain_identifier, identifier, regionDeletes an asset type in Amazon DataZone. Prerequisites: The asset type must exist in the domain. You must have DeleteAssetType permission. The asset type must not be in use (e.g., assigned to any asset). If used, deletion will fail. You should retrieve the asset type using get-asset-type to confirm its presence before deletion.

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

SELECT examples

Gets an Amazon DataZone asset type. Asset types define the categories and characteristics of different kinds of data assets within Amazon DataZone.. They determine what metadata fields are required, what operations are possible, and how the asset integrates with other Amazon Web Services services. Asset types can range from built-in types like Amazon S3 buckets and Amazon Web Services Glue tables to custom types defined for specific organizational needs. Understanding asset types is crucial for properly organizing and managing different kinds of data resources. Prerequisites: The asset type with identifier must exist in the domain. ResourceNotFoundException. You must have the GetAssetType permission. Ensure the domain-identifier value is correct and accessible.

SELECT
name,
created_at,
created_by,
description,
domain_id,
forms_output,
origin_domain_id,
origin_project_id,
owning_project_id,
revision,
updated_at,
updated_by
FROM aws.datazone.asset_types
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
AND revision = '{{ revision }}'
;

INSERT examples

Creates a custom asset type. Prerequisites: The formsInput field is required, however, can be passed as empty (e.g. -forms-input {}). You must have CreateAssetType permissions. The domain-identifier and owning-project-identifier must be valid and active. The name of the asset type must be unique within the domain — duplicate names will cause failure. JSON input must be valid — incorrect formatting causes Invalid JSON errors.

INSERT INTO aws.datazone.asset_types (
name,
description,
formsInput,
owningProjectIdentifier,
domain_identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ formsInput }}' /* required */,
'{{ owningProjectIdentifier }}' /* required */,
'{{ domain_identifier }}',
'{{ region }}'
RETURNING
name,
created_at,
created_by,
description,
domain_id,
forms_output,
origin_domain_id,
origin_project_id,
owning_project_id,
revision,
updated_at,
updated_by
;

DELETE examples

Deletes an asset type in Amazon DataZone. Prerequisites: The asset type must exist in the domain. You must have DeleteAssetType permission. The asset type must not be in use (e.g., assigned to any asset). If used, deletion will fail. You should retrieve the asset type using get-asset-type to confirm its presence before deletion.

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