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

> CDKTN Core API Reference for TerraformOutput in Python.

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

```python theme={null}
import cdktn

cdktn.TerraformOutput(
  scope: Construct,
  id: str,
  value: typing.Any,
  depends_on: typing.List[ITerraformDependable] = None,
  description: str = None,
  precondition: Precondition = None,
  sensitive: bool = None,
  static_id: bool = None
)
```

| **Name**                                                                                          | **Type**                                                                                  | **Description**                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.TerraformOutput.Initializer.parameter.scope">scope</a></code>               | <code>constructs.Construct</code>                                                         | *No description.*                                                                                                                                                 |
| <code><a href="#cdktn.TerraformOutput.Initializer.parameter.id">id</a></code>                     | <code>str</code>                                                                          | *No description.*                                                                                                                                                 |
| <code><a href="#cdktn.TerraformOutput.Initializer.parameter.value">value</a></code>               | <code>typing.Any</code>                                                                   | *No description.*                                                                                                                                                 |
| <code><a href="#cdktn.TerraformOutput.Initializer.parameter.dependsOn">depends\_on</a></code>     | <code>typing.List\[<a href="#cdktn.ITerraformDependable">ITerraformDependable</a>]</code> | *No description.*                                                                                                                                                 |
| <code><a href="#cdktn.TerraformOutput.Initializer.parameter.description">description</a></code>   | <code>str</code>                                                                          | *No description.*                                                                                                                                                 |
| <code><a href="#cdktn.TerraformOutput.Initializer.parameter.precondition">precondition</a></code> | <code><a href="#cdktn.Precondition">Precondition</a></code>                               | *No description.*                                                                                                                                                 |
| <code><a href="#cdktn.TerraformOutput.Initializer.parameter.sensitive">sensitive</a></code>       | <code>bool</code>                                                                         | *No description.*                                                                                                                                                 |
| <code><a href="#cdktn.TerraformOutput.Initializer.parameter.staticId">static\_id</a></code>       | <code>bool</code>                                                                         | If set to true the synthesized Terraform Output will be named after the `id` passed to the constructor instead of the default (TerraformOutput.friendlyUniqueId). |

***

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

* *Type:* constructs.Construct

***

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

* *Type:* str

***

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

* *Type:* typing.Any

***

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

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

***

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

* *Type:* str

***

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

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

***

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

* *Type:* bool

***

### `static_id`<sup>Optional</sup> <a name="static_id" id="cdktn.TerraformOutput.Initializer.parameter.staticId" />

* *Type:* bool
* *Default:* false

If set to true the synthesized Terraform Output will be named after the `id` passed to the constructor instead of the default (TerraformOutput.friendlyUniqueId).

***

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

| **Name**                                                                                              | **Description**                                                                   |
| ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| <code><a href="#cdktn.TerraformOutput.toString">to\_string</a></code>                                 | Returns a string representation of this construct.                                |
| <code><a href="#cdktn.TerraformOutput.with">with</a></code>                                           | Applies one or more mixins to this construct.                                     |
| <code><a href="#cdktn.TerraformOutput.addOverride">add\_override</a></code>                           | *No description.*                                                                 |
| <code><a href="#cdktn.TerraformOutput.overrideLogicalId">override\_logical\_id</a></code>             | Overrides the auto-generated logical ID with a specific ID.                       |
| <code><a href="#cdktn.TerraformOutput.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.TerraformOutput.toHclTerraform">to\_hcl\_terraform</a></code>                   | *No description.*                                                                 |
| <code><a href="#cdktn.TerraformOutput.toMetadata">to\_metadata</a></code>                             | *No description.*                                                                 |
| <code><a href="#cdktn.TerraformOutput.toTerraform">to\_terraform</a></code>                           | *No description.*                                                                 |

***

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

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

Returns a string representation of this construct.

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

* *Type:* \*constructs.IMixin

The mixins to apply.

***

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

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

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

* *Type:* str

***

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

* *Type:* typing.Any

***

### `override_logical_id` <a name="override_logical_id" id="cdktn.TerraformOutput.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.TerraformOutput.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.TerraformOutput.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.TerraformOutput.toHclTerraform" />

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

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

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

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

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

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

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

***

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

```python theme={null}
import cdktn

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

* *Type:* typing.Any

Any object.

***

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

```python theme={null}
import cdktn

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

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

* *Type:* typing.Any

***

### `is_terraform_output` <a name="is_terraform_output" id="cdktn.TerraformOutput.isTerraformOutput" />

```python theme={null}
import cdktn

cdktn.TerraformOutput.is_terraform_output(
  x: typing.Any
)
```

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

* *Type:* typing.Any

***

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

| **Name**                                                                                         | **Type**                                                                                  | **Description**   |
| ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------- | ----------------- |
| <code><a href="#cdktn.TerraformOutput.property.node">node</a></code>                             | <code>constructs.Node</code>                                                              | The tree node.    |
| <code><a href="#cdktn.TerraformOutput.property.cdktfStack">cdktf\_stack</a></code>               | <code><a href="#cdktn.TerraformStack">TerraformStack</a></code>                           | *No description.* |
| <code><a href="#cdktn.TerraformOutput.property.fqn">fqn</a></code>                               | <code>str</code>                                                                          | *No description.* |
| <code><a href="#cdktn.TerraformOutput.property.friendlyUniqueId">friendly\_unique\_id</a></code> | <code>str</code>                                                                          | *No description.* |
| <code><a href="#cdktn.TerraformOutput.property.staticId">static\_id</a></code>                   | <code>bool</code>                                                                         | *No description.* |
| <code><a href="#cdktn.TerraformOutput.property.value">value</a></code>                           | <code>typing.Any</code>                                                                   | *No description.* |
| <code><a href="#cdktn.TerraformOutput.property.dependsOn">depends\_on</a></code>                 | <code>typing.List\[<a href="#cdktn.ITerraformDependable">ITerraformDependable</a>]</code> | *No description.* |
| <code><a href="#cdktn.TerraformOutput.property.description">description</a></code>               | <code>str</code>                                                                          | *No description.* |
| <code><a href="#cdktn.TerraformOutput.property.precondition">precondition</a></code>             | <code><a href="#cdktn.Precondition">Precondition</a></code>                               | *No description.* |
| <code><a href="#cdktn.TerraformOutput.property.sensitive">sensitive</a></code>                   | <code>bool</code>                                                                         | *No description.* |

***

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

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

* *Type:* constructs.Node

The tree node.

***

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

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

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

***

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

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

* *Type:* str

***

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

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

* *Type:* str

***

### `static_id`<sup>Required</sup> <a name="static_id" id="cdktn.TerraformOutput.property.staticId" />

```python theme={null}
static_id: bool
```

* *Type:* bool

***

### `value`<sup>Required</sup> <a name="value" id="cdktn.TerraformOutput.property.value" />

```python theme={null}
value: typing.Any
```

* *Type:* typing.Any

***

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

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

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

***

### `description`<sup>Optional</sup> <a name="description" id="cdktn.TerraformOutput.property.description" />

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

* *Type:* str

***

### `precondition`<sup>Optional</sup> <a name="precondition" id="cdktn.TerraformOutput.property.precondition" />

```python theme={null}
precondition: Precondition
```

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

***

### `sensitive`<sup>Optional</sup> <a name="sensitive" id="cdktn.TerraformOutput.property.sensitive" />

```python theme={null}
sensitive: bool
```

* *Type:* bool

***
