SecurityPolicyRuleState constructor
- 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.
action The Action to perform when the rule is matched. The following are the valid actions:
deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
description An optional description of this resource. Provide this property when you create the resource.
headerAction Optional, additional actions that are performed on headers. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
match A match condition that incoming traffic is evaluated against.
preconfiguredWafConfig Preconfigured WAF configuration to be applied for the rule.
preview If set to true, the specified action is not enforced.
priority An integer indicating the priority of a rule in the list.
project The ID of the project in which the resource belongs.
rateLimitOptions Must be specified if the action is "rateBasedBan" or "throttle". Cannot be specified for any other actions.
redirectOptions 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.
securityPolicy The name of the security policy this rule belongs to.
Implementation
const SecurityPolicyRuleState({
this.action,
this.deletionPolicy,
this.description,
this.headerAction,
this.match,
this.preconfiguredWafConfig,
this.preview,
this.priority,
this.project,
this.rateLimitOptions,
this.redirectOptions,
this.securityPolicy,
});