Skip to content

Domain

Source: src/AWS/DataZone/Domain.ts

An Amazon DataZone domain — the top-level container for data-governance projects, environments, glossaries, and assets.

Domain owns the domain lifecycle. Domain creation is asynchronous (typically 1–2 minutes) and is polled to AVAILABLE with a bounded wait. An execution role is created automatically (trusted by datazone.amazonaws.com, with the AmazonDataZoneDomainExecutionRolePolicy managed policy) unless an explicit domainExecutionRole is supplied.

Minimal Domain

import * as DataZone from "alchemy/AWS/DataZone";
const domain = yield* DataZone.Domain("governance", {
description: "Company-wide data governance domain",
});

Domain with an Explicit Execution Role

const domain = yield* DataZone.Domain("governance", {
name: "acme-governance",
domainExecutionRole: role.roleArn,
tags: { Team: "data-platform" },
});
const project = yield* DataZone.Project("analytics", {
domainId: domain.domainId,
description: "Analytics team project",
});