Skip to main content

Initializers

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

cdktn.NewTerraformStack(scope Construct, id *string) TerraformStack
NameTypeDescription
scopegithub.com/aws/constructs-go/constructs/v10.ConstructNo description.
id*stringNo description.

scopeRequired

  • Type: github.com/aws/constructs-go/constructs/v10.Construct

idRequired

  • Type: *string

Methods

NameDescription
ToStringReturns a string representation of this construct.
WithApplies one or more mixins to this construct.
AddDependencyNo description.
AddOverrideNo description.
AllProvidersNo description.
DependsOnNo description.
EnsureBackendExistsNo description.
GetLogicalIdNo description.
HasResourceMoveNo description.
PrepareStackNo description.
RegisterIncomingCrossStackReferenceNo description.
RegisterOutgoingCrossStackReferenceNo description.
RunAllValidationsRun all validations on the stack.
ToHclTerraformNo description.
ToTerraformNo description.

ToString

func ToString() *string
Returns a string representation of this construct.

With

func With(mixins ...IMixin) IConstruct
Applies one or more mixins to this construct. Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.

mixinsRequired

  • Type: …github.com/aws/constructs-go/constructs/v10.IMixin
The mixins to apply.

AddDependency

func AddDependency(dependency TerraformStack)

dependencyRequired


AddOverride

func AddOverride(path *string, value interface{})

pathRequired

  • Type: *string

valueRequired

  • Type: interface{}

AllProviders

func AllProviders() *[]TerraformProvider

DependsOn

func DependsOn(stack TerraformStack) *bool

stackRequired


EnsureBackendExists

func EnsureBackendExists() TerraformBackend

GetLogicalId

func GetLogicalId(tfElement interface{}) *string

tfElementRequired

  • Type: interface{}

HasResourceMove

func HasResourceMove() *bool

PrepareStack

func PrepareStack()

RegisterIncomingCrossStackReference

func RegisterIncomingCrossStackReference(fromStack TerraformStack) TerraformRemoteState

fromStackRequired


RegisterOutgoingCrossStackReference

func RegisterOutgoingCrossStackReference(identifier *string) TerraformOutput

identifierRequired

  • Type: *string

RunAllValidations

func RunAllValidations()
Run all validations on the stack.

ToHclTerraform

func ToHclTerraform() *map[string]interface{}

ToTerraform

func ToTerraform() interface{}

Static Functions

NameDescription
IsConstructChecks if x is a construct.
IsStackNo description.
OfNo description.

IsConstruct

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

cdktn.TerraformStack_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

  • Type: interface{}
Any object.

IsStack

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

cdktn.TerraformStack_IsStack(x interface{}) *bool

xRequired

  • Type: interface{}

Of

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

cdktn.TerraformStack_Of(construct IConstruct) TerraformStack

constructRequired

  • Type: github.com/aws/constructs-go/constructs/v10.IConstruct

Properties

NameTypeDescription
Nodegithub.com/aws/constructs-go/constructs/v10.NodeThe tree node.
Dependencies*[]TerraformStackNo description.
MoveTargetsTerraformResourceTargetsNo description.
SynthesizerIStackSynthesizerNo description.

NodeRequired

func Node() Node
  • Type: github.com/aws/constructs-go/constructs/v10.Node
The tree node.

DependenciesRequired

func Dependencies() *[]TerraformStack

MoveTargetsRequired

func MoveTargets() TerraformResourceTargets

SynthesizerRequired

func Synthesizer() IStackSynthesizer