tfwriter

Terraform HCL code generator.

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

alicloud_resource_manager_resource_group

back

Index

Terraform

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

top

Example Usage

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

  # display_name - (required) is a type of string
  display_name = null
  # name - (optional) is a type of string
  name = null
  # resource_group_name - (optional) is a type of string
  resource_group_name = null

  timeouts = [{
    create = null
  }]
}

top

Variables

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

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

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

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

top

Resource

resource "alicloud_resource_manager_resource_group" "this" {
  # display_name - (required) is a type of string
  display_name = var.display_name
  # name - (optional) is a type of string
  name = var.name
  # resource_group_name - (optional) is a type of string
  resource_group_name = var.resource_group_name

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

}

top

Outputs

output "account_id" {
  description = "returns a string"
  value       = alicloud_resource_manager_resource_group.this.account_id
}

output "create_date" {
  description = "returns a string"
  value       = alicloud_resource_manager_resource_group.this.create_date
}

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

output "name" {
  description = "returns a string"
  value       = alicloud_resource_manager_resource_group.this.name
}

output "region_statuses" {
  description = "returns a list of object"
  value       = alicloud_resource_manager_resource_group.this.region_statuses
}

output "resource_group_name" {
  description = "returns a string"
  value       = alicloud_resource_manager_resource_group.this.resource_group_name
}

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

output "this" {
  value = alicloud_resource_manager_resource_group.this
}

top