UserProfile
The UserProfile resource lets you manage AWS SageMaker UserProfiles which are used to provide a unique environment for each user in a SageMaker domain.
Minimal Example
Section titled “Minimal Example”Create a basic SageMaker UserProfile with required properties and one optional property.
import AWS from "alchemy/aws/control";
const userProfile = await AWS.SageMaker.UserProfile("default-user-profile", { DomainId: "d-1234567890", UserProfileName: "defaultUser", SingleSignOnUserValue: "user@example.com"});
Advanced Configuration
Section titled “Advanced Configuration”Configure a UserProfile with additional settings including user settings and tags.
const advancedUserProfile = await AWS.SageMaker.UserProfile("advanced-user-profile", { DomainId: "d-1234567890", UserProfileName: "advancedUser", SingleSignOnUserValue: "admin@example.com", UserSettings: { JupyterServerAppSettings: { DefaultResourceSpec: { SageMakerImageArn: "arn:aws:sagemaker:us-west-2:123456789012:image/my-custom-image", SageMakerImageVersionArn: "arn:aws:sagemaker:us-west-2:123456789012:image-version/my-custom-image:1" } } }, Tags: [ { Key: "Project", Value: "MachineLearning" }, { Key: "Environment", Value: "Development" } ]});
User Profile Adoption
Section titled “User Profile Adoption”Create a UserProfile that adopts an existing resource if it already exists.
const adoptedUserProfile = await AWS.SageMaker.UserProfile("existing-user-profile", { DomainId: "d-1234567890", UserProfileName: "existingUser", adopt: true // Adopt existing resource instead of failing});