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

# Python: TerraformResource

> CDKTN Core API Reference for TerraformResource in Python.

* *Implements:* <a href="#cdktn.ITerraformResource">ITerraformResource</a>, <a href="#cdktn.ITerraformDependable">ITerraformDependable</a>, <a href="#cdktn.IInterpolatingParent">IInterpolatingParent</a>

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

```python theme={null}
import cdktn

cdktn.TerraformResource(
  scope: Construct,
  id: str,
  connection: SSHProvisionerConnection | WinrmProvisionerConnection = None,
  count: typing.Union[int, float] | TerraformCount = None,
  depends_on: typing.List[ITerraformDependable] = None,
  for_each: ITerraformIterator = None,
  lifecycle: TerraformResourceLifecycle = None,
  provider: TerraformProvider = None,
  provisioners: typing.List[FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner] = None,
  terraform_resource_type: str,
  terraform_generator_metadata: TerraformProviderGeneratorMetadata = None
)
```

| **Name**                                                                                                                            | **Type**                                                                                                                                                                                                              | **Description**   |
| ----------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.scope">scope</a></code>                                               | <code>constructs.Construct</code>                                                                                                                                                                                     | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.id">id</a></code>                                                     | <code>str</code>                                                                                                                                                                                                      | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.connection">connection</a></code>                                     | <code><a href="#cdktn.SSHProvisionerConnection">SSHProvisionerConnection</a> \| <a href="#cdktn.WinrmProvisionerConnection">WinrmProvisionerConnection</a></code>                                                     | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.count">count</a></code>                                               | <code>typing.Union\[int, float] \| <a href="#cdktn.TerraformCount">TerraformCount</a></code>                                                                                                                          | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.dependsOn">depends\_on</a></code>                                     | <code>typing.List\[<a href="#cdktn.ITerraformDependable">ITerraformDependable</a>]</code>                                                                                                                             | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.forEach">for\_each</a></code>                                         | <code><a href="#cdktn.ITerraformIterator">ITerraformIterator</a></code>                                                                                                                                               | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.lifecycle">lifecycle</a></code>                                       | <code><a href="#cdktn.TerraformResourceLifecycle">TerraformResourceLifecycle</a></code>                                                                                                                               | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.provider">provider</a></code>                                         | <code><a href="#cdktn.TerraformProvider">TerraformProvider</a></code>                                                                                                                                                 | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.provisioners">provisioners</a></code>                                 | <code>typing.List\[<a href="#cdktn.FileProvisioner">FileProvisioner</a> \| <a href="#cdktn.LocalExecProvisioner">LocalExecProvisioner</a> \| <a href="#cdktn.RemoteExecProvisioner">RemoteExecProvisioner</a>]</code> | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.terraformResourceType">terraform\_resource\_type</a></code>           | <code>str</code>                                                                                                                                                                                                      | *No description.* |
| <code><a href="#cdktn.TerraformResource.Initializer.parameter.terraformGeneratorMetadata">terraform\_generator\_metadata</a></code> | <code><a href="#cdktn.TerraformProviderGeneratorMetadata">TerraformProviderGeneratorMetadata</a></code>                                                                                                               | *No description.* |

***

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

* *Type:* constructs.Construct

***

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

* *Type:* str

***

### `connection`<sup>Optional</sup> <a name="connection" id="cdktn.TerraformResource.Initializer.parameter.connection" />

* *Type:* <a href="#cdktn.SSHProvisionerConnection">SSHProvisionerConnection</a> | <a href="#cdktn.WinrmProvisionerConnection">WinrmProvisionerConnection</a>

***

### `count`<sup>Optional</sup> <a name="count" id="cdktn.TerraformResource.Initializer.parameter.count" />

* *Type:* typing.Union\[int, float] | <a href="#cdktn.TerraformCount">TerraformCount</a>

***

### `depends_on`<sup>Optional</sup> <a name="depends_on" id="cdktn.TerraformResource.Initializer.parameter.dependsOn" />

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

***

### `for_each`<sup>Optional</sup> <a name="for_each" id="cdktn.TerraformResource.Initializer.parameter.forEach" />

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

***

### `lifecycle`<sup>Optional</sup> <a name="lifecycle" id="cdktn.TerraformResource.Initializer.parameter.lifecycle" />

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

***

### `provider`<sup>Optional</sup> <a name="provider" id="cdktn.TerraformResource.Initializer.parameter.provider" />

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

***

### `provisioners`<sup>Optional</sup> <a name="provisioners" id="cdktn.TerraformResource.Initializer.parameter.provisioners" />

