Try AWS Native preview for resources not in the classic version.
aws.sagemaker.ImageVersion
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a SageMaker Image Version resource.
Example Usage
Basic usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = new aws.sagemaker.ImageVersion("test", {
imageName: testAwsSagemakerImage.id,
baseImage: "012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest",
});
import pulumi
import pulumi_aws as aws
test = aws.sagemaker.ImageVersion("test",
image_name=test_aws_sagemaker_image["id"],
base_image="012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest")
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.NewImageVersion(ctx, "test", &sagemaker.ImageVersionArgs{
ImageName: pulumi.Any(testAwsSagemakerImage.Id),
BaseImage: pulumi.String("012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var test = new Aws.Sagemaker.ImageVersion("test", new()
{
ImageName = testAwsSagemakerImage.Id,
BaseImage = "012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.ImageVersion;
import com.pulumi.aws.sagemaker.ImageVersionArgs;
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 test = new ImageVersion("test", ImageVersionArgs.builder()
.imageName(testAwsSagemakerImage.id())
.baseImage("012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest")
.build());
}
}
resources:
test:
type: aws:sagemaker:ImageVersion
properties:
imageName: ${testAwsSagemakerImage.id}
baseImage: 012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest
Create ImageVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ImageVersion(name: string, args: ImageVersionArgs, opts?: CustomResourceOptions);
@overload
def ImageVersion(resource_name: str,
args: ImageVersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ImageVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
base_image: Optional[str] = None,
image_name: Optional[str] = None)
func NewImageVersion(ctx *Context, name string, args ImageVersionArgs, opts ...ResourceOption) (*ImageVersion, error)
public ImageVersion(string name, ImageVersionArgs args, CustomResourceOptions? opts = null)
public ImageVersion(String name, ImageVersionArgs args)
public ImageVersion(String name, ImageVersionArgs args, CustomResourceOptions options)
type: aws:sagemaker:ImageVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ImageVersionArgs
- 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 ImageVersionArgs
- 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 ImageVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ImageVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ImageVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var imageVersionResource = new Aws.Sagemaker.ImageVersion("imageVersionResource", new()
{
BaseImage = "string",
ImageName = "string",
});
example, err := sagemaker.NewImageVersion(ctx, "imageVersionResource", &sagemaker.ImageVersionArgs{
BaseImage: pulumi.String("string"),
ImageName: pulumi.String("string"),
})
var imageVersionResource = new ImageVersion("imageVersionResource", ImageVersionArgs.builder()
.baseImage("string")
.imageName("string")
.build());
image_version_resource = aws.sagemaker.ImageVersion("imageVersionResource",
base_image="string",
image_name="string")
const imageVersionResource = new aws.sagemaker.ImageVersion("imageVersionResource", {
baseImage: "string",
imageName: "string",
});
type: aws:sagemaker:ImageVersion
properties:
baseImage: string
imageName: string
ImageVersion 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 ImageVersion resource accepts the following input properties:
- base_
image str - The registry path of the container image on which this image version is based.
- image_
name str - The name of the image. Must be unique to your account.
Outputs
All input properties are implicitly available as output properties. Additionally, the ImageVersion resource produces the following output properties:
- Arn string
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- Container
Image string - The registry path of the container image that contains this image version.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Arn string - The Amazon Resource Name (ARN) of the image the version is based on.
- Version int
- Arn string
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- Container
Image string - The registry path of the container image that contains this image version.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Arn string - The Amazon Resource Name (ARN) of the image the version is based on.
- Version int
- arn String
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- container
Image String - The registry path of the container image that contains this image version.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Arn String - The Amazon Resource Name (ARN) of the image the version is based on.
- version Integer
- arn string
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- container
Image string - The registry path of the container image that contains this image version.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Arn string - The Amazon Resource Name (ARN) of the image the version is based on.
- version number
- arn str
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- container_
image str - The registry path of the container image that contains this image version.
- id str
- The provider-assigned unique ID for this managed resource.
- image_
arn str - The Amazon Resource Name (ARN) of the image the version is based on.
- version int
- arn String
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- container
Image String - The registry path of the container image that contains this image version.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Arn String - The Amazon Resource Name (ARN) of the image the version is based on.
- version Number
Look up Existing ImageVersion Resource
Get an existing ImageVersion 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?: ImageVersionState, opts?: CustomResourceOptions): ImageVersion
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
base_image: Optional[str] = None,
container_image: Optional[str] = None,
image_arn: Optional[str] = None,
image_name: Optional[str] = None,
version: Optional[int] = None) -> ImageVersion
func GetImageVersion(ctx *Context, name string, id IDInput, state *ImageVersionState, opts ...ResourceOption) (*ImageVersion, error)
public static ImageVersion Get(string name, Input<string> id, ImageVersionState? state, CustomResourceOptions? opts = null)
public static ImageVersion get(String name, Output<String> id, ImageVersionState 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.
- Arn string
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- Base
Image string - The registry path of the container image on which this image version is based.
- Container
Image string - The registry path of the container image that contains this image version.
- Image
Arn string - The Amazon Resource Name (ARN) of the image the version is based on.
- Image
Name string - The name of the image. Must be unique to your account.
- Version int
- Arn string
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- Base
Image string - The registry path of the container image on which this image version is based.
- Container
Image string - The registry path of the container image that contains this image version.
- Image
Arn string - The Amazon Resource Name (ARN) of the image the version is based on.
- Image
Name string - The name of the image. Must be unique to your account.
- Version int
- arn String
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- base
Image String - The registry path of the container image on which this image version is based.
- container
Image String - The registry path of the container image that contains this image version.
- image
Arn String - The Amazon Resource Name (ARN) of the image the version is based on.
- image
Name String - The name of the image. Must be unique to your account.
- version Integer
- arn string
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- base
Image string - The registry path of the container image on which this image version is based.
- container
Image string - The registry path of the container image that contains this image version.
- image
Arn string - The Amazon Resource Name (ARN) of the image the version is based on.
- image
Name string - The name of the image. Must be unique to your account.
- version number
- arn str
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- base_
image str - The registry path of the container image on which this image version is based.
- container_
image str - The registry path of the container image that contains this image version.
- image_
arn str - The Amazon Resource Name (ARN) of the image the version is based on.
- image_
name str - The name of the image. Must be unique to your account.
- version int
- arn String
- The Amazon Resource Name (ARN) assigned by AWS to this Image Version.
- base
Image String - The registry path of the container image on which this image version is based.
- container
Image String - The registry path of the container image that contains this image version.
- image
Arn String - The Amazon Resource Name (ARN) of the image the version is based on.
- image
Name String - The name of the image. Must be unique to your account.
- version Number
Import
Using pulumi import
, import SageMaker Image Versions using the name
. For example:
$ pulumi import aws:sagemaker/imageVersion:ImageVersion test_image my-code-repo
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.