google_scc_notification_config

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.

To get more information about NotificationConfig, see:

Example Usage - Scc Notification Config Basic

resource "google_pubsub_topic" "scc_notification" {
  name = "my-topic"
}

resource "google_scc_notification_config" "custom_notification_config" {
  config_id    = "my-config"
  organization = "123456789"
  description  = "My custom Cloud Security Command Center Finding Notification Configuration"
  pubsub_topic =  google_pubsub_topic.scc_notification.id

  streaming_config {
    filter = "category = \"OPEN_FIREWALL\" AND state = \"ACTIVE\""
  }
}

Argument Reference

The following arguments are supported:

The streaming_config block supports:


Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

NotificationConfig can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import NotificationConfig using one of the formats above. For example:

import {
  id = "organizations/{{organization}}/notificationConfigs/{{name}}"
  to = google_scc_notification_config.default
}

When using the terraform import command, NotificationConfig can be imported using one of the formats above. For example:

$ terraform import google_scc_notification_config.default organizations/{{organization}}/notificationConfigs/{{name}}
$ terraform import google_scc_notification_config.default {{organization}}/{{name}}