App
Provides a SageMaker AI App resource.
Example Usage
Basic usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.App("example", {
domainId: exampleAwsSagemakerDomain.id,
userProfileName: exampleAwsSagemakerUserProfile.userProfileName,
appName: "example",
appType: "JupyterServer",
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.App("example",
domain_id=example_aws_sagemaker_domain["id"],
user_profile_name=example_aws_sagemaker_user_profile["userProfileName"],
app_name="example",
app_type="JupyterServer")
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.App("example", new()
{
DomainId = exampleAwsSagemakerDomain.Id,
UserProfileName = exampleAwsSagemakerUserProfile.UserProfileName,
AppName = "example",
AppType = "JupyterServer",
});
});
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.NewApp(ctx, "example", &sagemaker.AppArgs{
DomainId: pulumi.Any(exampleAwsSagemakerDomain.Id),
UserProfileName: pulumi.Any(exampleAwsSagemakerUserProfile.UserProfileName),
AppName: pulumi.String("example"),
AppType: pulumi.String("JupyterServer"),
})
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.App;
import com.pulumi.aws.sagemaker.AppArgs;
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 App("example", AppArgs.builder()
.domainId(exampleAwsSagemakerDomain.id())
.userProfileName(exampleAwsSagemakerUserProfile.userProfileName())
.appName("example")
.appType("JupyterServer")
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:sagemaker:App
properties:
domainId: ${exampleAwsSagemakerDomain.id}
userProfileName: ${exampleAwsSagemakerUserProfile.userProfileName}
appName: example
appType: JupyterServer
Content copied to clipboard
Import
Using pulumi import
, import SageMaker AI Apps using the id
. For example:
$ pulumi import aws:sagemaker/app:App example arn:aws:sagemaker:us-west-2:012345678912:app/domain-id/user-profile-name/app-type/app-name
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The instance type and the Amazon Resource Name (ARN) of the SageMaker AI image created on the instance.See Resource Spec below.
Link copied to clipboard
The user profile name. At least one of user_profile_name
or space_name
required.