NotificationConfigArgs

data class NotificationConfigArgs(val configId: Output<String>? = null, val description: Output<String>? = null, val organization: Output<String>? = null, val pubsubTopic: Output<String>? = null, val streamingConfig: Output<NotificationConfigStreamingConfigArgs>? = null) : ConvertibleToJava<NotificationConfigArgs>

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}}

Constructors

Link copied to clipboard
constructor(configId: Output<String>? = null, description: Output<String>? = null, organization: Output<String>? = null, pubsubTopic: Output<String>? = null, streamingConfig: Output<NotificationConfigStreamingConfigArgs>? = 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 organization: Output<String>? = null

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

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(): NotificationConfigArgs