Package com.pulumi.gcp.orgpolicy.inputs
Class PolicySpecRuleArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.orgpolicy.inputs.PolicySpecRuleArgs.Builder
-
- Enclosing class:
- PolicySpecRuleArgs
public static final class PolicySpecRuleArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(PolicySpecRuleArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicySpecRuleArgs.Builder
allowAll(com.pulumi.core.Output<java.lang.String> allowAll)
PolicySpecRuleArgs.Builder
allowAll(java.lang.String allowAll)
PolicySpecRuleArgs
build()
PolicySpecRuleArgs.Builder
condition(com.pulumi.core.Output<PolicySpecRuleConditionArgs> condition)
PolicySpecRuleArgs.Builder
condition(PolicySpecRuleConditionArgs condition)
PolicySpecRuleArgs.Builder
denyAll(com.pulumi.core.Output<java.lang.String> denyAll)
PolicySpecRuleArgs.Builder
denyAll(java.lang.String denyAll)
PolicySpecRuleArgs.Builder
enforce(com.pulumi.core.Output<java.lang.String> enforce)
PolicySpecRuleArgs.Builder
enforce(java.lang.String enforce)
PolicySpecRuleArgs.Builder
values(com.pulumi.core.Output<PolicySpecRuleValuesArgs> values)
PolicySpecRuleArgs.Builder
values(PolicySpecRuleValuesArgs values)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(PolicySpecRuleArgs defaults)
-
-
Method Detail
-
allowAll
public PolicySpecRuleArgs.Builder allowAll(@Nullable com.pulumi.core.Output<java.lang.String> allowAll)
- Parameters:
allowAll
- Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.- Returns:
- builder
-
allowAll
public PolicySpecRuleArgs.Builder allowAll(java.lang.String allowAll)
- Parameters:
allowAll
- Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.- Returns:
- builder
-
condition
public PolicySpecRuleArgs.Builder condition(@Nullable com.pulumi.core.Output<PolicySpecRuleConditionArgs> condition)
- Parameters:
condition
- 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')".- Returns:
- builder
-
condition
public PolicySpecRuleArgs.Builder condition(PolicySpecRuleConditionArgs condition)
- Parameters:
condition
- 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')".- Returns:
- builder
-
denyAll
public PolicySpecRuleArgs.Builder denyAll(@Nullable com.pulumi.core.Output<java.lang.String> denyAll)
- Parameters:
denyAll
- Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.- Returns:
- builder
-
denyAll
public PolicySpecRuleArgs.Builder denyAll(java.lang.String denyAll)
- Parameters:
denyAll
- Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.- Returns:
- builder
-
enforce
public PolicySpecRuleArgs.Builder enforce(@Nullable com.pulumi.core.Output<java.lang.String> enforce)
- Parameters:
enforce
- 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.- Returns:
- builder
-
enforce
public PolicySpecRuleArgs.Builder enforce(java.lang.String enforce)
- Parameters:
enforce
- 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.- Returns:
- builder
-
values
public PolicySpecRuleArgs.Builder values(@Nullable com.pulumi.core.Output<PolicySpecRuleValuesArgs> values)
- Parameters:
values
- List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.- Returns:
- builder
-
values
public PolicySpecRuleArgs.Builder values(PolicySpecRuleValuesArgs values)
- Parameters:
values
- List of values to be used for this PolicyRule. This field can be set only in Policies for list constraints.- Returns:
- builder
-
build
public PolicySpecRuleArgs build()
-
-