Skip to content
v2.278.0

CodeEditorAppImageConfigProperty Struct ​

The configuration for the file system and kernels in a SageMaker image running as a Code Editor app.

The FileSystemConfig object is not supported.

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 codeEditorAppImageConfigProperty: sagemaker.CfnAppImageConfig.CodeEditorAppImageConfigProperty = {
  containerConfig: {
    containerArguments: ['containerArguments'],
    containerEntrypoint: ['containerEntrypoint'],
    containerEnvironmentVariables: [{
      key: 'key',
      value: 'value',
    }],
  },
};
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_image_config_property = sagemaker.CfnAppImageConfig.CodeEditorAppImageConfigProperty(
    container_config=sagemaker.CfnAppImageConfig.ContainerConfigProperty(
        container_arguments=["containerArguments"],
        container_entrypoint=["containerEntrypoint"],
        container_environment_variables=[sagemaker.CfnAppImageConfig.CustomImageContainerEnvironmentVariableProperty(
            key="key",
            value="value"
        )]
    )
)
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.*;

CodeEditorAppImageConfigProperty codeEditorAppImageConfigProperty = CodeEditorAppImageConfigProperty.builder()
        .containerConfig(ContainerConfigProperty.builder()
                .containerArguments(List.of("containerArguments"))
                .containerEntrypoint(List.of("containerEntrypoint"))
                .containerEnvironmentVariables(List.of(CustomImageContainerEnvironmentVariableProperty.builder()
                        .key("key")
                        .value("value")
                        .build()))
                .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 codeEditorAppImageConfigProperty = new CodeEditorAppImageConfigProperty {
    ContainerConfig = new ContainerConfigProperty {
        ContainerArguments = new [] { "containerArguments" },
        ContainerEntrypoint = new [] { "containerEntrypoint" },
        ContainerEnvironmentVariables = new [] { new CustomImageContainerEnvironmentVariableProperty {
            Key = "key",
            Value = "value"
        } }
    }
};
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"

codeEditorAppImageConfigProperty := &CodeEditorAppImageConfigProperty{
	ContainerConfig: &ContainerConfigProperty{
		ContainerArguments: []*string{
			jsii.String("containerArguments"),
		},
		ContainerEntrypoint: []*string{
			jsii.String("containerEntrypoint"),
		},
		ContainerEnvironmentVariables: []interface{}{
			&CustomImageContainerEnvironmentVariableProperty{
				Key: jsii.String("key"),
				Value: jsii.String("value"),
			},
		},
	},
}

Properties ​

containerConfigoptionalIResolvable | CfnAppImageConfig.ContainerConfigPropertycontainer_configoptionaltyping.Union[IResolvable, ContainerConfigProperty]containerConfigoptionalIResolvableContainerConfigoptionalIResolvableContainerConfigoptionalinterface{} #
The container configuration for a SageMaker image.