|
1 |
| -// AWS SDK for JavaScript v2.622.0 |
| 1 | +// AWS SDK for JavaScript v2.623.0 |
2 | 2 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
3 | 3 | // License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
|
4 | 4 | (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
@@ -188629,7 +188629,7 @@ AWS.util.update(AWS, {
|
188629 | 188629 | /**
|
188630 | 188630 | * @constant
|
188631 | 188631 | */
|
188632 |
| - VERSION: '2.622.0', |
| 188632 | + VERSION: '2.623.0', |
188633 | 188633 |
|
188634 | 188634 | /**
|
188635 | 188635 | * @api private
|
@@ -190356,7 +190356,7 @@ function isFalsy(value) {
|
190356 | 190356 | * @param [object] request request object.
|
190357 | 190357 | * @api private
|
190358 | 190358 | */
|
190359 |
| -function isEndpointDiscoveryApplicable(request) { |
| 190359 | +function isEndpointDiscoveryEnabled(request) { |
190360 | 190360 | var service = request.service || {};
|
190361 | 190361 | if (service.config.endpointDiscoveryEnabled === true) return true;
|
190362 | 190362 |
|
@@ -190408,13 +190408,23 @@ function discoverEndpoint(request, done) {
|
190408 | 190408 | var service = request.service || {};
|
190409 | 190409 | if (hasCustomEndpoint(service) || request.isPresigned()) return done();
|
190410 | 190410 |
|
190411 |
| - if (!isEndpointDiscoveryApplicable(request)) return done(); |
190412 |
| - |
190413 |
| - request.httpRequest.appendToUserAgent('endpoint-discovery'); |
190414 |
| - |
190415 | 190411 | var operations = service.api.operations || {};
|
190416 | 190412 | var operationModel = operations[request.operation];
|
190417 | 190413 | var isEndpointDiscoveryRequired = operationModel ? operationModel.endpointDiscoveryRequired : 'NULL';
|
| 190414 | + var isEnabled = isEndpointDiscoveryEnabled(request); |
| 190415 | + |
| 190416 | + if (!isEnabled) { |
| 190417 | + // Unless endpoint discovery is required, SDK will fallback to normal regional endpoints. |
| 190418 | + if (isEndpointDiscoveryRequired === 'REQUIRED') { |
| 190419 | + throw util.error(new Error(), { |
| 190420 | + code: 'ConfigurationException', |
| 190421 | + message: 'Endpoint Discovery is not enabled but this operation requires it.' |
| 190422 | + }); |
| 190423 | + } |
| 190424 | + return done(); |
| 190425 | + } |
| 190426 | + |
| 190427 | + request.httpRequest.appendToUserAgent('endpoint-discovery'); |
190418 | 190428 | switch (isEndpointDiscoveryRequired) {
|
190419 | 190429 | case 'OPTIONAL':
|
190420 | 190430 | optionalDiscoverEndpoint(request);
|
@@ -192795,6 +192805,9 @@ AWS.HttpRequest = inherit({
|
192795 | 192805 | var newEndpoint = new AWS.Endpoint(endpointStr);
|
192796 | 192806 | this.endpoint = newEndpoint;
|
192797 | 192807 | this.path = newEndpoint.path || '/';
|
| 192808 | + if (this.headers['Host']) { |
| 192809 | + this.headers['Host'] = newEndpoint.host; |
| 192810 | + } |
192798 | 192811 | }
|
192799 | 192812 | });
|
192800 | 192813 |
|
@@ -209551,7 +209564,7 @@ var LRUCache = /** @class */ (function () {
|
209551 | 209564 | }());
|
209552 | 209565 | exports.LRUCache = LRUCache;
|
209553 | 209566 | },{}],431:[function(require,module,exports){
|
209554 |
| -// AWS SDK for JavaScript v2.622.0 |
| 209567 | +// AWS SDK for JavaScript v2.623.0 |
209555 | 209568 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
209556 | 209569 | // License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
|
209557 | 209570 | require('./browser_loader');
|
|
0 commit comments