AWS.DataZone reference
AcceptPredictions
Section titled “AcceptPredictions”Source:
src/AWS/DataZone/AcceptPredictions.ts
Runtime binding for datazone:AcceptPredictions.
Accepts ML-generated metadata predictions (business-name suggestions) on an asset in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.AcceptPredictionsHttp).
AcceptPredictions: Publishing Assets
Section titled “AcceptPredictions: Publishing Assets”// init — bind the operation to the domainconst acceptPredictions = yield* AWS.DataZone.AcceptPredictions(domain);
// runtimeyield* acceptPredictions({ identifier: assetId, acceptRule: { rule: "ALL" } });AcceptSubscriptionRequest
Section titled “AcceptSubscriptionRequest”Source:
src/AWS/DataZone/AcceptSubscriptionRequest.ts
Runtime binding for datazone:AcceptSubscriptionRequest.
Approves a pending subscription request in the bound domain — the core of an automated approval workflow. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.AcceptSubscriptionRequestHttp).
AcceptSubscriptionRequest: Subscription Workflows
Section titled “AcceptSubscriptionRequest: Subscription Workflows”// init — bind the operation to the domainconst acceptSubscriptionRequest = yield* AWS.DataZone.AcceptSubscriptionRequest(domain);
// runtimeyield* acceptSubscriptionRequest({ identifier: requestId, decisionComment: "auto-approved" });CancelSubscription
Section titled “CancelSubscription”Source:
src/AWS/DataZone/CancelSubscription.ts
Runtime binding for datazone:CancelSubscription.
Cancels a subscription in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.CancelSubscriptionHttp).
CancelSubscription: Subscription Workflows
Section titled “CancelSubscription: Subscription Workflows”// init — bind the operation to the domainconst cancelSubscription = yield* AWS.DataZone.CancelSubscription(domain);
// runtimeyield* cancelSubscription({ identifier: subscriptionId });CreateAsset
Section titled “CreateAsset”Source:
src/AWS/DataZone/CreateAsset.ts
Runtime binding for datazone:CreateAsset.
Creates an asset in the bound domain’s inventory, e.g. to register data produced by the function itself. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.CreateAssetHttp).
CreateAsset: Publishing Assets
Section titled “CreateAsset: Publishing Assets”// init — bind the operation to the domainconst createAsset = yield* AWS.DataZone.CreateAsset(domain);
// runtimeconst asset = yield* createAsset({ name: "daily-orders", typeIdentifier: "amazon.datazone.S3ObjectCollectionAssetType", owningProjectIdentifier: projectId,});CreateAssetRevision
Section titled “CreateAssetRevision”Source:
src/AWS/DataZone/CreateAssetRevision.ts
Runtime binding for datazone:CreateAssetRevision.
Creates a new revision of an existing asset in the bound domain, e.g. after a schema change. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.CreateAssetRevisionHttp).
CreateAssetRevision: Publishing Assets
Section titled “CreateAssetRevision: Publishing Assets”// init — bind the operation to the domainconst createAssetRevision = yield* AWS.DataZone.CreateAssetRevision(domain);
// runtimeyield* createAssetRevision({ identifier: assetId, name: "daily-orders" });CreateSubscriptionRequest
Section titled “CreateSubscriptionRequest”Source:
src/AWS/DataZone/CreateSubscriptionRequest.ts
Runtime binding for datazone:CreateSubscriptionRequest.
Requests a subscription to a published listing in the bound domain on behalf of a project. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.CreateSubscriptionRequestHttp).
CreateSubscriptionRequest: Subscription Workflows
Section titled “CreateSubscriptionRequest: Subscription Workflows”// init — bind the operation to the domainconst createSubscriptionRequest = yield* AWS.DataZone.CreateSubscriptionRequest(domain);
// runtimeyield* createSubscriptionRequest({ subscribedPrincipals: [{ project: { identifier: projectId } }], subscribedListings: [{ identifier: listingId }], requestReason: "nightly enrichment job needs read access",});Domain
Section titled “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.
Domain: Creating Domains
Section titled “Domain: Creating Domains”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" },});Domain: Using the Domain
Section titled “Domain: Using the Domain”const project = yield* DataZone.Project("analytics", { domainId: domain.domainId, description: "Analytics team project",});Environment
Section titled “Environment”Source:
src/AWS/DataZone/Environment.ts
An Amazon DataZone environment — the provisioned collection of AWS resources (Glue databases, IAM roles, Athena workgroups, …) a project works with, deployed from an environment blueprint via CloudFormation.
Environment deployment is asynchronous (minutes — DataZone drives a
CloudFormation stack) and is polled to ACTIVE with a bounded wait. The
environment’s blueprint must be configured in the domain first (see
EnvironmentBlueprintConfiguration).
Environment: Creating Environments
Section titled “Environment: Creating Environments”Environment from a Profile (V1 Domains)
import * as DataZone from "alchemy/AWS/DataZone";
const env = yield* DataZone.Environment("datalake-env", { domainId: domain.domainId, projectId: project.projectId, environmentProfileId: profileId,});Environment with Provisioning Parameters
const env = yield* DataZone.Environment("datalake-env", { domainId: domain.domainId, projectId: project.projectId, environmentProfileId: profileId, description: "Analytics data lake environment", userParameters: [ { name: "glueDbName", value: "analytics_db" }, ],});EnvironmentBlueprintConfiguration
Section titled “EnvironmentBlueprintConfiguration”Source:
src/AWS/DataZone/EnvironmentBlueprintConfiguration.ts
The account/domain configuration of an Amazon DataZone environment
blueprint — enables a managed blueprint (like DefaultDataLake) in
specific regions with the IAM roles DataZone should provision with.
The blueprint itself is an AWS-managed definition; this resource owns only
its per-domain configuration (a PUT-style singleton keyed by domain +
blueprint).
EnvironmentBlueprintConfiguration: Configuring Blueprints
Section titled “EnvironmentBlueprintConfiguration: Configuring Blueprints”Enable the DefaultDataLake Blueprint
import * as DataZone from "alchemy/AWS/DataZone";
const config = yield* DataZone.EnvironmentBlueprintConfiguration( "datalake", { domainId: domain.domainId, environmentBlueprint: "DefaultDataLake", enabledRegions: ["us-west-2"], provisioningRoleArn: provisioningRole.roleArn, manageAccessRoleArn: manageAccessRole.roleArn, regionalParameters: { "us-west-2": { S3Location: "s3://my-datalake-bucket" }, }, },);Blueprint with Lake Formation Provisioning
const config = yield* DataZone.EnvironmentBlueprintConfiguration( "datalake", { domainId: domain.domainId, environmentBlueprint: "DefaultDataLake", enabledRegions: ["us-west-2"], provisioningRoleArn: provisioningRole.roleArn, provisioningConfigurations: [ { lakeFormationConfiguration: { locationRegistrationRole: registrationRole.roleArn, }, }, ], },);GetAsset
Section titled “GetAsset”Source:
src/AWS/DataZone/GetAsset.ts
Runtime binding for datazone:GetAsset.
Reads an asset in the bound domain — its forms, glossary terms, and latest revision. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetAssetHttp).
GetAsset: Searching the Catalog
Section titled “GetAsset: Searching the Catalog”// init — bind the operation to the domainconst getAsset = yield* AWS.DataZone.GetAsset(domain);
// runtimeconst asset = yield* getAsset({ identifier: assetId });GetDataSourceRun
Section titled “GetDataSourceRun”Source:
src/AWS/DataZone/GetDataSourceRun.ts
Runtime binding for datazone:GetDataSourceRun.
Reads the status of a data source run in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetDataSourceRunHttp).
GetDataSourceRun: Data Source Runs
Section titled “GetDataSourceRun: Data Source Runs”// init — bind the operation to the domainconst getDataSourceRun = yield* AWS.DataZone.GetDataSourceRun(domain);
// runtimeconst run = yield* getDataSourceRun({ identifier: runId });if (run.status === "FAILED") { yield* Effect.logError(run.errorMessage); }GetEnvironmentCredentials
Section titled “GetEnvironmentCredentials”Source:
src/AWS/DataZone/GetEnvironmentCredentials.ts
Runtime binding for datazone:GetEnvironmentCredentials.
Fetches the short-lived AWS credentials of the bound environment’s provisioned user role. The secretAccessKey and sessionToken are Redacted — unwrap with Redacted.value only at the point of use. The domain and environment ids are injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetEnvironmentCredentialsHttp).
GetEnvironmentCredentials: Environment Credentials
Section titled “GetEnvironmentCredentials: Environment Credentials”// init — bind the operation to the environmentconst getEnvironmentCredentials = yield* AWS.DataZone.GetEnvironmentCredentials(environment);
// runtimeconst creds = yield* getEnvironmentCredentials();const secret = Redacted.value(creds.secretAccessKey!);GetIamPortalLoginUrl
Section titled “GetIamPortalLoginUrl”Source:
src/AWS/DataZone/GetIamPortalLoginUrl.ts
Runtime binding for datazone:GetIamPortalLoginUrl.
Mints a single-use data portal sign-in URL for the bound domain, e.g. to embed in a notification. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetIamPortalLoginUrlHttp).
GetIamPortalLoginUrl: Portal, Profiles & Notifications
Section titled “GetIamPortalLoginUrl: Portal, Profiles & Notifications”// init — bind the operation to the domainconst getIamPortalLoginUrl = yield* AWS.DataZone.GetIamPortalLoginUrl(domain);
// runtimeconst { authCodeUrl } = yield* getIamPortalLoginUrl();GetLineageNode
Section titled “GetLineageNode”Source:
src/AWS/DataZone/GetLineageNode.ts
Runtime binding for datazone:GetLineageNode.
Reads a data lineage node in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetLineageNodeHttp).
GetLineageNode: Data Lineage
Section titled “GetLineageNode: Data Lineage”// init — bind the operation to the domainconst getLineageNode = yield* AWS.DataZone.GetLineageNode(domain);
// runtimeconst node = yield* getLineageNode({ identifier: nodeId });GetListing
Section titled “GetListing”Source:
src/AWS/DataZone/GetListing.ts
Runtime binding for datazone:GetListing.
Reads a published listing in the bound domain by id. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetListingHttp).
GetListing: Searching the Catalog
Section titled “GetListing: Searching the Catalog”// init — bind the operation to the domainconst getListing = yield* AWS.DataZone.GetListing(domain);
// runtimeconst listing = yield* getListing({ identifier: listingId });GetMetadataGenerationRun
Section titled “GetMetadataGenerationRun”Source:
src/AWS/DataZone/GetMetadataGenerationRun.ts
Runtime binding for datazone:GetMetadataGenerationRun.
Reads the status of a metadata generation run in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetMetadataGenerationRunHttp).
GetMetadataGenerationRun: Metadata Generation
Section titled “GetMetadataGenerationRun: Metadata Generation”// init — bind the operation to the domainconst getMetadataGenerationRun = yield* AWS.DataZone.GetMetadataGenerationRun(domain);
// runtimeconst run = yield* getMetadataGenerationRun({ identifier: runId });GetSubscription
Section titled “GetSubscription”Source:
src/AWS/DataZone/GetSubscription.ts
Runtime binding for datazone:GetSubscription.
Reads a subscription in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetSubscriptionHttp).
GetSubscription: Subscription Workflows
Section titled “GetSubscription: Subscription Workflows”// init — bind the operation to the domainconst getSubscription = yield* AWS.DataZone.GetSubscription(domain);
// runtimeconst sub = yield* getSubscription({ identifier: subscriptionId });GetTimeSeriesDataPoint
Section titled “GetTimeSeriesDataPoint”Source:
src/AWS/DataZone/GetTimeSeriesDataPoint.ts
Runtime binding for datazone:GetTimeSeriesDataPoint.
Reads a single time series data point on an asset or listing in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetTimeSeriesDataPointHttp).
GetTimeSeriesDataPoint: Time Series Metadata
Section titled “GetTimeSeriesDataPoint: Time Series Metadata”// init — bind the operation to the domainconst getTimeSeriesDataPoint = yield* AWS.DataZone.GetTimeSeriesDataPoint(domain);
// runtimeconst point = yield* getTimeSeriesDataPoint({ entityIdentifier: assetId, entityType: "ASSET", formName: "quality", identifier: dataPointId,});GetUserProfile
Section titled “GetUserProfile”Source:
src/AWS/DataZone/GetUserProfile.ts
Runtime binding for datazone:GetUserProfile.
Reads a user profile in the bound domain — e.g. to resolve the requester of a subscription request. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.GetUserProfileHttp).
GetUserProfile: Portal, Profiles & Notifications
Section titled “GetUserProfile: Portal, Profiles & Notifications”// init — bind the operation to the domainconst getUserProfile = yield* AWS.DataZone.GetUserProfile(domain);
// runtimeconst profile = yield* getUserProfile({ userIdentifier: userId });ListDataSourceRuns
Section titled “ListDataSourceRuns”Source:
src/AWS/DataZone/ListDataSourceRuns.ts
Runtime binding for datazone:ListDataSourceRuns.
Lists the runs of a data source in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.ListDataSourceRunsHttp).
ListDataSourceRuns: Data Source Runs
Section titled “ListDataSourceRuns: Data Source Runs”// init — bind the operation to the domainconst listDataSourceRuns = yield* AWS.DataZone.ListDataSourceRuns(domain);
// runtimeconst runs = yield* listDataSourceRuns({ dataSourceIdentifier: dataSourceId });ListNotifications
Section titled “ListNotifications”Source:
src/AWS/DataZone/ListNotifications.ts
Runtime binding for datazone:ListNotifications.
Lists task or event notifications for the calling user in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.ListNotificationsHttp).
ListNotifications: Portal, Profiles & Notifications
Section titled “ListNotifications: Portal, Profiles & Notifications”// init — bind the operation to the domainconst listNotifications = yield* AWS.DataZone.ListNotifications(domain);
// runtimeconst tasks = yield* listNotifications({ type: "TASK", taskStatus: "ACTIVE" });ListSubscriptionRequests
Section titled “ListSubscriptionRequests”Source:
src/AWS/DataZone/ListSubscriptionRequests.ts
Runtime binding for datazone:ListSubscriptionRequests.
Lists subscription requests in the bound domain, optionally by status — e.g. the PENDING queue an approval bot works through. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.ListSubscriptionRequestsHttp).
ListSubscriptionRequests: Subscription Workflows
Section titled “ListSubscriptionRequests: Subscription Workflows”// init — bind the operation to the domainconst listSubscriptionRequests = yield* AWS.DataZone.ListSubscriptionRequests(domain);
// runtimeconst pending = yield* listSubscriptionRequests({ status: "PENDING" });ListSubscriptions
Section titled “ListSubscriptions”Source:
src/AWS/DataZone/ListSubscriptions.ts
Runtime binding for datazone:ListSubscriptions.
Lists subscriptions in the bound domain, optionally by status. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.ListSubscriptionsHttp).
ListSubscriptions: Subscription Workflows
Section titled “ListSubscriptions: Subscription Workflows”// init — bind the operation to the domainconst listSubscriptions = yield* AWS.DataZone.ListSubscriptions(domain);
// runtimeconst subs = yield* listSubscriptions({ status: "APPROVED" });ListTimeSeriesDataPoints
Section titled “ListTimeSeriesDataPoints”Source:
src/AWS/DataZone/ListTimeSeriesDataPoints.ts
Runtime binding for datazone:ListTimeSeriesDataPoints.
Lists time series data points recorded on an asset or listing in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.ListTimeSeriesDataPointsHttp).
ListTimeSeriesDataPoints: Time Series Metadata
Section titled “ListTimeSeriesDataPoints: Time Series Metadata”// init — bind the operation to the domainconst listTimeSeriesDataPoints = yield* AWS.DataZone.ListTimeSeriesDataPoints(domain);
// runtimeconst points = yield* listTimeSeriesDataPoints({ entityIdentifier: assetId, entityType: "ASSET", formName: "quality",});PostLineageEvent
Section titled “PostLineageEvent”Source:
src/AWS/DataZone/PostLineageEvent.ts
Runtime binding for datazone:PostLineageEvent.
Posts an OpenLineage run event to the bound domain, recording the lineage of a data transformation the function performed. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.PostLineageEventHttp).
PostLineageEvent: Data Lineage
Section titled “PostLineageEvent: Data Lineage”// init — bind the operation to the domainconst postLineageEvent = yield* AWS.DataZone.PostLineageEvent(domain);
// runtimeyield* postLineageEvent({ event: JSON.stringify(openLineageRunEvent) });PostTimeSeriesDataPoints
Section titled “PostTimeSeriesDataPoints”Source:
src/AWS/DataZone/PostTimeSeriesDataPoints.ts
Runtime binding for datazone:PostTimeSeriesDataPoints.
Posts time series data points (e.g. data-quality metrics) onto an asset or listing in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.PostTimeSeriesDataPointsHttp).
PostTimeSeriesDataPoints: Time Series Metadata
Section titled “PostTimeSeriesDataPoints: Time Series Metadata”// init — bind the operation to the domainconst postTimeSeriesDataPoints = yield* AWS.DataZone.PostTimeSeriesDataPoints(domain);
// runtimeyield* postTimeSeriesDataPoints({ entityIdentifier: assetId, entityType: "ASSET", forms: [{ formName: "quality", typeIdentifier: "amazon.datazone.DataQualityResultFormType", content: "{}", timestamp: new Date() }],});Project
Section titled “Project”Source:
src/AWS/DataZone/Project.ts
An Amazon DataZone project — the collaboration space within a domain where teams catalog, publish, and subscribe to data assets.
The creating principal is automatically the project owner. DataZone projects do not support resource tags, so ownership is tracked purely by identity.
Project: Creating Projects
Section titled “Project: Creating Projects”Minimal Project
import * as DataZone from "alchemy/AWS/DataZone";
const domain = yield* DataZone.Domain("governance", {});
const project = yield* DataZone.Project("analytics", { domainId: domain.domainId, description: "Analytics team project",});Project with an Explicit Name
const project = yield* DataZone.Project("analytics", { domainId: domain.domainId, name: "analytics-team", glossaryTerms: [term.id],});RejectPredictions
Section titled “RejectPredictions”Source:
src/AWS/DataZone/RejectPredictions.ts
Runtime binding for datazone:RejectPredictions.
Rejects ML-generated metadata predictions on an asset in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.RejectPredictionsHttp).
RejectPredictions: Publishing Assets
Section titled “RejectPredictions: Publishing Assets”// init — bind the operation to the domainconst rejectPredictions = yield* AWS.DataZone.RejectPredictions(domain);
// runtimeyield* rejectPredictions({ identifier: assetId, rejectRule: { rule: "ALL" } });RejectSubscriptionRequest
Section titled “RejectSubscriptionRequest”Source:
src/AWS/DataZone/RejectSubscriptionRequest.ts
Runtime binding for datazone:RejectSubscriptionRequest.
Rejects a pending subscription request in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.RejectSubscriptionRequestHttp).
RejectSubscriptionRequest: Subscription Workflows
Section titled “RejectSubscriptionRequest: Subscription Workflows”// init — bind the operation to the domainconst rejectSubscriptionRequest = yield* AWS.DataZone.RejectSubscriptionRequest(domain);
// runtimeyield* rejectSubscriptionRequest({ identifier: requestId, decisionComment: "PII policy" });RevokeSubscription
Section titled “RevokeSubscription”Source:
src/AWS/DataZone/RevokeSubscription.ts
Runtime binding for datazone:RevokeSubscription.
Revokes an approved subscription in the bound domain, optionally retaining already-granted permissions. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.RevokeSubscriptionHttp).
RevokeSubscription: Subscription Workflows
Section titled “RevokeSubscription: Subscription Workflows”// init — bind the operation to the domainconst revokeSubscription = yield* AWS.DataZone.RevokeSubscription(domain);
// runtimeyield* revokeSubscription({ identifier: subscriptionId, retainPermissions: false });Search
Section titled “Search”Source:
src/AWS/DataZone/Search.ts
Runtime binding for datazone:Search.
Searches the bound domain’s inventory — assets, glossaries, and data products visible to the calling project. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.SearchHttp).
Search: Searching the Catalog
Section titled “Search: Searching the Catalog”// init — bind the operation to the domainconst search = yield* AWS.DataZone.Search(domain);
// runtimeconst result = yield* search({ searchScope: "ASSET", searchText: "orders" });const names = result.items?.map((i) => i.assetItem?.name);SearchListings
Section titled “SearchListings”Source:
src/AWS/DataZone/SearchListings.ts
Runtime binding for datazone:SearchListings.
Searches published listings (the catalog of subscribable assets and data products) in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.SearchListingsHttp).
SearchListings: Searching the Catalog
Section titled “SearchListings: Searching the Catalog”// init — bind the operation to the domainconst searchListings = yield* AWS.DataZone.SearchListings(domain);
// runtimeconst result = yield* searchListings({ searchText: "customer" });const listings = result.items?.map((i) => i.assetListing?.name);SearchTypes
Section titled “SearchTypes”Source:
src/AWS/DataZone/SearchTypes.ts
Runtime binding for datazone:SearchTypes.
Searches asset types and form types registered in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.SearchTypesHttp).
SearchTypes: Searching the Catalog
Section titled “SearchTypes: Searching the Catalog”// init — bind the operation to the domainconst searchTypes = yield* AWS.DataZone.SearchTypes(domain);
// runtimeconst result = yield* searchTypes({ searchScope: "ASSET_TYPE", managed: true });StartDataSourceRun
Section titled “StartDataSourceRun”Source:
src/AWS/DataZone/StartDataSourceRun.ts
Runtime binding for datazone:StartDataSourceRun.
Triggers an on-demand run of a data source in the bound domain, ingesting new technical assets into the inventory. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.StartDataSourceRunHttp).
StartDataSourceRun: Data Source Runs
Section titled “StartDataSourceRun: Data Source Runs”// init — bind the operation to the domainconst startDataSourceRun = yield* AWS.DataZone.StartDataSourceRun(domain);
// runtimeconst run = yield* startDataSourceRun({ dataSourceIdentifier: dataSourceId });StartMetadataGenerationRun
Section titled “StartMetadataGenerationRun”Source:
src/AWS/DataZone/StartMetadataGenerationRun.ts
Runtime binding for datazone:StartMetadataGenerationRun.
Starts an ML metadata generation run (business description suggestions) for an asset in the bound domain. The domain id is injected from the binding.
Provide the implementation with
Effect.provide(AWS.DataZone.StartMetadataGenerationRunHttp).
StartMetadataGenerationRun: Metadata Generation
Section titled “StartMetadataGenerationRun: Metadata Generation”// init — bind the operation to the domainconst startMetadataGenerationRun = yield* AWS.DataZone.StartMetadataGenerationRun(domain);
// runtimeconst run = yield* startMetadataGenerationRun({ types: ["BUSINESS_DESCRIPTIONS"], target: { type: "ASSET", identifier: assetId }, owningProjectIdentifier: projectId,});