tfwriter

Terraform HCL code generator.

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

alicloud_resource_manager_control_policy

back

Index

Terraform

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

top

Example Usage

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

  # control_policy_name - (required) is a type of string
  control_policy_name = null
  # description - (optional) is a type of string
  description = null
  # effect_scope - (required) is a type of string
  effect_scope = null
  # policy_document - (required) is a type of string
  policy_document = null
}

top

Variables

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

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

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

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

top

Resource

resource "alicloud_resource_manager_control_policy" "this" {
  # control_policy_name - (required) is a type of string
  control_policy_name = var.control_policy_name
  # description - (optional) is a type of string
  description = var.description
  # effect_scope - (required) is a type of string
  effect_scope = var.effect_scope
  # policy_document - (required) is a type of string
  policy_document = var.policy_document
}

top

Outputs

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

output "this" {
  value = alicloud_resource_manager_control_policy.this
}

top