Class TarballImageAsset.Builder

java.lang.Object
software.amazon.awscdk.services.ecr.assets.TarballImageAsset.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<TarballImageAsset>
Enclosing class:
TarballImageAsset

@Stability(Stable) public static final class TarballImageAsset.Builder extends Object implements software.amazon.jsii.Builder<TarballImageAsset>
A fluent builder for TarballImageAsset.
  • Method Details

    • create

      @Stability(Stable) public static TarballImageAsset.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of TarballImageAsset.Builder.
    • tarballFile

      @Stability(Stable) public TarballImageAsset.Builder tarballFile(String tarballFile)
      Absolute path to the tarball.

      It is recommended to to use the script running directory (e.g. __dirname in Node.js projects or dirname of __file__ in Python) if your tarball is located as a resource inside your project.

      Parameters:
      tarballFile - Absolute path to the tarball. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public TarballImageAsset build()
      Specified by:
      build in interface software.amazon.jsii.Builder<TarballImageAsset>
      Returns:
      a newly built instance of TarballImageAsset.