Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • Машинное обучение
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Истории успеха
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Serverless Containers
  • Сопоставление с другими сервисами Yandex Cloud
  • Управление доступом
  • Правила тарификации
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • Pause
        • Resume
        • ListOperations
  • Аудитные логи Audit Trails
  • История изменений
  • Вопросы и ответы

В этой статье:

  • gRPC request
  • CreateTriggerRequest
  • Rule
  • Timer
  • InvokeFunctionOnce
  • InvokeFunctionWithRetry
  • RetrySettings
  • PutQueueMessage
  • InvokeContainerWithRetry
  • GatewayWebsocketBroadcast
  • MessageQueue
  • BatchSettings
  • InvokeContainerOnce
  • IoTMessage
  • IoTBrokerMessage
  • ObjectStorage
  • ContainerRegistry
  • CloudLogs
  • CloudLogsBatchSettings
  • Logging
  • LoggingBatchSettings
  • BillingBudget
  • DataStream
  • DataStreamBatchSettings
  • Mail
  • ObjectStorageBucketSettings
  • operation.Operation
  • CreateTriggerMetadata
  • Trigger
  • Rule
  • Timer
  • InvokeFunctionOnce
  • InvokeFunctionWithRetry
  • RetrySettings
  • PutQueueMessage
  • InvokeContainerWithRetry
  • GatewayWebsocketBroadcast
  • MessageQueue
  • BatchSettings
  • InvokeContainerOnce
  • IoTMessage
  • IoTBrokerMessage
  • ObjectStorage
  • ContainerRegistry
  • CloudLogs
  • CloudLogsBatchSettings
  • Logging
  • LoggingBatchSettings
  • BillingBudget
  • DataStream
  • DataStreamBatchSettings
  • Mail
  • ObjectStorageBucketSettings
  1. Справочник API Triggers
  2. gRPC (англ.)
  3. Trigger
  4. Create

Cloud Functions Triggers Service, gRPC: TriggerService.Create

Статья создана
Yandex Cloud
Обновлена 17 декабря 2024 г.
  • gRPC request
  • CreateTriggerRequest
  • Rule
  • Timer
  • InvokeFunctionOnce
  • InvokeFunctionWithRetry
  • RetrySettings
  • PutQueueMessage
  • InvokeContainerWithRetry
  • GatewayWebsocketBroadcast
  • MessageQueue
  • BatchSettings
  • InvokeContainerOnce
  • IoTMessage
  • IoTBrokerMessage
  • ObjectStorage
  • ContainerRegistry
  • CloudLogs
  • CloudLogsBatchSettings
  • Logging
  • LoggingBatchSettings
  • BillingBudget
  • DataStream
  • DataStreamBatchSettings
  • Mail
  • ObjectStorageBucketSettings
  • operation.Operation
  • CreateTriggerMetadata
  • Trigger
  • Rule
  • Timer
  • InvokeFunctionOnce
  • InvokeFunctionWithRetry
  • RetrySettings
  • PutQueueMessage
  • InvokeContainerWithRetry
  • GatewayWebsocketBroadcast
  • MessageQueue
  • BatchSettings
  • InvokeContainerOnce
  • IoTMessage
  • IoTBrokerMessage
  • ObjectStorage
  • ContainerRegistry
  • CloudLogs
  • CloudLogsBatchSettings
  • Logging
  • LoggingBatchSettings
  • BillingBudget
  • DataStream
  • DataStreamBatchSettings
  • Mail
  • ObjectStorageBucketSettings

Creates a trigger in the specified folder.

gRPC requestgRPC request

rpc Create (CreateTriggerRequest) returns (operation.Operation)

CreateTriggerRequestCreateTriggerRequest

