Skip to content

GCP.CloudSupport reference

Source: src/GCP/CloudSupport/SupportEventSubscription.ts

A Cloud Support event subscription that publishes case events to a Pub/Sub topic.

Support event subscriptions have no labels field, so Alchemy stamps ownership onto the destination Pub/Sub topic for list / nuke and grants roles/pubsub.publisher to cloud-support-apievents@system.gserviceaccount.com. Organization and subscription id are identity — changing either replaces the subscription. The Pub/Sub topic updates in place. Creating a subscription requires the Cloud Support API and Cloud Customer Care on the organization.

SupportEventSubscription: Creating a Support Event Subscription

Section titled “SupportEventSubscription: Creating a Support Event Subscription”

Generated topic

const sub = yield* GCP.CloudSupport.SupportEventSubscription("Events", {
organization: "organizations/123",
});

Existing Pub/Sub topic

const topic = yield* GCP.PubSub.Topic("SupportEvents", {});
const sub = yield* GCP.CloudSupport.SupportEventSubscription("Events", {
organization: "organizations/123",
pubSubTopic: topic.name,
});

SupportEventSubscription: Updating a Support Event Subscription

Section titled “SupportEventSubscription: Updating a Support Event Subscription”
// Same logical id as before; only the topic changes.
const sub = yield* GCP.CloudSupport.SupportEventSubscription("Events", {
organization: "organizations/123",
pubSubTopic: otherTopic.name,
});