WebAclState constructor
- Input<
String?> ? applicationIntegrationUrl, - Input<
String?> ? arn, - Input<
WebAclAssociationConfig?> ? associationConfig, - Input<
int?> ? capacity, - Input<
WebAclCaptchaConfig?> ? captchaConfig, - Input<
WebAclChallengeConfig?> ? challengeConfig, - Input<
List< ? customResponseBodies,WebAclCustomResponseBody> ?> - Input<
WebAclDataProtectionConfig?> ? dataProtectionConfig, - Input<
WebAclDefaultAction?> ? defaultAction, - Input<
String?> ? description, - Input<
String?> ? lockToken, - Input<
String?> ? name, - Input<
String?> ? namePrefix, - Input<
String?> ? region, - Input<
String?> ? ruleJson, - Input<
List< ? rules,WebAclRule> ?> - Input<
String?> ? scope, - Input<
Map< ? tags,String, String> ?> - Input<
Map< ? tagsAll,String, String> ?> - Input<
List< ? tokenDomains,String> ?> - Input<
WebAclVisibilityConfig?> ? visibilityConfig,
Creates a new WebAclState.
applicationIntegrationUrl The URL to use in SDK integrations with managed rule groups.
arn The ARN of the WAF WebACL.
associationConfig Specifies custom configurations for the associations between the web ACL and protected resources. See associationConfig below for details.
capacity Web ACL capacity units (WCUs) currently being used by this web ACL.
captchaConfig Specifies how AWS WAF should handle CAPTCHA evaluations on the ACL level (used by AWS Bot Control). See captchaConfig below for details.
challengeConfig Specifies how AWS WAF should handle Challenge evaluations on the ACL level (used by AWS Bot Control). See challengeConfig below for details.
customResponseBodies Defines custom response bodies that can be referenced by customResponse actions. See customResponseBody below for details.
dataProtectionConfig Specifies data protection to apply to the web request data for the web ACL. This is a web ACL level data protection option. See dataProtectionConfig below for details.
defaultAction Action to perform if none of the rules contained in the WebACL match. See defaultAction below for details.
description Friendly description of the WebACL.
lockToken Optional.
name Friendly name of the WebACL. If omitted, the provider will assign a random, unique name. Conflicts with namePrefix.
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.
ruleJson 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 web ACL into a configuration with ruleJson 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.
rules rule blocks in this resource have several known limitations. Consider using aws.wafv2.WebAclRule to manage rules as separate resources instead. Rule blocks used to identify the web requests that you want to allow, block, or count. See rule below for details.
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 Map 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 Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
tokenDomains Specifies the domains that AWS WAF should accept in a web request token. This enables the use of tokens across multiple protected websites. When AWS WAF provides a token, it uses the domain of the AWS resource that the web ACL is protecting. If you don't specify a list of token domains, AWS WAF accepts tokens only for the domain of the protected resource. With a token domain list, AWS WAF accepts the resource's host domain plus all domains in the token domain list, including their prefixed subdomains.
visibilityConfig Defines and enables Amazon CloudWatch metrics and web request sample collection. See visibilityConfig below for details.
Implementation
const WebAclState({
this.applicationIntegrationUrl,
this.arn,
this.associationConfig,
this.capacity,
this.captchaConfig,
this.challengeConfig,
this.customResponseBodies,
this.dataProtectionConfig,
this.defaultAction,
this.description,
this.lockToken,
this.name,
this.namePrefix,
this.region,
this.ruleJson,
this.rules,
this.scope,
this.tags,
this.tagsAll,
this.tokenDomains,
this.visibilityConfig,
});