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

> CDKTN Core API Reference for TerraformAsset in CSharp.

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

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

new TerraformAsset(Construct Scope, string Id, TerraformAssetConfig Config);
```

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

***

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

* *Type:* Constructs.Construct

***

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

* *Type:* string

***

### `Config`<sup>Required</sup> <a name="Config" id="cdktn.TerraformAsset.Initializer.parameter.config" />

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

***

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

| **Name**                                                           | **Description**                                    |
| ------------------------------------------------------------------ | -------------------------------------------------- |
| <code><a href="#cdktn.TerraformAsset.toString">ToString</a></code> | Returns a string representation of this construct. |
| <code><a href="#cdktn.TerraformAsset.with">With</a></code>         | Applies one or more mixins to this construct.      |

***

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

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

Returns a string representation of this construct.

### `With` <a name="With" id="cdktn.TerraformAsset.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.TerraformAsset.with.parameter.mixins" />

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

The mixins to apply.

***

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

| **Name**                                                                 | **Description**               |
| ------------------------------------------------------------------------ | ----------------------------- |
| <code><a href="#cdktn.TerraformAsset.isConstruct">IsConstruct</a></code> | Checks if `x` is a construct. |

***

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

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

TerraformAsset.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.TerraformAsset.isConstruct.parameter.x" />

* *Type:* object

Any object.

***

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

| **Name**                                                                      | **Type**                                              | **Description**                                                                                                    |
| ----------------------------------------------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| <code><a href="#cdktn.TerraformAsset.property.node">Node</a></code>           | <code>Constructs.Node</code>                          | The tree node.                                                                                                     |
| <code><a href="#cdktn.TerraformAsset.property.fileName">FileName</a></code>   | <code>string</code>                                   | Name of the asset.                                                                                                 |
| <code><a href="#cdktn.TerraformAsset.property.path">Path</a></code>           | <code>string</code>                                   | The path relative to the root of the terraform directory in posix format Use this property to reference the asset. |
| <code><a href="#cdktn.TerraformAsset.property.assetHash">AssetHash</a></code> | <code>string</code>                                   | *No description.*                                                                                                  |
| <code><a href="#cdktn.TerraformAsset.property.type">Type</a></code>           | <code><a href="#cdktn.AssetType">AssetType</a></code> | *No description.*                                                                                                  |

***

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

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

* *Type:* Constructs.Node

The tree node.

***

### `FileName`<sup>Required</sup> <a name="FileName" id="cdktn.TerraformAsset.property.fileName" />

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

* *Type:* string

Name of the asset.

***

### `Path`<sup>Required</sup> <a name="Path" id="cdktn.TerraformAsset.property.path" />

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

* *Type:* string

The path relative to the root of the terraform directory in posix format Use this property to reference the asset.

***

### `AssetHash`<sup>Required</sup> <a name="AssetHash" id="cdktn.TerraformAsset.property.assetHash" />

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

* *Type:* string

***

### `Type`<sup>Required</sup> <a name="Type" id="cdktn.TerraformAsset.property.type" />

```csharp theme={null}
public AssetType Type { get; }
```

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

***
