tfwriter

Terraform HCL code generator.

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

alicloud_eipanycast_anycast_eip_address

back

Index

Terraform

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

top

Example Usage

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

  # anycast_eip_address_name - (optional) is a type of string
  anycast_eip_address_name = null
  # bandwidth - (optional) is a type of number
  bandwidth = null
  # description - (optional) is a type of string
  description = null
  # internet_charge_type - (optional) is a type of string
  internet_charge_type = null
  # payment_type - (optional) is a type of string
  payment_type = null
  # service_location - (required) is a type of string
  service_location = null

  timeouts = [{
    create = null
  }]
}

top

Variables

variable "anycast_eip_address_name" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "bandwidth" {
  description = "(optional)"
  type        = number
  default     = null
}

variable "description" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "internet_charge_type" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "payment_type" {
  description = "(optional)"
  type        = string
  default     = null
}

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
    }
  ))
  default = []
}

top

Resource

resource "alicloud_eipanycast_anycast_eip_address" "this" {
  # anycast_eip_address_name - (optional) is a type of string
  anycast_eip_address_name = var.anycast_eip_address_name
  # bandwidth - (optional) is a type of number
  bandwidth = var.bandwidth
  # description - (optional) is a type of string
  description = var.description
  # internet_charge_type - (optional) is a type of string
  internet_charge_type = var.internet_charge_type
  # payment_type - (optional) is a type of string
  payment_type = var.payment_type
  # service_location - (required) is a type of string
  service_location = var.service_location

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
    }
  }

}

top

Outputs

output "bandwidth" {
  description = "returns a number"
  value       = alicloud_eipanycast_anycast_eip_address.this.bandwidth
}

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

output "status" {
  description = "returns a string"
  value       = alicloud_eipanycast_anycast_eip_address.this.status
}

output "this" {
  value = alicloud_eipanycast_anycast_eip_address.this
}

top