Skip to main content

Initializer

import "github.com/open-constructs/cdk-terrain-go/cdktn"

&cdktn.AppConfig {
	Context: *map[string]interface{},
	HclOutput: *bool,
	Outdir: *string,
	SkipBackendValidation: *bool,
	SkipValidation: *bool,
	StackTraces: *bool,
}

Properties

NameTypeDescription
Context*map[string]interface{}Additional context values for the application.
HclOutput*boolNo description.
Outdir*stringThe directory to output Terraform resources.
SkipBackendValidation*boolWhether to skip backend validation during synthesis of the app.
SkipValidation*boolWhether to skip all validations during synthesis of the app.
StackTraces*boolNo description.

ContextOptional

Context *map[string]interface{}
  • Type: *map[string]interface{}
  • 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

HclOutput *bool
  • Type: *bool

OutdirOptional

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

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

SkipValidationOptional

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

StackTracesOptional

StackTraces *bool
  • Type: *bool