@aws-sdk/client-outposts 3.33.0 → 3.34.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 +11 -0
- package/dist/cjs/package.json +38 -38
- package/dist/es/Outposts.js +1 -8
- package/dist/es/Outposts.js.map +1 -1
- package/dist/es/OutpostsClient.js +1 -13
- package/dist/es/OutpostsClient.js.map +1 -1
- package/dist/es/commands/CreateOrderCommand.js +2 -27
- package/dist/es/commands/CreateOrderCommand.js.map +1 -1
- package/dist/es/commands/CreateOutpostCommand.js +2 -28
- package/dist/es/commands/CreateOutpostCommand.js.map +1 -1
- package/dist/es/commands/DeleteOutpostCommand.js +2 -27
- package/dist/es/commands/DeleteOutpostCommand.js.map +1 -1
- package/dist/es/commands/DeleteSiteCommand.js +2 -27
- package/dist/es/commands/DeleteSiteCommand.js.map +1 -1
- package/dist/es/commands/GetOutpostCommand.js +2 -27
- package/dist/es/commands/GetOutpostCommand.js.map +1 -1
- package/dist/es/commands/GetOutpostInstanceTypesCommand.js +2 -27
- package/dist/es/commands/GetOutpostInstanceTypesCommand.js.map +1 -1
- package/dist/es/commands/ListOutpostsCommand.js +2 -32
- package/dist/es/commands/ListOutpostsCommand.js.map +1 -1
- package/dist/es/commands/ListSitesCommand.js +2 -27
- package/dist/es/commands/ListSitesCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -27
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -102
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +38 -38
- package/dist/es/pagination/ListOutpostsPaginator.js +16 -28
- package/dist/es/pagination/ListOutpostsPaginator.js.map +1 -1
- package/dist/es/pagination/ListSitesPaginator.js +16 -28
- package/dist/es/pagination/ListSitesPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_restJson1.js +274 -279
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/package.json +38 -38
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateOrderCommand = function (input, context)
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -17,7 +17,7 @@ export var serializeAws_restJson1CreateOrderCommand = function (input, context)
|
|
|
17
17
|
LineItems: serializeAws_restJson1LineItemRequestListDefinition(input.LineItems, context),
|
|
18
18
|
})), (input.OutpostIdentifier !== undefined &&
|
|
19
19
|
input.OutpostIdentifier !== null && { OutpostIdentifier: input.OutpostIdentifier })), (input.PaymentOption !== undefined && input.PaymentOption !== null && { PaymentOption: input.PaymentOption })), (input.PaymentTerm !== undefined && input.PaymentTerm !== null && { PaymentTerm: input.PaymentTerm })));
|
|
20
|
-
return [2
|
|
20
|
+
return [2, new __HttpRequest({
|
|
21
21
|
protocol: protocol,
|
|
22
22
|
hostname: hostname,
|
|
23
23
|
port: port,
|
|
@@ -33,7 +33,7 @@ export var serializeAws_restJson1CreateOutpostCommand = function (input, context
|
|
|
33
33
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
34
34
|
return __generator(this, function (_c) {
|
|
35
35
|
switch (_c.label) {
|
|
36
|
-
case 0: return [4
|
|
36
|
+
case 0: return [4, context.endpoint()];
|
|
37
37
|
case 1:
|
|
38
38
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
39
39
|
headers = {
|
|
@@ -43,7 +43,7 @@ export var serializeAws_restJson1CreateOutpostCommand = function (input, context
|
|
|
43
43
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AvailabilityZone !== undefined &&
|
|
44
44
|
input.AvailabilityZone !== null && { AvailabilityZone: input.AvailabilityZone })), (input.AvailabilityZoneId !== undefined &&
|
|
45
45
|
input.AvailabilityZoneId !== null && { AvailabilityZoneId: input.AvailabilityZoneId })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.SiteId !== undefined && input.SiteId !== null && { SiteId: input.SiteId })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
46
|
-
return [2
|
|
46
|
+
return [2, new __HttpRequest({
|
|
47
47
|
protocol: protocol,
|
|
48
48
|
hostname: hostname,
|
|
49
49
|
port: port,
|
|
@@ -59,7 +59,7 @@ export var serializeAws_restJson1DeleteOutpostCommand = function (input, context
|
|
|
59
59
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
60
60
|
return __generator(this, function (_c) {
|
|
61
61
|
switch (_c.label) {
|
|
62
|
-
case 0: return [4
|
|
62
|
+
case 0: return [4, context.endpoint()];
|
|
63
63
|
case 1:
|
|
64
64
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
65
65
|
headers = {};
|
|
@@ -74,7 +74,7 @@ export var serializeAws_restJson1DeleteOutpostCommand = function (input, context
|
|
|
74
74
|
else {
|
|
75
75
|
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
76
76
|
}
|
|
77
|
-
return [2
|
|
77
|
+
return [2, new __HttpRequest({
|
|
78
78
|
protocol: protocol,
|
|
79
79
|
hostname: hostname,
|
|
80
80
|
port: port,
|
|
@@ -90,7 +90,7 @@ export var serializeAws_restJson1DeleteSiteCommand = function (input, context) {
|
|
|
90
90
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
91
91
|
return __generator(this, function (_c) {
|
|
92
92
|
switch (_c.label) {
|
|
93
|
-
case 0: return [4
|
|
93
|
+
case 0: return [4, context.endpoint()];
|
|
94
94
|
case 1:
|
|
95
95
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
96
96
|
headers = {};
|
|
@@ -105,7 +105,7 @@ export var serializeAws_restJson1DeleteSiteCommand = function (input, context) {
|
|
|
105
105
|
else {
|
|
106
106
|
throw new Error("No value provided for input HTTP label: SiteId.");
|
|
107
107
|
}
|
|
108
|
-
return [2
|
|
108
|
+
return [2, new __HttpRequest({
|
|
109
109
|
protocol: protocol,
|
|
110
110
|
hostname: hostname,
|
|
111
111
|
port: port,
|
|
@@ -121,7 +121,7 @@ export var serializeAws_restJson1GetOutpostCommand = function (input, context) {
|
|
|
121
121
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
122
122
|
return __generator(this, function (_c) {
|
|
123
123
|
switch (_c.label) {
|
|
124
|
-
case 0: return [4
|
|
124
|
+
case 0: return [4, context.endpoint()];
|
|
125
125
|
case 1:
|
|
126
126
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
127
127
|
headers = {};
|
|
@@ -136,7 +136,7 @@ export var serializeAws_restJson1GetOutpostCommand = function (input, context) {
|
|
|
136
136
|
else {
|
|
137
137
|
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
138
138
|
}
|
|
139
|
-
return [2
|
|
139
|
+
return [2, new __HttpRequest({
|
|
140
140
|
protocol: protocol,
|
|
141
141
|
hostname: hostname,
|
|
142
142
|
port: port,
|
|
@@ -152,7 +152,7 @@ export var serializeAws_restJson1GetOutpostInstanceTypesCommand = function (inpu
|
|
|
152
152
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
153
153
|
return __generator(this, function (_c) {
|
|
154
154
|
switch (_c.label) {
|
|
155
|
-
case 0: return [4
|
|
155
|
+
case 0: return [4, context.endpoint()];
|
|
156
156
|
case 1:
|
|
157
157
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
158
158
|
headers = {};
|
|
@@ -168,7 +168,7 @@ export var serializeAws_restJson1GetOutpostInstanceTypesCommand = function (inpu
|
|
|
168
168
|
throw new Error("No value provided for input HTTP label: OutpostId.");
|
|
169
169
|
}
|
|
170
170
|
query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }));
|
|
171
|
-
return [2
|
|
171
|
+
return [2, new __HttpRequest({
|
|
172
172
|
protocol: protocol,
|
|
173
173
|
hostname: hostname,
|
|
174
174
|
port: port,
|
|
@@ -185,7 +185,7 @@ export var serializeAws_restJson1ListOutpostsCommand = function (input, context)
|
|
|
185
185
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
186
186
|
return __generator(this, function (_c) {
|
|
187
187
|
switch (_c.label) {
|
|
188
|
-
case 0: return [4
|
|
188
|
+
case 0: return [4, context.endpoint()];
|
|
189
189
|
case 1:
|
|
190
190
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
191
191
|
headers = {};
|
|
@@ -197,7 +197,7 @@ export var serializeAws_restJson1ListOutpostsCommand = function (input, context)
|
|
|
197
197
|
})), (input.AvailabilityZoneIdFilter !== undefined && {
|
|
198
198
|
AvailabilityZoneIdFilter: (input.AvailabilityZoneIdFilter || []).map(function (_entry) { return _entry; }),
|
|
199
199
|
}));
|
|
200
|
-
return [2
|
|
200
|
+
return [2, new __HttpRequest({
|
|
201
201
|
protocol: protocol,
|
|
202
202
|
hostname: hostname,
|
|
203
203
|
port: port,
|
|
@@ -214,13 +214,13 @@ export var serializeAws_restJson1ListSitesCommand = function (input, context) {
|
|
|
214
214
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
215
215
|
return __generator(this, function (_c) {
|
|
216
216
|
switch (_c.label) {
|
|
217
|
-
case 0: return [4
|
|
217
|
+
case 0: return [4, context.endpoint()];
|
|
218
218
|
case 1:
|
|
219
219
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
220
220
|
headers = {};
|
|
221
221
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sites";
|
|
222
222
|
query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }));
|
|
223
|
-
return [2
|
|
223
|
+
return [2, new __HttpRequest({
|
|
224
224
|
protocol: protocol,
|
|
225
225
|
hostname: hostname,
|
|
226
226
|
port: port,
|
|
@@ -237,7 +237,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
237
237
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
238
238
|
return __generator(this, function (_c) {
|
|
239
239
|
switch (_c.label) {
|
|
240
|
-
case 0: return [4
|
|
240
|
+
case 0: return [4, context.endpoint()];
|
|
241
241
|
case 1:
|
|
242
242
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
243
243
|
headers = {};
|
|
@@ -252,7 +252,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
252
252
|
else {
|
|
253
253
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
254
254
|
}
|
|
255
|
-
return [2
|
|
255
|
+
return [2, new __HttpRequest({
|
|
256
256
|
protocol: protocol,
|
|
257
257
|
hostname: hostname,
|
|
258
258
|
port: port,
|
|
@@ -268,7 +268,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
268
268
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
269
269
|
return __generator(this, function (_c) {
|
|
270
270
|
switch (_c.label) {
|
|
271
|
-
case 0: return [4
|
|
271
|
+
case 0: return [4, context.endpoint()];
|
|
272
272
|
case 1:
|
|
273
273
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
274
274
|
headers = {
|
|
@@ -286,7 +286,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
286
286
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
287
287
|
}
|
|
288
288
|
body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
289
|
-
return [2
|
|
289
|
+
return [2, new __HttpRequest({
|
|
290
290
|
protocol: protocol,
|
|
291
291
|
hostname: hostname,
|
|
292
292
|
port: port,
|
|
@@ -302,7 +302,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
302
302
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
303
303
|
return __generator(this, function (_c) {
|
|
304
304
|
switch (_c.label) {
|
|
305
|
-
case 0: return [4
|
|
305
|
+
case 0: return [4, context.endpoint()];
|
|
306
306
|
case 1:
|
|
307
307
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
308
308
|
headers = {};
|
|
@@ -318,7 +318,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
318
318
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
319
319
|
}
|
|
320
320
|
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
321
|
-
return [2
|
|
321
|
+
return [2, new __HttpRequest({
|
|
322
322
|
protocol: protocol,
|
|
323
323
|
hostname: hostname,
|
|
324
324
|
port: port,
|
|
@@ -337,7 +337,7 @@ export var deserializeAws_restJson1CreateOrderCommand = function (output, contex
|
|
|
337
337
|
switch (_c.label) {
|
|
338
338
|
case 0:
|
|
339
339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
340
|
-
return [2
|
|
340
|
+
return [2, deserializeAws_restJson1CreateOrderCommandError(output, context)];
|
|
341
341
|
}
|
|
342
342
|
contents = {
|
|
343
343
|
$metadata: deserializeMetadata(output),
|
|
@@ -345,13 +345,13 @@ export var deserializeAws_restJson1CreateOrderCommand = function (output, contex
|
|
|
345
345
|
};
|
|
346
346
|
_a = __expectNonNull;
|
|
347
347
|
_b = __expectObject;
|
|
348
|
-
return [4
|
|
348
|
+
return [4, parseBody(output.body, context)];
|
|
349
349
|
case 1:
|
|
350
350
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
351
351
|
if (data.Order !== undefined && data.Order !== null) {
|
|
352
352
|
contents.Order = deserializeAws_restJson1Order(data.Order, context);
|
|
353
353
|
}
|
|
354
|
-
return [2
|
|
354
|
+
return [2, Promise.resolve(contents)];
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
357
|
}); };
|
|
@@ -363,63 +363,63 @@ var deserializeAws_restJson1CreateOrderCommandError = function (output, context)
|
|
|
363
363
|
case 0:
|
|
364
364
|
_a = [__assign({}, output)];
|
|
365
365
|
_j = {};
|
|
366
|
-
return [4
|
|
366
|
+
return [4, parseBody(output.body, context)];
|
|
367
367
|
case 1:
|
|
368
368
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
369
369
|
errorCode = "UnknownError";
|
|
370
370
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
371
371
|
_b = errorCode;
|
|
372
372
|
switch (_b) {
|
|
373
|
-
case "AccessDeniedException": return [3
|
|
374
|
-
case "com.amazonaws.outposts#AccessDeniedException": return [3
|
|
375
|
-
case "ConflictException": return [3
|
|
376
|
-
case "com.amazonaws.outposts#ConflictException": return [3
|
|
377
|
-
case "InternalServerException": return [3
|
|
378
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
379
|
-
case "NotFoundException": return [3
|
|
380
|
-
case "com.amazonaws.outposts#NotFoundException": return [3
|
|
381
|
-
case "ServiceQuotaExceededException": return [3
|
|
382
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException": return [3
|
|
383
|
-
case "ValidationException": return [3
|
|
384
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
373
|
+
case "AccessDeniedException": return [3, 2];
|
|
374
|
+
case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
|
|
375
|
+
case "ConflictException": return [3, 4];
|
|
376
|
+
case "com.amazonaws.outposts#ConflictException": return [3, 4];
|
|
377
|
+
case "InternalServerException": return [3, 6];
|
|
378
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 6];
|
|
379
|
+
case "NotFoundException": return [3, 8];
|
|
380
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 8];
|
|
381
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
382
|
+
case "com.amazonaws.outposts#ServiceQuotaExceededException": return [3, 10];
|
|
383
|
+
case "ValidationException": return [3, 12];
|
|
384
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 12];
|
|
385
385
|
}
|
|
386
|
-
return [3
|
|
386
|
+
return [3, 14];
|
|
387
387
|
case 2:
|
|
388
388
|
_c = [{}];
|
|
389
|
-
return [4
|
|
389
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
390
390
|
case 3:
|
|
391
391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
392
|
-
return [3
|
|
392
|
+
return [3, 15];
|
|
393
393
|
case 4:
|
|
394
394
|
_d = [{}];
|
|
395
|
-
return [4
|
|
395
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
396
396
|
case 5:
|
|
397
397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
398
|
-
return [3
|
|
398
|
+
return [3, 15];
|
|
399
399
|
case 6:
|
|
400
400
|
_e = [{}];
|
|
401
|
-
return [4
|
|
401
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
402
402
|
case 7:
|
|
403
403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
404
|
-
return [3
|
|
404
|
+
return [3, 15];
|
|
405
405
|
case 8:
|
|
406
406
|
_f = [{}];
|
|
407
|
-
return [4
|
|
407
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
408
408
|
case 9:
|
|
409
409
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
410
|
-
return [3
|
|
410
|
+
return [3, 15];
|
|
411
411
|
case 10:
|
|
412
412
|
_g = [{}];
|
|
413
|
-
return [4
|
|
413
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
414
414
|
case 11:
|
|
415
415
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
416
|
-
return [3
|
|
416
|
+
return [3, 15];
|
|
417
417
|
case 12:
|
|
418
418
|
_h = [{}];
|
|
419
|
-
return [4
|
|
419
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
420
420
|
case 13:
|
|
421
421
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
422
|
-
return [3
|
|
422
|
+
return [3, 15];
|
|
423
423
|
case 14:
|
|
424
424
|
parsedBody = parsedOutput.body;
|
|
425
425
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -429,7 +429,7 @@ var deserializeAws_restJson1CreateOrderCommandError = function (output, context)
|
|
|
429
429
|
message = response.message || response.Message || errorCode;
|
|
430
430
|
response.message = message;
|
|
431
431
|
delete response.Message;
|
|
432
|
-
return [2
|
|
432
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
433
433
|
}
|
|
434
434
|
});
|
|
435
435
|
}); };
|
|
@@ -439,7 +439,7 @@ export var deserializeAws_restJson1CreateOutpostCommand = function (output, cont
|
|
|
439
439
|
switch (_c.label) {
|
|
440
440
|
case 0:
|
|
441
441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
442
|
-
return [2
|
|
442
|
+
return [2, deserializeAws_restJson1CreateOutpostCommandError(output, context)];
|
|
443
443
|
}
|
|
444
444
|
contents = {
|
|
445
445
|
$metadata: deserializeMetadata(output),
|
|
@@ -447,13 +447,13 @@ export var deserializeAws_restJson1CreateOutpostCommand = function (output, cont
|
|
|
447
447
|
};
|
|
448
448
|
_a = __expectNonNull;
|
|
449
449
|
_b = __expectObject;
|
|
450
|
-
return [4
|
|
450
|
+
return [4, parseBody(output.body, context)];
|
|
451
451
|
case 1:
|
|
452
452
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
453
453
|
if (data.Outpost !== undefined && data.Outpost !== null) {
|
|
454
454
|
contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
|
|
455
455
|
}
|
|
456
|
-
return [2
|
|
456
|
+
return [2, Promise.resolve(contents)];
|
|
457
457
|
}
|
|
458
458
|
});
|
|
459
459
|
}); };
|
|
@@ -465,63 +465,63 @@ var deserializeAws_restJson1CreateOutpostCommandError = function (output, contex
|
|
|
465
465
|
case 0:
|
|
466
466
|
_a = [__assign({}, output)];
|
|
467
467
|
_j = {};
|
|
468
|
-
return [4
|
|
468
|
+
return [4, parseBody(output.body, context)];
|
|
469
469
|
case 1:
|
|
470
470
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
471
471
|
errorCode = "UnknownError";
|
|
472
472
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
473
|
_b = errorCode;
|
|
474
474
|
switch (_b) {
|
|
475
|
-
case "AccessDeniedException": return [3
|
|
476
|
-
case "com.amazonaws.outposts#AccessDeniedException": return [3
|
|
477
|
-
case "ConflictException": return [3
|
|
478
|
-
case "com.amazonaws.outposts#ConflictException": return [3
|
|
479
|
-
case "InternalServerException": return [3
|
|
480
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
481
|
-
case "NotFoundException": return [3
|
|
482
|
-
case "com.amazonaws.outposts#NotFoundException": return [3
|
|
483
|
-
case "ServiceQuotaExceededException": return [3
|
|
484
|
-
case "com.amazonaws.outposts#ServiceQuotaExceededException": return [3
|
|
485
|
-
case "ValidationException": return [3
|
|
486
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
475
|
+
case "AccessDeniedException": return [3, 2];
|
|
476
|
+
case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
|
|
477
|
+
case "ConflictException": return [3, 4];
|
|
478
|
+
case "com.amazonaws.outposts#ConflictException": return [3, 4];
|
|
479
|
+
case "InternalServerException": return [3, 6];
|
|
480
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 6];
|
|
481
|
+
case "NotFoundException": return [3, 8];
|
|
482
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 8];
|
|
483
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
484
|
+
case "com.amazonaws.outposts#ServiceQuotaExceededException": return [3, 10];
|
|
485
|
+
case "ValidationException": return [3, 12];
|
|
486
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 12];
|
|
487
487
|
}
|
|
488
|
-
return [3
|
|
488
|
+
return [3, 14];
|
|
489
489
|
case 2:
|
|
490
490
|
_c = [{}];
|
|
491
|
-
return [4
|
|
491
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
492
492
|
case 3:
|
|
493
493
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
494
|
-
return [3
|
|
494
|
+
return [3, 15];
|
|
495
495
|
case 4:
|
|
496
496
|
_d = [{}];
|
|
497
|
-
return [4
|
|
497
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
498
498
|
case 5:
|
|
499
499
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
500
|
-
return [3
|
|
500
|
+
return [3, 15];
|
|
501
501
|
case 6:
|
|
502
502
|
_e = [{}];
|
|
503
|
-
return [4
|
|
503
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
504
504
|
case 7:
|
|
505
505
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
506
|
-
return [3
|
|
506
|
+
return [3, 15];
|
|
507
507
|
case 8:
|
|
508
508
|
_f = [{}];
|
|
509
|
-
return [4
|
|
509
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
510
510
|
case 9:
|
|
511
511
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
512
|
-
return [3
|
|
512
|
+
return [3, 15];
|
|
513
513
|
case 10:
|
|
514
514
|
_g = [{}];
|
|
515
|
-
return [4
|
|
515
|
+
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
516
516
|
case 11:
|
|
517
517
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
518
|
-
return [3
|
|
518
|
+
return [3, 15];
|
|
519
519
|
case 12:
|
|
520
520
|
_h = [{}];
|
|
521
|
-
return [4
|
|
521
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
522
522
|
case 13:
|
|
523
523
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
524
|
-
return [3
|
|
524
|
+
return [3, 15];
|
|
525
525
|
case 14:
|
|
526
526
|
parsedBody = parsedOutput.body;
|
|
527
527
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -531,7 +531,7 @@ var deserializeAws_restJson1CreateOutpostCommandError = function (output, contex
|
|
|
531
531
|
message = response.message || response.Message || errorCode;
|
|
532
532
|
response.message = message;
|
|
533
533
|
delete response.Message;
|
|
534
|
-
return [2
|
|
534
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
535
535
|
}
|
|
536
536
|
});
|
|
537
537
|
}); };
|
|
@@ -541,15 +541,15 @@ export var deserializeAws_restJson1DeleteOutpostCommand = function (output, cont
|
|
|
541
541
|
switch (_a.label) {
|
|
542
542
|
case 0:
|
|
543
543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
-
return [2
|
|
544
|
+
return [2, deserializeAws_restJson1DeleteOutpostCommandError(output, context)];
|
|
545
545
|
}
|
|
546
546
|
contents = {
|
|
547
547
|
$metadata: deserializeMetadata(output),
|
|
548
548
|
};
|
|
549
|
-
return [4
|
|
549
|
+
return [4, collectBody(output.body, context)];
|
|
550
550
|
case 1:
|
|
551
551
|
_a.sent();
|
|
552
|
-
return [2
|
|
552
|
+
return [2, Promise.resolve(contents)];
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
555
|
}); };
|
|
@@ -561,55 +561,55 @@ var deserializeAws_restJson1DeleteOutpostCommandError = function (output, contex
|
|
|
561
561
|
case 0:
|
|
562
562
|
_a = [__assign({}, output)];
|
|
563
563
|
_h = {};
|
|
564
|
-
return [4
|
|
564
|
+
return [4, parseBody(output.body, context)];
|
|
565
565
|
case 1:
|
|
566
566
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
567
567
|
errorCode = "UnknownError";
|
|
568
568
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
569
|
_b = errorCode;
|
|
570
570
|
switch (_b) {
|
|
571
|
-
case "AccessDeniedException": return [3
|
|
572
|
-
case "com.amazonaws.outposts#AccessDeniedException": return [3
|
|
573
|
-
case "ConflictException": return [3
|
|
574
|
-
case "com.amazonaws.outposts#ConflictException": return [3
|
|
575
|
-
case "InternalServerException": return [3
|
|
576
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
577
|
-
case "NotFoundException": return [3
|
|
578
|
-
case "com.amazonaws.outposts#NotFoundException": return [3
|
|
579
|
-
case "ValidationException": return [3
|
|
580
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
571
|
+
case "AccessDeniedException": return [3, 2];
|
|
572
|
+
case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
|
|
573
|
+
case "ConflictException": return [3, 4];
|
|
574
|
+
case "com.amazonaws.outposts#ConflictException": return [3, 4];
|
|
575
|
+
case "InternalServerException": return [3, 6];
|
|
576
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 6];
|
|
577
|
+
case "NotFoundException": return [3, 8];
|
|
578
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 8];
|
|
579
|
+
case "ValidationException": return [3, 10];
|
|
580
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 10];
|
|
581
581
|
}
|
|
582
|
-
return [3
|
|
582
|
+
return [3, 12];
|
|
583
583
|
case 2:
|
|
584
584
|
_c = [{}];
|
|
585
|
-
return [4
|
|
585
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
586
586
|
case 3:
|
|
587
587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
588
|
-
return [3
|
|
588
|
+
return [3, 13];
|
|
589
589
|
case 4:
|
|
590
590
|
_d = [{}];
|
|
591
|
-
return [4
|
|
591
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
592
592
|
case 5:
|
|
593
593
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
594
|
-
return [3
|
|
594
|
+
return [3, 13];
|
|
595
595
|
case 6:
|
|
596
596
|
_e = [{}];
|
|
597
|
-
return [4
|
|
597
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
598
598
|
case 7:
|
|
599
599
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
600
|
-
return [3
|
|
600
|
+
return [3, 13];
|
|
601
601
|
case 8:
|
|
602
602
|
_f = [{}];
|
|
603
|
-
return [4
|
|
603
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
604
604
|
case 9:
|
|
605
605
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
606
|
-
return [3
|
|
606
|
+
return [3, 13];
|
|
607
607
|
case 10:
|
|
608
608
|
_g = [{}];
|
|
609
|
-
return [4
|
|
609
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
610
610
|
case 11:
|
|
611
611
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
612
|
-
return [3
|
|
612
|
+
return [3, 13];
|
|
613
613
|
case 12:
|
|
614
614
|
parsedBody = parsedOutput.body;
|
|
615
615
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -619,7 +619,7 @@ var deserializeAws_restJson1DeleteOutpostCommandError = function (output, contex
|
|
|
619
619
|
message = response.message || response.Message || errorCode;
|
|
620
620
|
response.message = message;
|
|
621
621
|
delete response.Message;
|
|
622
|
-
return [2
|
|
622
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
623
623
|
}
|
|
624
624
|
});
|
|
625
625
|
}); };
|
|
@@ -629,15 +629,15 @@ export var deserializeAws_restJson1DeleteSiteCommand = function (output, context
|
|
|
629
629
|
switch (_a.label) {
|
|
630
630
|
case 0:
|
|
631
631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
632
|
-
return [2
|
|
632
|
+
return [2, deserializeAws_restJson1DeleteSiteCommandError(output, context)];
|
|
633
633
|
}
|
|
634
634
|
contents = {
|
|
635
635
|
$metadata: deserializeMetadata(output),
|
|
636
636
|
};
|
|
637
|
-
return [4
|
|
637
|
+
return [4, collectBody(output.body, context)];
|
|
638
638
|
case 1:
|
|
639
639
|
_a.sent();
|
|
640
|
-
return [2
|
|
640
|
+
return [2, Promise.resolve(contents)];
|
|
641
641
|
}
|
|
642
642
|
});
|
|
643
643
|
}); };
|
|
@@ -649,55 +649,55 @@ var deserializeAws_restJson1DeleteSiteCommandError = function (output, context)
|
|
|
649
649
|
case 0:
|
|
650
650
|
_a = [__assign({}, output)];
|
|
651
651
|
_h = {};
|
|
652
|
-
return [4
|
|
652
|
+
return [4, parseBody(output.body, context)];
|
|
653
653
|
case 1:
|
|
654
654
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
655
655
|
errorCode = "UnknownError";
|
|
656
656
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
657
|
_b = errorCode;
|
|
658
658
|
switch (_b) {
|
|
659
|
-
case "AccessDeniedException": return [3
|
|
660
|
-
case "com.amazonaws.outposts#AccessDeniedException": return [3
|
|
661
|
-
case "ConflictException": return [3
|
|
662
|
-
case "com.amazonaws.outposts#ConflictException": return [3
|
|
663
|
-
case "InternalServerException": return [3
|
|
664
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
665
|
-
case "NotFoundException": return [3
|
|
666
|
-
case "com.amazonaws.outposts#NotFoundException": return [3
|
|
667
|
-
case "ValidationException": return [3
|
|
668
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
659
|
+
case "AccessDeniedException": return [3, 2];
|
|
660
|
+
case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
|
|
661
|
+
case "ConflictException": return [3, 4];
|
|
662
|
+
case "com.amazonaws.outposts#ConflictException": return [3, 4];
|
|
663
|
+
case "InternalServerException": return [3, 6];
|
|
664
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 6];
|
|
665
|
+
case "NotFoundException": return [3, 8];
|
|
666
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 8];
|
|
667
|
+
case "ValidationException": return [3, 10];
|
|
668
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 10];
|
|
669
669
|
}
|
|
670
|
-
return [3
|
|
670
|
+
return [3, 12];
|
|
671
671
|
case 2:
|
|
672
672
|
_c = [{}];
|
|
673
|
-
return [4
|
|
673
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
674
674
|
case 3:
|
|
675
675
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
676
|
-
return [3
|
|
676
|
+
return [3, 13];
|
|
677
677
|
case 4:
|
|
678
678
|
_d = [{}];
|
|
679
|
-
return [4
|
|
679
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
680
680
|
case 5:
|
|
681
681
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
682
|
-
return [3
|
|
682
|
+
return [3, 13];
|
|
683
683
|
case 6:
|
|
684
684
|
_e = [{}];
|
|
685
|
-
return [4
|
|
685
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
686
686
|
case 7:
|
|
687
687
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
688
|
-
return [3
|
|
688
|
+
return [3, 13];
|
|
689
689
|
case 8:
|
|
690
690
|
_f = [{}];
|
|
691
|
-
return [4
|
|
691
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
692
692
|
case 9:
|
|
693
693
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
694
|
-
return [3
|
|
694
|
+
return [3, 13];
|
|
695
695
|
case 10:
|
|
696
696
|
_g = [{}];
|
|
697
|
-
return [4
|
|
697
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
698
698
|
case 11:
|
|
699
699
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
700
|
-
return [3
|
|
700
|
+
return [3, 13];
|
|
701
701
|
case 12:
|
|
702
702
|
parsedBody = parsedOutput.body;
|
|
703
703
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -707,7 +707,7 @@ var deserializeAws_restJson1DeleteSiteCommandError = function (output, context)
|
|
|
707
707
|
message = response.message || response.Message || errorCode;
|
|
708
708
|
response.message = message;
|
|
709
709
|
delete response.Message;
|
|
710
|
-
return [2
|
|
710
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
711
711
|
}
|
|
712
712
|
});
|
|
713
713
|
}); };
|
|
@@ -717,7 +717,7 @@ export var deserializeAws_restJson1GetOutpostCommand = function (output, context
|
|
|
717
717
|
switch (_c.label) {
|
|
718
718
|
case 0:
|
|
719
719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
720
|
-
return [2
|
|
720
|
+
return [2, deserializeAws_restJson1GetOutpostCommandError(output, context)];
|
|
721
721
|
}
|
|
722
722
|
contents = {
|
|
723
723
|
$metadata: deserializeMetadata(output),
|
|
@@ -725,13 +725,13 @@ export var deserializeAws_restJson1GetOutpostCommand = function (output, context
|
|
|
725
725
|
};
|
|
726
726
|
_a = __expectNonNull;
|
|
727
727
|
_b = __expectObject;
|
|
728
|
-
return [4
|
|
728
|
+
return [4, parseBody(output.body, context)];
|
|
729
729
|
case 1:
|
|
730
730
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
731
731
|
if (data.Outpost !== undefined && data.Outpost !== null) {
|
|
732
732
|
contents.Outpost = deserializeAws_restJson1Outpost(data.Outpost, context);
|
|
733
733
|
}
|
|
734
|
-
return [2
|
|
734
|
+
return [2, Promise.resolve(contents)];
|
|
735
735
|
}
|
|
736
736
|
});
|
|
737
737
|
}); };
|
|
@@ -743,47 +743,47 @@ var deserializeAws_restJson1GetOutpostCommandError = function (output, context)
|
|
|
743
743
|
case 0:
|
|
744
744
|
_a = [__assign({}, output)];
|
|
745
745
|
_g = {};
|
|
746
|
-
return [4
|
|
746
|
+
return [4, parseBody(output.body, context)];
|
|
747
747
|
case 1:
|
|
748
748
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
749
749
|
errorCode = "UnknownError";
|
|
750
750
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
751
|
_b = errorCode;
|
|
752
752
|
switch (_b) {
|
|
753
|
-
case "AccessDeniedException": return [3
|
|
754
|
-
case "com.amazonaws.outposts#AccessDeniedException": return [3
|
|
755
|
-
case "InternalServerException": return [3
|
|
756
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
757
|
-
case "NotFoundException": return [3
|
|
758
|
-
case "com.amazonaws.outposts#NotFoundException": return [3
|
|
759
|
-
case "ValidationException": return [3
|
|
760
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
753
|
+
case "AccessDeniedException": return [3, 2];
|
|
754
|
+
case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
|
|
755
|
+
case "InternalServerException": return [3, 4];
|
|
756
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 4];
|
|
757
|
+
case "NotFoundException": return [3, 6];
|
|
758
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 6];
|
|
759
|
+
case "ValidationException": return [3, 8];
|
|
760
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 8];
|
|
761
761
|
}
|
|
762
|
-
return [3
|
|
762
|
+
return [3, 10];
|
|
763
763
|
case 2:
|
|
764
764
|
_c = [{}];
|
|
765
|
-
return [4
|
|
765
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
766
766
|
case 3:
|
|
767
767
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
768
|
-
return [3
|
|
768
|
+
return [3, 11];
|
|
769
769
|
case 4:
|
|
770
770
|
_d = [{}];
|
|
771
|
-
return [4
|
|
771
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
772
772
|
case 5:
|
|
773
773
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
774
|
-
return [3
|
|
774
|
+
return [3, 11];
|
|
775
775
|
case 6:
|
|
776
776
|
_e = [{}];
|
|
777
|
-
return [4
|
|
777
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
778
778
|
case 7:
|
|
779
779
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
780
|
-
return [3
|
|
780
|
+
return [3, 11];
|
|
781
781
|
case 8:
|
|
782
782
|
_f = [{}];
|
|
783
|
-
return [4
|
|
783
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
784
784
|
case 9:
|
|
785
785
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
786
|
-
return [3
|
|
786
|
+
return [3, 11];
|
|
787
787
|
case 10:
|
|
788
788
|
parsedBody = parsedOutput.body;
|
|
789
789
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -793,7 +793,7 @@ var deserializeAws_restJson1GetOutpostCommandError = function (output, context)
|
|
|
793
793
|
message = response.message || response.Message || errorCode;
|
|
794
794
|
response.message = message;
|
|
795
795
|
delete response.Message;
|
|
796
|
-
return [2
|
|
796
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
797
797
|
}
|
|
798
798
|
});
|
|
799
799
|
}); };
|
|
@@ -803,7 +803,7 @@ export var deserializeAws_restJson1GetOutpostInstanceTypesCommand = function (ou
|
|
|
803
803
|
switch (_c.label) {
|
|
804
804
|
case 0:
|
|
805
805
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
-
return [2
|
|
806
|
+
return [2, deserializeAws_restJson1GetOutpostInstanceTypesCommandError(output, context)];
|
|
807
807
|
}
|
|
808
808
|
contents = {
|
|
809
809
|
$metadata: deserializeMetadata(output),
|
|
@@ -814,7 +814,7 @@ export var deserializeAws_restJson1GetOutpostInstanceTypesCommand = function (ou
|
|
|
814
814
|
};
|
|
815
815
|
_a = __expectNonNull;
|
|
816
816
|
_b = __expectObject;
|
|
817
|
-
return [4
|
|
817
|
+
return [4, parseBody(output.body, context)];
|
|
818
818
|
case 1:
|
|
819
819
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
820
820
|
if (data.InstanceTypes !== undefined && data.InstanceTypes !== null) {
|
|
@@ -829,7 +829,7 @@ export var deserializeAws_restJson1GetOutpostInstanceTypesCommand = function (ou
|
|
|
829
829
|
if (data.OutpostId !== undefined && data.OutpostId !== null) {
|
|
830
830
|
contents.OutpostId = __expectString(data.OutpostId);
|
|
831
831
|
}
|
|
832
|
-
return [2
|
|
832
|
+
return [2, Promise.resolve(contents)];
|
|
833
833
|
}
|
|
834
834
|
});
|
|
835
835
|
}); };
|
|
@@ -841,47 +841,47 @@ var deserializeAws_restJson1GetOutpostInstanceTypesCommandError = function (outp
|
|
|
841
841
|
case 0:
|
|
842
842
|
_a = [__assign({}, output)];
|
|
843
843
|
_g = {};
|
|
844
|
-
return [4
|
|
844
|
+
return [4, parseBody(output.body, context)];
|
|
845
845
|
case 1:
|
|
846
846
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
847
847
|
errorCode = "UnknownError";
|
|
848
848
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
849
849
|
_b = errorCode;
|
|
850
850
|
switch (_b) {
|
|
851
|
-
case "AccessDeniedException": return [3
|
|
852
|
-
case "com.amazonaws.outposts#AccessDeniedException": return [3
|
|
853
|
-
case "InternalServerException": return [3
|
|
854
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
855
|
-
case "NotFoundException": return [3
|
|
856
|
-
case "com.amazonaws.outposts#NotFoundException": return [3
|
|
857
|
-
case "ValidationException": return [3
|
|
858
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
851
|
+
case "AccessDeniedException": return [3, 2];
|
|
852
|
+
case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
|
|
853
|
+
case "InternalServerException": return [3, 4];
|
|
854
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 4];
|
|
855
|
+
case "NotFoundException": return [3, 6];
|
|
856
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 6];
|
|
857
|
+
case "ValidationException": return [3, 8];
|
|
858
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 8];
|
|
859
859
|
}
|
|
860
|
-
return [3
|
|
860
|
+
return [3, 10];
|
|
861
861
|
case 2:
|
|
862
862
|
_c = [{}];
|
|
863
|
-
return [4
|
|
863
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
864
864
|
case 3:
|
|
865
865
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
866
|
-
return [3
|
|
866
|
+
return [3, 11];
|
|
867
867
|
case 4:
|
|
868
868
|
_d = [{}];
|
|
869
|
-
return [4
|
|
869
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
870
870
|
case 5:
|
|
871
871
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
872
|
-
return [3
|
|
872
|
+
return [3, 11];
|
|
873
873
|
case 6:
|
|
874
874
|
_e = [{}];
|
|
875
|
-
return [4
|
|
875
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
876
876
|
case 7:
|
|
877
877
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
878
|
-
return [3
|
|
878
|
+
return [3, 11];
|
|
879
879
|
case 8:
|
|
880
880
|
_f = [{}];
|
|
881
|
-
return [4
|
|
881
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
882
882
|
case 9:
|
|
883
883
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
884
|
-
return [3
|
|
884
|
+
return [3, 11];
|
|
885
885
|
case 10:
|
|
886
886
|
parsedBody = parsedOutput.body;
|
|
887
887
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -891,7 +891,7 @@ var deserializeAws_restJson1GetOutpostInstanceTypesCommandError = function (outp
|
|
|
891
891
|
message = response.message || response.Message || errorCode;
|
|
892
892
|
response.message = message;
|
|
893
893
|
delete response.Message;
|
|
894
|
-
return [2
|
|
894
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
895
895
|
}
|
|
896
896
|
});
|
|
897
897
|
}); };
|
|
@@ -901,7 +901,7 @@ export var deserializeAws_restJson1ListOutpostsCommand = function (output, conte
|
|
|
901
901
|
switch (_c.label) {
|
|
902
902
|
case 0:
|
|
903
903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
904
|
-
return [2
|
|
904
|
+
return [2, deserializeAws_restJson1ListOutpostsCommandError(output, context)];
|
|
905
905
|
}
|
|
906
906
|
contents = {
|
|
907
907
|
$metadata: deserializeMetadata(output),
|
|
@@ -910,7 +910,7 @@ export var deserializeAws_restJson1ListOutpostsCommand = function (output, conte
|
|
|
910
910
|
};
|
|
911
911
|
_a = __expectNonNull;
|
|
912
912
|
_b = __expectObject;
|
|
913
|
-
return [4
|
|
913
|
+
return [4, parseBody(output.body, context)];
|
|
914
914
|
case 1:
|
|
915
915
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
916
916
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -919,7 +919,7 @@ export var deserializeAws_restJson1ListOutpostsCommand = function (output, conte
|
|
|
919
919
|
if (data.Outposts !== undefined && data.Outposts !== null) {
|
|
920
920
|
contents.Outposts = deserializeAws_restJson1outpostListDefinition(data.Outposts, context);
|
|
921
921
|
}
|
|
922
|
-
return [2
|
|
922
|
+
return [2, Promise.resolve(contents)];
|
|
923
923
|
}
|
|
924
924
|
});
|
|
925
925
|
}); };
|
|
@@ -931,39 +931,39 @@ var deserializeAws_restJson1ListOutpostsCommandError = function (output, context
|
|
|
931
931
|
case 0:
|
|
932
932
|
_a = [__assign({}, output)];
|
|
933
933
|
_f = {};
|
|
934
|
-
return [4
|
|
934
|
+
return [4, parseBody(output.body, context)];
|
|
935
935
|
case 1:
|
|
936
936
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
937
937
|
errorCode = "UnknownError";
|
|
938
938
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
939
|
_b = errorCode;
|
|
940
940
|
switch (_b) {
|
|
941
|
-
case "AccessDeniedException": return [3
|
|
942
|
-
case "com.amazonaws.outposts#AccessDeniedException": return [3
|
|
943
|
-
case "InternalServerException": return [3
|
|
944
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
945
|
-
case "ValidationException": return [3
|
|
946
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
941
|
+
case "AccessDeniedException": return [3, 2];
|
|
942
|
+
case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
|
|
943
|
+
case "InternalServerException": return [3, 4];
|
|
944
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 4];
|
|
945
|
+
case "ValidationException": return [3, 6];
|
|
946
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 6];
|
|
947
947
|
}
|
|
948
|
-
return [3
|
|
948
|
+
return [3, 8];
|
|
949
949
|
case 2:
|
|
950
950
|
_c = [{}];
|
|
951
|
-
return [4
|
|
951
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
952
952
|
case 3:
|
|
953
953
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
954
|
-
return [3
|
|
954
|
+
return [3, 9];
|
|
955
955
|
case 4:
|
|
956
956
|
_d = [{}];
|
|
957
|
-
return [4
|
|
957
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
958
958
|
case 5:
|
|
959
959
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
960
|
-
return [3
|
|
960
|
+
return [3, 9];
|
|
961
961
|
case 6:
|
|
962
962
|
_e = [{}];
|
|
963
|
-
return [4
|
|
963
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
964
964
|
case 7:
|
|
965
965
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
966
|
-
return [3
|
|
966
|
+
return [3, 9];
|
|
967
967
|
case 8:
|
|
968
968
|
parsedBody = parsedOutput.body;
|
|
969
969
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -973,7 +973,7 @@ var deserializeAws_restJson1ListOutpostsCommandError = function (output, context
|
|
|
973
973
|
message = response.message || response.Message || errorCode;
|
|
974
974
|
response.message = message;
|
|
975
975
|
delete response.Message;
|
|
976
|
-
return [2
|
|
976
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
977
977
|
}
|
|
978
978
|
});
|
|
979
979
|
}); };
|
|
@@ -983,7 +983,7 @@ export var deserializeAws_restJson1ListSitesCommand = function (output, context)
|
|
|
983
983
|
switch (_c.label) {
|
|
984
984
|
case 0:
|
|
985
985
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
986
|
-
return [2
|
|
986
|
+
return [2, deserializeAws_restJson1ListSitesCommandError(output, context)];
|
|
987
987
|
}
|
|
988
988
|
contents = {
|
|
989
989
|
$metadata: deserializeMetadata(output),
|
|
@@ -992,7 +992,7 @@ export var deserializeAws_restJson1ListSitesCommand = function (output, context)
|
|
|
992
992
|
};
|
|
993
993
|
_a = __expectNonNull;
|
|
994
994
|
_b = __expectObject;
|
|
995
|
-
return [4
|
|
995
|
+
return [4, parseBody(output.body, context)];
|
|
996
996
|
case 1:
|
|
997
997
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
998
998
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
@@ -1001,7 +1001,7 @@ export var deserializeAws_restJson1ListSitesCommand = function (output, context)
|
|
|
1001
1001
|
if (data.Sites !== undefined && data.Sites !== null) {
|
|
1002
1002
|
contents.Sites = deserializeAws_restJson1siteListDefinition(data.Sites, context);
|
|
1003
1003
|
}
|
|
1004
|
-
return [2
|
|
1004
|
+
return [2, Promise.resolve(contents)];
|
|
1005
1005
|
}
|
|
1006
1006
|
});
|
|
1007
1007
|
}); };
|
|
@@ -1013,39 +1013,39 @@ var deserializeAws_restJson1ListSitesCommandError = function (output, context) {
|
|
|
1013
1013
|
case 0:
|
|
1014
1014
|
_a = [__assign({}, output)];
|
|
1015
1015
|
_f = {};
|
|
1016
|
-
return [4
|
|
1016
|
+
return [4, parseBody(output.body, context)];
|
|
1017
1017
|
case 1:
|
|
1018
1018
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1019
1019
|
errorCode = "UnknownError";
|
|
1020
1020
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
1021
|
_b = errorCode;
|
|
1022
1022
|
switch (_b) {
|
|
1023
|
-
case "AccessDeniedException": return [3
|
|
1024
|
-
case "com.amazonaws.outposts#AccessDeniedException": return [3
|
|
1025
|
-
case "InternalServerException": return [3
|
|
1026
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
1027
|
-
case "ValidationException": return [3
|
|
1028
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
1023
|
+
case "AccessDeniedException": return [3, 2];
|
|
1024
|
+
case "com.amazonaws.outposts#AccessDeniedException": return [3, 2];
|
|
1025
|
+
case "InternalServerException": return [3, 4];
|
|
1026
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 4];
|
|
1027
|
+
case "ValidationException": return [3, 6];
|
|
1028
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 6];
|
|
1029
1029
|
}
|
|
1030
|
-
return [3
|
|
1030
|
+
return [3, 8];
|
|
1031
1031
|
case 2:
|
|
1032
1032
|
_c = [{}];
|
|
1033
|
-
return [4
|
|
1033
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1034
1034
|
case 3:
|
|
1035
1035
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1036
|
-
return [3
|
|
1036
|
+
return [3, 9];
|
|
1037
1037
|
case 4:
|
|
1038
1038
|
_d = [{}];
|
|
1039
|
-
return [4
|
|
1039
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1040
1040
|
case 5:
|
|
1041
1041
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1042
|
-
return [3
|
|
1042
|
+
return [3, 9];
|
|
1043
1043
|
case 6:
|
|
1044
1044
|
_e = [{}];
|
|
1045
|
-
return [4
|
|
1045
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1046
1046
|
case 7:
|
|
1047
1047
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1048
|
-
return [3
|
|
1048
|
+
return [3, 9];
|
|
1049
1049
|
case 8:
|
|
1050
1050
|
parsedBody = parsedOutput.body;
|
|
1051
1051
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1055,7 +1055,7 @@ var deserializeAws_restJson1ListSitesCommandError = function (output, context) {
|
|
|
1055
1055
|
message = response.message || response.Message || errorCode;
|
|
1056
1056
|
response.message = message;
|
|
1057
1057
|
delete response.Message;
|
|
1058
|
-
return [2
|
|
1058
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1059
1059
|
}
|
|
1060
1060
|
});
|
|
1061
1061
|
}); };
|
|
@@ -1065,7 +1065,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1065
1065
|
switch (_c.label) {
|
|
1066
1066
|
case 0:
|
|
1067
1067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1068
|
-
return [2
|
|
1068
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1069
1069
|
}
|
|
1070
1070
|
contents = {
|
|
1071
1071
|
$metadata: deserializeMetadata(output),
|
|
@@ -1073,13 +1073,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1073
1073
|
};
|
|
1074
1074
|
_a = __expectNonNull;
|
|
1075
1075
|
_b = __expectObject;
|
|
1076
|
-
return [4
|
|
1076
|
+
return [4, parseBody(output.body, context)];
|
|
1077
1077
|
case 1:
|
|
1078
1078
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1079
1079
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
1080
1080
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1081
1081
|
}
|
|
1082
|
-
return [2
|
|
1082
|
+
return [2, Promise.resolve(contents)];
|
|
1083
1083
|
}
|
|
1084
1084
|
});
|
|
1085
1085
|
}); };
|
|
@@ -1091,39 +1091,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1091
1091
|
case 0:
|
|
1092
1092
|
_a = [__assign({}, output)];
|
|
1093
1093
|
_f = {};
|
|
1094
|
-
return [4
|
|
1094
|
+
return [4, parseBody(output.body, context)];
|
|
1095
1095
|
case 1:
|
|
1096
1096
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1097
1097
|
errorCode = "UnknownError";
|
|
1098
1098
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1099
1099
|
_b = errorCode;
|
|
1100
1100
|
switch (_b) {
|
|
1101
|
-
case "InternalServerException": return [3
|
|
1102
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
1103
|
-
case "NotFoundException": return [3
|
|
1104
|
-
case "com.amazonaws.outposts#NotFoundException": return [3
|
|
1105
|
-
case "ValidationException": return [3
|
|
1106
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
1101
|
+
case "InternalServerException": return [3, 2];
|
|
1102
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 2];
|
|
1103
|
+
case "NotFoundException": return [3, 4];
|
|
1104
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 4];
|
|
1105
|
+
case "ValidationException": return [3, 6];
|
|
1106
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 6];
|
|
1107
1107
|
}
|
|
1108
|
-
return [3
|
|
1108
|
+
return [3, 8];
|
|
1109
1109
|
case 2:
|
|
1110
1110
|
_c = [{}];
|
|
1111
|
-
return [4
|
|
1111
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1112
1112
|
case 3:
|
|
1113
1113
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1114
|
-
return [3
|
|
1114
|
+
return [3, 9];
|
|
1115
1115
|
case 4:
|
|
1116
1116
|
_d = [{}];
|
|
1117
|
-
return [4
|
|
1117
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1118
1118
|
case 5:
|
|
1119
1119
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1120
|
-
return [3
|
|
1120
|
+
return [3, 9];
|
|
1121
1121
|
case 6:
|
|
1122
1122
|
_e = [{}];
|
|
1123
|
-
return [4
|
|
1123
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1124
1124
|
case 7:
|
|
1125
1125
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1126
|
-
return [3
|
|
1126
|
+
return [3, 9];
|
|
1127
1127
|
case 8:
|
|
1128
1128
|
parsedBody = parsedOutput.body;
|
|
1129
1129
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1133,7 +1133,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1133
1133
|
message = response.message || response.Message || errorCode;
|
|
1134
1134
|
response.message = message;
|
|
1135
1135
|
delete response.Message;
|
|
1136
|
-
return [2
|
|
1136
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1137
1137
|
}
|
|
1138
1138
|
});
|
|
1139
1139
|
}); };
|
|
@@ -1143,15 +1143,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1143
1143
|
switch (_a.label) {
|
|
1144
1144
|
case 0:
|
|
1145
1145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1146
|
-
return [2
|
|
1146
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1147
1147
|
}
|
|
1148
1148
|
contents = {
|
|
1149
1149
|
$metadata: deserializeMetadata(output),
|
|
1150
1150
|
};
|
|
1151
|
-
return [4
|
|
1151
|
+
return [4, collectBody(output.body, context)];
|
|
1152
1152
|
case 1:
|
|
1153
1153
|
_a.sent();
|
|
1154
|
-
return [2
|
|
1154
|
+
return [2, Promise.resolve(contents)];
|
|
1155
1155
|
}
|
|
1156
1156
|
});
|
|
1157
1157
|
}); };
|
|
@@ -1163,39 +1163,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1163
1163
|
case 0:
|
|
1164
1164
|
_a = [__assign({}, output)];
|
|
1165
1165
|
_f = {};
|
|
1166
|
-
return [4
|
|
1166
|
+
return [4, parseBody(output.body, context)];
|
|
1167
1167
|
case 1:
|
|
1168
1168
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1169
1169
|
errorCode = "UnknownError";
|
|
1170
1170
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1171
1171
|
_b = errorCode;
|
|
1172
1172
|
switch (_b) {
|
|
1173
|
-
case "InternalServerException": return [3
|
|
1174
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
1175
|
-
case "NotFoundException": return [3
|
|
1176
|
-
case "com.amazonaws.outposts#NotFoundException": return [3
|
|
1177
|
-
case "ValidationException": return [3
|
|
1178
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
1173
|
+
case "InternalServerException": return [3, 2];
|
|
1174
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 2];
|
|
1175
|
+
case "NotFoundException": return [3, 4];
|
|
1176
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 4];
|
|
1177
|
+
case "ValidationException": return [3, 6];
|
|
1178
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 6];
|
|
1179
1179
|
}
|
|
1180
|
-
return [3
|
|
1180
|
+
return [3, 8];
|
|
1181
1181
|
case 2:
|
|
1182
1182
|
_c = [{}];
|
|
1183
|
-
return [4
|
|
1183
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1184
1184
|
case 3:
|
|
1185
1185
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1186
|
-
return [3
|
|
1186
|
+
return [3, 9];
|
|
1187
1187
|
case 4:
|
|
1188
1188
|
_d = [{}];
|
|
1189
|
-
return [4
|
|
1189
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1190
1190
|
case 5:
|
|
1191
1191
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1192
|
-
return [3
|
|
1192
|
+
return [3, 9];
|
|
1193
1193
|
case 6:
|
|
1194
1194
|
_e = [{}];
|
|
1195
|
-
return [4
|
|
1195
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1196
1196
|
case 7:
|
|
1197
1197
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1198
|
-
return [3
|
|
1198
|
+
return [3, 9];
|
|
1199
1199
|
case 8:
|
|
1200
1200
|
parsedBody = parsedOutput.body;
|
|
1201
1201
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1205,7 +1205,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1205
1205
|
message = response.message || response.Message || errorCode;
|
|
1206
1206
|
response.message = message;
|
|
1207
1207
|
delete response.Message;
|
|
1208
|
-
return [2
|
|
1208
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1209
1209
|
}
|
|
1210
1210
|
});
|
|
1211
1211
|
}); };
|
|
@@ -1215,15 +1215,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1215
1215
|
switch (_a.label) {
|
|
1216
1216
|
case 0:
|
|
1217
1217
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1218
|
-
return [2
|
|
1218
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1219
1219
|
}
|
|
1220
1220
|
contents = {
|
|
1221
1221
|
$metadata: deserializeMetadata(output),
|
|
1222
1222
|
};
|
|
1223
|
-
return [4
|
|
1223
|
+
return [4, collectBody(output.body, context)];
|
|
1224
1224
|
case 1:
|
|
1225
1225
|
_a.sent();
|
|
1226
|
-
return [2
|
|
1226
|
+
return [2, Promise.resolve(contents)];
|
|
1227
1227
|
}
|
|
1228
1228
|
});
|
|
1229
1229
|
}); };
|
|
@@ -1235,39 +1235,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1235
1235
|
case 0:
|
|
1236
1236
|
_a = [__assign({}, output)];
|
|
1237
1237
|
_f = {};
|
|
1238
|
-
return [4
|
|
1238
|
+
return [4, parseBody(output.body, context)];
|
|
1239
1239
|
case 1:
|
|
1240
1240
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1241
1241
|
errorCode = "UnknownError";
|
|
1242
1242
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1243
1243
|
_b = errorCode;
|
|
1244
1244
|
switch (_b) {
|
|
1245
|
-
case "InternalServerException": return [3
|
|
1246
|
-
case "com.amazonaws.outposts#InternalServerException": return [3
|
|
1247
|
-
case "NotFoundException": return [3
|
|
1248
|
-
case "com.amazonaws.outposts#NotFoundException": return [3
|
|
1249
|
-
case "ValidationException": return [3
|
|
1250
|
-
case "com.amazonaws.outposts#ValidationException": return [3
|
|
1245
|
+
case "InternalServerException": return [3, 2];
|
|
1246
|
+
case "com.amazonaws.outposts#InternalServerException": return [3, 2];
|
|
1247
|
+
case "NotFoundException": return [3, 4];
|
|
1248
|
+
case "com.amazonaws.outposts#NotFoundException": return [3, 4];
|
|
1249
|
+
case "ValidationException": return [3, 6];
|
|
1250
|
+
case "com.amazonaws.outposts#ValidationException": return [3, 6];
|
|
1251
1251
|
}
|
|
1252
|
-
return [3
|
|
1252
|
+
return [3, 8];
|
|
1253
1253
|
case 2:
|
|
1254
1254
|
_c = [{}];
|
|
1255
|
-
return [4
|
|
1255
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1256
1256
|
case 3:
|
|
1257
1257
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1258
|
-
return [3
|
|
1258
|
+
return [3, 9];
|
|
1259
1259
|
case 4:
|
|
1260
1260
|
_d = [{}];
|
|
1261
|
-
return [4
|
|
1261
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1262
1262
|
case 5:
|
|
1263
1263
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1264
|
-
return [3
|
|
1264
|
+
return [3, 9];
|
|
1265
1265
|
case 6:
|
|
1266
1266
|
_e = [{}];
|
|
1267
|
-
return [4
|
|
1267
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1268
1268
|
case 7:
|
|
1269
1269
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1270
|
-
return [3
|
|
1270
|
+
return [3, 9];
|
|
1271
1271
|
case 8:
|
|
1272
1272
|
parsedBody = parsedOutput.body;
|
|
1273
1273
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1277,7 +1277,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1277
1277
|
message = response.message || response.Message || errorCode;
|
|
1278
1278
|
response.message = message;
|
|
1279
1279
|
delete response.Message;
|
|
1280
|
-
return [2
|
|
1280
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1281
1281
|
}
|
|
1282
1282
|
});
|
|
1283
1283
|
}); };
|
|
@@ -1294,7 +1294,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
1294
1294
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1295
1295
|
contents.Message = __expectString(data.Message);
|
|
1296
1296
|
}
|
|
1297
|
-
return [2
|
|
1297
|
+
return [2, contents];
|
|
1298
1298
|
});
|
|
1299
1299
|
}); };
|
|
1300
1300
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1318,7 +1318,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1318
1318
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
1319
1319
|
contents.ResourceType = __expectString(data.ResourceType);
|
|
1320
1320
|
}
|
|
1321
|
-
return [2
|
|
1321
|
+
return [2, contents];
|
|
1322
1322
|
});
|
|
1323
1323
|
}); };
|
|
1324
1324
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1334,7 +1334,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
1334
1334
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1335
1335
|
contents.Message = __expectString(data.Message);
|
|
1336
1336
|
}
|
|
1337
|
-
return [2
|
|
1337
|
+
return [2, contents];
|
|
1338
1338
|
});
|
|
1339
1339
|
}); };
|
|
1340
1340
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1350,7 +1350,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
1350
1350
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1351
1351
|
contents.Message = __expectString(data.Message);
|
|
1352
1352
|
}
|
|
1353
|
-
return [2
|
|
1353
|
+
return [2, contents];
|
|
1354
1354
|
});
|
|
1355
1355
|
}); };
|
|
1356
1356
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1366,7 +1366,7 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1366
1366
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1367
1367
|
contents.Message = __expectString(data.Message);
|
|
1368
1368
|
}
|
|
1369
|
-
return [2
|
|
1369
|
+
return [2, contents];
|
|
1370
1370
|
});
|
|
1371
1371
|
}); };
|
|
1372
1372
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1382,7 +1382,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1382
1382
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1383
1383
|
contents.Message = __expectString(data.Message);
|
|
1384
1384
|
}
|
|
1385
|
-
return [2
|
|
1385
|
+
return [2, contents];
|
|
1386
1386
|
});
|
|
1387
1387
|
}); };
|
|
1388
1388
|
var serializeAws_restJson1LineItemRequest = function (input, context) {
|
|
@@ -1526,7 +1526,6 @@ var deserializeMetadata = function (output) {
|
|
|
1526
1526
|
cfId: output.headers["x-amz-cf-id"],
|
|
1527
1527
|
});
|
|
1528
1528
|
};
|
|
1529
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1530
1529
|
var collectBody = function (streamBody, context) {
|
|
1531
1530
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1532
1531
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -1534,7 +1533,6 @@ var collectBody = function (streamBody, context) {
|
|
|
1534
1533
|
}
|
|
1535
1534
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1536
1535
|
};
|
|
1537
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1538
1536
|
var collectBodyString = function (streamBody, context) {
|
|
1539
1537
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1540
1538
|
};
|
|
@@ -1553,9 +1551,6 @@ var parseBody = function (streamBody, context) {
|
|
|
1553
1551
|
return {};
|
|
1554
1552
|
});
|
|
1555
1553
|
};
|
|
1556
|
-
/**
|
|
1557
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
1558
|
-
*/
|
|
1559
1554
|
var loadRestJsonErrorCode = function (output, data) {
|
|
1560
1555
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1561
1556
|
var sanitizeErrorCode = function (rawValue) {
|