Skip to main content

Initializer

import cdktn

cdktn.AppConfig(
  context: typing.Mapping[typing.Any] = None,
  hcl_output: bool = None,
  outdir: str = None,
  skip_backend_validation: bool = None,
  skip_validation: bool = None,
  stack_traces: bool = None
)

Properties

NameTypeDescription
contexttyping.Mapping[typing.Any]Additional context values for the application.
hcl_outputboolNo description.
outdirstrThe directory to output Terraform resources.
skip_backend_validationboolWhether to skip backend validation during synthesis of the app.
skip_validationboolWhether to skip all validations during synthesis of the app.
stack_tracesboolNo description.

contextOptional

context: typing.Mapping[typing.Any]
  • Type: typing.Mapping[typing.Any]
  • Default: no additional context
Additional context values for the application. Context set by the CLI or the context key in cdktf.json has precedence. Context can be read from any construct using node.getContext(key).

hcl_outputOptional

hcl_output: bool
  • Type: bool

outdirOptional

outdir: str
  • Type: str
  • Default: CDKTF_OUTDIR if defined, otherwise “cdktf.out”
The directory to output Terraform resources. If you are using the CDKTN CLI, this value is automatically set from one of the following three sources:
  • The -o / --output CLI option
  • The CDKTF_OUTDIR environment variable
  • The outdir key in cdktf.json
If you are using the CDKTN CLI and want to set a different value here, you will also need to set the same value via one of the three ways specified above. The most common case to set this value is when you are using the CDKTN library directly (e.g. when writing unit tests).

skip_backend_validationOptional

skip_backend_validation: bool
  • Type: bool
  • Default: false
Whether to skip backend validation during synthesis of the app.

skip_validationOptional

skip_validation: bool
  • Type: bool
  • Default: false
Whether to skip all validations during synthesis of the app.

stack_tracesOptional

stack_traces: bool
  • Type: bool