File: //snap/google-cloud-cli/396/help/man/man1/gcloud_eventarc_triggers_update.1
.TH "GCLOUD_EVENTARC_TRIGGERS_UPDATE" 1
.SH "NAME"
.HP
gcloud eventarc triggers update \- update an Eventarc trigger
.SH "SYNOPSIS"
.HP
\f5gcloud eventarc triggers update\fR (\fITRIGGER\fR\ :\ \fB\-\-location\fR=\fILOCATION\fR) [\fB\-\-async\fR] [\fB\-\-event\-data\-content\-type\fR=\fIEVENT_DATA_CONTENT_TYPE\fR] [\fB\-\-event\-filters\fR=[\fIATTRIBUTE\fR=\fIVALUE\fR,...]] [\fB\-\-event\-filters\-path\-pattern\fR=[\fIATTRIBUTE\fR=\fIPATH_PATTERN\fR,...]] [\fB\-\-update\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-clear\-labels\fR\ |\ \fB\-\-remove\-labels\fR=[\fIKEY\fR,...]] [\fB\-\-clear\-service\-account\fR\ |\ \fB\-\-service\-account\fR=\fISERVICE_ACCOUNT\fR] [\fB\-\-destination\-gke\-namespace\fR=\fIDESTINATION_GKE_NAMESPACE\fR\ \fB\-\-destination\-gke\-service\fR=\fIDESTINATION_GKE_SERVICE\fR\ \fB\-\-clear\-destination\-gke\-path\fR\ |\ \fB\-\-destination\-gke\-path\fR=\fIDESTINATION_GKE_PATH\fR\ |\ \fB\-\-destination\-run\-region\fR=\fIDESTINATION_RUN_REGION\fR\ \fB\-\-destination\-run\-service\fR=\fIDESTINATION_RUN_SERVICE\fR\ \fB\-\-clear\-destination\-run\-path\fR\ |\ \fB\-\-destination\-run\-path\fR=\fIDESTINATION_RUN_PATH\fR\ |\ \fB\-\-destination\-workflow\fR=\fIDESTINATION_WORKFLOW\fR\ \fB\-\-destination\-workflow\-location\fR=\fIDESTINATION_WORKFLOW_LOCATION\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
Update an Eventarc trigger.
.SH "EXAMPLES"
To update the trigger \f5\fImy\-trigger\fR\fR by setting its destination Cloud
Run service to \f5\fImy\-service\fR\fR, run:
.RS 2m
$ gcloud eventarc triggers update my\-trigger \e
\-\-destination\-run\-service=my\-service
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
Trigger resource \- The trigger to update. The arguments in this group can be
used to specify the attributes of this resource. (NOTE) Some attributes are not
given arguments in this group but can be set in other ways.
To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5trigger\fR on the command line with a fully specified
name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
This must be specified.
.RS 2m
.TP 2m
\fITRIGGER\fR
ID of the trigger or fully qualified identifier for the trigger.
To set the \f5trigger\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5trigger\fR on the command line.
.RE
.sp
This positional argument must be specified if any of the other arguments in this
group are specified.
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
The location for the Eventarc trigger, which should be either \f5\fIglobal\fR\fR
or one of the supported regions. Alternatively, set the [eventarc/location]
property.
To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5trigger\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-location\fR on the command line;
.IP "\(bu" 2m
set the property \f5eventarc/location\fR.
.RE
.sp
.RE
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-async\fR
Return immediately, without waiting for the operation in progress to complete.
.TP 2m
\fB\-\-event\-data\-content\-type\fR=\fIEVENT_DATA_CONTENT_TYPE\fR
Depending on the event provider, you can specify the encoding of the event data
payload that will be delivered to your destination, to either be encoded in
\f5\fIapplication/json\fR\fR or \f5\fIapplication/protobuf\fR\fR. The default
encoding is \f5\fIapplication/json\fR\fR. Note that for custom sources or
third\-party providers, or for direct events from Cloud Pub/Sub, this formatting
option is not supported.
.TP 2m
\fB\-\-event\-filters\fR=[\fIATTRIBUTE\fR=\fIVALUE\fR,...]
The trigger's list of filters that apply to CloudEvents attributes. This flag
can be repeated to add more filters to the list. Only events that match all
these filters will be sent to the destination. The filters must include the
\f5\fItype\fR\fR attribute, as well as any other attributes that are expected
for the chosen type.
.TP 2m
\fB\-\-event\-filters\-path\-pattern\fR=[\fIATTRIBUTE\fR=\fIPATH_PATTERN\fR,...]
The trigger's list of filters in path pattern format that apply to CloudEvent
attributes. This flag can be repeated to add more filters to the list. Only
events that match all these filters will be sent to the destination. Currently,
path pattern format is only available for the resourceName attribute for Cloud
Audit Log events.
.TP 2m
\fB\-\-update\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]
List of label KEY=VALUE pairs to update. If a label exists, its value is
modified. Otherwise, a new label is created.
Keys must start with a lowercase character and contain only hyphens (\f5\-\fR),
underscores (\f5_\fR), lowercase characters, and numbers. Values must contain
only hyphens (\f5\-\fR), underscores (\f5_\fR), lowercase characters, and
numbers.
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-clear\-labels\fR
Remove all labels. If \f5\-\-update\-labels\fR is also specified then
\f5\-\-clear\-labels\fR is applied first.
For example, to remove all labels:
.RS 2m
$ gcloud eventarc triggers update \-\-clear\-labels
.RE
To remove all existing labels and create two new labels, \f5\fIfoo\fR\fR and
\f5\fIbaz\fR\fR:
.RS 2m
$ gcloud eventarc triggers update \-\-clear\-labels \e
\-\-update\-labels foo=bar,baz=qux
.RE
.TP 2m
\fB\-\-remove\-labels\fR=[\fIKEY\fR,...]
List of label keys to remove. If a label does not exist it is silently ignored.
If \f5\-\-update\-labels\fR is also specified then \f5\-\-update\-labels\fR is
applied first.
.RE
.sp
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-clear\-service\-account\fR
Clear the IAM service account associated with the trigger.
.TP 2m
\fB\-\-service\-account\fR=\fISERVICE_ACCOUNT\fR
The IAM service account email associated with the trigger.
.RE
.sp
.TP 2m
Flags for updating the destination to which events should be sent.
At most one of these can be specified:
.RS 2m
.TP 2m
Flags for updating a GKE service destination.
.RS 2m
.TP 2m
\fB\-\-destination\-gke\-namespace\fR=\fIDESTINATION_GKE_NAMESPACE\fR
Namespace that the destination GKE service is running in. If not specified, the
\f5\fIdefault\fR\fR namespace is used.
.TP 2m
\fB\-\-destination\-gke\-service\fR=\fIDESTINATION_GKE_SERVICE\fR
Name of the destination GKE service that receives the events for the trigger.
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-clear\-destination\-gke\-path\fR
Clear the relative path on the destination GKE service to which the events for
the trigger should be sent.
.TP 2m
\fB\-\-destination\-gke\-path\fR=\fIDESTINATION_GKE_PATH\fR
Relative path on the destination GKE service to which the events for the trigger
should be sent. Examples: \f5\fI/route\fR\fR, \f5\fIroute\fR\fR,
\f5\fIroute/subroute\fR\fR.
.RE
.RE
.sp
.TP 2m
Flags for updating a Cloud Run fully\-managed resource destination.
.RS 2m
.TP 2m
\fB\-\-destination\-run\-region\fR=\fIDESTINATION_RUN_REGION\fR
Region in which the destination Cloud Run service can be found. If not
specified, it is assumed that the service is in the same region as the trigger.
.TP 2m
\fB\-\-destination\-run\-service\fR=\fIDESTINATION_RUN_SERVICE\fR
Name of the Cloud Run fully\-managed service that receives the events for the
trigger. The service must be in the same project as the trigger.
.TP 2m
At most one of these can be specified:
.RS 2m
.TP 2m
\fB\-\-clear\-destination\-run\-path\fR
Clear the relative path on the destination Cloud Run service to which the events
for the trigger should be sent.
.TP 2m
\fB\-\-destination\-run\-path\fR=\fIDESTINATION_RUN_PATH\fR
Relative path on the destination Cloud Run service to which the events for the
trigger should be sent. Examples: \f5\fI/route\fR\fR, \f5\fIroute\fR\fR,
\f5\fIroute/subroute\fR\fR.
.RE
.RE
.sp
.TP 2m
Flags for updating a Cloud Workflows destination.
.RS 2m
.TP 2m
\fB\-\-destination\-workflow\fR=\fIDESTINATION_WORKFLOW\fR
ID of the workflow that receives the events for the trigger. The workflow must
be in the same project as the trigger.
.TP 2m
\fB\-\-destination\-workflow\-location\fR=\fIDESTINATION_WORKFLOW_LOCATION\fR
Location that the destination workflow is running in. If not specified, it is
assumed that the workflow is in the same location as the trigger.
.RE
.RE
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.