Interface CfnUserProfile.IUserSettingsProperty
A collection of settings that apply to users of Amazon SageMaker Studio.
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IUserSettingsProperty
Syntax (vb)
Public Interface IUserSettingsProperty
Remarks
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
.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var userSettingsProperty = new UserSettingsProperty {
CodeEditorAppSettings = new CodeEditorAppSettingsProperty {
AppLifecycleManagement = new AppLifecycleManagementProperty {
IdleSettings = new IdleSettingsProperty {
IdleTimeoutInMinutes = 123,
LifecycleManagement = "lifecycleManagement",
MaxIdleTimeoutInMinutes = 123,
MinIdleTimeoutInMinutes = 123
}
},
CustomImages = new [] { new CustomImageProperty {
AppImageConfigName = "appImageConfigName",
ImageName = "imageName",
// the properties below are optional
ImageVersionNumber = 123
} },
DefaultResourceSpec = new ResourceSpecProperty {
InstanceType = "instanceType",
LifecycleConfigArn = "lifecycleConfigArn",
SageMakerImageArn = "sageMakerImageArn",
SageMakerImageVersionArn = "sageMakerImageVersionArn"
},
LifecycleConfigArns = new [] { "lifecycleConfigArns" }
},
CustomFileSystemConfigs = new [] { new CustomFileSystemConfigProperty {
EfsFileSystemConfig = new EFSFileSystemConfigProperty {
FileSystemId = "fileSystemId",
// the properties below are optional
FileSystemPath = "fileSystemPath"
},
FSxLustreFileSystemConfig = new FSxLustreFileSystemConfigProperty {
FileSystemId = "fileSystemId",
// the properties below are optional
FileSystemPath = "fileSystemPath"
}
} },
CustomPosixUserConfig = new CustomPosixUserConfigProperty {
Gid = 123,
Uid = 123
},
DefaultLandingUri = "defaultLandingUri",
ExecutionRole = "executionRole",
JupyterLabAppSettings = new JupyterLabAppSettingsProperty {
AppLifecycleManagement = new AppLifecycleManagementProperty {
IdleSettings = new IdleSettingsProperty {
IdleTimeoutInMinutes = 123,
LifecycleManagement = "lifecycleManagement",
MaxIdleTimeoutInMinutes = 123,
MinIdleTimeoutInMinutes = 123
}
},
CodeRepositories = new [] { new CodeRepositoryProperty {
RepositoryUrl = "repositoryUrl"
} },
CustomImages = new [] { new CustomImageProperty {
AppImageConfigName = "appImageConfigName",
ImageName = "imageName",
// the properties below are optional
ImageVersionNumber = 123
} },
DefaultResourceSpec = new ResourceSpecProperty {
InstanceType = "instanceType",
LifecycleConfigArn = "lifecycleConfigArn",
SageMakerImageArn = "sageMakerImageArn",
SageMakerImageVersionArn = "sageMakerImageVersionArn"
},
LifecycleConfigArns = new [] { "lifecycleConfigArns" }
},
JupyterServerAppSettings = new JupyterServerAppSettingsProperty {
DefaultResourceSpec = new ResourceSpecProperty {
InstanceType = "instanceType",
LifecycleConfigArn = "lifecycleConfigArn",
SageMakerImageArn = "sageMakerImageArn",
SageMakerImageVersionArn = "sageMakerImageVersionArn"
},
LifecycleConfigArns = new [] { "lifecycleConfigArns" }
},
KernelGatewayAppSettings = new KernelGatewayAppSettingsProperty {
CustomImages = new [] { new CustomImageProperty {
AppImageConfigName = "appImageConfigName",
ImageName = "imageName",
// the properties below are optional
ImageVersionNumber = 123
} },
DefaultResourceSpec = new ResourceSpecProperty {
InstanceType = "instanceType",
LifecycleConfigArn = "lifecycleConfigArn",
SageMakerImageArn = "sageMakerImageArn",
SageMakerImageVersionArn = "sageMakerImageVersionArn"
},
LifecycleConfigArns = new [] { "lifecycleConfigArns" }
},
RStudioServerProAppSettings = new RStudioServerProAppSettingsProperty {
AccessStatus = "accessStatus",
UserGroup = "userGroup"
},
SecurityGroups = new [] { "securityGroups" },
SharingSettings = new SharingSettingsProperty {
NotebookOutputOption = "notebookOutputOption",
S3KmsKeyId = "s3KmsKeyId",
S3OutputPath = "s3OutputPath"
},
SpaceStorageSettings = new DefaultSpaceStorageSettingsProperty {
DefaultEbsStorageSettings = new DefaultEbsStorageSettingsProperty {
DefaultEbsVolumeSizeInGb = 123,
MaximumEbsVolumeSizeInGb = 123
}
},
StudioWebPortal = "studioWebPortal",
StudioWebPortalSettings = new StudioWebPortalSettingsProperty {
HiddenAppTypes = new [] { "hiddenAppTypes" },
HiddenMlTools = new [] { "hiddenMlTools" }
}
};
Synopsis
Properties
Code |
The Code Editor application settings. |
Custom |
The settings for assigning a custom file system to a user profile. |
Custom |
Details about the POSIX identity that is used for file system operations. |
Default |
The default experience that the user is directed to when accessing the domain. The supported values are:. |
Execution |
The execution role for the user. |
Jupyter |
The settings for the JupyterLab application. |
Jupyter |
The Jupyter server's app settings. |
Kernel |
The kernel gateway app settings. |
RStudio |
A collection of settings that configure user interaction with the |
Security |
The security groups for the Amazon Virtual Private Cloud (VPC) that the domain uses for communication. |
Sharing |
Specifies options for sharing Amazon SageMaker AI Studio notebooks. |
Space |
The storage settings for a space. |
Studio |
Whether the user can access Studio. |
Studio |
Studio settings. |
Properties
CodeEditorAppSettings
The Code Editor application settings.
virtual object CodeEditorAppSettings { get; }
Property Value
System.
Remarks
SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
CustomFileSystemConfigs
The settings for assigning a custom file system to a user profile.
virtual object CustomFileSystemConfigs { get; }
Property Value
System.
Remarks
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.
CustomPosixUserConfig
Details about the POSIX identity that is used for file system operations.
virtual object CustomPosixUserConfig { get; }
Property Value
System.
Remarks
SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
DefaultLandingUri
The default experience that the user is directed to when accessing the domain. The supported values are:.
virtual string DefaultLandingUri { get; }
Property Value
System.
Remarks
ExecutionRole
The execution role for the user.
virtual string ExecutionRole { get; }
Property Value
System.
Remarks
SageMaker applies this setting only to private spaces that the user creates in the domain. SageMaker doesn't apply this setting to shared spaces.
JupyterLabAppSettings
The settings for the JupyterLab application.
virtual object JupyterLabAppSettings { get; }
Property Value
System.
Remarks
SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
JupyterServerAppSettings
The Jupyter server's app settings.
virtual object JupyterServerAppSettings { get; }
Property Value
System.
Remarks
KernelGatewayAppSettings
The kernel gateway app settings.
virtual object KernelGatewayAppSettings { get; }
Property Value
System.
Remarks
RStudioServerProAppSettings
A collection of settings that configure user interaction with the RStudioServerPro
app.
virtual object RStudioServerProAppSettings { get; }
Property Value
System.
Remarks
SecurityGroups
The security groups for the Amazon Virtual Private Cloud (VPC) that the domain uses for communication.
virtual string[] SecurityGroups { get; }
Property Value
System.
Remarks
Optional when the CreateDomain.AppNetworkAccessType
parameter is set to PublicInternetOnly
.
Required when the CreateDomain.AppNetworkAccessType
parameter is set to VpcOnly
, unless specified as part of the DefaultUserSettings
for 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.
SharingSettings
Specifies options for sharing Amazon SageMaker AI Studio notebooks.
virtual object SharingSettings { get; }
Property Value
System.
Remarks
SpaceStorageSettings
The storage settings for a space.
virtual object SpaceStorageSettings { get; }
Property Value
System.
Remarks
SageMaker applies these settings only to private spaces that the user creates in the domain. SageMaker doesn't apply these settings to shared spaces.
StudioWebPortal
Whether the user can access Studio.
virtual string StudioWebPortal { get; }
Property Value
System.
Remarks
If this value is set to DISABLED
, the user cannot access Studio, even if that is the default experience for the domain.
StudioWebPortalSettings
Studio settings.
virtual object StudioWebPortalSettings { get; }
Property Value
System.
Remarks
If these settings are applied on a user level, they take priority over the settings applied on a domain level.