Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparing with other Yandex Cloud services
    • Overview
    • Function
    • Invoking a function
    • Asynchronous function invocation
    • Long-lived functions
    • Function termination notifications
    • Networking
    • Mounting external resources to a function file system
    • Builder
      • Overview
      • Timer
      • Trigger for Message Queue
      • Trigger for Object Storage
      • Trigger for Container Registry
      • Trigger for Cloud Logging
      • Trigger for Yandex IoT Core
      • Trigger for budgets
      • Trigger for Data Streams
      • Email trigger
      • Telegram Trigger
    • Dead Letter Queue
    • Function logs
    • Backups
    • Quotas and limits
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • Specifics of functions invoked by triggers
  • Filtering events
  • Transforming events
  • Event batching
  • Function invocation retries
  • Use cases
  • Useful links
  1. Concepts
  2. Trigger
  3. Overview

Triggers in Cloud Functions. Overview

Written by
Yandex Cloud
Updated at September 30, 2026
View in Markdown
  • Specifics of functions invoked by triggers
  • Filtering events
  • Transforming events
  • Event batching
  • Function invocation retries
  • Use cases
  • Useful links

A trigger is a condition which, when met, automatically invokes a Cloud Functions function.

A single trigger can invoke several Cloud Functions functions and Serverless Containers containers at the same time and send messages to WebSocket connections of one or more Yandex API Gateway API gateways.

Triggers allow you to automate your work with other Yandex Cloud services, such as Yandex Object Storage, Yandex Message Queue, and Yandex Container Registry.

Note

The trigger is initiated within five minutes after it is created.

The following types of triggers are available in Cloud Functions:

  • Timer
  • Trigger for Message Queue
  • Trigger for Object Storage
  • Trigger for Container Registry
  • Trigger for Cloud Logging
  • Trigger for Yandex IoT Core
  • Trigger for budgets
  • Trigger for Data Streams
  • Email trigger
  • Trigger for Telegram

Each trigger type has its own conditions. For example, a trigger for Object Storage may fire when an object is created or updated. You can set some conditions in the service object settings, e.g., notification thresholds in the budget settings would act as trigger conditions for budgets.

Specifics of functions invoked by triggersSpecifics of functions invoked by triggers

Triggers call functions based on preset quotas and limits.

When a function is called by a trigger, the following specifics apply:

  • Functions are always called by triggers with the ?integration=raw query string parameter. For more on function calls, see Invoking a function in Cloud Functions.
  • Before the trigger delivers messages to a function, it changes their format. Each trigger type uses a message format of its own. For more details, see the relevant trigger description.
  • The service account used to invoke the function needs the functions.functionInvoker role. Other roles required for the trigger to operate correctly depend on trigger type. For more details, see the relevant trigger description.
  • If the trigger is suspended and then restarted by the user, it will not process any events that occurred during its idle time.

Filtering eventsFiltering events

You can configure a filter for each resource invoked in a trigger. The filter is a jq expression applied to the event before delivery. The filter returns a boolean value. If the result is:

  • true, the event is forwarded to the target.
  • false or if the event fails to parse, the event is dropped and not sent.

Filters are defined separately for each target, i.e., a single trigger can deliver different events to different targets. If no filter is set, all events are sent to the target.

Transforming eventsTransforming events

For each target in a trigger, you can specify a jq transformation template that is used to transform the event before it is sent. You can use transformation, e.g., to:

  • Convert the event to the format expected by the target.
  • Keep only the required fields in the event.
  • Add custom fields and values to the event.

The template is defined separately for each target, so one trigger can send different representations of the same event to different targets. If no template is specified, the event is sent to the target as is.

Event batchingEvent batching

The batching settings allow you to send several events to a target at the same time. They set a top limit on the event batch size and accumulation time. For example, if the event batch size is 3, the target can receive batches of one to three events.

You can configure the following triggers to batch events before sending them to a target:

  • Trigger for Message Queue.
  • Trigger for Cloud Logging.
  • Trigger for Object Storage.
  • Trigger for Container Registry.
  • Trigger for Yandex IoT Core.
  • Trigger for Data Streams.
  • Email trigger.
  • Trigger for Telegram.

Function invocation retriesFunction invocation retries

You can configure invoking a function again if the current attempt fails. To do this, in the trigger parameters, specify as follows:

  • Interval: Invocation retry interval.
  • Number of attempts: Number of invocation retries before the trigger sends a message to the dead letter queue.

This setting is available for all trigger types except the trigger for Message Queue.

For more information about invocation retries, see the guide for creating the relevant trigger.

Use casesUse cases

  • Writing device data to a database
  • Streaming Yandex Cloud Postbox events to Yandex Data Streams and analyzing them using Yandex DataLens
  • Configuring responses in Yandex Cloud Logging and Cloud Functions
  • Writing load balancer logs to PostgreSQL
  • Running scheduled computations in DataSphere
  • Creating a budget trigger that invokes a Cloud Functions function to stop VM instances
  • Converting a video to a GIF in Python

Useful linksUseful links

  • Triggers to run a Serverless Containers container
  • Triggers to send messages to WebSocket connections

Was the article helpful?

Previous
Builder
Next
Timer
© 2026 Direct Cursus Technology L.L.C.