tfwriter

Terraform HCL code generator.

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

alicloud_nas_access_group

back

Index

Terraform

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

top

Example Usage

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

  # access_group_name - (optional) is a type of string
  access_group_name = null
  # access_group_type - (optional) is a type of string
  access_group_type = null
  # description - (optional) is a type of string
  description = null
  # file_system_type - (optional) is a type of string
  file_system_type = null
  # name - (optional) is a type of string
  name = null
  # type - (optional) is a type of string
  type = null

  timeouts = [{
    create = null
  }]
}

top

Variables

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

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

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

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

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

variable "type" {
  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_nas_access_group" "this" {
  # access_group_name - (optional) is a type of string
  access_group_name = var.access_group_name
  # access_group_type - (optional) is a type of string
  access_group_type = var.access_group_type
  # description - (optional) is a type of string
  description = var.description
  # file_system_type - (optional) is a type of string
  file_system_type = var.file_system_type
  # name - (optional) is a type of string
  name = var.name
  # type - (optional) is a type of string
  type = var.type

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

}

top

Outputs

output "access_group_name" {
  description = "returns a string"
  value       = alicloud_nas_access_group.this.access_group_name
}

output "access_group_type" {
  description = "returns a string"
  value       = alicloud_nas_access_group.this.access_group_type
}

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

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

output "type" {
  description = "returns a string"
  value       = alicloud_nas_access_group.this.type
}

output "this" {
  value = alicloud_nas_access_group.this
}

top