Provides a Api Gateway Backend resource.
For information about Api Gateway Backend and how to use it, see What is Backend.
Basic Usage
variable "name" {
default = "tf_example"
}
resource "alicloud_api_gateway_backend" "default" {
backend_name = var.name
description = var.name
backend_type = "HTTP"
}
The following arguments are supported:
backend_type
- (Required, ForceNew) The type of the Backend. Valid values: HTTP
, VPC
, FC_EVENT
, FC_HTTP
, OSS
, MOCK
.backend_name
- (Required) The name of the Backend.create_event_bridge_service_linked_role
- (Optional, ForceNew) Whether to create an Event bus service association role.description
- (Optional) The description of the Backend.The following attributes are exported:
id
- The resource ID in terraform of Backend.Api Gateway Backend can be imported using the id, e.g.
$ terraform import alicloud_api_gateway_backend.example <id>