tfwriter

Terraform HCL code generator.

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

alicloud_cdn_domain_config

back

Index

Terraform

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

top

Example Usage

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

  # domain_name - (required) is a type of string
  domain_name = null
  # function_name - (required) is a type of string
  function_name = null

  function_args = [{
    arg_name  = null
    arg_value = null
  }]
}

top

Variables

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

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

variable "function_args" {
  description = "nested block: NestingSet, min items: 1, max items: 0"
  type = set(object(
    {
      arg_name  = string
      arg_value = string
    }
  ))
}

top

Resource

resource "alicloud_cdn_domain_config" "this" {
  # domain_name - (required) is a type of string
  domain_name = var.domain_name
  # function_name - (required) is a type of string
  function_name = var.function_name

  dynamic "function_args" {
    for_each = var.function_args
    content {
      # arg_name - (required) is a type of string
      arg_name = function_args.value["arg_name"]
      # arg_value - (required) is a type of string
      arg_value = function_args.value["arg_value"]
    }
  }

}

top

Outputs

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

output "this" {
  value = alicloud_cdn_domain_config.this
}

top