AWS Classic
App
Provides a SageMaker App resource.
Example Usage
Basic usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Sagemaker.App("example", new Aws.Sagemaker.AppArgs
{
DomainId = aws_sagemaker_domain.Example.Id,
UserProfileName = aws_sagemaker_user_profile.Example.User_profile_name,
AppName = "example",
AppType = "JupyterServer",
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/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(aws_sagemaker_domain.Example.Id),
UserProfileName: pulumi.Any(aws_sagemaker_user_profile.Example.User_profile_name),
AppName: pulumi.String("example"),
AppType: pulumi.String("JupyterServer"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
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 pulumi
import pulumi_aws as aws
example = aws.sagemaker.App("example",
domain_id=aws_sagemaker_domain["example"]["id"],
user_profile_name=aws_sagemaker_user_profile["example"]["user_profile_name"],
app_name="example",
app_type="JupyterServer")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.App("example", {
domainId: aws_sagemaker_domain.example.id,
userProfileName: aws_sagemaker_user_profile.example.user_profile_name,
appName: "example",
appType: "JupyterServer",
});
resources:
example:
type: aws:sagemaker:App
properties:
domainId: ${aws_sagemaker_domain.example.id}
userProfileName: ${aws_sagemaker_user_profile.example.user_profile_name}
appName: example
appType: JupyterServer
Create a App Resource
new App(name: string, args: AppArgs, opts?: CustomResourceOptions);
@overload
def App(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_name: Optional[str] = None,
app_type: Optional[str] = None,
domain_id: Optional[str] = None,
resource_spec: Optional[AppResourceSpecArgs] = None,
tags: Optional[Mapping[str, str]] = None,
user_profile_name: Optional[str] = None)
@overload
def App(resource_name: str,
args: AppArgs,
opts: Optional[ResourceOptions] = None)
func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)
public App(string name, AppArgs args, CustomResourceOptions? opts = null)
type: aws:sagemaker:App
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
App Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The App resource accepts the following input properties:
- App
Name string The name of the app.
- App
Type string The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- Domain
Id string The domain ID.
- User
Profile stringName The user profile name.
- Resource
Spec Pulumi.Aws. Sagemaker. Inputs. App Resource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- Dictionary<string, string>
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.
- App
Name string The name of the app.
- App
Type string The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- Domain
Id string The domain ID.
- User
Profile stringName The user profile name.
- Resource
Spec AppResource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- map[string]string
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.
- app
Name String The name of the app.
- app
Type String The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- domain
Id String The domain ID.
- user
Profile StringName The user profile name.
- resource
Spec AppResource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- Map<String,String>
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.
- app
Name string The name of the app.
- app
Type string The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- domain
Id string The domain ID.
- user
Profile stringName The user profile name.
- resource
Spec AppResource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- {[key: string]: string}
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.
- app_
name str The name of the app.
- app_
type str The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- domain_
id str The domain ID.
- user_
profile_ strname The user profile name.
- resource_
spec AppResource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- Mapping[str, str]
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.
- app
Name String The name of the app.
- app
Type String The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- domain
Id String The domain ID.
- user
Profile StringName The user profile name.
- resource
Spec Property Map The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- Map<String>
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.
Outputs
All input properties are implicitly available as output properties. Additionally, the App resource produces the following output properties:
Look up an Existing App Resource
Get an existing App resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AppState, opts?: CustomResourceOptions): App
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_name: Optional[str] = None,
app_type: Optional[str] = None,
arn: Optional[str] = None,
domain_id: Optional[str] = None,
resource_spec: Optional[AppResourceSpecArgs] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
user_profile_name: Optional[str] = None) -> App
func GetApp(ctx *Context, name string, id IDInput, state *AppState, opts ...ResourceOption) (*App, error)
public static App Get(string name, Input<string> id, AppState? state, CustomResourceOptions? opts = null)
public static App get(String name, Output<String> id, AppState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- App
Name string The name of the app.
- App
Type string The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- Arn string
The Amazon Resource Name (ARN) of the app.
- Domain
Id string The domain ID.
- Resource
Spec Pulumi.Aws. Sagemaker. Inputs. App Resource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- Dictionary<string, string>
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.- Dictionary<string, string>
A map of tags assigned to the resource, including those inherited from the provider .
- User
Profile stringName The user profile name.
- App
Name string The name of the app.
- App
Type string The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- Arn string
The Amazon Resource Name (ARN) of the app.
- Domain
Id string The domain ID.
- Resource
Spec AppResource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- map[string]string
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.- map[string]string
A map of tags assigned to the resource, including those inherited from the provider .
- User
Profile stringName The user profile name.
- app
Name String The name of the app.
- app
Type String The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- arn String
The Amazon Resource Name (ARN) of the app.
- domain
Id String The domain ID.
- resource
Spec AppResource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- Map<String,String>
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.- Map<String,String>
A map of tags assigned to the resource, including those inherited from the provider .
- user
Profile StringName The user profile name.
- app
Name string The name of the app.
- app
Type string The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- arn string
The Amazon Resource Name (ARN) of the app.
- domain
Id string The domain ID.
- resource
Spec AppResource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- {[key: string]: string}
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.- {[key: string]: string}
A map of tags assigned to the resource, including those inherited from the provider .
- user
Profile stringName The user profile name.
- app_
name str The name of the app.
- app_
type str The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- arn str
The Amazon Resource Name (ARN) of the app.
- domain_
id str The domain ID.
- resource_
spec AppResource Spec Args The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- Mapping[str, str]
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.- Mapping[str, str]
A map of tags assigned to the resource, including those inherited from the provider .
- user_
profile_ strname The user profile name.
- app
Name String The name of the app.
- app
Type String The type of app. Valid values are
JupyterServer
,KernelGateway
andTensorBoard
.- arn String
The Amazon Resource Name (ARN) of the app.
- domain
Id String The domain ID.
- resource
Spec Property Map The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.
- Map<String>
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.- Map<String>
A map of tags assigned to the resource, including those inherited from the provider .
- user
Profile StringName The user profile name.
Supporting Types
AppResourceSpec
- Instance
Type string The instance type that the image version runs on. For valid values see SageMaker Instance Types.
- Lifecycle
Config stringArn The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
- Sagemaker
Image stringArn The ARN of the SageMaker image that the image version belongs to.
- Sagemaker
Image stringVersion Arn The ARN of the image version created on the instance.
- Instance
Type string The instance type that the image version runs on. For valid values see SageMaker Instance Types.
- Lifecycle
Config stringArn The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
- Sagemaker
Image stringArn The ARN of the SageMaker image that the image version belongs to.
- Sagemaker
Image stringVersion Arn The ARN of the image version created on the instance.
- instance
Type String The instance type that the image version runs on. For valid values see SageMaker Instance Types.
- lifecycle
Config StringArn The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
- sagemaker
Image StringArn The ARN of the SageMaker image that the image version belongs to.
- sagemaker
Image StringVersion Arn The ARN of the image version created on the instance.
- instance
Type string The instance type that the image version runs on. For valid values see SageMaker Instance Types.
- lifecycle
Config stringArn The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
- sagemaker
Image stringArn The ARN of the SageMaker image that the image version belongs to.
- sagemaker
Image stringVersion Arn The ARN of the image version created on the instance.
- instance_
type str The instance type that the image version runs on. For valid values see SageMaker Instance Types.
- lifecycle_
config_ strarn The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
- sagemaker_
image_ strarn The ARN of the SageMaker image that the image version belongs to.
- sagemaker_
image_ strversion_ arn The ARN of the image version created on the instance.
- instance
Type String The instance type that the image version runs on. For valid values see SageMaker Instance Types.
- lifecycle
Config StringArn The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.
- sagemaker
Image StringArn The ARN of the SageMaker image that the image version belongs to.
- sagemaker
Image StringVersion Arn The ARN of the image version created on the instance.
Import
SageMaker Code 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
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.