Skip to main content

Initializer

import io.cdktn.cdktn.AppConfig;

AppConfig.builder()
//  .context(java.util.Map<java.lang.String, java.lang.Object>)
//  .hclOutput(java.lang.Boolean)
//  .outdir(java.lang.String)
//  .skipBackendValidation(java.lang.Boolean)
//  .skipValidation(java.lang.Boolean)
//  .stackTraces(java.lang.Boolean)
    .build();

Properties

NameTypeDescription
contextjava.util.Map< java.lang.String, java.lang.Object >Additional context values for the application.
hclOutputjava.lang.BooleanNo description.
outdirjava.lang.StringThe directory to output Terraform resources.
skipBackendValidationjava.lang.BooleanWhether to skip backend validation during synthesis of the app.
skipValidationjava.lang.BooleanWhether to skip all validations during synthesis of the app.
stackTracesjava.lang.BooleanNo description.

contextOptional

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

outdirOptional

public java.lang.String getOutdir();
  • Type: java.lang.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 java.lang.Boolean getSkipBackendValidation();
  • Type: java.lang.Boolean
  • Default: false
Whether to skip backend validation during synthesis of the app.

skipValidationOptional

public java.lang.Boolean getSkipValidation();
  • Type: java.lang.Boolean
  • Default: false
Whether to skip all validations during synthesis of the app.

stackTracesOptional

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