ImageArgs

data class ImageArgs(val description: Output<String>? = null, val displayName: Output<String>? = null, val imageName: Output<String>? = null, val roleArn: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ImageArgs>

Provides a SageMaker AI Image resource.

Example Usage

Basic usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.sagemaker.Image("example", {
imageName: "example",
roleArn: test.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.sagemaker.Image("example",
image_name="example",
role_arn=test["arn"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Sagemaker.Image("example", new()
{
ImageName = "example",
RoleArn = test.Arn,
});
});
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.NewImage(ctx, "example", &sagemaker.ImageArgs{
ImageName: pulumi.String("example"),
RoleArn: pulumi.Any(test.Arn),
})
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.Image;
import com.pulumi.aws.sagemaker.ImageArgs;
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 Image("example", ImageArgs.builder()
.imageName("example")
.roleArn(test.arn())
.build());
}
}
resources:
example:
type: aws:sagemaker:Image
properties:
imageName: example
roleArn: ${test.arn}

Import

Using pulumi import, import SageMaker AI Code Images using the name. For example:

$ pulumi import aws:sagemaker/image:Image test_image my-code-repo

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, displayName: Output<String>? = null, imageName: Output<String>? = null, roleArn: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The description of the image.

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

The display name of the image. When the image is added to a domain (must be unique to the domain).

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

The name of the image. Must be unique to your account.

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

The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker AI to perform tasks on your behalf.

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.

Functions

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