aws-sdk 2.1012.0 → 2.1013.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/CHANGELOG.md +8 -1
- package/README.md +1 -1
- package/apis/chime-2018-05-01.min.json +4 -2
- package/apis/quicksight-2018-04-01.min.json +27 -21
- package/clients/auditmanager.d.ts +19 -19
- package/clients/chime.d.ts +8 -0
- package/clients/connect.d.ts +11 -11
- package/clients/finspace.js +0 -1
- package/clients/finspacedata.js +0 -1
- package/clients/lexmodelsv2.js +0 -1
- package/clients/lookoutmetrics.js +0 -1
- package/clients/quicksight.d.ts +12 -2
- package/dist/aws-sdk-core-react-native.js +47 -22
- package/dist/aws-sdk-react-native.js +265 -326
- package/dist/aws-sdk.js +139 -23
- package/dist/aws-sdk.min.js +9 -9
- package/lib/core.js +1 -1
- package/lib/protocol/rest_json.js +6 -12
- package/lib/region_config.js +34 -1
- package/lib/region_config_data.json +91 -0
- package/lib/request.js +4 -6
- package/lib/service.js +1 -1
- package/package.json +2 -2
- package/scripts/region-checker/allowlist.js +4 -0
- package/lib/services/finspace.js +0 -23
- package/lib/services/finspacedata.js +0 -23
- package/lib/services/lexmodelsv2.js +0 -23
- package/lib/services/lookoutmetrics.js +0 -22
package/dist/aws-sdk.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AWS SDK for JavaScript v2.
|
|
1
|
+
// AWS SDK for JavaScript v2.1013.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){
|
|
@@ -227106,7 +227106,7 @@ AWS.util.update(AWS, {
|
|
|
227106
227106
|
/**
|
|
227107
227107
|
* @constant
|
|
227108
227108
|
*/
|
|
227109
|
-
VERSION: '2.
|
|
227109
|
+
VERSION: '2.1013.0',
|
|
227110
227110
|
|
|
227111
227111
|
/**
|
|
227112
227112
|
* @api private
|
|
@@ -233189,30 +233189,24 @@ function populateBody(req) {
|
|
|
233189
233189
|
var params = {};
|
|
233190
233190
|
var payloadShape = input.members[input.payload];
|
|
233191
233191
|
params = req.params[input.payload];
|
|
233192
|
-
if (params === undefined) return;
|
|
233193
233192
|
|
|
233194
233193
|
if (payloadShape.type === 'structure') {
|
|
233195
|
-
req.httpRequest.body = builder.build(params, payloadShape);
|
|
233194
|
+
req.httpRequest.body = builder.build(params || {}, payloadShape);
|
|
233196
233195
|
applyContentTypeHeader(req);
|
|
233197
|
-
} else
|
|
233196
|
+
} else if (params !== undefined) {
|
|
233197
|
+
// non-JSON payload
|
|
233198
233198
|
req.httpRequest.body = params;
|
|
233199
233199
|
if (payloadShape.type === 'binary' || payloadShape.isStreaming) {
|
|
233200
233200
|
applyContentTypeHeader(req, true);
|
|
233201
233201
|
}
|
|
233202
233202
|
}
|
|
233203
233203
|
} else {
|
|
233204
|
-
|
|
233205
|
-
if (body !== '{}' || req.httpRequest.method !== 'GET') { //don't send empty body for GET method
|
|
233206
|
-
req.httpRequest.body = body;
|
|
233207
|
-
}
|
|
233204
|
+
req.httpRequest.body = builder.build(req.params, input);
|
|
233208
233205
|
applyContentTypeHeader(req);
|
|
233209
233206
|
}
|
|
233210
233207
|
}
|
|
233211
233208
|
|
|
233212
233209
|
function applyContentTypeHeader(req, isBinary) {
|
|
233213
|
-
var operation = req.service.api.operations[req.operation];
|
|
233214
|
-
var input = operation.input;
|
|
233215
|
-
|
|
233216
233210
|
if (!req.httpRequest.headers['Content-Type']) {
|
|
233217
233211
|
var type = isBinary ? 'binary/octet-stream' : 'application/json';
|
|
233218
233212
|
req.httpRequest.headers['Content-Type'] = type;
|
|
@@ -233222,8 +233216,8 @@ function applyContentTypeHeader(req, isBinary) {
|
|
|
233222
233216
|
function buildRequest(req) {
|
|
233223
233217
|
Rest.buildRequest(req);
|
|
233224
233218
|
|
|
233225
|
-
// never send body payload on HEAD/DELETE
|
|
233226
|
-
if (['HEAD', 'DELETE'].indexOf(req.httpRequest.method) < 0) {
|
|
233219
|
+
// never send body payload on GET/HEAD/DELETE
|
|
233220
|
+
if (['GET', 'HEAD', 'DELETE'].indexOf(req.httpRequest.method) < 0) {
|
|
233227
233221
|
populateBody(req);
|
|
233228
233222
|
}
|
|
233229
233223
|
}
|
|
@@ -233708,6 +233702,10 @@ var regionConfig = require('./region_config_data.json');
|
|
|
233708
233702
|
|
|
233709
233703
|
function generateRegionPrefix(region) {
|
|
233710
233704
|
if (!region) return null;
|
|
233705
|
+
if (isFipsRegion(region)) {
|
|
233706
|
+
if (isFipsCnRegion(region)) return 'fips-cn-*';
|
|
233707
|
+
return 'fips-*';
|
|
233708
|
+
}
|
|
233711
233709
|
|
|
233712
233710
|
var parts = region.split('-');
|
|
233713
233711
|
if (parts.length < 3) return null;
|
|
@@ -233761,6 +233759,12 @@ function configureEndpoint(service) {
|
|
|
233761
233759
|
);
|
|
233762
233760
|
}
|
|
233763
233761
|
|
|
233762
|
+
// set FIPS signingRegion and endpoint.
|
|
233763
|
+
if (isFipsRegion(service.config.region)) {
|
|
233764
|
+
config = util.copy(config);
|
|
233765
|
+
service.signingRegion = getRealRegion(service.config.region);
|
|
233766
|
+
}
|
|
233767
|
+
|
|
233764
233768
|
// set global endpoint
|
|
233765
233769
|
service.isGlobalEndpoint = !!config.globalEndpoint;
|
|
233766
233770
|
if (config.signingRegion) {
|
|
@@ -233795,12 +233799,35 @@ function getEndpointSuffix(region) {
|
|
|
233795
233799
|
return defaultSuffix;
|
|
233796
233800
|
}
|
|
233797
233801
|
|
|
233802
|
+
function isFipsRegion(region) {
|
|
233803
|
+
return region && (region.startsWith('fips-') || region.endsWith('-fips'));
|
|
233804
|
+
}
|
|
233805
|
+
|
|
233806
|
+
function isFipsCnRegion(region) {
|
|
233807
|
+
return (
|
|
233808
|
+
region &&
|
|
233809
|
+
region.startsWith('fips-cn-') ||
|
|
233810
|
+
(region.startsWith('cn-') && region.endsWith('-fips'))
|
|
233811
|
+
);
|
|
233812
|
+
}
|
|
233813
|
+
|
|
233814
|
+
function getRealRegion(region) {
|
|
233815
|
+
return isFipsRegion(region)
|
|
233816
|
+
? ['fips-aws-global', 'aws-fips'].includes(region)
|
|
233817
|
+
? 'us-east-1'
|
|
233818
|
+
: region === 'fips-aws-us-gov-global'
|
|
233819
|
+
? 'us-gov-west-1'
|
|
233820
|
+
: region.replace(/fips-(dkr-|prod-)?|-fips/, '')
|
|
233821
|
+
: region;
|
|
233822
|
+
}
|
|
233823
|
+
|
|
233798
233824
|
/**
|
|
233799
233825
|
* @api private
|
|
233800
233826
|
*/
|
|
233801
233827
|
module.exports = {
|
|
233802
233828
|
configureEndpoint: configureEndpoint,
|
|
233803
|
-
getEndpointSuffix: getEndpointSuffix
|
|
233829
|
+
getEndpointSuffix: getEndpointSuffix,
|
|
233830
|
+
getRealRegion: getRealRegion,
|
|
233804
233831
|
};
|
|
233805
233832
|
|
|
233806
233833
|
},{"./region_config_data.json":386,"./util":417}],386:[function(require,module,exports){
|
|
@@ -233809,6 +233836,12 @@ module.exports={
|
|
|
233809
233836
|
"*/*": {
|
|
233810
233837
|
"endpoint": "{service}.{region}.amazonaws.com"
|
|
233811
233838
|
},
|
|
233839
|
+
"fips-*/*": {
|
|
233840
|
+
"endpoint": "{service}-fips.{region}.amazonaws.com"
|
|
233841
|
+
},
|
|
233842
|
+
"fips-cn-*/*": {
|
|
233843
|
+
"endpoint": "{service}-fips.{region}.amazonaws.com.cn"
|
|
233844
|
+
},
|
|
233812
233845
|
"cn-*/*": {
|
|
233813
233846
|
"endpoint": "{service}.{region}.amazonaws.com.cn"
|
|
233814
233847
|
},
|
|
@@ -233867,6 +233900,91 @@ module.exports={
|
|
|
233867
233900
|
"*/sdb": {
|
|
233868
233901
|
"endpoint": "{service}.{region}.amazonaws.com",
|
|
233869
233902
|
"signatureVersion": "v2"
|
|
233903
|
+
},
|
|
233904
|
+
|
|
233905
|
+
"fips-*/api.ecr": {
|
|
233906
|
+
"endpoint": "ecr-fips.{region}.amazonaws.com"
|
|
233907
|
+
},
|
|
233908
|
+
"fips-*/api.sagemaker": {
|
|
233909
|
+
"endpoint": "api-fips.sagemaker.{region}.amazonaws.com"
|
|
233910
|
+
},
|
|
233911
|
+
"fips-*/batch": {
|
|
233912
|
+
"endpoint": "fips.batch.{region}.amazonaws.com"
|
|
233913
|
+
},
|
|
233914
|
+
"fips-*/streams.dynamodb": {
|
|
233915
|
+
"endpoint": "dynamodb-fips.{region}.amazonaws.com"
|
|
233916
|
+
},
|
|
233917
|
+
"fips-*/route53": {
|
|
233918
|
+
"endpoint": "route53-fips.amazonaws.com"
|
|
233919
|
+
},
|
|
233920
|
+
"fips-*/transcribe": {
|
|
233921
|
+
"endpoint": "fips.transcribe.{region}.amazonaws.com"
|
|
233922
|
+
},
|
|
233923
|
+
"fips-*/waf": {
|
|
233924
|
+
"endpoint": "waf-fips.amazonaws.com"
|
|
233925
|
+
},
|
|
233926
|
+
"fips-us-gov-east-1/acm-pca": {
|
|
233927
|
+
"endpoint": "acm-pca.{region}.amazonaws.com"
|
|
233928
|
+
},
|
|
233929
|
+
"fips-us-gov-west-1/acm-pca": {
|
|
233930
|
+
"endpoint": "acm-pca.{region}.amazonaws.com"
|
|
233931
|
+
},
|
|
233932
|
+
"fips-us-gov-east-1/batch": {
|
|
233933
|
+
"endpoint": "batch.{region}.amazonaws.com"
|
|
233934
|
+
},
|
|
233935
|
+
"fips-us-gov-west-1/batch": {
|
|
233936
|
+
"endpoint": "batch.{region}.amazonaws.com"
|
|
233937
|
+
},
|
|
233938
|
+
"us-gov-east-1-fips/dynamodb": {
|
|
233939
|
+
"endpoint": "dynamodb.{region}.amazonaws.com"
|
|
233940
|
+
},
|
|
233941
|
+
"us-gov-west-1-fips/dynamodb": {
|
|
233942
|
+
"endpoint": "dynamodb.{region}.amazonaws.com"
|
|
233943
|
+
},
|
|
233944
|
+
"fips-us-gov-east-1/elasticloadbalancing": {
|
|
233945
|
+
"endpoint": "elasticloadbalancing.{region}.amazonaws.com"
|
|
233946
|
+
},
|
|
233947
|
+
"fips-us-gov-west-1/elasticloadbalancing": {
|
|
233948
|
+
"endpoint": "elasticloadbalancing.{region}.amazonaws.com"
|
|
233949
|
+
},
|
|
233950
|
+
"us-gov-east-1-fips/guardduty": {
|
|
233951
|
+
"endpoint": "guardduty.{region}.amazonaws.com"
|
|
233952
|
+
},
|
|
233953
|
+
"us-gov-west-1-fips/guardduty": {
|
|
233954
|
+
"endpoint": "guardduty.{region}.amazonaws.com"
|
|
233955
|
+
},
|
|
233956
|
+
"fips-us-gov-east-1/monitoring": {
|
|
233957
|
+
"endpoint": "monitoring.{region}.amazonaws.com"
|
|
233958
|
+
},
|
|
233959
|
+
"fips-us-gov-west-1/monitoring": {
|
|
233960
|
+
"endpoint": "monitoring.{region}.amazonaws.com"
|
|
233961
|
+
},
|
|
233962
|
+
"fips-aws-us-gov-global/organizations": {
|
|
233963
|
+
"endpoint": "organizations.{region}.amazonaws.com"
|
|
233964
|
+
},
|
|
233965
|
+
"fips-us-gov-east-1/resource-groups": {
|
|
233966
|
+
"endpoint": "resource-groups.{region}.amazonaws.com"
|
|
233967
|
+
},
|
|
233968
|
+
"fips-us-gov-west-1/resource-groups": {
|
|
233969
|
+
"endpoint": "resource-groups.{region}.amazonaws.com"
|
|
233970
|
+
},
|
|
233971
|
+
"fips-aws-us-gov-global/route53": {
|
|
233972
|
+
"endpoint": "route53.us-gov.amazonaws.com"
|
|
233973
|
+
},
|
|
233974
|
+
"fips-us-gov-east-1/servicecatalog-appregistry": {
|
|
233975
|
+
"endpoint": "servicecatalog-appregistry.{region}.amazonaws.com"
|
|
233976
|
+
},
|
|
233977
|
+
"fips-us-gov-west-1/servicecatalog-appregistry": {
|
|
233978
|
+
"endpoint": "servicecatalog-appregistry.{region}.amazonaws.com"
|
|
233979
|
+
},
|
|
233980
|
+
"fips-us-gov-west-1/states": {
|
|
233981
|
+
"endpoint": "states.{region}.amazonaws.com"
|
|
233982
|
+
},
|
|
233983
|
+
"us-gov-east-1-fips/streams.dynamodb": {
|
|
233984
|
+
"endpoint": "dynamodb.{region}.amazonaws.com"
|
|
233985
|
+
},
|
|
233986
|
+
"us-gov-west-1-fips/streams.dynamodb": {
|
|
233987
|
+
"endpoint": "dynamodb.{region}.amazonaws.com"
|
|
233870
233988
|
}
|
|
233871
233989
|
},
|
|
233872
233990
|
|
|
@@ -234205,12 +234323,10 @@ AWS.Request = inherit({
|
|
|
234205
234323
|
var region = service.config.region;
|
|
234206
234324
|
var customUserAgent = service.config.customUserAgent;
|
|
234207
234325
|
|
|
234208
|
-
if (service.
|
|
234209
|
-
|
|
234210
|
-
|
|
234211
|
-
|
|
234212
|
-
region = 'us-east-1';
|
|
234213
|
-
}
|
|
234326
|
+
if (service.signingRegion) {
|
|
234327
|
+
region = service.signingRegion;
|
|
234328
|
+
} else if (service.isGlobalEndpoint) {
|
|
234329
|
+
region = 'us-east-1';
|
|
234214
234330
|
}
|
|
234215
234331
|
|
|
234216
234332
|
this.domain = domain && domain.active;
|
|
@@ -236723,7 +236839,7 @@ AWS.Service = inherit({
|
|
|
236723
236839
|
|
|
236724
236840
|
var e = endpoint;
|
|
236725
236841
|
e = e.replace(/\{service\}/g, this.api.endpointPrefix);
|
|
236726
|
-
e = e.replace(/\{region\}/g, this.config.region);
|
|
236842
|
+
e = e.replace(/\{region\}/g, regionConfig.getRealRegion(this.config.region));
|
|
236727
236843
|
e = e.replace(/\{scheme\}/g, this.config.sslEnabled ? 'https' : 'http');
|
|
236728
236844
|
return e;
|
|
236729
236845
|
},
|
|
@@ -248343,7 +248459,7 @@ var LRUCache = /** @class */ (function () {
|
|
|
248343
248459
|
}());
|
|
248344
248460
|
exports.LRUCache = LRUCache;
|
|
248345
248461
|
},{}],451:[function(require,module,exports){
|
|
248346
|
-
// AWS SDK for JavaScript v2.
|
|
248462
|
+
// AWS SDK for JavaScript v2.1013.0
|
|
248347
248463
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
248348
248464
|
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
|
|
248349
248465
|
require('./browser_loader');
|