tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

alicloud_api_gateway_vpc_access

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_api_gateway_vpc_access" {
  source = "./modules/alicloud/r/alicloud_api_gateway_vpc_access"

  # instance_id - (required) is a type of string
  instance_id = null
  # name - (required) is a type of string
  name = null
  # port - (required) is a type of number
  port = null
  # vpc_id - (required) is a type of string
  vpc_id = null
}

top

Variables

variable "instance_id" {
  description = "(required)"
  type        = string
}

variable "name" {
  description = "(required)"
  type        = string
}

variable "port" {
  description = "(required)"
  type        = number
}

variable "vpc_id" {
  description = "(required)"
  type        = string
}

top

Resource

resource "alicloud_api_gateway_vpc_access" "this" {
  # instance_id - (required) is a type of string
  instance_id = var.instance_id
  # name - (required) is a type of string
  name = var.name
  # port - (required) is a type of number
  port = var.port
  # vpc_id - (required) is a type of string
  vpc_id = var.vpc_id
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = alicloud_api_gateway_vpc_access.this.id
}

output "this" {
  value = alicloud_api_gateway_vpc_access.this
}

top