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

# Typescript: DataTerraformRemoteStatePgConfig

> CDKTN Core API Reference for DataTerraformRemoteStatePgConfig in Typescript.

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

```typescript theme={null}
import { DataTerraformRemoteStatePgConfig } from 'cdktn'

const dataTerraformRemoteStatePgConfig: DataTerraformRemoteStatePgConfig = { ... }
```

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

| **Name**                                                                                                          | **Type**                              | **Description**                                                                         |
| ----------------------------------------------------------------------------------------------------------------- | ------------------------------------- | --------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.defaults">defaults</a></code>                     | <code>\{\[ key: string ]: any}</code> | *No description.*                                                                       |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.workspace">workspace</a></code>                   | <code>string</code>                   | *No description.*                                                                       |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.connStr">connStr</a></code>                       | <code>string</code>                   | Postgres connection string;                                                             |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.schemaName">schemaName</a></code>                 | <code>string</code>                   | Name of the automatically-managed Postgres schema, default to terraform\_remote\_state. |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.skipIndexCreation">skipIndexCreation</a></code>   | <code>boolean</code>                  | If set to true, the Postgres index must already exist.                                  |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.skipSchemaCreation">skipSchemaCreation</a></code> | <code>boolean</code>                  | If set to true, the Postgres schema must already exist.                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.skipTableCreation">skipTableCreation</a></code>   | <code>boolean</code>                  | If set to true, the Postgres table must already exist.                                  |

***

### `defaults`<sup>Optional</sup> <a name="defaults" id="cdktn.DataTerraformRemoteStatePgConfig.property.defaults" />

```typescript theme={null}
public readonly defaults: {[ key: string ]: any};
```

* *Type:* \{\[ key: string ]: any}

***

### `workspace`<sup>Optional</sup> <a name="workspace" id="cdktn.DataTerraformRemoteStatePgConfig.property.workspace" />

```typescript theme={null}
public readonly workspace: string;
```

* *Type:* string

***

### `connStr`<sup>Required</sup> <a name="connStr" id="cdktn.DataTerraformRemoteStatePgConfig.property.connStr" />

```typescript theme={null}
public readonly connStr: string;
```

* *Type:* string

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.

***

### `schemaName`<sup>Optional</sup> <a name="schemaName" id="cdktn.DataTerraformRemoteStatePgConfig.property.schemaName" />

```typescript theme={null}
public readonly schemaName: string;
```

* *Type:* string

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

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

***

### `skipIndexCreation`<sup>Optional</sup> <a name="skipIndexCreation" id="cdktn.DataTerraformRemoteStatePgConfig.property.skipIndexCreation" />

```typescript theme={null}
public readonly skipIndexCreation: boolean;
```

* *Type:* boolean

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.

***

### `skipSchemaCreation`<sup>Optional</sup> <a name="skipSchemaCreation" id="cdktn.DataTerraformRemoteStatePgConfig.property.skipSchemaCreation" />

```typescript theme={null}
public readonly skipSchemaCreation: boolean;
```

* *Type:* boolean

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.

***

### `skipTableCreation`<sup>Optional</sup> <a name="skipTableCreation" id="cdktn.DataTerraformRemoteStatePgConfig.property.skipTableCreation" />

```typescript theme={null}
public readonly skipTableCreation: boolean;
```

* *Type:* boolean

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.

***
