RuleGroupState constructor

const RuleGroupState({
  1. Input<String?>? arn,
  2. Input<int?>? capacity,
  3. Input<List<RuleGroupCustomResponseBody>?>? customResponseBodies,
  4. Input<String?>? description,
  5. Input<String?>? lockToken,
  6. Input<String?>? name,
  7. Input<String?>? namePrefix,
  8. Input<String?>? region,
  9. Input<List<RuleGroupRule>?>? rules,
  10. Input<String?>? rulesJson,
  11. Input<String?>? scope,
  12. Input<Map<String, String>?>? tags,
  13. Input<Map<String, String>?>? tagsAll,
  14. Input<RuleGroupVisibilityConfig?>? visibilityConfig,
})

Creates a new RuleGroupState. arn The ARN of the WAF rule group. capacity The web ACL capacity units (WCUs) required for this rule group. See here for general information and here for capacity specific information. customResponseBodies Defines custom response bodies that can be referenced by customResponse actions. See Custom Response Body below for details. description A friendly description of the rule group. lockToken Optional. name A friendly name of the rule group. namePrefix Creates a unique name beginning with the specified prefix. Conflicts with name. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. rules The rule blocks used to identify the web requests that you want to allow, block, or count. See Rules below for details. rulesJson Raw JSON string to allow more than three nested statements. Conflicts with rule attribute. This is for advanced use cases where more than 3 levels of nested statements are required. There is no drift detection at this time. If you use this attribute instead of rule, you will be foregoing drift detection. Additionally, importing an existing rule group into a configuration with rulesJson set will result in a one time in-place update as the remote rule configuration is initially written to the rule attribute. See the AWS documentation for the JSON structure. scope Specifies whether this is for an AWS CloudFront distribution or for a regional application. Valid values are CLOUDFRONT or REGIONAL. To work with CloudFront, you must also specify the region us-east-1 (N. Virginia) on the AWS provider. tags An array of key:value pairs to associate with the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. tagsAll A map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block. visibilityConfig Defines and enables Amazon CloudWatch metrics and web request sample collection. See Visibility Configuration below for details.

Implementation

const RuleGroupState({
  this.arn,
  this.capacity,
  this.customResponseBodies,
  this.description,
  this.lockToken,
  this.name,
  this.namePrefix,
  this.region,
  this.rules,
  this.rulesJson,
  this.scope,
  this.tags,
  this.tagsAll,
  this.visibilityConfig,
});