@aws-sdk/client-cloudfront 3.856.0 → 3.857.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -11096,6 +11096,9 @@ var se_Origin = /* @__PURE__ */ __name((input, context) => {
11096
11096
  if (input[_CTon] != null) {
11097
11097
  bn.c(import_xml_builder.XmlNode.of(_i, String(input[_CTon])).n(_CTon));
11098
11098
  }
11099
+ if (input[_RCT] != null) {
11100
+ bn.c(import_xml_builder.XmlNode.of(_i, String(input[_RCT])).n(_RCT));
11101
+ }
11099
11102
  if (input[_OS] != null) {
11100
11103
  bn.c(se_OriginShield(input[_OS], context).n(_OS));
11101
11104
  }
@@ -11690,6 +11693,9 @@ var se_S3OriginConfig = /* @__PURE__ */ __name((input, context) => {
11690
11693
  if (input[_OAI] != null) {
11691
11694
  bn.c(import_xml_builder.XmlNode.of(_s, input[_OAI]).n(_OAI));
11692
11695
  }
11696
+ if (input[_ORT] != null) {
11697
+ bn.c(import_xml_builder.XmlNode.of(_i, String(input[_ORT])).n(_ORT));
11698
+ }
11693
11699
  return bn;
11694
11700
  }, "se_S3OriginConfig");
11695
11701
  var se_SessionStickinessConfig = /* @__PURE__ */ __name((input, context) => {
@@ -13901,6 +13907,9 @@ var de_Origin = /* @__PURE__ */ __name((output, context) => {
13901
13907
  if (output[_CTon] != null) {
13902
13908
  contents[_CTon] = (0, import_smithy_client.strictParseInt32)(output[_CTon]);
13903
13909
  }
13910
+ if (output[_RCT] != null) {
13911
+ contents[_RCT] = (0, import_smithy_client.strictParseInt32)(output[_RCT]);
13912
+ }
13904
13913
  if (output[_OS] != null) {
13905
13914
  contents[_OS] = de_OriginShield(output[_OS], context);
13906
13915
  }
@@ -14799,6 +14808,9 @@ var de_S3OriginConfig = /* @__PURE__ */ __name((output, context) => {
14799
14808
  if (output[_OAI] != null) {
14800
14809
  contents[_OAI] = (0, import_smithy_client.expectString)(output[_OAI]);
14801
14810
  }
14811
+ if (output[_ORT] != null) {
14812
+ contents[_ORT] = (0, import_smithy_client.strictParseInt32)(output[_ORT]);
14813
+ }
14802
14814
  return contents;
14803
14815
  }, "de_S3OriginConfig");
14804
14816
  var de_SessionStickinessConfig = /* @__PURE__ */ __name((output, context) => {
@@ -15604,6 +15616,7 @@ var _QSu = "QueryString";
15604
15616
  var _R = "Resource";
15605
15617
  var _RARN = "RoleARN";
15606
15618
  var _RC = "ResponseCode";
15619
+ var _RCT = "ResponseCompletionTimeout";
15607
15620
  var _RE = "RoutingEndpoint";
15608
15621
  var _RF = "RedirectFrom";
15609
15622
  var _RHC = "RemoveHeadersConfig";
@@ -7136,6 +7136,9 @@ const se_Origin = (input, context) => {
7136
7136
  if (input[_CTon] != null) {
7137
7137
  bn.c(__XmlNode.of(_i, String(input[_CTon])).n(_CTon));
7138
7138
  }
7139
+ if (input[_RCT] != null) {
7140
+ bn.c(__XmlNode.of(_i, String(input[_RCT])).n(_RCT));
7141
+ }
7139
7142
  if (input[_OS] != null) {
7140
7143
  bn.c(se_OriginShield(input[_OS], context).n(_OS));
7141
7144
  }
@@ -7756,6 +7759,9 @@ const se_S3OriginConfig = (input, context) => {
7756
7759
  if (input[_OAI] != null) {
7757
7760
  bn.c(__XmlNode.of(_s, input[_OAI]).n(_OAI));
7758
7761
  }
7762
+ if (input[_ORT] != null) {
7763
+ bn.c(__XmlNode.of(_i, String(input[_ORT])).n(_ORT));
7764
+ }
7759
7765
  return bn;
7760
7766
  };
7761
7767
  const se_SessionStickinessConfig = (input, context) => {
@@ -10105,6 +10111,9 @@ const de_Origin = (output, context) => {
10105
10111
  if (output[_CTon] != null) {
10106
10112
  contents[_CTon] = __strictParseInt32(output[_CTon]);
10107
10113
  }
10114
+ if (output[_RCT] != null) {
10115
+ contents[_RCT] = __strictParseInt32(output[_RCT]);
10116
+ }
10108
10117
  if (output[_OS] != null) {
10109
10118
  contents[_OS] = de_OriginShield(output[_OS], context);
10110
10119
  }
@@ -11060,6 +11069,9 @@ const de_S3OriginConfig = (output, context) => {
11060
11069
  if (output[_OAI] != null) {
11061
11070
  contents[_OAI] = __expectString(output[_OAI]);
11062
11071
  }
11072
+ if (output[_ORT] != null) {
11073
+ contents[_ORT] = __strictParseInt32(output[_ORT]);
11074
+ }
11063
11075
  return contents;
11064
11076
  };
11065
11077
  const de_SessionStickinessConfig = (output, context) => {
@@ -11893,6 +11905,7 @@ const _QSu = "QueryString";
11893
11905
  const _R = "Resource";
11894
11906
  const _RARN = "RoleARN";
11895
11907
  const _RC = "ResponseCode";
11908
+ const _RCT = "ResponseCompletionTimeout";
11896
11909
  const _RE = "RoutingEndpoint";
11897
11910
  const _RF = "RedirectFrom";
11898
11911
  const _RHC = "RemoveHeadersConfig";
@@ -108,6 +108,7 @@ declare const CopyDistributionCommand_base: {
108
108
  * // },
109
109
  * // S3OriginConfig: { // S3OriginConfig
110
110
  * // OriginAccessIdentity: "STRING_VALUE", // required
111
+ * // OriginReadTimeout: Number("int"),
111
112
  * // },
112
113
  * // CustomOriginConfig: { // CustomOriginConfig
113
114
  * // HTTPPort: Number("int"), // required
@@ -129,6 +130,7 @@ declare const CopyDistributionCommand_base: {
129
130
  * // },
130
131
  * // ConnectionAttempts: Number("int"),
131
132
  * // ConnectionTimeout: Number("int"),
133
+ * // ResponseCompletionTimeout: Number("int"),
132
134
  * // OriginShield: { // OriginShield
133
135
  * // Enabled: true || false, // required
134
136
  * // OriginShieldRegion: "STRING_VALUE",
@@ -27,7 +27,7 @@ declare const CreateCachePolicyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <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>
30
+ * <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>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -62,6 +62,7 @@ declare const CreateDistributionCommand_base: {
62
62
  * },
63
63
  * S3OriginConfig: { // S3OriginConfig
64
64
  * OriginAccessIdentity: "STRING_VALUE", // required
65
+ * OriginReadTimeout: Number("int"),
65
66
  * },
66
67
  * CustomOriginConfig: { // CustomOriginConfig
67
68
  * HTTPPort: Number("int"), // required
@@ -83,6 +84,7 @@ declare const CreateDistributionCommand_base: {
83
84
  * },
84
85
  * ConnectionAttempts: Number("int"),
85
86
  * ConnectionTimeout: Number("int"),
87
+ * ResponseCompletionTimeout: Number("int"),
86
88
  * OriginShield: { // OriginShield
87
89
  * Enabled: true || false, // required
88
90
  * OriginShieldRegion: "STRING_VALUE",
@@ -418,6 +420,7 @@ declare const CreateDistributionCommand_base: {
418
420
  * // },
419
421
  * // S3OriginConfig: { // S3OriginConfig
420
422
  * // OriginAccessIdentity: "STRING_VALUE", // required
423
+ * // OriginReadTimeout: Number("int"),
421
424
  * // },
422
425
  * // CustomOriginConfig: { // CustomOriginConfig
423
426
  * // HTTPPort: Number("int"), // required
@@ -439,6 +442,7 @@ declare const CreateDistributionCommand_base: {
439
442
  * // },
440
443
  * // ConnectionAttempts: Number("int"),
441
444
  * // ConnectionTimeout: Number("int"),
445
+ * // ResponseCompletionTimeout: Number("int"),
442
446
  * // OriginShield: { // OriginShield
443
447
  * // Enabled: true || false, // required
444
448
  * // OriginShieldRegion: "STRING_VALUE",
@@ -63,6 +63,7 @@ declare const CreateDistributionWithTagsCommand_base: {
63
63
  * },
64
64
  * S3OriginConfig: { // S3OriginConfig
65
65
  * OriginAccessIdentity: "STRING_VALUE", // required
66
+ * OriginReadTimeout: Number("int"),
66
67
  * },
67
68
  * CustomOriginConfig: { // CustomOriginConfig
68
69
  * HTTPPort: Number("int"), // required
@@ -84,6 +85,7 @@ declare const CreateDistributionWithTagsCommand_base: {
84
85
  * },
85
86
  * ConnectionAttempts: Number("int"),
86
87
  * ConnectionTimeout: Number("int"),
88
+ * ResponseCompletionTimeout: Number("int"),
87
89
  * OriginShield: { // OriginShield
88
90
  * Enabled: true || false, // required
89
91
  * OriginShieldRegion: "STRING_VALUE",
@@ -428,6 +430,7 @@ declare const CreateDistributionWithTagsCommand_base: {
428
430
  * // },
429
431
  * // S3OriginConfig: { // S3OriginConfig
430
432
  * // OriginAccessIdentity: "STRING_VALUE", // required
433
+ * // OriginReadTimeout: Number("int"),
431
434
  * // },
432
435
  * // CustomOriginConfig: { // CustomOriginConfig
433
436
  * // HTTPPort: Number("int"), // required
@@ -449,6 +452,7 @@ declare const CreateDistributionWithTagsCommand_base: {
449
452
  * // },
450
453
  * // ConnectionAttempts: Number("int"),
451
454
  * // ConnectionTimeout: Number("int"),
455
+ * // ResponseCompletionTimeout: Number("int"),
452
456
  * // OriginShield: { // OriginShield
453
457
  * // Enabled: true || false, // required
454
458
  * // OriginShieldRegion: "STRING_VALUE",
@@ -104,6 +104,7 @@ declare const GetDistributionCommand_base: {
104
104
  * // },
105
105
  * // S3OriginConfig: { // S3OriginConfig
106
106
  * // OriginAccessIdentity: "STRING_VALUE", // required
107
+ * // OriginReadTimeout: Number("int"),
107
108
  * // },
108
109
  * // CustomOriginConfig: { // CustomOriginConfig
109
110
  * // HTTPPort: Number("int"), // required
@@ -125,6 +126,7 @@ declare const GetDistributionCommand_base: {
125
126
  * // },
126
127
  * // ConnectionAttempts: Number("int"),
127
128
  * // ConnectionTimeout: Number("int"),
129
+ * // ResponseCompletionTimeout: Number("int"),
128
130
  * // OriginShield: { // OriginShield
129
131
  * // Enabled: true || false, // required
130
132
  * // OriginShieldRegion: "STRING_VALUE",
@@ -67,6 +67,7 @@ declare const GetDistributionConfigCommand_base: {
67
67
  * // },
68
68
  * // S3OriginConfig: { // S3OriginConfig
69
69
  * // OriginAccessIdentity: "STRING_VALUE", // required
70
+ * // OriginReadTimeout: Number("int"),
70
71
  * // },
71
72
  * // CustomOriginConfig: { // CustomOriginConfig
72
73
  * // HTTPPort: Number("int"), // required
@@ -88,6 +89,7 @@ declare const GetDistributionConfigCommand_base: {
88
89
  * // },
89
90
  * // ConnectionAttempts: Number("int"),
90
91
  * // ConnectionTimeout: Number("int"),
92
+ * // ResponseCompletionTimeout: Number("int"),
91
93
  * // OriginShield: { // OriginShield
92
94
  * // Enabled: true || false, // required
93
95
  * // OriginShieldRegion: "STRING_VALUE",
@@ -80,6 +80,7 @@ declare const ListDistributionsByAnycastIpListIdCommand_base: {
80
80
  * // },
81
81
  * // S3OriginConfig: { // S3OriginConfig
82
82
  * // OriginAccessIdentity: "STRING_VALUE", // required
83
+ * // OriginReadTimeout: Number("int"),
83
84
  * // },
84
85
  * // CustomOriginConfig: { // CustomOriginConfig
85
86
  * // HTTPPort: Number("int"), // required
@@ -101,6 +102,7 @@ declare const ListDistributionsByAnycastIpListIdCommand_base: {
101
102
  * // },
102
103
  * // ConnectionAttempts: Number("int"),
103
104
  * // ConnectionTimeout: Number("int"),
105
+ * // ResponseCompletionTimeout: Number("int"),
104
106
  * // OriginShield: { // OriginShield
105
107
  * // Enabled: true || false, // required
106
108
  * // OriginShieldRegion: "STRING_VALUE",
@@ -80,6 +80,7 @@ declare const ListDistributionsByConnectionModeCommand_base: {
80
80
  * // },
81
81
  * // S3OriginConfig: { // S3OriginConfig
82
82
  * // OriginAccessIdentity: "STRING_VALUE", // required
83
+ * // OriginReadTimeout: Number("int"),
83
84
  * // },
84
85
  * // CustomOriginConfig: { // CustomOriginConfig
85
86
  * // HTTPPort: Number("int"), // required
@@ -101,6 +102,7 @@ declare const ListDistributionsByConnectionModeCommand_base: {
101
102
  * // },
102
103
  * // ConnectionAttempts: Number("int"),
103
104
  * // ConnectionTimeout: Number("int"),
105
+ * // ResponseCompletionTimeout: Number("int"),
104
106
  * // OriginShield: { // OriginShield
105
107
  * // Enabled: true || false, // required
106
108
  * // OriginShieldRegion: "STRING_VALUE",
@@ -81,6 +81,7 @@ declare const ListDistributionsByRealtimeLogConfigCommand_base: {
81
81
  * // },
82
82
  * // S3OriginConfig: { // S3OriginConfig
83
83
  * // OriginAccessIdentity: "STRING_VALUE", // required
84
+ * // OriginReadTimeout: Number("int"),
84
85
  * // },
85
86
  * // CustomOriginConfig: { // CustomOriginConfig
86
87
  * // HTTPPort: Number("int"), // required
@@ -102,6 +103,7 @@ declare const ListDistributionsByRealtimeLogConfigCommand_base: {
102
103
  * // },
103
104
  * // ConnectionAttempts: Number("int"),
104
105
  * // ConnectionTimeout: Number("int"),
106
+ * // ResponseCompletionTimeout: Number("int"),
105
107
  * // OriginShield: { // OriginShield
106
108
  * // Enabled: true || false, // required
107
109
  * // OriginShieldRegion: "STRING_VALUE",
@@ -80,6 +80,7 @@ declare const ListDistributionsByWebACLIdCommand_base: {
80
80
  * // },
81
81
  * // S3OriginConfig: { // S3OriginConfig
82
82
  * // OriginAccessIdentity: "STRING_VALUE", // required
83
+ * // OriginReadTimeout: Number("int"),
83
84
  * // },
84
85
  * // CustomOriginConfig: { // CustomOriginConfig
85
86
  * // HTTPPort: Number("int"), // required
@@ -101,6 +102,7 @@ declare const ListDistributionsByWebACLIdCommand_base: {
101
102
  * // },
102
103
  * // ConnectionAttempts: Number("int"),
103
104
  * // ConnectionTimeout: Number("int"),
105
+ * // ResponseCompletionTimeout: Number("int"),
104
106
  * // OriginShield: { // OriginShield
105
107
  * // Enabled: true || false, // required
106
108
  * // OriginShieldRegion: "STRING_VALUE",
@@ -79,6 +79,7 @@ declare const ListDistributionsCommand_base: {
79
79
  * // },
80
80
  * // S3OriginConfig: { // S3OriginConfig
81
81
  * // OriginAccessIdentity: "STRING_VALUE", // required
82
+ * // OriginReadTimeout: Number("int"),
82
83
  * // },
83
84
  * // CustomOriginConfig: { // CustomOriginConfig
84
85
  * // HTTPPort: Number("int"), // required
@@ -100,6 +101,7 @@ declare const ListDistributionsCommand_base: {
100
101
  * // },
101
102
  * // ConnectionAttempts: Number("int"),
102
103
  * // ConnectionTimeout: Number("int"),
104
+ * // ResponseCompletionTimeout: Number("int"),
103
105
  * // OriginShield: { // OriginShield
104
106
  * // Enabled: true || false, // required
105
107
  * // OriginShieldRegion: "STRING_VALUE",
@@ -27,7 +27,7 @@ declare const UpdateCachePolicyCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Updates a cache policy configuration.</p> <p>When you update a cache policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a cache policy configuration:</p> <ol> <li> <p>Use <code>GetCachePolicyConfig</code> to get the current configuration.</p> </li> <li> <p>Locally modify the fields in the cache policy configuration that you want to update.</p> </li> <li> <p>Call <code>UpdateCachePolicy</code> by providing the entire cache policy configuration, including the fields that you modified and those that you didn't.</p> </li> </ol>
30
+ * <p>Updates a cache policy configuration.</p> <p>When you update a cache policy configuration, all the fields are updated with the values provided in the request. You cannot update some fields independent of others. To update a cache policy configuration:</p> <ol> <li> <p>Use <code>GetCachePolicyConfig</code> to get the current configuration.</p> </li> <li> <p>Locally modify the fields in the cache policy configuration that you want to update.</p> </li> <li> <p>Call <code>UpdateCachePolicy</code> by providing the entire cache policy configuration, including the fields that you modified and those that you didn't.</p> </li> </ol> <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>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -62,6 +62,7 @@ declare const UpdateDistributionCommand_base: {
62
62
  * },
63
63
  * S3OriginConfig: { // S3OriginConfig
64
64
  * OriginAccessIdentity: "STRING_VALUE", // required
65
+ * OriginReadTimeout: Number("int"),
65
66
  * },
66
67
  * CustomOriginConfig: { // CustomOriginConfig
67
68
  * HTTPPort: Number("int"), // required
@@ -83,6 +84,7 @@ declare const UpdateDistributionCommand_base: {
83
84
  * },
84
85
  * ConnectionAttempts: Number("int"),
85
86
  * ConnectionTimeout: Number("int"),
87
+ * ResponseCompletionTimeout: Number("int"),
86
88
  * OriginShield: { // OriginShield
87
89
  * Enabled: true || false, // required
88
90
  * OriginShieldRegion: "STRING_VALUE",
@@ -420,6 +422,7 @@ declare const UpdateDistributionCommand_base: {
420
422
  * // },
421
423
  * // S3OriginConfig: { // S3OriginConfig
422
424
  * // OriginAccessIdentity: "STRING_VALUE", // required
425
+ * // OriginReadTimeout: Number("int"),
423
426
  * // },
424
427
  * // CustomOriginConfig: { // CustomOriginConfig
425
428
  * // HTTPPort: Number("int"), // required
@@ -441,6 +444,7 @@ declare const UpdateDistributionCommand_base: {
441
444
  * // },
442
445
  * // ConnectionAttempts: Number("int"),
443
446
  * // ConnectionTimeout: Number("int"),
447
+ * // ResponseCompletionTimeout: Number("int"),
444
448
  * // OriginShield: { // OriginShield
445
449
  * // Enabled: true || false, // required
446
450
  * // OriginShieldRegion: "STRING_VALUE",
@@ -106,6 +106,7 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
106
106
  * // },
107
107
  * // S3OriginConfig: { // S3OriginConfig
108
108
  * // OriginAccessIdentity: "STRING_VALUE", // required
109
+ * // OriginReadTimeout: Number("int"),
109
110
  * // },
110
111
  * // CustomOriginConfig: { // CustomOriginConfig
111
112
  * // HTTPPort: Number("int"), // required
@@ -127,6 +128,7 @@ declare const UpdateDistributionWithStagingConfigCommand_base: {
127
128
  * // },
128
129
  * // ConnectionAttempts: Number("int"),
129
130
  * // ConnectionTimeout: Number("int"),
131
+ * // ResponseCompletionTimeout: Number("int"),
130
132
  * // OriginShield: { // OriginShield
131
133
  * // Enabled: true || false, // required
132
134
  * // OriginShieldRegion: "STRING_VALUE",
@@ -785,7 +785,7 @@ export declare const ViewerProtocolPolicy: {
785
785
  */
786
786
  export type ViewerProtocolPolicy = (typeof ViewerProtocolPolicy)[keyof typeof ViewerProtocolPolicy];
787
787
  /**
788
- * <p>A complex type that describes how CloudFront processes requests.</p> <p>You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to serve objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin is never used.</p> <p>For the current quota (formerly known as limit) on the number of cache behaviors that you can add to a distribution, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> in the <i>Amazon CloudFront Developer Guide</i>.</p> <p>If you don't want to specify any cache behaviors, include only an empty <code>CacheBehaviors</code> element. Don't specify an empty individual <code>CacheBehavior</code> element, because this is invalid. For more information, see <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehaviors.html">CacheBehaviors</a>. </p> <p>To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty <code>CacheBehaviors</code> element.</p> <p>To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.</p> <p>For more information about cache behaviors, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior">Cache Behavior Settings</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
788
+ * <p>A complex type that describes how CloudFront processes requests.</p> <p>You must create at least as many cache behaviors (including the default cache behavior) as you have origins if you want CloudFront to serve objects from all of the origins. Each cache behavior specifies the one origin from which you want CloudFront to get objects. If you have two origins and only the default cache behavior, the default cache behavior will cause CloudFront to get objects from one of the origins, but the other origin is never used.</p> <p>For the current quota (formerly known as limit) on the number of cache behaviors that you can add to a distribution, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html">Quotas</a> in the <i>Amazon CloudFront Developer Guide</i>.</p> <p>If you don't want to specify any cache behaviors, include only an empty <code>CacheBehaviors</code> element. Don't specify an empty individual <code>CacheBehavior</code> element, because this is invalid. For more information, see <a href="https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CacheBehaviors.html">CacheBehaviors</a>. </p> <p>To delete all cache behaviors in an existing distribution, update the distribution configuration and include only an empty <code>CacheBehaviors</code> element.</p> <p>To add, change, or remove one or more cache behaviors, update the distribution configuration and specify all of the cache behaviors that you want to include in the updated distribution.</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> <p>For more information about cache behaviors, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior">Cache Behavior Settings</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
789
789
  * @public
790
790
  */
791
791
  export interface CacheBehavior {
@@ -1050,7 +1050,7 @@ export interface ParametersInCacheKeyAndForwardedToOrigin {
1050
1050
  QueryStringsConfig: CachePolicyQueryStringsConfig | undefined;
1051
1051
  }
1052
1052
  /**
1053
- * <p>A cache policy configuration.</p> <p>This configuration determines the following:</p> <ul> <li> <p>The values that CloudFront includes in the cache key. 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 a valid 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>
1053
+ * <p>A cache policy configuration.</p> <p>This configuration determines the following:</p> <ul> <li> <p>The values that CloudFront includes in the cache key. 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 a valid 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>
1054
1054
  * @public
1055
1055
  */
1056
1056
  export interface CachePolicyConfig {
@@ -1359,7 +1359,7 @@ export interface CustomErrorResponses {
1359
1359
  Items?: CustomErrorResponse[] | undefined;
1360
1360
  }
1361
1361
  /**
1362
- * <p>A complex type that describes the default cache behavior if you don't specify a <code>CacheBehavior</code> element or if request URLs don't match any of the values of <code>PathPattern</code> in <code>CacheBehavior</code> elements. You must create exactly one default cache behavior.</p>
1362
+ * <p>A complex type that describes the default cache behavior if you don't specify a <code>CacheBehavior</code> element or if request URLs don't match any of the values of <code>PathPattern</code> in <code>CacheBehavior</code> elements. You must create exactly one default cache behavior.</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>
1363
1363
  * @public
1364
1364
  */
1365
1365
  export interface DefaultCacheBehavior {
@@ -1716,7 +1716,7 @@ export interface CustomOriginConfig {
1716
1716
  */
1717
1717
  OriginSslProtocols?: OriginSslProtocols | undefined;
1718
1718
  /**
1719
- * <p>Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the <i>origin response timeout</i>. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout">Response timeout (custom origins only)</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
1719
+ * <p>Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the <i>origin response timeout</i>. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout">Response timeout</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
1720
1720
  * @public
1721
1721
  */
1722
1722
  OriginReadTimeout?: number | undefined;
@@ -1752,6 +1752,11 @@ export interface S3OriginConfig {
1752
1752
  * @public
1753
1753
  */
1754
1754
  OriginAccessIdentity: string | undefined;
1755
+ /**
1756
+ * <p>Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the <i>origin response timeout</i>. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout">Response timeout</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
1757
+ * @public
1758
+ */
1759
+ OriginReadTimeout?: number | undefined;
1755
1760
  }
1756
1761
  /**
1757
1762
  * <p>An Amazon CloudFront VPC origin configuration.</p>
@@ -1764,7 +1769,7 @@ export interface VpcOriginConfig {
1764
1769
  */
1765
1770
  VpcOriginId: string | undefined;
1766
1771
  /**
1767
- * <p>Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the <i>origin response timeout</i>. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout">Response timeout (custom origins only)</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
1772
+ * <p>Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the <i>origin response timeout</i>. The minimum timeout is 1 second, the maximum is 120 seconds, and the default (if you don't specify otherwise) is 30 seconds.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#DownloadDistValuesOriginResponseTimeout">Response timeout</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
1768
1773
  * @public
1769
1774
  */
1770
1775
  OriginReadTimeout?: number | undefined;
@@ -1824,6 +1829,11 @@ export interface Origin {
1824
1829
  * @public
1825
1830
  */
1826
1831
  ConnectionTimeout?: number | undefined;
1832
+ /**
1833
+ * <p>The time (in seconds) that a request from CloudFront to the origin can stay open and wait for a response. If the complete response isn't received from the origin by this time, CloudFront ends the connection.</p> <p>The value for <code>ResponseCompletionTimeout</code> must be equal to or greater than the value for <code>OriginReadTimeout</code>. If you don't set a value for <code>ResponseCompletionTimeout</code>, CloudFront doesn't enforce a maximum value.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistValuesOrigin.html#response-completion-timeout">Response completion timeout</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
1834
+ * @public
1835
+ */
1836
+ ResponseCompletionTimeout?: number | undefined;
1827
1837
  /**
1828
1838
  * <p>CloudFront Origin Shield. Using Origin Shield can help reduce the load on your origin.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html">Using Origin Shield</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>
1829
1839
  * @public
@@ -2155,7 +2165,7 @@ export interface DistributionConfig {
2155
2165
  */
2156
2166
  TenantConfig?: TenantConfig | undefined;
2157
2167
  /**
2158
- * <p>This field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants(tenant-only).</p>
2168
+ * <p>This field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants (tenant-only).</p>
2159
2169
  * @public
2160
2170
  */
2161
2171
  ConnectionMode?: ConnectionMode | undefined;
@@ -3554,7 +3554,7 @@ export interface DistributionSummary {
3554
3554
  */
3555
3555
  Staging: boolean | undefined;
3556
3556
  /**
3557
- * <p>This field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants(tenant-only).</p>
3557
+ * <p>This field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants (tenant-only).</p>
3558
3558
  * @public
3559
3559
  */
3560
3560
  ConnectionMode?: ConnectionMode | undefined;
@@ -3722,7 +3722,7 @@ export interface ListDistributionsByConnectionModeRequest {
3722
3722
  */
3723
3723
  MaxItems?: number | undefined;
3724
3724
  /**
3725
- * <p>This field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants(tenant-only).</p>
3725
+ * <p>This field specifies whether the connection mode is through a standard distribution (direct) or a multi-tenant distribution with distribution tenants (tenant-only).</p>
3726
3726
  * @public
3727
3727
  */
3728
3728
  ConnectionMode: ConnectionMode | undefined;
@@ -539,6 +539,7 @@ export interface OriginShield {
539
539
  }
540
540
  export interface S3OriginConfig {
541
541
  OriginAccessIdentity: string | undefined;
542
+ OriginReadTimeout?: number | undefined;
542
543
  }
543
544
  export interface VpcOriginConfig {
544
545
  VpcOriginId: string | undefined;
@@ -555,6 +556,7 @@ export interface Origin {
555
556
  VpcOriginConfig?: VpcOriginConfig | undefined;
556
557
  ConnectionAttempts?: number | undefined;
557
558
  ConnectionTimeout?: number | undefined;
559
+ ResponseCompletionTimeout?: number | undefined;
558
560
  OriginShield?: OriginShield | undefined;
559
561
  OriginAccessControlId?: string | undefined;
560
562
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudfront",
3
3
  "description": "AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",
4
- "version": "3.856.0",
4
+ "version": "3.857.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudfront",
@@ -20,39 +20,39 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.856.0",
24
- "@aws-sdk/credential-provider-node": "3.856.0",
23
+ "@aws-sdk/core": "3.857.0",
24
+ "@aws-sdk/credential-provider-node": "3.857.0",
25
25
  "@aws-sdk/middleware-host-header": "3.840.0",
26
26
  "@aws-sdk/middleware-logger": "3.840.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.840.0",
28
- "@aws-sdk/middleware-user-agent": "3.856.0",
28
+ "@aws-sdk/middleware-user-agent": "3.857.0",
29
29
  "@aws-sdk/region-config-resolver": "3.840.0",
30
30
  "@aws-sdk/types": "3.840.0",
31
31
  "@aws-sdk/util-endpoints": "3.848.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.840.0",
33
- "@aws-sdk/util-user-agent-node": "3.856.0",
33
+ "@aws-sdk/util-user-agent-node": "3.857.0",
34
34
  "@aws-sdk/xml-builder": "3.821.0",
35
35
  "@smithy/config-resolver": "^4.1.4",
36
- "@smithy/core": "^3.7.0",
36
+ "@smithy/core": "^3.7.2",
37
37
  "@smithy/fetch-http-handler": "^5.1.0",
38
38
  "@smithy/hash-node": "^4.0.4",
39
39
  "@smithy/invalid-dependency": "^4.0.4",
40
40
  "@smithy/middleware-content-length": "^4.0.4",
41
- "@smithy/middleware-endpoint": "^4.1.15",
42
- "@smithy/middleware-retry": "^4.1.16",
41
+ "@smithy/middleware-endpoint": "^4.1.17",
42
+ "@smithy/middleware-retry": "^4.1.18",
43
43
  "@smithy/middleware-serde": "^4.0.8",
44
44
  "@smithy/middleware-stack": "^4.0.4",
45
45
  "@smithy/node-config-provider": "^4.1.3",
46
46
  "@smithy/node-http-handler": "^4.1.0",
47
47
  "@smithy/protocol-http": "^5.1.2",
48
- "@smithy/smithy-client": "^4.4.7",
48
+ "@smithy/smithy-client": "^4.4.9",
49
49
  "@smithy/types": "^4.3.1",
50
50
  "@smithy/url-parser": "^4.0.4",
51
51
  "@smithy/util-base64": "^4.0.0",
52
52
  "@smithy/util-body-length-browser": "^4.0.0",
53
53
  "@smithy/util-body-length-node": "^4.0.0",
54
- "@smithy/util-defaults-mode-browser": "^4.0.23",
55
- "@smithy/util-defaults-mode-node": "^4.0.23",
54
+ "@smithy/util-defaults-mode-browser": "^4.0.25",
55
+ "@smithy/util-defaults-mode-node": "^4.0.25",
56
56
  "@smithy/util-endpoints": "^3.0.6",
57
57
  "@smithy/util-middleware": "^4.0.4",
58
58
  "@smithy/util-retry": "^4.0.6",