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

> CDKTN Core API Reference for PgBackendConfig in CSharp.

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

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

new PgBackendConfig {
    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.PgBackendConfig.property.connStr">ConnStr</a></code>                       | <code>string</code> | Postgres connection string;                                                             |
| <code><a href="#cdktn.PgBackendConfig.property.schemaName">SchemaName</a></code>                 | <code>string</code> | Name of the automatically-managed Postgres schema, default to terraform\_remote\_state. |
| <code><a href="#cdktn.PgBackendConfig.property.skipIndexCreation">SkipIndexCreation</a></code>   | <code>bool</code>   | If set to true, the Postgres index must already exist.                                  |
| <code><a href="#cdktn.PgBackendConfig.property.skipSchemaCreation">SkipSchemaCreation</a></code> | <code>bool</code>   | If set to true, the Postgres schema must already exist.                                 |
| <code><a href="#cdktn.PgBackendConfig.property.skipTableCreation">SkipTableCreation</a></code>   | <code>bool</code>   | If set to true, the Postgres table must already exist.                                  |

***

### `ConnStr`<sup>Required</sup> <a name="ConnStr" id="cdktn.PgBackendConfig.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.PgBackendConfig.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.PgBackendConfig.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.PgBackendConfig.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.PgBackendConfig.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.

***
