Skip to content

Commit 85139ef

Browse files
author
awstools
committed
feat(client-cloudfront): This release adds new origin timeout options: 1) ResponseCompletionTimeout and 2) OriginReadTimeout (for S3 origins)
1 parent ec57020 commit 85139ef

18 files changed

+87
-20
lines changed

clients/client-cloudfront/src/commands/CopyDistributionCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export interface CopyDistributionCommandOutput extends CopyDistributionResult, _
113113
* // },
114114
* // S3OriginConfig: { // S3OriginConfig
115115
* // OriginAccessIdentity: "STRING_VALUE", // required
116+
* // OriginReadTimeout: Number("int"),
116117
* // },
117118
* // CustomOriginConfig: { // CustomOriginConfig
118119
* // HTTPPort: Number("int"), // required
@@ -134,6 +135,7 @@ export interface CopyDistributionCommandOutput extends CopyDistributionResult, _
134135
* // },
135136
* // ConnectionAttempts: Number("int"),
136137
* // ConnectionTimeout: Number("int"),
138+
* // ResponseCompletionTimeout: Number("int"),
137139
* // OriginShield: { // OriginShield
138140
* // Enabled: true || false, // required
139141
* // OriginShieldRegion: "STRING_VALUE",

clients/client-cloudfront/src/commands/CreateCachePolicyCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface CreateCachePolicyCommandInput extends CreateCachePolicyRequest
2828
export interface CreateCachePolicyCommandOutput extends CreateCachePolicyResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Creates a cache policy.</p> <p>After you create a cache policy, you can attach it to one or more cache behaviors. When it's attached to a cache behavior, the cache policy determines the following:</p> <ul> <li> <p>The values that CloudFront includes in the <i>cache key</i>. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.</p> </li> <li> <p>The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.</p> </li> </ul> <p>The headers, cookies, and query strings that are included in the cache key are also included in requests that CloudFront sends to the origin. CloudFront sends a request when it can't find an object in its cache that matches the request's cache key. If you want to send values to the origin but <i>not</i> include them in the cache key, use <code>OriginRequestPolicy</code>.</p> <p>For more information about cache policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html">Controlling the cache key</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
31+
* <p>Creates a cache policy.</p> <p>After you create a cache policy, you can attach it to one or more cache behaviors. When it's attached to a cache behavior, the cache policy determines the following:</p> <ul> <li> <p>The values that CloudFront includes in the <i>cache key</i>. These values can include HTTP headers, cookies, and URL query strings. CloudFront uses the cache key to find an object in its cache that it can return to the viewer.</p> </li> <li> <p>The default, minimum, and maximum time to live (TTL) values that you want objects to stay in the CloudFront cache.</p> <important> <p>If your minimum TTL is greater than 0, CloudFront will cache content for at least the duration specified in the cache policy's minimum TTL, even if the <code>Cache-Control: no-cache</code>, <code>no-store</code>, or <code>private</code> directives are present in the origin headers.</p> </important> </li> </ul> <p>The headers, cookies, and query strings that are included in the cache key are also included in requests that CloudFront sends to the origin. CloudFront sends a request when it can't find an object in its cache that matches the request's cache key. If you want to send values to the origin but <i>not</i> include them in the cache key, use <code>OriginRequestPolicy</code>.</p> <p>For more information about cache policies, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html">Controlling the cache key</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

