Skip to content
v2.277.0

JupyterLabAppSettingsProperty Struct ​

The settings for the JupyterLab application.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const jupyterLabAppSettingsProperty: sagemaker.CfnUserProfile.JupyterLabAppSettingsProperty = {
  appLifecycleManagement: {
    idleSettings: {
      idleTimeoutInMinutes: 123,
      lifecycleManagement: 'lifecycleManagement',
      maxIdleTimeoutInMinutes: 123,
      minIdleTimeoutInMinutes: 123,
    },
  },
  builtInLifecycleConfigArn: 'builtInLifecycleConfigArn',
  codeRepositories: [{
    repositoryUrl: 'repositoryUrl',
  }],
  customImages: [{
    appImageConfigName: 'appImageConfigName',
    imageName: 'imageName',

    // the properties below are optional
    imageVersionNumber: 123,
  }],
  defaultResourceSpec: {
    instanceType: 'instanceType',
    lifecycleConfigArn: 'lifecycleConfigArn',
    sageMakerImageArn: 'sageMakerImageArn',
    sageMakerImageVersionArn: 'sageMakerImageVersionArn',
    trainingPlanArn: 'trainingPlanArn',
  },
  emrSettings: {
    assumableRoleArns: ['assumableRoleArns'],
    executionRoleArns: ['executionRoleArns'],
  },
  lifecycleConfigArns: ['lifecycleConfigArns'],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

jupyter_lab_app_settings_property = sagemaker.CfnUserProfile.JupyterLabAppSettingsProperty(
    app_lifecycle_management=sagemaker.CfnUserProfile.AppLifecycleManagementProperty(
        idle_settings=sagemaker.CfnUserProfile.IdleSettingsProperty(
            idle_timeout_in_minutes=123,
            lifecycle_management="lifecycleManagement",
            max_idle_timeout_in_minutes=123,
            min_idle_timeout_in_minutes=123
        )
    ),
    built_in_lifecycle_config_arn="builtInLifecycleConfigArn",
    code_repositories=[sagemaker.CfnUserProfile.CodeRepositoryProperty(
        repository_url="repositoryUrl"
    )],
    custom_images=[sagemaker.CfnUserProfile.CustomImageProperty(
        app_image_config_name="appImageConfigName",
        image_name="imageName",

        # the properties below are optional
        image_version_number=123
    )],
    default_resource_spec=sagemaker.CfnUserProfile.ResourceSpecProperty(
        instance_type="instanceType",
        lifecycle_config_arn="lifecycleConfigArn",
        sage_maker_image_arn="sageMakerImageArn",
        sage_maker_image_version_arn="sageMakerImageVersionArn",
        training_plan_arn="trainingPlanArn"
    ),
    emr_settings=sagemaker.CfnUserProfile.EmrSettingsProperty(
        assumable_role_arns=["assumableRoleArns"],
        execution_role_arns=["executionRoleArns"]
    ),
    lifecycle_config_arns=["lifecycleConfigArns"]
)
java
// 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.*;

JupyterLabAppSettingsProperty jupyterLabAppSettingsProperty = 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")
                .trainingPlanArn("trainingPlanArn")
                .build())
        .emrSettings(EmrSettingsProperty.builder()
                .assumableRoleArns(List.of("assumableRoleArns"))
                .executionRoleArns(List.of("executionRoleArns"))
                .build())
        .lifecycleConfigArns(List.of("lifecycleConfigArns"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 jupyterLabAppSettingsProperty = new JupyterLabAppSettingsProperty {
    AppLifecycleManagement = new AppLifecycleManagementProperty {
        IdleSettings = new IdleSettingsProperty {
            IdleTimeoutInMinutes = 123,
            LifecycleManagement = "lifecycleManagement",
            MaxIdleTimeoutInMinutes = 123,
            MinIdleTimeoutInMinutes = 123
        }
    },
    BuiltInLifecycleConfigArn = "builtInLifecycleConfigArn",
    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",
        TrainingPlanArn = "trainingPlanArn"
    },
    EmrSettings = new EmrSettingsProperty {
        AssumableRoleArns = new [] { "assumableRoleArns" },
        ExecutionRoleArns = new [] { "executionRoleArns" }
    },
    LifecycleConfigArns = new [] { "lifecycleConfigArns" }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

jupyterLabAppSettingsProperty := &JupyterLabAppSettingsProperty{
	AppLifecycleManagement: &AppLifecycleManagementProperty{
		IdleSettings: &IdleSettingsProperty{
			IdleTimeoutInMinutes: jsii.Number(123),
			LifecycleManagement: jsii.String("lifecycleManagement"),
			MaxIdleTimeoutInMinutes: jsii.Number(123),
			MinIdleTimeoutInMinutes: jsii.Number(123),
		},
	},
	BuiltInLifecycleConfigArn: jsii.String("builtInLifecycleConfigArn"),
	CodeRepositories: []interface{}{
		&CodeRepositoryProperty{
			RepositoryUrl: jsii.String("repositoryUrl"),
		},
	},
	CustomImages: []interface{}{
		&CustomImageProperty{
			AppImageConfigName: jsii.String("appImageConfigName"),
			ImageName: jsii.String("imageName"),

			// the properties below are optional
			ImageVersionNumber: jsii.Number(123),
		},
	},
	DefaultResourceSpec: &ResourceSpecProperty{
		InstanceType: jsii.String("instanceType"),
		LifecycleConfigArn: jsii.String("lifecycleConfigArn"),
		SageMakerImageArn: jsii.String("sageMakerImageArn"),
		SageMakerImageVersionArn: jsii.String("sageMakerImageVersionArn"),
		TrainingPlanArn: jsii.String("trainingPlanArn"),
	},
	EmrSettings: &EmrSettingsProperty{
		AssumableRoleArns: []*string{
			jsii.String("assumableRoleArns"),
		},
		ExecutionRoleArns: []*string{
			jsii.String("executionRoleArns"),
		},
	},
	LifecycleConfigArns: []*string{
		jsii.String("lifecycleConfigArns"),
	},
}

Properties ​

appLifecycleManagementoptionalIResolvable | CfnUserProfile.AppLifecycleManagementPropertyapp_lifecycle_managementoptionaltyping.Union[IResolvable, AppLifecycleManagementProperty]appLifecycleManagementoptionalIResolvableAppLifecycleManagementoptionalIResolvableAppLifecycleManagementoptionalinterface{}#
Indicates whether idle shutdown is activated for JupyterLab applications.
builtInLifecycleConfigArnoptionalstringbuilt_in_lifecycle_config_arnoptionalstrbuiltInLifecycleConfigArnoptionalStringBuiltInLifecycleConfigArnoptionalstringBuiltInLifecycleConfigArnoptional*string#
The lifecycle configuration that runs before the default lifecycle configuration.

It can override changes made in the default lifecycle configuration.

codeRepositoriesoptionalIResolvable | IResolvable | CfnUserProfile.CodeRepositoryProperty[]code_repositoriesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CodeRepositoryProperty]]]codeRepositoriesoptionalIResolvableCodeRepositoriesoptionalIResolvableCodeRepositoriesoptionalinterface{}#
A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.
customImagesoptionalIResolvable | IResolvable | CfnUserProfile.CustomImageProperty[]custom_imagesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CustomImageProperty]]]customImagesoptionalIResolvableCustomImagesoptionalIResolvableCustomImagesoptionalinterface{}#
A list of custom SageMaker images that are configured to run as a JupyterLab app.
defaultResourceSpecoptionalIResolvable | CfnUserProfile.ResourceSpecPropertydefault_resource_specoptionaltyping.Union[IResolvable, ResourceSpecProperty]defaultResourceSpecoptionalIResolvableDefaultResourceSpecoptionalIResolvableDefaultResourceSpecoptionalinterface{}#
The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the JupyterLab app.
emrSettingsoptionalIResolvable | CfnUserProfile.EmrSettingsPropertyemr_settingsoptionaltyping.Union[IResolvable, EmrSettingsProperty]emrSettingsoptionalIResolvableEmrSettingsoptionalIResolvableEmrSettingsoptionalinterface{}#
Configuration parameters specifying IAM roles assumed by SageMaker's execution role and cluster instances.
lifecycleConfigArnsoptionalstring[]lifecycle_config_arnsoptionaltyping.List[str]lifecycleConfigArnsoptionalList<String>LifecycleConfigArnsoptionalstring[]LifecycleConfigArnsoptional*[]*string#
The Amazon Resource Name (ARN) of the lifecycle configurations attached to the user profile or domain.

To remove a lifecycle config, you must set LifecycleConfigArns to an empty list.