* *Type:* typing.List\[<a href="#cdktn.FileProvisioner">FileProvisioner</a> | <a href="#cdktn.LocalExecProvisioner">LocalExecProvisioner</a> | <a href="#cdktn.RemoteExecProvisioner">RemoteExecProvisioner</a>]

***

### `terraform_resource_type`<sup>Required</sup> <a name="terraform_resource_type" id="cdktn.TerraformResource.Initializer.parameter.terraformResourceType" />

* *Type:* str

***

### `terraform_generator_metadata`<sup>Optional</sup> <a name="terraform_generator_metadata" id="cdktn.TerraformResource.Initializer.parameter.terraformGeneratorMetadata" />

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

***

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

| **Name**                                                                                                    | **Description**                                                                                                                     |
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.TerraformResource.toString">to\_string</a></code>                                     | Returns a string representation of this construct.                                                                                  |
| <code><a href="#cdktn.TerraformResource.with">with</a></code>                                               | Applies one or more mixins to this construct.                                                                                       |
| <code><a href="#cdktn.TerraformResource.addOverride">add\_override</a></code>                               | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.overrideLogicalId">override\_logical\_id</a></code>                 | Overrides the auto-generated logical ID with a specific ID.                                                                         |
| <code><a href="#cdktn.TerraformResource.resetOverrideLogicalId">reset\_override\_logical\_id</a></code>     | Resets a previously passed logical Id to use the auto-generated logical id again.                                                   |
| <code><a href="#cdktn.TerraformResource.toHclTerraform">to\_hcl\_terraform</a></code>                       | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.toMetadata">to\_metadata</a></code>                                 | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.toTerraform">to\_terraform</a></code>                               | Adds this resource to the terraform JSON output.                                                                                    |
| <code><a href="#cdktn.TerraformResource.addMoveTarget">add\_move\_target</a></code>                         | Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. |
| <code><a href="#cdktn.TerraformResource.getAnyMapAttribute">get\_any\_map\_attribute</a></code>             | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.getBooleanAttribute">get\_boolean\_attribute</a></code>             | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.getBooleanMapAttribute">get\_boolean\_map\_attribute</a></code>     | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.getListAttribute">get\_list\_attribute</a></code>                   | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.getNumberAttribute">get\_number\_attribute</a></code>               | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.getNumberListAttribute">get\_number\_list\_attribute</a></code>     | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.getNumberMapAttribute">get\_number\_map\_attribute</a></code>       | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.getStringAttribute">get\_string\_attribute</a></code>               | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.getStringMapAttribute">get\_string\_map\_attribute</a></code>       | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.hasResourceMove">has\_resource\_move</a></code>                     | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.importFrom">import\_from</a></code>                                 | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.interpolationForAttribute">interpolation\_for\_attribute</a></code> | *No description.*                                                                                                                   |
| <code><a href="#cdktn.TerraformResource.moveFromId">move\_from\_id</a></code>                               | Move the resource corresponding to "id" to this resource.                                                                           |
| <code><a href="#cdktn.TerraformResource.moveTo">move\_to</a></code>                                         | Moves this resource to the target resource given by moveTarget.                                                                     |
| <code><a href="#cdktn.TerraformResource.moveToId">move\_to\_id</a></code>                                   | Moves this resource to the resource corresponding to "id".                                                                          |

***

### `to_string` <a name="to_string" id="cdktn.TerraformResource.toString" />

```python theme={null}
def to_string() -> str
```

Returns a string representation of this construct.

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

