@aws-sdk/client-rum 3.141.0 → 3.142.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/protocols/Aws_restJson1.js +134 -257
- package/dist-es/protocols/Aws_restJson1.js +173 -261
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseDouble as __limitedParseDouble, map as __map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { RUMServiceException as __BaseException } from "../models/RUMServiceException";
|
|
6
6
|
export var serializeAws_restJson1CreateAppMonitorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -30,7 +30,7 @@ export var serializeAws_restJson1CreateAppMonitorCommand = function (input, cont
|
|
|
30
30
|
});
|
|
31
31
|
}); };
|
|
32
32
|
export var serializeAws_restJson1DeleteAppMonitorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
33
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
33
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
34
34
|
return __generator(this, function (_c) {
|
|
35
35
|
switch (_c.label) {
|
|
36
36
|
case 0: return [4, context.endpoint()];
|
|
@@ -38,16 +38,7 @@ export var serializeAws_restJson1DeleteAppMonitorCommand = function (input, cont
|
|
|
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 = {};
|
|
40
40
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/appmonitor/{Name}";
|
|
41
|
-
|
|
42
|
-
labelValue = input.Name;
|
|
43
|
-
if (labelValue.length <= 0) {
|
|
44
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
45
|
-
}
|
|
46
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
50
|
-
}
|
|
41
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
51
42
|
return [2, new __HttpRequest({
|
|
52
43
|
protocol: protocol,
|
|
53
44
|
hostname: hostname,
|
|
@@ -61,7 +52,7 @@ export var serializeAws_restJson1DeleteAppMonitorCommand = function (input, cont
|
|
|
61
52
|
});
|
|
62
53
|
}); };
|
|
63
54
|
export var serializeAws_restJson1GetAppMonitorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
64
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
55
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
65
56
|
return __generator(this, function (_c) {
|
|
66
57
|
switch (_c.label) {
|
|
67
58
|
case 0: return [4, context.endpoint()];
|
|
@@ -69,16 +60,7 @@ export var serializeAws_restJson1GetAppMonitorCommand = function (input, context
|
|
|
69
60
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
70
61
|
headers = {};
|
|
71
62
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/appmonitor/{Name}";
|
|
72
|
-
|
|
73
|
-
labelValue = input.Name;
|
|
74
|
-
if (labelValue.length <= 0) {
|
|
75
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
76
|
-
}
|
|
77
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
81
|
-
}
|
|
63
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
82
64
|
return [2, new __HttpRequest({
|
|
83
65
|
protocol: protocol,
|
|
84
66
|
hostname: hostname,
|
|
@@ -92,7 +74,7 @@ export var serializeAws_restJson1GetAppMonitorCommand = function (input, context
|
|
|
92
74
|
});
|
|
93
75
|
}); };
|
|
94
76
|
export var serializeAws_restJson1GetAppMonitorDataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
77
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
96
78
|
return __generator(this, function (_c) {
|
|
97
79
|
switch (_c.label) {
|
|
98
80
|
case 0: return [4, context.endpoint()];
|
|
@@ -102,16 +84,7 @@ export var serializeAws_restJson1GetAppMonitorDataCommand = function (input, con
|
|
|
102
84
|
"content-type": "application/json",
|
|
103
85
|
};
|
|
104
86
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/appmonitor/{Name}/data";
|
|
105
|
-
|
|
106
|
-
labelValue = input.Name;
|
|
107
|
-
if (labelValue.length <= 0) {
|
|
108
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
109
|
-
}
|
|
110
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
114
|
-
}
|
|
87
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
115
88
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1QueryFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.TimeRange != null && { TimeRange: serializeAws_restJson1TimeRange(input.TimeRange, context) })));
|
|
116
89
|
return [2, new __HttpRequest({
|
|
117
90
|
protocol: protocol,
|
|
@@ -134,7 +107,10 @@ export var serializeAws_restJson1ListAppMonitorsCommand = function (input, conte
|
|
|
134
107
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
135
108
|
headers = {};
|
|
136
109
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/appmonitors";
|
|
137
|
-
query =
|
|
110
|
+
query = map({
|
|
111
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
112
|
+
nextToken: [, input.NextToken],
|
|
113
|
+
});
|
|
138
114
|
return [2, new __HttpRequest({
|
|
139
115
|
protocol: protocol,
|
|
140
116
|
hostname: hostname,
|
|
@@ -149,7 +125,7 @@ export var serializeAws_restJson1ListAppMonitorsCommand = function (input, conte
|
|
|
149
125
|
});
|
|
150
126
|
}); };
|
|
151
127
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
152
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
128
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
153
129
|
return __generator(this, function (_c) {
|
|
154
130
|
switch (_c.label) {
|
|
155
131
|
case 0: return [4, context.endpoint()];
|
|
@@ -157,16 +133,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
157
133
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
158
134
|
headers = {};
|
|
159
135
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
160
|
-
|
|
161
|
-
labelValue = input.ResourceArn;
|
|
162
|
-
if (labelValue.length <= 0) {
|
|
163
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
164
|
-
}
|
|
165
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
169
|
-
}
|
|
136
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
170
137
|
return [2, new __HttpRequest({
|
|
171
138
|
protocol: protocol,
|
|
172
139
|
hostname: hostname,
|
|
@@ -180,7 +147,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
180
147
|
});
|
|
181
148
|
}); };
|
|
182
149
|
export var serializeAws_restJson1PutRumEventsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
150
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
184
151
|
return __generator(this, function (_c) {
|
|
185
152
|
switch (_c.label) {
|
|
186
153
|
case 0: return [4, context.endpoint()];
|
|
@@ -190,16 +157,7 @@ export var serializeAws_restJson1PutRumEventsCommand = function (input, context)
|
|
|
190
157
|
"content-type": "application/json",
|
|
191
158
|
};
|
|
192
159
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/appmonitors/{Id}";
|
|
193
|
-
|
|
194
|
-
labelValue = input.Id;
|
|
195
|
-
if (labelValue.length <= 0) {
|
|
196
|
-
throw new Error("Empty value provided for input HTTP label: Id.");
|
|
197
|
-
}
|
|
198
|
-
resolvedPath = resolvedPath.replace("{Id}", __extendedEncodeURIComponent(labelValue));
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
throw new Error("No value provided for input HTTP label: Id.");
|
|
202
|
-
}
|
|
160
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Id", function () { return input.Id; }, "{Id}", false);
|
|
203
161
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AppMonitorDetails != null && {
|
|
204
162
|
AppMonitorDetails: serializeAws_restJson1AppMonitorDetails(input.AppMonitorDetails, context),
|
|
205
163
|
})), (input.BatchId != null && { BatchId: input.BatchId })), (input.RumEvents != null && { RumEvents: serializeAws_restJson1RumEventList(input.RumEvents, context) })), (input.UserDetails != null && { UserDetails: serializeAws_restJson1UserDetails(input.UserDetails, context) })));
|
|
@@ -225,7 +183,7 @@ export var serializeAws_restJson1PutRumEventsCommand = function (input, context)
|
|
|
225
183
|
});
|
|
226
184
|
}); };
|
|
227
185
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
228
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
186
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
229
187
|
return __generator(this, function (_c) {
|
|
230
188
|
switch (_c.label) {
|
|
231
189
|
case 0: return [4, context.endpoint()];
|
|
@@ -235,16 +193,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
235
193
|
"content-type": "application/json",
|
|
236
194
|
};
|
|
237
195
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
238
|
-
|
|
239
|
-
labelValue = input.ResourceArn;
|
|
240
|
-
if (labelValue.length <= 0) {
|
|
241
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
242
|
-
}
|
|
243
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
247
|
-
}
|
|
196
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
248
197
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
249
198
|
return [2, new __HttpRequest({
|
|
250
199
|
protocol: protocol,
|
|
@@ -259,7 +208,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
259
208
|
});
|
|
260
209
|
}); };
|
|
261
210
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
262
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
211
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
263
212
|
return __generator(this, function (_c) {
|
|
264
213
|
switch (_c.label) {
|
|
265
214
|
case 0: return [4, context.endpoint()];
|
|
@@ -267,17 +216,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
267
216
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
268
217
|
headers = {};
|
|
269
218
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
279
|
-
}
|
|
280
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
219
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
220
|
+
query = map({
|
|
221
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
222
|
+
});
|
|
281
223
|
return [2, new __HttpRequest({
|
|
282
224
|
protocol: protocol,
|
|
283
225
|
hostname: hostname,
|
|
@@ -292,7 +234,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
292
234
|
});
|
|
293
235
|
}); };
|
|
294
236
|
export var serializeAws_restJson1UpdateAppMonitorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
295
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
237
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
296
238
|
return __generator(this, function (_c) {
|
|
297
239
|
switch (_c.label) {
|
|
298
240
|
case 0: return [4, context.endpoint()];
|
|
@@ -302,16 +244,7 @@ export var serializeAws_restJson1UpdateAppMonitorCommand = function (input, cont
|
|
|
302
244
|
"content-type": "application/json",
|
|
303
245
|
};
|
|
304
246
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/appmonitor/{Name}";
|
|
305
|
-
|
|
306
|
-
labelValue = input.Name;
|
|
307
|
-
if (labelValue.length <= 0) {
|
|
308
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
309
|
-
}
|
|
310
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
314
|
-
}
|
|
247
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
315
248
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.AppMonitorConfiguration != null && {
|
|
316
249
|
AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
|
|
317
250
|
})), (input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled })), (input.Domain != null && { Domain: input.Domain })));
|
|
@@ -335,24 +268,23 @@ export var deserializeAws_restJson1CreateAppMonitorCommand = function (output, c
|
|
|
335
268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
336
269
|
return [2, deserializeAws_restJson1CreateAppMonitorCommandError(output, context)];
|
|
337
270
|
}
|
|
338
|
-
contents = {
|
|
271
|
+
contents = map({
|
|
339
272
|
$metadata: deserializeMetadata(output),
|
|
340
|
-
|
|
341
|
-
};
|
|
273
|
+
});
|
|
342
274
|
_a = __expectNonNull;
|
|
343
275
|
_b = __expectObject;
|
|
344
276
|
return [4, parseBody(output.body, context)];
|
|
345
277
|
case 1:
|
|
346
278
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
347
|
-
if (data.Id
|
|
279
|
+
if (data.Id != null) {
|
|
348
280
|
contents.Id = __expectString(data.Id);
|
|
349
281
|
}
|
|
350
|
-
return [2,
|
|
282
|
+
return [2, contents];
|
|
351
283
|
}
|
|
352
284
|
});
|
|
353
285
|
}); };
|
|
354
286
|
var deserializeAws_restJson1CreateAppMonitorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
355
|
-
var parsedOutput, _a,
|
|
287
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
356
288
|
var _c;
|
|
357
289
|
return __generator(this, function (_d) {
|
|
358
290
|
switch (_d.label) {
|
|
@@ -393,14 +325,14 @@ var deserializeAws_restJson1CreateAppMonitorCommandError = function (output, con
|
|
|
393
325
|
case 13: throw _d.sent();
|
|
394
326
|
case 14:
|
|
395
327
|
parsedBody = parsedOutput.body;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
$metadata: $metadata,
|
|
328
|
+
throwDefaultError({
|
|
329
|
+
output: output,
|
|
330
|
+
parsedBody: parsedBody,
|
|
331
|
+
exceptionCtor: __BaseException,
|
|
332
|
+
errorCode: errorCode,
|
|
402
333
|
});
|
|
403
|
-
|
|
334
|
+
_d.label = 15;
|
|
335
|
+
case 15: return [2];
|
|
404
336
|
}
|
|
405
337
|
});
|
|
406
338
|
}); };
|
|
@@ -412,18 +344,18 @@ export var deserializeAws_restJson1DeleteAppMonitorCommand = function (output, c
|
|
|
412
344
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
413
345
|
return [2, deserializeAws_restJson1DeleteAppMonitorCommandError(output, context)];
|
|
414
346
|
}
|
|
415
|
-
contents = {
|
|
347
|
+
contents = map({
|
|
416
348
|
$metadata: deserializeMetadata(output),
|
|
417
|
-
};
|
|
349
|
+
});
|
|
418
350
|
return [4, collectBody(output.body, context)];
|
|
419
351
|
case 1:
|
|
420
352
|
_a.sent();
|
|
421
|
-
return [2,
|
|
353
|
+
return [2, contents];
|
|
422
354
|
}
|
|
423
355
|
});
|
|
424
356
|
}); };
|
|
425
357
|
var deserializeAws_restJson1DeleteAppMonitorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
426
|
-
var parsedOutput, _a,
|
|
358
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
427
359
|
var _c;
|
|
428
360
|
return __generator(this, function (_d) {
|
|
429
361
|
switch (_d.label) {
|
|
@@ -464,14 +396,14 @@ var deserializeAws_restJson1DeleteAppMonitorCommandError = function (output, con
|
|
|
464
396
|
case 13: throw _d.sent();
|
|
465
397
|
case 14:
|
|
466
398
|
parsedBody = parsedOutput.body;
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
$metadata: $metadata,
|
|
399
|
+
throwDefaultError({
|
|
400
|
+
output: output,
|
|
401
|
+
parsedBody: parsedBody,
|
|
402
|
+
exceptionCtor: __BaseException,
|
|
403
|
+
errorCode: errorCode,
|
|
473
404
|
});
|
|
474
|
-
|
|
405
|
+
_d.label = 15;
|
|
406
|
+
case 15: return [2];
|
|
475
407
|
}
|
|
476
408
|
});
|
|
477
409
|
}); };
|
|
@@ -483,24 +415,23 @@ export var deserializeAws_restJson1GetAppMonitorCommand = function (output, cont
|
|
|
483
415
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
484
416
|
return [2, deserializeAws_restJson1GetAppMonitorCommandError(output, context)];
|
|
485
417
|
}
|
|
486
|
-
contents = {
|
|
418
|
+
contents = map({
|
|
487
419
|
$metadata: deserializeMetadata(output),
|
|
488
|
-
|
|
489
|
-
};
|
|
420
|
+
});
|
|
490
421
|
_a = __expectNonNull;
|
|
491
422
|
_b = __expectObject;
|
|
492
423
|
return [4, parseBody(output.body, context)];
|
|
493
424
|
case 1:
|
|
494
425
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
495
|
-
if (data.AppMonitor
|
|
426
|
+
if (data.AppMonitor != null) {
|
|
496
427
|
contents.AppMonitor = deserializeAws_restJson1AppMonitor(data.AppMonitor, context);
|
|
497
428
|
}
|
|
498
|
-
return [2,
|
|
429
|
+
return [2, contents];
|
|
499
430
|
}
|
|
500
431
|
});
|
|
501
432
|
}); };
|
|
502
433
|
var deserializeAws_restJson1GetAppMonitorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
503
|
-
var parsedOutput, _a,
|
|
434
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
504
435
|
var _c;
|
|
505
436
|
return __generator(this, function (_d) {
|
|
506
437
|
switch (_d.label) {
|
|
@@ -537,14 +468,14 @@ var deserializeAws_restJson1GetAppMonitorCommandError = function (output, contex
|
|
|
537
468
|
case 11: throw _d.sent();
|
|
538
469
|
case 12:
|
|
539
470
|
parsedBody = parsedOutput.body;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
$metadata: $metadata,
|
|
471
|
+
throwDefaultError({
|
|
472
|
+
output: output,
|
|
473
|
+
parsedBody: parsedBody,
|
|
474
|
+
exceptionCtor: __BaseException,
|
|
475
|
+
errorCode: errorCode,
|
|
546
476
|
});
|
|
547
|
-
|
|
477
|
+
_d.label = 13;
|
|
478
|
+
case 13: return [2];
|
|
548
479
|
}
|
|
549
480
|
});
|
|
550
481
|
}); };
|
|
@@ -556,28 +487,26 @@ export var deserializeAws_restJson1GetAppMonitorDataCommand = function (output,
|
|
|
556
487
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
557
488
|
return [2, deserializeAws_restJson1GetAppMonitorDataCommandError(output, context)];
|
|
558
489
|
}
|
|
559
|
-
contents = {
|
|
490
|
+
contents = map({
|
|
560
491
|
$metadata: deserializeMetadata(output),
|
|
561
|
-
|
|
562
|
-
NextToken: undefined,
|
|
563
|
-
};
|
|
492
|
+
});
|
|
564
493
|
_a = __expectNonNull;
|
|
565
494
|
_b = __expectObject;
|
|
566
495
|
return [4, parseBody(output.body, context)];
|
|
567
496
|
case 1:
|
|
568
497
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
569
|
-
if (data.Events
|
|
498
|
+
if (data.Events != null) {
|
|
570
499
|
contents.Events = deserializeAws_restJson1EventDataList(data.Events, context);
|
|
571
500
|
}
|
|
572
|
-
if (data.NextToken
|
|
501
|
+
if (data.NextToken != null) {
|
|
573
502
|
contents.NextToken = __expectString(data.NextToken);
|
|
574
503
|
}
|
|
575
|
-
return [2,
|
|
504
|
+
return [2, contents];
|
|
576
505
|
}
|
|
577
506
|
});
|
|
578
507
|
}); };
|
|
579
508
|
var deserializeAws_restJson1GetAppMonitorDataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
580
|
-
var parsedOutput, _a,
|
|
509
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
581
510
|
var _c;
|
|
582
511
|
return __generator(this, function (_d) {
|
|
583
512
|
switch (_d.label) {
|
|
@@ -614,14 +543,14 @@ var deserializeAws_restJson1GetAppMonitorDataCommandError = function (output, co
|
|
|
614
543
|
case 11: throw _d.sent();
|
|
615
544
|
case 12:
|
|
616
545
|
parsedBody = parsedOutput.body;
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
$metadata: $metadata,
|
|
546
|
+
throwDefaultError({
|
|
547
|
+
output: output,
|
|
548
|
+
parsedBody: parsedBody,
|
|
549
|
+
exceptionCtor: __BaseException,
|
|
550
|
+
errorCode: errorCode,
|
|
623
551
|
});
|
|
624
|
-
|
|
552
|
+
_d.label = 13;
|
|
553
|
+
case 13: return [2];
|
|
625
554
|
}
|
|
626
555
|
});
|
|
627
556
|
}); };
|
|
@@ -633,28 +562,26 @@ export var deserializeAws_restJson1ListAppMonitorsCommand = function (output, co
|
|
|
633
562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
634
563
|
return [2, deserializeAws_restJson1ListAppMonitorsCommandError(output, context)];
|
|
635
564
|
}
|
|
636
|
-
contents = {
|
|
565
|
+
contents = map({
|
|
637
566
|
$metadata: deserializeMetadata(output),
|
|
638
|
-
|
|
639
|
-
NextToken: undefined,
|
|
640
|
-
};
|
|
567
|
+
});
|
|
641
568
|
_a = __expectNonNull;
|
|
642
569
|
_b = __expectObject;
|
|
643
570
|
return [4, parseBody(output.body, context)];
|
|
644
571
|
case 1:
|
|
645
572
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
646
|
-
if (data.AppMonitorSummaries
|
|
573
|
+
if (data.AppMonitorSummaries != null) {
|
|
647
574
|
contents.AppMonitorSummaries = deserializeAws_restJson1AppMonitorSummaryList(data.AppMonitorSummaries, context);
|
|
648
575
|
}
|
|
649
|
-
if (data.NextToken
|
|
576
|
+
if (data.NextToken != null) {
|
|
650
577
|
contents.NextToken = __expectString(data.NextToken);
|
|
651
578
|
}
|
|
652
|
-
return [2,
|
|
579
|
+
return [2, contents];
|
|
653
580
|
}
|
|
654
581
|
});
|
|
655
582
|
}); };
|
|
656
583
|
var deserializeAws_restJson1ListAppMonitorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
657
|
-
var parsedOutput, _a,
|
|
584
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
658
585
|
var _c;
|
|
659
586
|
return __generator(this, function (_d) {
|
|
660
587
|
switch (_d.label) {
|
|
@@ -687,14 +614,14 @@ var deserializeAws_restJson1ListAppMonitorsCommandError = function (output, cont
|
|
|
687
614
|
case 9: throw _d.sent();
|
|
688
615
|
case 10:
|
|
689
616
|
parsedBody = parsedOutput.body;
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
$metadata: $metadata,
|
|
617
|
+
throwDefaultError({
|
|
618
|
+
output: output,
|
|
619
|
+
parsedBody: parsedBody,
|
|
620
|
+
exceptionCtor: __BaseException,
|
|
621
|
+
errorCode: errorCode,
|
|
696
622
|
});
|
|
697
|
-
|
|
623
|
+
_d.label = 11;
|
|
624
|
+
case 11: return [2];
|
|
698
625
|
}
|
|
699
626
|
});
|
|
700
627
|
}); };
|
|
@@ -706,28 +633,26 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
706
633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
634
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
708
635
|
}
|
|
709
|
-
contents = {
|
|
636
|
+
contents = map({
|
|
710
637
|
$metadata: deserializeMetadata(output),
|
|
711
|
-
|
|
712
|
-
Tags: undefined,
|
|
713
|
-
};
|
|
638
|
+
});
|
|
714
639
|
_a = __expectNonNull;
|
|
715
640
|
_b = __expectObject;
|
|
716
641
|
return [4, parseBody(output.body, context)];
|
|
717
642
|
case 1:
|
|
718
643
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
719
|
-
if (data.ResourceArn
|
|
644
|
+
if (data.ResourceArn != null) {
|
|
720
645
|
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
721
646
|
}
|
|
722
|
-
if (data.Tags
|
|
647
|
+
if (data.Tags != null) {
|
|
723
648
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
724
649
|
}
|
|
725
|
-
return [2,
|
|
650
|
+
return [2, contents];
|
|
726
651
|
}
|
|
727
652
|
});
|
|
728
653
|
}); };
|
|
729
654
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
730
|
-
var parsedOutput, _a,
|
|
655
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
731
656
|
var _c;
|
|
732
657
|
return __generator(this, function (_d) {
|
|
733
658
|
switch (_d.label) {
|
|
@@ -756,14 +681,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
756
681
|
case 7: throw _d.sent();
|
|
757
682
|
case 8:
|
|
758
683
|
parsedBody = parsedOutput.body;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
$metadata: $metadata,
|
|
684
|
+
throwDefaultError({
|
|
685
|
+
output: output,
|
|
686
|
+
parsedBody: parsedBody,
|
|
687
|
+
exceptionCtor: __BaseException,
|
|
688
|
+
errorCode: errorCode,
|
|
765
689
|
});
|
|
766
|
-
|
|
690
|
+
_d.label = 9;
|
|
691
|
+
case 9: return [2];
|
|
767
692
|
}
|
|
768
693
|
});
|
|
769
694
|
}); };
|
|
@@ -775,18 +700,18 @@ export var deserializeAws_restJson1PutRumEventsCommand = function (output, conte
|
|
|
775
700
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
776
701
|
return [2, deserializeAws_restJson1PutRumEventsCommandError(output, context)];
|
|
777
702
|
}
|
|
778
|
-
contents = {
|
|
703
|
+
contents = map({
|
|
779
704
|
$metadata: deserializeMetadata(output),
|
|
780
|
-
};
|
|
705
|
+
});
|
|
781
706
|
return [4, collectBody(output.body, context)];
|
|
782
707
|
case 1:
|
|
783
708
|
_a.sent();
|
|
784
|
-
return [2,
|
|
709
|
+
return [2, contents];
|
|
785
710
|
}
|
|
786
711
|
});
|
|
787
712
|
}); };
|
|
788
713
|
var deserializeAws_restJson1PutRumEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
789
|
-
var parsedOutput, _a,
|
|
714
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
790
715
|
var _c;
|
|
791
716
|
return __generator(this, function (_d) {
|
|
792
717
|
switch (_d.label) {
|
|
@@ -823,14 +748,14 @@ var deserializeAws_restJson1PutRumEventsCommandError = function (output, context
|
|
|
823
748
|
case 11: throw _d.sent();
|
|
824
749
|
case 12:
|
|
825
750
|
parsedBody = parsedOutput.body;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
$metadata: $metadata,
|
|
751
|
+
throwDefaultError({
|
|
752
|
+
output: output,
|
|
753
|
+
parsedBody: parsedBody,
|
|
754
|
+
exceptionCtor: __BaseException,
|
|
755
|
+
errorCode: errorCode,
|
|
832
756
|
});
|
|
833
|
-
|
|
757
|
+
_d.label = 13;
|
|
758
|
+
case 13: return [2];
|
|
834
759
|
}
|
|
835
760
|
});
|
|
836
761
|
}); };
|
|
@@ -842,18 +767,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
842
767
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
768
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
844
769
|
}
|
|
845
|
-
contents = {
|
|
770
|
+
contents = map({
|
|
846
771
|
$metadata: deserializeMetadata(output),
|
|
847
|
-
};
|
|
772
|
+
});
|
|
848
773
|
return [4, collectBody(output.body, context)];
|
|
849
774
|
case 1:
|
|
850
775
|
_a.sent();
|
|
851
|
-
return [2,
|
|
776
|
+
return [2, contents];
|
|
852
777
|
}
|
|
853
778
|
});
|
|
854
779
|
}); };
|
|
855
780
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
856
|
-
var parsedOutput, _a,
|
|
781
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
857
782
|
var _c;
|
|
858
783
|
return __generator(this, function (_d) {
|
|
859
784
|
switch (_d.label) {
|
|
@@ -882,14 +807,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
882
807
|
case 7: throw _d.sent();
|
|
883
808
|
case 8:
|
|
884
809
|
parsedBody = parsedOutput.body;
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
$metadata: $metadata,
|
|
810
|
+
throwDefaultError({
|
|
811
|
+
output: output,
|
|
812
|
+
parsedBody: parsedBody,
|
|
813
|
+
exceptionCtor: __BaseException,
|
|
814
|
+
errorCode: errorCode,
|
|
891
815
|
});
|
|
892
|
-
|
|
816
|
+
_d.label = 9;
|
|
817
|
+
case 9: return [2];
|
|
893
818
|
}
|
|
894
819
|
});
|
|
895
820
|
}); };
|
|
@@ -901,18 +826,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
901
826
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
902
827
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
903
828
|
}
|
|
904
|
-
contents = {
|
|
829
|
+
contents = map({
|
|
905
830
|
$metadata: deserializeMetadata(output),
|
|
906
|
-
};
|
|
831
|
+
});
|
|
907
832
|
return [4, collectBody(output.body, context)];
|
|
908
833
|
case 1:
|
|
909
834
|
_a.sent();
|
|
910
|
-
return [2,
|
|
835
|
+
return [2, contents];
|
|
911
836
|
}
|
|
912
837
|
});
|
|
913
838
|
}); };
|
|
914
839
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
915
|
-
var parsedOutput, _a,
|
|
840
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
916
841
|
var _c;
|
|
917
842
|
return __generator(this, function (_d) {
|
|
918
843
|
switch (_d.label) {
|
|
@@ -941,14 +866,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
941
866
|
case 7: throw _d.sent();
|
|
942
867
|
case 8:
|
|
943
868
|
parsedBody = parsedOutput.body;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
$metadata: $metadata,
|
|
869
|
+
throwDefaultError({
|
|
870
|
+
output: output,
|
|
871
|
+
parsedBody: parsedBody,
|
|
872
|
+
exceptionCtor: __BaseException,
|
|
873
|
+
errorCode: errorCode,
|
|
950
874
|
});
|
|
951
|
-
|
|
875
|
+
_d.label = 9;
|
|
876
|
+
case 9: return [2];
|
|
952
877
|
}
|
|
953
878
|
});
|
|
954
879
|
}); };
|
|
@@ -960,18 +885,18 @@ export var deserializeAws_restJson1UpdateAppMonitorCommand = function (output, c
|
|
|
960
885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
886
|
return [2, deserializeAws_restJson1UpdateAppMonitorCommandError(output, context)];
|
|
962
887
|
}
|
|
963
|
-
contents = {
|
|
888
|
+
contents = map({
|
|
964
889
|
$metadata: deserializeMetadata(output),
|
|
965
|
-
};
|
|
890
|
+
});
|
|
966
891
|
return [4, collectBody(output.body, context)];
|
|
967
892
|
case 1:
|
|
968
893
|
_a.sent();
|
|
969
|
-
return [2,
|
|
894
|
+
return [2, contents];
|
|
970
895
|
}
|
|
971
896
|
});
|
|
972
897
|
}); };
|
|
973
898
|
var deserializeAws_restJson1UpdateAppMonitorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
974
|
-
var parsedOutput, _a,
|
|
899
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
975
900
|
var _c;
|
|
976
901
|
return __generator(this, function (_d) {
|
|
977
902
|
switch (_d.label) {
|
|
@@ -1012,23 +937,24 @@ var deserializeAws_restJson1UpdateAppMonitorCommandError = function (output, con
|
|
|
1012
937
|
case 13: throw _d.sent();
|
|
1013
938
|
case 14:
|
|
1014
939
|
parsedBody = parsedOutput.body;
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
$metadata: $metadata,
|
|
940
|
+
throwDefaultError({
|
|
941
|
+
output: output,
|
|
942
|
+
parsedBody: parsedBody,
|
|
943
|
+
exceptionCtor: __BaseException,
|
|
944
|
+
errorCode: errorCode,
|
|
1021
945
|
});
|
|
1022
|
-
|
|
946
|
+
_d.label = 15;
|
|
947
|
+
case 15: return [2];
|
|
1023
948
|
}
|
|
1024
949
|
});
|
|
1025
950
|
}); };
|
|
951
|
+
var map = __map;
|
|
1026
952
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1027
953
|
var contents, data, exception;
|
|
1028
954
|
return __generator(this, function (_a) {
|
|
1029
|
-
contents = {};
|
|
955
|
+
contents = map({});
|
|
1030
956
|
data = parsedOutput.body;
|
|
1031
|
-
if (data.message
|
|
957
|
+
if (data.message != null) {
|
|
1032
958
|
contents.message = __expectString(data.message);
|
|
1033
959
|
}
|
|
1034
960
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1038,15 +964,15 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
1038
964
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1039
965
|
var contents, data, exception;
|
|
1040
966
|
return __generator(this, function (_a) {
|
|
1041
|
-
contents = {};
|
|
967
|
+
contents = map({});
|
|
1042
968
|
data = parsedOutput.body;
|
|
1043
|
-
if (data.message
|
|
969
|
+
if (data.message != null) {
|
|
1044
970
|
contents.message = __expectString(data.message);
|
|
1045
971
|
}
|
|
1046
|
-
if (data.resourceName
|
|
972
|
+
if (data.resourceName != null) {
|
|
1047
973
|
contents.resourceName = __expectString(data.resourceName);
|
|
1048
974
|
}
|
|
1049
|
-
if (data.resourceType
|
|
975
|
+
if (data.resourceType != null) {
|
|
1050
976
|
contents.resourceType = __expectString(data.resourceType);
|
|
1051
977
|
}
|
|
1052
978
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1056,12 +982,14 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
1056
982
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1057
983
|
var contents, data, exception;
|
|
1058
984
|
return __generator(this, function (_a) {
|
|
1059
|
-
contents = {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
985
|
+
contents = map({
|
|
986
|
+
retryAfterSeconds: [
|
|
987
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
988
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
989
|
+
],
|
|
990
|
+
});
|
|
1063
991
|
data = parsedOutput.body;
|
|
1064
|
-
if (data.message
|
|
992
|
+
if (data.message != null) {
|
|
1065
993
|
contents.message = __expectString(data.message);
|
|
1066
994
|
}
|
|
1067
995
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1071,15 +999,15 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
1071
999
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1072
1000
|
var contents, data, exception;
|
|
1073
1001
|
return __generator(this, function (_a) {
|
|
1074
|
-
contents = {};
|
|
1002
|
+
contents = map({});
|
|
1075
1003
|
data = parsedOutput.body;
|
|
1076
|
-
if (data.message
|
|
1004
|
+
if (data.message != null) {
|
|
1077
1005
|
contents.message = __expectString(data.message);
|
|
1078
1006
|
}
|
|
1079
|
-
if (data.resourceName
|
|
1007
|
+
if (data.resourceName != null) {
|
|
1080
1008
|
contents.resourceName = __expectString(data.resourceName);
|
|
1081
1009
|
}
|
|
1082
|
-
if (data.resourceType
|
|
1010
|
+
if (data.resourceType != null) {
|
|
1083
1011
|
contents.resourceType = __expectString(data.resourceType);
|
|
1084
1012
|
}
|
|
1085
1013
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1089,9 +1017,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1089
1017
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1090
1018
|
var contents, data, exception;
|
|
1091
1019
|
return __generator(this, function (_a) {
|
|
1092
|
-
contents = {};
|
|
1020
|
+
contents = map({});
|
|
1093
1021
|
data = parsedOutput.body;
|
|
1094
|
-
if (data.message
|
|
1022
|
+
if (data.message != null) {
|
|
1095
1023
|
contents.message = __expectString(data.message);
|
|
1096
1024
|
}
|
|
1097
1025
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1101,18 +1029,20 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1101
1029
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1102
1030
|
var contents, data, exception;
|
|
1103
1031
|
return __generator(this, function (_a) {
|
|
1104
|
-
contents = {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1032
|
+
contents = map({
|
|
1033
|
+
retryAfterSeconds: [
|
|
1034
|
+
function () { return void 0 !== parsedOutput.headers["retry-after"]; },
|
|
1035
|
+
function () { return __strictParseInt32(parsedOutput.headers["retry-after"]); },
|
|
1036
|
+
],
|
|
1037
|
+
});
|
|
1108
1038
|
data = parsedOutput.body;
|
|
1109
|
-
if (data.message
|
|
1039
|
+
if (data.message != null) {
|
|
1110
1040
|
contents.message = __expectString(data.message);
|
|
1111
1041
|
}
|
|
1112
|
-
if (data.quotaCode
|
|
1042
|
+
if (data.quotaCode != null) {
|
|
1113
1043
|
contents.quotaCode = __expectString(data.quotaCode);
|
|
1114
1044
|
}
|
|
1115
|
-
if (data.serviceCode
|
|
1045
|
+
if (data.serviceCode != null) {
|
|
1116
1046
|
contents.serviceCode = __expectString(data.serviceCode);
|
|
1117
1047
|
}
|
|
1118
1048
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1122,9 +1052,9 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
1122
1052
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1123
1053
|
var contents, data, exception;
|
|
1124
1054
|
return __generator(this, function (_a) {
|
|
1125
|
-
contents = {};
|
|
1055
|
+
contents = map({});
|
|
1126
1056
|
data = parsedOutput.body;
|
|
1127
|
-
if (data.message
|
|
1057
|
+
if (data.message != null) {
|
|
1128
1058
|
contents.message = __expectString(data.message);
|
|
1129
1059
|
}
|
|
1130
1060
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1143,9 +1073,6 @@ var serializeAws_restJson1FavoritePages = function (input, context) {
|
|
|
1143
1073
|
return input
|
|
1144
1074
|
.filter(function (e) { return e != null; })
|
|
1145
1075
|
.map(function (entry) {
|
|
1146
|
-
if (entry === null) {
|
|
1147
|
-
return null;
|
|
1148
|
-
}
|
|
1149
1076
|
return entry;
|
|
1150
1077
|
});
|
|
1151
1078
|
};
|
|
@@ -1153,9 +1080,6 @@ var serializeAws_restJson1Pages = function (input, context) {
|
|
|
1153
1080
|
return input
|
|
1154
1081
|
.filter(function (e) { return e != null; })
|
|
1155
1082
|
.map(function (entry) {
|
|
1156
|
-
if (entry === null) {
|
|
1157
|
-
return null;
|
|
1158
|
-
}
|
|
1159
1083
|
return entry;
|
|
1160
1084
|
});
|
|
1161
1085
|
};
|
|
@@ -1166,9 +1090,6 @@ var serializeAws_restJson1QueryFilters = function (input, context) {
|
|
|
1166
1090
|
return input
|
|
1167
1091
|
.filter(function (e) { return e != null; })
|
|
1168
1092
|
.map(function (entry) {
|
|
1169
|
-
if (entry === null) {
|
|
1170
|
-
return null;
|
|
1171
|
-
}
|
|
1172
1093
|
return serializeAws_restJson1QueryFilter(entry, context);
|
|
1173
1094
|
});
|
|
1174
1095
|
};
|
|
@@ -1176,9 +1097,6 @@ var serializeAws_restJson1QueryFilterValueList = function (input, context) {
|
|
|
1176
1097
|
return input
|
|
1177
1098
|
.filter(function (e) { return e != null; })
|
|
1178
1099
|
.map(function (entry) {
|
|
1179
|
-
if (entry === null) {
|
|
1180
|
-
return null;
|
|
1181
|
-
}
|
|
1182
1100
|
return entry;
|
|
1183
1101
|
});
|
|
1184
1102
|
};
|
|
@@ -1189,9 +1107,6 @@ var serializeAws_restJson1RumEventList = function (input, context) {
|
|
|
1189
1107
|
return input
|
|
1190
1108
|
.filter(function (e) { return e != null; })
|
|
1191
1109
|
.map(function (entry) {
|
|
1192
|
-
if (entry === null) {
|
|
1193
|
-
return null;
|
|
1194
|
-
}
|
|
1195
1110
|
return serializeAws_restJson1RumEvent(entry, context);
|
|
1196
1111
|
});
|
|
1197
1112
|
};
|
|
@@ -1209,9 +1124,6 @@ var serializeAws_restJson1Telemetries = function (input, context) {
|
|
|
1209
1124
|
return input
|
|
1210
1125
|
.filter(function (e) { return e != null; })
|
|
1211
1126
|
.map(function (entry) {
|
|
1212
|
-
if (entry === null) {
|
|
1213
|
-
return null;
|
|
1214
|
-
}
|
|
1215
1127
|
return entry;
|
|
1216
1128
|
});
|
|
1217
1129
|
};
|