Space
Provides a SageMaker 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",
});Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.Space("example",
domain_id=test["id"],
space_name="example")Content copied to clipboard
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",
});
});Content copied to clipboard
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
})
}Content copied to clipboard
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());
}
}Content copied to clipboard
resources:
example:
type: aws:sagemaker:Space
properties:
domainId: ${test.id}
spaceName: exampleContent copied to clipboard
Import
Using pulumi import, import SageMaker 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-nameContent copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Returns the URL of the space. If the space is created with Amazon Web Services IAM Identity Center (Successor to Amazon Web Services Single Sign-On) authentication, users can navigate to the URL after appending the respective redirect parameter for the application type to be federated through Amazon Web Services IAM Identity Center.