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

> CDKTN Core API Reference for DataTerraformRemoteStatePg in Python.

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

```python theme={null}
import cdktn

cdktn.DataTerraformRemoteStatePg(
  scope: Construct,
  id: str,
  defaults: typing.Mapping[typing.Any] = None,
  workspace: str = None,
  conn_str: str,
  schema_name: str = None,
  skip_index_creation: bool = None,
  skip_schema_creation: bool = None,
  skip_table_creation: bool = None
)
```

| **Name**                                                                                                                     | **Type**                                 | **Description**                                                                         |
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- | --------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.Initializer.parameter.scope">scope</a></code>                               | <code>constructs.Construct</code>        | *No description.*                                                                       |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.Initializer.parameter.id">id</a></code>                                     | <code>str</code>                         | *No description.*                                                                       |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.Initializer.parameter.defaults">defaults</a></code>                         | <code>typing.Mapping\[typing.Any]</code> | *No description.*                                                                       |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.Initializer.parameter.workspace">workspace</a></code>                       | <code>str</code>                         | *No description.*                                                                       |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.Initializer.parameter.connStr">conn\_str</a></code>                         | <code>str</code>                         | Postgres connection string;                                                             |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.Initializer.parameter.schemaName">schema\_name</a></code>                   | <code>str</code>                         | Name of the automatically-managed Postgres schema, default to terraform\_remote\_state. |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.Initializer.parameter.skipIndexCreation">skip\_index\_creation</a></code>   | <code>bool</code>                        | If set to true, the Postgres index must already exist.                                  |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.Initializer.parameter.skipSchemaCreation">skip\_schema\_creation</a></code> | <code>bool</code>                        | If set to true, the Postgres schema must already exist.                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.Initializer.parameter.skipTableCreation">skip\_table\_creation</a></code>   | <code>bool</code>                        | If set to true, the Postgres table must already exist.                                  |

***

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

* *Type:* constructs.Construct

***

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

* *Type:* str

***

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

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

***

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

* *Type:* str

***

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

* *Type:* str

Postgres connection string;

a postgres\:// URL.
The PG\_CONN\_STR and standard libpq environment variables can also be used to indicate how to connect to the PostgreSQL database.

***

### `schema_name`<sup>Optional</sup> <a name="schema_name" id="cdktn.DataTerraformRemoteStatePg.Initializer.parameter.schemaName" />

* *Type:* str

Name of the automatically-managed Postgres schema, default to terraform\_remote\_state.

Can also be set using the PG\_SCHEMA\_NAME environment variable.

***

### `skip_index_creation`<sup>Optional</sup> <a name="skip_index_creation" id="cdktn.DataTerraformRemoteStatePg.Initializer.parameter.skipIndexCreation" />

* *Type:* bool

If set to true, the Postgres index must already exist.

Can also be set using the PG\_SKIP\_INDEX\_CREATION environment variable.
Terraform won't try to create the index, this is useful when it has already been created by a database administrator.

***

### `skip_schema_creation`<sup>Optional</sup> <a name="skip_schema_creation" id="cdktn.DataTerraformRemoteStatePg.Initializer.parameter.skipSchemaCreation" />

* *Type:* bool

If set to true, the Postgres schema must already exist.

Can also be set using the PG\_SKIP\_SCHEMA\_CREATION environment variable.
Terraform won't try to create the schema, this is useful when it has already been created by a database administrator.

***

### `skip_table_creation`<sup>Optional</sup> <a name="skip_table_creation" id="cdktn.DataTerraformRemoteStatePg.Initializer.parameter.skipTableCreation" />

* *Type:* bool

If set to true, the Postgres table must already exist.

Can also be set using the PG\_SKIP\_TABLE\_CREATION environment variable.
Terraform won't try to create the table, this is useful when it has already been created by a database administrator.

***

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

