AppProps
Initialization props for apps.
Initializer
using AlibabaCloud.SDK.ROS.CDK.Core;
new AppProps {
bool AutoSynth = null,
System.Collections.Generic.IDictionary<string, string> Context = null,
string Outdir = null,
bool RuntimeInfo = null,
bool StackTraces = null,
bool TreeMetadata = null
};
Properties
Name | Type | Description |
---|---|---|
AutoSynth |
bool |
Automatically call 'synth()' before the program exits. |
Context |
System.Collections.Generic.IDictionary |
Additional context values for the application. |
Outdir |
string |
The output directory into which to emit synthesized artifacts. |
RuntimeInfo |
bool |
Include runtime versioning information. |
StackTraces |
bool |
Include construct creation stack trace. |
TreeMetadata |
bool |
Include construct tree metadata as part of the Cloud Assembly. |
AutoSynth
Optional
public bool AutoSynth { get; set; }
- Type: bool
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.
Default true if running via CDK CLI ('CDK_OUTDIR' is set), 'false' otherwise
Context
Optional
public System.Collections.Generic.IDictionary<string, string> Context { get; set; }
- Type: System.Collections.Generic.IDictionary
- Default: no additional 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)'.
Outdir
Optional
public string Outdir { get; set; }
- Type: string
The output directory into which to emit synthesized artifacts.
Default - If this value is not set, considers the environment variable 'CDK_OUTDIR'. If 'CDK_OUTDIR' is not defined, uses a temp directory.
RuntimeInfo
Optional
public bool RuntimeInfo { get; set; }
- Type: bool
- Default: true runtime info is included unless related comtext is set.
Include runtime versioning information.
StackTraces
Optional
public bool StackTraces { get; set; }
- Type: bool
- Default: true stack traces are included unless related context is set.
Include construct creation stack trace.
TreeMetadata
Optional
public bool TreeMetadata { get; set; }
- Type: bool
- Default: true
Include construct tree metadata as part of the Cloud Assembly.