> ## 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.

# CSharp: TerraformStack

> CDKTN Core API Reference for TerraformStack in CSharp.

## Initializers <a name="Initializers" id="cdktn.TerraformStack.Initializer" />

```csharp theme={null}
using Io.Cdktn;

new TerraformStack(Construct Scope, string Id);
```

| **Name**                                                                           | **Type**                          | **Description**   |
| ---------------------------------------------------------------------------------- | --------------------------------- | ----------------- |
| <code><a href="#cdktn.TerraformStack.Initializer.parameter.scope">Scope</a></code> | <code>Constructs.Construct</code> | *No description.* |
| <code><a href="#cdktn.TerraformStack.Initializer.parameter.id">Id</a></code>       | <code>string</code>               | *No description.* |

***

### `Scope`<sup>Required</sup> <a name="Scope" id="cdktn.TerraformStack.Initializer.parameter.scope" />

* *Type:* Constructs.Construct

***

### `Id`<sup>Required</sup> <a name="Id" id="cdktn.TerraformStack.Initializer.parameter.id" />

* *Type:* string

***

## Methods <a name="Methods" id="Methods" />

| **Name**                                                                                                                 | **Description**                                    |
| ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------- |
| <code><a href="#cdktn.TerraformStack.toString">ToString</a></code>                                                       | Returns a string representation of this construct. |
| <code><a href="#cdktn.TerraformStack.with">With</a></code>                                                               | Applies one or more mixins to this construct.      |
| <code><a href="#cdktn.TerraformStack.addDependency">AddDependency</a></code>                                             | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.addOverride">AddOverride</a></code>                                                 | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.allProviders">AllProviders</a></code>                                               | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.dependsOn">DependsOn</a></code>                                                     | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.ensureBackendExists">EnsureBackendExists</a></code>                                 | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.getLogicalId">GetLogicalId</a></code>                                               | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.hasResourceMove">HasResourceMove</a></code>                                         | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.prepareStack">PrepareStack</a></code>                                               | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.registerIncomingCrossStackReference">RegisterIncomingCrossStackReference</a></code> | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.registerOutgoingCrossStackReference">RegisterOutgoingCrossStackReference</a></code> | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.runAllValidations">RunAllValidations</a></code>                                     | Run all validations on the stack.                  |
| <code><a href="#cdktn.TerraformStack.toHclTerraform">ToHclTerraform</a></code>                                           | *No description.*                                  |
| <code><a href="#cdktn.TerraformStack.toTerraform">ToTerraform</a></code>                                                 | *No description.*                                  |

***

### `ToString` <a name="ToString" id="cdktn.TerraformStack.toString" />

```csharp theme={null}
private string ToString()
```

Returns a string representation of this construct.

### `With` <a name="With" id="cdktn.TerraformStack.with" />

```csharp theme={null}
private IConstruct With(params IMixin[] Mixins)
```

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.

#### `Mixins`<sup>Required</sup> <a name="Mixins" id="cdktn.TerraformStack.with.parameter.mixins" />

* *Type:* params Constructs.IMixin\[]

The mixins to apply.

***

### `AddDependency` <a name="AddDependency" id="cdktn.TerraformStack.addDependency" />

```csharp theme={null}
private void AddDependency(TerraformStack Dependency)
```

#### `Dependency`<sup>Required</sup> <a name="Dependency" id="cdktn.TerraformStack.addDependency.parameter.dependency" />

* *Type:* <a href="#cdktn.TerraformStack">TerraformStack</a>

***

### `AddOverride` <a name="AddOverride" id="cdktn.TerraformStack.addOverride" />

```csharp theme={null}
private void AddOverride(string Path, object Value)
```

#### `Path`<sup>Required</sup> <a name="Path" id="cdktn.TerraformStack.addOverride.parameter.path" />

* *Type:* string

***

#### `Value`<sup>Required</sup> <a name="Value" id="cdktn.TerraformStack.addOverride.parameter.value" />

* *Type:* object

***

### `AllProviders` <a name="AllProviders" id="cdktn.TerraformStack.allProviders" />

```csharp theme={null}
private TerraformProvider[] AllProviders()
```

### `DependsOn` <a name="DependsOn" id="cdktn.TerraformStack.dependsOn" />

```csharp theme={null}
private bool DependsOn(TerraformStack Stack)
```

#### `Stack`<sup>Required</sup> <a name="Stack" id="cdktn.TerraformStack.dependsOn.parameter.stack" />

* *Type:* <a href="#cdktn.TerraformStack">TerraformStack</a>

***

### `EnsureBackendExists` <a name="EnsureBackendExists" id="cdktn.TerraformStack.ensureBackendExists" />

```csharp theme={null}
private TerraformBackend EnsureBackendExists()
```

### `GetLogicalId` <a name="GetLogicalId" id="cdktn.TerraformStack.getLogicalId" />

```csharp theme={null}
private string GetLogicalId(Node|TerraformElement TfElement)
```

#### `TfElement`<sup>Required</sup> <a name="TfElement" id="cdktn.TerraformStack.getLogicalId.parameter.tfElement" />

* *Type:* Constructs.Node|<a href="#cdktn.TerraformElement">TerraformElement</a>

***

### `HasResourceMove` <a name="HasResourceMove" id="cdktn.TerraformStack.hasResourceMove" />

```csharp theme={null}
private bool HasResourceMove()
```

