DenyPolicyArgs

data class DenyPolicyArgs(val displayName: Output<String>? = null, val name: Output<String>? = null, val parent: Output<String>? = null, val rules: Output<List<DenyPolicyRuleArgs>>? = null) : ConvertibleToJava<DenyPolicyArgs>

Represents a collection of denial policies to apply to a given resource. To get more information about DenyPolicy, see:

Example Usage

{{% /examples %}}

Import

DenyPolicy can be imported using any of these accepted formats* {{parent}}/{{name}} In Terraform v1.5.0 and later, use an import block to import DenyPolicy using one of the formats above. For exampletf import { id = "{{parent}}/{{name}}" to = google_iam_deny_policy.default }

$ pulumi import gcp:iam/denyPolicy:DenyPolicy When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), DenyPolicy can be imported using one of the formats above. For example
$ pulumi import gcp:iam/denyPolicy:DenyPolicy default {{parent}}/{{name}}

Constructors

Link copied to clipboard
fun DenyPolicyArgs(displayName: Output<String>? = null, name: Output<String>? = null, parent: Output<String>? = null, rules: Output<List<DenyPolicyRuleArgs>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DenyPolicyArgs

Properties

Link copied to clipboard
val displayName: Output<String>? = null

The display name of the rule.

Link copied to clipboard
val name: Output<String>? = null

The name of the policy.

Link copied to clipboard
val parent: Output<String>? = null

The attachment point is identified by its URL-encoded full resource name.

Link copied to clipboard
val rules: Output<List<DenyPolicyRuleArgs>>? = null

Rules to be applied. Structure is documented below.