# TargetResourceConfig

- [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#SCHEMA_REPRESENTATION)
- [TargetResourceCreationConfig](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#TargetResourceCreationConfig)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#TargetResourceCreationConfig.SCHEMA_REPRESENTATION)
- [FolderCreationConfig](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#FolderCreationConfig)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#FolderCreationConfig.SCHEMA_REPRESENTATION)
- [ProjectCreationConfig](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#ProjectCreationConfig)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#ProjectCreationConfig.SCHEMA_REPRESENTATION)

The name of the target resource or the configuration that's required to create a new target resource.

| JSON representation |
|---|
| ``` { // Union field `resource_config` can be only one of the following: "existingTargetResource": string, "targetResourceCreationConfig": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#TargetResourceCreationConfig`) } // End of list of possible types for union field `resource_config`. } ``` |

| Fields ||
|---|---|
| Union field `resource_config`. The resource configuration for the target resource. `resource_config` can be only one of the following: ||
| `existingTargetResource` | `string` Optional. The resource hierarchy node, in one of the following formats: - `organizations/{organizationID}` - `folders/{folderID}` - `projects/{projectID}` |
| `targetResourceCreationConfig` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#TargetResourceCreationConfig`)`` Optional. The details that are required to create a resource and use that resource as the target resource for deployment. |

## TargetResourceCreationConfig

The configuration that's required to create a target resource.

| JSON representation |
|---|
| ``` { // Union field `resource_creation_config` can be only one of the following: "folderCreationConfig": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#FolderCreationConfig`) }, "projectCreationConfig": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#ProjectCreationConfig`) } // End of list of possible types for union field `resource_creation_config`. } ``` |

| Fields ||
|---|---|
| Union field `resource_creation_config`. The configuration that's required to create the target resource. `resource_creation_config` can be only one of the following: ||
| `folderCreationConfig` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#FolderCreationConfig`)`` Optional. The configuration that's required to create a folder. |
| `projectCreationConfig` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/cloudsecuritycompliance/rest/v1/TargetResourceConfig#ProjectCreationConfig`)`` Optional. The configuration that's required to create a project. |

## FolderCreationConfig

The configuration that's required to create a folder to be used as the target resource for a deployment.

| JSON representation |
|---|
| ``` { "parent": string, "folderDisplayName": string } ``` |

| Fields ||
|---|---|
| `parent` | `string` Required. The parent of the folder, in the format `organizations/{organizationID}` or `folders/{folderID}`. |
| `folderDisplayName` | `string` Required. The display name of the folder. |

## ProjectCreationConfig

The configuration that's required to create a project to be used as the target resource of a deployment.

| JSON representation |
|---|
| ``` { "parent": string, "projectDisplayName": string, "billingAccountId": string } ``` |

| Fields ||
|---|---|
| `parent` | `string` Required. The parent of the project, in the format `organizations/{organizationID}` or `folders/{folderID}`. |
| `projectDisplayName` | `string` Required. The display name of the project. |
| `billingAccountId` | `string` Required. The billing account ID for the project. |