AppArgs

data class AppArgs(val appName: Output<String>? = null, val appType: Output<String>? = null, val domainId: Output<String>? = null, val resourceSpec: Output<AppResourceSpecArgs>? = null, val spaceName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val userProfileName: Output<String>? = null) : ConvertibleToJava<AppArgs>

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",
});
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")
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",
});
});
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
})
}
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());
}
}
resources:
example:
type: aws:sagemaker:App
properties:
domainId: ${exampleAwsSagemakerDomain.id}
userProfileName: ${exampleAwsSagemakerUserProfile.userProfileName}
appName: example
appType: JupyterServer

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

Constructors

Link copied to clipboard
constructor(appName: Output<String>? = null, appType: Output<String>? = null, domainId: Output<String>? = null, resourceSpec: Output<AppResourceSpecArgs>? = null, spaceName: Output<String>? = null, tags: Output<Map<String, String>>? = null, userProfileName: Output<String>? = null)

Properties

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

The name of the app.

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

The type of app. Valid values are JupyterServer, KernelGateway, RStudioServerPro, RSessionGateway, TensorBoard, CodeEditor, JupyterLab, DetailedProfiler, and Canvas.

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

The domain ID.

Link copied to clipboard
val resourceSpec: Output<AppResourceSpecArgs>? = null

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
val spaceName: Output<String>? = null

The name of the space. At least one of user_profile_name or space_name required.

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.

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

The user profile name. At least one of user_profile_name or space_name required.

Functions

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