HttpVersion

class aws_cdk.aws_cloudfront.HttpVersion(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

Maximum HTTP version to support.

ExampleMetadata:

infused

Example:

# Configure a distribution to use HTTP/2 and HTTP/3
cloudfront.Distribution(self, "myDist",
    default_behavior=cloudfront.BehaviorOptions(origin=origins.HttpOrigin("www.example.com")),
    http_version=cloudfront.HttpVersion.HTTP2_AND_3
)

Attributes

HTTP1_1

HTTP 1.1.

HTTP2

HTTP 2.

HTTP2_AND_3

HTTP 2 and HTTP 3.

HTTP3

HTTP 3.