Class CfnUserProfile
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IUserProfileRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
A user profile represents a single user within a domain, and is the main way to reference a "person" for the purposes of sharing, reporting, and other user-oriented features. This entity is created when a user onboards to Amazon SageMaker Studio. If an administrator invites a person by email or imports them from IAM Identity Center , a user profile is automatically created. A user profile is the primary holder of settings for an individual user and has a reference to the user's private Amazon Elastic File System (EFS) home directory.
If you're using IAM Identity Center authentication, a user in IAM Identity Center , or a group in IAM Identity Center containing that user, must be assigned to the Amazon SageMaker Studio application from the IAM Identity Center Console to create a user profile. For more information about application assignment, see Assign user access . After assignment is complete, a user profile can be created for that user in IAM Identity Center with AWS CloudFormation.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
CfnUserProfile cfnUserProfile = CfnUserProfile.Builder.create(this, "MyCfnUserProfile")
.domainId("domainId")
.userProfileName("userProfileName")
// the properties below are optional
.singleSignOnUserIdentifier("singleSignOnUserIdentifier")
.singleSignOnUserValue("singleSignOnUserValue")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.userSettings(UserSettingsProperty.builder()
.autoMountHomeEfs("autoMountHomeEfs")
.codeEditorAppSettings(CodeEditorAppSettingsProperty.builder()
.appLifecycleManagement(AppLifecycleManagementProperty.builder()
.idleSettings(IdleSettingsProperty.builder()
.idleTimeoutInMinutes(123)
.lifecycleManagement("lifecycleManagement")
.maxIdleTimeoutInMinutes(123)
.minIdleTimeoutInMinutes(123)
.build())
.build())
.builtInLifecycleConfigArn("builtInLifecycleConfigArn")
.customImages(List.of(CustomImageProperty.builder()
.appImageConfigName("appImageConfigName")
.imageName("imageName")
// the properties below are optional
.imageVersionNumber(123)
.build()))
.defaultResourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.lifecycleConfigArns(List.of("lifecycleConfigArns"))
.build())
.customFileSystemConfigs(List.of(CustomFileSystemConfigProperty.builder()
.efsFileSystemConfig(EFSFileSystemConfigProperty.builder()
.fileSystemId("fileSystemId")
// the properties below are optional
.fileSystemPath("fileSystemPath")
.build())
.fSxLustreFileSystemConfig(FSxLustreFileSystemConfigProperty.builder()
.fileSystemId("fileSystemId")
// the properties below are optional
.fileSystemPath("fileSystemPath")
.build())
.s3FileSystemConfig(S3FileSystemConfigProperty.builder()
.mountPath("mountPath")
.s3Uri("s3Uri")
.build())
.build()))
.customPosixUserConfig(CustomPosixUserConfigProperty.builder()
.gid(123)
.uid(123)
.build())
.defaultLandingUri("defaultLandingUri")
.executionRole("executionRole")
.jupyterLabAppSettings(JupyterLabAppSettingsProperty.builder()
.appLifecycleManagement(AppLifecycleManagementProperty.builder()
.idleSettings(IdleSettingsProperty.builder()
.idleTimeoutInMinutes(123)
.lifecycleManagement("lifecycleManagement")
.maxIdleTimeoutInMinutes(123)
.minIdleTimeoutInMinutes(123)
.build())
.build())
.builtInLifecycleConfigArn("builtInLifecycleConfigArn")
.codeRepositories(List.of(CodeRepositoryProperty.builder()
.repositoryUrl("repositoryUrl")
.build()))
.customImages(List.of(CustomImageProperty.builder()
.appImageConfigName("appImageConfigName")
.imageName("imageName")
// the properties below are optional
.imageVersionNumber(123)
.build()))
.defaultResourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.lifecycleConfigArns(List.of("lifecycleConfigArns"))
.build())
.jupyterServerAppSettings(JupyterServerAppSettingsProperty.builder()
.defaultResourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.lifecycleConfigArns(List.of("lifecycleConfigArns"))
.build())
.kernelGatewayAppSettings(KernelGatewayAppSettingsProperty.builder()
.customImages(List.of(CustomImageProperty.builder()
.appImageConfigName("appImageConfigName")
.imageName("imageName")
// the properties below are optional
.imageVersionNumber(123)
.build()))
.defaultResourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.build())
.lifecycleConfigArns(List.of("lifecycleConfigArns"))
.build())
.rStudioServerProAppSettings(RStudioServerProAppSettingsProperty.builder()
.accessStatus("accessStatus")
.userGroup("userGroup")
.build())
.securityGroups(List.of("securityGroups"))
.sharingSettings(SharingSettingsProperty.builder()
.notebookOutputOption("notebookOutputOption")
.s3KmsKeyId("s3KmsKeyId")
.s3OutputPath("s3OutputPath")
.build())
.spaceStorageSettings(DefaultSpaceStorageSettingsProperty.builder()
.defaultEbsStorageSettings(DefaultEbsStorageSettingsProperty.builder()
.defaultEbsVolumeSizeInGb(123)
.maximumEbsVolumeSizeInGb(123)
.build())
.build())
.studioWebPortal("studioWebPortal")
.studioWebPortalSettings(StudioWebPortalSettingsProperty.builder()
.hiddenAppTypes(List.of("hiddenAppTypes"))
.hiddenInstanceTypes(List.of("hiddenInstanceTypes"))
.hiddenMlTools(List.of("hiddenMlTools"))
.hiddenSageMakerImageVersionAliases(List.of(HiddenSageMakerImageProperty.builder()
.sageMakerImageName("sageMakerImageName")
.versionAliases(List.of("versionAliases"))
.build()))
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSettings that are used to configure and manage the lifecycle of Amazon SageMaker Studio applications.static final classA fluent builder forCfnUserProfile.static interfaceThe Code Editor application settings.static interfaceA Git repository that SageMaker AI automatically displays to users for cloning in the JupyterServer application.static interfaceThe settings for assigning a custom file system to a user profile or space for an Amazon SageMaker AI Domain.static interfaceA custom SageMaker AI image.static interfaceDetails about the POSIX identity that is used for file system operations.static interfaceA collection of default EBS storage settings that apply to spaces created within a domain or user profile.static interfaceThe default storage settings for a space.static interfaceThe settings for assigning a custom Amazon EFS file system to a user profile or space for an Amazon SageMaker AI Domain.static interfaceThe settings for assigning a custom Amazon FSx for Lustre file system to a user profile or space for an Amazon SageMaker Domain.static interfaceThe SageMaker images that are hidden from the Studio user interface.static interfaceSettings related to idle shutdown of Studio applications.static interfaceThe settings for the JupyterLab application.static interfaceThe JupyterServer app settings.static interfaceThe KernelGateway app settings.static interfaceSpecifies the ARN's of a SageMaker AI image and SageMaker AI image version, and the instance type that the version runs on.static interfaceA collection of settings that configure user interaction with theRStudioServerProapp.static interfaceConfiguration for the custom Amazon S3 file system.static interfaceSpecifies options when sharing an Amazon SageMaker Studio notebook.static interfaceStudio settings.static interfaceA collection of settings that apply to users of Amazon SageMaker Studio.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IUserProfileRef
IUserProfileRef.Jsii$Default, IUserProfileRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnUserProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnUserProfile(software.amazon.jsii.JsiiObjectRef objRef) CfnUserProfile(software.constructs.Construct scope, String id, CfnUserProfileProps props) Create a newAWS::SageMaker::UserProfile. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForUserProfile(IUserProfileRef resource) The Amazon Resource Name (ARN) of the user profile, such asarn:aws:sagemaker:region:account-id:user-profile/domain-id/user-profile-name.The domain ID.A specifier for the type of value specified in SingleSignOnUserValue.The username of the associated AWS Single Sign-On User for this UserProfile.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs to apply to this resource.The user profile name.A reference to a UserProfile resource.A collection of settings that apply to users of Amazon SageMaker Studio.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDomainId(String value) The domain ID.voidA specifier for the type of value specified in SingleSignOnUserValue.voidsetSingleSignOnUserValue(String value) The username of the associated AWS Single Sign-On User for this UserProfile.voidsetTagsRaw(List<CfnTag> value) An array of key-value pairs to apply to this resource.voidsetUserProfileName(String value) The user profile name.voidsetUserSettings(IResolvable value) A collection of settings that apply to users of Amazon SageMaker Studio.voidA collection of settings that apply to users of Amazon SageMaker Studio.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnUserProfile
protected CfnUserProfile(software.amazon.jsii.JsiiObjectRef objRef) -
CfnUserProfile
protected CfnUserProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnUserProfile
@Stability(Stable) public CfnUserProfile(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnUserProfileProps props) Create a newAWS::SageMaker::UserProfile.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForUserProfile
@Stability(Stable) @NotNull public static String arnForUserProfile(@NotNull IUserProfileRef resource) - Parameters:
resource- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrUserProfileArn
The Amazon Resource Name (ARN) of the user profile, such asarn:aws:sagemaker:region:account-id:user-profile/domain-id/user-profile-name. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getUserProfileRef
A reference to a UserProfile resource.- Specified by:
getUserProfileRefin interfaceIUserProfileRef
-
getDomainId
The domain ID. -
setDomainId
The domain ID. -
getUserProfileName
The user profile name. -
setUserProfileName
The user profile name. -
getSingleSignOnUserIdentifier
A specifier for the type of value specified in SingleSignOnUserValue. -
setSingleSignOnUserIdentifier
A specifier for the type of value specified in SingleSignOnUserValue. -
getSingleSignOnUserValue
The username of the associated AWS Single Sign-On User for this UserProfile. -
setSingleSignOnUserValue
The username of the associated AWS Single Sign-On User for this UserProfile. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource. -
getUserSettings
A collection of settings that apply to users of Amazon SageMaker Studio.Returns union: either
IResolvableorCfnUserProfile.UserSettingsProperty -
setUserSettings
A collection of settings that apply to users of Amazon SageMaker Studio. -
setUserSettings
A collection of settings that apply to users of Amazon SageMaker Studio.
-