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.V1.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.
EventFilters List<Pulumi.GoogleNative.Eventarc.V1.Outputs.EventFilterResponse>
null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.
Labels Dictionary<string, string>
Optional. User labels attached to the triggers that can be used to group resources.
Name string
The resource name of the trigger. Must be unique within the location on the project and must be 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 roles/eventarc.eventReceiver IAM role.
Transport Pulumi.GoogleNative.Eventarc.V1.Outputs.TransportResponse
Optional. 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.
Uid string
Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
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.
EventFilters []EventFilterResponse
null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.
Labels map[string]string
Optional. User labels attached to the triggers that can be used to group resources.
Name string
The resource name of the trigger. Must be unique within the location on the project and must be 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 roles/eventarc.eventReceiver IAM role.
Transport TransportResponse
Optional. 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.
Uid string
Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
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.
eventFilters EventFilterResponse[]
null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.
labels {[key: string]: string}
Optional. User labels attached to the triggers that can be used to group resources.
name string
The resource name of the trigger. Must be unique within the location on the project and must be 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 roles/eventarc.eventReceiver IAM role.
transport TransportResponse
Optional. 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.
uid string
Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
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.
event_filters Sequence[EventFilterResponse]
null The list of filters that applies to event attributes. Only events that match all the provided filters will be sent to the destination.
labels Mapping[str, str]
Optional. User labels attached to the triggers that can be used to group resources.
name str
The resource name of the trigger. Must be unique within the location on the project and must be 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 roles/eventarc.eventReceiver IAM role.
transport TransportResponse
Optional. 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.
uid str
Server assigned unique identifier for the trigger. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
update_time str
The last-modified time.

Supporting Types

CloudRunResponse

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

CloudRun Pulumi.GoogleNative.Eventarc.V1.Inputs.CloudRunResponse
Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
Gke Pulumi.GoogleNative.Eventarc.V1.Inputs.GKEResponse
A GKE service capable of receiving events. The service should be running in the same project of the trigger.
CloudRun CloudRunResponse
Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
Gke GKEResponse
A GKE service capable of receiving events. The service should be running in the same project of the trigger.
cloudRun CloudRunResponse
Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
gke GKEResponse
A GKE service capable of receiving events. The service should be running in the same project of the trigger.
cloud_run CloudRunResponse
Cloud Run fully-managed service that receives the events. The service should be running in the same project of the trigger.
gke GKEResponse
A GKE service capable of receiving events. The service should be running in the same project of the trigger.

EventFilterResponse

Attribute string
The name of a CloudEvents attribute. Currently, only a subset of attributes are supported for filtering. All triggers MUST provide a filter 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 are supported for filtering. All triggers MUST provide a filter 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 are supported for filtering. All triggers MUST provide a filter 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 are supported for filtering. All triggers MUST provide a filter for the ‘type’ attribute.
value str
The value for the attribute.

GKEResponse

Cluster string
The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
Location string
The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (e.g. us-central1-a) for the zonal clusters or region (e.g. us-central1) for regional clusters.
Namespace string
The namespace the GKE service is running in.
Path string
Optional. The relative path on the GKE 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”.
Service string
Name of the GKE service.
Cluster string
The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
Location string
The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (e.g. us-central1-a) for the zonal clusters or region (e.g. us-central1) for regional clusters.
Namespace string
The namespace the GKE service is running in.
Path string
Optional. The relative path on the GKE 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”.
Service string
Name of the GKE service.
cluster string
The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
location string
The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (e.g. us-central1-a) for the zonal clusters or region (e.g. us-central1) for regional clusters.
namespace string
The namespace the GKE service is running in.
path string
Optional. The relative path on the GKE 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”.
service string
Name of the GKE service.
cluster str
The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
location str
The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (e.g. us-central1-a) for the zonal clusters or region (e.g. us-central1) for regional clusters.
namespace str
The namespace the GKE service is running in.
path str
Optional. The relative path on the GKE 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”.
service str
Name of the GKE service.

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.V1.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