@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.437Z") @Stability(value=Experimental) public interface SampleFileOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
SampleFileOptions.Builder
A builder for
SampleFileOptions |
static class |
SampleFileOptions.Jsii$Proxy
An implementation for
SampleFileOptions |
| Modifier and Type | Method and Description |
|---|---|
static SampleFileOptions.Builder |
builder() |
default String |
getContents()
(experimental) The contents of the file to write.
|
default String |
getSourcePath()
(experimental) Absolute path to a file to copy the contents from (does not need to be a text file).
|
@Stability(value=Experimental) @Nullable default String getContents()
@Stability(value=Experimental) @Nullable default String getSourcePath()
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 SampleFile(this, 'assets/icon.png', { source: path.join(__dirname, '..', 'sample-assets', 'icon.png') });
@Stability(value=Experimental) static SampleFileOptions.Builder builder()
SampleFileOptions.Builder of SampleFileOptionsCopyright © 2021. All rights reserved.