FolderNotificationConfigArgs

data class FolderNotificationConfigArgs(val configId: Output<String>? = null, val description: Output<String>? = null, val folder: Output<String>? = null, val pubsubTopic: Output<String>? = null, val streamingConfig: Output<FolderNotificationConfigStreamingConfigArgs>? = null) : ConvertibleToJava<FolderNotificationConfigArgs>

A 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.

Note: In order to use Cloud SCC resources, your organization must be enrolled in SCC Standard/Premium. Without doing so, you may run into errors during resource creation. To get more information about FolderNotificationConfig, see:

Example Usage

Scc Folder Notification Config Basic

resources:
folder:
type: gcp:organizations:Folder
properties:
parent: organizations/123456789
displayName: folder-name
sccFolderNotificationConfig:
type: gcp:pubsub:Topic
name: scc_folder_notification_config
properties:
name: my-topic
customNotificationConfig:
type: gcp:securitycenter:FolderNotificationConfig
name: custom_notification_config
properties:
configId: my-config
folder: ${folder.folderId}
location: global
description: My custom Cloud Security Command Center Finding Notification Configuration
pubsubTopic: ${sccFolderNotificationConfig.id}
streamingConfig:
filter: category = "OPEN_FIREWALL" AND state = "ACTIVE"

Import

FolderNotificationConfig can be imported using any of these accepted formats:

  • folders/{{folder}}/notificationConfigs/{{config_id}}

  • {{folder}}/{{config_id}} When using the pulumi import command, FolderNotificationConfig can be imported using one of the formats above. For example:

$ pulumi import gcp:securitycenter/folderNotificationConfig:FolderNotificationConfig default folders/{{folder}}/notificationConfigs/{{config_id}}
$ pulumi import gcp:securitycenter/folderNotificationConfig:FolderNotificationConfig default {{folder}}/{{config_id}}

Constructors

Link copied to clipboard
constructor(configId: Output<String>? = null, description: Output<String>? = null, folder: Output<String>? = null, pubsubTopic: Output<String>? = null, streamingConfig: Output<FolderNotificationConfigStreamingConfigArgs>? = null)

Properties

Link copied to clipboard
val configId: Output<String>? = null

This must be unique within the organization.

Link copied to clipboard
val description: Output<String>? = null

The description of the notification config (max of 1024 characters).

Link copied to clipboard
val folder: Output<String>? = null

Numerical ID of the parent folder.

Link copied to clipboard
val pubsubTopic: Output<String>? = null

The Pub/Sub topic to send notifications to. Its format is "projects/project_id/topics/topic".

Link copied to clipboard

The config for triggering streaming-based notifications. Structure is documented below.

Functions

Link copied to clipboard
open override fun toJava(): FolderNotificationConfigArgs