Skip to content

AppProps

Initialization props for apps.

Initializer

import com.aliyun.ros.cdk.core.AppProps;
AppProps.builder()
//  .autoSynth(java.lang.Boolean)
//  .context(java.util.Map<java.lang.String, java.lang.String>)
//  .outdir(java.lang.String)
//  .runtimeInfo(java.lang.Boolean)
//  .stackTraces(java.lang.Boolean)
//  .treeMetadata(java.lang.Boolean)
    .build();

Properties

Name Type Description
autoSynth java.lang.Boolean Automatically call 'synth()' before the program exits.
context java.util.Map Additional context values for the application.
outdir java.lang.String The output directory into which to emit synthesized artifacts.
runtimeInfo java.lang.Boolean Include runtime versioning information.
stackTraces java.lang.Boolean Include construct creation stack trace.
treeMetadata java.lang.Boolean Include construct tree metadata as part of the Cloud Assembly.

autoSynthOptional

public java.lang.Boolean getAutoSynth();
  • Type: java.lang.Boolean

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


contextOptional

public java.util.Map<java.lang.String, java.lang.String> getContext();
  • Type: java.util.Map
  • 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)'.


outdirOptional

public java.lang.String getOutdir();
  • Type: java.lang.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.


runtimeInfoOptional

public java.lang.Boolean getRuntimeInfo();
  • Type: java.lang.Boolean
  • Default: true runtime info is included unless related comtext is set.

Include runtime versioning information.


stackTracesOptional

public java.lang.Boolean getStackTraces();
  • Type: java.lang.Boolean
  • Default: true stack traces are included unless related context is set.

Include construct creation stack trace.


treeMetadataOptional

public java.lang.Boolean getTreeMetadata();
  • Type: java.lang.Boolean
  • Default: true

Include construct tree metadata as part of the Cloud Assembly.