# TerraformModule

- [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/TerraformModule#SCHEMA_REPRESENTATION)
- [TerraformFile](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/TerraformModule#TerraformFile)
  - [JSON representation](https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/TerraformModule#TerraformFile.SCHEMA_REPRESENTATION)

Represents a Terraform module, which is a collection of Terraform files. Eg: { "source": "git::[https://github.com/my-org/my-repo"](https://github.com/my-org/my-repo), "files": \[ { "path": "/path/to/file/main.tf", "content": "tf file content" } \] }

| JSON representation |
|---|
| ``` { "source": string, "files": [ { object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/TerraformModule#TerraformFile`) } ] } ``` |

| Fields ||
|---|---|
| `source` | `string` The source of the Terraform module. |
| `files[]` | ``object (`https://docs.cloud.google.com/application-design-center/docs/reference/rest/Shared.Types/TerraformModule#TerraformFile`)`` The files within the Terraform module. |

## TerraformFile

Represents a single Terraform file.

| JSON representation |
|---|
| ``` { "path": string, "content": string } ``` |

| Fields ||
|---|---|
| `path` | `string` The path of the Terraform file. |
| `content` | `string` The content of the Terraform file. |