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

> CDKTN Core API Reference for LocalBackendConfig in Java.

The local backend stores state on the local filesystem, locks that state using system APIs, and performs operations locally.

Read more about this backend in the Terraform docs:
[https://developer.hashicorp.com/terraform/language/settings/backends/local](https://developer.hashicorp.com/terraform/language/settings/backends/local)

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

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

LocalBackendConfig.builder()
//  .path(java.lang.String)
//  .workspaceDir(java.lang.String)
    .build();
```

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

| **Name**                                                                                | **Type**                      | **Description**                                |
| --------------------------------------------------------------------------------------- | ----------------------------- | ---------------------------------------------- |
| <code><a href="#cdktn.LocalBackendConfig.property.path">path</a></code>                 | <code>java.lang.String</code> | Path where the state file is stored.           |
| <code><a href="#cdktn.LocalBackendConfig.property.workspaceDir">workspaceDir</a></code> | <code>java.lang.String</code> | (Optional) The path to non-default workspaces. |

***

### `path`<sup>Optional</sup> <a name="path" id="cdktn.LocalBackendConfig.property.path" />

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

* *Type:* java.lang.String
* *Default:* defaults to terraform.\$\{stackId}.tfstate

Path where the state file is stored.

***

### `workspaceDir`<sup>Optional</sup> <a name="workspaceDir" id="cdktn.LocalBackendConfig.property.workspaceDir" />

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

* *Type:* java.lang.String

(Optional) The path to non-default workspaces.

***
