UserProfile
Learn how to create, update, and manage AWS DataZone UserProfiles using Alchemy Cloud Control.
The UserProfile resource lets you manage AWS DataZone UserProfiles within your AWS account, allowing you to define user types and their associated statuses.
Minimal Example
Section titled “Minimal Example”Create a basic UserProfile with required properties.
import AWS from "alchemy/aws/control";
const userProfile = await AWS.DataZone.UserProfile("primaryUserProfile", { UserIdentifier: "user123@example.com", DomainIdentifier: "domainXYZ", Status: "ACTIVE", UserType: "MEMBER"});
Advanced Configuration
Section titled “Advanced Configuration”Configure a UserProfile with the option to adopt an existing resource if it already exists.
const advancedUserProfile = await AWS.DataZone.UserProfile("advancedUserProfile", { UserIdentifier: "manager@example.com", DomainIdentifier: "domainXYZ", Status: "ACTIVE", UserType: "ADMIN", adopt: true // Adopt existing UserProfile if it already exists});
Specific Use Case: Inactive UserProfile
Section titled “Specific Use Case: Inactive UserProfile”Create a UserProfile that is marked as inactive for an offboarded user.
const inactiveUserProfile = await AWS.DataZone.UserProfile("inactiveUserProfile", { UserIdentifier: "formerEmployee@example.com", DomainIdentifier: "domainXYZ", Status: "INACTIVE", UserType: "MEMBER"});
Specific Use Case: UserProfile with Different UserType
Section titled “Specific Use Case: UserProfile with Different UserType”Define a UserProfile for a guest user with specific properties.
const guestUserProfile = await AWS.DataZone.UserProfile("guestUserProfile", { UserIdentifier: "guestUser@example.com", DomainIdentifier: "domainXYZ", Status: "ACTIVE", UserType: "GUEST"});