Skip to content

Commit 1ffdda8

Browse files
committed
Implement resource ReceiptFilter
Signed-off-by: cpu1 <[email protected]>
1 parent f6b4aca commit 1ffdda8

30 files changed

+2097
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-11-15T11:47:38Z"
2+
build_date: "2024-11-15T11:53:24Z"
33
build_hash: 9715a2a715317a76ae83825294ca50cde9afd97b
44
go_version: go1.22.5
55
version: v0.39.1-4-g9715a2a
6-
api_directory_checksum: 67d89a73243311741c0e2212ee7d58a873740194
6+
api_directory_checksum: eea2a8ce2ee9e115647cc1f0f5862d1aa83647a7
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.55.5
99
generator_config_info:
10-
file_checksum: 83acbeaf92972bb59e3dd0b095cdc200cfc6c184
10+
file_checksum: b2080b6edb35b5f8a82a9da8cef308bfbc25e7ce
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ignore:
33
# - ConfigurationSet
44
- ConfigurationSetEventDestination
55
- CustomVerificationEmailTemplate
6-
- ReceiptFilter
6+
# - ReceiptFilter
77
# - ReceiptRule
88
# - ReceiptRuleSet
99
# - Template
@@ -125,3 +125,43 @@ resources:
125125
template_path: hooks/template/sdk_read_one_post_request.go.tpl
126126
sdk_update_post_build_request:
127127
template_path: hooks/template/sdk_update_post_build_request.go.tpl
128+
129+
ReceiptFilter:
130+
list_operation:
131+
match_fields:
132+
- Name
133+
find_operation:
134+
custom_method_name: customFind
135+
update_operation:
136+
custom_method_name: customUpdate
137+
fields:
138+
Name:
139+
is_primary_key: true
140+
is_immutable: true
141+
is_required: true
142+
type: string
143+
Filter.IPFilter.CIDR:
144+
is_immutable: true
145+
Filter.IPFilter.Policy:
146+
is_immutable: true
147+
tags:
148+
ignore: true
149+
exceptions:
150+
terminal_codes:
151+
- AlreadyExists
152+
renames:
153+
operations:
154+
CreateReceiptFilter:
155+
input_fields:
156+
Filter.Name: Name
157+
Name: Filter.Name
158+
DeleteReceiptFilter:
159+
input_fields:
160+
FilterName: Name
161+
hooks:
162+
sdk_file_end:
163+
template_path: hooks/receipt_filter/sdk_file_end.go.tpl
164+
sdk_create_post_build_request:
165+
template_path: hooks/receipt_filter/sdk_create_post_build_request.go.tpl
166+
sdk_read_many_post_request:
167+
template_path: hooks/receipt_filter/sdk_read_many_post_request.go.tpl

apis/v1alpha1/receipt_filter.go

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/types.go

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 165 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/controller/main.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)