Skip to content
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

Add support for Origin Access Control CRD #41

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
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