aws-sdk 2.746.0 → 2.750.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 (51) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/README.md +1 -1
  3. package/apis/apigatewayv2-2018-11-29.min.json +66 -0
  4. package/apis/cloudfront-2020-05-31.min.json +3 -0
  5. package/apis/codebuild-2016-10-06.min.json +6 -2
  6. package/apis/elasticloadbalancingv2-2015-12-01.min.json +53 -50
  7. package/apis/glue-2017-03-31.min.json +158 -91
  8. package/apis/glue-2017-03-31.paginators.json +5 -0
  9. package/apis/kinesisanalyticsv2-2018-05-23.min.json +16 -13
  10. package/apis/metadata.json +8 -0
  11. package/apis/quicksight-2018-04-01.min.json +65 -59
  12. package/apis/redshift-data-2019-12-20.examples.json +5 -0
  13. package/apis/redshift-data-2019-12-20.min.json +381 -0
  14. package/apis/redshift-data-2019-12-20.paginators.json +39 -0
  15. package/apis/s3-2006-03-01.examples.json +117 -117
  16. package/apis/s3-2006-03-01.min.json +431 -83
  17. package/apis/sso-admin-2020-07-20.examples.json +5 -0
  18. package/apis/sso-admin-2020-07-20.min.json +759 -0
  19. package/apis/sso-admin-2020-07-20.paginators.json +63 -0
  20. package/apis/workspaces-2015-04-08.min.json +10 -6
  21. package/apis/xray-2016-04-12.min.json +81 -61
  22. package/clients/all.d.ts +2 -0
  23. package/clients/all.js +3 -1
  24. package/clients/apigatewayv2.d.ts +100 -34
  25. package/clients/cloudfront.d.ts +11 -7
  26. package/clients/codebuild.d.ts +14 -6
  27. package/clients/ebs.d.ts +7 -7
  28. package/clients/elbv2.d.ts +18 -4
  29. package/clients/glue.d.ts +81 -2
  30. package/clients/kinesisanalyticsv2.d.ts +2 -1
  31. package/clients/lexmodelbuildingservice.d.ts +12 -12
  32. package/clients/quicksight.d.ts +16 -0
  33. package/clients/redshiftdata.d.ts +614 -0
  34. package/clients/redshiftdata.js +18 -0
  35. package/clients/s3.d.ts +389 -41
  36. package/clients/ssm.d.ts +10 -10
  37. package/clients/ssoadmin.d.ts +1059 -0
  38. package/clients/ssoadmin.js +18 -0
  39. package/clients/workspaces.d.ts +9 -3
  40. package/clients/xray.d.ts +66 -8
  41. package/dist/aws-sdk-core-react-native.js +6 -5
  42. package/dist/aws-sdk-react-native.js +93 -18
  43. package/dist/aws-sdk.js +589 -202
  44. package/dist/aws-sdk.min.js +70 -69
  45. package/lib/config_service_placeholders.d.ts +4 -0
  46. package/lib/core.js +1 -1
  47. package/lib/credentials/ec2_metadata_credentials.d.ts +5 -1
  48. package/lib/credentials/ec2_metadata_credentials.js +12 -1
  49. package/lib/protocol/json.js +3 -2
  50. package/lib/request.js +1 -1
  51. package/package.json +1 -1
@@ -229,6 +229,8 @@ export abstract class ConfigurationServicePlaceholders {
229
229
  braket?: AWS.Braket.Types.ClientConfiguration;
230
230
  identitystore?: AWS.IdentityStore.Types.ClientConfiguration;
231
231
  appflow?: AWS.Appflow.Types.ClientConfiguration;
232
+ redshiftdata?: AWS.RedshiftData.Types.ClientConfiguration;
233
+ ssoadmin?: AWS.SSOAdmin.Types.ClientConfiguration;
232
234
  }
233
235
  export interface ConfigurationServiceApiVersions {
234
236
  acm?: AWS.ACM.Types.apiVersion;
@@ -460,4 +462,6 @@ export interface ConfigurationServiceApiVersions {
460
462
  braket?: AWS.Braket.Types.apiVersion;
461
463
  identitystore?: AWS.IdentityStore.Types.apiVersion;
462
464
  appflow?: AWS.Appflow.Types.apiVersion;
465
+ redshiftdata?: AWS.RedshiftData.Types.apiVersion;
466
+ ssoadmin?: AWS.SSOAdmin.Types.apiVersion;
463
467
  }
package/lib/core.js CHANGED
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.746.0',
23
+ VERSION: '2.750.0',
24
24
 
25
25
  /**
26
26
  * @api private
@@ -12,6 +12,10 @@ export class EC2MetadataCredentials extends Credentials {
12
12
  * Timeout in milliseconds.
13
13
  */
14
14
  timeout?: number
15
+ /**
16
+ * Connection timeout in milliseconds.
17
+ */
18
+ connectTimeout?: number
15
19
  }
16
20
  maxRetries?: number
17
- }
21
+ }
@@ -20,6 +20,10 @@ require('../metadata_service');
20
20
  * maxRetries: 10, // retry 10 times
21
21
  * retryDelayOptions: { base: 200 } // see AWS.Config for information
22
22
  * });
23
+ *
24
+ * If your requests are timing out in connecting to the metadata service, such
25
+ * as when testing on a development machine, you can use the connectTimeout
26
+ * option, specified in milliseconds, which also defaults to 1 second.
23
27
  * ```
24
28
  *
25
29
  * @see AWS.Config.retryDelayOptions
@@ -35,7 +39,9 @@ AWS.EC2MetadataCredentials = AWS.util.inherit(AWS.Credentials, {
35
39
  {maxRetries: this.defaultMaxRetries}, options);
36
40
  if (!options.httpOptions) options.httpOptions = {};
37
41
  options.httpOptions = AWS.util.merge(
38
- {timeout: this.defaultTimeout}, options.httpOptions);
42
+ {timeout: this.defaultTimeout,
43
+ connectTimeout: this.defaultConnectTimeout},
44
+ options.httpOptions);
39
45
 
40
46
  this.metadataService = new AWS.MetadataService(options);
41
47
  this.metadata = {};
@@ -46,6 +52,11 @@ AWS.EC2MetadataCredentials = AWS.util.inherit(AWS.Credentials, {
46
52
  */
47
53
  defaultTimeout: 1000,
48
54
 
55
+ /**
56
+ * @api private
57
+ */
58
+ defaultConnectTimeout: 1000,
59
+
49
60
  /**
50
61
  * @api private
51
62
  */
@@ -31,8 +31,9 @@ function extractError(resp) {
31
31
  if (httpResponse.body.length > 0) {
32
32
  try {
33
33
  var e = JSON.parse(httpResponse.body.toString());
34
- if (e.__type || e.code) {
35
- error.code = (e.__type || e.code).split('#').pop();
34
+ var code = e.__type || e.code || e.Code;
35
+ if (code) {
36
+ error.code = code.split('#').pop();
36
37
  }
37
38
  if (error.code === 'RequestEntityTooLarge') {
38
39
  error.message = 'Request body must be less than 1 MB';
package/lib/request.js CHANGED
@@ -785,7 +785,7 @@ AWS.Request.addPromisesToClass = function addPromisesToClass(PromiseDependency)
785
785
  if (resp.error) {
786
786
  reject(resp.error);
787
787
  } else {
788
- // define $response property so that it is not enumberable
788
+ // define $response property so that it is not enumerable
789
789
  // this prevents circular reference errors when stringifying the JSON object
790
790
  resolve(Object.defineProperty(
791
791
  resp.data || {},
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.746.0",
4
+ "version": "2.750.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",