Show / Hide Table of Contents

Enum HttpVersion

The HTTP version(s) to enable on the distribution.

Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum HttpVersion
Syntax (vb)
Public Enum HttpVersion
Remarks

Note: Setting HTTP3 enables HTTP 3 only (not HTTP 2). To support both HTTP 2 and HTTP 3, use HTTP2_AND_3.

See: https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_UpdateDistribution.html#cloudfront-UpdateDistribution-request-HttpVersion

ExampleMetadata: infused

Examples
// Configure a distribution to use HTTP/2 and HTTP/3
             // Configure a distribution to use HTTP/2 and HTTP/3
             new Distribution(this, "myDist", new DistributionProps {
                 DefaultBehavior = new BehaviorOptions { Origin = new HttpOrigin("www.example.com") },
                 HttpVersion = HttpVersion.HTTP2_AND_3
             });

Synopsis

Fields

HTTP1_1

HTTP 1.1.

HTTP2

HTTP 2.

HTTP2_AND_3

HTTP 2 and HTTP 3.

HTTP3

HTTP 3 only (does not include HTTP 2).

Fields

Name Description
HTTP1_1

HTTP 1.1.

HTTP2

HTTP 2.

HTTP2_AND_3

HTTP 2 and HTTP 3.

HTTP3

HTTP 3 only (does not include HTTP 2).

Back to top Generated by DocFX