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

# CSharp: DataTerraformRemoteStatePgConfig

> CDKTN Core API Reference for DataTerraformRemoteStatePgConfig in CSharp.

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

```csharp theme={null}
using Io.Cdktn;

new DataTerraformRemoteStatePgConfig {
    System.Collections.Generic.IDictionary<string, object> Defaults = null,
    string Workspace = null,
    string ConnStr,
    string SchemaName = null,
    bool SkipIndexCreation = null,
    bool SkipSchemaCreation = null,
    bool SkipTableCreation = null
};
```

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

| **Name**                                                                                                          | **Type**                                                               | **Description**                                                                         |
| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.defaults">Defaults</a></code>                     | <code>System.Collections.Generic.IDictionary\< string, object ></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" />

```csharp theme={null}
public System.Collections.Generic.IDictionary<string, object> Defaults { get; set; }
```

* *Type:* System.Collections.Generic.IDictionary\< string, object >

***

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

```csharp theme={null}
public string Workspace { get; set; }
```

* *Type:* string

***

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

```csharp theme={null}
public string ConnStr { get; set; }
```

* *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" />

```csharp theme={null}
public string SchemaName { get; set; }
```

* *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" />

```csharp theme={null}
public bool SkipIndexCreation { get; set; }
```

* *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" />

```csharp theme={null}
public bool SkipSchemaCreation { get; set; }
```

* *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" />

```csharp theme={null}
public bool SkipTableCreation { get; set; }
```

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

***
