Skip to content

Latest commit

 

History

History
105 lines (79 loc) · 1.77 KB

alicloud_resource_manager_resource_share.md

File metadata and controls

105 lines (79 loc) · 1.77 KB

alicloud_resource_manager_resource_share

back

Index

Terraform

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

top

Example Usage

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

  # resource_share_name - (required) is a type of string
  resource_share_name = null

  timeouts = [{
    delete = null
  }]
}

top

Variables

variable "resource_share_name" {
  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_resource_manager_resource_share" "this" {
  # resource_share_name - (required) is a type of string
  resource_share_name = var.resource_share_name

  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_resource_manager_resource_share.this.id
}

output "resource_share_owner" {
  description = "returns a string"
  value       = alicloud_resource_manager_resource_share.this.resource_share_owner
}

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

output "this" {
  value = alicloud_resource_manager_resource_share.this
}

top