EventTriggerCloudfunctionsV2 class
Describes EventTrigger, used to request events to be sent from another service.
Constructors
-
EventTriggerCloudfunctionsV2({Input<
String> ? channel, Input<List< ? eventFilters, required Input<EventFilter> >String> eventType, Input<String> ? pubsubTopic, Input<EventTriggerRetryPolicy> ? retryPolicy, Input<String> ? serviceAccountEmail, Input<String> ? triggerRegion}) -
Creates a new EventTriggerCloudfunctionsV2.
channelOptional. The name of the channel associated with the trigger inprojects/{project}/locations/{location}/channels/{channel}format. You must provide a channel to receive events from Eventarc SaaS partners.eventFiltersCriteria used to filter events.eventTypeThe type of event to observe. For example:google.cloud.audit.log.v1.writtenorgoogle.cloud.pubsub.topic.v1.messagePublished.pubsubTopicOptional. 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 typegoogle.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.retryPolicyOptional. If unset, then defaults to ignoring failures (i.e. not retrying them).serviceAccountEmailOptional. The email of the trigger's service account. The service account must have permission to invoke Cloud Run services, the permission isrun.routes.invoke. If empty, defaults to the Compute Engine default service account:{project_number}-compute@developer.gserviceaccount.com.triggerRegionThe 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.const -
EventTriggerCloudfunctionsV2.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
channel
→ Input<
String> ? -
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.final -
eventFilters
→ Input<
List< ?EventFilter> > -
Criteria used to filter events.
final
-
eventType
→ Input<
String> -
The type of event to observe. For example:
google.cloud.audit.log.v1.writtenorgoogle.cloud.pubsub.topic.v1.messagePublished.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
pubsubTopic
→ Input<
String> ? -
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 typegoogle.cloud.pubsub.topic.v1.messagePublished. The topic provided here will not be deleted at function deletion.final -
retryPolicy
→ Input<
EventTriggerRetryPolicy> ? -
Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceAccountEmail
→ Input<
String> ? -
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.final -
triggerRegion
→ Input<
String> ? -
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.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited