GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs

data class GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs(val allowAll: Output<Boolean>? = null, val condition: Output<GoogleTypeExprArgs>? = null, val denyAll: Output<Boolean>? = null, val enforce: Output<Boolean>? = null, val values: Output<GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesArgs>? = null) : ConvertibleToJava<GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs>

A rule used to express this policy.

Constructors

fun GoogleCloudOrgpolicyV2PolicySpecPolicyRuleArgs(allowAll: Output<Boolean>? = null, condition: Output<GoogleTypeExprArgs>? = null, denyAll: Output<Boolean>? = null, enforce: Output<Boolean>? = null, values: Output<GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValuesArgs>? = null)

Functions

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

Properties

Link copied to clipboard
val allowAll: Output<Boolean>? = null

Setting this to true means that all values are allowed. This field can be set only in policies for list constraints.

Link copied to clipboard
val condition: Output<GoogleTypeExprArgs>? = null

A condition which determines whether this rule is used in the evaluation of the policy. When set, the expression field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".

Link copied to clipboard
val denyAll: Output<Boolean>? = null

Setting this to true means that all values are denied. This field can be set only in policies for list constraints.

Link copied to clipboard
val enforce: Output<Boolean>? = null

If true, then the policy is enforced. If false, then any configuration is acceptable. This field can be set only in policies for boolean constraints.

Link copied to clipboard

List of values to be used for this policy rule. This field can be set only in policies for list constraints.