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.
- package/CHANGELOG.md +23 -1
- package/README.md +1 -1
- package/apis/apigatewayv2-2018-11-29.min.json +66 -0
- package/apis/cloudfront-2020-05-31.min.json +3 -0
- package/apis/codebuild-2016-10-06.min.json +6 -2
- package/apis/elasticloadbalancingv2-2015-12-01.min.json +53 -50
- package/apis/glue-2017-03-31.min.json +158 -91
- package/apis/glue-2017-03-31.paginators.json +5 -0
- package/apis/kinesisanalyticsv2-2018-05-23.min.json +16 -13
- package/apis/metadata.json +8 -0
- package/apis/quicksight-2018-04-01.min.json +65 -59
- package/apis/redshift-data-2019-12-20.examples.json +5 -0
- package/apis/redshift-data-2019-12-20.min.json +381 -0
- package/apis/redshift-data-2019-12-20.paginators.json +39 -0
- package/apis/s3-2006-03-01.examples.json +117 -117
- package/apis/s3-2006-03-01.min.json +431 -83
- package/apis/sso-admin-2020-07-20.examples.json +5 -0
- package/apis/sso-admin-2020-07-20.min.json +759 -0
- package/apis/sso-admin-2020-07-20.paginators.json +63 -0
- package/apis/workspaces-2015-04-08.min.json +10 -6
- package/apis/xray-2016-04-12.min.json +81 -61
- package/clients/all.d.ts +2 -0
- package/clients/all.js +3 -1
- package/clients/apigatewayv2.d.ts +100 -34
- package/clients/cloudfront.d.ts +11 -7
- package/clients/codebuild.d.ts +14 -6
- package/clients/ebs.d.ts +7 -7
- package/clients/elbv2.d.ts +18 -4
- package/clients/glue.d.ts +81 -2
- package/clients/kinesisanalyticsv2.d.ts +2 -1
- package/clients/lexmodelbuildingservice.d.ts +12 -12
- package/clients/quicksight.d.ts +16 -0
- package/clients/redshiftdata.d.ts +614 -0
- package/clients/redshiftdata.js +18 -0
- package/clients/s3.d.ts +389 -41
- package/clients/ssm.d.ts +10 -10
- package/clients/ssoadmin.d.ts +1059 -0
- package/clients/ssoadmin.js +18 -0
- package/clients/workspaces.d.ts +9 -3
- package/clients/xray.d.ts +66 -8
- package/dist/aws-sdk-core-react-native.js +6 -5
- package/dist/aws-sdk-react-native.js +93 -18
- package/dist/aws-sdk.js +589 -202
- package/dist/aws-sdk.min.js +70 -69
- package/lib/config_service_placeholders.d.ts +4 -0
- package/lib/core.js +1 -1
- package/lib/credentials/ec2_metadata_credentials.d.ts +5 -1
- package/lib/credentials/ec2_metadata_credentials.js +12 -1
- package/lib/protocol/json.js +3 -2
- package/lib/request.js +1 -1
- 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,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
|
|
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
|
*/
|
package/lib/protocol/json.js
CHANGED
|
@@ -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
|
-
|
|
35
|
-
|
|
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
|
|
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 || {},
|