aws-sdk 2.583.0 → 2.587.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 (59) hide show
  1. package/CHANGELOG.md +26 -1
  2. package/README.md +1 -1
  3. package/apis/apigatewayv2-2018-11-29.min.json +632 -201
  4. package/apis/ebs-2019-11-02.examples.json +5 -0
  5. package/apis/ebs-2019-11-02.min.json +195 -0
  6. package/apis/ebs-2019-11-02.paginators.json +14 -0
  7. package/apis/kafka-2018-11-14.min.json +170 -34
  8. package/apis/kendra-2019-02-03.min.json +2 -1
  9. package/apis/kinesis-video-signaling-2019-12-04.examples.json +5 -0
  10. package/apis/kinesis-video-signaling-2019-12-04.min.json +79 -0
  11. package/apis/kinesis-video-signaling-2019-12-04.paginators.json +4 -0
  12. package/apis/kinesisvideo-2017-09-30.min.json +281 -8
  13. package/apis/kinesisvideo-2017-09-30.paginators.json +6 -0
  14. package/apis/lambda-2015-03-31.min.json +217 -25
  15. package/apis/lambda-2015-03-31.paginators.json +6 -0
  16. package/apis/metadata.json +8 -0
  17. package/apis/rds-2014-10-31.min.json +495 -101
  18. package/apis/rds-2014-10-31.paginators.json +18 -0
  19. package/apis/rekognition-2016-06-27.min.json +409 -85
  20. package/apis/rekognition-2016-06-27.paginators.json +12 -0
  21. package/apis/rekognition-2016-06-27.waiters2.json +45 -0
  22. package/apis/sagemaker-2017-07-24.min.json +3471 -472
  23. package/apis/sagemaker-2017-07-24.paginators.json +128 -16
  24. package/apis/sagemaker-2017-07-24.waiters2.json +30 -0
  25. package/apis/ssm-2014-11-06.min.json +94 -71
  26. package/apis/states-2016-11-23.min.json +92 -55
  27. package/clients/all.d.ts +2 -0
  28. package/clients/all.js +3 -1
  29. package/clients/apigatewayv2.d.ts +856 -1161
  30. package/clients/applicationautoscaling.d.ts +32 -32
  31. package/clients/browser_default.d.ts +1 -0
  32. package/clients/browser_default.js +2 -1
  33. package/clients/ebs.d.ts +211 -0
  34. package/clients/ebs.js +18 -0
  35. package/clients/kafka.d.ts +152 -0
  36. package/clients/kendra.d.ts +7 -3
  37. package/clients/kinesisvideo.d.ts +312 -1
  38. package/clients/kinesisvideosignalingchannels.d.ts +121 -0
  39. package/clients/kinesisvideosignalingchannels.js +18 -0
  40. package/clients/kms.d.ts +6 -6
  41. package/clients/lambda.d.ts +199 -2
  42. package/clients/quicksight.d.ts +223 -223
  43. package/clients/rds.d.ts +549 -0
  44. package/clients/rekognition.d.ts +423 -8
  45. package/clients/rekognition.js +1 -0
  46. package/clients/sagemaker.d.ts +4588 -610
  47. package/clients/ssm.d.ts +42 -6
  48. package/clients/stepfunctions.d.ts +54 -0
  49. package/dist/aws-sdk-core-react-native.js +2 -2
  50. package/dist/aws-sdk-react-native.js +1182 -1102
  51. package/dist/aws-sdk.js +2265 -859
  52. package/dist/aws-sdk.min.js +35 -35
  53. package/lib/config.d.ts +12 -0
  54. package/lib/config_service_placeholders.d.ts +4 -0
  55. package/lib/core.js +1 -1
  56. package/lib/services/s3.js +5 -4
  57. package/lib/services/sts.js +2 -4
  58. package/package.json +1 -1
  59. package/scripts/region-checker/whitelist.js +5 -5
