Event Channels

An EventChannel is a named grouping of EventSubscriptions.

Resource Schema

Required

PropertyDescription
name
String
Event Channel name.

Optional

PropertyDescription
workspace_id
Int64
Workspace ID. 0 means the default workspace.
description
String
Event Channel description.
enabled
Bool
Whether this Event Channel can dispatch events.
default_channel
Bool
Whether this Event Channel is the default destination for newly published events.

Read Only

PropertyDescription
id
Int64
Event Channel ID
created_at
String
Event Channel create date/time.
updated_at
String
Event Channel update date/time.

Example Resource

resource "files_event_channel" "example_event_channel" {
  name            = "example"
  workspace_id    = 1
  description     = "example"
  enabled         = true
  default_channel = true
}

Resource Import

This Resource supports importing using the following syntax:

Example Import Command

# Event Channels can be imported by specifying the id.
terraform import files_event_channel.example_event_channel 1

Data Source Schema

Required

PropertyDescription
id
Int64
Event Channel ID

Read Only

PropertyDescription
name
String
Event Channel name.
workspace_id
Int64
Workspace ID. 0 means the default workspace.
description
String
Event Channel description.
enabled
Bool
Whether this Event Channel can dispatch events.
default_channel
Bool
Whether this Event Channel is the default destination for newly published events.
created_at
String
Event Channel create date/time.
updated_at
String
Event Channel update date/time.

Example Data Source

data "files_event_channel" "example_event_channel" {
  id = 1
}