Skip to content

Commit d670f0c

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

30 files changed

+2076
-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-15T12:18:29Z"
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: 3f4f1ea172a5c99f5c17fa6443b3f7739995ef05
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.55.5
99
generator_config_info:
10-
file_checksum: 83acbeaf92972bb59e3dd0b095cdc200cfc6c184
10+
file_checksum: 93dad69a7573306744e55da1b146011706bcb39e
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ ignore:
33
# - ConfigurationSet
44
- ConfigurationSetEventDestination
55
- CustomVerificationEmailTemplate
6-
- ReceiptFilter
6+
# - ReceiptFilter
77
# - ReceiptRule
88
# - ReceiptRuleSet
99
# - Template
1010

1111
field_paths:
1212
- CreateConfigurationSetInput.ConfigurationSet
1313
- CreateTemplateInput.Template
14+
- CreateReceiptFilterInput.Filter.Name
1415
model_name: email
1516

1617
resources:
@@ -125,3 +126,43 @@ resources:
125126
template_path: hooks/template/sdk_read_one_post_request.go.tpl
126127
sdk_update_post_build_request:
127128
template_path: hooks/template/sdk_update_post_build_request.go.tpl
129+
130+
ReceiptFilter:
131+
list_operation:
132+
match_fields:
133+
- Name
134+
find_operation:
135+
custom_method_name: customFind
136+
update_operation:
137+
custom_method_name: customUpdate
138+
fields:
139+
Name:
140+
is_primary_key: true
141+
is_immutable: true
142+
is_required: true
143+
type: string
144+
Filter.IPFilter.CIDR:
145+
is_immutable: true
146+
Filter.IPFilter.Policy:
147+
is_immutable: true
148+
tags:
149+
ignore: true
150+
exceptions:
151+
terminal_codes:
152+
- AlreadyExists
153+
renames:
154+
operations:
155+
CreateReceiptFilter:
156+
input_fields:
157+
Filter.Name: Name
158+
Name: Filter.Name
159+
DeleteReceiptFilter:
160+
input_fields:
161+
FilterName: Name
162+
hooks:
163+
sdk_file_end:
164+
template_path: hooks/receipt_filter/sdk_file_end.go.tpl
165+
sdk_create_post_build_request:
166+
template_path: hooks/receipt_filter/sdk_create_post_build_request.go.tpl
167+
sdk_read_many_post_request:
168+
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: 24 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: 160 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)