Skip to main content

Initializers

using Io.Cdktn;

new TerraformStack(Construct Scope, string Id);
NameTypeDescription
ScopeConstructs.ConstructNo description.
IdstringNo description.

ScopeRequired

  • Type: Constructs.Construct

IdRequired

  • Type: string

Methods

NameDescription
ToStringReturns a string representation of 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

private string ToString()
Returns a string representation of this construct.

AddDependency

private void AddDependency(TerraformStack Dependency)

DependencyRequired


AddOverride

private void AddOverride(string Path, object Value)

PathRequired

  • Type: string

ValueRequired

  • Type: object

AllProviders

private TerraformProvider[] AllProviders()

DependsOn

private bool DependsOn(TerraformStack Stack)

StackRequired


EnsureBackendExists

private TerraformBackend EnsureBackendExists()

GetLogicalId

private string GetLogicalId(Node|TerraformElement TfElement)

TfElementRequired


HasResourceMove

private bool HasResourceMove()

PrepareStack

private void PrepareStack()

RegisterIncomingCrossStackReference

private TerraformRemoteState RegisterIncomingCrossStackReference(TerraformStack FromStack)

FromStackRequired


RegisterOutgoingCrossStackReference

private TerraformOutput RegisterOutgoingCrossStackReference(string Identifier)

IdentifierRequired

  • Type: string

RunAllValidations

private void RunAllValidations()
Run all validations on the stack.

ToHclTerraform

private System.Collections.Generic.IDictionary<string, object> ToHclTerraform()

ToTerraform

private object ToTerraform()

Static Functions

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

IsConstruct

using Io.Cdktn;

TerraformStack.IsConstruct(object X);
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: object
Any object.

IsStack

using Io.Cdktn;

TerraformStack.IsStack(object X);

XRequired

  • Type: object

Of

using Io.Cdktn;

TerraformStack.Of(IConstruct Construct);

ConstructRequired

  • Type: Constructs.IConstruct

Properties

NameTypeDescription
NodeConstructs.NodeThe tree node.
DependenciesTerraformStack[]No description.
MoveTargetsTerraformResourceTargetsNo description.
SynthesizerIStackSynthesizerNo description.

NodeRequired

public Node Node { get; }
  • Type: Constructs.Node
The tree node.

DependenciesRequired

public TerraformStack[] Dependencies { get; }

MoveTargetsRequired

public TerraformResourceTargets MoveTargets { get; }

SynthesizerRequired

public IStackSynthesizer Synthesizer { get; }