PolicySpecRule class

Constructors

PolicySpecRule({Input<String?>? allowAll, Input<PolicySpecRuleCondition?>? condition, Input<String?>? denyAll, Input<String?>? enforce, Input<String?>? parameters, Input<PolicySpecRuleValues?>? values})
Creates a new PolicySpecRule. allowAll Setting this to "TRUE" means that all values are allowed. This field can be set only in Policies for list constraints. 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 keyName and valueName 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')". [denyAll] Setting this to "TRUE"means that all values are denied. This field can be set only in Policies for list constraints. [enforce] If"TRUE", then the Policyis enforced. If"FALSE"`, then any configuration is acceptable. This field can be set only in Policies for boolean constraints. parameters Optional. Required for Managed Constraints if parameters defined in constraints. Pass parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { "allowedLocations" : \"us-east1\", \"us-west1\", "allowAll" : true } values List of values to be used for this policy rule. This field can be set only in policies for list constraints.
const
PolicySpecRule.fromMap(Map<String, dynamic> map)
factory

Properties

allowAll → Input<String?>?
Setting this to "TRUE" means that all values are allowed. This field can be set only in Policies for list constraints.
final
condition → Input<PolicySpecRuleCondition?>?
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 keyName and valueName 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')". Structure is documented below.
final
denyAll → Input<String?>?
Setting this to "TRUE" means that all values are denied. This field can be set only in Policies for list constraints.
final
enforce → Input<String?>?
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.
final
hashCode → int
The hash code for this object.
no setterinherited
parameters → Input<String?>?
Optional. Required for Managed Constraints if parameters defined in constraints. Pass parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { "allowedLocations" : \"us-east1\", \"us-west1\", "allowAll" : true }
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → Input<PolicySpecRuleValues?>?
List of values to be used for this policy rule. This field can be set only in policies for list constraints. Structure is documented below.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited