@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:22.579Z") @Stability(value=Experimental) 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.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 List<String> |
getExecutable()
(experimental) An external command that will produce the packaged asset.
|
default String |
getFileName()
(experimental) The path, relative to the root of the cloud assembly, in which this asset source resides.
|
default FileAssetPackaging |
getPackaging()
(experimental) Which type of packaging to perform.
|
String |
getSourceHash()
(experimental) A hash on the content source.
|
@Stability(value=Experimental) @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=Experimental) @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=Experimental) @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=Experimental) @Nullable default FileAssetPackaging getPackaging()
Default: - Required if `fileName` is specified.
@Stability(value=Experimental) static FileAssetSource.Builder builder()
FileAssetSource.Builder of FileAssetSourceCopyright © 2022. All rights reserved.