Skip to content
GitHubXDiscordRSS

GroupProfile

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

The GroupProfile resource lets you manage AWS DataZone GroupProfiles which define groups within your data environment and their associated permissions.

Create a basic GroupProfile with required properties and a common optional property.

import AWS from "alchemy/aws/control";
const groupProfile = await AWS.DataZone.GroupProfile("myGroupProfile", {
DomainIdentifier: "myDomain",
GroupIdentifier: "myGroup",
Status: "ACTIVE" // Optional: Set the status of the GroupProfile
});

Configure a GroupProfile with the option to adopt an existing resource.

const existingGroupProfile = await AWS.DataZone.GroupProfile("existingGroupProfile", {
DomainIdentifier: "myDomain",
GroupIdentifier: "existingGroup",
adopt: true // Optional: Adopt an existing GroupProfile instead of failing
});

Update the status of an existing GroupProfile to “INACTIVE”.

const updatedGroupProfile = await AWS.DataZone.GroupProfile("updateGroupProfile", {
DomainIdentifier: "myDomain",
GroupIdentifier: "myGroup",
Status: "INACTIVE"
});

Attempt to create a GroupProfile, specifying to adopt if it already exists.

const adoptGroupProfile = await AWS.DataZone.GroupProfile("adoptGroupProfile", {
DomainIdentifier: "myDomain",
GroupIdentifier: "myGroup",
adopt: true // Option to adopt if the resource already exists
});