```python theme={null}
def 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.TerraformResource.with.parameter.mixins" />

* *Type:* \*constructs.IMixin

The mixins to apply.

***

### `add_override` <a name="add_override" id="cdktn.TerraformResource.addOverride" />

```python theme={null}
def add_override(
  path: str,
  value: typing.Any
) -> None
```

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

* *Type:* str

***

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

* *Type:* typing.Any

***

### `override_logical_id` <a name="override_logical_id" id="cdktn.TerraformResource.overrideLogicalId" />

```python theme={null}
def override_logical_id(
  new_logical_id: str
) -> None
```

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

#### `new_logical_id`<sup>Required</sup> <a name="new_logical_id" id="cdktn.TerraformResource.overrideLogicalId.parameter.newLogicalId" />

* *Type:* str

The new logical ID to use for this stack element.

***

### `reset_override_logical_id` <a name="reset_override_logical_id" id="cdktn.TerraformResource.resetOverrideLogicalId" />

```python theme={null}
def reset_override_logical_id() -> None
```

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

### `to_hcl_terraform` <a name="to_hcl_terraform" id="cdktn.TerraformResource.toHclTerraform" />

```python theme={null}
def to_hcl_terraform() -> typing.Any
```

### `to_metadata` <a name="to_metadata" id="cdktn.TerraformResource.toMetadata" />

```python theme={null}
def to_metadata() -> typing.Any
```

### `to_terraform` <a name="to_terraform" id="cdktn.TerraformResource.toTerraform" />

```python theme={null}
def to_terraform() -> typing.Any
```

Adds this resource to the terraform JSON output.

### `add_move_target` <a name="add_move_target" id="cdktn.TerraformResource.addMoveTarget" />

```python theme={null}
def add_move_target(
  move_target: str
) -> None
```

Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move.

#### `move_target`<sup>Required</sup> <a name="move_target" id="cdktn.TerraformResource.addMoveTarget.parameter.moveTarget" />

* *Type:* str

The string move target that will correspond to this resource.

***

### `get_any_map_attribute` <a name="get_any_map_attribute" id="cdktn.TerraformResource.getAnyMapAttribute" />

```python theme={null}
def get_any_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Any]
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.getAnyMapAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `get_boolean_attribute` <a name="get_boolean_attribute" id="cdktn.TerraformResource.getBooleanAttribute" />

```python theme={null}
def get_boolean_attribute(
  terraform_attribute: str
) -> IResolvable
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.getBooleanAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `get_boolean_map_attribute` <a name="get_boolean_map_attribute" id="cdktn.TerraformResource.getBooleanMapAttribute" />

```python theme={null}
def get_boolean_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[bool]
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.getBooleanMapAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `get_list_attribute` <a name="get_list_attribute" id="cdktn.TerraformResource.getListAttribute" />

```python theme={null}
def get_list_attribute(
  terraform_attribute: str
) -> typing.List[str]
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.getListAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `get_number_attribute` <a name="get_number_attribute" id="cdktn.TerraformResource.getNumberAttribute" />

```python theme={null}
def get_number_attribute(
  terraform_attribute: str
) -> typing.Union[int, float]
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.getNumberAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `get_number_list_attribute` <a name="get_number_list_attribute" id="cdktn.TerraformResource.getNumberListAttribute" />

```python theme={null}
def get_number_list_attribute(
  terraform_attribute: str
) -> typing.List[typing.Union[int, float]]
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.getNumberListAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `get_number_map_attribute` <a name="get_number_map_attribute" id="cdktn.TerraformResource.getNumberMapAttribute" />

```python theme={null}
def get_number_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[typing.Union[int, float]]
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.getNumberMapAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `get_string_attribute` <a name="get_string_attribute" id="cdktn.TerraformResource.getStringAttribute" />

```python theme={null}
def get_string_attribute(
  terraform_attribute: str
) -> str
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.getStringAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `get_string_map_attribute` <a name="get_string_map_attribute" id="cdktn.TerraformResource.getStringMapAttribute" />

```python theme={null}
def get_string_map_attribute(
  terraform_attribute: str
) -> typing.Mapping[str]
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.getStringMapAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `has_resource_move` <a name="has_resource_move" id="cdktn.TerraformResource.hasResourceMove" />

```python theme={null}
def has_resource_move() -> TerraformResourceMoveByTarget | TerraformResourceMoveById
```

### `import_from` <a name="import_from" id="cdktn.TerraformResource.importFrom" />

```python theme={null}
def import_from(
  id: str,
  provider: TerraformProvider = None
) -> None
```

#### `id`<sup>Required</sup> <a name="id" id="cdktn.TerraformResource.importFrom.parameter.id" />

* *Type:* str

***

#### `provider`<sup>Optional</sup> <a name="provider" id="cdktn.TerraformResource.importFrom.parameter.provider" />

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

***

### `interpolation_for_attribute` <a name="interpolation_for_attribute" id="cdktn.TerraformResource.interpolationForAttribute" />

```python theme={null}
def interpolation_for_attribute(
  terraform_attribute: str
) -> IResolvable
```

#### `terraform_attribute`<sup>Required</sup> <a name="terraform_attribute" id="cdktn.TerraformResource.interpolationForAttribute.parameter.terraformAttribute" />

* *Type:* str

***

### `move_from_id` <a name="move_from_id" id="cdktn.TerraformResource.moveFromId" />

```python theme={null}
def move_from_id(
  id: str
) -> None
```

Move the resource corresponding to "id" to this resource.

Note that the resource being moved from must be marked as moved using it's instance function.

#### `id`<sup>Required</sup> <a name="id" id="cdktn.TerraformResource.moveFromId.parameter.id" />

