Modifier and Type | Method and Description |
---|---|
App.Builder |
analyticsReporting(Boolean analyticsReporting)
Include runtime versioning information in the Stacks of this app.
|
App.Builder |
autoSynth(Boolean autoSynth)
Automatically call `synth()` before the program exits.
|
App |
build() |
App.Builder |
context(Map<String,? extends Object> context)
Additional context values for the application.
|
static App.Builder |
create() |
App.Builder |
outdir(String outdir)
The output directory into which to emit synthesized artifacts.
|
App.Builder |
runtimeInfo(Boolean runtimeInfo)
Deprecated.
use `versionReporting` instead
|
App.Builder |
stackTraces(Boolean stackTraces)
Include construct creation stack trace in the `aws:cdk:trace` metadata key of all constructs.
|
App.Builder |
treeMetadata(Boolean treeMetadata)
Include construct tree metadata as part of the Cloud Assembly.
|
@Stability(value=Stable) public static App.Builder create()
App.Builder
.@Stability(value=Stable) public App.Builder analyticsReporting(Boolean analyticsReporting)
Default: Value of 'aws:cdk:version-reporting' context key
analyticsReporting
- Include runtime versioning information in the Stacks of this app. This parameter is required.this
@Stability(value=Stable) public App.Builder autoSynth(Boolean autoSynth)
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.
Default: true if running via CDK CLI (`CDK_OUTDIR` is set), `false` otherwise
autoSynth
- Automatically call `synth()` before the program exits. This parameter is required.this
@Stability(value=Stable) public App.Builder context(Map<String,? extends Object> context)
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)
.
Default: - no additional context
context
- Additional context values for the application. This parameter is required.this
@Stability(value=Stable) public App.Builder outdir(String outdir)
You should never need to set this value. By default, the value you pass to
the CLI's --output
flag will be used, and if you change it to a different
directory the CLI will fail to pick up the generated Cloud Assembly.
This property is intended for internal and testing use.
Default: - If this value is _not_ set, considers the environment variable `CDK_OUTDIR`. If `CDK_OUTDIR` is not defined, uses a temp directory.
outdir
- The output directory into which to emit synthesized artifacts. This parameter is required.this
@Stability(value=Deprecated) @Deprecated public App.Builder runtimeInfo(Boolean runtimeInfo)
Default: Value of 'aws:cdk:version-reporting' context key
runtimeInfo
- Include runtime versioning information in the Stacks of this app. This parameter is required.this
@Stability(value=Stable) public App.Builder stackTraces(Boolean stackTraces)
Default: true stack traces are included unless `aws:cdk:disable-stack-trace` is set in the context.
stackTraces
- Include construct creation stack trace in the `aws:cdk:trace` metadata key of all constructs. This parameter is required.this
@Stability(value=Stable) public App.Builder treeMetadata(Boolean treeMetadata)
Default: true
treeMetadata
- Include construct tree metadata as part of the Cloud Assembly. This parameter is required.this
Copyright © 2023. All rights reserved.