### `PrepareStack` <a name="PrepareStack" id="cdktn.TerraformStack.prepareStack" />

```csharp theme={null}
private void PrepareStack()
```

### `RegisterIncomingCrossStackReference` <a name="RegisterIncomingCrossStackReference" id="cdktn.TerraformStack.registerIncomingCrossStackReference" />

```csharp theme={null}
private TerraformRemoteState RegisterIncomingCrossStackReference(TerraformStack FromStack)
```

#### `FromStack`<sup>Required</sup> <a name="FromStack" id="cdktn.TerraformStack.registerIncomingCrossStackReference.parameter.fromStack" />

* *Type:* <a href="#cdktn.TerraformStack">TerraformStack</a>

***

### `RegisterOutgoingCrossStackReference` <a name="RegisterOutgoingCrossStackReference" id="cdktn.TerraformStack.registerOutgoingCrossStackReference" />

```csharp theme={null}
private TerraformOutput RegisterOutgoingCrossStackReference(string Identifier)
```

#### `Identifier`<sup>Required</sup> <a name="Identifier" id="cdktn.TerraformStack.registerOutgoingCrossStackReference.parameter.identifier" />

* *Type:* string

***

### `RunAllValidations` <a name="RunAllValidations" id="cdktn.TerraformStack.runAllValidations" />

```csharp theme={null}
private void RunAllValidations()
```

Run all validations on the stack.

### `ToHclTerraform` <a name="ToHclTerraform" id="cdktn.TerraformStack.toHclTerraform" />

```csharp theme={null}
private System.Collections.Generic.IDictionary<string, object> ToHclTerraform()
```

### `ToTerraform` <a name="ToTerraform" id="cdktn.TerraformStack.toTerraform" />

```csharp theme={null}
private object ToTerraform()
```

## Static Functions <a name="Static Functions" id="Static Functions" />

| **Name**                                                                 | **Description**               |
| ------------------------------------------------------------------------ | ----------------------------- |
| <code><a href="#cdktn.TerraformStack.isConstruct">IsConstruct</a></code> | Checks if `x` is a construct. |
| <code><a href="#cdktn.TerraformStack.isStack">IsStack</a></code>         | *No description.*             |
| <code><a href="#cdktn.TerraformStack.of">Of</a></code>                   | *No description.*             |

***

### `IsConstruct` <a name="IsConstruct" id="cdktn.TerraformStack.isConstruct" />

```csharp theme={null}
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.

#### `X`<sup>Required</sup> <a name="X" id="cdktn.TerraformStack.isConstruct.parameter.x" />

* *Type:* object

Any object.

***

### `IsStack` <a name="IsStack" id="cdktn.TerraformStack.isStack" />

```csharp theme={null}
using Io.Cdktn;

TerraformStack.IsStack(object X);
```

#### `X`<sup>Required</sup> <a name="X" id="cdktn.TerraformStack.isStack.parameter.x" />

* *Type:* object

***

### `Of` <a name="Of" id="cdktn.TerraformStack.of" />

```csharp theme={null}
using Io.Cdktn;

TerraformStack.Of(IConstruct Construct);
```

#### `Construct`<sup>Required</sup> <a name="Construct" id="cdktn.TerraformStack.of.parameter.construct" />

* *Type:* Constructs.IConstruct

***

## Properties <a name="Properties" id="Properties" />

| **Name**                                                                            | **Type**                                                                            | **Description**   |
| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------- |
| <code><a href="#cdktn.TerraformStack.property.node">Node</a></code>                 | <code>Constructs.Node</code>                                                        | The tree node.    |
| <code><a href="#cdktn.TerraformStack.property.dependencies">Dependencies</a></code> | <code><a href="#cdktn.TerraformStack">TerraformStack</a>\[]</code>                  | *No description.* |
| <code><a href="#cdktn.TerraformStack.property.moveTargets">MoveTargets</a></code>   | <code><a href="#cdktn.TerraformResourceTargets">TerraformResourceTargets</a></code> | *No description.* |
| <code><a href="#cdktn.TerraformStack.property.synthesizer">Synthesizer</a></code>   | <code><a href="#cdktn.IStackSynthesizer">IStackSynthesizer</a></code>               | *No description.* |

***

### `Node`<sup>Required</sup> <a name="Node" id="cdktn.TerraformStack.property.node" />

```csharp theme={null}
public Node Node { get; }
```

* *Type:* Constructs.Node

The tree node.

***

### `Dependencies`<sup>Required</sup> <a name="Dependencies" id="cdktn.TerraformStack.property.dependencies" />

```csharp theme={null}
public TerraformStack[] Dependencies { get; }
```

* *Type:* <a href="#cdktn.TerraformStack">TerraformStack</a>\[]

***

### `MoveTargets`<sup>Required</sup> <a name="MoveTargets" id="cdktn.TerraformStack.property.moveTargets" />

```csharp theme={null}
public TerraformResourceTargets MoveTargets { get; }
```

* *Type:* <a href="#cdktn.TerraformResourceTargets">TerraformResourceTargets</a>

***

### `Synthesizer`<sup>Required</sup> <a name="Synthesizer" id="cdktn.TerraformStack.property.synthesizer" />

```csharp theme={null}
public IStackSynthesizer Synthesizer { get; }
```

* *Type:* <a href="#cdktn.IStackSynthesizer">IStackSynthesizer</a>

***