* *Type:* str

Full id of resource being moved from, e.g. "aws\_s3\_bucket.example".

***

### `move_to` <a name="move_to" id="cdktn.TerraformResource.moveTo" />

```python theme={null}
def move_to(
  move_target: str,
  index: str | typing.Union[int, float] = None
) -> None
```

Moves this resource to the target resource given by moveTarget.

#### `move_target`<sup>Required</sup> <a name="move_target" id="cdktn.TerraformResource.moveTo.parameter.moveTarget" />

* *Type:* str

The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to.

***

#### `index`<sup>Optional</sup> <a name="index" id="cdktn.TerraformResource.moveTo.parameter.index" />

* *Type:* str | typing.Union\[int, float]

Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to.

***

### `move_to_id` <a name="move_to_id" id="cdktn.TerraformResource.moveToId" />

```python theme={null}
def move_to_id(
  id: str
) -> None
```

Moves this resource to the resource corresponding to "id".

#### `id`<sup>Required</sup> <a name="id" id="cdktn.TerraformResource.moveToId.parameter.id" />

* *Type:* str

Full id of resource to move to, e.g. "aws\_s3\_bucket.example".

***

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

| **Name**                                                                                        | **Description**               |
| ----------------------------------------------------------------------------------------------- | ----------------------------- |
| <code><a href="#cdktn.TerraformResource.isConstruct">is\_construct</a></code>                   | Checks if `x` is a construct. |
| <code><a href="#cdktn.TerraformResource.isTerraformElement">is\_terraform\_element</a></code>   | *No description.*             |
| <code><a href="#cdktn.TerraformResource.isTerraformResource">is\_terraform\_resource</a></code> | *No description.*             |

***

### `is_construct` <a name="is_construct" id="cdktn.TerraformResource.isConstruct" />

```python theme={null}
import cdktn

cdktn.TerraformResource.is_construct(
  x: typing.Any
)
```

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

* *Type:* typing.Any

Any object.

***

### `is_terraform_element` <a name="is_terraform_element" id="cdktn.TerraformResource.isTerraformElement" />

```python theme={null}
import cdktn

cdktn.TerraformResource.is_terraform_element(
  x: typing.Any
)
```

#### `x`<sup>Required</sup> <a name="x" id="cdktn.TerraformResource.isTerraformElement.parameter.x" />

* *Type:* typing.Any

***

### `is_terraform_resource` <a name="is_terraform_resource" id="cdktn.TerraformResource.isTerraformResource" />

```python theme={null}
import cdktn

cdktn.TerraformResource.is_terraform_resource(
  x: typing.Any
)
```

#### `x`<sup>Required</sup> <a name="x" id="cdktn.TerraformResource.isTerraformResource.parameter.x" />

* *Type:* typing.Any

***

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

| **Name**                                                                                                               | **Type**                                                                                                                                                                                                              | **Description**   |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- |
| <code><a href="#cdktn.TerraformResource.property.node">node</a></code>                                                 | <code>constructs.Node</code>                                                                                                                                                                                          | The tree node.    |
| <code><a href="#cdktn.TerraformResource.property.cdktfStack">cdktf\_stack</a></code>                                   | <code><a href="#cdktn.TerraformStack">TerraformStack</a></code>                                                                                                                                                       | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.fqn">fqn</a></code>                                                   | <code>str</code>                                                                                                                                                                                                      | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.friendlyUniqueId">friendly\_unique\_id</a></code>                     | <code>str</code>                                                                                                                                                                                                      | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.terraformMetaArguments">terraform\_meta\_arguments</a></code>         | <code>typing.Mapping\[typing.Any]</code>                                                                                                                                                                              | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.terraformResourceType">terraform\_resource\_type</a></code>           | <code>str</code>                                                                                                                                                                                                      | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.terraformGeneratorMetadata">terraform\_generator\_metadata</a></code> | <code><a href="#cdktn.TerraformProviderGeneratorMetadata">TerraformProviderGeneratorMetadata</a></code>                                                                                                               | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.connection">connection</a></code>                                     | <code><a href="#cdktn.SSHProvisionerConnection">SSHProvisionerConnection</a> \| <a href="#cdktn.WinrmProvisionerConnection">WinrmProvisionerConnection</a></code>                                                     | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.count">count</a></code>                                               | <code>typing.Union\[int, float] \| <a href="#cdktn.TerraformCount">TerraformCount</a></code>                                                                                                                          | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.dependsOn">depends\_on</a></code>                                     | <code>typing.List\[str]</code>                                                                                                                                                                                        | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.forEach">for\_each</a></code>                                         | <code><a href="#cdktn.ITerraformIterator">ITerraformIterator</a></code>                                                                                                                                               | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.lifecycle">lifecycle</a></code>                                       | <code><a href="#cdktn.TerraformResourceLifecycle">TerraformResourceLifecycle</a></code>                                                                                                                               | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.provider">provider</a></code>                                         | <code><a href="#cdktn.TerraformProvider">TerraformProvider</a></code>                                                                                                                                                 | *No description.* |
| <code><a href="#cdktn.TerraformResource.property.provisioners">provisioners</a></code>                                 | <code>typing.List\[<a href="#cdktn.FileProvisioner">FileProvisioner</a> \| <a href="#cdktn.LocalExecProvisioner">LocalExecProvisioner</a> \| <a href="#cdktn.RemoteExecProvisioner">RemoteExecProvisioner</a>]</code> | *No description.* |

