Skip to content

Commit 0a1f75d

Browse files
authored
Add support for api_key resource (#29)
Description of changes: - Adding support for Api keys resource - Tests - Value is a secret reference - Tags Support By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent fb4148d commit 0a1f75d

34 files changed

+2723
-15
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: "2025-04-08T22:19:16Z"
2+
build_date: "2025-04-10T17:18:37Z"
33
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
44
go_version: go1.24.0
55
version: v0.43.2-14-g0909e7f
6-
api_directory_checksum: 38f3854ec052552b2259dbfdc6e8ceb0932476a3
6+
api_directory_checksum: 58f6efc74b9a4ba3fae4cec38c981b52409f143a
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 312713f8325616b13defaf9078ce1019a5e7a181
10+
file_checksum: f6718d195d829cee30fea115df5ee64261ec25da
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/api_key.go

Lines changed: 99 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: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ operations:
4343
resource_name: ApiIntegrationResponse
4444
ignore:
4545
resource_names:
46-
- ApiKey
46+
# - ApiKey
4747
- Authorizer
4848
- BasePathMapping
4949
- Deployment
@@ -63,6 +63,14 @@ ignore:
6363
field_paths:
6464
- Resource.ResourceMethods
6565
- CreateResourceOutput.ResourceMethods
66+
- GetApiKeyInput.IncludeValue
67+
- GetApiKeyOutput.Value
68+
- CreateApiKeyOutput.Value
69+
- UpdateApiKeyInput.Value
70+
- UpdateApiKeyOutput.Value
71+
- CreateApiKeyOutput.StageKeys
72+
- UpdateApiKeyOutput.StageKeys
73+
- GetApiKeyOutput.StageKeys
6674
resources:
6775
VpcLink:
6876
fields:
@@ -321,4 +329,40 @@ resources:
321329
exceptions:
322330
terminal_codes:
323331
- BadRequestException
324-
- InvalidParameter
332+
- InvalidParameter
333+
ApiKey:
334+
fields:
335+
ID:
336+
is_primary_key: true
337+
Name:
338+
is_required: true
339+
StageKeys:
340+
list_of: StageKey
341+
Value:
342+
is_secret: true
343+
exceptions:
344+
terminal_codes:
345+
- BadRequestException
346+
- InvalidParameter
347+
renames:
348+
operations:
349+
GetApiKey:
350+
input_fields:
351+
ApiKey: Id
352+
UpdateApiKey:
353+
input_fields:
354+
ApiKey: Id
355+
DeleteApiKey:
356+
input_fields:
357+
ApiKey: Id
358+
hooks:
359+
sdk_update_pre_build_request:
360+
template_path: hooks/api_key/sdk_update_pre_build_request.go.tpl
361+
sdk_update_post_build_request:
362+
template_path: hooks/api_key/sdk_update_post_build_request.go.tpl
363+
sdk_read_one_post_request:
364+
template_path: hooks/api_key/sdk_read_one_post_request.go.tpl
365+
sdk_create_post_request:
366+
template_path: hooks/api_key/sdk_update_post_request.go.tpl
367+
sdk_update_post_request:
368+
template_path: hooks/api_key/sdk_update_post_request.go.tpl

apis/v1alpha1/types.go

Lines changed: 1 addition & 1 deletion
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: 178 additions & 3 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)