UserProfile

class UserProfile : KotlinCustomResource

Provides a SageMaker AI User Profile resource.

Example Usage

Basic usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.UserProfile("example", {
domainId: test.id,
userProfileName: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.UserProfile("example",
domain_id=test["id"],
user_profile_name="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Sagemaker.UserProfile("example", new()
{
DomainId = test.Id,
UserProfileName = "example",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewUserProfile(ctx, "example", &sagemaker.UserProfileArgs{
DomainId: pulumi.Any(test.Id),
UserProfileName: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.UserProfile;
import com.pulumi.aws.sagemaker.UserProfileArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new UserProfile("example", UserProfileArgs.builder()
.domainId(test.id())
.userProfileName("example")
.build());
}
}
resources:
example:
type: aws:sagemaker:UserProfile
properties:
domainId: ${test.id}
userProfileName: example

Import

Using pulumi import, import SageMaker AI User Profiles using the arn. For example:

$ pulumi import aws:sagemaker/userProfile:UserProfile test_user_profile arn:aws:sagemaker:us-west-2:123456789012:user-profile/domain-id/profile-name

Properties

Link copied to clipboard
val arn: Output<String>

The user profile Amazon Resource Name (ARN).

Link copied to clipboard
val domainId: Output<String>

The ID of the associated Domain.

Link copied to clipboard

The ID of the user's profile in the Amazon Elastic File System (EFS) volume.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A specifier for the type of value specified in single_sign_on_user_value. Currently, the only supported value is UserName. If the Domain's AuthMode is SSO, this field is required. If the Domain's AuthMode is not SSO, this field cannot be specified.

Link copied to clipboard

The username of the associated AWS Single Sign-On User for this User Profile. If the Domain's AuthMode is SSO, this field is required, and must match a valid username of a user in your directory. If the Domain's AuthMode is not SSO, this field cannot be specified.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userProfileName: Output<String>

The name for the User Profile.

Link copied to clipboard

The user settings. See User Settings below.