| **Name**                                                                                                         | **Description**                                                                   |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.toString">to\_string</a></code>                                 | Returns a string representation of this construct.                                |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.with">with</a></code>                                           | Applies one or more mixins to this construct.                                     |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.addOverride">add\_override</a></code>                           | *No description.*                                                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.overrideLogicalId">override\_logical\_id</a></code>             | Overrides the auto-generated logical ID with a specific ID.                       |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.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.DataTerraformRemoteStatePg.toHclTerraform">to\_hcl\_terraform</a></code>                   | Adds this resource to the terraform JSON output.                                  |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.toMetadata">to\_metadata</a></code>                             | *No description.*                                                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.toTerraform">to\_terraform</a></code>                           | Adds this resource to the terraform JSON output.                                  |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.get">get</a></code>                                             | *No description.*                                                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.getBoolean">get\_boolean</a></code>                             | *No description.*                                                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.getList">get\_list</a></code>                                   | *No description.*                                                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.getNumber">get\_number</a></code>                               | *No description.*                                                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.getString">get\_string</a></code>                               | *No description.*                                                                 |

***

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

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

Returns a string representation of this construct.

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

* *Type:* \*constructs.IMixin

The mixins to apply.

***

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

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

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

* *Type:* str

***

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

* *Type:* typing.Any

***

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

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

Adds this resource to the terraform JSON output.

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

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

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

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

Adds this resource to the terraform JSON output.

### `get` <a name="get" id="cdktn.DataTerraformRemoteStatePg.get" />

```python theme={null}
def get(
  output: str
) -> IResolvable
```

#### `output`<sup>Required</sup> <a name="output" id="cdktn.DataTerraformRemoteStatePg.get.parameter.output" />

* *Type:* str

***

### `get_boolean` <a name="get_boolean" id="cdktn.DataTerraformRemoteStatePg.getBoolean" />

```python theme={null}
def get_boolean(
  output: str
) -> IResolvable
```

#### `output`<sup>Required</sup> <a name="output" id="cdktn.DataTerraformRemoteStatePg.getBoolean.parameter.output" />

* *Type:* str

***

### `get_list` <a name="get_list" id="cdktn.DataTerraformRemoteStatePg.getList" />

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

#### `output`<sup>Required</sup> <a name="output" id="cdktn.DataTerraformRemoteStatePg.getList.parameter.output" />

* *Type:* str

***

### `get_number` <a name="get_number" id="cdktn.DataTerraformRemoteStatePg.getNumber" />

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

#### `output`<sup>Required</sup> <a name="output" id="cdktn.DataTerraformRemoteStatePg.getNumber.parameter.output" />

* *Type:* str

***

### `get_string` <a name="get_string" id="cdktn.DataTerraformRemoteStatePg.getString" />

```python theme={null}
def get_string(
  output: str
) -> str
```

#### `output`<sup>Required</sup> <a name="output" id="cdktn.DataTerraformRemoteStatePg.getString.parameter.output" />

* *Type:* str

***

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

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

***

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

```python theme={null}
import cdktn

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

* *Type:* typing.Any

Any object.

***

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

```python theme={null}
import cdktn

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

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

* *Type:* typing.Any

***

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

| **Name**                                                                                                    | **Type**                                                        | **Description**   |
| ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | ----------------- |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.property.node">node</a></code>                             | <code>constructs.Node</code>                                    | The tree node.    |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.property.cdktfStack">cdktf\_stack</a></code>               | <code><a href="#cdktn.TerraformStack">TerraformStack</a></code> | *No description.* |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.property.fqn">fqn</a></code>                               | <code>str</code>                                                | *No description.* |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.property.friendlyUniqueId">friendly\_unique\_id</a></code> | <code>str</code>                                                | *No description.* |

***

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

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

* *Type:* constructs.Node

The tree node.

***

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

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

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

***

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

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

* *Type:* str

***

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

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

* *Type:* str

***

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

| **Name**                                                                                            | **Type**         | **Description**   |
| --------------------------------------------------------------------------------------------------- | ---------------- | ----------------- |
| <code><a href="#cdktn.DataTerraformRemoteStatePg.property.tfResourceType">tfResourceType</a></code> | <code>str</code> | *No description.* |

***

### `tfResourceType`<sup>Required</sup> <a name="tfResourceType" id="cdktn.DataTerraformRemoteStatePg.property.tfResourceType" />

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

* *Type:* str

***