clients/client-cloudfront/src/commands/CreateDistributionCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export interface CreateDistributionCommandOutput extends CreateDistributionResul
6868
* },
6969
* S3OriginConfig: { // S3OriginConfig
7070
* OriginAccessIdentity: "STRING_VALUE", // required
71+
* OriginReadTimeout: Number("int"),
7172
* },
7273
* CustomOriginConfig: { // CustomOriginConfig
7374
* HTTPPort: Number("int"), // required
@@ -89,6 +90,7 @@ export interface CreateDistributionCommandOutput extends CreateDistributionResul
8990
* },
9091
* ConnectionAttempts: Number("int"),
9192
* ConnectionTimeout: Number("int"),
93+
* ResponseCompletionTimeout: Number("int"),
9294
* OriginShield: { // OriginShield
9395
* Enabled: true || false, // required
9496
* OriginShieldRegion: "STRING_VALUE",
@@ -424,6 +426,7 @@ export interface CreateDistributionCommandOutput extends CreateDistributionResul
424426
* // },
425427
* // S3OriginConfig: { // S3OriginConfig
426428
* // OriginAccessIdentity: "STRING_VALUE", // required
429+
* // OriginReadTimeout: Number("int"),
427430
* // },
428431
* // CustomOriginConfig: { // CustomOriginConfig
429432
* // HTTPPort: Number("int"), // required
@@ -445,6 +448,7 @@ export interface CreateDistributionCommandOutput extends CreateDistributionResul
445448
* // },
446449
* // ConnectionAttempts: Number("int"),
447450
* // ConnectionTimeout: Number("int"),
451+
* // ResponseCompletionTimeout: Number("int"),
448452
* // OriginShield: { // OriginShield
449453
* // Enabled: true || false, // required
450454
* // OriginShieldRegion: "STRING_VALUE",

clients/client-cloudfront/src/commands/CreateDistributionWithTagsCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export interface CreateDistributionWithTagsCommandOutput extends CreateDistribut
6969
* },
7070
* S3OriginConfig: { // S3OriginConfig
7171
* OriginAccessIdentity: "STRING_VALUE", // required
72+
* OriginReadTimeout: Number("int"),
7273
* },
7374
* CustomOriginConfig: { // CustomOriginConfig
7475
* HTTPPort: Number("int"), // required
@@ -90,6 +91,7 @@ export interface CreateDistributionWithTagsCommandOutput extends CreateDistribut
9091
* },
9192
* ConnectionAttempts: Number("int"),
9293
* ConnectionTimeout: Number("int"),
94+
* ResponseCompletionTimeout: Number("int"),
9395
* OriginShield: { // OriginShield
9496
* Enabled: true || false, // required
9597
* OriginShieldRegion: "STRING_VALUE",
@@ -434,6 +436,7 @@ export interface CreateDistributionWithTagsCommandOutput extends CreateDistribut
434436
* // },
435437
* // S3OriginConfig: { // S3OriginConfig
436438
* // OriginAccessIdentity: "STRING_VALUE", // required
439+
* // OriginReadTimeout: Number("int"),
437440
* // },
438441
* // CustomOriginConfig: { // CustomOriginConfig
439442
* // HTTPPort: Number("int"), // required
@@ -455,6 +458,7 @@ export interface CreateDistributionWithTagsCommandOutput extends CreateDistribut
455458
* // },
456459
* // ConnectionAttempts: Number("int"),
457460
* // ConnectionTimeout: Number("int"),
461+
* // ResponseCompletionTimeout: Number("int"),
458462
* // OriginShield: { // OriginShield
459463
* // Enabled: true || false, // required
460464
* // OriginShieldRegion: "STRING_VALUE",

clients/client-cloudfront/src/commands/GetDistributionCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export interface GetDistributionCommandOutput extends GetDistributionResult, __M
109109
* // },
110110
* // S3OriginConfig: { // S3OriginConfig
111111
* // OriginAccessIdentity: "STRING_VALUE", // required
112+
* // OriginReadTimeout: Number("int"),
112113
* // },
113114
* // CustomOriginConfig: { // CustomOriginConfig
114115
* // HTTPPort: Number("int"), // required
@@ -130,6 +131,7 @@ export interface GetDistributionCommandOutput extends GetDistributionResult, __M
130131
* // },
131132
* // ConnectionAttempts: Number("int"),
132133
* // ConnectionTimeout: Number("int"),
134+
* // ResponseCompletionTimeout: Number("int"),
133135
* // OriginShield: { // OriginShield
134136
* // Enabled: true || false, // required
135137
* // OriginShieldRegion: "STRING_VALUE",

clients/client-cloudfront/src/commands/GetDistributionConfigCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export interface GetDistributionConfigCommandOutput extends GetDistributionConfi
7272
* // },
7373
* // S3OriginConfig: { // S3OriginConfig
7474
* // OriginAccessIdentity: "STRING_VALUE", // required
75+
* // OriginReadTimeout: Number("int"),
7576
* // },
7677
* // CustomOriginConfig: { // CustomOriginConfig
7778
* // HTTPPort: Number("int"), // required
@@ -93,6 +94,7 @@ export interface GetDistributionConfigCommandOutput extends GetDistributionConfi
9394
* // },
9495
* // ConnectionAttempts: Number("int"),
9596
* // ConnectionTimeout: Number("int"),
97+
* // ResponseCompletionTimeout: Number("int"),
9698
* // OriginShield: { // OriginShield
9799
* // Enabled: true || false, // required
98100
* // OriginShieldRegion: "STRING_VALUE",

clients/client-cloudfront/src/commands/ListDistributionsByAnycastIpListIdCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export interface ListDistributionsByAnycastIpListIdCommandOutput
9090
* // },
9191
* // S3OriginConfig: { // S3OriginConfig
9292
* // OriginAccessIdentity: "STRING_VALUE", // required
93+
* // OriginReadTimeout: Number("int"),
9394
* // },
9495
* // CustomOriginConfig: { // CustomOriginConfig
9596
* // HTTPPort: Number("int"), // required
@@ -111,6 +112,7 @@ export interface ListDistributionsByAnycastIpListIdCommandOutput
111112
* // },
112113
* // ConnectionAttempts: Number("int"),
113114
* // ConnectionTimeout: Number("int"),
115+
* // ResponseCompletionTimeout: Number("int"),
114116
* // OriginShield: { // OriginShield
115117
* // Enabled: true || false, // required
116118
* // OriginShieldRegion: "STRING_VALUE",

clients/client-cloudfront/src/commands/ListDistributionsByConnectionModeCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export interface ListDistributionsByConnectionModeCommandOutput
9090
* // },
9191
* // S3OriginConfig: { // S3OriginConfig
9292
* // OriginAccessIdentity: "STRING_VALUE", // required
93+
* // OriginReadTimeout: Number("int"),
9394
* // },
9495
* // CustomOriginConfig: { // CustomOriginConfig
9596
* // HTTPPort: Number("int"), // required
@@ -111,6 +112,7 @@ export interface ListDistributionsByConnectionModeCommandOutput
111112
* // },
112113
* // ConnectionAttempts: Number("int"),
113114
* // ConnectionTimeout: Number("int"),
115+
* // ResponseCompletionTimeout: Number("int"),
114116
* // OriginShield: { // OriginShield
115117
* // Enabled: true || false, // required
116118
* // OriginShieldRegion: "STRING_VALUE",

clients/client-cloudfront/src/commands/ListDistributionsByRealtimeLogConfigCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export interface ListDistributionsByRealtimeLogConfigCommandOutput
9191
* // },
9292
* // S3OriginConfig: { // S3OriginConfig
9393
* // OriginAccessIdentity: "STRING_VALUE", // required
94+
* // OriginReadTimeout: Number("int"),
9495
* // },
9596
* // CustomOriginConfig: { // CustomOriginConfig
9697
* // HTTPPort: Number("int"), // required
@@ -112,6 +113,7 @@ export interface ListDistributionsByRealtimeLogConfigCommandOutput
112113
* // },
113114
* // ConnectionAttempts: Number("int"),
114115
* // ConnectionTimeout: Number("int"),
116+
* // ResponseCompletionTimeout: Number("int"),
115117
* // OriginShield: { // OriginShield
116118
* // Enabled: true || false, // required
117119
* // OriginShieldRegion: "STRING_VALUE",

clients/client-cloudfront/src/commands/ListDistributionsByWebACLIdCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export interface ListDistributionsByWebACLIdCommandOutput extends ListDistributi
8585
* // },
8686
* // S3OriginConfig: { // S3OriginConfig
8787
* // OriginAccessIdentity: "STRING_VALUE", // required
88+
* // OriginReadTimeout: Number("int"),
8889
* // },
8990
* // CustomOriginConfig: { // CustomOriginConfig
9091
* // HTTPPort: Number("int"), // required
@@ -106,6 +107,7 @@ export interface ListDistributionsByWebACLIdCommandOutput extends ListDistributi
106107
* // },
107108
* // ConnectionAttempts: Number("int"),
108109
* // ConnectionTimeout: Number("int"),
110+
* // ResponseCompletionTimeout: Number("int"),
109111
* // OriginShield: { // OriginShield
110112
* // Enabled: true || false, // required
111113
* // OriginShieldRegion: "STRING_VALUE",

0 commit comments

Comments
 (0)