Interface CfnDomain.UserSettingsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDomain.UserSettingsProperty.Jsii$Proxy
- Enclosing class:
CfnDomain
These settings are specified when the CreateUserProfile API is called, and as DefaultUserSettings when the CreateDomain API is called.
SecurityGroups is aggregated when specified in both calls. For all other settings in UserSettings , the values specified in CreateUserProfile take precedence over those specified in CreateDomain .
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.*;
UserSettingsProperty userSettingsProperty = UserSettingsProperty.builder()
.executionRole("executionRole")
// the properties below are optional
.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")
.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())
.rSessionAppSettings(RSessionAppSettingsProperty.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())
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDomain.UserSettingsPropertystatic final classAn implementation forCfnDomain.UserSettingsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringIndicates whether auto-mounting of an EFS volume is supported for the user profile.default ObjectThe Code Editor application settings.default ObjectThe settings for assigning a custom file system to a user profile.default ObjectDetails about the POSIX identity that is used for file system operations.default StringThe default experience that the user is directed to when accessing the domain.The execution role for the user.default ObjectThe settings for the JupyterLab application.default ObjectThe Jupyter server's app settings.default ObjectThe kernel gateway app settings.default ObjectA collection of settings that configure theRSessionGatewayapp.default ObjectA collection of settings that configure user interaction with theRStudioServerProapp.The security groups for the Amazon Virtual Private Cloud (VPC) that the domain uses for communication.default ObjectSpecifies options for sharing Amazon SageMaker AI Studio notebooks.default ObjectThe storage settings for a space.default StringWhether the user can access Studio.default ObjectStudio settings.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExecutionRole
The execution role for the user.SageMaker applies this setting only to private spaces that the user creates in the domain. SageMaker doesn't apply this setting to shared spaces.
- See Also:
-
getAutoMountHomeEfs
Indicates whether auto-mounting of an EFS volume is supported for the user profile.The
DefaultAsDomainvalue is only supported for user profiles. Do not use theDefaultAsDomainvalue when setting this parameter for a domain.SageMaker applies this setting only to private spaces that the user creates in the domain. SageMaker doesn't apply this setting to shared spaces.
- See Also:
-
getCodeEditorAppSettings
The Code Editor application settings.SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
Returns union: either
IResolvableorCfnDomain.CodeEditorAppSettingsProperty- See Also:
-
getCustomFileSystemConfigs
The settings for assigning a custom file system to a user profile.Permitted users can access this file system in Amazon SageMaker AI Studio.
SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDomain.CustomFileSystemConfigProperty>- See Also:
-
getCustomPosixUserConfig
Details about the POSIX identity that is used for file system operations.SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
Returns union: either
IResolvableorCfnDomain.CustomPosixUserConfigProperty- See Also:
-
getDefaultLandingUri
The default experience that the user is directed to when accessing the domain. The supported values are:.studio::: Indicates that Studio is the default experience. This value can only be passed ifStudioWebPortalis set toENABLED.app:JupyterServer:: Indicates that Studio Classic is the default experience.
- See Also:
-
getJupyterLabAppSettings
The settings for the JupyterLab application.SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
Returns union: either
IResolvableorCfnDomain.JupyterLabAppSettingsProperty- See Also:
-
getJupyterServerAppSettings
The Jupyter server's app settings.Returns union: either
IResolvableorCfnDomain.JupyterServerAppSettingsProperty- See Also:
-
getKernelGatewayAppSettings
The kernel gateway app settings.Returns union: either
IResolvableorCfnDomain.KernelGatewayAppSettingsProperty- See Also:
-
getRSessionAppSettings
A collection of settings that configure theRSessionGatewayapp.Returns union: either
IResolvableorCfnDomain.RSessionAppSettingsProperty- See Also:
-
getRStudioServerProAppSettings
A collection of settings that configure user interaction with theRStudioServerProapp.Returns union: either
IResolvableorCfnDomain.RStudioServerProAppSettingsProperty- See Also:
-
getSecurityGroups
The security groups for the Amazon Virtual Private Cloud (VPC) that the domain uses for communication.Optional when the
CreateDomain.AppNetworkAccessTypeparameter is set toPublicInternetOnly.Required when the
CreateDomain.AppNetworkAccessTypeparameter is set toVpcOnly, unless specified as part of theDefaultUserSettingsfor the domain.Amazon SageMaker AI adds a security group to allow NFS traffic from Amazon SageMaker AI Studio. Therefore, the number of security groups that you can specify is one less than the maximum number shown.
SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
- See Also:
-
getSharingSettings
Specifies options for sharing Amazon SageMaker AI Studio notebooks.Returns union: either
IResolvableorCfnDomain.SharingSettingsProperty- See Also:
-
getSpaceStorageSettings
The storage settings for a space.SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
Returns union: either
IResolvableorCfnDomain.DefaultSpaceStorageSettingsProperty- See Also:
-
getStudioWebPortal
Whether the user can access Studio.If this value is set to
DISABLED, the user cannot access Studio, even if that is the default experience for the domain.- See Also:
-
getStudioWebPortalSettings
Studio settings.If these settings are applied on a user level, they take priority over the settings applied on a domain level.
Returns union: either
IResolvableorCfnDomain.StudioWebPortalSettingsProperty- See Also:
-
builder
-