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 App resource.

Example Usage

Basic usage

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(aws_sagemaker_domain.example().id())
.userProfileName(aws_sagemaker_user_profile.example().user_profile_name())
.appName("example")
.appType("JupyterServer")
.build());
}
}

Import

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

$ 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 and TensorBoard.

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 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