Skip to content

Commit 0f250fe

Browse files
author
awstools
committed
feat(client-cloudfront): Adds Http 3 support to distributions
1 parent 6ab9ba7 commit 0f250fe

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

clients/client-cloudfront/src/models/models_0.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ export interface DefaultCacheBehavior {
21732173
MaxTTL?: number;
21742174
}
21752175

2176-
export type HttpVersion = "http1.1" | "http2";
2176+
export type HttpVersion = "http1.1" | "http2" | "http2and3" | "http3";
21772177

21782178
/**
21792179
* <p>A complex type that controls whether access logs are written for the
@@ -3060,14 +3060,16 @@ export interface DistributionConfig {
30603060
WebACLId?: string;
30613061

30623062
/**
3063-
* <p>(Optional) Specify the maximum HTTP version that you want viewers to use to communicate
3064-
* with CloudFront. The default value for new web distributions is http2. Viewers that don't support
3065-
* HTTP/2 automatically use an earlier HTTP version.</p>
3066-
* <p>For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must
3067-
* support Server Name Identification (SNI).</p>
3068-
* <p>In general, configuring CloudFront to communicate with viewers using HTTP/2 reduces latency.
3069-
* You can improve performance by optimizing for HTTP/2. For more information, do an Internet
3070-
* search for "http/2 optimization." </p>
3063+
* <p>(Optional) Specify the maximum HTTP version(s) that you want viewers to use to communicate
3064+
* with CloudFront. The default value for new web distributions is <code>http2</code>. Viewers
3065+
* that don't support HTTP/2 automatically use an earlier HTTP version.</p>
3066+
* <p>For viewers and CloudFront to use HTTP/2, viewers must support TLSv1.2 or later, and must
3067+
* support Server Name Indication (SNI).</p>
3068+
* <p>For viewers and CloudFront to use HTTP/3, viewers must support TLSv1.3 and Server Name
3069+
* Indication (SNI). CloudFront supports HTTP/3 connection migration to allow the
3070+
* viewer to switch networks without losing connection. For more information
3071+
* about connection migration, see <a href="https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration">Connection Migration</a> at RFC 9000. For more information about
3072+
* supported TLSv1.3 ciphers, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html">Supported protocols and ciphers between viewers and CloudFront</a>.</p>
30713073
*/
30723074
HttpVersion?: HttpVersion | string;
30733075

codegen/sdk-codegen/aws-models/cloudfront.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4321,7 +4321,7 @@
43214321
"HttpVersion": {
43224322
"target": "com.amazonaws.cloudfront#HttpVersion",
43234323
"traits": {
4324-
"smithy.api#documentation": "<p>(Optional) Specify the maximum HTTP version that you want viewers to use to communicate \n\t\t\twith CloudFront. The default value for new web distributions is http2. Viewers that don't support \n\t\t\tHTTP/2 automatically use an earlier HTTP version.</p> \n\t\t <p>For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must \n\t\t\tsupport Server Name Identification (SNI).</p> \n\t\t <p>In general, configuring CloudFront to communicate with viewers using HTTP/2 reduces latency. \n\t\t\tYou can improve performance by optimizing for HTTP/2. For more information, do an Internet \n\t\t\tsearch for \"http/2 optimization.\" </p>"
4324+
"smithy.api#documentation": "<p>(Optional) Specify the maximum HTTP version(s) that you want viewers to use to communicate\n\t\t\twith CloudFront. The default value for new web distributions is <code>http2</code>. Viewers\n\t\t\tthat don't support HTTP/2 automatically use an earlier HTTP version.</p> \n\t\t <p>For viewers and CloudFront to use HTTP/2, viewers must support TLSv1.2 or later, and must \n\t\t\tsupport Server Name Indication (SNI).</p>\n\t\t <p>For viewers and CloudFront to use HTTP/3, viewers must support TLSv1.3 and Server Name\n\t\t\tIndication (SNI). CloudFront supports HTTP/3 connection migration to allow the\n\t\t\tviewer to switch networks without losing connection. For more information\n\t\t\tabout connection migration, see <a href=\"https://www.rfc-editor.org/rfc/rfc9000.html#name-connection-migration\">Connection Migration</a> at RFC 9000. For more information about\n\t\t\tsupported TLSv1.3 ciphers, see <a href=\"https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/secure-connections-supported-viewer-protocols-ciphers.html\">Supported protocols and ciphers between viewers and CloudFront</a>.</p>"
43254325
}
43264326
},
43274327
"IsIPV6Enabled": {
@@ -7056,6 +7056,14 @@
70567056
{
70577057
"value": "http2",
70587058
"name": "http2"
7059+
},
7060+
{
7061+
"value": "http3",
7062+
"name": "http3"
7063+
},
7064+
{
7065+
"value": "http2and3",
7066+
"name": "http2and3"
70597067
}
70607068
]
70617069
}

0 commit comments

Comments
 (0)