@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)",
date="2022-05-27T16:27:54.046Z")
public interface FileAssetSource
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.core.*; FileAssetSource fileAssetSource = FileAssetSource.builder() .sourceHash("sourceHash") // the properties below are optional .executable(List.of("executable")) .fileName("fileName") .packaging(FileAssetPackaging.ZIP_DIRECTORY) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
FileAssetSource.Builder
A builder for
FileAssetSource |
static class |
FileAssetSource.Jsii$Proxy
An implementation for
FileAssetSource |
Modifier and Type | Method and Description |
---|---|
static FileAssetSource.Builder |
builder() |
default java.util.List<java.lang.String> |
getExecutable()
An external command that will produce the packaged asset.
|
default java.lang.String |
getFileName()
The path, relative to the root of the cloud assembly, in which this asset source resides.
|
default FileAssetPackaging |
getPackaging()
Which type of packaging to perform.
|
java.lang.String |
getSourceHash()
A hash on the content source.
|
java.lang.String getSourceHash()
This hash is used to uniquely identify this asset throughout the system. If this value doesn't change, the asset will not be rebuilt or republished.
default java.util.List<java.lang.String> getExecutable()
The command should produce the location of a ZIP file on stdout
.
Default: - Exactly one of `directory` and `executable` is required
default java.lang.String getFileName()
This can be a path to a file or a directory, depending on the packaging type.
Default: - Exactly one of `directory` and `executable` is required
default FileAssetPackaging getPackaging()
Default: - Required if `fileName` is specified.
static FileAssetSource.Builder builder()
FileAssetSource.Builder
of FileAssetSource