# SpaceCodeEditorAppSettingsProperty

The application settings for a Code Editor space.

- Source: Generated at build time
- Type last changed: v2.159.0 · 19 Sep 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `appLifecycleManagement`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSpace.SpaceAppLifecycleManagementProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnSpace.SpaceAppLifecycleManagementProperty.html) — Settings that are used to configure and manage the lifecycle of CodeEditor applications in a space.

- `defaultResourceSpec`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSpace.ResourceSpecProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnSpace.ResourceSpecProperty.html) — Specifies the ARNs of a SageMaker image and SageMaker image version, and the instance type that the version runs on.
