yandex_serverless_eventrouter_rule (Resource)
Статья создана
Обновлена 7 августа 2025 г.
- Example Usage
- Schema
- Required
- Optional
- Read-Only
- Nested Schema for container
- Nested Schema for container.batch_settings
- Nested Schema for function
- Nested Schema for function.batch_settings
- Nested Schema for gateway_websocket_broadcast
- Nested Schema for gateway_websocket_broadcast.batch_settings
- Nested Schema for logging
- Nested Schema for timeouts
- Nested Schema for workflow
- Nested Schema for workflow.batch_settings
- Nested Schema for yds
- Nested Schema for ymq
- Import
Allows management of a Yandex Cloud Serverless Event Router Rule.
Example Usage
//
// TBD
//
Schema
Required
bus_id(String) ID of the bus that the rule belongs toname(String) Name of the rule
Optional
container(Block List) ContainerTarget (see below for nested schema)description(String) Description of the rulefunction(Block List) FunctionTarget (see below for nested schema)gateway_websocket_broadcast(Block List) GatewayWebsocketBroadcastTarget (see below for nested schema)jq_filter(String) JQ filter for matching eventslabels(Map of String) Rule labelslogging(Block List) LoggingTarget. Includes either log_group_id or folder_id (see below for nested schema)timeouts(Block, Optional) (see below for nested schema)workflow(Block List) WorkflowTarget (see below for nested schema)yds(Block List) YdsTarget (see below for nested schema)ymq(Block List) YmqTarget (see below for nested schema)
Read-Only
cloud_id(String) ID of the cloud that the rule resides increated_at(String) Creation timestampdeletion_protection(Boolean) Deletion protectionfolder_id(String) ID of the folder that the rule resides inid(String) The ID of this resource.
Nested Schema for container
Required:
container_id(String) Container ID
Optional:
batch_settings(Block List, Max: 1) Batch settings (see below for nested schema)container_revision_id(String) Container revision IDpath(String) Endpoint HTTP path to invokeservice_account_id(String) Service account which should be used to call a container
Nested Schema for container.batch_settings
Required:
cutoff(String) Maximum batch size: rule will send a batch if its lifetime exceeds this value
Optional:
max_bytes(Number) Maximum batch size: rule will send a batch if total size of events exceeds this valuemax_count(Number) Maximum batch size: rule will send a batch if number of events exceeds this value
Nested Schema for function
Required:
function_id(String) Function ID
Optional:
batch_settings(Block List, Max: 1) Batch settings (see below for nested schema)function_tag(String) Function tagservice_account_id(String) Service account which has call permission on the function
Nested Schema for function.batch_settings
Required:
cutoff(String) Maximum batch size: rule will send a batch if its lifetime exceeds this value
Optional:
max_bytes(Number) Maximum batch size: rule will send a batch if total size of events exceeds this valuemax_count(Number) Maximum batch size: rule will send a batch if number of events exceeds this value
Nested Schema for gateway_websocket_broadcast
Required:
gateway_id(String) Gateway IDpath(String) Pathservice_account_id(String) Service account which has permission for writing to websockets
Optional:
batch_settings(Block List, Max: 1) Batch settings (see below for nested schema)
Nested Schema for gateway_websocket_broadcast.batch_settings
Required:
cutoff(String) Maximum batch size: rule will send a batch if its lifetime exceeds this value
Optional:
max_bytes(Number) Maximum batch size: rule will send a batch if total size of events exceeds this valuemax_count(Number) Maximum batch size: rule will send a batch if number of events exceeds this value
Nested Schema for logging
Required:
service_account_id(String) Service account which has permission for writing logs
Optional:
folder_id(String) Folder IDlog_group_id(String) Log group ID
Nested Schema for timeouts
Optional:
create(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).delete(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.read(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.update(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Nested Schema for workflow
Required:
service_account_id(String) Service account which should be used to start workflowworkflow_id(String) Workflow ID
Optional:
batch_settings(Block List, Max: 1) Batch settings (see below for nested schema)
Nested Schema for workflow.batch_settings
Required:
cutoff(String) Maximum batch size: rule will send a batch if its lifetime exceeds this value
Optional:
max_bytes(Number) Maximum batch size: rule will send a batch if total size of events exceeds this valuemax_count(Number) Maximum batch size: rule will send a batch if number of events exceeds this value
Nested Schema for yds
Required:
database(String) Stream databaseservice_account_id(String) Service account, which has write permission on the streamstream_name(String) Full stream name, like /ru-central1/aoegtvhtp8ob********/cc8004q4lbo6********/test
Nested Schema for ymq
Required:
queue_arn(String) Queue ARN. Example: yrn:yc:ymq:ru-central1:aoe***:testservice_account_id(String) Service account which has write access to the queue
Import
The resource can be imported by using their resource ID. For getting the resource ID you can use Yandex Cloud Web Console
# terraform import yandex_serverless_eventrouter_rule.<resource Name> <resource Id>
terraform import yandex_serverless_eventrouter_rule.evr_rule ...