public sealed class NotificationConfig : IMessage<NotificationConfig>, IEquatable<NotificationConfig>, IDeepCloneable<NotificationConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API 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.
Identifier. The relative resource name of this notification config. See:
https://cloud.google.com/apis/design/resource_names#relative_resource_name
The following list shows some examples:
+
organizations/{organization_id}/locations/{location_id}/notificationConfigs/notify_public_bucket
+
folders/{folder_id}/locations/{location_id}/notificationConfigs/notify_public_bucket
+
projects/{project_id}/locations/{location_id}/notificationConfigs/notify_public_bucket
[[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eNotificationConfig\u003c/code\u003e class in the Security Command Center v2 API is used to configure notifications for events related to findings and assets.\u003c/p\u003e\n"],["\u003cp\u003eThis resource allows configuration to send notifications via a specified Pub/Sub topic, with the format \u003ccode\u003eprojects/[project_id]/topics/[topic]\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNotificationConfig\u003c/code\u003e resource can be named using a relative resource name, which may be associated with an organization, folder, or project, with a specified location.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNotificationConfig\u003c/code\u003e class includes properties for setting the notification description, pubsub topic, and a streaming configuration, as well as retrieving the service account with publish permissions.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits members from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class NotificationConfig (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.NotificationConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.NotificationConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.NotificationConfig) \n\n public sealed class NotificationConfig : IMessage\u003cNotificationConfig\u003e, IEquatable\u003cNotificationConfig\u003e, IDeepCloneable\u003cNotificationConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API 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\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e NotificationConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[NotificationConfig](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.NotificationConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[NotificationConfig](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.NotificationConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[NotificationConfig](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.NotificationConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### NotificationConfig()\n\n public NotificationConfig()\n\n### NotificationConfig(NotificationConfig)\n\n public NotificationConfig(NotificationConfig other)\n\nProperties\n----------\n\n### Description\n\n public string Description { get; set; }\n\nThe description of the notification config (max of 1024 characters).\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. The relative resource name of this notification config. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nThe following list shows some examples:\n+\n`organizations/{organization_id}/locations/{location_id}/notificationConfigs/notify_public_bucket`\n+\n`folders/{folder_id}/locations/{location_id}/notificationConfigs/notify_public_bucket`\n+\n`projects/{project_id}/locations/{location_id}/notificationConfigs/notify_public_bucket`\n\n### NotificationConfigName\n\n public NotificationConfigName NotificationConfigName { get; set; }\n\n[NotificationConfigName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.NotificationConfigName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.NotificationConfig#Google_Cloud_SecurityCenter_V2_NotificationConfig_Name) resource name property.\n\n### NotifyConfigCase\n\n public NotificationConfig.NotifyConfigOneofCase NotifyConfigCase { get; }\n\n### PubsubTopic\n\n public string PubsubTopic { get; set; }\n\nThe Pub/Sub topic to send notifications to. Its format is\n\"projects/\\[project_id\\]/topics/\\[topic\\]\".\n\n### PubsubTopicAsTopicName\n\n public TopicName PubsubTopicAsTopicName { get; set; }\n\n[TopicName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.TopicName)-typed view over the [PubsubTopic](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.NotificationConfig#Google_Cloud_SecurityCenter_V2_NotificationConfig_PubsubTopic) resource name property.\n\n### ServiceAccount\n\n public string ServiceAccount { get; set; }\n\nOutput only. The service account that needs \"pubsub.topics.publish\"\npermission to publish to the Pub/Sub topic.\n\n### StreamingConfig\n\n public NotificationConfig.Types.StreamingConfig StreamingConfig { get; set; }\n\nThe config for triggering streaming-based notifications.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The timestamp of when the notification config was last\nupdated."]]