Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Google Native

v0.9.0 published on Wednesday, Nov 24, 2021 by Pulumi

getTrigger

Get a single trigger.

Using getTrigger

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getTrigger(args: GetTriggerArgs, opts?: InvokeOptions): Promise<GetTriggerResult>
function getTriggerOutput(args: GetTriggerOutputArgs, opts?: InvokeOptions): Output<GetTriggerResult>
def get_trigger(location: Optional[str] = None,
                project: Optional[str] = None,
                trigger_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetTriggerResult
def get_trigger_output(location: Optional[pulumi.Input[str]] = None,
                project: Optional[pulumi.Input[str]] = None,
                trigger_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetTriggerResult]
func LookupTrigger(ctx *Context, args *LookupTriggerArgs, opts ...InvokeOption) (*LookupTriggerResult, error)
func LookupTriggerOutput(ctx *Context, args *LookupTriggerOutputArgs, opts ...InvokeOption) LookupTriggerResultOutput

> Note: This function is named LookupTrigger in the Go SDK.

public static class GetTrigger 
{
    public static Task<GetTriggerResult> InvokeAsync(GetTriggerArgs args, InvokeOptions? opts = null)
    public static Output<GetTriggerResult> Invoke(GetTriggerInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Location string
TriggerId string
Project string
Location string
TriggerId string
Project string
location string
triggerId string
project string

getTrigger Result

The following output properties are available:

CreateTime string
The creation time.
Destination Pulumi.GoogleNative.Eventarc.V1Beta1.Outputs.DestinationResponse
Destination specifies where the events should be sent to.
Etag string
This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.
Labels Dictionary<string, string>
Optional. User labels attached to the triggers that can be used to group resources.
MatchingCriteria List<Pulumi.GoogleNative.Eventarc.V1Beta1.Outputs.MatchingCriteriaResponse>
null The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination.
Name string
The resource name of the trigger. Must be unique within the location on the project and must in projects/{project}/locations/{location}/triggers/{trigger} format.
ServiceAccount string
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have ‘eventarc.events.receiveAuditLogV1Written’ permission.
Transport Pulumi.GoogleNative.Eventarc.V1Beta1.Outputs.TransportResponse
In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
UpdateTime string
The last-modified time.
CreateTime string
The creation time.
Destination DestinationResponse
Destination specifies where the events should be sent to.
Etag string
This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.
Labels map[string]string
Optional. User labels attached to the triggers that can be used to group resources.
MatchingCriteria []MatchingCriteriaResponse
null The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination.
Name string
The resource name of the trigger. Must be unique within the location on the project and must in projects/{project}/locations/{location}/triggers/{trigger} format.
ServiceAccount string
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have ‘eventarc.events.receiveAuditLogV1Written’ permission.
Transport TransportResponse
In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
UpdateTime string
The last-modified time.
createTime string
The creation time.
destination DestinationResponse
Destination specifies where the events should be sent to.
etag string
This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.
labels {[key: string]: string}
Optional. User labels attached to the triggers that can be used to group resources.
matchingCriteria MatchingCriteriaResponse[]
null The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination.
name string
The resource name of the trigger. Must be unique within the location on the project and must in projects/{project}/locations/{location}/triggers/{trigger} format.
serviceAccount string
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have ‘eventarc.events.receiveAuditLogV1Written’ permission.
transport TransportResponse
In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
updateTime string
The last-modified time.
create_time str
The creation time.
destination DestinationResponse
Destination specifies where the events should be sent to.
etag str
This checksum is computed by the server based on the value of other fields, and may be sent only on create requests to ensure the client has an up-to-date value before proceeding.
labels Mapping[str, str]
Optional. User labels attached to the triggers that can be used to group resources.
matching_criteria Sequence[MatchingCriteriaResponse]
null The criteria by which events are filtered. Only events that match with this criteria will be sent to the destination.
name str
The resource name of the trigger. Must be unique within the location on the project and must in projects/{project}/locations/{location}/triggers/{trigger} format.
service_account str
Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have iam.serviceAccounts.actAs permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have ‘eventarc.events.receiveAuditLogV1Written’ permission.
transport TransportResponse
In order to deliver messages, Eventarc may use other GCP products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
update_time str
The last-modified time.

Supporting Types

CloudRunServiceResponse

Path string
Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: “/route”, “route”, “route/subroute”.
Region string
The region the Cloud Run service is deployed in.
Service string
The name of the Cloud run service being addressed (see https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services). Only services located in the same project of the trigger object can be addressed.
Path string
Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: “/route”, “route”, “route/subroute”.
Region string
The region the Cloud Run service is deployed in.
Service string
The name of the Cloud run service being addressed (see https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services). Only services located in the same project of the trigger object can be addressed.
path string
Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: “/route”, “route”, “route/subroute”.
region string
The region the Cloud Run service is deployed in.
service string
The name of the Cloud run service being addressed (see https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services). Only services located in the same project of the trigger object can be addressed.
path str
Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: “/route”, “route”, “route/subroute”.
region str
The region the Cloud Run service is deployed in.
service str
The name of the Cloud run service being addressed (see https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services). Only services located in the same project of the trigger object can be addressed.

DestinationResponse

CloudRunService Pulumi.GoogleNative.Eventarc.V1Beta1.Inputs.CloudRunServiceResponse
Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
CloudRunService CloudRunServiceResponse
Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
cloudRunService CloudRunServiceResponse
Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
cloud_run_service CloudRunServiceResponse
Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.

MatchingCriteriaResponse

Attribute string
The name of a CloudEvents attribute. Currently, only a subset of attributes can be specified. All triggers MUST provide a matching criteria for the ‘type’ attribute.
Value string
The value for the attribute.
Attribute string
The name of a CloudEvents attribute. Currently, only a subset of attributes can be specified. All triggers MUST provide a matching criteria for the ‘type’ attribute.
Value string
The value for the attribute.
attribute string
The name of a CloudEvents attribute. Currently, only a subset of attributes can be specified. All triggers MUST provide a matching criteria for the ‘type’ attribute.
value string
The value for the attribute.
attribute str
The name of a CloudEvents attribute. Currently, only a subset of attributes can be specified. All triggers MUST provide a matching criteria for the ‘type’ attribute.
value str
The value for the attribute.

PubsubResponse

Subscription string
The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
Topic string
Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
Subscription string
The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
Topic string
Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
subscription string
The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
topic string
Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
subscription str
The name of the Pub/Sub subscription created and managed by Eventarc system as a transport for the event delivery. Format: projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.
topic str
Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished only. The topic you provide here will not be deleted by Eventarc at trigger deletion.

TransportResponse

Pubsub Pulumi.GoogleNative.Eventarc.V1Beta1.Inputs.PubsubResponse
The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
Pubsub PubsubResponse
The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
pubsub PubsubResponse
The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
pubsub PubsubResponse
The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.

Package Details

Repository
https://github.com/pulumi/pulumi-google-native
License
Apache-2.0