1. Registry
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. cloudsupport
  6. SupportEventSubscription
Viewing docs for Google Cloud v9.34.0
published on Monday, Aug 10, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.34.0
published on Monday, Aug 10, 2026 by Pulumi

    A support event subscription for receiving notifications from Cloud Support API.

    Example Usage

    Cloud Support Event Subscription Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const cloudsupport = new gcp.projects.Service("cloudsupport", {
        project: "my-project-name",
        service: "cloudsupport.googleapis.com",
        disableOnDestroy: false,
    });
    const supportTopic = new gcp.pubsub.Topic("support_topic", {
        project: "my-project-name",
        name: "test-topic-_88722",
    });
    const supportPublisher = new gcp.pubsub.TopicIAMMember("support_publisher", {
        project: "my-project-name",
        topic: supportTopic.id,
        role: "roles/pubsub.publisher",
        member: "serviceAccount:cloud-support-apievents@system.gserviceaccount.com",
    });
    const subscription = new gcp.cloudsupport.SupportEventSubscription("subscription", {
        organization: "123456789",
        pubSubTopic: supportTopic.id,
    }, {
        dependsOn: [
            cloudsupport,
            supportPublisher,
        ],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    cloudsupport = gcp.projects.Service("cloudsupport",
        project="my-project-name",
        service="cloudsupport.googleapis.com",
        disable_on_destroy=False)
    support_topic = gcp.pubsub.Topic("support_topic",
        project="my-project-name",
        name="test-topic-_88722")
    support_publisher = gcp.pubsub.TopicIAMMember("support_publisher",
        project="my-project-name",
        topic=support_topic.id,
        role="roles/pubsub.publisher",
        member="serviceAccount:cloud-support-apievents@system.gserviceaccount.com")
    subscription = gcp.cloudsupport.SupportEventSubscription("subscription",
        organization="123456789",
        pub_sub_topic=support_topic.id,
        opts = pulumi.ResourceOptions(depends_on=[
                cloudsupport,
                support_publisher,
            ]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/cloudsupport"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/projects"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/pubsub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cloudsupport2, err := projects.NewService(ctx, "cloudsupport", &projects.ServiceArgs{
    			Project:          pulumi.String("my-project-name"),
    			Service:          pulumi.String("cloudsupport.googleapis.com"),
    			DisableOnDestroy: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		supportTopic, err := pubsub.NewTopic(ctx, "support_topic", &pubsub.TopicArgs{
    			Project: pulumi.String("my-project-name"),
    			Name:    pulumi.String("test-topic-_88722"),
    		})
    		if err != nil {
    			return err
    		}
    		supportPublisher, err := pubsub.NewTopicIAMMember(ctx, "support_publisher", &pubsub.TopicIAMMemberArgs{
    			Project: pulumi.String("my-project-name"),
    			Topic:   supportTopic.ID().ToIDOutput().ToStringOutput(),
    			Role:    pulumi.String("roles/pubsub.publisher"),
    			Member:  pulumi.String("serviceAccount:cloud-support-apievents@system.gserviceaccount.com"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloudsupport.NewSupportEventSubscription(ctx, "subscription", &cloudsupport.SupportEventSubscriptionArgs{
    			Organization: pulumi.String("123456789"),
    			PubSubTopic:  supportTopic.ID().ToIDOutput().ToStringOutput(),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			cloudsupport2,
    			supportPublisher,
    		}))
    		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 cloudsupport = new Gcp.Projects.Service("cloudsupport", new()
        {
            Project = "my-project-name",
            ServiceName = "cloudsupport.googleapis.com",
            DisableOnDestroy = false,
        });
    
        var supportTopic = new Gcp.PubSub.Topic("support_topic", new()
        {
            Project = "my-project-name",
            Name = "test-topic-_88722",
        });
    
        var supportPublisher = new Gcp.PubSub.TopicIAMMember("support_publisher", new()
        {
            Project = "my-project-name",
            Topic = supportTopic.Id,
            Role = "roles/pubsub.publisher",
            Member = "serviceAccount:cloud-support-apievents@system.gserviceaccount.com",
        });
    
        var subscription = new Gcp.CloudSupport.SupportEventSubscription("subscription", new()
        {
            Organization = "123456789",
            PubSubTopic = supportTopic.Id,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                cloudsupport,
                supportPublisher,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.projects.Service;
    import com.pulumi.gcp.projects.ServiceArgs;
    import com.pulumi.gcp.pubsub.Topic;
    import com.pulumi.gcp.pubsub.TopicArgs;
    import com.pulumi.gcp.pubsub.TopicIAMMember;
    import com.pulumi.gcp.pubsub.TopicIAMMemberArgs;
    import com.pulumi.gcp.cloudsupport.SupportEventSubscription;
    import com.pulumi.gcp.cloudsupport.SupportEventSubscriptionArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 cloudsupport = new Service("cloudsupport", ServiceArgs.builder()
                .project("my-project-name")
                .service("cloudsupport.googleapis.com")
                .disableOnDestroy(false)
                .build());
    
            var supportTopic = new Topic("supportTopic", TopicArgs.builder()
                .project("my-project-name")
                .name("test-topic-_88722")
                .build());
    
            var supportPublisher = new TopicIAMMember("supportPublisher", TopicIAMMemberArgs.builder()
                .project("my-project-name")
                .topic(supportTopic.id())
                .role("roles/pubsub.publisher")
                .member("serviceAccount:cloud-support-apievents@system.gserviceaccount.com")
                .build());
    
            var subscription = new SupportEventSubscription("subscription", SupportEventSubscriptionArgs.builder()
                .organization("123456789")
                .pubSubTopic(supportTopic.id())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        cloudsupport,
                        supportPublisher)
                    .build());
    
        }
    }
    
    resources:
      cloudsupport:
        type: gcp:projects:Service
        properties:
          project: my-project-name
          service: cloudsupport.googleapis.com
          disableOnDestroy: false
      supportTopic:
        type: gcp:pubsub:Topic
        name: support_topic
        properties:
          project: my-project-name
          name: test-topic-_88722
      supportPublisher:
        type: gcp:pubsub:TopicIAMMember
        name: support_publisher
        properties:
          project: my-project-name
          topic: ${supportTopic.id}
          role: roles/pubsub.publisher
          member: serviceAccount:cloud-support-apievents@system.gserviceaccount.com
      subscription:
        type: gcp:cloudsupport:SupportEventSubscription
        properties:
          organization: '123456789'
          pubSubTopic: ${supportTopic.id}
        options:
          dependsOn:
            - ${cloudsupport}
            - ${supportPublisher}
    
    pulumi {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    resource "gcp_projects_service" "cloudsupport" {
      project            = "my-project-name"
      service            = "cloudsupport.googleapis.com"
      disable_on_destroy = false
    }
    resource "gcp_pubsub_topic" "support_topic" {
      project = "my-project-name"
      name    = "test-topic-_88722"
    }
    resource "gcp_pubsub_topiciammember" "support_publisher" {
      project = "my-project-name"
      topic   = gcp_pubsub_topic.support_topic.id
      role    = "roles/pubsub.publisher"
      member  = "serviceAccount:cloud-support-apievents@system.gserviceaccount.com"
    }
    resource "gcp_cloudsupport_supporteventsubscription" "subscription" {
      depends_on    = [gcp_projects_service.cloudsupport, gcp_pubsub_topiciammember.support_publisher]
      organization  = "123456789"
      pub_sub_topic = gcp_pubsub_topic.support_topic.id
    }
    

    Cloud Support Event Subscription Update

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const cloudsupport = new gcp.projects.Service("cloudsupport", {
        project: "my-project-name",
        service: "cloudsupport.googleapis.com",
        disableOnDestroy: false,
    });
    const supportTopic2 = new gcp.pubsub.Topic("support_topic_2", {
        project: "my-project-name",
        name: "test-topic-2-_39249",
    });
    const supportPublisher2 = new gcp.pubsub.TopicIAMMember("support_publisher_2", {
        project: "my-project-name",
        topic: supportTopic2.id,
        role: "roles/pubsub.publisher",
        member: "serviceAccount:cloud-support-apievents@system.gserviceaccount.com",
    });
    const subscription = new gcp.cloudsupport.SupportEventSubscription("subscription", {
        organization: "123456789",
        pubSubTopic: supportTopic2.id,
    }, {
        dependsOn: [
            cloudsupport,
            supportPublisher2,
        ],
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    cloudsupport = gcp.projects.Service("cloudsupport",
        project="my-project-name",
        service="cloudsupport.googleapis.com",
        disable_on_destroy=False)
    support_topic2 = gcp.pubsub.Topic("support_topic_2",
        project="my-project-name",
        name="test-topic-2-_39249")
    support_publisher2 = gcp.pubsub.TopicIAMMember("support_publisher_2",
        project="my-project-name",
        topic=support_topic2.id,
        role="roles/pubsub.publisher",
        member="serviceAccount:cloud-support-apievents@system.gserviceaccount.com")
    subscription = gcp.cloudsupport.SupportEventSubscription("subscription",
        organization="123456789",
        pub_sub_topic=support_topic2.id,
        opts = pulumi.ResourceOptions(depends_on=[
                cloudsupport,
                support_publisher2,
            ]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/cloudsupport"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/projects"
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/pubsub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cloudsupport2, err := projects.NewService(ctx, "cloudsupport", &projects.ServiceArgs{
    			Project:          pulumi.String("my-project-name"),
    			Service:          pulumi.String("cloudsupport.googleapis.com"),
    			DisableOnDestroy: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		supportTopic2, err := pubsub.NewTopic(ctx, "support_topic_2", &pubsub.TopicArgs{
    			Project: pulumi.String("my-project-name"),
    			Name:    pulumi.String("test-topic-2-_39249"),
    		})
    		if err != nil {
    			return err
    		}
    		supportPublisher2, err := pubsub.NewTopicIAMMember(ctx, "support_publisher_2", &pubsub.TopicIAMMemberArgs{
    			Project: pulumi.String("my-project-name"),
    			Topic:   supportTopic2.ID().ToIDOutput().ToStringOutput(),
    			Role:    pulumi.String("roles/pubsub.publisher"),
    			Member:  pulumi.String("serviceAccount:cloud-support-apievents@system.gserviceaccount.com"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cloudsupport.NewSupportEventSubscription(ctx, "subscription", &cloudsupport.SupportEventSubscriptionArgs{
    			Organization: pulumi.String("123456789"),
    			PubSubTopic:  supportTopic2.ID().ToIDOutput().ToStringOutput(),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			cloudsupport2,
    			supportPublisher2,
    		}))
    		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 cloudsupport = new Gcp.Projects.Service("cloudsupport", new()
        {
            Project = "my-project-name",
            ServiceName = "cloudsupport.googleapis.com",
            DisableOnDestroy = false,
        });
    
        var supportTopic2 = new Gcp.PubSub.Topic("support_topic_2", new()
        {
            Project = "my-project-name",
            Name = "test-topic-2-_39249",
        });
    
        var supportPublisher2 = new Gcp.PubSub.TopicIAMMember("support_publisher_2", new()
        {
            Project = "my-project-name",
            Topic = supportTopic2.Id,
            Role = "roles/pubsub.publisher",
            Member = "serviceAccount:cloud-support-apievents@system.gserviceaccount.com",
        });
    
        var subscription = new Gcp.CloudSupport.SupportEventSubscription("subscription", new()
        {
            Organization = "123456789",
            PubSubTopic = supportTopic2.Id,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                cloudsupport,
                supportPublisher2,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.projects.Service;
    import com.pulumi.gcp.projects.ServiceArgs;
    import com.pulumi.gcp.pubsub.Topic;
    import com.pulumi.gcp.pubsub.TopicArgs;
    import com.pulumi.gcp.pubsub.TopicIAMMember;
    import com.pulumi.gcp.pubsub.TopicIAMMemberArgs;
    import com.pulumi.gcp.cloudsupport.SupportEventSubscription;
    import com.pulumi.gcp.cloudsupport.SupportEventSubscriptionArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 cloudsupport = new Service("cloudsupport", ServiceArgs.builder()
                .project("my-project-name")
                .service("cloudsupport.googleapis.com")
                .disableOnDestroy(false)
                .build());
    
            var supportTopic2 = new Topic("supportTopic2", TopicArgs.builder()
                .project("my-project-name")
                .name("test-topic-2-_39249")
                .build());
    
            var supportPublisher2 = new TopicIAMMember("supportPublisher2", TopicIAMMemberArgs.builder()
                .project("my-project-name")
                .topic(supportTopic2.id())
                .role("roles/pubsub.publisher")
                .member("serviceAccount:cloud-support-apievents@system.gserviceaccount.com")
                .build());
    
            var subscription = new SupportEventSubscription("subscription", SupportEventSubscriptionArgs.builder()
                .organization("123456789")
                .pubSubTopic(supportTopic2.id())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(                
                        cloudsupport,
                        supportPublisher2)
                    .build());
    
        }
    }
    
    resources:
      cloudsupport:
        type: gcp:projects:Service
        properties:
          project: my-project-name
          service: cloudsupport.googleapis.com
          disableOnDestroy: false
      supportTopic2:
        type: gcp:pubsub:Topic
        name: support_topic_2
        properties:
          project: my-project-name
          name: test-topic-2-_39249
      supportPublisher2:
        type: gcp:pubsub:TopicIAMMember
        name: support_publisher_2
        properties:
          project: my-project-name
          topic: ${supportTopic2.id}
          role: roles/pubsub.publisher
          member: serviceAccount:cloud-support-apievents@system.gserviceaccount.com
      subscription:
        type: gcp:cloudsupport:SupportEventSubscription
        properties:
          organization: '123456789'
          pubSubTopic: ${supportTopic2.id}
        options:
          dependsOn:
            - ${cloudsupport}
            - ${supportPublisher2}
    
    pulumi {
      required_providers {
        gcp = {
          source = "pulumi/gcp"
        }
      }
    }
    
    resource "gcp_projects_service" "cloudsupport" {
      project            = "my-project-name"
      service            = "cloudsupport.googleapis.com"
      disable_on_destroy = false
    }
    resource "gcp_pubsub_topic" "support_topic_2" {
      project = "my-project-name"
      name    = "test-topic-2-_39249"
    }
    resource "gcp_pubsub_topiciammember" "support_publisher_2" {
      project = "my-project-name"
      topic   = gcp_pubsub_topic.support_topic_2.id
      role    = "roles/pubsub.publisher"
      member  = "serviceAccount:cloud-support-apievents@system.gserviceaccount.com"
    }
    resource "gcp_cloudsupport_supporteventsubscription" "subscription" {
      depends_on    = [gcp_projects_service.cloudsupport, gcp_pubsub_topiciammember.support_publisher_2]
      organization  = "123456789"
      pub_sub_topic = gcp_pubsub_topic.support_topic_2.id
    }
    

    Create SupportEventSubscription Resource

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

    Constructor syntax

    new SupportEventSubscription(name: string, args: SupportEventSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def SupportEventSubscription(resource_name: str,
                                 args: SupportEventSubscriptionArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SupportEventSubscription(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 organization: Optional[str] = None,
                                 pub_sub_topic: Optional[str] = None,
                                 deletion_policy: Optional[str] = None)
    func NewSupportEventSubscription(ctx *Context, name string, args SupportEventSubscriptionArgs, opts ...ResourceOption) (*SupportEventSubscription, error)
    public SupportEventSubscription(string name, SupportEventSubscriptionArgs args, CustomResourceOptions? opts = null)
    public SupportEventSubscription(String name, SupportEventSubscriptionArgs args)
    public SupportEventSubscription(String name, SupportEventSubscriptionArgs args, CustomResourceOptions options)
    
    type: gcp:cloudsupport:SupportEventSubscription
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_cloudsupport_support_event_subscription" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SupportEventSubscriptionArgs
    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 SupportEventSubscriptionArgs
    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 SupportEventSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SupportEventSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SupportEventSubscriptionArgs
    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 supportEventSubscriptionResource = new Gcp.CloudSupport.SupportEventSubscription("supportEventSubscriptionResource", new()
    {
        Organization = "string",
        PubSubTopic = "string",
        DeletionPolicy = "string",
    });
    
    example, err := cloudsupport.NewSupportEventSubscription(ctx, "supportEventSubscriptionResource", &cloudsupport.SupportEventSubscriptionArgs{
    	Organization:   pulumi.String("string"),
    	PubSubTopic:    pulumi.String("string"),
    	DeletionPolicy: pulumi.String("string"),
    })
    
    resource "gcp_cloudsupport_support_event_subscription" "supportEventSubscriptionResource" {
      lifecycle {
        create_before_destroy = true
      }
      organization    = "string"
      pub_sub_topic   = "string"
      deletion_policy = "string"
    }
    
    var supportEventSubscriptionResource = new SupportEventSubscription("supportEventSubscriptionResource", SupportEventSubscriptionArgs.builder()
        .organization("string")
        .pubSubTopic("string")
        .deletionPolicy("string")
        .build());
    
    support_event_subscription_resource = gcp.cloudsupport.SupportEventSubscription("supportEventSubscriptionResource",
        organization="string",
        pub_sub_topic="string",
        deletion_policy="string")
    
    const supportEventSubscriptionResource = new gcp.cloudsupport.SupportEventSubscription("supportEventSubscriptionResource", {
        organization: "string",
        pubSubTopic: "string",
        deletionPolicy: "string",
    });
    
    type: gcp:cloudsupport:SupportEventSubscription
    properties:
        deletionPolicy: string
        organization: string
        pubSubTopic: string
    

    SupportEventSubscription 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 SupportEventSubscription resource accepts the following input properties:

    Organization string
    The organization ID for the support event subscription.
    PubSubTopic string
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    Organization string
    The organization ID for the support event subscription.
    PubSubTopic string
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    organization string
    The organization ID for the support event subscription.
    pub_sub_topic string
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    organization String
    The organization ID for the support event subscription.
    pubSubTopic String
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    organization string
    The organization ID for the support event subscription.
    pubSubTopic string
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    organization str
    The organization ID for the support event subscription.
    pub_sub_topic str
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    organization String
    The organization ID for the support event subscription.
    pubSubTopic String
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.

    Outputs

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

    CreateTime string
    The time at which the subscription was created.
    DeleteTime string
    The time at which the subscription was deleted.
    FailureReason string
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The resource name of the support event subscription.
    PurgeTime string
    The time at which the subscription will be purged.
    State string
    The state of the subscription. Possible values: WORKING FAILING DELETED
    UpdateTime string
    The time at which the subscription was last updated.
    CreateTime string
    The time at which the subscription was created.
    DeleteTime string
    The time at which the subscription was deleted.
    FailureReason string
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Identifier. The resource name of the support event subscription.
    PurgeTime string
    The time at which the subscription will be purged.
    State string
    The state of the subscription. Possible values: WORKING FAILING DELETED
    UpdateTime string
    The time at which the subscription was last updated.
    create_time string
    The time at which the subscription was created.
    delete_time string
    The time at which the subscription was deleted.
    failure_reason string
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. The resource name of the support event subscription.
    purge_time string
    The time at which the subscription will be purged.
    state string
    The state of the subscription. Possible values: WORKING FAILING DELETED
    update_time string
    The time at which the subscription was last updated.
    createTime String
    The time at which the subscription was created.
    deleteTime String
    The time at which the subscription was deleted.
    failureReason String
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The resource name of the support event subscription.
    purgeTime String
    The time at which the subscription will be purged.
    state String
    The state of the subscription. Possible values: WORKING FAILING DELETED
    updateTime String
    The time at which the subscription was last updated.
    createTime string
    The time at which the subscription was created.
    deleteTime string
    The time at which the subscription was deleted.
    failureReason string
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Identifier. The resource name of the support event subscription.
    purgeTime string
    The time at which the subscription will be purged.
    state string
    The state of the subscription. Possible values: WORKING FAILING DELETED
    updateTime string
    The time at which the subscription was last updated.
    create_time str
    The time at which the subscription was created.
    delete_time str
    The time at which the subscription was deleted.
    failure_reason str
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Identifier. The resource name of the support event subscription.
    purge_time str
    The time at which the subscription will be purged.
    state str
    The state of the subscription. Possible values: WORKING FAILING DELETED
    update_time str
    The time at which the subscription was last updated.
    createTime String
    The time at which the subscription was created.
    deleteTime String
    The time at which the subscription was deleted.
    failureReason String
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Identifier. The resource name of the support event subscription.
    purgeTime String
    The time at which the subscription will be purged.
    state String
    The state of the subscription. Possible values: WORKING FAILING DELETED
    updateTime String
    The time at which the subscription was last updated.

    Look up Existing SupportEventSubscription Resource

    Get an existing SupportEventSubscription 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?: SupportEventSubscriptionState, opts?: CustomResourceOptions): SupportEventSubscription
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            delete_time: Optional[str] = None,
            deletion_policy: Optional[str] = None,
            failure_reason: Optional[str] = None,
            name: Optional[str] = None,
            organization: Optional[str] = None,
            pub_sub_topic: Optional[str] = None,
            purge_time: Optional[str] = None,
            state: Optional[str] = None,
            update_time: Optional[str] = None) -> SupportEventSubscription
    func GetSupportEventSubscription(ctx *Context, name string, id IDInput, state *SupportEventSubscriptionState, opts ...ResourceOption) (*SupportEventSubscription, error)
    public static SupportEventSubscription Get(string name, Input<string> id, SupportEventSubscriptionState? state, CustomResourceOptions? opts = null)
    public static SupportEventSubscription get(String name, Output<String> id, SupportEventSubscriptionState state, CustomResourceOptions options)
    resources:  _:    type: gcp:cloudsupport:SupportEventSubscription    get:      id: ${id}
    import {
      to = gcp_cloudsupport_support_event_subscription.example
      id = "${id}"
    }
    
    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:
    CreateTime string
    The time at which the subscription was created.
    DeleteTime string
    The time at which the subscription was deleted.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    FailureReason string
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    Name string
    Identifier. The resource name of the support event subscription.
    Organization string
    The organization ID for the support event subscription.
    PubSubTopic string
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    PurgeTime string
    The time at which the subscription will be purged.
    State string
    The state of the subscription. Possible values: WORKING FAILING DELETED
    UpdateTime string
    The time at which the subscription was last updated.
    CreateTime string
    The time at which the subscription was created.
    DeleteTime string
    The time at which the subscription was deleted.
    DeletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    FailureReason string
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    Name string
    Identifier. The resource name of the support event subscription.
    Organization string
    The organization ID for the support event subscription.
    PubSubTopic string
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    PurgeTime string
    The time at which the subscription will be purged.
    State string
    The state of the subscription. Possible values: WORKING FAILING DELETED
    UpdateTime string
    The time at which the subscription was last updated.
    create_time string
    The time at which the subscription was created.
    delete_time string
    The time at which the subscription was deleted.
    deletion_policy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    failure_reason string
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    name string
    Identifier. The resource name of the support event subscription.
    organization string
    The organization ID for the support event subscription.
    pub_sub_topic string
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    purge_time string
    The time at which the subscription will be purged.
    state string
    The state of the subscription. Possible values: WORKING FAILING DELETED
    update_time string
    The time at which the subscription was last updated.
    createTime String
    The time at which the subscription was created.
    deleteTime String
    The time at which the subscription was deleted.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    failureReason String
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    name String
    Identifier. The resource name of the support event subscription.
    organization String
    The organization ID for the support event subscription.
    pubSubTopic String
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    purgeTime String
    The time at which the subscription will be purged.
    state String
    The state of the subscription. Possible values: WORKING FAILING DELETED
    updateTime String
    The time at which the subscription was last updated.
    createTime string
    The time at which the subscription was created.
    deleteTime string
    The time at which the subscription was deleted.
    deletionPolicy string
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    failureReason string
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    name string
    Identifier. The resource name of the support event subscription.
    organization string
    The organization ID for the support event subscription.
    pubSubTopic string
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    purgeTime string
    The time at which the subscription will be purged.
    state string
    The state of the subscription. Possible values: WORKING FAILING DELETED
    updateTime string
    The time at which the subscription was last updated.
    create_time str
    The time at which the subscription was created.
    delete_time str
    The time at which the subscription was deleted.
    deletion_policy str
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    failure_reason str
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    name str
    Identifier. The resource name of the support event subscription.
    organization str
    The organization ID for the support event subscription.
    pub_sub_topic str
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    purge_time str
    The time at which the subscription will be purged.
    state str
    The state of the subscription. Possible values: WORKING FAILING DELETED
    update_time str
    The time at which the subscription was last updated.
    createTime String
    The time at which the subscription was created.
    deleteTime String
    The time at which the subscription was deleted.
    deletionPolicy String
    Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. When a 'terraform destroy' or 'pulumi up' would delete the resource, the command will fail if this field is set to "PREVENT" in Terraform state. When set to "ABANDON", the command will remove the resource from Terraform management without updating or deleting the resource in the API. When set to "DELETE", deleting the resource is allowed.
    failureReason String
    Reason why subscription is failing. State of subscription must be FAILING in order for this to have a value. Possible values: PERMISSION_DENIED TOPIC_NOT_FOUND OTHER
    name String
    Identifier. The resource name of the support event subscription.
    organization String
    The organization ID for the support event subscription.
    pubSubTopic String
    The name of the Pub/Sub topic to publish notifications to. Format: projects/{project}/topics/{topic}
    purgeTime String
    The time at which the subscription will be purged.
    state String
    The state of the subscription. Possible values: WORKING FAILING DELETED
    updateTime String
    The time at which the subscription was last updated.

    Import

    SupportEventSubscription can be imported using any of these accepted formats:

    • organizations/{{organization}}/supportEventSubscriptions/{{name}}
    • {{organization}}/{{name}}
    • {{name}}

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

    $ pulumi import gcp:cloudsupport/supportEventSubscription:SupportEventSubscription default organizations/{{organization}}/supportEventSubscriptions/{{name}}
    $ pulumi import gcp:cloudsupport/supportEventSubscription:SupportEventSubscription default {{organization}}/{{name}}
    $ pulumi import gcp:cloudsupport/supportEventSubscription:SupportEventSubscription default {{name}}
    

    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
    Viewing docs for Google Cloud v9.34.0
    published on Monday, Aug 10, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial