Project
Provides a SageMaker AI Project resource.
Note: If you are trying to use SageMaker AI projects with SageMaker AI studio you will need to add a tag with the key
sagemaker:studio-visibility
with valuetrue
. For more on requirements to use projects and permission needed see AWS Docs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.Project("example", {
projectName: "example",
serviceCatalogProvisioningDetails: {
productId: exampleAwsServicecatalogProduct.id,
},
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.Project("example",
project_name="example",
service_catalog_provisioning_details={
"product_id": example_aws_servicecatalog_product["id"],
})
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.Project("example", new()
{
ProjectName = "example",
ServiceCatalogProvisioningDetails = new Aws.Sagemaker.Inputs.ProjectServiceCatalogProvisioningDetailsArgs
{
ProductId = exampleAwsServicecatalogProduct.Id,
},
});
});
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.NewProject(ctx, "example", &sagemaker.ProjectArgs{
ProjectName: pulumi.String("example"),
ServiceCatalogProvisioningDetails: &sagemaker.ProjectServiceCatalogProvisioningDetailsArgs{
ProductId: pulumi.Any(exampleAwsServicecatalogProduct.Id),
},
})
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.Project;
import com.pulumi.aws.sagemaker.ProjectArgs;
import com.pulumi.aws.sagemaker.inputs.ProjectServiceCatalogProvisioningDetailsArgs;
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 Project("example", ProjectArgs.builder()
.projectName("example")
.serviceCatalogProvisioningDetails(ProjectServiceCatalogProvisioningDetailsArgs.builder()
.productId(exampleAwsServicecatalogProduct.id())
.build())
.build());
}
}
Content copied to clipboard
resources:
example:
type: aws:sagemaker:Project
properties:
projectName: example
serviceCatalogProvisioningDetails:
productId: ${exampleAwsServicecatalogProduct.id}
Content copied to clipboard
Import
Using pulumi import
, import SageMaker AI Projects using the project_name
. For example:
$ pulumi import aws:sagemaker/project:Project example example
Content copied to clipboard
Properties
Link copied to clipboard
A description for the project.
Link copied to clipboard
The name of the Project.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The product ID and provisioning artifact ID to provision a service catalog. See Service Catalog Provisioning Details below.