# NotificationMessage

- [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/NotificationMessage#SCHEMA_REPRESENTATION)
- [Resource](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/NotificationMessage#Resource)
  - [JSON representation](https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/NotificationMessage#Resource.SCHEMA_REPRESENTATION)

Cloud SCC's Notification

| JSON representation |
|---|
| ``` { "notificationConfigName": string, "resource": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/NotificationMessage#Resource`) }, // Union field `event` can be only one of the following: "finding": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.sources.findings#Finding`) } // End of list of possible types for union field `event`. } ``` |

| Fields ||
|---|---|
| `notificationConfigName` | `string` Name of the notification config that generated current notification. |
| `resource` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/NotificationMessage#Resource`)`` The Cloud resource tied to this notification's Finding. |
| Union field `event`. Notification Event. `event` can be only one of the following: ||
| `finding` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/organizations.sources.findings#Finding`)`` If it's a Finding based notification config, this field will be populated. |

## Resource

Information related to the Google Cloud resource.

| JSON representation |
|---|
| ``` { "name": string, "displayName": string, "type": string, "project": string, "projectDisplayName": string, "parent": string, "parentDisplayName": string, "folders": [ { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/Folder`) } ], "cloudProvider": enum (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/CloudProvider`), "organization": string, "service": string, "location": string, "resourcePath": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#ResourcePath`) }, "resourcePathString": string, "application": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#Application`) }, "adcApplication": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AdcApplication`) }, "adcApplicationTemplate": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AdcApplicationTemplateRevision`) }, "adcSharedTemplate": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AdcSharedTemplateRevision`) }, // Union field `cloud_provider_metadata` can be only one of the following: "awsMetadata": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AwsMetadata`) }, "azureMetadata": { object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AzureMetadata`) } // End of list of possible types for union field `cloud_provider_metadata`. } ``` |

| Fields ||
|---|---|
| `name` | `string` The full resource name of the resource. See: <https://cloud.google.com/apis/design/resource_names#full_resource_name> |
| `displayName` | `string` The human readable name of the resource. |
| `type` | `string` The full resource type of the resource. |
| `project` | `string` The full resource name of project that the resource belongs to. |
| `projectDisplayName` | `string` The project ID that the resource belongs to. |
| `parent` | `string` The full resource name of resource's parent. |
| `parentDisplayName` | `string` The human readable name of resource's parent. |
| `folders[]` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/Folder`)`` Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization. |
| `cloudProvider` | ``enum (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/CloudProvider`)`` Indicates which cloud provider the resource resides in. |
| `organization` | `string` Indicates which organization or tenant in the cloud provider the finding applies to. |
| `service` | `string` The parent service or product from which the resource is provided, for example, GKE or SNS. |
| `location` | `string` The region or location of the service (if applicable). |
| `resourcePath` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#ResourcePath`)`` Provides the path to the resource within the resource hierarchy. |
| `resourcePathString` | `string` A string representation of the resource path. For Google Cloud, it has the format of `organizations/{organizationId}/folders/{folder_id}/folders/{folder_id}/projects/{projectId}` where there can be any number of folders. For AWS, it has the format of `org/{organizationId}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{accountId}` where there can be any number of organizational units. For Azure, it has the format of `mg/{management_group_id}/mg/{management_group_id}/subscription/{subscriptionId}/rg/{resource_group_name}` where there can be any number of management groups. |
| `application` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#Application`)`` The App Hub application this resource belongs to. |
| `adcApplication` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AdcApplication`)`` The ADC application associated with the finding. |
| `adcApplicationTemplate` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AdcApplicationTemplateRevision`)`` The ADC template associated with the finding. |
| `adcSharedTemplate` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AdcSharedTemplateRevision`)`` The ADC shared template associated with the finding. |
| Union field `cloud_provider_metadata`. The metadata associated with the cloud provider. `cloud_provider_metadata` can be only one of the following: ||
| `awsMetadata` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AwsMetadata`)`` The AWS metadata associated with the finding. |
| `azureMetadata` | ``object (`https://docs.cloud.google.com/security-command-center/docs/reference/rest/v1/ListFindingsResponse#AzureMetadata`)`` The Azure metadata associated with the finding. |