NotificationConfig

class NotificationConfig : KotlinCustomResource

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 NotificationConfig, see:

Example Usage

Scc Notification Config Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.pubsub.Topic;
import com.pulumi.gcp.securitycenter.NotificationConfig;
import com.pulumi.gcp.securitycenter.NotificationConfigArgs;
import com.pulumi.gcp.securitycenter.inputs.NotificationConfigStreamingConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sccNotification = new Topic("sccNotification");
var customNotificationConfig = new NotificationConfig("customNotificationConfig", NotificationConfigArgs.builder()
.configId("my-config")
.organization("123456789")
.description("My custom Cloud Security Command Center Finding Notification Configuration")
.pubsubTopic(sccNotification.id())
.streamingConfig(NotificationConfigStreamingConfigArgs.builder()
.filter("category = \"OPEN_FIREWALL\" AND state = \"ACTIVE\"")
.build())
.build());
}
}

Import

NotificationConfig can be imported using any of these accepted formats

$ pulumi import gcp:securitycenter/notificationConfig:NotificationConfig default organizations/{{organization}}/notificationConfigs/{{name}}
$ pulumi import gcp:securitycenter/notificationConfig:NotificationConfig default {{organization}}/{{name}}

Properties

Link copied to clipboard
val configId: Output<String>

This must be unique within the organization.

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

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

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The resource name of this notification config, in the format organizations/{{organization}}/notificationConfigs/{{config_id}}.

Link copied to clipboard
val organization: Output<String>

The organization whose Cloud Security Command Center the Notification Config lives in.

Link copied to clipboard
val pubsubTopic: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val serviceAccount: Output<String>

The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.

Link copied to clipboard

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

Link copied to clipboard
val urn: Output<String>