Class ContainerImage

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.sagemaker.alpha.ContainerImage
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:25.869Z") @Stability(Experimental) public abstract class ContainerImage extends software.amazon.jsii.JsiiObject
(experimental) Constructs for types of container images.

Example:

 import software.amazon.awscdk.services.sagemaker.alpha.*;
 ContainerImage image;
 ModelData modelData;
 Model model = Model.Builder.create(this, "ContainerModel")
         .containers(List.of(ContainerDefinition.builder()
                 .image(image)
                 .modelData(modelData)
                 .build()))
         .networkIsolation(true)
         .build();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
    ContainerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    ContainerImage(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(software.constructs.Construct scope, Model model)
    (experimental) Called when the image is used by a Model.
    fromAsset(String directory)
    (experimental) Reference an image that's constructed directly from sources on disk.
    (experimental) Reference an image that's constructed directly from sources on disk.
    fromDlc(String repositoryName, String tag)
    (experimental) Reference an AWS Deep Learning Container image.
    fromDlc(String repositoryName, String tag, String accountId)
    (experimental) Reference an AWS Deep Learning Container image.
    (experimental) Reference an image in an ECR repository.
    (experimental) Reference an image in an ECR repository.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • ContainerImage

      protected ContainerImage(software.amazon.jsii.JsiiObjectRef objRef)
    • ContainerImage

      protected ContainerImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ContainerImage

      @Stability(Experimental) protected ContainerImage()
  • Method Details

    • fromAsset

      @Stability(Experimental) @NotNull public static ContainerImage fromAsset(@NotNull String directory, @Nullable DockerImageAssetOptions options)
      (experimental) Reference an image that's constructed directly from sources on disk.

      Parameters:
      directory - The directory where the Dockerfile is stored. This parameter is required.
      options - The options to further configure the selected image.
    • fromAsset

      @Stability(Experimental) @NotNull public static ContainerImage fromAsset(@NotNull String directory)
      (experimental) Reference an image that's constructed directly from sources on disk.

      Parameters:
      directory - The directory where the Dockerfile is stored. This parameter is required.
    • fromDlc

      @Stability(Experimental) @NotNull public static ContainerImage fromDlc(@NotNull String repositoryName, @NotNull String tag, @Nullable String accountId)
      (experimental) Reference an AWS Deep Learning Container image.

      Parameters:
      repositoryName - This parameter is required.
      tag - This parameter is required.
      accountId -
    • fromDlc

      @Stability(Experimental) @NotNull public static ContainerImage fromDlc(@NotNull String repositoryName, @NotNull String tag)
      (experimental) Reference an AWS Deep Learning Container image.

      Parameters:
      repositoryName - This parameter is required.
      tag - This parameter is required.
    • fromEcrRepository

      @Stability(Experimental) @NotNull public static ContainerImage fromEcrRepository(@NotNull IRepository repository, @Nullable String tag)
      (experimental) Reference an image in an ECR repository.

      Parameters:
      repository - This parameter is required.
      tag -
    • fromEcrRepository

      @Stability(Experimental) @NotNull public static ContainerImage fromEcrRepository(@NotNull IRepository repository)
      (experimental) Reference an image in an ECR repository.

      Parameters:
      repository - This parameter is required.
    • bind

      @Stability(Experimental) @NotNull public abstract ContainerImageConfig bind(@NotNull software.constructs.Construct scope, @NotNull Model model)
      (experimental) Called when the image is used by a Model.

      Parameters:
      scope - This parameter is required.
      model - This parameter is required.