great-france-722
07/01/2026, 2:22 PMWebAclRuleStatementRateBasedStatementScopeDownStatementArgs no longer has a NotStatement property. Anyone else see this? Am I missing a step?lemon-scooter-94063
07/01/2026, 4:23 PMgreat-france-722
07/01/2026, 7:21 PMlemon-scooter-94063
07/01/2026, 8:32 PMWebAclRuleStatementRateBasedStatementScopeDownStatementArgs might be more. One solution you can try is to use pulumi.com/registry/…/webacl#… for more rested configurationsgreat-france-722
07/09/2026, 9:18 PMvar name = "test-acl";
var webacl = new Pulumi.Aws.WafV2.WebAcl($"webacl", new(){
Name=name,
Scope="CLOUDFRONT",
VisibilityConfig = new WebAclVisibilityConfigArgs {
CloudwatchMetricsEnabled = true,
SampledRequestsEnabled = true,
MetricName = name,
},
DefaultAction = new WebAclDefaultActionArgs{
Allow = new WebAclDefaultActionAllowArgs(),
},
Tags = new() {
["ManagedBy"]="Pulumi"
},
}, new()
{
// see: <https://www.pulumi.com/registry/packages/aws/api-docs/wafv2/webaclrule/>
// We're using WebAclRule resources instead of the inline rules property on the webacl
IgnoreChanges = ["rules"],
});
var ruleName = "thisUsedToWork";
var rule = new Pulumi.Aws.WafV2.WebAclRule("rule1", new()
{
Name=ruleName,
WebAclArn = webacl.Arn,
Priority=1,
Action = new WebAclRuleActionArgs{
Block = new WebAclRuleActionBlockArgs() {}
},
Statement = new WebAclRuleStatementArgs {
RateBasedStatement = new WebAclRuleStatementRateBasedStatementArgs {
Limit = 1000,
EvaluationWindowSec = 60,
AggregateKeyType = "IP",
ScopeDownStatement = new WebAclRuleStatementRateBasedStatementScopeDownStatementArgs {
NotStatement = new WebAclRuleStatementRateBasedStatementScopeDownStatementNotStatementArgs {
Statements = new WebAclRuleStatementArgs[] {
new() {
ByteMatchStatement = new WebAclRuleStatementByteMatchStatementArgs {
FieldToMatch = new WebAclRuleStatementByteMatchStatementFieldToMatchArgs {
UriPath = new WebAclRuleStatementByteMatchStatementFieldToMatchUriPathArgs()
},
PositionalConstraint = "STARTS_WITH",
SearchString = "/somePath",
TextTransformations = new WebAclRuleStatementByteMatchStatementTextTransformationArgs {
Priority = 0,
Type = "NONE",
}
},
}
}
}
}
}
},
});great-france-722
07/13/2026, 3:20 PMmodern-spring-15520
07/17/2026, 1:56 PM