Skip to main content

Initializers

import io.cdktn.cdktn.TerraformStack;

new TerraformStack(Construct scope, java.lang.String id);
NameTypeDescription
scopesoftware.constructs.ConstructNo description.
idjava.lang.StringNo description.

scopeRequired

  • Type: software.constructs.Construct

idRequired

  • Type: java.lang.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

public java.lang.String toString()
Returns a string representation of this construct.

addDependency

public void addDependency(TerraformStack dependency)

dependencyRequired


addOverride

public void addOverride(java.lang.String path, java.lang.Object value)

pathRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

allProviders

public java.util.List<TerraformProvider> allProviders()

dependsOn

public java.lang.Boolean dependsOn(TerraformStack stack)

stackRequired


ensureBackendExists

public TerraformBackend ensureBackendExists()

getLogicalId

public java.lang.String getLogicalId(Node|TerraformElement tfElement)

tfElementRequired


hasResourceMove

public java.lang.Boolean hasResourceMove()

prepareStack

public void prepareStack()

registerIncomingCrossStackReference

public TerraformRemoteState registerIncomingCrossStackReference(TerraformStack fromStack)

fromStackRequired


registerOutgoingCrossStackReference

public TerraformOutput registerOutgoingCrossStackReference(java.lang.String identifier)

identifierRequired

  • Type: java.lang.String

runAllValidations

public void runAllValidations()
Run all validations on the stack.

toHclTerraform

public java.util.Map<java.lang.String, java.lang.Object> toHclTerraform()

toTerraform

public java.lang.Object toTerraform()

Static Functions

NameDescription
isConstructChecks if x is a construct.
isStackNo description.
ofNo description.

isConstruct

import io.cdktn.cdktn.TerraformStack;

TerraformStack.isConstruct(java.lang.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: java.lang.Object
Any object.

isStack

import io.cdktn.cdktn.TerraformStack;

TerraformStack.isStack(java.lang.Object x)

xRequired

  • Type: java.lang.Object

of

import io.cdktn.cdktn.TerraformStack;

TerraformStack.of(IConstruct construct)

constructRequired

  • Type: software.constructs.IConstruct

Properties

NameTypeDescription
nodesoftware.constructs.NodeThe tree node.
dependenciesjava.util.List<TerraformStack>No description.
moveTargetsTerraformResourceTargetsNo description.
synthesizerIStackSynthesizerNo description.

nodeRequired

public Node getNode();
  • Type: software.constructs.Node
The tree node.

dependenciesRequired

public java.util.List<TerraformStack> getDependencies();

moveTargetsRequired

public TerraformResourceTargets getMoveTargets();

synthesizerRequired

public IStackSynthesizer getSynthesizer();