Skip to content

Commit

Permalink
Add support for Origin Access Control CRD (#41)
Browse files Browse the repository at this point in the history
Issue #, if available: aws-controllers-k8s/community#2093

Description of changes: add support for Origin Access Control CRD

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • Loading branch information
TiberiuGC committed Jul 16, 2024
1 parent 55a7768 commit 896a045
Show file tree
Hide file tree
Showing 32 changed files with 2,318 additions and 30 deletions.
8 changes: 4 additions & 4 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: "2024-05-02T20:52:06Z"
build_date: "2024-07-16T06:20:28Z"
build_hash: 14cef51778d471698018b6c38b604181a6948248
go_version: go1.22.0
go_version: go1.22.4
version: v0.34.0
api_directory_checksum: 86a18c0bfcc849ad234f64249fd8951ce418dd14
api_directory_checksum: 15f4d2a43bf35c6b05f969c9ec2994a6e29d06aa
api_version: v1alpha1
aws_sdk_go_version: v1.44.214
generator_config_info:
file_checksum: 250151346bb9c7a0bcd8cdcdb77f482f2eee0d03
file_checksum: 2b21dc128739e16898da286c033977c6e760fc81
original_file_name: generator.yaml
last_modification:
reason: API generation
29 changes: 28 additions & 1 deletion apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ignore:
- Invalidation
- KeyGroup
- MonitoringSubscription
- OriginAccessControl
# - OriginAccessControl
# - OriginRequestPolicy
- PublicKey
- RealtimeLogConfig
Expand Down Expand Up @@ -83,6 +83,12 @@ operations:
DescribeFunction:
resource_name: Function
operation_type: READ_ONE
CreateOriginAccessControl:
output_wrapper_field_path: OriginAccessControl
GetOriginAccessControl:
resource_name: OriginAccessControl
operation_type: READ_ONE
output_wrapper_field_path: OriginAccessControl
CreateOriginRequestPolicy:
output_wrapper_field_path: OriginRequestPolicy
GetOriginRequestPolicy:
Expand Down Expand Up @@ -213,6 +219,27 @@ resources:
hooks:
sdk_read_one_post_set_output:
template_path: hooks/function/sdk_read_one_post_set_output.go.tpl
OriginAccessControl:
tags:
ignore: true
fields:
ETag:
is_read_only: true
type: string
Location:
is_read_only: true
type: string
hooks:
sdk_read_one_post_set_output:
template_path: hooks/origin_access_control/sdk_read_one_post_set_output.go.tpl
sdk_create_post_set_output:
template_path: hooks/origin_access_control/sdk_create_post_set_output.go.tpl
sdk_update_post_build_request:
template_path: hooks/origin_access_control/sdk_update_post_build_request.go.tpl
sdk_update_post_set_output:
template_path: hooks/origin_access_control/sdk_update_post_set_output.go.tpl
sdk_delete_post_build_request:
template_path: hooks/origin_access_control/sdk_delete_post_build_request.go.tpl
OriginRequestPolicy:
tags:
ignore: true
Expand Down
75 changes: 75 additions & 0 deletions apis/v1alpha1/origin_access_control.go

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

41 changes: 25 additions & 16 deletions apis/v1alpha1/types.go

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

Loading

0 comments on commit 896a045

Please sign in to comment.