Skip to main content

domains

Creates, updates, deletes or gets a domain resource or lists domains in a region

Overview

Namedomains
TypeResource
DescriptionA domain is an organizing entity for connecting together assets, users, and their projects
Idaws.datazone.domains

Fields

NameDatatypeDescription
arnstringThe ARN of the Amazon DataZone domain.
created_atstringThe timestamp of when the Amazon DataZone domain was last updated.
descriptionstringThe description of the Amazon DataZone domain.
domain_execution_rolestringThe domain execution role that is created when an Amazon DataZone domain is created. The domain execution role is created in the AWS account that houses the Amazon DataZone domain.
idstringThe id of the Amazon DataZone domain.
kms_key_identifierstringThe identifier of the AWS Key Management Service (KMS) key that is used to encrypt the Amazon DataZone domain, metadata, and reporting data.
last_updated_atstringThe timestamp of when the Amazon DataZone domain was last updated.
managed_account_idstringThe identifier of the AWS account that manages the domain.
namestringThe name of the Amazon DataZone domain.
portal_urlstringThe URL of the data portal for this Amazon DataZone domain.
single_sign_onobjectThe single-sign on configuration of the Amazon DataZone domain.
statusstringThe status of the Amazon DataZone domain.
tagsarrayThe tags specified for the Amazon DataZone domain.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDomainExecutionRole, Name, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all domains in a region.

SELECT
region,
arn,
created_at,
description,
domain_execution_role,
id,
kms_key_identifier,
last_updated_at,
managed_account_id,
name,
portal_url,
single_sign_on,
status,
tags
FROM aws.datazone.domains
WHERE region = 'us-east-1';

Gets all properties from an individual domain.

SELECT
region,
arn,
created_at,
description,
domain_execution_role,
id,
kms_key_identifier,
last_updated_at,
managed_account_id,
name,
portal_url,
single_sign_on,
status,
tags
FROM aws.datazone.domains
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new domain resource, using stack-deploy.

/*+ create */
INSERT INTO aws.datazone.domains (
DomainExecutionRole,
Name,
region
)
SELECT
'{{ DomainExecutionRole }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.datazone.domains
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the domains resource, the following permissions are required:

Create

datazone:CreateDomain,
datazone:UpdateDomain,
datazone:GetDomain,
datazone:TagResource,
sso:CreateManagedApplicationInstance,
sso:DeleteManagedApplicationInstance,
sso:PutApplicationAssignmentConfiguration

Read

datazone:GetDomain

Update

datazone:UpdateDomain,
datazone:GetDomain,
datazone:TagResource,
datazone:UntagResource,
sso:CreateManagedApplicationInstance,
sso:DeleteManagedApplicationInstance,
sso:PutApplicationAssignmentConfiguration

Delete

datazone:DeleteDomain,
datazone:GetDomain

List

datazone:ListDomains