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

> CDKTN Core API Reference for TerraformProvider in Go.

## Initializers&#x20;

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

cdktn.NewTerraformProvider(scope Construct, id *string, config TerraformProviderConfig) TerraformProvider
```

| **Name** | **Type** | **Description** |
| - | - | - |
| `scope` | `github.com/aws/constructs-go/constructs/v10.Construct` | *No description.* |
| `id` | `*string` | *No description.* |
| `config` | `TerraformProviderConfig` | *No description.* |

***

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

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

***

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

* *Type:* \*string

***

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

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

***

## 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` | Adds this resource to the terraform JSON output. |

***

### `ToString`&#x20;

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

Returns a string representation of this construct.

### `With`&#x20;

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

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

The mixins to apply.

***

### `AddOverride`&#x20;

```go theme={null}
func AddOverride(path *string, value interface{})
```

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

* *Type:* \*string

***

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

* *Type:* interface\{}

***

### `OverrideLogicalId`&#x20;

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

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;

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

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

### `ToHclTerraform`&#x20;

```go theme={null}
func ToHclTerraform() interface{}
```

### `ToMetadata`&#x20;

```go theme={null}
func ToMetadata() interface{}
```

### `ToTerraform`&#x20;

```go theme={null}
func ToTerraform() interface{}
```

Adds this resource to the terraform JSON output.

## Static Functions&#x20;

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

***

### `IsConstruct`&#x20;

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

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

* *Type:* interface\{}

Any object.

***

### `IsTerraformElement`&#x20;

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

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

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

* *Type:* interface\{}

***

### `IsTerraformProvider`&#x20;

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

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

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

* *Type:* interface\{}

***

## Properties&#x20;

| **Name** | **Type** | **Description** |
| - | - | - |
| `Node` | `github.com/aws/constructs-go/constructs/v10.Node` | The tree node. |
| `CdktfStack` | `TerraformStack` | *No description.* |
| `Fqn` | `*string` | *No description.* |
| `FriendlyUniqueId` | `*string` | *No description.* |
| `MetaAttributes` | `*map[string]interface{}` | *No description.* |
| `TerraformResourceType` | `*string` | *No description.* |
| `TerraformGeneratorMetadata` | `TerraformProviderGeneratorMetadata` | *No description.* |
| `TerraformProviderSource` | `*string` | *No description.* |
| `Alias` | `*string` | *No description.* |

***

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

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

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

The tree node.

***

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

```go theme={null}
func CdktfStack() TerraformStack
```

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

***

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

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

* *Type:* \*string

***

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

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

* *Type:* \*string

***

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

```go theme={null}
func MetaAttributes() *map[string]interface{}
```

* *Type:* \*map\[string]interface\{}

***

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

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

* *Type:* \*string

***

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

```go theme={null}
func TerraformGeneratorMetadata() TerraformProviderGeneratorMetadata
```

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

***

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

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

* *Type:* \*string

***

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

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

* *Type:* \*string

***


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