Skip to content

Add support for api_key resource #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: "2025-04-08T22:19:16Z"
build_date: "2025-04-10T17:18:37Z"
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
go_version: go1.24.0
version: v0.43.2-14-g0909e7f
api_directory_checksum: 38f3854ec052552b2259dbfdc6e8ceb0932476a3
api_directory_checksum: 58f6efc74b9a4ba3fae4cec38c981b52409f143a
api_version: v1alpha1
aws_sdk_go_version: v1.32.6
generator_config_info:
file_checksum: 312713f8325616b13defaf9078ce1019a5e7a181
file_checksum: f6718d195d829cee30fea115df5ee64261ec25da
original_file_name: generator.yaml
last_modification:
reason: API generation
99 changes: 99 additions & 0 deletions apis/v1alpha1/api_key.go

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

48 changes: 46 additions & 2 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ operations:
resource_name: ApiIntegrationResponse
ignore:
resource_names:
- ApiKey
# - ApiKey
- Authorizer
- BasePathMapping
- Deployment
Expand All @@ -63,6 +63,14 @@ ignore:
field_paths:
- Resource.ResourceMethods
- CreateResourceOutput.ResourceMethods
- GetApiKeyInput.IncludeValue
- GetApiKeyOutput.Value
- CreateApiKeyOutput.Value
- UpdateApiKeyInput.Value
- UpdateApiKeyOutput.Value
- CreateApiKeyOutput.StageKeys
- UpdateApiKeyOutput.StageKeys
- GetApiKeyOutput.StageKeys
resources:
VpcLink:
fields:
Expand Down Expand Up @@ -321,4 +329,40 @@ resources:
exceptions:
terminal_codes:
- BadRequestException
- InvalidParameter
- InvalidParameter
ApiKey:
fields:
ID:
is_primary_key: true
Name:
is_required: true
StageKeys:
list_of: StageKey
Value:
is_secret: true
exceptions:
terminal_codes:
- BadRequestException
- InvalidParameter
renames:
operations:
GetApiKey:
input_fields:
ApiKey: Id
UpdateApiKey:
input_fields:
ApiKey: Id
DeleteApiKey:
input_fields:
ApiKey: Id
hooks:
sdk_update_pre_build_request:
template_path: hooks/api_key/sdk_update_pre_build_request.go.tpl
sdk_update_post_build_request:
template_path: hooks/api_key/sdk_update_post_build_request.go.tpl
sdk_read_one_post_request:
template_path: hooks/api_key/sdk_read_one_post_request.go.tpl
sdk_create_post_request:
template_path: hooks/api_key/sdk_update_post_request.go.tpl
sdk_update_post_request:
template_path: hooks/api_key/sdk_update_post_request.go.tpl
2 changes: 1 addition & 1 deletion apis/v1alpha1/types.go

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

181 changes: 178 additions & 3 deletions apis/v1alpha1/zz_generated.deepcopy.go

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

1 change: 1 addition & 0 deletions cmd/controller/main.go

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

Loading