日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

alicloud_resource_manager_control_policy

更新時間:

Provides a Resource Manager Control Policy resource.

For information about Resource Manager Control Policy and how to use it, see What is Control Policy.

-> NOTE: Available since v1.120.0.

Example Usage

Basic Usage


variable "name" {
  default = "tf-example"
}

resource "alicloud_resource_manager_control_policy" "example" {
  control_policy_name = var.name
  description         = var.name
  effect_scope        = "RAM"
  policy_document     = <<EOF
  {
    "Version": "1",
    "Statement": [
      {
        "Effect": "Deny",
        "Action": [
          "ram:UpdateRole",
          "ram:DeleteRole",
          "ram:AttachPolicyToRole",
          "ram:DetachPolicyFromRole"
        ],
        "Resource": "acs:ram:*:*:role/ResourceDirectoryAccountAccessRole"
      }
    ]
  }
  EOF
}

Argument Reference

The following arguments are supported:

  • control_policy_name - (Required) The name of control policy.
  • description - (Optional) The description of control policy.
  • effect_scope - (Required, ForceNew) The effect scope. Valid values RAM.
  • policy_document - (Required) The policy document of control policy.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Control Policy.

Import

Resource Manager Control Policy can be imported using the id, e.g.

$ terraform import alicloud_resource_manager_control_policy.example <id>