import { NoopStack } from '@cdktf/construct-projen-template'
new NoopStack(scope: Construct, name: string)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
- Type: constructs.Construct
- Type: string
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
addDependency |
No description. |
addOverride |
No description. |
allProviders |
No description. |
dependsOn |
No description. |
ensureBackendExists |
No description. |
getLogicalId |
No description. |
hasResourceMove |
No description. |
prepareStack |
No description. |
registerIncomingCrossStackReference |
No description. |
registerOutgoingCrossStackReference |
No description. |
runAllValidations |
Run all validations on the stack. |
toHclTerraform |
No description. |
toTerraform |
No description. |
public toString(): string
Returns a string representation of this construct.
public addDependency(dependency: TerraformStack): void
- Type: cdktf.TerraformStack
public addOverride(path: string, value: any): void
- Type: string
- Type: any
public allProviders(): TerraformProvider[]
public dependsOn(stack: TerraformStack): boolean
- Type: cdktf.TerraformStack
public ensureBackendExists(): TerraformBackend
public getLogicalId(tfElement: Node | TerraformElement): string
- Type: constructs.Node | cdktf.TerraformElement
public hasResourceMove(): boolean
public prepareStack(): void
public registerIncomingCrossStackReference(fromStack: TerraformStack): TerraformRemoteState
- Type: cdktf.TerraformStack
public registerOutgoingCrossStackReference(identifier: string): TerraformOutput
- Type: string
public runAllValidations(): void
Run all validations on the stack.
public toHclTerraform(): {[ key: string ]: any}
public toTerraform(): any
Name | Description |
---|---|
isConstruct |
Checks if x is a construct. |
isStack |
No description. |
of |
No description. |
import { NoopStack } from '@cdktf/construct-projen-template'
NoopStack.isConstruct(x: any)
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.
- Type: any
Any object.
import { NoopStack } from '@cdktf/construct-projen-template'
NoopStack.isStack(x: any)
- Type: any
import { NoopStack } from '@cdktf/construct-projen-template'
NoopStack.of(construct: IConstruct)
- Type: constructs.IConstruct
Name | Type | Description |
---|---|---|
node |
constructs.Node |
The tree node. |
dependencies |
cdktf.TerraformStack[] |
No description. |
moveTargets |
cdktf.TerraformResourceTargets |
No description. |
synthesizer |
cdktf.IStackSynthesizer |
No description. |
public readonly node: Node;
- Type: constructs.Node
The tree node.
public readonly dependencies: TerraformStack[];
- Type: cdktf.TerraformStack[]
public readonly moveTargets: TerraformResourceTargets;
- Type: cdktf.TerraformResourceTargets
public readonly synthesizer: IStackSynthesizer;
- Type: cdktf.IStackSynthesizer