Closed jkirsteins closed 2 years ago
Judging by https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_DistributionConfig.html the enum values should be:
http2
instead of HTTP2
, andhttp1.1
instead of HTTP1_1
I can confirm that the API calls work with these values. However, it looks like this was deliberately changed here: https://github.com/soto-project/soto-codegenerator/blob/3778d74bb9f7d6b93d84fdac80a7bc3e656bac2e/Sources/SotoCodeGenerator/Model%2BPatch.swift#L26
I'm not sure why it was changed, so I'm not submitting a PR to fix it. However, as-is, calls involving DistributionConfig structures are broken.
I was just looking at this. The commit message that went with the patch wasn't very helpful. I have now found the reason. HttpVersion
is used in both DistributionConfig
and DistributionSummary
. In one it is uppercase and in the other it is lowercase.
Try running CloudFront.ListDistributions
you'll see it returns a DistributionSummary
with an uppercase HTTP enum.
Do you want to try fix #568
Thanks for the prompt response. I can confirm revision f70bd19ff7dc296294d992ad226cac55a9d6d8f8
works simultaneously for:
DistributionConfig
DistributionSummary
Released in v5.12.0
Describe the bug
When creating a new CloudFront distribution:
CloudFront.CreateDistributionRequest
successfullyTo Reproduce
Expected behavior
A successful response.
Setup (please complete the following information):