Skip to content

Add support for RuleGroup CRD #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 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-08T06:38:41Z"
build_hash: 587b90dc860e91ee9a763e9e3bc4d3f1b2fbddb7
build_date: "2024-08-20T20:18:07Z"
build_hash: c30e0689877bfe2083e7b2f84e1c450d2ba9bf2e
go_version: go1.22.4
version: v0.36.0-dirty
api_directory_checksum: 96fa226bb4286e852c4c5c3431fd48aa3de6e430
version: v0.37.0-4-gc30e068
api_directory_checksum: 4bad34d3dca935f62b2fe6fa1a3d6e6ebac5995b
api_version: v1alpha1
aws_sdk_go_version: v1.51.21
generator_config_info:
file_checksum: 8105dfd6cd8450bbeebbf515820ac6f96b10e89a
file_checksum: 5b59fb2b115cdbf88fdd8ea6723a7f1a90470f7d
original_file_name: generator.yaml
last_modification:
reason: API generation
42 changes: 37 additions & 5 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
ignore:
resource_names:
- APIKey
# - IPSet
- RegexPatternSet
- RuleGroup
- WebACL
- APIKey
# - IPSet
- RegexPatternSet
# - RuleGroup
- 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
model_name: wafv2
empty_shapes:
- All
- Method
- UriPath
- QueryString
- AllQueryArguments
- RateLimitIP
- RateLimitForwardedIP
- RateLimitHTTPMethod
- NoneAction
operations:
GetIPSet:
output_wrapper_field_path: IPSet
GetRuleGroup:
output_wrapper_field_path: RuleGroup
resources:
IPSet:
fields:
Expand All @@ -23,3 +41,17 @@ resources:
hooks:
sdk_read_one_post_set_output:
template_path: hooks/ipset/sdk_read_one_post_set_output.go.tpl
RuleGroup:
fields:
Name:
is_primary_key: true
is_immutable: true
Capacity:
is_immutable: true
Rules.Statement.ByteMatchStatement.TextTransformations.Type:
go_tag: json:"type,omitempty"
hooks:
sdk_read_one_pre_build_request:
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
145 changes: 145 additions & 0 deletions apis/v1alpha1/rule_group.go

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

Loading