alicloud_event_bridge_api_destination

Provides a Event Bridge Api Destination resource.

For information about Event Bridge Api Destination and how to use it, see What is Api Destination.

Example Usage

Basic Usage

provider "alicloud" {
  region = var.region
}

variable "region" {
  default = "cn-chengdu"
}

variable "name" {
  default = "terraform-example"
}

resource "alicloud_event_bridge_connection" "default" {
  connection_name = var.name
  network_parameters {
    network_type = "PublicNetwork"
  }
}

resource "alicloud_event_bridge_api_destination" "default" {
  connection_name      = alicloud_event_bridge_connection.default.connection_name
  api_destination_name = var.name
  description          = "test-api-destination-connection"
  http_api_parameters {
    endpoint = "http://127.0.0.1:8001"
    method   = "POST"
  }
}

Argument Reference

The following arguments are supported:

http_api_parameters

The http_api_parameters supports the following:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Event Bridge Api Destination can be imported using the id, e.g.

$ terraform import alicloud_event_bridge_api_destination.example <id>