Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class NotificationConfig.
Cloud Security Command Center (Cloud SCC) notification configs.
A notification config is a Cloud SCC resource that contains the configuration
to send notifications for create/update events of findings, assets and etc.
Generated from protobuf messagegoogle.cloud.securitycenter.v1.NotificationConfig
Namespace
Google \ Cloud \ SecurityCenter \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
The relative resource name of this notification config. See:https://cloud.google.com/apis/design/resource_names#relative_resource_nameExample: "organizations/{organization_id}/notificationConfigs/notify_public_bucket", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".
↳ description
string
The description of the notification config (max of 1024 characters).
↳ pubsub_topic
string
The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
↳ service_account
string
Output only. The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
The config for triggering streaming-based notifications.
getName
The relative resource name of this notification config. See:https://cloud.google.com/apis/design/resource_names#relative_resource_nameExample:
"organizations/{organization_id}/notificationConfigs/notify_public_bucket",
"folders/{folder_id}/notificationConfigs/notify_public_bucket",
or "projects/{project_id}/notificationConfigs/notify_public_bucket".
Returns
Type
Description
string
setName
The relative resource name of this notification config. See:https://cloud.google.com/apis/design/resource_names#relative_resource_nameExample:
"organizations/{organization_id}/notificationConfigs/notify_public_bucket",
"folders/{folder_id}/notificationConfigs/notify_public_bucket",
or "projects/{project_id}/notificationConfigs/notify_public_bucket".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDescription
The description of the notification config (max of 1024 characters).
Returns
Type
Description
string
setDescription
The description of the notification config (max of 1024 characters).
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPubsubTopic
The Pub/Sub topic to send notifications to. Its format is
"projects/[project_id]/topics/[topic]".
Returns
Type
Description
string
setPubsubTopic
The Pub/Sub topic to send notifications to. Its format is
"projects/[project_id]/topics/[topic]".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServiceAccount
Output only. The service account that needs "pubsub.topics.publish"
permission to publish to the Pub/Sub topic.
Returns
Type
Description
string
setServiceAccount
Output only. The service account that needs "pubsub.topics.publish"
permission to publish to the Pub/Sub topic.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getStreamingConfig
The config for triggering streaming-based notifications.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Security Command Center V1 Client - Class NotificationConfig (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V1.NotificationConfig)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V1.NotificationConfig)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V1.NotificationConfig)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V1.NotificationConfig)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V1.NotificationConfig)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V1.NotificationConfig)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V1.NotificationConfig)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V1.NotificationConfig)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V1.NotificationConfig)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V1.NotificationConfig)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V1.NotificationConfig)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V1.NotificationConfig)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V1.NotificationConfig)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V1.NotificationConfig)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V1.NotificationConfig)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V1.NotificationConfig)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V1.NotificationConfig)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V1.NotificationConfig) \nReference documentation and code samples for the Google Cloud Security Command Center V1 Client class NotificationConfig.\n\nCloud Security Command Center (Cloud SCC) notification configs.\n\nA notification config is a Cloud SCC resource that contains the configuration\nto send notifications for create/update events of findings, assets and etc.\n\nGenerated from protobuf message `google.cloud.securitycenter.v1.NotificationConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe relative resource name of this notification config. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nExample:\n\"organizations/{organization_id}/notificationConfigs/notify_public_bucket\",\n\"folders/{folder_id}/notificationConfigs/notify_public_bucket\",\nor \"projects/{project_id}/notificationConfigs/notify_public_bucket\".\n\n### setName\n\nThe relative resource name of this notification config. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nExample:\n\"organizations/{organization_id}/notificationConfigs/notify_public_bucket\",\n\"folders/{folder_id}/notificationConfigs/notify_public_bucket\",\nor \"projects/{project_id}/notificationConfigs/notify_public_bucket\".\n\n### getDescription\n\nThe description of the notification config (max of 1024 characters).\n\n### setDescription\n\nThe description of the notification config (max of 1024 characters).\n\n### getPubsubTopic\n\nThe Pub/Sub topic to send notifications to. Its format is\n\"projects/\\[project_id\\]/topics/\\[topic\\]\".\n\n### setPubsubTopic\n\nThe Pub/Sub topic to send notifications to. Its format is\n\"projects/\\[project_id\\]/topics/\\[topic\\]\".\n\n### getServiceAccount\n\nOutput only. The service account that needs \"pubsub.topics.publish\"\npermission to publish to the Pub/Sub topic.\n\n### setServiceAccount\n\nOutput only. The service account that needs \"pubsub.topics.publish\"\npermission to publish to the Pub/Sub topic.\n\n### getStreamingConfig\n\nThe config for triggering streaming-based notifications.\n\n### hasStreamingConfig\n\n### setStreamingConfig\n\nThe config for triggering streaming-based notifications.\n\n### getNotifyConfig"]]