Skip to content

Commit bbd4311

Browse files
committed
Implement resource ReceiptRule
Signed-off-by: cpu1 <[email protected]>
1 parent 0ec9573 commit bbd4311

31 files changed

+2962
-58
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-15T10:41:37Z"
2+
build_date: "2024-11-15T11:07:01Z"
33
build_hash: 9715a2a715317a76ae83825294ca50cde9afd97b
44
go_version: go1.22.5
55
version: v0.39.1-4-g9715a2a
6-
api_directory_checksum: 321ba64ffa258789823c7b8cc23a8d9d75c1080c
6+
api_directory_checksum: 8e40470ceaaf8fc50a613a29f38a0feb924b59f1
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.55.5
99
generator_config_info:
10-
file_checksum: aa1c1fc94f2d60cd59b79690003ca0ac3f82b120
10+
file_checksum: c8fa422eab59f0e35553f3122f2bf09a78fa120e
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ignore:
44
- ConfigurationSetEventDestination
55
- CustomVerificationEmailTemplate
66
- ReceiptFilter
7-
- ReceiptRule
7+
# - ReceiptRule
88
# - ReceiptRuleSet
99
- Template
1010

@@ -56,3 +56,32 @@ resources:
5656
hooks:
5757
sdk_read_one_post_request:
5858
template_path: hooks/receipt_rule_set/sdk_read_one_post_request.go.tpl
59+
60+
ReceiptRule:
61+
find_operation:
62+
custom_method_name: customFind
63+
fields:
64+
Rule.Name:
65+
is_immutable: true
66+
is_required: true
67+
RuleSetName:
68+
is_primary_key: true
69+
is_immutable: true
70+
is_required: true
71+
references:
72+
resource: ReceiptRuleSet
73+
path: Spec.RuleSetName
74+
tags:
75+
ignore: true
76+
exceptions:
77+
terminal_codes:
78+
- AlreadyExists
79+
- InvalidLambdaFunction
80+
- InvalidS3Configuration
81+
- InvalidSnsTopic
82+
- RuleSetDoesNotExist
83+
hooks:
84+
sdk_file_end:
85+
template_path: hooks/receipt_rule/sdk_file_end.go.tpl
86+
sdk_delete_post_build_request:
87+
template_path: hooks/receipt_rule/sdk_delete_post_build_request.go.tpl

apis/v1alpha1/receipt_rule.go

Lines changed: 86 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: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)