Skip to content

Latest commit

 

History

History
134 lines (105 loc) · 2.32 KB

alicloud_maxcompute_project.md

File metadata and controls

134 lines (105 loc) · 2.32 KB

alicloud_maxcompute_project

back

Index

Terraform

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

top

Example Usage

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

  # name - (optional) is a type of string
  name = null
  # order_type - (required) is a type of string
  order_type = null
  # project_name - (optional) is a type of string
  project_name = null
  # specification_type - (required) is a type of string
  specification_type = null

  timeouts = [{
    delete = null
  }]
}

top

Variables

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

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

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

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

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

top

Resource

resource "alicloud_maxcompute_project" "this" {
  # name - (optional) is a type of string
  name = var.name
  # order_type - (required) is a type of string
  order_type = var.order_type
  # project_name - (optional) is a type of string
  project_name = var.project_name
  # specification_type - (required) is a type of string
  specification_type = var.specification_type

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

}

top

Outputs

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

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

output "project_name" {
  description = "returns a string"
  value       = alicloud_maxcompute_project.this.project_name
}

output "this" {
  value = alicloud_maxcompute_project.this
}

top