SpaceArgs

data class SpaceArgs(val domainId: Output<String>? = null, val ownershipSettings: Output<SpaceOwnershipSettingsArgs>? = null, val spaceDisplayName: Output<String>? = null, val spaceName: Output<String>? = null, val spaceSettings: Output<SpaceSpaceSettingsArgs>? = null, val spaceSharingSettings: Output<SpaceSpaceSharingSettingsArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SpaceArgs>

Provides a SageMaker AI Space resource.

Example Usage

Basic usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.Space("example", {
domainId: test.id,
spaceName: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.Space("example",
domain_id=test["id"],
space_name="example")
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 = test.Id,
SpaceName = "example",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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(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(test.id())
.spaceName("example")
.build());
}
}
resources:
example:
type: aws:sagemaker:Space
properties:
domainId: ${test.id}
spaceName: example

Import

Using pulumi import, import SageMaker AI Spaces using the id. For example:

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

Constructors

Link copied to clipboard
constructor(domainId: Output<String>? = null, ownershipSettings: Output<SpaceOwnershipSettingsArgs>? = null, spaceDisplayName: Output<String>? = null, spaceName: Output<String>? = null, spaceSettings: Output<SpaceSpaceSettingsArgs>? = null, spaceSharingSettings: Output<SpaceSpaceSharingSettingsArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val domainId: Output<String>? = null

The ID of the associated Domain.

Link copied to clipboard

A collection of ownership settings. Required if space_sharing_settings is set. See ownership_settings Block below.

Link copied to clipboard
val spaceDisplayName: Output<String>? = null

The name of the space that appears in the SageMaker AI Studio UI.

Link copied to clipboard
val spaceName: Output<String>? = null

The name of the space.

Link copied to clipboard

A collection of space settings. See space_settings Block below.

Link copied to clipboard

A collection of space sharing settings. Required if ownership_settings is set. See space_sharing_settings Block below.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): SpaceArgs