Documentation Index
Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Represents a cdktn application.
Initializers
import "github.com/open-constructs/cdk-terrain-go/cdktn"
cdktn.NewApp(config AppConfig) App
| Name | Type | Description |
|---|
config | AppConfig | configuration. |
configOptional
configuration.
Methods
| Name | Description |
|---|
ToString | Returns a string representation of this construct. |
CrossStackReference | Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources. |
Synth | Synthesizes all resources to the output directory. |
ToString
Returns a string representation of this construct.
CrossStackReference
func CrossStackReference(fromStack TerraformStack, toStack TerraformStack, identifier *string) *string
Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources.
fromStackRequired
toStackRequired
identifierRequired
Synth
Synthesizes all resources to the output directory.
Static Functions
| Name | Description |
|---|
IsConstruct | Checks if x is a construct. |
IsApp | No description. |
Of | No description. |
IsConstruct
import "github.com/open-constructs/cdk-terrain-go/cdktn"
cdktn.App_IsConstruct(x interface{}) *bool
Checks if x is a construct.
Use this method instead of instanceof to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct in each copy of the constructs library
is seen as a different class, and an instance of one class will not test as
instanceof the other class. npm install will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof will behave
unpredictably. It is safest to avoid using instanceof, and using
this type-testing method instead.
xRequired
Any object.
IsApp
import "github.com/open-constructs/cdk-terrain-go/cdktn"
cdktn.App_IsApp(x interface{}) *bool
xRequired
import "github.com/open-constructs/cdk-terrain-go/cdktn"
cdktn.App_Of(construct IConstruct) App
constructRequired
- Type: github.com/aws/constructs-go/constructs/v10.IConstruct
Properties
| Name | Type | Description |
|---|
Node | github.com/aws/constructs-go/constructs/v10.Node | The tree node. |
HclOutput | *bool | No description. |
Manifest | Manifest | No description. |
Outdir | *string | The output directory into which resources will be synthesized. |
SkipBackendValidation | *bool | Whether to skip backend validation during synthesis of the app. |
SkipValidation | *bool | Whether to skip all validations during synthesis of the app. |
TargetStackId | *string | The stack which will be synthesized. |
NodeRequired
- Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.
HclOutputRequired
ManifestRequired
OutdirRequired
The output directory into which resources will be synthesized.
SkipBackendValidationRequired
func SkipBackendValidation() *bool
Whether to skip backend validation during synthesis of the app.
SkipValidationRequired
func SkipValidation() *bool
Whether to skip all validations during synthesis of the app.
TargetStackIdOptional
func TargetStackId() *string
The stack which will be synthesized.
If not set, all stacks will be synthesized.