EventTriggerResponseCloudfunctionsV2 constructor
- required Input<
String> channel, - required Input<
List< eventFilters,EventFilterResponse> > - required Input<
String> eventType, - required Input<
String> pubsubTopic, - required Input<
String> retryPolicy, - required Input<
String> serviceAccountEmail, - required Input<
String> trigger, - required Input<
String> triggerRegion,
Creates a new EventTriggerResponseCloudfunctionsV2.
channel Optional. The name of the channel associated with the trigger in projects/{project}/locations/{location}/channels/{channel} format. You must provide a channel to receive events from Eventarc SaaS partners.
eventFilters Criteria used to filter events.
eventType The type of event to observe. For example: google.cloud.audit.log.v1.written or google.cloud.pubsub.topic.v1.messagePublished.
pubsubTopic Optional. The name of a Pub/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: projects/{project}/topics/{topic}. This is only valid for events of type google.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.
retryPolicy Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
serviceAccountEmail Optional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is run.routes.invoke. If empty, defaults to the Compute Engine default service account: {project_number}-compute@developer.gserviceaccount.com.
trigger The resource name of the Eventarc trigger. The format of this field is projects/{project}/locations/{region}/triggers/{trigger}.
triggerRegion The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.
Implementation
const EventTriggerResponseCloudfunctionsV2({
required this.channel,
required this.eventFilters,
required this.eventType,
required this.pubsubTopic,
required this.retryPolicy,
required this.serviceAccountEmail,
required this.trigger,
required this.triggerRegion,
});