Class TarballImageAsset

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.services.ecr.assets.TarballImageAsset
All Implemented Interfaces:
IAsset, IConstruct, IDependable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:37.990Z") @Stability(Stable) public class TarballImageAsset extends Construct implements IAsset
An asset that represents a Docker image.

The image will loaded from an existing tarball and uploaded to an ECR repository.

Example:

 import software.amazon.awscdk.services.ecr.assets.TarballImageAsset;
 TarballImageAsset asset = TarballImageAsset.Builder.create(this, "MyBuildImage")
         .tarballFile("local-image.tar")
         .build();
 
  • Constructor Details

    • TarballImageAsset

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

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

      @Stability(Stable) public TarballImageAsset(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TarballImageAssetProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • getAssetHash

      @Stability(Stable) @NotNull public String getAssetHash()
      A hash of this asset, which is available at construction time.

      As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed.

    • getSourceHash

      @Stability(Deprecated) @Deprecated @NotNull public String getSourceHash()
      Deprecated.
      use assetHash
      (deprecated) A hash of the source of this asset, which is available at construction time.

      As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed.

      Specified by:
      getSourceHash in interface IAsset
    • getImageUri

      @Stability(Stable) @NotNull public String getImageUri()
      The full URI of the image (including a tag).

      Use this reference to pull the asset.

    • setImageUri

      @Stability(Stable) public void setImageUri(@NotNull String value)
      The full URI of the image (including a tag).

      Use this reference to pull the asset.

    • getRepository

      @Stability(Stable) @NotNull public IRepository getRepository()
      Repository where the image is stored.
    • setRepository

      @Stability(Stable) public void setRepository(@NotNull IRepository value)
      Repository where the image is stored.