Skip to content
GitHubXDiscordRSS

EnvironmentActions

Learn how to create, update, and manage AWS DataZone EnvironmentActions using Alchemy Cloud Control.

The EnvironmentActions resource lets you manage AWS DataZone EnvironmentActions for various operations within a data environment.

Create a basic EnvironmentActions resource with required properties and an optional description:

import AWS from "alchemy/aws/control";
const basicEnvironmentAction = await AWS.DataZone.EnvironmentActions("basic-env-action", {
name: "BasicEnvironmentAction",
environmentIdentifier: "env-12345",
description: "This is a basic environment action for demonstration purposes."
});

Configure an EnvironmentActions resource with additional properties such as parameters and domain identifier:

const advancedEnvironmentAction = await AWS.DataZone.EnvironmentActions("advanced-env-action", {
name: "AdvancedEnvironmentAction",
environmentIdentifier: "env-12345",
domainIdentifier: "domain-56789",
parameters: {
consoleLink: {
url: "https://console.aws.amazon.com/datazone/home",
description: "Link to AWS DataZone Console"
}
}
});

Create an EnvironmentActions resource that adopts an existing resource instead of failing if it already exists:

const adoptingEnvironmentAction = await AWS.DataZone.EnvironmentActions("adopt-env-action", {
name: "AdoptedEnvironmentAction",
environmentIdentifier: "env-12345",
adopt: true,
description: "This action will adopt an existing resource if it exists."
});

Define an EnvironmentActions resource that includes specific parameters for console linking:

const parameterizedEnvironmentAction = await AWS.DataZone.EnvironmentActions("parameterized-env-action", {
name: "ParameterizedEnvironmentAction",
environmentIdentifier: "env-12345",
parameters: {
consoleLink: {
url: "https://console.aws.amazon.com/datazone/home",
description: "Access the DataZone Console directly."
}
}
});