{
  "folder_id": "string",
  "name": "string",
  "description": "string",
  "labels": "map<string, string>",
  "rule": {
    // Includes only one of the fields `timer`, `message_queue`, `iot_message`, `iot_broker_message`, `object_storage`, `container_registry`, `cloud_logs`, `logging`, `billing_budget`, `data_stream`, `mail`
    "timer": {
      "cron_expression": "string",
      "payload": "string",
      // Includes only one of the fields `invoke_function`, `invoke_function_with_retry`, `invoke_container_with_retry`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string"
      },
      "invoke_function_with_retry": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container_with_retry": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    },
    "message_queue": {
      "queue_id": "string",
      "service_account_id": "string",
      "batch_settings": {
        "size": "int64",
        "cutoff": "google.protobuf.Duration"
      },
      "visibility_timeout": "google.protobuf.Duration",
      // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string"
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string"
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    },
    "iot_message": {
      "registry_id": "string",
      "device_id": "string",
      "mqtt_topic": "string",
      "batch_settings": {
        "size": "int64",
        "cutoff": "google.protobuf.Duration"
      },
      // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    },
    "iot_broker_message": {
      "broker_id": "string",
      "mqtt_topic": "string",
      "batch_settings": {
        "size": "int64",
        "cutoff": "google.protobuf.Duration"
      },
      // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    },
    "object_storage": {
      "event_type": [
        "ObjectStorageEventType"
      ],
      "bucket_id": "string",
      "prefix": "string",
      "suffix": "string",
      "batch_settings": {
        "size": "int64",
        "cutoff": "google.protobuf.Duration"
      },
      // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    },
    "container_registry": {
      "event_type": [
        "ContainerRegistryEventType"
      ],
      "registry_id": "string",
      "image_name": "string",
      "tag": "string",
      "batch_settings": {
        "size": "int64",
        "cutoff": "google.protobuf.Duration"
      },
      // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    },
    "cloud_logs": {
      "log_group_id": [
        "string"
      ],
      "batch_settings": {
        "size": "int64",
        "cutoff": "google.protobuf.Duration"
      },
      // Includes only one of the fields `invoke_function`, `invoke_container`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      }
      // end of the list of possible fields
    },
    "logging": {
      "log_group_id": "string",
      "resource_type": [
        "string"
      ],
      "resource_id": [
        "string"
      ],
      "stream_name": [
        "string"
      ],
      "levels": [
        "Level"
      ],
      "batch_settings": {
        "size": "int64",
        "cutoff": "google.protobuf.Duration"
      },
      // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    },
    "billing_budget": {
      "billing_account_id": "string",
      "budget_id": "string",
      // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    },
    "data_stream": {
      "endpoint": "string",
      "database": "string",
      "stream": "string",
      "service_account_id": "string",
      "batch_settings": {
        "size": "int64",
        "cutoff": "google.protobuf.Duration"
      },
      // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    },
    "mail": {
      "email": "string",
      "batch_settings": {
        "size": "int64",
        "cutoff": "google.protobuf.Duration"
      },
      "attachments_bucket": {
        "bucket_id": "string",
        "service_account_id": "string"
      },
      // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
      "invoke_function": {
        "function_id": "string",
        "function_tag": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "invoke_container": {
        "container_id": "string",
        "path": "string",
        "service_account_id": "string",
        "retry_settings": {
          "retry_attempts": "int64",
          "interval": "google.protobuf.Duration"
        },
        "dead_letter_queue": {
          "queue_id": "string",
          "service_account_id": "string"
        }
      },
      "gateway_websocket_broadcast": {
        "gateway_id": "string",
        "path": "string",
        "service_account_id": "string"
      }
      // end of the list of possible fields
    }
    // end of the list of possible fields
  }
}

Field

Description

folder_id

string

Required field. ID of the folder to create a trigger in.

To get a folder ID make a yandex.cloud.resourcemanager.v1.FolderService.List request.

name

string

Name of the trigger.
The name must be unique within the folder.

description

string

Description of the trigger.

labels

object (map<string, string>)

Resource labels as key:value pairs.

rule

Rule

Required field. Trigger type.

RuleRule

Description of a rule for trigger activation.

Field

Description

timer

Timer

Rule for a timed trigger.

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

message_queue

MessageQueue

Rule for a message queue trigger.

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

iot_message

IoTMessage

Rule for a IoT Core trigger.

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

iot_broker_message

IoTBrokerMessage

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

object_storage

ObjectStorage

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

container_registry

ContainerRegistry

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

cloud_logs

CloudLogs

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

logging

Logging

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

billing_budget

BillingBudget

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

data_stream

DataStream

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

mail

Mail

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

TimerTimer

Rule for activating a timed trigger.

Field

Description

cron_expression

string

Required field. Description of a schedule as a cron expression.

payload

string

Payload to be passed to function.

invoke_function

InvokeFunctionOnce

Instructions for invoking a function once.

Includes only one of the fields invoke_function, invoke_function_with_retry, invoke_container_with_retry, gateway_websocket_broadcast.

Action to be executed when the current time matches the cron_expression.

invoke_function_with_retry

InvokeFunctionWithRetry

Instructions for invoking a function with retry.

Includes only one of the fields invoke_function, invoke_function_with_retry, invoke_container_with_retry, gateway_websocket_broadcast.

Action to be executed when the current time matches the cron_expression.

invoke_container_with_retry

InvokeContainerWithRetry

Instructions for invoking a container with retry.

Includes only one of the fields invoke_function, invoke_function_with_retry, invoke_container_with_retry, gateway_websocket_broadcast.

Action to be executed when the current time matches the cron_expression.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_function_with_retry, invoke_container_with_retry, gateway_websocket_broadcast.

Action to be executed when the current time matches the cron_expression.

InvokeFunctionOnceInvokeFunctionOnce

A single function invocation.

Field

Description

function_id

string

Required field. ID of the function to invoke.

function_tag

string

Version tag of the function to execute.

service_account_id

string

ID of the service account that should be used to invoke the function.

InvokeFunctionWithRetryInvokeFunctionWithRetry

A function invocation with retries.

Field

Description

function_id

string

Required field. ID of the function to invoke.

function_tag

string

Version tag of the function to execute.

service_account_id

string

ID of the service account which has permission to invoke the function.

retry_settings

RetrySettings

Retry policy. If the field is not specified, or the value is empty, no retries will be attempted.

dead_letter_queue

PutQueueMessage

DLQ policy (no value means discarding a message).

RetrySettingsRetrySettings

Settings for retrying to invoke a function.

Field

Description

retry_attempts

int64

Maximum number of retries (extra invokes) before the action is considered failed.

interval

google.protobuf.Duration

Required field. Time in seconds to wait between individual retries.

PutQueueMessagePutQueueMessage

Field

Description

queue_id

string

ID of the queue.

service_account_id

string

Required field. Service account which has write permission on the queue.

InvokeContainerWithRetryInvokeContainerWithRetry

A container invocation with retries.

Field

Description

container_id

string

Required field. ID of the container to invoke.

path

string

Endpoint HTTP path to invoke.

service_account_id

string

ID of the service account which has permission to invoke the container.

retry_settings

RetrySettings

Retry policy. If the field is not specified, or the value is empty, no retries will be attempted.

dead_letter_queue

PutQueueMessage

DLQ policy (no value means discarding a message).

GatewayWebsocketBroadcastGatewayWebsocketBroadcast

Field

Description

gateway_id

string

Required field.

path

string

Required field.

service_account_id

string

Required field. sa which has permission for writing to websockets

MessageQueueMessageQueue

Rule for activating a message queue trigger.

Field

Description

queue_id

string

Required field. ID of the message queue in Message Queue.

service_account_id

string

Required field. ID of the service account which has read access to the message queue.

batch_settings

BatchSettings

Required field. Batch settings for processing messages in the queue.

visibility_timeout

google.protobuf.Duration

Queue visibility timeout override.

invoke_function

InvokeFunctionOnce

Instructions for invoking a function once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the queue.

invoke_container

InvokeContainerOnce

Instructions for invoking a container once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the queue.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the queue.

BatchSettingsBatchSettings

Settings for batch processing of messages in a queue.

Field

Description

size

int64

Batch size. Trigger will send the batch of messages to the function
when the number of messages in the queue reaches size, or the cutoff time has passed.

cutoff

google.protobuf.Duration

Required field. Maximum wait time. Trigger will send the batch of messages to the function when
the number of messages in the queue reaches size, or the cutoff time has passed.

InvokeContainerOnceInvokeContainerOnce

A single container invocation.

Field

Description

container_id

string

Required field. ID of the container to invoke.

path

string

Endpoint HTTP path to invoke.

service_account_id

string

ID of the service account which has permission to invoke the container.

IoTMessageIoTMessage

Rule for activating a IoT Core trigger.

Field

Description

registry_id

string

Required field. ID of the IoT Core registry.

device_id

string

ID of the IoT Core device in the registry.

mqtt_topic

string

MQTT topic whose messages activate the trigger.

batch_settings

BatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

IoTBrokerMessageIoTBrokerMessage

Rule for activating a IoT Core Broker trigger.

Field

Description

broker_id

string

Required field. ID of the IoT Core broker.

mqtt_topic

string

MQTT topic whose messages activate the trigger.

batch_settings

BatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

ObjectStorageObjectStorage

Field

Description

event_type[]

enum ObjectStorageEventType

Type (name) of events, at least one value is required.

  • OBJECT_STORAGE_EVENT_TYPE_UNSPECIFIED
  • OBJECT_STORAGE_EVENT_TYPE_CREATE_OBJECT
  • OBJECT_STORAGE_EVENT_TYPE_UPDATE_OBJECT
  • OBJECT_STORAGE_EVENT_TYPE_DELETE_OBJECT

bucket_id

string

ID of the bucket.

prefix

string

Prefix of the object key. Filter, optional.

suffix

string

Suffix of the object key. Filter, optional.

batch_settings

BatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

ContainerRegistryContainerRegistry

Field

Description

event_type[]

enum ContainerRegistryEventType

Type (name) of events, at least one value is required.

  • CONTAINER_REGISTRY_EVENT_TYPE_UNSPECIFIED
  • CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE
  • CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE
  • CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE_TAG
  • CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE_TAG

registry_id

string

ID of the registry.

image_name

string

Docker-image name. Filter, optional.

tag

string

Docker-image tag. Filter, optional.

batch_settings

BatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

CloudLogsCloudLogs

Field

Description

log_group_id[]

string

Log group identifiers, at least one value is required.

batch_settings

CloudLogsBatchSettings

Required field. Batch settings for processing log events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container.

CloudLogsBatchSettingsCloudLogsBatchSettings

Field

Description

size

int64

Batch size. Trigger will send the batch of messages to the function
when the number of messages in the log group reaches size, or the cutoff time has passed.

cutoff

google.protobuf.Duration

Maximum wait time. Trigger will send the batch of messages to the function when
the number of messages in the log group reaches size, or the cutoff time has passed.

LoggingLogging

Field

Description

log_group_id

string

Log events filter settings.

resource_type[]

string

resource_id[]

string

stream_name[]

string

levels[]

enum Level

  • LEVEL_UNSPECIFIED: Default log level.

    Equivalent to not specifying log level at all.

  • TRACE: Trace log level.

    Possible use case: verbose logging of some business logic.

  • DEBUG: Debug log level.

    Possible use case: debugging special cases in application logic.

  • INFO: Info log level.

    Mostly used for information messages.

  • WARN: Warn log level.

    May be used to alert about significant events.

  • ERROR: Error log level.

    May be used to alert about errors in infrastructure, logic, etc.

  • FATAL: Fatal log level.

    May be used to alert about unrecoverable failures and events.

batch_settings

LoggingBatchSettings

Required field. Batch settings for processing log events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

LoggingBatchSettingsLoggingBatchSettings

Field

Description

size

int64

Batch size. Trigger will send the batch of messages to the associated function
when the number of log events reaches this value, or the cutoff time has passed.

cutoff

google.protobuf.Duration

Maximum wait time. Trigger will send the batch of messages the time since the last batch
exceeds the cutoff value, regardless of the amount of log events.

BillingBudgetBillingBudget

Field

Description

billing_account_id

string

Required field.

budget_id

string

invoke_function

InvokeFunctionWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

DataStreamDataStream

Field

Description

endpoint

string

Data stream endpoint.

database

string

Data stream database.

stream

string

Stream name.

service_account_id

string

ID of the service account which has permission to read data stream.

batch_settings

DataStreamBatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

DataStreamBatchSettingsDataStreamBatchSettings

Field

Description

size

int64

Batch size in bytes. Trigger will send the batch of messages to the associated function
when size of log events reaches this value, or the cutoff time has passed.

cutoff

google.protobuf.Duration

Maximum wait time. Trigger will send the batch of messages the time since the last batch
exceeds the cutoff value, regardless of the amount of log events.

MailMail

Field

Description

email

string

Address to receive emails for trigger activation.
Field is ignored for write requests and populated on trigger creation.

batch_settings

BatchSettings

Batch settings for processing events.

attachments_bucket

ObjectStorageBucketSettings

Bucket settings for saving attachments.

invoke_function

InvokeFunctionWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

ObjectStorageBucketSettingsObjectStorageBucketSettings

Field

Description

bucket_id

string

Bucket for saving.

service_account_id

string

Required field. SA which has write permission on storage.

operation.Operationoperation.Operation

{
  "id": "string",
  "description": "string",
  "created_at": "google.protobuf.Timestamp",
  "created_by": "string",
  "modified_at": "google.protobuf.Timestamp",
  "done": "bool",
  "metadata": {
    "trigger_id": "string"
  },
  // Includes only one of the fields `error`, `response`
  "error": "google.rpc.Status",
  "response": {
    "id": "string",
    "folder_id": "string",
    "created_at": "google.protobuf.Timestamp",
    "name": "string",
    "description": "string",
    "labels": "map<string, string>",
    "rule": {
      // Includes only one of the fields `timer`, `message_queue`, `iot_message`, `iot_broker_message`, `object_storage`, `container_registry`, `cloud_logs`, `logging`, `billing_budget`, `data_stream`, `mail`
      "timer": {
        "cron_expression": "string",
        "payload": "string",
        // Includes only one of the fields `invoke_function`, `invoke_function_with_retry`, `invoke_container_with_retry`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string"
        },
        "invoke_function_with_retry": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container_with_retry": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      },
      "message_queue": {
        "queue_id": "string",
        "service_account_id": "string",
        "batch_settings": {
          "size": "int64",
          "cutoff": "google.protobuf.Duration"
        },
        "visibility_timeout": "google.protobuf.Duration",
        // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string"
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string"
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      },
      "iot_message": {
        "registry_id": "string",
        "device_id": "string",
        "mqtt_topic": "string",
        "batch_settings": {
          "size": "int64",
          "cutoff": "google.protobuf.Duration"
        },
        // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      },
      "iot_broker_message": {
        "broker_id": "string",
        "mqtt_topic": "string",
        "batch_settings": {
          "size": "int64",
          "cutoff": "google.protobuf.Duration"
        },
        // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      },
      "object_storage": {
        "event_type": [
          "ObjectStorageEventType"
        ],
        "bucket_id": "string",
        "prefix": "string",
        "suffix": "string",
        "batch_settings": {
          "size": "int64",
          "cutoff": "google.protobuf.Duration"
        },
        // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      },
      "container_registry": {
        "event_type": [
          "ContainerRegistryEventType"
        ],
        "registry_id": "string",
        "image_name": "string",
        "tag": "string",
        "batch_settings": {
          "size": "int64",
          "cutoff": "google.protobuf.Duration"
        },
        // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      },
      "cloud_logs": {
        "log_group_id": [
          "string"
        ],
        "batch_settings": {
          "size": "int64",
          "cutoff": "google.protobuf.Duration"
        },
        // Includes only one of the fields `invoke_function`, `invoke_container`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        }
        // end of the list of possible fields
      },
      "logging": {
        "log_group_id": "string",
        "resource_type": [
          "string"
        ],
        "resource_id": [
          "string"
        ],
        "stream_name": [
          "string"
        ],
        "levels": [
          "Level"
        ],
        "batch_settings": {
          "size": "int64",
          "cutoff": "google.protobuf.Duration"
        },
        // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      },
      "billing_budget": {
        "billing_account_id": "string",
        "budget_id": "string",
        // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      },
      "data_stream": {
        "endpoint": "string",
        "database": "string",
        "stream": "string",
        "service_account_id": "string",
        "batch_settings": {
          "size": "int64",
          "cutoff": "google.protobuf.Duration"
        },
        // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      },
      "mail": {
        "email": "string",
        "batch_settings": {
          "size": "int64",
          "cutoff": "google.protobuf.Duration"
        },
        "attachments_bucket": {
          "bucket_id": "string",
          "service_account_id": "string"
        },
        // Includes only one of the fields `invoke_function`, `invoke_container`, `gateway_websocket_broadcast`
        "invoke_function": {
          "function_id": "string",
          "function_tag": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "invoke_container": {
          "container_id": "string",
          "path": "string",
          "service_account_id": "string",
          "retry_settings": {
            "retry_attempts": "int64",
            "interval": "google.protobuf.Duration"
          },
          "dead_letter_queue": {
            "queue_id": "string",
            "service_account_id": "string"
          }
        },
        "gateway_websocket_broadcast": {
          "gateway_id": "string",
          "path": "string",
          "service_account_id": "string"
        }
        // end of the list of possible fields
      }
      // end of the list of possible fields
    },
    "status": "Status"
  }
  // end of the list of possible fields
}

An Operation resource. For more information, see Operation.

Field

Description

id

string

ID of the operation.

description

string

Description of the operation. 0-256 characters long.

created_at

google.protobuf.Timestamp

Creation timestamp.

created_by

string

ID of the user or service account who initiated the operation.

modified_at

google.protobuf.Timestamp

The time when the Operation resource was last modified.

done

bool

If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is available.

metadata

CreateTriggerMetadata

Service-specific metadata associated with the operation.
It typically contains the ID of the target resource that the operation is performed on.
Any method that returns a long-running operation should document the metadata type, if any.

error

google.rpc.Status

The error result of the operation in case of failure or cancellation.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

response

Trigger

The normal response of the operation in case of success.
If the original method returns no data on success, such as Delete,
the response is google.protobuf.Empty.
If the original method is the standard Create/Update,
the response should be the target resource of the operation.
Any method that returns a long-running operation should document the response type, if any.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

CreateTriggerMetadataCreateTriggerMetadata

Field

Description

trigger_id

string

ID of the trigger that is being created.

TriggerTrigger

A trigger to invoke a serverless function. For more information, see Triggers.

Field

Description

id

string

ID of the trigger. Generated at creation time.

folder_id

string

Required field. ID of the folder that the trigger belongs to.

created_at

google.protobuf.Timestamp

Creation timestamp for the trigger.

name

string

Name of the trigger.

description

string

Description of the trigger.

labels

object (map<string, string>)

Trigger labels as key:value pairs.

rule

Rule

Required field. Rule for trigger activation (always consistent with the trigger type).

status

enum Status

Trigger status.

  • STATUS_UNSPECIFIED
  • ACTIVE
  • PAUSED

RuleRule

Description of a rule for trigger activation.

Field

Description

timer

Timer

Rule for a timed trigger.

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

message_queue

MessageQueue

Rule for a message queue trigger.

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

iot_message

IoTMessage

Rule for a IoT Core trigger.

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

iot_broker_message

IoTBrokerMessage

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

object_storage

ObjectStorage

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

container_registry

ContainerRegistry

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

cloud_logs

CloudLogs

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

logging

Logging

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

billing_budget

BillingBudget

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

data_stream

DataStream

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

mail

Mail

Includes only one of the fields timer, message_queue, iot_message, iot_broker_message, object_storage, container_registry, cloud_logs, logging, billing_budget, data_stream, mail.

TimerTimer

Rule for activating a timed trigger.

Field

Description

cron_expression

string

Required field. Description of a schedule as a cron expression.

payload

string

Payload to be passed to function.

invoke_function

InvokeFunctionOnce

Instructions for invoking a function once.

Includes only one of the fields invoke_function, invoke_function_with_retry, invoke_container_with_retry, gateway_websocket_broadcast.

Action to be executed when the current time matches the cron_expression.

invoke_function_with_retry

InvokeFunctionWithRetry

Instructions for invoking a function with retry.

Includes only one of the fields invoke_function, invoke_function_with_retry, invoke_container_with_retry, gateway_websocket_broadcast.

Action to be executed when the current time matches the cron_expression.

invoke_container_with_retry

InvokeContainerWithRetry

Instructions for invoking a container with retry.

Includes only one of the fields invoke_function, invoke_function_with_retry, invoke_container_with_retry, gateway_websocket_broadcast.

Action to be executed when the current time matches the cron_expression.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_function_with_retry, invoke_container_with_retry, gateway_websocket_broadcast.

Action to be executed when the current time matches the cron_expression.

InvokeFunctionOnceInvokeFunctionOnce

A single function invocation.

Field

Description

function_id

string

Required field. ID of the function to invoke.

function_tag

string

Version tag of the function to execute.

service_account_id

string

ID of the service account that should be used to invoke the function.

InvokeFunctionWithRetryInvokeFunctionWithRetry

A function invocation with retries.

Field

Description

function_id

string

Required field. ID of the function to invoke.

function_tag

string

Version tag of the function to execute.

service_account_id

string

ID of the service account which has permission to invoke the function.

retry_settings

RetrySettings

Retry policy. If the field is not specified, or the value is empty, no retries will be attempted.

dead_letter_queue

PutQueueMessage

DLQ policy (no value means discarding a message).

RetrySettingsRetrySettings

Settings for retrying to invoke a function.

Field

Description

retry_attempts

int64

Maximum number of retries (extra invokes) before the action is considered failed.

interval

google.protobuf.Duration

Required field. Time in seconds to wait between individual retries.

PutQueueMessagePutQueueMessage

Field

Description

queue_id

string

ID of the queue.

service_account_id

string

Required field. Service account which has write permission on the queue.

InvokeContainerWithRetryInvokeContainerWithRetry

A container invocation with retries.

Field

Description

container_id

string

Required field. ID of the container to invoke.

path

string

Endpoint HTTP path to invoke.

service_account_id

string

ID of the service account which has permission to invoke the container.

retry_settings

RetrySettings

Retry policy. If the field is not specified, or the value is empty, no retries will be attempted.

dead_letter_queue

PutQueueMessage

DLQ policy (no value means discarding a message).

GatewayWebsocketBroadcastGatewayWebsocketBroadcast

Field

Description

gateway_id

string

Required field.

path

string

Required field.

service_account_id

string

Required field. sa which has permission for writing to websockets

MessageQueueMessageQueue

Rule for activating a message queue trigger.

Field

Description

queue_id

string

Required field. ID of the message queue in Message Queue.

service_account_id

string

Required field. ID of the service account which has read access to the message queue.

batch_settings

BatchSettings

Required field. Batch settings for processing messages in the queue.

visibility_timeout

google.protobuf.Duration

Queue visibility timeout override.

invoke_function

InvokeFunctionOnce

Instructions for invoking a function once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the queue.

invoke_container

InvokeContainerOnce

Instructions for invoking a container once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the queue.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the queue.

BatchSettingsBatchSettings

Settings for batch processing of messages in a queue.

Field

Description

size

int64

Batch size. Trigger will send the batch of messages to the function
when the number of messages in the queue reaches size, or the cutoff time has passed.

cutoff

google.protobuf.Duration

Required field. Maximum wait time. Trigger will send the batch of messages to the function when
the number of messages in the queue reaches size, or the cutoff time has passed.

InvokeContainerOnceInvokeContainerOnce

A single container invocation.

Field

Description

container_id

string

Required field. ID of the container to invoke.

path

string

Endpoint HTTP path to invoke.

service_account_id

string

ID of the service account which has permission to invoke the container.

IoTMessageIoTMessage

Rule for activating a IoT Core trigger.

Field

Description

registry_id

string

Required field. ID of the IoT Core registry.

device_id

string

ID of the IoT Core device in the registry.

mqtt_topic

string

MQTT topic whose messages activate the trigger.

batch_settings

BatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

IoTBrokerMessageIoTBrokerMessage

Rule for activating a IoT Core Broker trigger.

Field

Description

broker_id

string

Required field. ID of the IoT Core broker.

mqtt_topic

string

MQTT topic whose messages activate the trigger.

batch_settings

BatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

Action to be executed when the there's a new message in the MQTT topic.

ObjectStorageObjectStorage

Field

Description

event_type[]

enum ObjectStorageEventType

Type (name) of events, at least one value is required.

  • OBJECT_STORAGE_EVENT_TYPE_UNSPECIFIED
  • OBJECT_STORAGE_EVENT_TYPE_CREATE_OBJECT
  • OBJECT_STORAGE_EVENT_TYPE_UPDATE_OBJECT
  • OBJECT_STORAGE_EVENT_TYPE_DELETE_OBJECT

bucket_id

string

ID of the bucket.

prefix

string

Prefix of the object key. Filter, optional.

suffix

string

Suffix of the object key. Filter, optional.

batch_settings

BatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

ContainerRegistryContainerRegistry

Field

Description

event_type[]

enum ContainerRegistryEventType

Type (name) of events, at least one value is required.

  • CONTAINER_REGISTRY_EVENT_TYPE_UNSPECIFIED
  • CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE
  • CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE
  • CONTAINER_REGISTRY_EVENT_TYPE_CREATE_IMAGE_TAG
  • CONTAINER_REGISTRY_EVENT_TYPE_DELETE_IMAGE_TAG

registry_id

string

ID of the registry.

image_name

string

Docker-image name. Filter, optional.

tag

string

Docker-image tag. Filter, optional.

batch_settings

BatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

CloudLogsCloudLogs

Field

Description

log_group_id[]

string

Log group identifiers, at least one value is required.

batch_settings

CloudLogsBatchSettings

Required field. Batch settings for processing log events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container.

CloudLogsBatchSettingsCloudLogsBatchSettings

Field

Description

size

int64

Batch size. Trigger will send the batch of messages to the function
when the number of messages in the log group reaches size, or the cutoff time has passed.

cutoff

google.protobuf.Duration

Maximum wait time. Trigger will send the batch of messages to the function when
the number of messages in the log group reaches size, or the cutoff time has passed.

LoggingLogging

Field

Description

log_group_id

string

Log events filter settings.

resource_type[]

string

resource_id[]

string

stream_name[]

string

levels[]

enum Level

  • LEVEL_UNSPECIFIED: Default log level.

    Equivalent to not specifying log level at all.

  • TRACE: Trace log level.

    Possible use case: verbose logging of some business logic.

  • DEBUG: Debug log level.

    Possible use case: debugging special cases in application logic.

  • INFO: Info log level.

    Mostly used for information messages.

  • WARN: Warn log level.

    May be used to alert about significant events.

  • ERROR: Error log level.

    May be used to alert about errors in infrastructure, logic, etc.

  • FATAL: Fatal log level.

    May be used to alert about unrecoverable failures and events.

batch_settings

LoggingBatchSettings

Required field. Batch settings for processing log events.

invoke_function

InvokeFunctionWithRetry

Instructions for invoking a function with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Instructions for invoking a container with retries as needed.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Instructions for broadcasting to API gateway websocket once.

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

LoggingBatchSettingsLoggingBatchSettings

Field

Description

size

int64

Batch size. Trigger will send the batch of messages to the associated function
when the number of log events reaches this value, or the cutoff time has passed.

cutoff

google.protobuf.Duration

Maximum wait time. Trigger will send the batch of messages the time since the last batch
exceeds the cutoff value, regardless of the amount of log events.

BillingBudgetBillingBudget

Field

Description

billing_account_id

string

Required field.

budget_id

string

invoke_function

InvokeFunctionWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

DataStreamDataStream

Field

Description

endpoint

string

Data stream endpoint.

database

string

Data stream database.

stream

string

Stream name.

service_account_id

string

ID of the service account which has permission to read data stream.

batch_settings

DataStreamBatchSettings

Batch settings for processing events.

invoke_function

InvokeFunctionWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

DataStreamBatchSettingsDataStreamBatchSettings

Field

Description

size

int64

Batch size in bytes. Trigger will send the batch of messages to the associated function
when size of log events reaches this value, or the cutoff time has passed.

cutoff

google.protobuf.Duration

Maximum wait time. Trigger will send the batch of messages the time since the last batch
exceeds the cutoff value, regardless of the amount of log events.

MailMail

Field

Description

email

string

Address to receive emails for trigger activation.
Field is ignored for write requests and populated on trigger creation.

batch_settings

BatchSettings

Batch settings for processing events.

attachments_bucket

ObjectStorageBucketSettings

Bucket settings for saving attachments.

invoke_function

InvokeFunctionWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

invoke_container

InvokeContainerWithRetry

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

gateway_websocket_broadcast

GatewayWebsocketBroadcast

Includes only one of the fields invoke_function, invoke_container, gateway_websocket_broadcast.

ObjectStorageBucketSettingsObjectStorageBucketSettings

Field

Description

bucket_id

string

Bucket for saving.

service_account_id

string

Required field. SA which has write permission on storage.

Была ли статья полезна?

Предыдущая
List
Следующая
Update
Проект Яндекса
© 2025 ООО «Яндекс.Облако»