Skip to content

Latest commit

 

History

History
97 lines (74 loc) · 1.53 KB

alicloud_nas_protocols.md

File metadata and controls

97 lines (74 loc) · 1.53 KB

alicloud_nas_protocols

back

Index

Terraform

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

top

Example Usage

module "alicloud_nas_protocols" {
  source = "./modules/alicloud/d/alicloud_nas_protocols"

  # output_file - (optional) is a type of string
  output_file = null
  # type - (required) is a type of string
  type = null
  # zone_id - (optional) is a type of string
  zone_id = null
}

top

Variables

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

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

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

top

Datasource

data "alicloud_nas_protocols" "this" {
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # type - (required) is a type of string
  type = var.type
  # zone_id - (optional) is a type of string
  zone_id = var.zone_id
}

top

Outputs

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

output "protocols" {
  description = "returns a list of string"
  value       = data.alicloud_nas_protocols.this.protocols
}

output "this" {
  value = alicloud_nas_protocols.this
}

top