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

# Go: TerraformAsset

> CDKTN Core API Reference for TerraformAsset in Go.

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

```go theme={null}
import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.NewTerraformAsset(scope Construct, id *string, config TerraformAssetConfig) TerraformAsset
```

| **Name**                                                                             | **Type**                                                                    | **Description**   |
| ------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- | ----------------- |
| <code><a href="#cdktn.TerraformAsset.Initializer.parameter.scope">scope</a></code>   | <code>github.com/aws/constructs-go/constructs/v10.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:* github.com/aws/constructs-go/constructs/v10.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" />

```go theme={null}
func ToString() *string
```

Returns a string representation of this construct.

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

```go theme={null}
func With(mixins ...IMixin) IConstruct
```

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:* ...github.com/aws/constructs-go/constructs/v10.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" />

```go theme={null}
import "github.com/open-constructs/cdk-terrain-go/cdktn"

cdktn.TerraformAsset_IsConstruct(x interface{}) *bool
```

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:* interface\{}

Any object.

***

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

| **Name**                                                                      | **Type**                                                      | **Description**                                                                                                    |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| <code><a href="#cdktn.TerraformAsset.property.node">Node</a></code>           | <code>github.com/aws/constructs-go/constructs/v10.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" />

```go theme={null}
func Node() Node
```

* *Type:* github.com/aws/constructs-go/constructs/v10.Node

The tree node.

***

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

```go theme={null}
func FileName() *string
```

* *Type:* \*string

Name of the asset.

***

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

```go theme={null}
func Path() *string
```

* *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" />

```go theme={null}
func AssetHash() *string
```

* *Type:* \*string

***

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

```go theme={null}
func Type() AssetType
```

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

***
