Notification Config Args
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:
How-to Guides
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
Properties
The description of the notification config (max of 1024 characters).
The organization whose Cloud Security Command Center the Notification Config lives in.
The Pub/Sub topic to send notifications to. Its format is "projects/project_id/topics/topic".
The config for triggering streaming-based notifications. Structure is documented below.