Skip to main content

domains

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

Overview

Namedomains
TypeResource
Idaws.datazone.domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
items_arrayThe results of the Search action.
next_tokenstringWhen the number of results is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of results, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to Search to list the next set of results.
total_match_countintegerTotal number of search results.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
searchselectdomain_identifier, regionSearches for assets in Amazon DataZone. Search in Amazon DataZone is a powerful capability that enables users to discover and explore data assets, glossary terms, and data products across their organization. It provides both basic and advanced search functionality, allowing users to find resources based on names, descriptions, metadata, and other attributes. Search can be scoped to specific types of resources (like assets, glossary terms, or data products) and can be filtered using various criteria such as creation date, owner, or status. The search functionality is essential for making the wealth of data resources in an organization discoverable and usable, helping users find the right data for their needs quickly and efficiently. Many search commands in Amazon DataZone are paginated, including search and search-types. When the result set is large, Amazon DataZone returns a nextToken in the response. This token can be used to retrieve the next page of results. Prerequisites: The --domain-identifier must refer to an existing Amazon DataZone domain. --search-scope must be one of: ASSET, GLOSSARY_TERM, DATA_PRODUCT, or GLOSSARY. The user must have search permissions in the specified domain. If using --filters, ensure that the JSON is well-formed and that each filter includes valid attribute and value keys. For paginated results, be prepared to use --next-token to fetch additional pages. To run a standard free-text search, the searchText parameter must be supplied. By default, all searchable fields are indexed for semantic search and will return semantic matches for SearchListings queries. To prevent semantic search indexing for a custom form attribute, see the CreateFormType API documentation. To run a lexical search query, enclose the query with double quotes (""). This will disable semantic search even for fields that have semantic search enabled and will only return results that contain the keywords wrapped by double quotes (order of tokens in the query is not enforced). Free-text search is supported for all attributes annotated with @amazon.datazone#searchable. To run a filtered search, provide filter clause using the filters parameter. To filter on glossary terms, use the special attribute __DataZoneGlossaryTerms. To filter on an indexed numeric attribute (i.e., a numeric attribute annotated with @amazon.datazone#sortable), provide a filter using the intValue parameter. The filters parameter can also be used to run more advanced free-text searches that target specific attributes (attributes must be annotated with @amazon.datazone#searchable for free-text search). Create/update timestamp filtering is supported using the special creationTime/lastUpdatedTime attributes. Filter types can be mixed and matched to power complex queries. To find out whether an attribute has been annotated and indexed for a given search type, use the GetFormType API to retrieve the form containing the attribute.
get_domainselectidentifier, regionGets an Amazon DataZone domain.
list_domainsselectregionstatus, maxResults, nextTokenLists Amazon DataZone domains.
create_domaininsertregion, nameCreates an Amazon DataZone domain.
associate_governed_termsupdatedomain_identifier, entity_identifier, entity_type, region, governedGlossaryTermsAssociates governed terms with an asset.
update_root_domain_unit_ownerupdatedomain_identifier, region, currentOwner, newOwnerUpdates the owner of the root domain unit.
update_domainupdateidentifier, regionclientTokenUpdates a Amazon DataZone domain.
delete_domaindeleteidentifier, regionclientToken, skipDeletionCheckDeletes a Amazon DataZone domain.
accept_predictionsexecdomain_identifier, identifier, regionrevisionAccepts automatically generated business-friendly metadata for your Amazon DataZone assets.
batch_put_attributes_metadataexecdomain_identifier, entity_type, entity_identifier, region, attributesWrites the attribute metadata.
cancel_metadata_generation_runexecdomain_identifier, identifier, regionCancels the metadata generation run. Prerequisites: The run must exist and be in a cancelable status (e.g., SUBMITTED, IN_PROGRESS). Runs in SUCCEEDED status cannot be cancelled. User must have access to the run and cancel permissions.
cancel_subscriptionexecdomain_identifier, identifier, regionCancels the subscription to the specified asset.
disassociate_governed_termsexecdomain_identifier, entity_identifier, entity_type, region, governedGlossaryTermsDisassociates restricted terms from an asset.
post_lineage_eventexecdomain_identifier, region, eventClient-TokenPosts a data lineage event.
start_metadata_generation_runexecdomain_identifier, region, target, owningProjectIdentifierStarts the metadata generation run. Prerequisites: Asset must be created and belong to the specified domain and project. Asset type must be supported for metadata generation (e.g., Amazon Web Services Glue table). Asset must have a structured schema with valid rows and columns. Valid values for --type: BUSINESS_DESCRIPTIONS, BUSINESS_NAMES, BUSINESS_GLOSSARY_ASSOCIATIONS. The user must have permission to run metadata generation in the domain/project.
query_graphexecdomain_identifier, region, matchmaxResults, nextTokenQueries entities in the graph store.
reject_predictionsexecdomain_identifier, identifier, regionrevisionRejects automatically generated business-friendly metadata for your Amazon DataZone assets.

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 identifier of the Amazon DataZone domain.
entity_identifierstringThe ID of an asset from which you want to disassociate restricted terms.
entity_typestringThe type of the asset from which you want to disassociate restricted terms.
identifierstringThe identifier of the prediction.
regionstringAWS region (default: us-east-1)
Client-TokenstringA unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
clientTokenstringA unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
maxResultsintegerThe maximum number of entities to return in a single call to QueryGraph. When the number of entities to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to QueryGraph to list the next set of entities.
nextTokenstringWhen the number of entities is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of entities, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to QueryGraph to list the next set of entities.
revisionstringThe revision that is to be made to the asset.
skipDeletionCheckbooleanSpecifies the optional flag to delete all child entities within the domain.
statusstringThe status of the data source.

