Interface AppProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AppProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.core.*; Object context; AppProps appProps = AppProps.builder() .analyticsReporting(false) .autoSynth(false) .context(Map.of( "contextKey", context)) .outdir("outdir") .runtimeInfo(false) .stackTraces(false) .treeMetadata(false) .build();
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AppProps.Builder
builder()
default Boolean
Include runtime versioning information in the Stacks of this app.default Boolean
Automatically callsynth()
before the program exits.Additional context values for the application.default String
The output directory into which to emit synthesized artifacts.default Boolean
Deprecated.default Boolean
Include construct creation stack trace in theaws:cdk:trace
metadata key of all constructs.default Boolean
Include construct tree metadata as part of the Cloud Assembly.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAnalyticsReporting
Include runtime versioning information in the Stacks of this app.Default: Value of 'aws:cdk:version-reporting' context key
-
getAutoSynth
Automatically callsynth()
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 callingsynth()
is still recommended.Default: true if running via CDK CLI (`CDK_OUTDIR` is set), `false` otherwise
-
getContext
Additional context values for the application.Context set by the CLI or the
context
key incdk.json
has precedence.Context can be read from any construct using
node.getContext(key)
.Default: - no additional context
-
getOutdir
The output directory into which to emit synthesized artifacts.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.
-
getRuntimeInfo
Deprecated.useversionReporting
instead(deprecated) Include runtime versioning information in the Stacks of this app.Default: Value of 'aws:cdk:version-reporting' context key
-
getStackTraces
Include construct creation stack trace in theaws:cdk:trace
metadata key of all constructs.Default: true stack traces are included unless `aws:cdk:disable-stack-trace` is set in the context.
-
getTreeMetadata
Include construct tree metadata as part of the Cloud Assembly.Default: true
-
builder
- Returns:
- a
AppProps.Builder
ofAppProps
-
versionReporting
instead