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 Summary
Modifier and TypeMethodDescriptionbuild()
static TarballImageAsset.Builder
tarballFile
(String tarballFile) Absolute path to the tarball.
-
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TarballImageAsset>
- Returns:
- a newly built instance of
TarballImageAsset
.
-