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

> CDKTN Core API Reference for DataTerraformRemoteStatePgConfig in Go.

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

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

&cdktn.DataTerraformRemoteStatePgConfig {
	Defaults: *map[string]interface{},
	Workspace: *string,
	ConnStr: *string,
	SchemaName: *string,
	SkipIndexCreation: *bool,
	SkipSchemaCreation: *bool,
	SkipTableCreation: *bool,
}
```

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

| **Name**                                                                                                          | **Type**                                | **Description**                                                                         |
| ----------------------------------------------------------------------------------------------------------------- | --------------------------------------- | --------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.defaults">Defaults</a></code>                     | <code>\*map\[string]interface\{}</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>\*bool</code>                     | If set to true, the Postgres index must already exist.                                  |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.skipSchemaCreation">SkipSchemaCreation</a></code> | <code>\*bool</code>                     | If set to true, the Postgres schema must already exist.                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.skipTableCreation">SkipTableCreation</a></code>   | <code>\*bool</code>                     | If set to true, the Postgres table must already exist.                                  |

***

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

```go theme={null}
Defaults *map[string]interface{}
```

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

***

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

```go theme={null}
Workspace *string
```

* *Type:* \*string

***

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

```go theme={null}
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" />

```go theme={null}
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" />

```go theme={null}
SkipIndexCreation *bool
```

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

***

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

```go theme={null}
SkipSchemaCreation *bool
```

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

***

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

```go theme={null}
SkipTableCreation *bool
```

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

***