package/lib/config.d.ts CHANGED
@@ -250,6 +250,18 @@ export abstract class ConfigurationOptions {
250
250
  * Whether to force path style URLs for S3 objects.
251
251
  */
252
252
  s3ForcePathStyle?: boolean
253
+ /**
254
+ * when region is set to 'us-east-1', whether to send s3 request to global endpoints
255
+ * or 'us-east-1' regional endpoints. This config is only applicable to S3 client;
256
+ * Defaults to 'legacy'
257
+ */
258
+ s3UsEast1RegionalEndpoint?: "regional"|"legacy"
259
+ /**
260
+ * whether to override the request region with the region inferred
261
+ * from requested resource's ARN. Only available for S3 buckets
262
+ * Defaults to `true`
263
+ */
264
+ s3UseArnRegion?: boolean
253
265
  /**
254
266
  * Whether the signature to sign requests with (overriding the API configuration) is cached.
255
267
  */
@@ -216,6 +216,8 @@ export abstract class ConfigurationServicePlaceholders {
216
216
  networkmanager?: AWS.NetworkManager.Types.ClientConfiguration;
217
217
  outposts?: AWS.Outposts.Types.ClientConfiguration;
218
218
  augmentedairuntime?: AWS.AugmentedAIRuntime.Types.ClientConfiguration;
219
+ ebs?: AWS.EBS.Types.ClientConfiguration;
220
+ kinesisvideosignalingchannels?: AWS.KinesisVideoSignalingChannels.Types.ClientConfiguration;
219
221
  }
220
222
  export interface ConfigurationServiceApiVersions {
221
223
  acm?: AWS.ACM.Types.apiVersion;
@@ -434,4 +436,6 @@ export interface ConfigurationServiceApiVersions {
434
436
  networkmanager?: AWS.NetworkManager.Types.apiVersion;
435
437
  outposts?: AWS.Outposts.Types.apiVersion;
436
438
  augmentedairuntime?: AWS.AugmentedAIRuntime.Types.apiVersion;
439
+ ebs?: AWS.EBS.Types.apiVersion;
440
+ kinesisvideosignalingchannels?: AWS.KinesisVideoSignalingChannels.Types.apiVersion;
437
441
  }
package/lib/core.js CHANGED
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.583.0',
23
+ VERSION: '2.587.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -375,9 +375,7 @@ AWS.util.update(AWS.S3.prototype, {
375
375
  var insertPoint = config.endpoint.indexOf('.amazonaws.com');
376
376
  regionalEndpoint = config.endpoint.substring(0, insertPoint) +
377
377
  '.us-east-1' + config.endpoint.substring(insertPoint);
378
- var endpoint = req.httpRequest.endpoint;
379
- endpoint.hostname = regionalEndpoint;
380
- endpoint.host = regionalEndpoint;
378
+ req.httpRequest.updateEndpoint(regionalEndpoint);
381
379
  }
382
380
  },
383
381
 
@@ -476,10 +474,13 @@ AWS.util.update(AWS.S3.prototype, {
476
474
  dnsSuffix
477
475
  ].join('.');
478
476
  endpoint.host = endpoint.hostname;
479
- var encodedArn = AWS.util.uriEscapePath(req.params.Bucket);
477
+ var encodedArn = AWS.util.uriEscape(req.params.Bucket);
480
478
  var path = req.httpRequest.path;
481
479
  //remove the Bucket value from path
482
480
  req.httpRequest.path = path.replace(new RegExp('/' + encodedArn), '');
481
+ if (req.httpRequest.path[0] !== '/') {
482
+ req.httpRequest.path = '/' + req.httpRequest.path;
483
+ }
483
484
  req.httpRequest.region = accessPointArn.region; //region used to sign
484
485
  },
485
486
 
@@ -76,11 +76,9 @@ AWS.util.update(AWS.STS.prototype, {
76
76
  {code: 'ConfigError', message: 'Missing region in config'});
77
77
  }
78
78
  var insertPoint = config.endpoint.indexOf('.amazonaws.com');
79
- regionalEndpoint = config.endpoint.substring(0, insertPoint) +
79
+ var regionalEndpoint = config.endpoint.substring(0, insertPoint) +
80
80
  '.' + config.region + config.endpoint.substring(insertPoint);
81
- var endpoint = req.httpRequest.endpoint;
82
- endpoint.hostname = regionalEndpoint;
83
- endpoint.host = regionalEndpoint;
81
+ req.httpRequest.updateEndpoint(regionalEndpoint);
84
82
  req.httpRequest.region = config.region;
85
83
  }
86
84
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.583.0",
4
+ "version": "2.587.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",
@@ -35,13 +35,13 @@ var whitelist = {
35
35
  357,
36
36
  370,
37
37
  376,
38
- 745,
39
- 747,
40
- 866,
41
- 877,
38
+ 748,
39
+ 746,
40
+ 867,
41
+ 880,
42
42
  878,
43
43
  879,
44
- 884
44
+ 885
45
45
  ]
46
46
  };
47
47