> ## 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: TerraformHclModule

> CDKTN Core API Reference for TerraformHclModule in CSharp.

## Initializers&#x20;

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

new TerraformHclModule(Construct Scope, string Id, TerraformHclModuleConfig Options);
```

| **Name** | **Type** | **Description** |
| - | - | - |
| `Scope` | `Constructs.Construct` | *No description.* |
| `Id` | `string` | *No description.* |
| `Options` | `TerraformHclModuleConfig` | *No description.* |

***

### `Scope`<sup>Required</sup>&#x20;

* *Type:* Constructs.Construct

***

### `Id`<sup>Required</sup>&#x20;

* *Type:* string

***

### `Options`<sup>Required</sup>&#x20;

* *Type:* [TerraformHclModuleConfig](#cdktn.TerraformHclModuleConfig)

***

## Methods&#x20;

| **Name** | **Description** |
| - | - |
| `ToString` | Returns a string representation of this construct. |
| `With` | Applies one or more mixins to this construct. |
| `AddOverride` | *No description.* |
| `OverrideLogicalId` | Overrides the auto-generated logical ID with a specific ID. |
| `ResetOverrideLogicalId` | Resets a previously passed logical Id to use the auto-generated logical id again. |
| `ToHclTerraform` | *No description.* |
| `ToMetadata` | *No description.* |
| `ToTerraform` | *No description.* |
| `AddProvider` | *No description.* |
| `GetString` | *No description.* |
| `InterpolationForOutput` | *No description.* |
| `Get` | *No description.* |
| `GetBoolean` | *No description.* |
| `GetList` | *No description.* |
| `GetNumber` | *No description.* |
| `Set` | *No description.* |

***

### `ToString`&#x20;

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

Returns a string representation of this construct.

### `With`&#x20;

```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>&#x20;

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

The mixins to apply.

***

### `AddOverride`&#x20;

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

#### `Path`<sup>Required</sup>&#x20;

* *Type:* string

***

#### `Value`<sup>Required</sup>&#x20;

* *Type:* object

***

### `OverrideLogicalId`&#x20;

```csharp theme={null}
private void OverrideLogicalId(string NewLogicalId)
```

Overrides the auto-generated logical ID with a specific ID.

#### `NewLogicalId`<sup>Required</sup>&#x20;

* *Type:* string

The new logical ID to use for this stack element.

***

### `ResetOverrideLogicalId`&#x20;

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

Resets a previously passed logical Id to use the auto-generated logical id again.

### `ToHclTerraform`&#x20;

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

### `ToMetadata`&#x20;

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

### `ToTerraform`&#x20;

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

### `AddProvider`&#x20;

```csharp theme={null}
private void AddProvider(TerraformProvider|TerraformModuleProvider Provider)
```

#### `Provider`<sup>Required</sup>&#x20;

* *Type:* [TerraformProvider](#cdktn.TerraformProvider)|[TerraformModuleProvider](#cdktn.TerraformModuleProvider)

***

### `GetString`&#x20;

```csharp theme={null}
private string GetString(string Output)
```

#### `Output`<sup>Required</sup>&#x20;

* *Type:* string

***

### `InterpolationForOutput`&#x20;

```csharp theme={null}
private IResolvable InterpolationForOutput(string ModuleOutput)
```

#### `ModuleOutput`<sup>Required</sup>&#x20;

* *Type:* string

***

### `Get`&#x20;

```csharp theme={null}
private object Get(string Output)
```

#### `Output`<sup>Required</sup>&#x20;

* *Type:* string

***

### `GetBoolean`&#x20;

```csharp theme={null}
private IResolvable GetBoolean(string Output)
```

#### `Output`<sup>Required</sup>&#x20;

* *Type:* string

***

### `GetList`&#x20;

```csharp theme={null}
private string[] GetList(string Output)
```

#### `Output`<sup>Required</sup>&#x20;

* *Type:* string

***

### `GetNumber`&#x20;

```csharp theme={null}
private double GetNumber(string Output)
```

#### `Output`<sup>Required</sup>&#x20;

* *Type:* string

***

### `Set`&#x20;

```csharp theme={null}
private void Set(string Variable, object Value)
```

#### `Variable`<sup>Required</sup>&#x20;

* *Type:* string

***

#### `Value`<sup>Required</sup>&#x20;

* *Type:* object

***

## Static Functions&#x20;

| **Name** | **Description** |
| - | - |
| `IsConstruct` | Checks if `x` is a construct. |
| `IsTerraformElement` | *No description.* |

***

### `IsConstruct`&#x20;

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

TerraformHclModule.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>&#x20;

* *Type:* object

Any object.

***

### `IsTerraformElement`&#x20;

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

TerraformHclModule.IsTerraformElement(object X);
```

#### `X`<sup>Required</sup>&#x20;

* *Type:* object

***

## Properties&#x20;

| **Name** | **Type** | **Description** |
| - | - | - |
| `Node` | `Constructs.Node` | The tree node. |
| `CdktfStack` | `TerraformStack` | *No description.* |
| `Fqn` | `string` | *No description.* |
| `FriendlyUniqueId` | `string` | *No description.* |
| `Source` | `string` | *No description.* |
| `Providers` | `TerraformProvider\|TerraformModuleProvider[]` | *No description.* |
| `SkipAssetCreationFromLocalModules` | `bool` | *No description.* |
| `Version` | `string` | *No description.* |
| `DependsOn` | `string[]` | *No description.* |
| `ForEach` | `ITerraformIterator` | *No description.* |
| `Variables` | `System.Collections.Generic.IDictionary< string, object >` | *No description.* |

***

### `Node`<sup>Required</sup>&#x20;

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

* *Type:* Constructs.Node

The tree node.

***

### `CdktfStack`<sup>Required</sup>&#x20;

```csharp theme={null}
public TerraformStack CdktfStack { get; }
```

* *Type:* [TerraformStack](#cdktn.TerraformStack)

***

### `Fqn`<sup>Required</sup>&#x20;

```csharp theme={null}
public string Fqn { get; }
```

* *Type:* string

***

### `FriendlyUniqueId`<sup>Required</sup>&#x20;

```csharp theme={null}
public string FriendlyUniqueId { get; }
```

* *Type:* string

***

### `Source`<sup>Required</sup>&#x20;

```csharp theme={null}
public string Source { get; }
```

* *Type:* string

***

### `Providers`<sup>Optional</sup>&#x20;

```csharp theme={null}
public (TerraformProvider|TerraformModuleProvider)[] Providers { get; }
```

* *Type:* [TerraformProvider](#cdktn.TerraformProvider)|[TerraformModuleProvider](#cdktn.TerraformModuleProvider)\[]

***

### `SkipAssetCreationFromLocalModules`<sup>Optional</sup>&#x20;

```csharp theme={null}
public bool SkipAssetCreationFromLocalModules { get; }
```

* *Type:* bool

***

### `Version`<sup>Optional</sup>&#x20;

```csharp theme={null}
public string Version { get; }
```

* *Type:* string

***

### `DependsOn`<sup>Optional</sup>&#x20;

```csharp theme={null}
public string[] DependsOn { get; }
```

* *Type:* string\[]

***

### `ForEach`<sup>Optional</sup>&#x20;

```csharp theme={null}
public ITerraformIterator ForEach { get; }
```

* *Type:* [ITerraformIterator](#cdktn.ITerraformIterator)

***

### `Variables`<sup>Optional</sup>&#x20;

```csharp theme={null}
public System.Collections.Generic.IDictionary<string, object> Variables { get; }
```

* *Type:* System.Collections.Generic.IDictionary\< string, object >

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.