Skip to content

Latest commit

 

History

History
113 lines (87 loc) · 1.94 KB

alicloud_resource_manager_shared_target.md

File metadata and controls

113 lines (87 loc) · 1.94 KB

alicloud_resource_manager_shared_target

back

Index

Terraform

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

top

Example Usage

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

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

  timeouts = [{
    create = null
    delete = null
  }]
}

top

Variables

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

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

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

top

Resource

resource "alicloud_resource_manager_shared_target" "this" {
  # resource_share_id - (required) is a type of string
  resource_share_id = var.resource_share_id
  # target_id - (required) is a type of string
  target_id = var.target_id

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

}

top

Outputs

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

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

output "this" {
  value = alicloud_resource_manager_shared_target.this
}

top