aws-sdk 2.1012.0 → 2.1016.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/README.md +1 -1
  3. package/apis/auditmanager-2017-07-25.min.json +168 -12
  4. package/apis/auditmanager-2017-07-25.paginators.json +5 -0
  5. package/apis/autoscaling-2011-01-01.min.json +240 -94
  6. package/apis/chime-2018-05-01.min.json +4 -2
  7. package/apis/chime-sdk-identity-2021-04-20.min.json +362 -13
  8. package/apis/chime-sdk-identity-2021-04-20.paginators.json +5 -0
  9. package/apis/chime-sdk-messaging-2021-05-15.min.json +180 -29
  10. package/apis/ec2-2016-11-15.min.json +1331 -800
  11. package/apis/ec2-2016-11-15.paginators.json +12 -0
  12. package/apis/emr-containers-2020-10-01.min.json +18 -6
  13. package/apis/quicksight-2018-04-01.min.json +27 -21
  14. package/apis/rds-2014-10-31.min.json +412 -317
  15. package/apis/route53resolver-2018-04-01.min.json +85 -13
  16. package/apis/route53resolver-2018-04-01.paginators.json +6 -0
  17. package/apis/sagemaker-2017-07-24.min.json +924 -792
  18. package/apis/textract-2018-06-27.min.json +107 -43
  19. package/clients/auditmanager.d.ts +486 -305
  20. package/clients/autoscaling.d.ts +217 -15
  21. package/clients/chime.d.ts +8 -0
  22. package/clients/chimesdkidentity.d.ts +314 -2
  23. package/clients/chimesdkmessaging.d.ts +146 -15
  24. package/clients/connect.d.ts +11 -11
  25. package/clients/ec2.d.ts +548 -4
  26. package/clients/eks.d.ts +1 -1
  27. package/clients/emrcontainers.d.ts +18 -3
  28. package/clients/finspace.js +0 -1
  29. package/clients/finspacedata.js +0 -1
  30. package/clients/lexmodelsv2.js +0 -1
  31. package/clients/lookoutmetrics.js +0 -1
  32. package/clients/quicksight.d.ts +12 -2
  33. package/clients/rds.d.ts +361 -200
  34. package/clients/route53resolver.d.ts +94 -0
  35. package/clients/sagemaker.d.ts +152 -8
  36. package/clients/textract.d.ts +98 -6
  37. package/dist/aws-sdk-core-react-native.js +57 -22
  38. package/dist/aws-sdk-react-native.js +299 -340
  39. package/dist/aws-sdk.js +2134 -1234
  40. package/dist/aws-sdk.min.js +87 -87
  41. package/lib/core.js +1 -1
  42. package/lib/protocol/rest_json.js +6 -12
  43. package/lib/region_config.js +44 -1
  44. package/lib/region_config_data.json +81 -0
  45. package/lib/request.js +4 -6
  46. package/lib/service.js +1 -1
  47. package/package.json +2 -2
  48. package/scripts/region-checker/allowlist.js +4 -0
  49. package/lib/services/finspace.js +0 -23
  50. package/lib/services/finspacedata.js +0 -23
  51. package/lib/services/lexmodelsv2.js +0 -23
  52. package/lib/services/lookoutmetrics.js +0 -22
@@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap
83
83
  /**
84
84
  * @constant
85
85
  */
86
- VERSION: '2.1012.0',
86
+ VERSION: '2.1016.0',
87
87
 
88
88
  /**
89
89
  * @api private
@@ -3077,30 +3077,24 @@ return /******/ (function(modules) { // webpackBootstrap
3077
3077
  var params = {};
3078
3078
  var payloadShape = input.members[input.payload];
3079
3079
  params = req.params[input.payload];
3080
- if (params === undefined) return;
3081
3080
 
3082
3081
  if (payloadShape.type === 'structure') {
3083
- req.httpRequest.body = builder.build(params, payloadShape);
3082
+ req.httpRequest.body = builder.build(params || {}, payloadShape);
3084
3083
  applyContentTypeHeader(req);
3085
- } else { // non-JSON payload
3084
+ } else if (params !== undefined) {
3085
+ // non-JSON payload
3086
3086
  req.httpRequest.body = params;
3087
3087
  if (payloadShape.type === 'binary' || payloadShape.isStreaming) {
3088
3088
  applyContentTypeHeader(req, true);
3089
3089
  }
3090
3090
  }
3091
3091
  } else {
3092
- var body = builder.build(req.params, input);
3093
- if (body !== '{}' || req.httpRequest.method !== 'GET') { //don't send empty body for GET method
3094
- req.httpRequest.body = body;
3095
- }
3092
+ req.httpRequest.body = builder.build(req.params, input);
3096
3093
  applyContentTypeHeader(req);
3097
3094
  }
3098
3095
  }
