SecurityPolicyRuleState class
Input properties used for looking up and filtering SecurityPolicyRule resources.
Constructors
-
SecurityPolicyRuleState({Input<
String?> ? action, Input<String?> ? deletionPolicy, Input<String?> ? description, Input<SecurityPolicyRuleHeaderAction?> ? headerAction, Input<SecurityPolicyRuleMatch?> ? match, Input<SecurityPolicyRulePreconfiguredWafConfig?> ? preconfiguredWafConfig, Input<bool?> ? preview, Input<int?> ? priority, Input<String?> ? project, Input<SecurityPolicyRuleRateLimitOptions?> ? rateLimitOptions, Input<SecurityPolicyRuleRedirectOptions?> ? redirectOptions, Input<String?> ? securityPolicy}) -
Creates a new SecurityPolicyRuleState.
actionThe Action to perform when the rule is matched. The following are the valid actions:deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.descriptionAn optional description of this resource. Provide this property when you create the resource.headerActionOptional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.matchA match condition that incoming traffic is evaluated against.preconfiguredWafConfigPreconfigured WAF configuration to be applied for the rule.previewIf set to true, the specified action is not enforced.priorityAn integer indicating the priority of a rule in the list.projectThe ID of the project in which the resource belongs.rateLimitOptionsMust be specified if the action is "rateBasedBan" or "throttle". Cannot be specified for any other actions.redirectOptionsParameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.securityPolicyThe name of the security policy this rule belongs to.const -
SecurityPolicyRuleState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
action
→ Input<
String?> ? -
The Action to perform when the rule is matched. The following are the valid actions:
final
-
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
description
→ Input<
String?> ? -
An optional description of this resource. Provide this property when you create the resource.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headerAction
→ Input<
SecurityPolicyRuleHeaderAction?> ? -
Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
Structure is documented below.
final
-
match
→ Input<
SecurityPolicyRuleMatch?> ? -
A match condition that incoming traffic is evaluated against.
If it evaluates to true, the corresponding 'action' is enforced.
Structure is documented below.
final
-
preconfiguredWafConfig
→ Input<
SecurityPolicyRulePreconfiguredWafConfig?> ? -
Preconfigured WAF configuration to be applied for the rule.
If the rule does not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is not used, this field will have no effect.
Structure is documented below.
final
-
preview
→ Input<
bool?> ? -
If set to true, the specified action is not enforced.
final
-
priority
→ Input<
int?> ? -
An integer indicating the priority of a rule in the list.
The priority must be a positive value between 0 and 2147483647.
Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority.
final
-
project
→ Input<
String?> ? -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
final
-
rateLimitOptions
→ Input<
SecurityPolicyRuleRateLimitOptions?> ? -
Must be specified if the action is "rateBasedBan" or "throttle". Cannot be specified for any other actions.
Structure is documented below.
final
-
redirectOptions
→ Input<
SecurityPolicyRuleRedirectOptions?> ? -
Parameters defining the redirect action. Cannot be specified for any other actions. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
Structure is documented below.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
securityPolicy
→ Input<
String?> ? -
The name of the security policy this rule belongs to.
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