Skip to main content

@swamp/aws/wafv2

v2026.04.03.2

AWS WAFV2 infrastructure models

Labels

awswafv2cloudinfrastructure

Contents

Install

$ swamp extension pull @swamp/aws/wafv2

Release Notes

  • Updated: ipset, logging_configuration, regex_pattern_set, rule_group, web_acl, web_aclassociation

@swamp/aws/wafv2/ipsetv2026.04.03.2ipset.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
Description?stringDescription of the entity.
Name?stringName of the IPSet.
ScopeenumUse CLOUDFRONT for CloudFront IPSet, use REGIONAL for Application Load Balancer and API Gateway.
IPAddressVersionenumType of addresses in the IPSet, use IPV4 for IPV4 IP addresses, IPV6 for IPV6 address.
AddressesarrayList of IPAddresses.
Tags?array
createCreate a WAFv2 IPSet
getGet a WAFv2 IPSet
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 IPSet
updateUpdate a WAFv2 IPSet
deleteDelete a WAFv2 IPSet
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 IPSet
syncSync WAFv2 IPSet state from AWS

Resources

state(infinite)— WAFv2 IPSet resource state
@swamp/aws/wafv2/logging-configurationv2026.04.03.2logging_configuration.ts

Global Arguments

ArgumentTypeDescription
ResourceArnstringThe Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.
LogDestinationConfigsarrayThe Amazon Resource Names (ARNs) of the logging destinations that you want to associate with the web ACL.
RedactedFields?arrayThe parts of the request that you want to keep out of the logs. For example, if you redact the HEADER field, the HEADER field in the firehose will be xxx.
LoggingFilter?objectFiltering that specifies which web requests are kept in the logs and which are dropped. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
createCreate a WAFv2 LoggingConfiguration
getGet a WAFv2 LoggingConfiguration
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 LoggingConfiguration
updateUpdate a WAFv2 LoggingConfiguration
deleteDelete a WAFv2 LoggingConfiguration
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 LoggingConfiguration
syncSync WAFv2 LoggingConfiguration state from AWS

Resources

state(infinite)— WAFv2 LoggingConfiguration resource state
@swamp/aws/wafv2/regex-pattern-setv2026.04.03.2regex_pattern_set.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
Description?stringDescription of the entity.
Name?stringName of the RegexPatternSet.
RegularExpressionListarray
ScopeenumUse CLOUDFRONT for CloudFront RegexPatternSet, use REGIONAL for Application Load Balancer and API Gateway.
Tags?array
createCreate a WAFv2 RegexPatternSet
getGet a WAFv2 RegexPatternSet
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 RegexPatternSet
updateUpdate a WAFv2 RegexPatternSet
deleteDelete a WAFv2 RegexPatternSet
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 RegexPatternSet
syncSync WAFv2 RegexPatternSet state from AWS

Resources

state(infinite)— WAFv2 RegexPatternSet resource state
@swamp/aws/wafv2/rule-groupv2026.04.03.2rule_group.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
Capacitynumber
Description?stringDescription of the entity.
ScopeenumUse CLOUDFRONT for CloudFront RuleGroup, use REGIONAL for Application Load Balancer and API Gateway.
Rules?arrayCollection of Rules.
VisibilityConfigobjectVisibility Metric of the RuleGroup.
Tags?array
CustomResponseBodies?recordCustom response key and body map.
AvailableLabels?arrayCollection of Available Labels.
ConsumedLabels?arrayCollection of Consumed Labels.
createCreate a WAFv2 RuleGroup
getGet a WAFv2 RuleGroup
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 RuleGroup
updateUpdate a WAFv2 RuleGroup
deleteDelete a WAFv2 RuleGroup
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 RuleGroup
syncSync WAFv2 RuleGroup state from AWS

Resources

state(infinite)— WAFv2 RuleGroup resource state
@swamp/aws/wafv2/web-aclv2026.04.03.2web_acl.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
DefaultActionobjectDefault Action WebACL will take against ingress traffic when there is no matching Rule.
Description?stringDescription of the entity.
Name?stringName of the WebACL.
ScopeenumUse CLOUDFRONT for CloudFront WebACL, use REGIONAL for Application Load Balancer and API Gateway.
Rules?arrayCollection of Rules.
VisibilityConfigobjectVisibility Metric of the WebACL.
DataProtectionConfig?objectCollection of dataProtects.
ApplicationConfig?objectCollection of application attributes.
Tags?array
CustomResponseBodies?recordCustom response key and body map.
CaptchaConfig?object
ChallengeConfig?object
TokenDomains?arrayList of domains to accept in web request tokens, in addition to the domain of the protected resource.
AssociationConfig?objectAssociationConfig for body inspection
OnSourceDDoSProtectionConfig?objectConfigures the options for on-source DDoS protection provided by supported resource type.
createCreate a WAFv2 WebACL
getGet a WAFv2 WebACL
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 WebACL
updateUpdate a WAFv2 WebACL
deleteDelete a WAFv2 WebACL
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 WebACL
syncSync WAFv2 WebACL state from AWS

Resources

state(infinite)— WAFv2 WebACL resource state
@swamp/aws/wafv2/web-aclassociationv2026.04.03.2web_aclassociation.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
ResourceArnstring
WebACLArnstring
createCreate a WAFv2 WebACLAssociation
getGet a WAFv2 WebACLAssociation
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 WebACLAssociation
updateUpdate a WAFv2 WebACLAssociation
deleteDelete a WAFv2 WebACLAssociation
ArgumentTypeDescription
identifierstringThe primary identifier of the WAFv2 WebACLAssociation
syncSync WAFv2 WebACLAssociation state from AWS

Resources

state(infinite)— WAFv2 WebACLAssociation resource state