3099
3096
 
3100
3097
  function applyContentTypeHeader(req, isBinary) {
3101
- var operation = req.service.api.operations[req.operation];
3102
- var input = operation.input;
3103
-
3104
3098
  if (!req.httpRequest.headers['Content-Type']) {
3105
3099
  var type = isBinary ? 'binary/octet-stream' : 'application/json';
3106
3100
  req.httpRequest.headers['Content-Type'] = type;
@@ -3110,8 +3104,8 @@ return /******/ (function(modules) { // webpackBootstrap
3110
3104
  function buildRequest(req) {
3111
3105
  Rest.buildRequest(req);
3112
3106
 
3113
- // never send body payload on HEAD/DELETE
3114
- if (['HEAD', 'DELETE'].indexOf(req.httpRequest.method) < 0) {
3107
+ // never send body payload on GET/HEAD/DELETE
3108
+ if (['GET', 'HEAD', 'DELETE'].indexOf(req.httpRequest.method) < 0) {
3115
3109
  populateBody(req);
3116
3110
  }
3117
3111
  }
@@ -4877,7 +4871,7 @@ return /******/ (function(modules) { // webpackBootstrap
4877
4871
 
4878
4872
  var e = endpoint;
4879
4873
  e = e.replace(/\{service\}/g, this.api.endpointPrefix);
4880
- e = e.replace(/\{region\}/g, this.config.region);
4874
+ e = e.replace(/\{region\}/g, regionConfig.getRealRegion(this.config.region));
4881
4875
  e = e.replace(/\{scheme\}/g, this.config.sslEnabled ? 'https' : 'http');
4882
4876
  return e;
4883
4877
  },
@@ -5084,6 +5078,12 @@ return /******/ (function(modules) { // webpackBootstrap
5084
5078
 
5085
5079
  function generateRegionPrefix(region) {
5086
5080
  if (!region) return null;
5081
+ if (isFipsRegion(region)) {
5082
+ if (isFipsCnRegion(region)) return 'fips-cn-*';
5083
+ if (isFipsUsGovRegion(region)) return 'fips-us-gov-*';
5084
+ if (region.startsWith('fips-accesspoint-')) return 'fips-accesspoint-*';
5085
+ return 'fips-*';
5086
+ }
5087
5087
 
5088
5088
  var parts = region.split('-');
5089
5089
  if (parts.length < 3) return null;
@@ -5137,6 +5137,12 @@ return /******/ (function(modules) { // webpackBootstrap
5137
5137
  );
5138
5138
  }
5139
5139
 
5140
+ // set FIPS signingRegion and endpoint.
5141
+ if (isFipsRegion(service.config.region)) {
5142
+ config = util.copy(config);
5143
+ service.signingRegion = getRealRegion(service.config.region);
5144
+ }
5145
+
5140
5146
  // set global endpoint
5141
5147
  service.isGlobalEndpoint = !!config.globalEndpoint;
5142
5148
  if (config.signingRegion) {
@@ -5171,12 +5177,43 @@ return /******/ (function(modules) { // webpackBootstrap
5171
5177
  return defaultSuffix;
5172
5178
  }
5173
5179
 
5180
+ function isFipsRegion(region) {
5181
+ return region && (region.startsWith('fips-') || region.endsWith('-fips'));
5182
+ }
5183
+
5184
+ function isFipsUsGovRegion(region) {
5185
+ return (
5186
+ region &&
5187
+ region.startsWith('fips-us-gov-') ||
5188
+ (region.startsWith('us-gov-') && region.endsWith('-fips'))
5189
+ );
5190
+ }
5191
+
5192
+ function isFipsCnRegion(region) {
5193
+ return (
5194
+ region &&
5195
+ region.startsWith('fips-cn-') ||
5196
+ (region.startsWith('cn-') && region.endsWith('-fips'))
5197
+ );
5198
+ }
5199
+
5200
+ function getRealRegion(region) {
5201
+ return isFipsRegion(region)
5202
+ ? ['fips-aws-global', 'aws-fips'].includes(region)
5203
+ ? 'us-east-1'
5204
+ : region === 'fips-aws-us-gov-global'
5205
+ ? 'us-gov-west-1'
5206
+ : region.replace(/fips-(dkr-|prod-|accesspoint-)?|-fips/, '')
5207
+ : region;
5208
+ }
5209
+
5174
5210
  /**
5175
5211
  * @api private
5176
5212
  */
5177
5213
  module.exports = {
5178
5214
  configureEndpoint: configureEndpoint,
5179
- getEndpointSuffix: getEndpointSuffix
5215
+ getEndpointSuffix: getEndpointSuffix,
5216
+ getRealRegion: getRealRegion,
5180
5217
  };
5181
5218
 
5182
5219
 
@@ -5184,7 +5221,7 @@ return /******/ (function(modules) { // webpackBootstrap
5184
5221
  /* 39 */
5185
5222
  /***/ (function(module, exports) {
5186
5223
 
5187
- module.exports = {"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{"endpoint":"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"}}}
5224
+ module.exports = {"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"fips-*/*":"fipsStandard","fips-us-gov-*/*":"fipsStandard","fips-cn-*/*":{"endpoint":"{service}-fips.{region}.amazonaws.com.cn"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{"endpoint":"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"},"fips-*/api.ecr":"fips.api.ecr","fips-us-gov-*/api.ecr":"fips.api.ecr","fips-*/api.sagemaker":"fips.api.sagemaker","fips-us-gov-*/api.sagemaker":"fips.api.sagemaker","fips-*/batch":"fipsDotPrefix","fips-*/eks":"fipsDotPrefix","fips-*/models.lex":"fips.models.lex","fips-us-gov-*/models.lex":"fips.models.lex","fips-*/runtime.lex":"fips.runtime.lex","fips-us-gov-*/runtime.lex":"fips.runtime.lex","fips-*/runtime.sagemaker":{"endpoint":"runtime-fips.sagemaker.{region}.amazonaws.com"},"fips-*/streams.dynamodb":{"endpoint":"dynamodb-fips.{region}.amazonaws.com"},"fips-*/route53":"fipsWithoutRegion","fips-*/transcribe":"fipsDotPrefix","fips-us-gov-*/transcribe":"fipsDotPrefix","fips-*/waf":"fipsWithoutRegion","fips-accesspoint-*/*":{"endpoint":"{service}-accesspoint-fips.{region}.amazonaws.com"},"fips-us-gov-*/acm-pca":"fipsWithServiceOnly","fips-us-gov-*/batch":"fipsWithServiceOnly","fips-us-gov-*/config":"fipsWithServiceOnly","fips-us-gov-*/eks":"fipsWithServiceOnly","fips-us-gov-*/elasticmapreduce":"fipsWithServiceOnly","fips-us-gov-*/identitystore":"fipsWithServiceOnly","fips-us-gov-*/dynamodb":"fipsWithServiceOnly","fips-us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","fips-us-gov-*/guardduty":"fipsWithServiceOnly","fips-us-gov-*/monitoring":"fipsWithServiceOnly","fips-aws-us-gov-global/organizations":"fipsWithServiceOnly","fips-us-gov-*/resource-groups":"fipsWithServiceOnly","fips-aws-us-gov-global/route53":{"endpoint":"route53.us-gov.amazonaws.com"},"fips-us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","fips-us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","fips-us-gov-*/servicequotas":"fipsWithServiceOnly","fips-us-gov-*/ssm":"fipsWithServiceOnly","fips-us-gov-*/sts":"fipsWithServiceOnly","fips-us-gov-west-1/states":"fipsWithServiceOnly","fips-us-gov-*/support":"fipsWithServiceOnly","fips-us-gov-*/streams.dynamodb":{"endpoint":"dynamodb.{region}.amazonaws.com"},"fips-us-iso-east-1/elasticfilesystem":{"endpoint":"elasticfilesystem-fips.{region}.c2s.ic.gov"}},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"},"fipsStandard":{"endpoint":"{service}-fips.{region}.amazonaws.com"},"fipsDotPrefix":{"endpoint":"fips.{service}.{region}.amazonaws.com"},"fipsWithoutRegion":{"endpoint":"{service}-fips.amazonaws.com"},"fips.api.ecr":{"endpoint":"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{"endpoint":"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{"endpoint":"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{"endpoint":"runtime-fips.lex.{region}.amazonaws.com"},"fipsWithServiceOnly":{"endpoint":"{service}.{region}.amazonaws.com"}}}
5188
5225
 
5189
5226
  /***/ }),
5190
5227
  /* 40 */
@@ -8482,12 +8519,10 @@ return /******/ (function(modules) { // webpackBootstrap
8482
8519
  var region = service.config.region;
8483
8520
  var customUserAgent = service.config.customUserAgent;
8484
8521
 
8485
- if (service.isGlobalEndpoint) {
8486
- if (service.signingRegion) {
8487
- region = service.signingRegion;
8488
- } else {
8489
- region = 'us-east-1';
8490
- }
8522
+ if (service.signingRegion) {
8523
+ region = service.signingRegion;
8524
+ } else if (service.isGlobalEndpoint) {
8525
+ region = 'us-east-1';
8491
8526
  }
8492
8527
 
8493
8528
  this.domain = domain && domain.active;