tfwriter

Terraform HCL code generator.

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

alicloud_ga_ip_set

back

Index

Terraform

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

top

Example Usage

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

  # accelerate_region_id - (required) is a type of string
  accelerate_region_id = null
  # accelerator_id - (required) is a type of string
  accelerator_id = null
  # bandwidth - (optional) is a type of number
  bandwidth = null
  # ip_version - (optional) is a type of string
  ip_version = null

  timeouts = [{
    create = null
    delete = null
    update = null
  }]
}

top

Variables

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

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

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

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

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

top

Resource

resource "alicloud_ga_ip_set" "this" {
  # accelerate_region_id - (required) is a type of string
  accelerate_region_id = var.accelerate_region_id
  # accelerator_id - (required) is a type of string
  accelerator_id = var.accelerator_id
  # bandwidth - (optional) is a type of number
  bandwidth = var.bandwidth
  # ip_version - (optional) is a type of string
  ip_version = var.ip_version

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

}

top

Outputs

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

output "ip_address_list" {
  description = "returns a list of string"
  value       = alicloud_ga_ip_set.this.ip_address_list
}

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

output "this" {
  value = alicloud_ga_ip_set.this
}

top