CodeEditorAppSettingsProperty Struct
The Code Editor application settings.
For more information about Code Editor, see Get started with Code Editor in Amazon SageMaker .
| Source | |
|---|---|
| Type last changed |
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 codeEditorAppSettingsProperty: sagemaker.CfnUserProfile.CodeEditorAppSettingsProperty = {
appLifecycleManagement: {
idleSettings: {
idleTimeoutInMinutes: 123,
lifecycleManagement: 'lifecycleManagement',
maxIdleTimeoutInMinutes: 123,
minIdleTimeoutInMinutes: 123,
},
},
builtInLifecycleConfigArn: 'builtInLifecycleConfigArn',
customImages: [{
appImageConfigName: 'appImageConfigName',
imageName: 'imageName',
// the properties below are optional
imageVersionNumber: 123,
}],
defaultResourceSpec: {
instanceType: 'instanceType',
lifecycleConfigArn: 'lifecycleConfigArn',
sageMakerImageArn: 'sageMakerImageArn',
sageMakerImageVersionArn: 'sageMakerImageVersionArn',
trainingPlanArn: 'trainingPlanArn',
},
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
code_editor_app_settings_property = sagemaker.CfnUserProfile.CodeEditorAppSettingsProperty(
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",
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"
),
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.*;
CodeEditorAppSettingsProperty codeEditorAppSettingsProperty = 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")
.trainingPlanArn("trainingPlanArn")
.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 codeEditorAppSettingsProperty = new CodeEditorAppSettingsProperty {
AppLifecycleManagement = new AppLifecycleManagementProperty {
IdleSettings = new IdleSettingsProperty {
IdleTimeoutInMinutes = 123,
LifecycleManagement = "lifecycleManagement",
MaxIdleTimeoutInMinutes = 123,
MinIdleTimeoutInMinutes = 123
}
},
BuiltInLifecycleConfigArn = "builtInLifecycleConfigArn",
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"
},
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"
codeEditorAppSettingsProperty := &CodeEditorAppSettingsProperty{
AppLifecycleManagement: &AppLifecycleManagementProperty{
IdleSettings: &IdleSettingsProperty{
IdleTimeoutInMinutes: jsii.Number(123),
LifecycleManagement: jsii.String("lifecycleManagement"),
MaxIdleTimeoutInMinutes: jsii.Number(123),
MinIdleTimeoutInMinutes: jsii.Number(123),
},
},
BuiltInLifecycleConfigArn: jsii.String("builtInLifecycleConfigArn"),
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"),
},
LifecycleConfigArns: []*string{
jsii.String("lifecycleConfigArns"),
},
}
Properties
appLifecycleManagementoptionalIResolvable | CfnUserProfile.app_lifecycle_managementoptionaltyping.Union[IResolvable, AppLifecycleManagementProperty]appLifecycleManagementoptionalIResolvableAppLifecycleManagementoptionalIResolvableAppLifecycleManagementoptionalinterface{} #Settings that are used to configure and manage the lifecycle of CodeEditor 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.
customImagesoptionalIResolvable | IResolvable | CfnUserProfile.custom_imagesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CustomImageProperty]]]customImagesoptionalIResolvableCustomImagesoptionalIResolvableCustomImagesoptionalinterface{} #A list of custom SageMaker images that are configured to run as a Code Editor app.
defaultResourceSpecoptionalIResolvable | CfnUserProfile.default_resource_specoptionaltyping.Union[IResolvable, ResourceSpecProperty]defaultResourceSpecoptionalIResolvableDefaultResourceSpecoptionalIResolvableDefaultResourceSpecoptionalinterface{} #The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the Code Editor app.
lifecycleConfigArnsoptionalstring[]lifecycle_config_arnsoptionaltyping.List[str]lifecycleConfigArnsoptionalList<String>LifecycleConfigArnsoptionalstring[]LifecycleConfigArnsoptional*[]*string #The Amazon Resource Name (ARN) of the Code Editor application lifecycle configuration.