Skip to content

Commit 2dbfbe3

Browse files
authored
Set Configuration as an output wrapper for Getfunction response (#135)
**Description:** Adding Configuration field as Output wrapper. As [GetFunction](https://docs.aws.amazon.com/lambda/latest/api/API_GetFunction.html) API returns four main properties, we want to prioritize auto code generation for `Configuration` part as it contains most of the field. For the rest three properties we have written the custom code. This helps minimize the hook size of the code. **Acknowledgment** By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent e7c6f68 commit 2dbfbe3

File tree

5 files changed

+146
-398
lines changed

5 files changed

+146
-398
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-03-29T14:25:17Z"
3-
build_hash: e8df4d5a4b86dea0e227786c2c3d213e5aeda97a
4-
go_version: go1.22.0
5-
version: v0.33.0
2+
build_date: "2024-04-16T16:52:09Z"
3+
build_hash: 37f4ba2b5a121a8786bc516e9ec4aa0b8b590c7d
4+
go_version: go1.21.6
5+
version: v0.33.0-1-g37f4ba2
66
api_directory_checksum: c67645b15db39980ba51ff6303c34c5aafc55a9e
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.181
99
generator_config_info:
10-
file_checksum: d71df9c47727f5905a2be2ac8d5cfceff3c7bbec
10+
file_checksum: f0fa26f0d3c577f5800eb183e0ec1cea865a75ee
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ignore:
77
# FunctionUrlConfig
88
# LayerVersion
99
operations:
10+
GetFunction:
11+
output_wrapper_field_path: Configuration
1012
PublishLayerVersion:
1113
operation_type:
1214
- Create
@@ -78,6 +80,8 @@ resources:
7880
set:
7981
- method: Create
8082
ignore: true
83+
- method: ReadOne
84+
ignore: true
8185
LayerStatuses:
8286
is_read_only: true
8387
from:

generator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ignore:
77
# FunctionUrlConfig
88
# LayerVersion
99
operations:
10+
GetFunction:
11+
output_wrapper_field_path: Configuration
1012
PublishLayerVersion:
1113
operation_type:
1214
- Create
@@ -78,6 +80,8 @@ resources:
7880
set:
7981
- method: Create
8082
ignore: true
83+
- method: ReadOne
84+
ignore: true
8185
LayerStatuses:
8286
is_read_only: true
8387
from:

0 commit comments

Comments
 (0)