AppProps

class aws_cdk.core.AppProps(*, auto_synth=None, context=None, outdir=None, runtime_info=None, stack_traces=None, tree_metadata=None)

Bases: object

__init__(*, auto_synth=None, context=None, outdir=None, runtime_info=None, stack_traces=None, tree_metadata=None)

Initialization props for apps.

Parameters
  • auto_synth (Optional[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[Mapping[str, str]]) – 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). Default: - no additional context

  • outdir (Optional[str]) – 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.

  • runtime_info (Optional[bool]) – Include runtime versioning information in cloud assembly manifest. Default: true runtime info is included unless aws:cdk:disable-runtime-info is set in the context.

  • stack_traces (Optional[bool]) – Include construct creation stack trace in the aws:cdk:trace metadata key of all constructs. Default: true stack traces are included unless aws:cdk:disable-stack-trace is set in the context.

  • tree_metadata (Optional[bool]) – Include construct tree metadata as part of the Cloud Assembly. Default: true

Attributes

auto_synth

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 :default:

true if running via CDK CLI (CDK_OUTDIR is set), false otherwise

Return type

Optional[bool]

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).

default :default: - no additional context

Return type

Optional[Mapping[str, str]]

outdir

The output directory into which to emit synthesized artifacts.

default :default:

  • If this value is not set, considers the environment variable CDK_OUTDIR. If CDK_OUTDIR is not defined, uses a temp directory.

Return type

Optional[str]

runtime_info

Include runtime versioning information in cloud assembly manifest.

default :default: true runtime info is included unless aws:cdk:disable-runtime-info is set in the context.

Return type

Optional[bool]

stack_traces

trace`` metadata key of all constructs.

default :default: true stack traces are included unless aws:cdk:disable-stack-trace is set in the context.

Type

Include construct creation stack trace in the ``aws

Type

cdk

Return type

Optional[bool]

tree_metadata

Include construct tree metadata as part of the Cloud Assembly.

default :default: true

Return type

Optional[bool]