Skip to content

Add support to configure EventInvokeConfig for Version #115

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
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
2 changes: 1 addition & 1 deletion apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ api_directory_checksum: 72bea0d84787d3f6fcaf7bbbc7f576a6d78b4609
api_version: v1alpha1
aws_sdk_go_version: v1.44.181
generator_config_info:
file_checksum: 0f86b7a7f2adfe243a9aa055853514f6b4c16645
file_checksum: ad8dfe3985ccc54cbe75614e8bf1381b9212bfee
original_file_name: generator.yaml
last_modification:
reason: API generation
10 changes: 10 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,25 @@ resources:
from:
operation: GetFunctionConfiguration
path: Version
FunctionEventInvokeConfig:
from:
operation: PutFunctionEventInvokeConfig
path: .
tags:
ignore: true
update_operation:
custom_method_name: customUpdateVersion
hooks:
sdk_read_one_pre_build_request:
template_path: hooks/version/sdk_read_one_pre_build_request.go.tpl
sdk_create_pre_build_request:
template_path: hooks/version/sdk_create_pre_build_request.go.tpl
sdk_create_pre_set_output:
template_path: hooks/version/sdk_create_pre_set_output.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/version/sdk_read_one_post_set_output.go.tpl
sdk_create_post_set_output:
template_path: hooks/version/sdk_create_post_set_output.go.tpl
renames:
operations:
DeleteFunction:
Expand Down
3 changes: 2 additions & 1 deletion apis/v1alpha1/version.go

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

5 changes: 5 additions & 0 deletions apis/v1alpha1/zz_generated.deepcopy.go

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

31 changes: 31 additions & 0 deletions config/crd/bases/lambda.services.k8s.aws_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,37 @@ spec:
description: A description for the version to override the description
in the function configuration.
type: string
functionEventInvokeConfig:
properties:
destinationConfig:
description: A configuration object that specifies the destination
of an event after Lambda processes it.
properties:
onFailure:
description: A destination for events that failed processing.
properties:
destination:
type: string
type: object
onSuccess:
description: A destination for events that were processed
successfully.
properties:
destination:
type: string
type: object
type: object
functionName:
type: string
maximumEventAgeInSeconds:
format: int64
type: integer
maximumRetryAttempts:
format: int64
type: integer
qualifier:
type: string
type: object
functionName:
description: "The name of the Lambda function. \n Name formats \n
* Function name - MyFunction. \n * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Expand Down
10 changes: 10 additions & 0 deletions generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,25 @@ resources:
from:
operation: GetFunctionConfiguration
path: Version
FunctionEventInvokeConfig:
from:
operation: PutFunctionEventInvokeConfig
path: .
tags:
ignore: true
update_operation:
custom_method_name: customUpdateVersion
hooks:
sdk_read_one_pre_build_request:
template_path: hooks/version/sdk_read_one_pre_build_request.go.tpl
sdk_create_pre_build_request:
template_path: hooks/version/sdk_create_pre_build_request.go.tpl
sdk_create_pre_set_output:
template_path: hooks/version/sdk_create_pre_set_output.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/version/sdk_read_one_post_set_output.go.tpl
sdk_create_post_set_output:
template_path: hooks/version/sdk_create_post_set_output.go.tpl
renames:
operations:
DeleteFunction:
Expand Down
31 changes: 31 additions & 0 deletions helm/crds/lambda.services.k8s.aws_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,37 @@ spec:
description: A description for the version to override the description
in the function configuration.
type: string
functionEventInvokeConfig:
properties:
destinationConfig:
description: A configuration object that specifies the destination
of an event after Lambda processes it.
properties:
onFailure:
description: A destination for events that failed processing.
properties:
destination:
type: string
type: object
onSuccess:
description: A destination for events that were processed
successfully.
properties:
destination:
type: string
type: object
type: object
functionName:
type: string
maximumEventAgeInSeconds:
format: int64
type: integer
maximumRetryAttempts:
format: int64
type: integer
qualifier:
type: string
type: object
functionName:
description: "The name of the Lambda function. \n Name formats \n
- Function name - MyFunction. \n - Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.
Expand Down
58 changes: 58 additions & 0 deletions pkg/resource/version/delta.go

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

Loading