Interface FileSource

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    FileSource.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
               date="2026-07-30T08:06:26.703Z")
    @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.cloudassembly.schema.*;
     FileSource fileSource = FileSource.builder()
             .executable(List.of("executable"))
             .packaging(FileAssetPackaging.FILE)
             .path("path")
             .build();
     
    • Method Detail

      • getExecutable

        @Stability(Stable)
        @Nullable
        default List<String> getExecutable()
        External command which will produce the file asset to upload.

        Default: - Exactly one of `executable` and `path` is required.

      • getPackaging

        @Stability(Stable)
        @Nullable
        default FileAssetPackaging getPackaging()
        Packaging method.

        Only allowed when path is specified.

        Default: FILE

      • getPath

        @Stability(Stable)
        @Nullable
        default String getPath()
        The filesystem object to upload.

        This path is relative to the asset manifest location.

        Default: - Exactly one of `executable` and `path` is required.