文档

alicloud_event_bridge_event_buses

更新时间:
一键部署

This data source provides the Event Bridge Event Buses of the current Alibaba Cloud user.

-> NOTE: Available in v1.129.0+.

Example Usage

Basic Usage

data "alicloud_event_bridge_event_buses" "ids" {}
output "event_bridge_event_bus_id_1" {
  value = data.alicloud_event_bridge_event_buses.ids.buses.0.id
}

data "alicloud_event_bridge_event_buses" "nameRegex" {
  name_regex = "^my-EventBus"
}
output "event_bridge_event_bus_id_2" {
  value = data.alicloud_event_bridge_event_buses.nameRegex.buses.0.id
}

Argument Reference

The following arguments are supported:

  • event_bus_type - (Optional, ForceNew) The event bus type.
  • ids - (Optional, ForceNew, Computed) A list of Event Bus IDs. Its element value is same as Event Bus Name.
  • name_prefix - (Optional, ForceNew) The name prefix.
  • name_regex - (Optional, ForceNew) A regex string to filter results by Event Bus name.
  • output_file - (Optional) File name where to save data source results (after running terraform plan).

Argument Reference

The following attributes are exported in addition to the arguments listed above:

  • names - A list of Event Bus names.
  • buses - A list of Event Bridge Event Buses. Each element contains the following attributes:
    • create_time - The time of this bus was created.
    • description - The description of event bus.
    • event_bus_name - The name of event bus.
    • id - The ID of the Event Bus. Its value is same as Queue Name.

  • 本页导读 (0)