Skip to content

Commit

Permalink
add support for WebACL CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
TiberiuGC committed Sep 5, 2024
1 parent a331c2a commit d392f73
Show file tree
Hide file tree
Showing 30 changed files with 18,008 additions and 49 deletions.
8 changes: 4 additions & 4 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2024-08-29T17:16:14Z"
build_date: "2024-09-05T13:40:53Z"
build_hash: f8f98563404066ac3340db0a049d2e530e5c51cc
go_version: go1.22.5
go_version: go1.22.4
version: v0.38.1
api_directory_checksum: 4bad34d3dca935f62b2fe6fa1a3d6e6ebac5995b
api_directory_checksum: 0e04694172ad12b45ec0af07976e4bbf6b0de0fa
api_version: v1alpha1
aws_sdk_go_version: v1.51.21
generator_config_info:
file_checksum: 5b59fb2b115cdbf88fdd8ea6723a7f1a90470f7d
file_checksum: ccd0894ca129269fc6e1521d1c8f770ed45d78f2
original_file_name: generator.yaml
last_modification:
reason: API generation
19 changes: 18 additions & 1 deletion apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ ignore:
# - IPSet
- RegexPatternSet
# - RuleGroup
- WebACL
# - WebACL
field_paths:
- RuleGroup.Rules.Statement.AndStatement
- RuleGroup.Rules.Statement.OrStatement
- RuleGroup.Rules.Statement.NotStatement
- RuleGroup.Rules.Statement.ManagedRuleGroupStatement.ScopeDownStatement
- RuleGroup.Rules.Statement.RateBasedStatement.ScopeDownStatement
- WebACL.Rules.Statement.AndStatement
- WebACL.Rules.Statement.OrStatement
- WebACL.Rules.Statement.NotStatement
- WebACL.Rules.Statement.ManagedRuleGroupStatement.ScopeDownStatement
- WebACL.Rules.Statement.RateBasedStatement.ScopeDownStatement
model_name: wafv2
empty_shapes:
- All
Expand All @@ -27,6 +32,8 @@ operations:
output_wrapper_field_path: IPSet
GetRuleGroup:
output_wrapper_field_path: RuleGroup
GetWebACL:
output_wrapper_field_path: WebACL
resources:
IPSet:
fields:
Expand Down Expand Up @@ -55,3 +62,13 @@ resources:
template_path: hooks/rulegroup/sdk_read_one_pre_build_request.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/rulegroup/sdk_read_one_post_set_output.go.tpl
WebACL:
fields:
Name:
is_primary_key: true
is_immutable: true
hooks:
sdk_read_one_pre_build_request:
template_path: hooks/webacl/sdk_read_one_pre_build_request.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/webacl/sdk_read_one_post_set_output.go.tpl
116 changes: 95 additions & 21 deletions apis/v1alpha1/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d392f73

Please sign in to comment.