Skip to content
v2.278.0

SpaceCodeEditorAppSettingsProperty Struct ​

The application settings for a Code Editor space.

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 spaceCodeEditorAppSettingsProperty: sagemaker.CfnSpace.SpaceCodeEditorAppSettingsProperty = {
  appLifecycleManagement: {
    idleSettings: {
      idleTimeoutInMinutes: 123,
    },
  },
  defaultResourceSpec: {
    instanceType: 'instanceType',
    lifecycleConfigArn: 'lifecycleConfigArn',
    sageMakerImageArn: 'sageMakerImageArn',
    sageMakerImageVersionArn: 'sageMakerImageVersionArn',
    trainingPlanArn: 'trainingPlanArn',
  },
};
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

space_code_editor_app_settings_property = sagemaker.CfnSpace.SpaceCodeEditorAppSettingsProperty(
    app_lifecycle_management=sagemaker.CfnSpace.SpaceAppLifecycleManagementProperty(
        idle_settings=sagemaker.CfnSpace.SpaceIdleSettingsProperty(
            idle_timeout_in_minutes=123
        )
    ),
    default_resource_spec=sagemaker.CfnSpace.ResourceSpecProperty(
        instance_type="instanceType",
        lifecycle_config_arn="lifecycleConfigArn",
        sage_maker_image_arn="sageMakerImageArn",
        sage_maker_image_version_arn="sageMakerImageVersionArn",
        training_plan_arn="trainingPlanArn"
    )
)
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.*;

SpaceCodeEditorAppSettingsProperty spaceCodeEditorAppSettingsProperty = SpaceCodeEditorAppSettingsProperty.builder()
        .appLifecycleManagement(SpaceAppLifecycleManagementProperty.builder()
                .idleSettings(SpaceIdleSettingsProperty.builder()
                        .idleTimeoutInMinutes(123)
                        .build())
                .build())
        .defaultResourceSpec(ResourceSpecProperty.builder()
                .instanceType("instanceType")
                .lifecycleConfigArn("lifecycleConfigArn")
                .sageMakerImageArn("sageMakerImageArn")
                .sageMakerImageVersionArn("sageMakerImageVersionArn")
                .trainingPlanArn("trainingPlanArn")
                .build())
        .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 spaceCodeEditorAppSettingsProperty = new SpaceCodeEditorAppSettingsProperty {
    AppLifecycleManagement = new SpaceAppLifecycleManagementProperty {
        IdleSettings = new SpaceIdleSettingsProperty {
            IdleTimeoutInMinutes = 123
        }
    },
    DefaultResourceSpec = new ResourceSpecProperty {
        InstanceType = "instanceType",
        LifecycleConfigArn = "lifecycleConfigArn",
        SageMakerImageArn = "sageMakerImageArn",
        SageMakerImageVersionArn = "sageMakerImageVersionArn",
        TrainingPlanArn = "trainingPlanArn"
    }
};
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"

spaceCodeEditorAppSettingsProperty := &SpaceCodeEditorAppSettingsProperty{
	AppLifecycleManagement: &SpaceAppLifecycleManagementProperty{
		IdleSettings: &SpaceIdleSettingsProperty{
			IdleTimeoutInMinutes: 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"),
	},
}

Properties ​

appLifecycleManagementoptionalIResolvable | CfnSpace.SpaceAppLifecycleManagementPropertyapp_lifecycle_managementoptionaltyping.Union[IResolvable, SpaceAppLifecycleManagementProperty]appLifecycleManagementoptionalIResolvableAppLifecycleManagementoptionalIResolvableAppLifecycleManagementoptionalinterface{} #
Settings that are used to configure and manage the lifecycle of CodeEditor applications in a space.
defaultResourceSpecoptionalIResolvable | CfnSpace.ResourceSpecPropertydefault_resource_specoptionaltyping.Union[IResolvable, ResourceSpecProperty]defaultResourceSpecoptionalIResolvableDefaultResourceSpecoptionalIResolvableDefaultResourceSpecoptionalinterface{} #
Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.