GroupProfile
The GroupProfile resource lets you manage AWS DataZone GroupProfiles which define groups within your data environment and their associated permissions.
Minimal Example
Section titled “Minimal Example”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});
Advanced Configuration
Section titled “Advanced Configuration”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});
Updating GroupProfile Status
Section titled “Updating GroupProfile Status”Update the status of an existing GroupProfile to “INACTIVE”.
const updatedGroupProfile = await AWS.DataZone.GroupProfile("updateGroupProfile", { DomainIdentifier: "myDomain", GroupIdentifier: "myGroup", Status: "INACTIVE"});
Handling Nonexistent Resources
Section titled “Handling Nonexistent Resources”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});