@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.894Z") @Stability(value=Stable) public interface FileAssetSource extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
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 List<String> |
getExecutable()
An external command that will produce the packaged asset.
|
default 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.
|
String |
getSourceHash()
A hash on the content source.
|
@Stability(value=Stable) @NotNull 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.
@Stability(value=Stable) @Nullable default List<String> getExecutable()
The command should produce the location of a ZIP file on stdout.
Default: - Exactly one of `directory` and `executable` is required
@Stability(value=Stable) @Nullable default 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
@Stability(value=Stable) @Nullable default FileAssetPackaging getPackaging()
Default: - Required if `fileName` is specified.
@Stability(value=Stable) static FileAssetSource.Builder builder()
FileAssetSource.Builder of FileAssetSourceCopyright © 2022. All rights reserved.