SELECT examples

Searches for assets in Amazon DataZone. Search in Amazon DataZone is a powerful capability that enables users to discover and explore data assets, glossary terms, and data products across their organization. It provides both basic and advanced search functionality, allowing users to find resources based on names, descriptions, metadata, and other attributes. Search can be scoped to specific types of resources (like assets, glossary terms, or data products) and can be filtered using various criteria such as creation date, owner, or status. The search functionality is essential for making the wealth of data resources in an organization discoverable and usable, helping users find the right data for their needs quickly and efficiently. Many search commands in Amazon DataZone are paginated, including search and search-types. When the result set is large, Amazon DataZone returns a nextToken in the response. This token can be used to retrieve the next page of results. Prerequisites: The --domain-identifier must refer to an existing Amazon DataZone domain. --search-scope must be one of: ASSET, GLOSSARY_TERM, DATA_PRODUCT, or GLOSSARY. The user must have search permissions in the specified domain. If using --filters, ensure that the JSON is well-formed and that each filter includes valid attribute and value keys. For paginated results, be prepared to use --next-token to fetch additional pages. To run a standard free-text search, the searchText parameter must be supplied. By default, all searchable fields are indexed for semantic search and will return semantic matches for SearchListings queries. To prevent semantic search indexing for a custom form attribute, see the CreateFormType API documentation. To run a lexical search query, enclose the query with double quotes (""). This will disable semantic search even for fields that have semantic search enabled and will only return results that contain the keywords wrapped by double quotes (order of tokens in the query is not enforced). Free-text search is supported for all attributes annotated with @amazon.datazone#searchable. To run a filtered search, provide filter clause using the filters parameter. To filter on glossary terms, use the special attribute __DataZoneGlossaryTerms. To filter on an indexed numeric attribute (i.e., a numeric attribute annotated with @amazon.datazone#sortable), provide a filter using the intValue parameter. The filters parameter can also be used to run more advanced free-text searches that target specific attributes (attributes must be annotated with @amazon.datazone#searchable for free-text search). Create/update timestamp filtering is supported using the special creationTime/lastUpdatedTime attributes. Filter types can be mixed and matched to power complex queries. To find out whether an attribute has been annotated and indexed for a given search type, use the GetFormType API to retrieve the form containing the attribute.

SELECT
items_,
next_token,
total_match_count
FROM aws.datazone.domains
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon DataZone domain.

INSERT INTO aws.datazone.domains (
name,
description,
singleSignOn,
domainExecutionRole,
kmsKeyIdentifier,
tags,
domainVersion,
serviceRole,
clientToken,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ singleSignOn }}',
'{{ domainExecutionRole }}',
'{{ kmsKeyIdentifier }}',
'{{ tags }}',
'{{ domainVersion }}',
'{{ serviceRole }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
id,
name,
arn,
description,
domain_execution_role,
domain_version,
kms_key_identifier,
portal_url,
root_domain_unit_id,
service_role,
single_sign_on,
status,
tags
;

UPDATE examples

Associates governed terms with an asset.

UPDATE aws.datazone.domains
SET
governedGlossaryTerms = '{{ governedGlossaryTerms }}'
WHERE
domain_identifier = '{{ domain_identifier }}' --required
AND entity_identifier = '{{ entity_identifier }}' --required
AND entity_type = '{{ entity_type }}' --required
AND region = '{{ region }}' --required
AND governedGlossaryTerms = '{{ governedGlossaryTerms }}' --required;

DELETE examples

Deletes a Amazon DataZone domain.

DELETE FROM aws.datazone.domains
WHERE identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
AND skipDeletionCheck = '{{ skipDeletionCheck }}'
;

Lifecycle Methods

Accepts automatically generated business-friendly metadata for your Amazon DataZone assets.

EXEC aws.datazone.domains.accept_predictions
@domain_identifier='{{ domain_identifier }}' --required,
@identifier='{{ identifier }}' --required,
@region='{{ region }}' --required,
@revision='{{ revision }}'
@@json=
'{
"acceptRule": "{{ acceptRule }}",
"acceptChoices": "{{ acceptChoices }}",
"clientToken": "{{ clientToken }}"
}'
;