Skip to content

Commit 535e3b4

Browse files
authored
Add Archive Resource (#11)
feat: Add `Archive` resource By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent e497ea5 commit 535e3b4

32 files changed

+2692
-19
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: "2023-02-07T14:20:32Z"
2+
build_date: "2023-02-15T11:05:34Z"
33
build_hash: 92c80ba0af0d3c80ed9d16126957523052fac5f4
44
go_version: go1.19.5
55
version: v0.23.1-4-g92c80ba
6-
api_directory_checksum: cca146e2e27cc0c4dc130b6abe826ab55fb1aeeb
6+
api_directory_checksum: bd91074beb44d10293a1fcda2f7b2c90038ebbf9
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.97
99
generator_config_info:
10-
file_checksum: 94d41f45265086ed819689b75926237e8c985ebc
10+
file_checksum: fe7e5f32a06789b0878614ad0cf0b467bbca7fd6
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/archive.go

Lines changed: 91 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: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
ignore:
22
resource_names:
3+
# - Archive
4+
# - EventBus
35
- ApiDestination
4-
- Archive
56
- Connection
67
- Endpoint
7-
# - EventBus
88
- PartnerEventSource
99
operations:
1010
PutRule:
@@ -13,6 +13,44 @@ operations:
1313
- Update
1414
resource_name: Rule
1515
resources:
16+
Archive:
17+
fields:
18+
ArchiveName:
19+
is_immutable: true
20+
is_required: true
21+
EventSourceARN:
22+
is_immutable: true
23+
is_required: true
24+
references:
25+
resource: EventBus
26+
path: Status.ACKResourceMetadata.ARN
27+
tags:
28+
ignore: true # API does not support tags
29+
hooks:
30+
sdk_create_post_set_output:
31+
template_path: hooks/archive/sdk_create_post_set_output.go.tpl
32+
sdk_update_pre_build_request:
33+
template_path: hooks/archive/sdk_update_pre_build_request.go.tpl
34+
sdk_update_post_build_request:
35+
template_path: hooks/archive/sdk_update_post_build_request.go.tpl
36+
print:
37+
add_age_column: true
38+
add_synced_column: true
39+
additional_columns:
40+
- name: ARN
41+
json_path: .status.ackResourceMetadata.arn
42+
type: string
43+
- name: STATE
44+
json_path: .status.state
45+
type: string
46+
exceptions:
47+
errors:
48+
404:
49+
code: ResourceNotFoundException
50+
terminal_codes:
51+
- ValidationError
52+
- ValidationException
53+
- InvalidEventPatternException
1654
EventBus:
1755
fields:
1856
Name:

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)