***

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

```python theme={null}
node: Node
```

* *Type:* constructs.Node

The tree node.

***

### `cdktf_stack`<sup>Required</sup> <a name="cdktf_stack" id="cdktn.TerraformResource.property.cdktfStack" />

```python theme={null}
cdktf_stack: TerraformStack
```

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

***

### `fqn`<sup>Required</sup> <a name="fqn" id="cdktn.TerraformResource.property.fqn" />

```python theme={null}
fqn: str
```

* *Type:* str

***

### `friendly_unique_id`<sup>Required</sup> <a name="friendly_unique_id" id="cdktn.TerraformResource.property.friendlyUniqueId" />

```python theme={null}
friendly_unique_id: str
```

* *Type:* str

***

### `terraform_meta_arguments`<sup>Required</sup> <a name="terraform_meta_arguments" id="cdktn.TerraformResource.property.terraformMetaArguments" />

```python theme={null}
terraform_meta_arguments: typing.Mapping[typing.Any]
```

* *Type:* typing.Mapping\[typing.Any]

***

### `terraform_resource_type`<sup>Required</sup> <a name="terraform_resource_type" id="cdktn.TerraformResource.property.terraformResourceType" />

```python theme={null}
terraform_resource_type: str
```

* *Type:* str

***

### `terraform_generator_metadata`<sup>Optional</sup> <a name="terraform_generator_metadata" id="cdktn.TerraformResource.property.terraformGeneratorMetadata" />

```python theme={null}
terraform_generator_metadata: TerraformProviderGeneratorMetadata
```

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

***

### `connection`<sup>Optional</sup> <a name="connection" id="cdktn.TerraformResource.property.connection" />

```python theme={null}
connection: SSHProvisionerConnection | WinrmProvisionerConnection
```

* *Type:* <a href="#cdktn.SSHProvisionerConnection">SSHProvisionerConnection</a> | <a href="#cdktn.WinrmProvisionerConnection">WinrmProvisionerConnection</a>

***

### `count`<sup>Optional</sup> <a name="count" id="cdktn.TerraformResource.property.count" />

```python theme={null}
count: typing.Union[int, float] | TerraformCount
```

* *Type:* typing.Union\[int, float] | <a href="#cdktn.TerraformCount">TerraformCount</a>

***

### `depends_on`<sup>Optional</sup> <a name="depends_on" id="cdktn.TerraformResource.property.dependsOn" />

```python theme={null}
depends_on: typing.List[str]
```

* *Type:* typing.List\[str]

***

### `for_each`<sup>Optional</sup> <a name="for_each" id="cdktn.TerraformResource.property.forEach" />

```python theme={null}
for_each: ITerraformIterator
```

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

***

### `lifecycle`<sup>Optional</sup> <a name="lifecycle" id="cdktn.TerraformResource.property.lifecycle" />

```python theme={null}
lifecycle: TerraformResourceLifecycle
```

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

***

### `provider`<sup>Optional</sup> <a name="provider" id="cdktn.TerraformResource.property.provider" />

```python theme={null}
provider: TerraformProvider
```

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

***

### `provisioners`<sup>Optional</sup> <a name="provisioners" id="cdktn.TerraformResource.property.provisioners" />

```python theme={null}
provisioners: typing.List[FileProvisioner | LocalExecProvisioner | RemoteExecProvisioner]
```

* *Type:* typing.List\[<a href="#cdktn.FileProvisioner">FileProvisioner</a> | <a href="#cdktn.LocalExecProvisioner">LocalExecProvisioner</a> | <a href="#cdktn.RemoteExecProvisioner">RemoteExecProvisioner</a>]

***
