Skip to main content

Initializer

import { AppConfig } from 'cdktn'

const appConfig: AppConfig = { ... }

Properties

NameTypeDescription
context{[ key: string ]: any}Additional context values for the application.
hclOutputbooleanNo description.
outdirstringThe directory to output Terraform resources.
skipBackendValidationbooleanWhether to skip backend validation during synthesis of the app.
skipValidationbooleanWhether to skip all validations during synthesis of the app.
stackTracesbooleanNo description.

contextOptional

public readonly context: {[ key: string ]: any};
  • Type: {[ key: string ]: 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).

hclOutputOptional

public readonly hclOutput: boolean;
  • Type: boolean

outdirOptional

public readonly outdir: string;
  • Type: string
  • 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).

skipBackendValidationOptional

public readonly skipBackendValidation: boolean;
  • Type: boolean
  • Default: false
Whether to skip backend validation during synthesis of the app.

skipValidationOptional

public readonly skipValidation: boolean;
  • Type: boolean
  • Default: false
Whether to skip all validations during synthesis of the app.

stackTracesOptional

public readonly stackTraces: boolean;
  • Type: boolean