Skip to content

Commit

Permalink
Implement resource ReceiptRule
Browse files Browse the repository at this point in the history
Signed-off-by: cpu1 <[email protected]>
  • Loading branch information
cPu1 committed Nov 15, 2024
1 parent 177da68 commit 2c9ce47
Show file tree
Hide file tree
Showing 31 changed files with 2,947 additions and 58 deletions.
6 changes: 3 additions & 3 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-11-15T10:41:37Z"
build_date: "2024-11-15T11:07:01Z"
build_hash: 9715a2a715317a76ae83825294ca50cde9afd97b
go_version: go1.22.5
version: v0.39.1-4-g9715a2a
api_directory_checksum: 321ba64ffa258789823c7b8cc23a8d9d75c1080c
api_directory_checksum: 8e40470ceaaf8fc50a613a29f38a0feb924b59f1
api_version: v1alpha1
aws_sdk_go_version: v1.55.5
generator_config_info:
file_checksum: aa1c1fc94f2d60cd59b79690003ca0ac3f82b120
file_checksum: c8fa422eab59f0e35553f3122f2bf09a78fa120e
original_file_name: generator.yaml
last_modification:
reason: API generation
31 changes: 30 additions & 1 deletion apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ignore:
- ConfigurationSetEventDestination
- CustomVerificationEmailTemplate
- ReceiptFilter
- ReceiptRule
# - ReceiptRule
# - ReceiptRuleSet
- Template

Expand Down Expand Up @@ -56,3 +56,32 @@ resources:
hooks:
sdk_read_one_post_request:
template_path: hooks/receipt_rule_set/sdk_read_one_post_request.go.tpl

ReceiptRule:
find_operation:
custom_method_name: customFind
fields:
Rule.Name:
is_immutable: true
is_required: true
RuleSetName:
is_primary_key: true
is_immutable: true
is_required: true
references:
resource: ReceiptRuleSet
path: Spec.RuleSetName
tags:
ignore: true
exceptions:
terminal_codes:
- AlreadyExists
- InvalidLambdaFunction
- InvalidS3Configuration
- InvalidSnsTopic
- RuleSetDoesNotExist
hooks:
sdk_file_end:
template_path: hooks/receipt_rule/sdk_file_end.go.tpl
sdk_delete_post_build_request:
template_path: hooks/receipt_rule/sdk_delete_post_build_request.go.tpl
86 changes: 86 additions & 0 deletions apis/v1alpha1/receipt_rule.go

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

26 changes: 13 additions & 13 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 2c9ce47

Please sign in to comment.