Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AppProps.Builder |
autoSynth(Boolean autoSynth)
Sets the value of
AppProps.getAutoSynth() |
AppProps |
build()
Builds the configured instance.
|
AppProps.Builder |
context(Map<String,Object> context)
Sets the value of
AppProps.getContext() |
AppProps.Builder |
outdir(String outdir)
Sets the value of
AppProps.getOutdir() |
AppProps.Builder |
runtimeInfo(Boolean runtimeInfo)
Sets the value of
AppProps.getRuntimeInfo() |
AppProps.Builder |
stackTraces(Boolean stackTraces)
Sets the value of
AppProps.getStackTraces() |
AppProps.Builder |
treeMetadata(Boolean treeMetadata)
Sets the value of
AppProps.getTreeMetadata() |
@Stability(value=Stable) public AppProps.Builder autoSynth(Boolean autoSynth)
AppProps.getAutoSynth()
autoSynth
- Automatically call `synth()` before the program exits.
If you set this, you don't have to call synth()
explicitly. Note that
this feature is only available for certain programming languages, and
calling synth()
is still recommended.this
@Stability(value=Stable) public AppProps.Builder context(Map<String,Object> context)
AppProps.getContext()
context
- Additional context values for the application.
Context set by the CLI or the context
key in cdk.json
has precedence.
Context can be read from any construct using node.getContext(key)
.
this
@Stability(value=Stable) public AppProps.Builder outdir(String outdir)
AppProps.getOutdir()
outdir
- The output directory into which to emit synthesized artifacts.this
@Stability(value=Stable) public AppProps.Builder runtimeInfo(Boolean runtimeInfo)
AppProps.getRuntimeInfo()
runtimeInfo
- Include runtime versioning information in cloud assembly manifest.this
@Stability(value=Stable) public AppProps.Builder stackTraces(Boolean stackTraces)
AppProps.getStackTraces()
stackTraces
- Include construct creation stack trace in the `aws:cdk:trace` metadata key of all constructs.this
@Stability(value=Stable) public AppProps.Builder treeMetadata(Boolean treeMetadata)
AppProps.getTreeMetadata()
treeMetadata
- Include construct tree metadata as part of the Cloud Assembly.this
@Stability(value=Stable) public AppProps build()
build
in interface software.amazon.jsii.Builder<AppProps>
AppProps
NullPointerException
- if any required attribute was not providedCopyright © 2020. All rights reserved.