tfwriter

Terraform HCL code generator.

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

alicloud_emr_main_versions

back

Index

Terraform

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

top

Example Usage

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

  # cluster_type - (optional) is a type of list of string
  cluster_type = []
  # emr_version - (optional) is a type of string
  emr_version = null
  # output_file - (optional) is a type of string
  output_file = null
}

top

Variables

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

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

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

top

Datasource

data "alicloud_emr_main_versions" "this" {
  # cluster_type - (optional) is a type of list of string
  cluster_type = var.cluster_type
  # emr_version - (optional) is a type of string
  emr_version = var.emr_version
  # output_file - (optional) is a type of string
  output_file = var.output_file
}

top

Outputs

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

output "ids" {
  description = "returns a list of string"
  value       = data.alicloud_emr_main_versions.this.ids
}

output "main_versions" {
  description = "returns a list of object"
  value       = data.alicloud_emr_main_versions.this.main_versions
}

output "this" {
  value = alicloud_emr_main_versions.this
}

top