Skip to content
v2.278.0

KernelGatewayImageConfigProperty Struct ​

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

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 kernelGatewayImageConfigProperty: sagemaker.CfnAppImageConfig.KernelGatewayImageConfigProperty = {
  kernelSpecs: [{
    name: 'name',

    // the properties below are optional
    displayName: 'displayName',
  }],

  // the properties below are optional
  fileSystemConfig: {
    defaultGid: 123,
    defaultUid: 123,
    mountPath: 'mountPath',
  },
};
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

kernel_gateway_image_config_property = sagemaker.CfnAppImageConfig.KernelGatewayImageConfigProperty(
    kernel_specs=[sagemaker.CfnAppImageConfig.KernelSpecProperty(
        name="name",

        # the properties below are optional
        display_name="displayName"
    )],

    # the properties below are optional
    file_system_config=sagemaker.CfnAppImageConfig.FileSystemConfigProperty(
        default_gid=123,
        default_uid=123,
        mount_path="mountPath"
    )
)
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.*;

KernelGatewayImageConfigProperty kernelGatewayImageConfigProperty = KernelGatewayImageConfigProperty.builder()
        .kernelSpecs(List.of(KernelSpecProperty.builder()
                .name("name")

                // the properties below are optional
                .displayName("displayName")
                .build()))

        // the properties below are optional
        .fileSystemConfig(FileSystemConfigProperty.builder()
                .defaultGid(123)
                .defaultUid(123)
                .mountPath("mountPath")
                .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 kernelGatewayImageConfigProperty = new KernelGatewayImageConfigProperty {
    KernelSpecs = new [] { new KernelSpecProperty {
        Name = "name",

        // the properties below are optional
        DisplayName = "displayName"
    } },

    // the properties below are optional
    FileSystemConfig = new FileSystemConfigProperty {
        DefaultGid = 123,
        DefaultUid = 123,
        MountPath = "mountPath"
    }
};
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"

kernelGatewayImageConfigProperty := &KernelGatewayImageConfigProperty{
	KernelSpecs: []interface{}{
		&KernelSpecProperty{
			Name: jsii.String("name"),

			// the properties below are optional
			DisplayName: jsii.String("displayName"),
		},
	},

	// the properties below are optional
	FileSystemConfig: &FileSystemConfigProperty{
		DefaultGid: jsii.Number(123),
		DefaultUid: jsii.Number(123),
		MountPath: jsii.String("mountPath"),
	},
}

Properties ​

fileSystemConfigoptionalIResolvable | CfnAppImageConfig.FileSystemConfigPropertyfile_system_configoptionaltyping.Union[IResolvable, FileSystemConfigProperty]fileSystemConfigoptionalIResolvableFileSystemConfigoptionalIResolvableFileSystemConfigoptionalinterface{} #
The Amazon Elastic File System storage configuration for a SageMaker AI image.
kernelSpecsIResolvable | IResolvable | CfnAppImageConfig.KernelSpecProperty[]kernel_specstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, KernelSpecProperty]]]kernelSpecsIResolvableKernelSpecsIResolvableKernelSpecsinterface{} required #
The specification of the Jupyter kernels in the image.