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

# Java: DataTerraformRemoteStatePgConfig

> CDKTN Core API Reference for DataTerraformRemoteStatePgConfig in Java.

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

```java theme={null}
import io.cdktn.cdktn.DataTerraformRemoteStatePgConfig;

DataTerraformRemoteStatePgConfig.builder()
//  .defaults(java.util.Map<java.lang.String, java.lang.Object>)
//  .workspace(java.lang.String)
    .connStr(java.lang.String)
//  .schemaName(java.lang.String)
//  .skipIndexCreation(java.lang.Boolean)
//  .skipSchemaCreation(java.lang.Boolean)
//  .skipTableCreation(java.lang.Boolean)
    .build();
```

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

| **Name**                                                                                                          | **Type**                                                          | **Description**                                                                         |
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.defaults">defaults</a></code>                     | <code>java.util.Map\< java.lang.String, java.lang.Object ></code> | *No description.*                                                                       |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.workspace">workspace</a></code>                   | <code>java.lang.String</code>                                     | *No description.*                                                                       |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.connStr">connStr</a></code>                       | <code>java.lang.String</code>                                     | Postgres connection string;                                                             |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.schemaName">schemaName</a></code>                 | <code>java.lang.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>java.lang.Boolean</code>                                    | If set to true, the Postgres index must already exist.                                  |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.skipSchemaCreation">skipSchemaCreation</a></code> | <code>java.lang.Boolean</code>                                    | If set to true, the Postgres schema must already exist.                                 |
| <code><a href="#cdktn.DataTerraformRemoteStatePgConfig.property.skipTableCreation">skipTableCreation</a></code>   | <code>java.lang.Boolean</code>                                    | If set to true, the Postgres table must already exist.                                  |

***

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

```java theme={null}
public java.util.Map<java.lang.String, java.lang.Object> getDefaults();
```

* *Type:* java.util.Map\< java.lang.String, java.lang.Object >

***

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

```java theme={null}
public java.lang.String getWorkspace();
```

* *Type:* java.lang.String

***

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

```java theme={null}
public java.lang.String getConnStr();
```

* *Type:* java.lang.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" />

```java theme={null}
public java.lang.String getSchemaName();
```

* *Type:* java.lang.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" />

```java theme={null}
public java.lang.Boolean getSkipIndexCreation();
```

* *Type:* java.lang.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" />

```java theme={null}
public java.lang.Boolean getSkipSchemaCreation();
```

* *Type:* java.lang.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" />

```java theme={null}
public java.lang.Boolean getSkipTableCreation();
```

* *Type:* java.lang.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.

***
