Interface FileSource
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
FileSource.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:50.791Z")
@Stability(Stable)
public interface FileSource
extends software.amazon.jsii.JsiiSerializable
Describe the source of a file asset.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloud_assembly_schema.*;
FileSource fileSource = FileSource.builder()
.executable(List.of("executable"))
.packaging(FileAssetPackaging.FILE)
.path("path")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forFileSourcestatic final classAn implementation forFileSource -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSource.Builderbuilder()External command which will produce the file asset to upload.default FileAssetPackagingPackaging method.default StringgetPath()The filesystem object to upload.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExecutable
External command which will produce the file asset to upload.Default: - Exactly one of `executable` and `path` is required.
-
getPackaging
Packaging method.Only allowed when
pathis specified.Default: FILE
-
getPath
The filesystem object to upload.This path is relative to the asset manifest location.
Default: - Exactly one of `executable` and `path` is required.
-
builder
- Returns:
- a
FileSource.BuilderofFileSource
-