Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.eventarc/v1beta1.getTrigger
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
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)
}
public static CompletableFuture<GetTriggerResult> getTrigger(GetTriggerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:eventarc/v1beta1:getTrigger
arguments:
# arguments dictionary
The following arguments are supported:
- location str
- trigger_
id str - project str
getTrigger Result
The following output properties are available:
- Create
Time string - The creation time.
- Destination
Pulumi.
Google Native. Eventarc. V1Beta1. Outputs. Destination Response - 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.
- Matching
Criteria List<Pulumi.Google Native. Eventarc. V1Beta1. Outputs. Matching Criteria Response> - Unordered list. 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. - Service
Account 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.
Google Native. Eventarc. V1Beta1. Outputs. Transport Response - In order to deliver messages, Eventarc may use other Google Cloud products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
- Update
Time string - The last-modified time.
- Create
Time string - The creation time.
- Destination
Destination
Response - 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.
- Matching
Criteria []MatchingCriteria Response - Unordered list. 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. - Service
Account 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
Transport
Response - In order to deliver messages, Eventarc may use other Google Cloud products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
- Update
Time string - The last-modified time.
- create
Time String - The creation time.
- destination
Destination
Response - 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.
- matching
Criteria List<MatchingCriteria Response> - Unordered list. 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. - service
Account 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
Transport
Response - In order to deliver messages, Eventarc may use other Google Cloud products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
- update
Time String - The last-modified time.
- create
Time string - The creation time.
- destination
Destination
Response - 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.
- matching
Criteria MatchingCriteria Response[] - Unordered list. 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. - service
Account 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
Transport
Response - In order to deliver messages, Eventarc may use other Google Cloud products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
- update
Time string - The last-modified time.
- create_
time str - The creation time.
- destination
Destination
Response - 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[MatchingCriteria Response] - Unordered list. 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
Transport
Response - In order to deliver messages, Eventarc may use other Google Cloud 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.
- create
Time String - The creation time.
- destination Property Map
- 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>
- Optional. User labels attached to the triggers that can be used to group resources.
- matching
Criteria List<Property Map> - Unordered list. 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. - service
Account 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 Property Map
- In order to deliver messages, Eventarc may use other Google Cloud products as transport intermediary. This field contains a reference to that transport intermediary. This information can be used for debugging purposes.
- update
Time String - 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 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.
- 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.
DestinationResponse
- Cloud
Run Pulumi.Service Google Native. Eventarc. V1Beta1. Inputs. Cloud Run Service Response - Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
- Cloud
Run CloudService Run Service Response - Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
- cloud
Run CloudService Run Service Response - Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
- cloud
Run CloudService Run Service Response - Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
- cloud_
run_ Cloudservice Run Service Response - Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
- cloud
Run Property MapService - Cloud Run fully-managed service that receives the events. The service should be running in the same project as the trigger.
MatchingCriteriaResponse
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 typegoogle.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 typegoogle.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 typegoogle.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 typegoogle.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 typegoogle.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 typegoogle.cloud.pubsub.topic.v1.messagePublished
only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
TransportResponse
- Pubsub
Pulumi.
Google Native. Eventarc. V1Beta1. Inputs. Pubsub Response - The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
- Pubsub
Pubsub
Response - The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
- pubsub
Pubsub
Response - The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
- pubsub
Pubsub
Response - The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
- pubsub
Pubsub
Response - The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
- pubsub Property Map
- The Pub/Sub topic and subscription used by Eventarc as delivery intermediary.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi