Interface SampleDirOptions

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

    @Generated(value="jsii-pacmak/1.96.0 (build 921e240)",
               date="2024-03-28T21:16:42.800Z")
    @Stability(Experimental)
    public interface SampleDirOptions
    extends software.amazon.jsii.JsiiSerializable
    (experimental) SampleDir options.
    • Method Detail

      • getFiles

        @Stability(Experimental)
        @Nullable
        default Map<String,​String> getFiles()
        (experimental) The files to render into the directory.

        These files get added after any files from source if that option is specified (replacing if names overlap).

      • getSourceDir

        @Stability(Experimental)
        @Nullable
        default String getSourceDir()
        (experimental) Absolute path to a directory to copy files from (does not need to be text files).

        If your project is typescript-based and has configured testdir to be a subdirectory of src, sample files should outside of the src directory otherwise they may not be copied. For example:

         new SampleDir(this, 'public', { source: path.join(__dirname, '..', 'sample-assets') });