Skip to content

Commit

Permalink
Add http3 support in cloudfront_distribution module (ansible-collecti…
Browse files Browse the repository at this point in the history
…ons#1753)

Add http3 support in cloudfront_distribution module

SUMMARY
Add http3 support to cloudfront_distribution module.
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

cloudfront_distribution.py
ADDITIONAL INFORMATION





Tests failure seem to be unrelated to this PR.

Reviewed-by: Markus Bergholz <[email protected]>
Reviewed-by: Nicolas Boutet <[email protected]>
  • Loading branch information
boutetnico authored and abikouo committed Sep 18, 2023
1 parent ecfc0d6 commit 94c699b
Showing 1 changed file with 11 additions and 30 deletions.
41 changes: 11 additions & 30 deletions cloudfront_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@
description:
- The version of the http protocol to use for the distribution.
- AWS defaults this to C(http2).
- Valid values are C(http1.1) and C(http2).
- Valid values are C(http1.1), C(http2), C(http3) and C(http2and3).
type: str
ipv6_enabled:
Expand Down Expand Up @@ -1617,35 +1617,16 @@ def __init__(self, module):
self.__valid_methods_cached_methods[1],
self.__valid_methods
]
self.__valid_lambda_function_association_event_types = set([
'viewer-request',
'viewer-response',
'origin-request',
'origin-response'
])
self.__valid_viewer_certificate_ssl_support_methods = set([
'sni-only',
'vip'
])
self.__valid_viewer_certificate_minimum_protocol_versions = set([
'SSLv3',
'TLSv1',
'TLSv1_2016',
'TLSv1.1_2016',
'TLSv1.2_2018',
'TLSv1.2_2019',
'TLSv1.2_2021'
])
self.__valid_viewer_certificate_certificate_sources = set([
'cloudfront',
'iam',
'acm'
])
self.__valid_http_versions = set([
'http1.1',
'http2'
])
self.__s3_bucket_domain_identifier = '.s3.amazonaws.com'
self.__valid_lambda_function_association_event_types = set(
["viewer-request", "viewer-response", "origin-request", "origin-response"]
)
self.__valid_viewer_certificate_ssl_support_methods = set(["sni-only", "vip"])
self.__valid_viewer_certificate_minimum_protocol_versions = set(
["SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021"]
)
self.__valid_viewer_certificate_certificate_sources = set(["cloudfront", "iam", "acm"])
self.__valid_http_versions = set(["http1.1", "http2", "http3", "http2and3"])
self.__s3_bucket_domain_identifier = ".s3.amazonaws.com"

def add_missing_key(self, dict_object, key_to_set, value_to_set):
if key_to_set not in dict_object and value_to_set is not None:
Expand Down

0 comments on commit 94c699b

Please sign in to comment.