Resource: awsSagemakerApp
Provides a SageMaker App resource.
Example Usage
Basic usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.sagemakerApp.SagemakerApp(this, "example", {
appName: "example",
appType: "JupyterServer",
domainId: "${aws_sagemaker_domain.example.id}",
userProfileName: "${aws_sagemaker_user_profile.example.user_profile_name}",
});
Argument Reference
The following arguments are supported:
appName
- (Required) The name of the app.appType
- (Required) The type of app. Valid values arejupyterServer
,kernelGateway
,rStudioServerPro
,rSessionGateway
andtensorBoard
.domainId
- (Required) The domain ID.userProfileName
- (Optional) The user profile name. At least one ofuserProfileName
orspaceName
required.resourceSpec
- (Optional) The instance type and the Amazon Resource Name (ARN) of the SageMaker image created on the instance.See Resource Spec below.spaceName
- (Optional) The name of the space. At least one ofuserProfileName
orspaceName
required.tags
- (Optional) A map of tags to assign to the resource. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Resource Spec
instanceType
- (Optional) The instance type that the image version runs on. For valid values see SageMaker Instance Types.lifecycleConfigArn
- (Optional) The Amazon Resource Name (ARN) of the Lifecycle Configuration attached to the Resource.sagemakerImageArn
- (Optional) The ARN of the SageMaker image that the image version belongs to.sagemakerImageVersionArn
- (Optional) The ARN of the image version created on the instance.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The Amazon Resource Name (ARN) of the app.arn
- The Amazon Resource Name (ARN) of the app.tagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Import
SageMaker Apps can be imported using the id
, e.g.,