Skip to content

Commit f2c2434

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

36 files changed

+2772
-38
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-15T12:18:29Z"
2+
build_date: "2024-11-15T12:22:33Z"
33
build_hash: 9715a2a715317a76ae83825294ca50cde9afd97b
44
go_version: go1.22.5
55
version: v0.39.1-4-g9715a2a
6-
api_directory_checksum: 3f4f1ea172a5c99f5c17fa6443b3f7739995ef05
6+
api_directory_checksum: 89e6d7c7c3de232b8c908d9fc8a94b31166d61d9
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.55.5
99
generator_config_info:
10-
file_checksum: 93dad69a7573306744e55da1b146011706bcb39e
10+
file_checksum: a6402ac3c8ab9987c5e8cbd62774a6e18d52cca6
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/configuration_set_event_destination.go

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

apis/v1alpha1/generator.yaml

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ignore:
22
resource_names:
33
# - ConfigurationSet
4-
- ConfigurationSetEventDestination
4+
# - ConfigurationSetEventDestination
55
- CustomVerificationEmailTemplate
66
# - ReceiptFilter
77
# - ReceiptRule
@@ -14,6 +14,12 @@ ignore:
1414
- CreateReceiptFilterInput.Filter.Name
1515
model_name: email
1616

17+
operations:
18+
DescribeConfigurationSet:
19+
operation_type:
20+
- Get
21+
resource_name: ConfigurationSetEventDestination
22+
1723
resources:
1824
ConfigurationSet:
1925
fields:
@@ -166,3 +172,46 @@ resources:
166172
template_path: hooks/receipt_filter/sdk_create_post_build_request.go.tpl
167173
sdk_read_many_post_request:
168174
template_path: hooks/receipt_filter/sdk_read_many_post_request.go.tpl
175+
176+
ConfigurationSetEventDestination:
177+
fields:
178+
ConfigurationSetName:
179+
is_primary_key: true
180+
is_immutable: true
181+
references:
182+
resource: ConfigurationSet
183+
path: Spec.Name
184+
EventDestination.Name:
185+
is_required: true
186+
is_immutable: true
187+
EventDestination.MatchingEventTypes:
188+
is_required: true
189+
EventDestination.SNSDestination.TopicARN:
190+
is_required: true
191+
references:
192+
service_name: sns
193+
resource: Topic
194+
path: Status.TopicARN
195+
tags:
196+
ignore: true
197+
exceptions:
198+
terminal_codes:
199+
- ConfigurationSetDoesNotExist
200+
- EventDestinationAlreadyExists
201+
- InvalidCloudWatchDestination
202+
- InvalidFirehoseDestination
203+
- InvalidSNSDestination
204+
- LimitExceeded
205+
hooks:
206+
sdk_read_one_post_request:
207+
template_path: hooks/configuration_set_event_destination/sdk_read_one_post_request.go.tpl
208+
sdk_read_one_pre_build_request:
209+
template_path: hooks/configuration_set_event_destination/sdk_read_one_pre_build_request.go.tpl
210+
sdk_read_one_post_build_request:
211+
template_path: hooks/configuration_set_event_destination/sdk_read_one_post_build_request.go.tpl
212+
sdk_read_one_post_set_output:
213+
template_path: hooks/configuration_set_event_destination/sdk_read_one_post_set_output.go.tpl
214+
sdk_delete_post_build_request:
215+
template_path: hooks/configuration_set_event_destination/sdk_delete_post_build_request.go.tpl
216+
sdk_file_end:
217+
template_path: hooks/configuration_set_event_destination/sdk_file_end.go.tpl

apis/v1alpha1/types.go

Lines changed: 2 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: 125 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: 3 additions & 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)