@aws-cdk_aws-sagemaker-alpha.ContainerImage

class ContainerImage ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.Alpha.ContainerImage
Gogithub.com/aws/aws-cdk-go/awscdksagemakeralpha/v2#ContainerImage
Javasoftware.amazon.awscdk.services.sagemaker.alpha.ContainerImage
Pythonaws_cdk.aws_sagemaker_alpha.ContainerImage
TypeScript (source)@aws-cdk/aws-sagemaker-alpha ยป ContainerImage

Constructs for types of container images.

Example

import * as ecr from 'aws-cdk-lib/aws-ecr';
import * as sagemaker from '@aws-cdk/aws-sagemaker-alpha';

const repository = ecr.Repository.fromRepositoryName(this, 'Repository', 'repo');
const image = sagemaker.ContainerImage.fromEcrRepository(repository, 'tag');

Initializer

new ContainerImage()

Methods

NameDescription
bind(scope, model)๐Ÿ”นCalled when the image is used by a Model.
static fromAsset(directory, options?)๐Ÿ”นReference an image that's constructed directly from sources on disk.
static fromDlc(repositoryName, tag, accountId?)๐Ÿ”นReference an AWS Deep Learning Container image.
static fromEcrRepository(repository, tag?)๐Ÿ”นReference an image in an ECR repository.

bind(scope, model)๐Ÿ”น

public bind(scope: Construct, model: Model): ContainerImageConfig

Parameters

  • scope Construct
  • model Model

Returns

  • ContainerImageConfig

Called when the image is used by a Model.


static fromAsset(directory, options?)๐Ÿ”น

public static fromAsset(directory: string, options?: DockerImageAssetOptions): ContainerImage

Parameters

  • directory string โ€” The directory where the Dockerfile is stored.
  • options DockerImageAssetOptions โ€” The options to further configure the selected image.

Returns

  • ContainerImage

Reference an image that's constructed directly from sources on disk.


static fromDlc(repositoryName, tag, accountId?)๐Ÿ”น

public static fromDlc(repositoryName: string, tag: string, accountId?: string): ContainerImage

Parameters

  • repositoryName string
  • tag string
  • accountId string

Returns

  • ContainerImage

Reference an AWS Deep Learning Container image.


static fromEcrRepository(repository, tag?)๐Ÿ”น

public static fromEcrRepository(repository: IRepository, tag?: string): ContainerImage

Parameters

  • repository IRepository
  • tag string

Returns

  • ContainerImage

Reference an image in an ECR repository.