aws-sdk 2.1658.0 → 2.1660.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/README.md +1 -1
- package/apis/acm-pca-2017-08-22.min.json +18 -17
- package/apis/acm-pca-2017-08-22.paginators.json +4 -4
- package/apis/acm-pca-2017-08-22.waiters2.json +62 -74
- package/apis/arc-zonal-shift-2022-10-30.min.json +62 -10
- package/apis/datazone-2018-05-10.min.json +902 -364
- package/apis/datazone-2018-05-10.paginators.json +6 -0
- package/apis/ivs-2020-07-14.min.json +159 -154
- package/apis/metadata.json +0 -3
- package/apis/pinpoint-2016-12-01.min.json +4 -1
- package/apis/quicksight-2018-04-01.min.json +1783 -1313
- package/apis/redshift-serverless-2021-04-21.min.json +25 -21
- package/clients/acmpca.d.ts +39 -39
- package/clients/all.d.ts +0 -1
- package/clients/all.js +0 -1
- package/clients/arczonalshift.d.ts +66 -29
- package/clients/datazone.d.ts +576 -0
- package/clients/ivs.d.ts +229 -229
- package/clients/quicksight.d.ts +609 -0
- package/clients/redshiftserverless.d.ts +20 -3
- package/dist/aws-sdk-core-react-native.js +2 -2
- package/dist/aws-sdk-react-native.js +1847 -1839
- package/dist/aws-sdk.js +54 -12
- package/dist/aws-sdk.min.js +13 -13
- package/lib/config_service_placeholders.d.ts +0 -2
- package/lib/core.js +1 -1
- package/lib/services/s3.js +51 -6
- package/package.json +1 -1
- package/scripts/region-checker/allowlist.js +7 -7
- package/apis/mobile-2017-07-01.examples.json +0 -5
- package/apis/mobile-2017-07-01.min.json +0 -341
- package/apis/mobile-2017-07-01.paginators.json +0 -14
- package/clients/mobile.d.ts +0 -333
- package/clients/mobile.js +0 -18
|
@@ -106,7 +106,6 @@ export abstract class ConfigurationServicePlaceholders {
|
|
|
106
106
|
migrationhub?: AWS.MigrationHub.Types.ClientConfiguration;
|
|
107
107
|
cloudhsmv2?: AWS.CloudHSMV2.Types.ClientConfiguration;
|
|
108
108
|
glue?: AWS.Glue.Types.ClientConfiguration;
|
|
109
|
-
mobile?: AWS.Mobile.Types.ClientConfiguration;
|
|
110
109
|
pricing?: AWS.Pricing.Types.ClientConfiguration;
|
|
111
110
|
costexplorer?: AWS.CostExplorer.Types.ClientConfiguration;
|
|
112
111
|
mediaconvert?: AWS.MediaConvert.Types.ClientConfiguration;
|
|
@@ -493,7 +492,6 @@ export interface ConfigurationServiceApiVersions {
|
|
|
493
492
|
migrationhub?: AWS.MigrationHub.Types.apiVersion;
|
|
494
493
|
cloudhsmv2?: AWS.CloudHSMV2.Types.apiVersion;
|
|
495
494
|
glue?: AWS.Glue.Types.apiVersion;
|
|
496
|
-
mobile?: AWS.Mobile.Types.apiVersion;
|
|
497
495
|
pricing?: AWS.Pricing.Types.apiVersion;
|
|
498
496
|
costexplorer?: AWS.CostExplorer.Types.apiVersion;
|
|
499
497
|
mediaconvert?: AWS.MediaConvert.Types.apiVersion;
|
package/lib/core.js
CHANGED
package/lib/services/s3.js
CHANGED
|
@@ -531,17 +531,21 @@ AWS.util.update(AWS.S3.prototype, {
|
|
|
531
531
|
* @api private
|
|
532
532
|
*/
|
|
533
533
|
extractErrorFrom200Response: function extractErrorFrom200Response(resp) {
|
|
534
|
-
|
|
534
|
+
var service = this.service ? this.service : this;
|
|
535
|
+
if (!service.is200Error(resp) && !operationsWith200StatusCodeError[resp.request.operation]) {
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
535
538
|
var httpResponse = resp.httpResponse;
|
|
536
|
-
|
|
539
|
+
var bodyString = httpResponse.body && httpResponse.body.toString() || '';
|
|
540
|
+
if (bodyString && bodyString.indexOf('</Error>') === bodyString.length - 8) {
|
|
537
541
|
// Response body with '<Error>...</Error>' indicates an exception.
|
|
538
542
|
// Get S3 client object. In ManagedUpload, this.service refers to
|
|
539
543
|
// S3 client object.
|
|
540
544
|
resp.data = null;
|
|
541
|
-
var service = this.service ? this.service : this;
|
|
542
545
|
service.extractError(resp);
|
|
546
|
+
resp.error.is200Error = true;
|
|
543
547
|
throw resp.error;
|
|
544
|
-
} else if (!httpResponse.body || !
|
|
548
|
+
} else if (!httpResponse.body || !bodyString.match(/<[\w_]/)) {
|
|
545
549
|
// When body is empty or incomplete, S3 might stop the request on detecting client
|
|
546
550
|
// side aborting the request.
|
|
547
551
|
resp.data = null;
|
|
@@ -552,13 +556,54 @@ AWS.util.update(AWS.S3.prototype, {
|
|
|
552
556
|
}
|
|
553
557
|
},
|
|
554
558
|
|
|
559
|
+
/**
|
|
560
|
+
* @api private
|
|
561
|
+
* @param resp - to evaluate.
|
|
562
|
+
* @return true if the response has status code 200 but is an error.
|
|
563
|
+
*/
|
|
564
|
+
is200Error: function is200Error(resp) {
|
|
565
|
+
var code = resp && resp.httpResponse && resp.httpResponse.statusCode;
|
|
566
|
+
if (code !== 200) {
|
|
567
|
+
return false;
|
|
568
|
+
}
|
|
569
|
+
try {
|
|
570
|
+
var req = resp.request;
|
|
571
|
+
var outputMembers = req.service.api.operations[req.operation].output.members;
|
|
572
|
+
var keys = Object.keys(outputMembers);
|
|
573
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
574
|
+
var member = outputMembers[keys[i]];
|
|
575
|
+
if (member.type === 'binary' && member.isStreaming) {
|
|
576
|
+
return false;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
var body = resp.httpResponse.body;
|
|
581
|
+
if (body && body.byteLength !== undefined) {
|
|
582
|
+
if (body.byteLength < 15 || body.byteLength > 3000) {
|
|
583
|
+
// body is too short or long to be an error message.
|
|
584
|
+
return false;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
if (!body) {
|
|
588
|
+
return false;
|
|
589
|
+
}
|
|
590
|
+
var bodyString = body.toString();
|
|
591
|
+
if (bodyString.indexOf('</Error>') === bodyString.length - 8) {
|
|
592
|
+
return true;
|
|
593
|
+
}
|
|
594
|
+
} catch (e) {
|
|
595
|
+
return false;
|
|
596
|
+
}
|
|
597
|
+
return false;
|
|
598
|
+
},
|
|
599
|
+
|
|
555
600
|
/**
|
|
556
601
|
* @return [Boolean] whether the error can be retried
|
|
557
602
|
* @api private
|
|
558
603
|
*/
|
|
559
604
|
retryableError: function retryableError(error, request) {
|
|
560
|
-
if (
|
|
561
|
-
|
|
605
|
+
if (error.is200Error ||
|
|
606
|
+
(operationsWith200StatusCodeError[request.operation] && error.statusCode === 200)) {
|
|
562
607
|
return true;
|
|
563
608
|
} else if (request._requestRegionForBucket &&
|
|
564
609
|
request.service.bucketRegionCache[request._requestRegionForBucket]) {
|
package/package.json
CHANGED
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2.0",
|
|
3
|
-
"metadata": {
|
|
4
|
-
"apiVersion": "2017-07-01",
|
|
5
|
-
"endpointPrefix": "mobile",
|
|
6
|
-
"jsonVersion": "1.1",
|
|
7
|
-
"protocol": "rest-json",
|
|
8
|
-
"serviceFullName": "AWS Mobile",
|
|
9
|
-
"serviceId": "Mobile",
|
|
10
|
-
"signatureVersion": "v4",
|
|
11
|
-
"signingName": "AWSMobileHubService",
|
|
12
|
-
"uid": "mobile-2017-07-01"
|
|
13
|
-
},
|
|
14
|
-
"operations": {
|
|
15
|
-
"CreateProject": {
|
|
16
|
-
"http": {
|
|
17
|
-
"requestUri": "/projects"
|
|
18
|
-
},
|
|
19
|
-
"input": {
|
|
20
|
-
"type": "structure",
|
|
21
|
-
"members": {
|
|
22
|
-
"name": {
|
|
23
|
-
"location": "querystring",
|
|
24
|
-
"locationName": "name"
|
|
25
|
-
},
|
|
26
|
-
"region": {
|
|
27
|
-
"location": "querystring",
|
|
28
|
-
"locationName": "region"
|
|
29
|
-
},
|
|
30
|
-
"contents": {
|
|
31
|
-
"type": "blob"
|
|
32
|
-
},
|
|
33
|
-
"snapshotId": {
|
|
34
|
-
"location": "querystring",
|
|
35
|
-
"locationName": "snapshotId"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"payload": "contents"
|
|
39
|
-
},
|
|
40
|
-
"output": {
|
|
41
|
-
"type": "structure",
|
|
42
|
-
"members": {
|
|
43
|
-
"details": {
|
|
44
|
-
"shape": "S7"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"DeleteProject": {
|
|
50
|
-
"http": {
|
|
51
|
-
"method": "DELETE",
|
|
52
|
-
"requestUri": "/projects/{projectId}"
|
|
53
|
-
},
|
|
54
|
-
"input": {
|
|
55
|
-
"type": "structure",
|
|
56
|
-
"required": [
|
|
57
|
-
"projectId"
|
|
58
|
-
],
|
|
59
|
-
"members": {
|
|
60
|
-
"projectId": {
|
|
61
|
-
"location": "uri",
|
|
62
|
-
"locationName": "projectId"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"output": {
|
|
67
|
-
"type": "structure",
|
|
68
|
-
"members": {
|
|
69
|
-
"deletedResources": {
|
|
70
|
-
"shape": "Sc"
|
|
71
|
-
},
|
|
72
|
-
"orphanedResources": {
|
|
73
|
-
"shape": "Sc"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"DescribeBundle": {
|
|
79
|
-
"http": {
|
|
80
|
-
"method": "GET",
|
|
81
|
-
"requestUri": "/bundles/{bundleId}"
|
|
82
|
-
},
|
|
83
|
-
"input": {
|
|
84
|
-
"type": "structure",
|
|
85
|
-
"required": [
|
|
86
|
-
"bundleId"
|
|
87
|
-
],
|
|
88
|
-
"members": {
|
|
89
|
-
"bundleId": {
|
|
90
|
-
"location": "uri",
|
|
91
|
-
"locationName": "bundleId"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"output": {
|
|
96
|
-
"type": "structure",
|
|
97
|
-
"members": {
|
|
98
|
-
"details": {
|
|
99
|
-
"shape": "Sq"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"DescribeProject": {
|
|
105
|
-
"http": {
|
|
106
|
-
"method": "GET",
|
|
107
|
-
"requestUri": "/project"
|
|
108
|
-
},
|
|
109
|
-
"input": {
|
|
110
|
-
"type": "structure",
|
|
111
|
-
"required": [
|
|
112
|
-
"projectId"
|
|
113
|
-
],
|
|
114
|
-
"members": {
|
|
115
|
-
"projectId": {
|
|
116
|
-
"location": "querystring",
|
|
117
|
-
"locationName": "projectId"
|
|
118
|
-
},
|
|
119
|
-
"syncFromResources": {
|
|
120
|
-
"location": "querystring",
|
|
121
|
-
"locationName": "syncFromResources",
|
|
122
|
-
"type": "boolean"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"output": {
|
|
127
|
-
"type": "structure",
|
|
128
|
-
"members": {
|
|
129
|
-
"details": {
|
|
130
|
-
"shape": "S7"
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"ExportBundle": {
|
|
136
|
-
"http": {
|
|
137
|
-
"requestUri": "/bundles/{bundleId}"
|
|
138
|
-
},
|
|
139
|
-
"input": {
|
|
140
|
-
"type": "structure",
|
|
141
|
-
"required": [
|
|
142
|
-
"bundleId"
|
|
143
|
-
],
|
|
144
|
-
"members": {
|
|
145
|
-
"bundleId": {
|
|
146
|
-
"location": "uri",
|
|
147
|
-
"locationName": "bundleId"
|
|
148
|
-
},
|
|
149
|
-
"projectId": {
|
|
150
|
-
"location": "querystring",
|
|
151
|
-
"locationName": "projectId"
|
|
152
|
-
},
|
|
153
|
-
"platform": {
|
|
154
|
-
"location": "querystring",
|
|
155
|
-
"locationName": "platform"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"output": {
|
|
160
|
-
"type": "structure",
|
|
161
|
-
"members": {
|
|
162
|
-
"downloadUrl": {}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"ExportProject": {
|
|
167
|
-
"http": {
|
|
168
|
-
"requestUri": "/exports/{projectId}"
|
|
169
|
-
},
|
|
170
|
-
"input": {
|
|
171
|
-
"type": "structure",
|
|
172
|
-
"required": [
|
|
173
|
-
"projectId"
|
|
174
|
-
],
|
|
175
|
-
"members": {
|
|
176
|
-
"projectId": {
|
|
177
|
-
"location": "uri",
|
|
178
|
-
"locationName": "projectId"
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
"output": {
|
|
183
|
-
"type": "structure",
|
|
184
|
-
"members": {
|
|
185
|
-
"downloadUrl": {},
|
|
186
|
-
"shareUrl": {},
|
|
187
|
-
"snapshotId": {}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"ListBundles": {
|
|
192
|
-
"http": {
|
|
193
|
-
"method": "GET",
|
|
194
|
-
"requestUri": "/bundles"
|
|
195
|
-
},
|
|
196
|
-
"input": {
|
|
197
|
-
"type": "structure",
|
|
198
|
-
"members": {
|
|
199
|
-
"maxResults": {
|
|
200
|
-
"location": "querystring",
|
|
201
|
-
"locationName": "maxResults",
|
|
202
|
-
"type": "integer"
|
|
203
|
-
},
|
|
204
|
-
"nextToken": {
|
|
205
|
-
"location": "querystring",
|
|
206
|
-
"locationName": "nextToken"
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"output": {
|
|
211
|
-
"type": "structure",
|
|
212
|
-
"members": {
|
|
213
|
-
"bundleList": {
|
|
214
|
-
"type": "list",
|
|
215
|
-
"member": {
|
|
216
|
-
"shape": "Sq"
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
"nextToken": {}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
"ListProjects": {
|
|
224
|
-
"http": {
|
|
225
|
-
"method": "GET",
|
|
226
|
-
"requestUri": "/projects"
|
|
227
|
-
},
|
|
228
|
-
"input": {
|
|
229
|
-
"type": "structure",
|
|
230
|
-
"members": {
|
|
231
|
-
"maxResults": {
|
|
232
|
-
"location": "querystring",
|
|
233
|
-
"locationName": "maxResults",
|
|
234
|
-
"type": "integer"
|
|
235
|
-
},
|
|
236
|
-
"nextToken": {
|
|
237
|
-
"location": "querystring",
|
|
238
|
-
"locationName": "nextToken"
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
"output": {
|
|
243
|
-
"type": "structure",
|
|
244
|
-
"members": {
|
|
245
|
-
"projects": {
|
|
246
|
-
"type": "list",
|
|
247
|
-
"member": {
|
|
248
|
-
"type": "structure",
|
|
249
|
-
"members": {
|
|
250
|
-
"name": {},
|
|
251
|
-
"projectId": {}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
"nextToken": {}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
},
|
|
259
|
-
"UpdateProject": {
|
|
260
|
-
"http": {
|
|
261
|
-
"requestUri": "/update"
|
|
262
|
-
},
|
|
263
|
-
"input": {
|
|
264
|
-
"type": "structure",
|
|
265
|
-
"required": [
|
|
266
|
-
"projectId"
|
|
267
|
-
],
|
|
268
|
-
"members": {
|
|
269
|
-
"contents": {
|
|
270
|
-
"type": "blob"
|
|
271
|
-
},
|
|
272
|
-
"projectId": {
|
|
273
|
-
"location": "querystring",
|
|
274
|
-
"locationName": "projectId"
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
"payload": "contents"
|
|
278
|
-
},
|
|
279
|
-
"output": {
|
|
280
|
-
"type": "structure",
|
|
281
|
-
"members": {
|
|
282
|
-
"details": {
|
|
283
|
-
"shape": "S7"
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
"shapes": {
|
|
290
|
-
"S7": {
|
|
291
|
-
"type": "structure",
|
|
292
|
-
"members": {
|
|
293
|
-
"name": {},
|
|
294
|
-
"projectId": {},
|
|
295
|
-
"region": {},
|
|
296
|
-
"state": {},
|
|
297
|
-
"createdDate": {
|
|
298
|
-
"type": "timestamp"
|
|
299
|
-
},
|
|
300
|
-
"lastUpdatedDate": {
|
|
301
|
-
"type": "timestamp"
|
|
302
|
-
},
|
|
303
|
-
"consoleUrl": {},
|
|
304
|
-
"resources": {
|
|
305
|
-
"shape": "Sc"
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
"Sc": {
|
|
310
|
-
"type": "list",
|
|
311
|
-
"member": {
|
|
312
|
-
"type": "structure",
|
|
313
|
-
"members": {
|
|
314
|
-
"type": {},
|
|
315
|
-
"name": {},
|
|
316
|
-
"arn": {},
|
|
317
|
-
"feature": {},
|
|
318
|
-
"attributes": {
|
|
319
|
-
"type": "map",
|
|
320
|
-
"key": {},
|
|
321
|
-
"value": {}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
"Sq": {
|
|
327
|
-
"type": "structure",
|
|
328
|
-
"members": {
|
|
329
|
-
"bundleId": {},
|
|
330
|
-
"title": {},
|
|
331
|
-
"version": {},
|
|
332
|
-
"description": {},
|
|
333
|
-
"iconUrl": {},
|
|
334
|
-
"availablePlatforms": {
|
|
335
|
-
"type": "list",
|
|
336
|
-
"member": {}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"pagination": {
|
|
3
|
-
"ListBundles": {
|
|
4
|
-
"input_token": "nextToken",
|
|
5
|
-
"output_token": "nextToken",
|
|
6
|
-
"limit_key": "maxResults"
|
|
7
|
-
},
|
|
8
|
-
"ListProjects": {
|
|
9
|
-
"input_token": "nextToken",
|
|
10
|
-
"output_token": "nextToken",
|
|
11
|
-
"limit_key": "maxResults"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|