1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. securitycenter
  5. V2ProjectNotificationConfig
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.securitycenter.V2ProjectNotificationConfig

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

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

    Example Usage

    Scc V2 Project Notification Config Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const sccV2ProjectNotification = new gcp.pubsub.Topic("scc_v2_project_notification", {name: "my-topic"});
    const customNotificationConfig = new gcp.securitycenter.V2ProjectNotificationConfig("custom_notification_config", {
        configId: "my-config",
        project: "my-project-name",
        location: "global",
        description: "My custom Cloud Security Command Center Finding Notification Configuration",
        pubsubTopic: sccV2ProjectNotification.id,
        streamingConfig: {
            filter: "category = \"OPEN_FIREWALL\" AND state = \"ACTIVE\"",
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    scc_v2_project_notification = gcp.pubsub.Topic("scc_v2_project_notification", name="my-topic")
    custom_notification_config = gcp.securitycenter.V2ProjectNotificationConfig("custom_notification_config",
        config_id="my-config",
        project="my-project-name",
        location="global",
        description="My custom Cloud Security Command Center Finding Notification Configuration",
        pubsub_topic=scc_v2_project_notification.id,
        streaming_config={
            "filter": "category = \"OPEN_FIREWALL\" AND state = \"ACTIVE\"",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/pubsub"
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/securitycenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		sccV2ProjectNotification, err := pubsub.NewTopic(ctx, "scc_v2_project_notification", &pubsub.TopicArgs{
    			Name: pulumi.String("my-topic"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = securitycenter.NewV2ProjectNotificationConfig(ctx, "custom_notification_config", &securitycenter.V2ProjectNotificationConfigArgs{
    			ConfigId:    pulumi.String("my-config"),
    			Project:     pulumi.String("my-project-name"),
    			Location:    pulumi.String("global"),
    			Description: pulumi.String("My custom Cloud Security Command Center Finding Notification Configuration"),
    			PubsubTopic: sccV2ProjectNotification.ID(),
    			StreamingConfig: &securitycenter.V2ProjectNotificationConfigStreamingConfigArgs{
    				Filter: pulumi.String("category = \"OPEN_FIREWALL\" AND state = \"ACTIVE\""),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var sccV2ProjectNotification = new Gcp.PubSub.Topic("scc_v2_project_notification", new()
        {
            Name = "my-topic",
        });
    
        var customNotificationConfig = new Gcp.SecurityCenter.V2ProjectNotificationConfig("custom_notification_config", new()
        {
            ConfigId = "my-config",
            Project = "my-project-name",
            Location = "global",
            Description = "My custom Cloud Security Command Center Finding Notification Configuration",
            PubsubTopic = sccV2ProjectNotification.Id,
            StreamingConfig = new Gcp.SecurityCenter.Inputs.V2ProjectNotificationConfigStreamingConfigArgs
            {
                Filter = "category = \"OPEN_FIREWALL\" AND state = \"ACTIVE\"",
            },
        });
    
    });
    
    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.pubsub.TopicArgs;
    import com.pulumi.gcp.securitycenter.V2ProjectNotificationConfig;
    import com.pulumi.gcp.securitycenter.V2ProjectNotificationConfigArgs;
    import com.pulumi.gcp.securitycenter.inputs.V2ProjectNotificationConfigStreamingConfigArgs;
    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 sccV2ProjectNotification = new Topic("sccV2ProjectNotification", TopicArgs.builder()
                .name("my-topic")
                .build());
    
            var customNotificationConfig = new V2ProjectNotificationConfig("customNotificationConfig", V2ProjectNotificationConfigArgs.builder()
                .configId("my-config")
                .project("my-project-name")
                .location("global")
                .description("My custom Cloud Security Command Center Finding Notification Configuration")
                .pubsubTopic(sccV2ProjectNotification.id())
                .streamingConfig(V2ProjectNotificationConfigStreamingConfigArgs.builder()
                    .filter("category = \"OPEN_FIREWALL\" AND state = \"ACTIVE\"")
                    .build())
                .build());
    
        }
    }
    
    resources:
      sccV2ProjectNotification:
        type: gcp:pubsub:Topic
        name: scc_v2_project_notification
        properties:
          name: my-topic
      customNotificationConfig:
        type: gcp:securitycenter:V2ProjectNotificationConfig
        name: custom_notification_config
        properties:
          configId: my-config
          project: my-project-name
          location: global
          description: My custom Cloud Security Command Center Finding Notification Configuration
          pubsubTopic: ${sccV2ProjectNotification.id}
          streamingConfig:
            filter: category = "OPEN_FIREWALL" AND state = "ACTIVE"
    

    Create V2ProjectNotificationConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new V2ProjectNotificationConfig(name: string, args: V2ProjectNotificationConfigArgs, opts?: CustomResourceOptions);
    @overload
    def V2ProjectNotificationConfig(resource_name: str,
                                    args: V2ProjectNotificationConfigArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def V2ProjectNotificationConfig(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    config_id: Optional[str] = None,
                                    streaming_config: Optional[V2ProjectNotificationConfigStreamingConfigArgs] = None,
                                    description: Optional[str] = None,
                                    location: Optional[str] = None,
                                    project: Optional[str] = None,
                                    pubsub_topic: Optional[str] = None)
    func NewV2ProjectNotificationConfig(ctx *Context, name string, args V2ProjectNotificationConfigArgs, opts ...ResourceOption) (*V2ProjectNotificationConfig, error)
    public V2ProjectNotificationConfig(string name, V2ProjectNotificationConfigArgs args, CustomResourceOptions? opts = null)
    public V2ProjectNotificationConfig(String name, V2ProjectNotificationConfigArgs args)
    public V2ProjectNotificationConfig(String name, V2ProjectNotificationConfigArgs args, CustomResourceOptions options)
    
    type: gcp:securitycenter:V2ProjectNotificationConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args V2ProjectNotificationConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args V2ProjectNotificationConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args V2ProjectNotificationConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V2ProjectNotificationConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V2ProjectNotificationConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var v2projectNotificationConfigResource = new Gcp.SecurityCenter.V2ProjectNotificationConfig("v2projectNotificationConfigResource", new()
    {
        ConfigId = "string",
        StreamingConfig = new Gcp.SecurityCenter.Inputs.V2ProjectNotificationConfigStreamingConfigArgs
        {
            Filter = "string",
        },
        Description = "string",
        Location = "string",
        Project = "string",
        PubsubTopic = "string",
    });
    
    example, err := securitycenter.NewV2ProjectNotificationConfig(ctx, "v2projectNotificationConfigResource", &securitycenter.V2ProjectNotificationConfigArgs{
    	ConfigId: pulumi.String("string"),
    	StreamingConfig: &securitycenter.V2ProjectNotificationConfigStreamingConfigArgs{
    		Filter: pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Location:    pulumi.String("string"),
    	Project:     pulumi.String("string"),
    	PubsubTopic: pulumi.String("string"),
    })
    
    var v2projectNotificationConfigResource = new V2ProjectNotificationConfig("v2projectNotificationConfigResource", V2ProjectNotificationConfigArgs.builder()
        .configId("string")
        .streamingConfig(V2ProjectNotificationConfigStreamingConfigArgs.builder()
            .filter("string")
            .build())
        .description("string")
        .location("string")
        .project("string")
        .pubsubTopic("string")
        .build());
    
    v2project_notification_config_resource = gcp.securitycenter.V2ProjectNotificationConfig("v2projectNotificationConfigResource",
        config_id="string",
        streaming_config={
            "filter": "string",
        },
        description="string",
        location="string",
        project="string",
        pubsub_topic="string")
    
    const v2projectNotificationConfigResource = new gcp.securitycenter.V2ProjectNotificationConfig("v2projectNotificationConfigResource", {
        configId: "string",
        streamingConfig: {
            filter: "string",
        },
        description: "string",
        location: "string",
        project: "string",
        pubsubTopic: "string",
    });
    
    type: gcp:securitycenter:V2ProjectNotificationConfig
    properties:
        configId: string
        description: string
        location: string
        project: string
        pubsubTopic: string
        streamingConfig:
            filter: string
    

    V2ProjectNotificationConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The V2ProjectNotificationConfig resource accepts the following input properties:

    ConfigId string
    This must be unique within the project.
    StreamingConfig V2ProjectNotificationConfigStreamingConfig
    The config for triggering streaming-based notifications. Structure is documented below.
    Description string
    The description of the notification config (max of 1024 characters).
    Location string
    Location ID of the parent organization. Only global is supported at the moment.
    Project string
    PubsubTopic string
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    ConfigId string
    This must be unique within the project.
    StreamingConfig V2ProjectNotificationConfigStreamingConfigArgs
    The config for triggering streaming-based notifications. Structure is documented below.
    Description string
    The description of the notification config (max of 1024 characters).
    Location string
    Location ID of the parent organization. Only global is supported at the moment.
    Project string
    PubsubTopic string
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    configId String
    This must be unique within the project.
    streamingConfig V2ProjectNotificationConfigStreamingConfig
    The config for triggering streaming-based notifications. Structure is documented below.
    description String
    The description of the notification config (max of 1024 characters).
    location String
    Location ID of the parent organization. Only global is supported at the moment.
    project String
    pubsubTopic String
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    configId string
    This must be unique within the project.
    streamingConfig V2ProjectNotificationConfigStreamingConfig
    The config for triggering streaming-based notifications. Structure is documented below.
    description string
    The description of the notification config (max of 1024 characters).
    location string
    Location ID of the parent organization. Only global is supported at the moment.
    project string
    pubsubTopic string
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    config_id str
    This must be unique within the project.
    streaming_config V2ProjectNotificationConfigStreamingConfigArgs
    The config for triggering streaming-based notifications. Structure is documented below.
    description str
    The description of the notification config (max of 1024 characters).
    location str
    Location ID of the parent organization. Only global is supported at the moment.
    project str
    pubsub_topic str
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    configId String
    This must be unique within the project.
    streamingConfig Property Map
    The config for triggering streaming-based notifications. Structure is documented below.
    description String
    The description of the notification config (max of 1024 characters).
    location String
    Location ID of the parent organization. Only global is supported at the moment.
    project String
    pubsubTopic String
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the V2ProjectNotificationConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    ServiceAccount string
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    ServiceAccount string
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    serviceAccount String
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    serviceAccount string
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    service_account str
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    serviceAccount String
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.

    Look up Existing V2ProjectNotificationConfig Resource

    Get an existing V2ProjectNotificationConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: V2ProjectNotificationConfigState, opts?: CustomResourceOptions): V2ProjectNotificationConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config_id: Optional[str] = None,
            description: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pubsub_topic: Optional[str] = None,
            service_account: Optional[str] = None,
            streaming_config: Optional[V2ProjectNotificationConfigStreamingConfigArgs] = None) -> V2ProjectNotificationConfig
    func GetV2ProjectNotificationConfig(ctx *Context, name string, id IDInput, state *V2ProjectNotificationConfigState, opts ...ResourceOption) (*V2ProjectNotificationConfig, error)
    public static V2ProjectNotificationConfig Get(string name, Input<string> id, V2ProjectNotificationConfigState? state, CustomResourceOptions? opts = null)
    public static V2ProjectNotificationConfig get(String name, Output<String> id, V2ProjectNotificationConfigState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ConfigId string
    This must be unique within the project.
    Description string
    The description of the notification config (max of 1024 characters).
    Location string
    Location ID of the parent organization. Only global is supported at the moment.
    Name string
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    Project string
    PubsubTopic string
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    ServiceAccount string
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    StreamingConfig V2ProjectNotificationConfigStreamingConfig
    The config for triggering streaming-based notifications. Structure is documented below.
    ConfigId string
    This must be unique within the project.
    Description string
    The description of the notification config (max of 1024 characters).
    Location string
    Location ID of the parent organization. Only global is supported at the moment.
    Name string
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    Project string
    PubsubTopic string
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    ServiceAccount string
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    StreamingConfig V2ProjectNotificationConfigStreamingConfigArgs
    The config for triggering streaming-based notifications. Structure is documented below.
    configId String
    This must be unique within the project.
    description String
    The description of the notification config (max of 1024 characters).
    location String
    Location ID of the parent organization. Only global is supported at the moment.
    name String
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    project String
    pubsubTopic String
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    serviceAccount String
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    streamingConfig V2ProjectNotificationConfigStreamingConfig
    The config for triggering streaming-based notifications. Structure is documented below.
    configId string
    This must be unique within the project.
    description string
    The description of the notification config (max of 1024 characters).
    location string
    Location ID of the parent organization. Only global is supported at the moment.
    name string
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    project string
    pubsubTopic string
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    serviceAccount string
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    streamingConfig V2ProjectNotificationConfigStreamingConfig
    The config for triggering streaming-based notifications. Structure is documented below.
    config_id str
    This must be unique within the project.
    description str
    The description of the notification config (max of 1024 characters).
    location str
    Location ID of the parent organization. Only global is supported at the moment.
    name str
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    project str
    pubsub_topic str
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    service_account str
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    streaming_config V2ProjectNotificationConfigStreamingConfigArgs
    The config for triggering streaming-based notifications. Structure is documented below.
    configId String
    This must be unique within the project.
    description String
    The description of the notification config (max of 1024 characters).
    location String
    Location ID of the parent organization. Only global is supported at the moment.
    name String
    The resource name of this notification config, in the format projects/{{projectId}}/locations/{{location}}/notificationConfigs/{{config_id}}.
    project String
    pubsubTopic String
    The Pub/Sub topic to send notifications to. Its format is "projects/[project_id]/topics/[topic]".
    serviceAccount String
    The service account that needs "pubsub.topics.publish" permission to publish to the Pub/Sub topic.
    streamingConfig Property Map
    The config for triggering streaming-based notifications. Structure is documented below.

    Supporting Types

    V2ProjectNotificationConfigStreamingConfig, V2ProjectNotificationConfigStreamingConfigArgs

    Filter string

    Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND. Restrictions have the form and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are:

    • = for all value types.
    • , <, >=, <= for integer values.

    • :, meaning substring matching, for strings. The supported value types are:
    • string literals in quotes.
    • integer literals without quotes.
    • boolean literals true and false without quotes. See Filtering notifications for information on how to write a filter.

    Filter string

    Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND. Restrictions have the form and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are:

    • = for all value types.
    • , <, >=, <= for integer values.

    • :, meaning substring matching, for strings. The supported value types are:
    • string literals in quotes.
    • integer literals without quotes.
    • boolean literals true and false without quotes. See Filtering notifications for information on how to write a filter.

    filter String

    Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND. Restrictions have the form and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are:

    • = for all value types.
    • , <, >=, <= for integer values.

    • :, meaning substring matching, for strings. The supported value types are:
    • string literals in quotes.
    • integer literals without quotes.
    • boolean literals true and false without quotes. See Filtering notifications for information on how to write a filter.

    filter string

    Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND. Restrictions have the form and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are:

    • = for all value types.
    • , <, >=, <= for integer values.

    • :, meaning substring matching, for strings. The supported value types are:
    • string literals in quotes.
    • integer literals without quotes.
    • boolean literals true and false without quotes. See Filtering notifications for information on how to write a filter.

    filter str

    Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND. Restrictions have the form and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are:

    • = for all value types.
    • , <, >=, <= for integer values.

    • :, meaning substring matching, for strings. The supported value types are:
    • string literals in quotes.
    • integer literals without quotes.
    • boolean literals true and false without quotes. See Filtering notifications for information on how to write a filter.

    filter String

    Expression that defines the filter to apply across create/update events of assets or findings as specified by the event type. The expression is a list of zero or more restrictions combined via logical operators AND and OR. Parentheses are supported, and OR has higher precedence than AND. Restrictions have the form and may have a - character in front of them to indicate negation. The fields map to those defined in the corresponding resource. The supported operators are:

    • = for all value types.
    • , <, >=, <= for integer values.

    • :, meaning substring matching, for strings. The supported value types are:
    • string literals in quotes.
    • integer literals without quotes.
    • boolean literals true and false without quotes. See Filtering notifications for information on how to write a filter.

    Import

    ProjectNotificationConfig can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/notificationConfigs/{{config_id}}

    • {{project}}/{{location}}/{{config_id}}

    • {{location}}/{{config_id}}

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

    $ pulumi import gcp:securitycenter/v2ProjectNotificationConfig:V2ProjectNotificationConfig default projects/{{project}}/locations/{{location}}/notificationConfigs/{{config_id}}
    
    $ pulumi import gcp:securitycenter/v2ProjectNotificationConfig:V2ProjectNotificationConfig default {{project}}/{{location}}/{{config_id}}
    
    $ pulumi import gcp:securitycenter/v2ProjectNotificationConfig:V2ProjectNotificationConfig default {{location}}/{{config_id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi