1. Packages
  2. AWS
  3. API Docs
  4. sagemaker
  5. Space
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi
aws logo
Viewing docs for AWS v5.43.0 (Older version)
published on Tuesday, Mar 10, 2026 by Pulumi

    Provides a SageMaker Space resource.

    Example Usage

    Basic usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Aws.Sagemaker.Space("example", new()
        {
            DomainId = aws_sagemaker_domain.Test.Id,
            SpaceName = "example",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/sagemaker"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sagemaker.NewSpace(ctx, "example", &sagemaker.SpaceArgs{
    			DomainId:  pulumi.Any(aws_sagemaker_domain.Test.Id),
    			SpaceName: pulumi.String("example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.sagemaker.Space;
    import com.pulumi.aws.sagemaker.SpaceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new Space("example", SpaceArgs.builder()        
                .domainId(aws_sagemaker_domain.test().id())
                .spaceName("example")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.sagemaker.Space("example", {
        domainId: aws_sagemaker_domain.test.id,
        spaceName: "example",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.sagemaker.Space("example",
        domain_id=aws_sagemaker_domain["test"]["id"],
        space_name="example")
    
    resources:
      example:
        type: aws:sagemaker:Space
        properties:
          domainId: ${aws_sagemaker_domain.test.id}
          spaceName: example
    

    Create Space Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Space(name: string, args: SpaceArgs, opts?: CustomResourceOptions);
    @overload
    def Space(resource_name: str,
              args: SpaceArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Space(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              domain_id: Optional[str] = None,
              space_name: Optional[str] = None,
              space_settings: Optional[SpaceSpaceSettingsArgs] = None,
              tags: Optional[Mapping[str, str]] = None)
    func NewSpace(ctx *Context, name string, args SpaceArgs, opts ...ResourceOption) (*Space, error)
    public Space(string name, SpaceArgs args, CustomResourceOptions? opts = null)
    public Space(String name, SpaceArgs args)
    public Space(String name, SpaceArgs args, CustomResourceOptions options)
    
    type: aws:sagemaker:Space
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SpaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SpaceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SpaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SpaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SpaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var spaceResource = new Aws.Sagemaker.Space("spaceResource", new()
    {
        DomainId = "string",
        SpaceName = "string",
        SpaceSettings = new Aws.Sagemaker.Inputs.SpaceSpaceSettingsArgs
        {
            JupyterServerAppSettings = new Aws.Sagemaker.Inputs.SpaceSpaceSettingsJupyterServerAppSettingsArgs
            {
                DefaultResourceSpec = new Aws.Sagemaker.Inputs.SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpecArgs
                {
                    InstanceType = "string",
                    LifecycleConfigArn = "string",
                    SagemakerImageArn = "string",
                    SagemakerImageVersionArn = "string",
                },
                CodeRepositories = new[]
                {
                    new Aws.Sagemaker.Inputs.SpaceSpaceSettingsJupyterServerAppSettingsCodeRepositoryArgs
                    {
                        RepositoryUrl = "string",
                    },
                },
                LifecycleConfigArns = new[]
                {
                    "string",
                },
            },
            KernelGatewayAppSettings = new Aws.Sagemaker.Inputs.SpaceSpaceSettingsKernelGatewayAppSettingsArgs
            {
                DefaultResourceSpec = new Aws.Sagemaker.Inputs.SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecArgs
                {
                    InstanceType = "string",
                    LifecycleConfigArn = "string",
                    SagemakerImageArn = "string",
                    SagemakerImageVersionArn = "string",
                },
                CustomImages = new[]
                {
                    new Aws.Sagemaker.Inputs.SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgs
                    {
                        AppImageConfigName = "string",
                        ImageName = "string",
                        ImageVersionNumber = 0,
                    },
                },
                LifecycleConfigArns = new[]
                {
                    "string",
                },
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := sagemaker.NewSpace(ctx, "spaceResource", &sagemaker.SpaceArgs{
    	DomainId:  pulumi.String("string"),
    	SpaceName: pulumi.String("string"),
    	SpaceSettings: &sagemaker.SpaceSpaceSettingsArgs{
    		JupyterServerAppSettings: &sagemaker.SpaceSpaceSettingsJupyterServerAppSettingsArgs{
    			DefaultResourceSpec: &sagemaker.SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpecArgs{
    				InstanceType:             pulumi.String("string"),
    				LifecycleConfigArn:       pulumi.String("string"),
    				SagemakerImageArn:        pulumi.String("string"),
    				SagemakerImageVersionArn: pulumi.String("string"),
    			},
    			CodeRepositories: sagemaker.SpaceSpaceSettingsJupyterServerAppSettingsCodeRepositoryArray{
    				&sagemaker.SpaceSpaceSettingsJupyterServerAppSettingsCodeRepositoryArgs{
    					RepositoryUrl: pulumi.String("string"),
    				},
    			},
    			LifecycleConfigArns: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		KernelGatewayAppSettings: &sagemaker.SpaceSpaceSettingsKernelGatewayAppSettingsArgs{
    			DefaultResourceSpec: &sagemaker.SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecArgs{
    				InstanceType:             pulumi.String("string"),
    				LifecycleConfigArn:       pulumi.String("string"),
    				SagemakerImageArn:        pulumi.String("string"),
    				SagemakerImageVersionArn: pulumi.String("string"),
    			},
    			CustomImages: sagemaker.SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArray{
    				&sagemaker.SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgs{
    					AppImageConfigName: pulumi.String("string"),
    					ImageName:          pulumi.String("string"),
    					ImageVersionNumber: pulumi.Int(0),
    				},
    			},
    			LifecycleConfigArns: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var spaceResource = new Space("spaceResource", SpaceArgs.builder()
        .domainId("string")
        .spaceName("string")
        .spaceSettings(SpaceSpaceSettingsArgs.builder()
            .jupyterServerAppSettings(SpaceSpaceSettingsJupyterServerAppSettingsArgs.builder()
                .defaultResourceSpec(SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpecArgs.builder()
                    .instanceType("string")
                    .lifecycleConfigArn("string")
                    .sagemakerImageArn("string")
                    .sagemakerImageVersionArn("string")
                    .build())
                .codeRepositories(SpaceSpaceSettingsJupyterServerAppSettingsCodeRepositoryArgs.builder()
                    .repositoryUrl("string")
                    .build())
                .lifecycleConfigArns("string")
                .build())
            .kernelGatewayAppSettings(SpaceSpaceSettingsKernelGatewayAppSettingsArgs.builder()
                .defaultResourceSpec(SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecArgs.builder()
                    .instanceType("string")
                    .lifecycleConfigArn("string")
                    .sagemakerImageArn("string")
                    .sagemakerImageVersionArn("string")
                    .build())
                .customImages(SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgs.builder()
                    .appImageConfigName("string")
                    .imageName("string")
                    .imageVersionNumber(0)
                    .build())
                .lifecycleConfigArns("string")
                .build())
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    space_resource = aws.sagemaker.Space("spaceResource",
        domain_id="string",
        space_name="string",
        space_settings={
            "jupyter_server_app_settings": {
                "default_resource_spec": {
                    "instance_type": "string",
                    "lifecycle_config_arn": "string",
                    "sagemaker_image_arn": "string",
                    "sagemaker_image_version_arn": "string",
                },
                "code_repositories": [{
                    "repository_url": "string",
                }],
                "lifecycle_config_arns": ["string"],
            },
            "kernel_gateway_app_settings": {
                "default_resource_spec": {
                    "instance_type": "string",
                    "lifecycle_config_arn": "string",
                    "sagemaker_image_arn": "string",
                    "sagemaker_image_version_arn": "string",
                },
                "custom_images": [{
                    "app_image_config_name": "string",
                    "image_name": "string",
                    "image_version_number": 0,
                }],
                "lifecycle_config_arns": ["string"],
            },
        },
        tags={
            "string": "string",
        })
    
    const spaceResource = new aws.sagemaker.Space("spaceResource", {
        domainId: "string",
        spaceName: "string",
        spaceSettings: {
            jupyterServerAppSettings: {
                defaultResourceSpec: {
                    instanceType: "string",
                    lifecycleConfigArn: "string",
                    sagemakerImageArn: "string",
                    sagemakerImageVersionArn: "string",
                },
                codeRepositories: [{
                    repositoryUrl: "string",
                }],
                lifecycleConfigArns: ["string"],
            },
            kernelGatewayAppSettings: {
                defaultResourceSpec: {
                    instanceType: "string",
                    lifecycleConfigArn: "string",
                    sagemakerImageArn: "string",
                    sagemakerImageVersionArn: "string",
                },
                customImages: [{
                    appImageConfigName: "string",
                    imageName: "string",
                    imageVersionNumber: 0,
                }],
                lifecycleConfigArns: ["string"],
            },
        },
        tags: {
            string: "string",
        },
    });
    
    type: aws:sagemaker:Space
    properties:
        domainId: string
        spaceName: string
        spaceSettings:
            jupyterServerAppSettings:
                codeRepositories:
                    - repositoryUrl: string
                defaultResourceSpec:
                    instanceType: string
                    lifecycleConfigArn: string
                    sagemakerImageArn: string
                    sagemakerImageVersionArn: string
                lifecycleConfigArns:
                    - string
            kernelGatewayAppSettings:
                customImages:
                    - appImageConfigName: string
                      imageName: string
                      imageVersionNumber: 0
                defaultResourceSpec:
                    instanceType: string
                    lifecycleConfigArn: string
                    sagemakerImageArn: string
                    sagemakerImageVersionArn: string
                lifecycleConfigArns:
                    - string
        tags:
            string: string
    

    Space Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Space resource accepts the following input properties:

    DomainId string
    The ID of the associated Domain.
    SpaceName string
    The name of the space.
    SpaceSettings SpaceSpaceSettings
    A collection of space settings. See Space Settings below.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    DomainId string
    The ID of the associated Domain.
    SpaceName string
    The name of the space.
    SpaceSettings SpaceSpaceSettingsArgs
    A collection of space settings. See Space Settings below.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domainId String
    The ID of the associated Domain.
    spaceName String
    The name of the space.
    spaceSettings SpaceSpaceSettings
    A collection of space settings. See Space Settings below.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domainId string
    The ID of the associated Domain.
    spaceName string
    The name of the space.
    spaceSettings SpaceSpaceSettings
    A collection of space settings. See Space Settings below.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domain_id str
    The ID of the associated Domain.
    space_name str
    The name of the space.
    space_settings SpaceSpaceSettingsArgs
    A collection of space settings. See Space Settings below.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    domainId String
    The ID of the associated Domain.
    spaceName String
    The name of the space.
    spaceSettings Property Map
    A collection of space settings. See Space Settings below.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Space resource produces the following output properties:

    Arn string
    The space's Amazon Resource Name (ARN).
    HomeEfsFileSystemUid string
    The ID of the space's profile in the Amazon Elastic File System volume.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Arn string
    The space's Amazon Resource Name (ARN).
    HomeEfsFileSystemUid string
    The ID of the space's profile in the Amazon Elastic File System volume.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    The space's Amazon Resource Name (ARN).
    homeEfsFileSystemUid String
    The ID of the space's profile in the Amazon Elastic File System volume.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn string
    The space's Amazon Resource Name (ARN).
    homeEfsFileSystemUid string
    The ID of the space's profile in the Amazon Elastic File System volume.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn str
    The space's Amazon Resource Name (ARN).
    home_efs_file_system_uid str
    The ID of the space's profile in the Amazon Elastic File System volume.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    The space's Amazon Resource Name (ARN).
    homeEfsFileSystemUid String
    The ID of the space's profile in the Amazon Elastic File System volume.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Look up Existing Space Resource

    Get an existing Space resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SpaceState, opts?: CustomResourceOptions): Space
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            domain_id: Optional[str] = None,
            home_efs_file_system_uid: Optional[str] = None,
            space_name: Optional[str] = None,
            space_settings: Optional[SpaceSpaceSettingsArgs] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> Space
    func GetSpace(ctx *Context, name string, id IDInput, state *SpaceState, opts ...ResourceOption) (*Space, error)
    public static Space Get(string name, Input<string> id, SpaceState? state, CustomResourceOptions? opts = null)
    public static Space get(String name, Output<String> id, SpaceState state, CustomResourceOptions options)
    resources:  _:    type: aws:sagemaker:Space    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    The space's Amazon Resource Name (ARN).
    DomainId string
    The ID of the associated Domain.
    HomeEfsFileSystemUid string
    The ID of the space's profile in the Amazon Elastic File System volume.
    SpaceName string
    The name of the space.
    SpaceSettings SpaceSpaceSettings
    A collection of space settings. See Space Settings below.
    Tags Dictionary<string, string>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    Arn string
    The space's Amazon Resource Name (ARN).
    DomainId string
    The ID of the associated Domain.
    HomeEfsFileSystemUid string
    The ID of the space's profile in the Amazon Elastic File System volume.
    SpaceName string
    The name of the space.
    SpaceSettings SpaceSpaceSettingsArgs
    A collection of space settings. See Space Settings below.
    Tags map[string]string
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    The space's Amazon Resource Name (ARN).
    domainId String
    The ID of the associated Domain.
    homeEfsFileSystemUid String
    The ID of the space's profile in the Amazon Elastic File System volume.
    spaceName String
    The name of the space.
    spaceSettings SpaceSpaceSettings
    A collection of space settings. See Space Settings below.
    tags Map<String,String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn string
    The space's Amazon Resource Name (ARN).
    domainId string
    The ID of the associated Domain.
    homeEfsFileSystemUid string
    The ID of the space's profile in the Amazon Elastic File System volume.
    spaceName string
    The name of the space.
    spaceSettings SpaceSpaceSettings
    A collection of space settings. See Space Settings below.
    tags {[key: string]: string}
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn str
    The space's Amazon Resource Name (ARN).
    domain_id str
    The ID of the associated Domain.
    home_efs_file_system_uid str
    The ID of the space's profile in the Amazon Elastic File System volume.
    space_name str
    The name of the space.
    space_settings SpaceSpaceSettingsArgs
    A collection of space settings. See Space Settings below.
    tags Mapping[str, str]
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
    arn String
    The space's Amazon Resource Name (ARN).
    domainId String
    The ID of the associated Domain.
    homeEfsFileSystemUid String
    The ID of the space's profile in the Amazon Elastic File System volume.
    spaceName String
    The name of the space.
    spaceSettings Property Map
    A collection of space settings. See Space Settings below.
    tags Map<String>
    A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Supporting Types

    SpaceSpaceSettings, SpaceSpaceSettingsArgs

    JupyterServerAppSettings SpaceSpaceSettingsJupyterServerAppSettings
    The Jupyter server's app settings. See Jupyter Server App Settings below.
    KernelGatewayAppSettings SpaceSpaceSettingsKernelGatewayAppSettings
    The kernel gateway app settings. See Kernel Gateway App Settings below.
    JupyterServerAppSettings SpaceSpaceSettingsJupyterServerAppSettings
    The Jupyter server's app settings. See Jupyter Server App Settings below.
    KernelGatewayAppSettings SpaceSpaceSettingsKernelGatewayAppSettings
    The kernel gateway app settings. See Kernel Gateway App Settings below.
    jupyterServerAppSettings SpaceSpaceSettingsJupyterServerAppSettings
    The Jupyter server's app settings. See Jupyter Server App Settings below.
    kernelGatewayAppSettings SpaceSpaceSettingsKernelGatewayAppSettings
    The kernel gateway app settings. See Kernel Gateway App Settings below.
    jupyterServerAppSettings SpaceSpaceSettingsJupyterServerAppSettings
    The Jupyter server's app settings. See Jupyter Server App Settings below.
    kernelGatewayAppSettings SpaceSpaceSettingsKernelGatewayAppSettings
    The kernel gateway app settings. See Kernel Gateway App Settings below.
    jupyter_server_app_settings SpaceSpaceSettingsJupyterServerAppSettings
    The Jupyter server's app settings. See Jupyter Server App Settings below.
    kernel_gateway_app_settings SpaceSpaceSettingsKernelGatewayAppSettings
    The kernel gateway app settings. See Kernel Gateway App Settings below.
    jupyterServerAppSettings Property Map
    The Jupyter server's app settings. See Jupyter Server App Settings below.
    kernelGatewayAppSettings Property Map
    The kernel gateway app settings. See Kernel Gateway App Settings below.

    SpaceSpaceSettingsJupyterServerAppSettings, SpaceSpaceSettingsJupyterServerAppSettingsArgs

    DefaultResourceSpec SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    CodeRepositories List<SpaceSpaceSettingsJupyterServerAppSettingsCodeRepository>
    A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below.
    LifecycleConfigArns List<string>
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    DefaultResourceSpec SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    CodeRepositories []SpaceSpaceSettingsJupyterServerAppSettingsCodeRepository
    A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below.
    LifecycleConfigArns []string
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    defaultResourceSpec SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    codeRepositories List<SpaceSpaceSettingsJupyterServerAppSettingsCodeRepository>
    A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below.
    lifecycleConfigArns List<String>
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    defaultResourceSpec SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    codeRepositories SpaceSpaceSettingsJupyterServerAppSettingsCodeRepository[]
    A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below.
    lifecycleConfigArns string[]
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    default_resource_spec SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    code_repositories Sequence[SpaceSpaceSettingsJupyterServerAppSettingsCodeRepository]
    A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below.
    lifecycle_config_arns Sequence[str]
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    defaultResourceSpec Property Map
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    codeRepositories List<Property Map>
    A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterServer application. see Code Repository below.
    lifecycleConfigArns List<String>
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.

    SpaceSpaceSettingsJupyterServerAppSettingsCodeRepository, SpaceSpaceSettingsJupyterServerAppSettingsCodeRepositoryArgs

    RepositoryUrl string
    The URL of the Git repository.
    RepositoryUrl string
    The URL of the Git repository.
    repositoryUrl String
    The URL of the Git repository.
    repositoryUrl string
    The URL of the Git repository.
    repository_url str
    The URL of the Git repository.
    repositoryUrl String
    The URL of the Git repository.

    SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpec, SpaceSpaceSettingsJupyterServerAppSettingsDefaultResourceSpecArgs

    InstanceType string
    The instance type.
    LifecycleConfigArn string
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    SagemakerImageArn string
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    SagemakerImageVersionArn string
    The ARN of the image version created on the instance.
    InstanceType string
    The instance type.
    LifecycleConfigArn string
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    SagemakerImageArn string
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    SagemakerImageVersionArn string
    The ARN of the image version created on the instance.
    instanceType String
    The instance type.
    lifecycleConfigArn String
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    sagemakerImageArn String
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    sagemakerImageVersionArn String
    The ARN of the image version created on the instance.
    instanceType string
    The instance type.
    lifecycleConfigArn string
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    sagemakerImageArn string
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    sagemakerImageVersionArn string
    The ARN of the image version created on the instance.
    instance_type str
    The instance type.
    lifecycle_config_arn str
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    sagemaker_image_arn str
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    sagemaker_image_version_arn str
    The ARN of the image version created on the instance.
    instanceType String
    The instance type.
    lifecycleConfigArn String
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    sagemakerImageArn String
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    sagemakerImageVersionArn String
    The ARN of the image version created on the instance.

    SpaceSpaceSettingsKernelGatewayAppSettings, SpaceSpaceSettingsKernelGatewayAppSettingsArgs

    DefaultResourceSpec SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    CustomImages List<SpaceSpaceSettingsKernelGatewayAppSettingsCustomImage>
    A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below.
    LifecycleConfigArns List<string>
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    DefaultResourceSpec SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    CustomImages []SpaceSpaceSettingsKernelGatewayAppSettingsCustomImage
    A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below.
    LifecycleConfigArns []string
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    defaultResourceSpec SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    customImages List<SpaceSpaceSettingsKernelGatewayAppSettingsCustomImage>
    A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below.
    lifecycleConfigArns List<String>
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    defaultResourceSpec SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    customImages SpaceSpaceSettingsKernelGatewayAppSettingsCustomImage[]
    A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below.
    lifecycleConfigArns string[]
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    default_resource_spec SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpec
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    custom_images Sequence[SpaceSpaceSettingsKernelGatewayAppSettingsCustomImage]
    A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below.
    lifecycle_config_arns Sequence[str]
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.
    defaultResourceSpec Property Map
    The default instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance. see Default Resource Spec below.
    customImages List<Property Map>
    A list of custom SageMaker images that are configured to run as a KernelGateway app. see Custom Image below.
    lifecycleConfigArns List<String>
    The Amazon Resource Name (ARN) of the Lifecycle Configurations.

    SpaceSpaceSettingsKernelGatewayAppSettingsCustomImage, SpaceSpaceSettingsKernelGatewayAppSettingsCustomImageArgs

    AppImageConfigName string
    The name of the App Image Config.
    ImageName string
    The name of the Custom Image.
    ImageVersionNumber int
    The version number of the Custom Image.
    AppImageConfigName string
    The name of the App Image Config.
    ImageName string
    The name of the Custom Image.
    ImageVersionNumber int
    The version number of the Custom Image.
    appImageConfigName String
    The name of the App Image Config.
    imageName String
    The name of the Custom Image.
    imageVersionNumber Integer
    The version number of the Custom Image.
    appImageConfigName string
    The name of the App Image Config.
    imageName string
    The name of the Custom Image.
    imageVersionNumber number
    The version number of the Custom Image.
    app_image_config_name str
    The name of the App Image Config.
    image_name str
    The name of the Custom Image.
    image_version_number int
    The version number of the Custom Image.
    appImageConfigName String
    The name of the App Image Config.
    imageName String
    The name of the Custom Image.
    imageVersionNumber Number
    The version number of the Custom Image.

    SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpec, SpaceSpaceSettingsKernelGatewayAppSettingsDefaultResourceSpecArgs

    InstanceType string
    The instance type.
    LifecycleConfigArn string
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    SagemakerImageArn string
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    SagemakerImageVersionArn string
    The ARN of the image version created on the instance.
    InstanceType string
    The instance type.
    LifecycleConfigArn string
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    SagemakerImageArn string
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    SagemakerImageVersionArn string
    The ARN of the image version created on the instance.
    instanceType String
    The instance type.
    lifecycleConfigArn String
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    sagemakerImageArn String
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    sagemakerImageVersionArn String
    The ARN of the image version created on the instance.
    instanceType string
    The instance type.
    lifecycleConfigArn string
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    sagemakerImageArn string
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    sagemakerImageVersionArn string
    The ARN of the image version created on the instance.
    instance_type str
    The instance type.
    lifecycle_config_arn str
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    sagemaker_image_arn str
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    sagemaker_image_version_arn str
    The ARN of the image version created on the instance.
    instanceType String
    The instance type.
    lifecycleConfigArn String
    The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
    sagemakerImageArn String
    The Amazon Resource Name (ARN) of the SageMaker image created on the instance.
    sagemakerImageVersionArn String
    The ARN of the image version created on the instance.

    Import

    SageMaker Spaces can be imported using the id, e.g.,

     $ pulumi import aws:sagemaker/space:Space test_space arn:aws:sagemaker:us-west-2:123456789012:space/domain-id/space-name
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    Viewing docs for AWS v5.43.0 (Older version)
    published on Tuesday, Mar 10, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.