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

> CDKTN Core API Reference for LocalBackendConfig in CSharp.

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

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

new LocalBackendConfig {
    string Path = null,
    string WorkspaceDir = null
};
```

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

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

***

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

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

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

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

* *Type:* string

(Optional) The path to non-default workspaces.

***
