@aws-sdk/client-synthetics 3.131.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/AssociateResourceCommand.js +2 -2
- package/dist-cjs/commands/CreateCanaryCommand.js +2 -2
- package/dist-cjs/commands/CreateGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteCanaryCommand.js +2 -2
- package/dist-cjs/commands/DeleteGroupCommand.js +2 -2
- package/dist-cjs/commands/DescribeCanariesCommand.js +2 -2
- package/dist-cjs/commands/DescribeCanariesLastRunCommand.js +2 -2
- package/dist-cjs/commands/DescribeRuntimeVersionsCommand.js +2 -2
- package/dist-cjs/commands/DisassociateResourceCommand.js +2 -2
- package/dist-cjs/commands/GetCanaryCommand.js +2 -2
- package/dist-cjs/commands/GetCanaryRunsCommand.js +2 -2
- package/dist-cjs/commands/GetGroupCommand.js +2 -2
- package/dist-cjs/commands/ListAssociatedGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListGroupResourcesCommand.js +2 -2
- package/dist-cjs/commands/ListGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/StartCanaryCommand.js +2 -2
- package/dist-cjs/commands/StopCanaryCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateCanaryCommand.js +2 -2
- package/dist-cjs/models/models_0.js +266 -398
- package/dist-cjs/protocols/Aws_restJson1.js +229 -463
- package/dist-es/commands/AssociateResourceCommand.js +3 -3
- package/dist-es/commands/CreateCanaryCommand.js +3 -3
- package/dist-es/commands/CreateGroupCommand.js +3 -3
- package/dist-es/commands/DeleteCanaryCommand.js +3 -3
- package/dist-es/commands/DeleteGroupCommand.js +3 -3
- package/dist-es/commands/DescribeCanariesCommand.js +3 -3
- package/dist-es/commands/DescribeCanariesLastRunCommand.js +3 -3
- package/dist-es/commands/DescribeRuntimeVersionsCommand.js +3 -3
- package/dist-es/commands/DisassociateResourceCommand.js +3 -3
- package/dist-es/commands/GetCanaryCommand.js +3 -3
- package/dist-es/commands/GetCanaryRunsCommand.js +3 -3
- package/dist-es/commands/GetGroupCommand.js +3 -3
- package/dist-es/commands/ListAssociatedGroupsCommand.js +3 -3
- package/dist-es/commands/ListGroupResourcesCommand.js +3 -3
- package/dist-es/commands/ListGroupsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/StartCanaryCommand.js +3 -3
- package/dist-es/commands/StopCanaryCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateCanaryCommand.js +3 -3
- package/dist-es/models/models_0.js +66 -264
- package/dist-es/protocols/Aws_restJson1.js +308 -475
- package/dist-types/models/models_0.d.ts +264 -396
- package/dist-types/ts3.4/models/models_0.d.ts +132 -264
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { BadRequestException, ConflictException, InternalFailureException, InternalServerException, NotFoundException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { SyntheticsServiceException as __BaseException } from "../models/SyntheticsServiceException";
|
|
6
6
|
export var serializeAws_restJson1AssociateResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -14,16 +14,7 @@ export var serializeAws_restJson1AssociateResourceCommand = function (input, con
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/group/{GroupIdentifier}/associate";
|
|
17
|
-
|
|
18
|
-
labelValue = input.GroupIdentifier;
|
|
19
|
-
if (labelValue.length <= 0) {
|
|
20
|
-
throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
|
|
21
|
-
}
|
|
22
|
-
resolvedPath = resolvedPath.replace("{GroupIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
throw new Error("No value provided for input HTTP label: GroupIdentifier.");
|
|
26
|
-
}
|
|
17
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GroupIdentifier", function () { return input.GroupIdentifier; }, "{GroupIdentifier}", false);
|
|
27
18
|
body = JSON.stringify(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })));
|
|
28
19
|
return [2, new __HttpRequest({
|
|
29
20
|
protocol: protocol,
|
|
@@ -92,7 +83,7 @@ export var serializeAws_restJson1CreateGroupCommand = function (input, context)
|
|
|
92
83
|
});
|
|
93
84
|
}); };
|
|
94
85
|
export var serializeAws_restJson1DeleteCanaryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
86
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
96
87
|
return __generator(this, function (_c) {
|
|
97
88
|
switch (_c.label) {
|
|
98
89
|
case 0: return [4, context.endpoint()];
|
|
@@ -100,17 +91,10 @@ export var serializeAws_restJson1DeleteCanaryCommand = function (input, context)
|
|
|
100
91
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
101
92
|
headers = {};
|
|
102
93
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/canary/{Name}";
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
112
|
-
}
|
|
113
|
-
query = __assign({}, (input.DeleteLambda !== undefined && { deleteLambda: input.DeleteLambda.toString() }));
|
|
94
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
95
|
+
query = map({
|
|
96
|
+
deleteLambda: [function () { return input.DeleteLambda !== void 0; }, function () { return input.DeleteLambda.toString(); }],
|
|
97
|
+
});
|
|
114
98
|
return [2, new __HttpRequest({
|
|
115
99
|
protocol: protocol,
|
|
116
100
|
hostname: hostname,
|
|
@@ -125,7 +109,7 @@ export var serializeAws_restJson1DeleteCanaryCommand = function (input, context)
|
|
|
125
109
|
});
|
|
126
110
|
}); };
|
|
127
111
|
export var serializeAws_restJson1DeleteGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
112
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
129
113
|
return __generator(this, function (_c) {
|
|
130
114
|
switch (_c.label) {
|
|
131
115
|
case 0: return [4, context.endpoint()];
|
|
@@ -133,16 +117,7 @@ export var serializeAws_restJson1DeleteGroupCommand = function (input, context)
|
|
|
133
117
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
134
118
|
headers = {};
|
|
135
119
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/group/{GroupIdentifier}";
|
|
136
|
-
|
|
137
|
-
labelValue = input.GroupIdentifier;
|
|
138
|
-
if (labelValue.length <= 0) {
|
|
139
|
-
throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
|
|
140
|
-
}
|
|
141
|
-
resolvedPath = resolvedPath.replace("{GroupIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
throw new Error("No value provided for input HTTP label: GroupIdentifier.");
|
|
145
|
-
}
|
|
120
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GroupIdentifier", function () { return input.GroupIdentifier; }, "{GroupIdentifier}", false);
|
|
146
121
|
return [2, new __HttpRequest({
|
|
147
122
|
protocol: protocol,
|
|
148
123
|
hostname: hostname,
|
|
@@ -230,7 +205,7 @@ export var serializeAws_restJson1DescribeRuntimeVersionsCommand = function (inpu
|
|
|
230
205
|
});
|
|
231
206
|
}); };
|
|
232
207
|
export var serializeAws_restJson1DisassociateResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
233
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
208
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
234
209
|
return __generator(this, function (_c) {
|
|
235
210
|
switch (_c.label) {
|
|
236
211
|
case 0: return [4, context.endpoint()];
|
|
@@ -240,16 +215,7 @@ export var serializeAws_restJson1DisassociateResourceCommand = function (input,
|
|
|
240
215
|
"content-type": "application/json",
|
|
241
216
|
};
|
|
242
217
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/group/{GroupIdentifier}/disassociate";
|
|
243
|
-
|
|
244
|
-
labelValue = input.GroupIdentifier;
|
|
245
|
-
if (labelValue.length <= 0) {
|
|
246
|
-
throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
|
|
247
|
-
}
|
|
248
|
-
resolvedPath = resolvedPath.replace("{GroupIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
249
|
-
}
|
|
250
|
-
else {
|
|
251
|
-
throw new Error("No value provided for input HTTP label: GroupIdentifier.");
|
|
252
|
-
}
|
|
218
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GroupIdentifier", function () { return input.GroupIdentifier; }, "{GroupIdentifier}", false);
|
|
253
219
|
body = JSON.stringify(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })));
|
|
254
220
|
return [2, new __HttpRequest({
|
|
255
221
|
protocol: protocol,
|
|
@@ -264,7 +230,7 @@ export var serializeAws_restJson1DisassociateResourceCommand = function (input,
|
|
|
264
230
|
});
|
|
265
231
|
}); };
|
|
266
232
|
export var serializeAws_restJson1GetCanaryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
267
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
233
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
268
234
|
return __generator(this, function (_c) {
|
|
269
235
|
switch (_c.label) {
|
|
270
236
|
case 0: return [4, context.endpoint()];
|
|
@@ -272,16 +238,7 @@ export var serializeAws_restJson1GetCanaryCommand = function (input, context) {
|
|
|
272
238
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
273
239
|
headers = {};
|
|
274
240
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/canary/{Name}";
|
|
275
|
-
|
|
276
|
-
labelValue = input.Name;
|
|
277
|
-
if (labelValue.length <= 0) {
|
|
278
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
279
|
-
}
|
|
280
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
284
|
-
}
|
|
241
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
285
242
|
return [2, new __HttpRequest({
|
|
286
243
|
protocol: protocol,
|
|
287
244
|
hostname: hostname,
|
|
@@ -295,7 +252,7 @@ export var serializeAws_restJson1GetCanaryCommand = function (input, context) {
|
|
|
295
252
|
});
|
|
296
253
|
}); };
|
|
297
254
|
export var serializeAws_restJson1GetCanaryRunsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
298
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
255
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
299
256
|
return __generator(this, function (_c) {
|
|
300
257
|
switch (_c.label) {
|
|
301
258
|
case 0: return [4, context.endpoint()];
|
|
@@ -305,16 +262,7 @@ export var serializeAws_restJson1GetCanaryRunsCommand = function (input, context
|
|
|
305
262
|
"content-type": "application/json",
|
|
306
263
|
};
|
|
307
264
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/canary/{Name}/runs";
|
|
308
|
-
|
|
309
|
-
labelValue = input.Name;
|
|
310
|
-
if (labelValue.length <= 0) {
|
|
311
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
312
|
-
}
|
|
313
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
317
|
-
}
|
|
265
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
318
266
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
319
267
|
return [2, new __HttpRequest({
|
|
320
268
|
protocol: protocol,
|
|
@@ -329,7 +277,7 @@ export var serializeAws_restJson1GetCanaryRunsCommand = function (input, context
|
|
|
329
277
|
});
|
|
330
278
|
}); };
|
|
331
279
|
export var serializeAws_restJson1GetGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
332
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
280
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
333
281
|
return __generator(this, function (_c) {
|
|
334
282
|
switch (_c.label) {
|
|
335
283
|
case 0: return [4, context.endpoint()];
|
|
@@ -337,16 +285,7 @@ export var serializeAws_restJson1GetGroupCommand = function (input, context) { r
|
|
|
337
285
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
338
286
|
headers = {};
|
|
339
287
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/group/{GroupIdentifier}";
|
|
340
|
-
|
|
341
|
-
labelValue = input.GroupIdentifier;
|
|
342
|
-
if (labelValue.length <= 0) {
|
|
343
|
-
throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
|
|
344
|
-
}
|
|
345
|
-
resolvedPath = resolvedPath.replace("{GroupIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
throw new Error("No value provided for input HTTP label: GroupIdentifier.");
|
|
349
|
-
}
|
|
288
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GroupIdentifier", function () { return input.GroupIdentifier; }, "{GroupIdentifier}", false);
|
|
350
289
|
return [2, new __HttpRequest({
|
|
351
290
|
protocol: protocol,
|
|
352
291
|
hostname: hostname,
|
|
@@ -360,7 +299,7 @@ export var serializeAws_restJson1GetGroupCommand = function (input, context) { r
|
|
|
360
299
|
});
|
|
361
300
|
}); };
|
|
362
301
|
export var serializeAws_restJson1ListAssociatedGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
363
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
302
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
364
303
|
return __generator(this, function (_c) {
|
|
365
304
|
switch (_c.label) {
|
|
366
305
|
case 0: return [4, context.endpoint()];
|
|
@@ -370,16 +309,7 @@ export var serializeAws_restJson1ListAssociatedGroupsCommand = function (input,
|
|
|
370
309
|
"content-type": "application/json",
|
|
371
310
|
};
|
|
372
311
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/resource/{ResourceArn}/groups";
|
|
373
|
-
|
|
374
|
-
labelValue = input.ResourceArn;
|
|
375
|
-
if (labelValue.length <= 0) {
|
|
376
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
377
|
-
}
|
|
378
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
382
|
-
}
|
|
312
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
383
313
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
384
314
|
return [2, new __HttpRequest({
|
|
385
315
|
protocol: protocol,
|
|
@@ -394,7 +324,7 @@ export var serializeAws_restJson1ListAssociatedGroupsCommand = function (input,
|
|
|
394
324
|
});
|
|
395
325
|
}); };
|
|
396
326
|
export var serializeAws_restJson1ListGroupResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
397
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
327
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
398
328
|
return __generator(this, function (_c) {
|
|
399
329
|
switch (_c.label) {
|
|
400
330
|
case 0: return [4, context.endpoint()];
|
|
@@ -404,16 +334,7 @@ export var serializeAws_restJson1ListGroupResourcesCommand = function (input, co
|
|
|
404
334
|
"content-type": "application/json",
|
|
405
335
|
};
|
|
406
336
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/group/{GroupIdentifier}/resources";
|
|
407
|
-
|
|
408
|
-
labelValue = input.GroupIdentifier;
|
|
409
|
-
if (labelValue.length <= 0) {
|
|
410
|
-
throw new Error("Empty value provided for input HTTP label: GroupIdentifier.");
|
|
411
|
-
}
|
|
412
|
-
resolvedPath = resolvedPath.replace("{GroupIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
413
|
-
}
|
|
414
|
-
else {
|
|
415
|
-
throw new Error("No value provided for input HTTP label: GroupIdentifier.");
|
|
416
|
-
}
|
|
337
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GroupIdentifier", function () { return input.GroupIdentifier; }, "{GroupIdentifier}", false);
|
|
417
338
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
418
339
|
return [2, new __HttpRequest({
|
|
419
340
|
protocol: protocol,
|
|
@@ -452,7 +373,7 @@ export var serializeAws_restJson1ListGroupsCommand = function (input, context) {
|
|
|
452
373
|
});
|
|
453
374
|
}); };
|
|
454
375
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
455
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
376
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
456
377
|
return __generator(this, function (_c) {
|
|
457
378
|
switch (_c.label) {
|
|
458
379
|
case 0: return [4, context.endpoint()];
|
|
@@ -460,16 +381,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
460
381
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
461
382
|
headers = {};
|
|
462
383
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
463
|
-
|
|
464
|
-
labelValue = input.ResourceArn;
|
|
465
|
-
if (labelValue.length <= 0) {
|
|
466
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
467
|
-
}
|
|
468
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
469
|
-
}
|
|
470
|
-
else {
|
|
471
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
472
|
-
}
|
|
384
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
473
385
|
return [2, new __HttpRequest({
|
|
474
386
|
protocol: protocol,
|
|
475
387
|
hostname: hostname,
|
|
@@ -483,7 +395,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
483
395
|
});
|
|
484
396
|
}); };
|
|
485
397
|
export var serializeAws_restJson1StartCanaryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
486
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
398
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
487
399
|
return __generator(this, function (_c) {
|
|
488
400
|
switch (_c.label) {
|
|
489
401
|
case 0: return [4, context.endpoint()];
|
|
@@ -491,16 +403,7 @@ export var serializeAws_restJson1StartCanaryCommand = function (input, context)
|
|
|
491
403
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
492
404
|
headers = {};
|
|
493
405
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/canary/{Name}/start";
|
|
494
|
-
|
|
495
|
-
labelValue = input.Name;
|
|
496
|
-
if (labelValue.length <= 0) {
|
|
497
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
498
|
-
}
|
|
499
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
500
|
-
}
|
|
501
|
-
else {
|
|
502
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
503
|
-
}
|
|
406
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
504
407
|
return [2, new __HttpRequest({
|
|
505
408
|
protocol: protocol,
|
|
506
409
|
hostname: hostname,
|
|
@@ -514,7 +417,7 @@ export var serializeAws_restJson1StartCanaryCommand = function (input, context)
|
|
|
514
417
|
});
|
|
515
418
|
}); };
|
|
516
419
|
export var serializeAws_restJson1StopCanaryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
517
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
420
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
518
421
|
return __generator(this, function (_c) {
|
|
519
422
|
switch (_c.label) {
|
|
520
423
|
case 0: return [4, context.endpoint()];
|
|
@@ -522,16 +425,7 @@ export var serializeAws_restJson1StopCanaryCommand = function (input, context) {
|
|
|
522
425
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
523
426
|
headers = {};
|
|
524
427
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/canary/{Name}/stop";
|
|
525
|
-
|
|
526
|
-
labelValue = input.Name;
|
|
527
|
-
if (labelValue.length <= 0) {
|
|
528
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
529
|
-
}
|
|
530
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
534
|
-
}
|
|
428
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
535
429
|
return [2, new __HttpRequest({
|
|
536
430
|
protocol: protocol,
|
|
537
431
|
hostname: hostname,
|
|
@@ -545,7 +439,7 @@ export var serializeAws_restJson1StopCanaryCommand = function (input, context) {
|
|
|
545
439
|
});
|
|
546
440
|
}); };
|
|
547
441
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
548
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
442
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
549
443
|
return __generator(this, function (_c) {
|
|
550
444
|
switch (_c.label) {
|
|
551
445
|
case 0: return [4, context.endpoint()];
|
|
@@ -555,16 +449,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
555
449
|
"content-type": "application/json",
|
|
556
450
|
};
|
|
557
451
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
558
|
-
|
|
559
|
-
labelValue = input.ResourceArn;
|
|
560
|
-
if (labelValue.length <= 0) {
|
|
561
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
562
|
-
}
|
|
563
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
564
|
-
}
|
|
565
|
-
else {
|
|
566
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
567
|
-
}
|
|
452
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
568
453
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
569
454
|
return [2, new __HttpRequest({
|
|
570
455
|
protocol: protocol,
|
|
@@ -579,7 +464,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
579
464
|
});
|
|
580
465
|
}); };
|
|
581
466
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
582
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
467
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
583
468
|
return __generator(this, function (_c) {
|
|
584
469
|
switch (_c.label) {
|
|
585
470
|
case 0: return [4, context.endpoint()];
|
|
@@ -587,17 +472,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
587
472
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
588
473
|
headers = {};
|
|
589
474
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}
|
|
595
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
596
|
-
}
|
|
597
|
-
else {
|
|
598
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
599
|
-
}
|
|
600
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
475
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
476
|
+
query = map({
|
|
477
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
478
|
+
});
|
|
601
479
|
return [2, new __HttpRequest({
|
|
602
480
|
protocol: protocol,
|
|
603
481
|
hostname: hostname,
|
|
@@ -612,7 +490,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
612
490
|
});
|
|
613
491
|
}); };
|
|
614
492
|
export var serializeAws_restJson1UpdateCanaryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
615
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
493
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
616
494
|
return __generator(this, function (_c) {
|
|
617
495
|
switch (_c.label) {
|
|
618
496
|
case 0: return [4, context.endpoint()];
|
|
@@ -622,16 +500,7 @@ export var serializeAws_restJson1UpdateCanaryCommand = function (input, context)
|
|
|
622
500
|
"content-type": "application/json",
|
|
623
501
|
};
|
|
624
502
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/canary/{Name}";
|
|
625
|
-
|
|
626
|
-
labelValue = input.Name;
|
|
627
|
-
if (labelValue.length <= 0) {
|
|
628
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
629
|
-
}
|
|
630
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
631
|
-
}
|
|
632
|
-
else {
|
|
633
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
634
|
-
}
|
|
503
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
635
504
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ArtifactConfig != null && {
|
|
636
505
|
ArtifactConfig: serializeAws_restJson1ArtifactConfigInput(input.ArtifactConfig, context),
|
|
637
506
|
})), (input.ArtifactS3Location != null && { ArtifactS3Location: input.ArtifactS3Location })), (input.Code != null && { Code: serializeAws_restJson1CanaryCodeInput(input.Code, context) })), (input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn })), (input.FailureRetentionPeriodInDays != null && {
|
|
@@ -661,18 +530,18 @@ export var deserializeAws_restJson1AssociateResourceCommand = function (output,
|
|
|
661
530
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
531
|
return [2, deserializeAws_restJson1AssociateResourceCommandError(output, context)];
|
|
663
532
|
}
|
|
664
|
-
contents = {
|
|
533
|
+
contents = map({
|
|
665
534
|
$metadata: deserializeMetadata(output),
|
|
666
|
-
};
|
|
535
|
+
});
|
|
667
536
|
return [4, collectBody(output.body, context)];
|
|
668
537
|
case 1:
|
|
669
538
|
_a.sent();
|
|
670
|
-
return [2,
|
|
539
|
+
return [2, contents];
|
|
671
540
|
}
|
|
672
541
|
});
|
|
673
542
|
}); };
|
|
674
543
|
var deserializeAws_restJson1AssociateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
675
|
-
var parsedOutput, _a,
|
|
544
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
676
545
|
var _c;
|
|
677
546
|
return __generator(this, function (_d) {
|
|
678
547
|
switch (_d.label) {
|
|
@@ -709,14 +578,14 @@ var deserializeAws_restJson1AssociateResourceCommandError = function (output, co
|
|
|
709
578
|
case 11: throw _d.sent();
|
|
710
579
|
case 12:
|
|
711
580
|
parsedBody = parsedOutput.body;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
$metadata: $metadata,
|
|
581
|
+
throwDefaultError({
|
|
582
|
+
output: output,
|
|
583
|
+
parsedBody: parsedBody,
|
|
584
|
+
exceptionCtor: __BaseException,
|
|
585
|
+
errorCode: errorCode,
|
|
718
586
|
});
|
|
719
|
-
|
|
587
|
+
_d.label = 13;
|
|
588
|
+
case 13: return [2];
|
|
720
589
|
}
|
|
721
590
|
});
|
|
722
591
|
}); };
|
|
@@ -728,24 +597,23 @@ export var deserializeAws_restJson1CreateCanaryCommand = function (output, conte
|
|
|
728
597
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
729
598
|
return [2, deserializeAws_restJson1CreateCanaryCommandError(output, context)];
|
|
730
599
|
}
|
|
731
|
-
contents = {
|
|
600
|
+
contents = map({
|
|
732
601
|
$metadata: deserializeMetadata(output),
|
|
733
|
-
|
|
734
|
-
};
|
|
602
|
+
});
|
|
735
603
|
_a = __expectNonNull;
|
|
736
604
|
_b = __expectObject;
|
|
737
605
|
return [4, parseBody(output.body, context)];
|
|
738
606
|
case 1:
|
|
739
607
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
740
|
-
if (data.Canary
|
|
608
|
+
if (data.Canary != null) {
|
|
741
609
|
contents.Canary = deserializeAws_restJson1Canary(data.Canary, context);
|
|
742
610
|
}
|
|
743
|
-
return [2,
|
|
611
|
+
return [2, contents];
|
|
744
612
|
}
|
|
745
613
|
});
|
|
746
614
|
}); };
|
|
747
615
|
var deserializeAws_restJson1CreateCanaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
748
|
-
var parsedOutput, _a,
|
|
616
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
749
617
|
var _c;
|
|
750
618
|
return __generator(this, function (_d) {
|
|
751
619
|
switch (_d.label) {
|
|
@@ -774,14 +642,14 @@ var deserializeAws_restJson1CreateCanaryCommandError = function (output, context
|
|
|
774
642
|
case 7: throw _d.sent();
|
|
775
643
|
case 8:
|
|
776
644
|
parsedBody = parsedOutput.body;
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
$metadata: $metadata,
|
|
645
|
+
throwDefaultError({
|
|
646
|
+
output: output,
|
|
647
|
+
parsedBody: parsedBody,
|
|
648
|
+
exceptionCtor: __BaseException,
|
|
649
|
+
errorCode: errorCode,
|
|
783
650
|
});
|
|
784
|
-
|
|
651
|
+
_d.label = 9;
|
|
652
|
+
case 9: return [2];
|
|
785
653
|
}
|
|
786
654
|
});
|
|
787
655
|
}); };
|
|
@@ -793,24 +661,23 @@ export var deserializeAws_restJson1CreateGroupCommand = function (output, contex
|
|
|
793
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
794
662
|
return [2, deserializeAws_restJson1CreateGroupCommandError(output, context)];
|
|
795
663
|
}
|
|
796
|
-
contents = {
|
|
664
|
+
contents = map({
|
|
797
665
|
$metadata: deserializeMetadata(output),
|
|
798
|
-
|
|
799
|
-
};
|
|
666
|
+
});
|
|
800
667
|
_a = __expectNonNull;
|
|
801
668
|
_b = __expectObject;
|
|
802
669
|
return [4, parseBody(output.body, context)];
|
|
803
670
|
case 1:
|
|
804
671
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
805
|
-
if (data.Group
|
|
672
|
+
if (data.Group != null) {
|
|
806
673
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
807
674
|
}
|
|
808
|
-
return [2,
|
|
675
|
+
return [2, contents];
|
|
809
676
|
}
|
|
810
677
|
});
|
|
811
678
|
}); };
|
|
812
679
|
var deserializeAws_restJson1CreateGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
813
|
-
var parsedOutput, _a,
|
|
680
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
814
681
|
var _c;
|
|
815
682
|
return __generator(this, function (_d) {
|
|
816
683
|
switch (_d.label) {
|
|
@@ -843,14 +710,14 @@ var deserializeAws_restJson1CreateGroupCommandError = function (output, context)
|
|
|
843
710
|
case 9: throw _d.sent();
|
|
844
711
|
case 10:
|
|
845
712
|
parsedBody = parsedOutput.body;
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
$metadata: $metadata,
|
|
713
|
+
throwDefaultError({
|
|
714
|
+
output: output,
|
|
715
|
+
parsedBody: parsedBody,
|
|
716
|
+
exceptionCtor: __BaseException,
|
|
717
|
+
errorCode: errorCode,
|
|
852
718
|
});
|
|
853
|
-
|
|
719
|
+
_d.label = 11;
|
|
720
|
+
case 11: return [2];
|
|
854
721
|
}
|
|
855
722
|
});
|
|
856
723
|
}); };
|
|
@@ -862,18 +729,18 @@ export var deserializeAws_restJson1DeleteCanaryCommand = function (output, conte
|
|
|
862
729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
863
730
|
return [2, deserializeAws_restJson1DeleteCanaryCommandError(output, context)];
|
|
864
731
|
}
|
|
865
|
-
contents = {
|
|
732
|
+
contents = map({
|
|
866
733
|
$metadata: deserializeMetadata(output),
|
|
867
|
-
};
|
|
734
|
+
});
|
|
868
735
|
return [4, collectBody(output.body, context)];
|
|
869
736
|
case 1:
|
|
870
737
|
_a.sent();
|
|
871
|
-
return [2,
|
|
738
|
+
return [2, contents];
|
|
872
739
|
}
|
|
873
740
|
});
|
|
874
741
|
}); };
|
|
875
742
|
var deserializeAws_restJson1DeleteCanaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
876
|
-
var parsedOutput, _a,
|
|
743
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
877
744
|
var _c;
|
|
878
745
|
return __generator(this, function (_d) {
|
|
879
746
|
switch (_d.label) {
|
|
@@ -906,14 +773,14 @@ var deserializeAws_restJson1DeleteCanaryCommandError = function (output, context
|
|
|
906
773
|
case 9: throw _d.sent();
|
|
907
774
|
case 10:
|
|
908
775
|
parsedBody = parsedOutput.body;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
$metadata: $metadata,
|
|
776
|
+
throwDefaultError({
|
|
777
|
+
output: output,
|
|
778
|
+
parsedBody: parsedBody,
|
|
779
|
+
exceptionCtor: __BaseException,
|
|
780
|
+
errorCode: errorCode,
|
|
915
781
|
});
|
|
916
|
-
|
|
782
|
+
_d.label = 11;
|
|
783
|
+
case 11: return [2];
|
|
917
784
|
}
|
|
918
785
|
});
|
|
919
786
|
}); };
|
|
@@ -925,18 +792,18 @@ export var deserializeAws_restJson1DeleteGroupCommand = function (output, contex
|
|
|
925
792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
926
793
|
return [2, deserializeAws_restJson1DeleteGroupCommandError(output, context)];
|
|
927
794
|
}
|
|
928
|
-
contents = {
|
|
795
|
+
contents = map({
|
|
929
796
|
$metadata: deserializeMetadata(output),
|
|
930
|
-
};
|
|
797
|
+
});
|
|
931
798
|
return [4, collectBody(output.body, context)];
|
|
932
799
|
case 1:
|
|
933
800
|
_a.sent();
|
|
934
|
-
return [2,
|
|
801
|
+
return [2, contents];
|
|
935
802
|
}
|
|
936
803
|
});
|
|
937
804
|
}); };
|
|
938
805
|
var deserializeAws_restJson1DeleteGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
939
|
-
var parsedOutput, _a,
|
|
806
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
940
807
|
var _c;
|
|
941
808
|
return __generator(this, function (_d) {
|
|
942
809
|
switch (_d.label) {
|
|
@@ -969,14 +836,14 @@ var deserializeAws_restJson1DeleteGroupCommandError = function (output, context)
|
|
|
969
836
|
case 9: throw _d.sent();
|
|
970
837
|
case 10:
|
|
971
838
|
parsedBody = parsedOutput.body;
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
$metadata: $metadata,
|
|
839
|
+
throwDefaultError({
|
|
840
|
+
output: output,
|
|
841
|
+
parsedBody: parsedBody,
|
|
842
|
+
exceptionCtor: __BaseException,
|
|
843
|
+
errorCode: errorCode,
|
|
978
844
|
});
|
|
979
|
-
|
|
845
|
+
_d.label = 11;
|
|
846
|
+
case 11: return [2];
|
|
980
847
|
}
|
|
981
848
|
});
|
|
982
849
|
}); };
|
|
@@ -988,28 +855,26 @@ export var deserializeAws_restJson1DescribeCanariesCommand = function (output, c
|
|
|
988
855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
989
856
|
return [2, deserializeAws_restJson1DescribeCanariesCommandError(output, context)];
|
|
990
857
|
}
|
|
991
|
-
contents = {
|
|
858
|
+
contents = map({
|
|
992
859
|
$metadata: deserializeMetadata(output),
|
|
993
|
-
|
|
994
|
-
NextToken: undefined,
|
|
995
|
-
};
|
|
860
|
+
});
|
|
996
861
|
_a = __expectNonNull;
|
|
997
862
|
_b = __expectObject;
|
|
998
863
|
return [4, parseBody(output.body, context)];
|
|
999
864
|
case 1:
|
|
1000
865
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1001
|
-
if (data.Canaries
|
|
866
|
+
if (data.Canaries != null) {
|
|
1002
867
|
contents.Canaries = deserializeAws_restJson1Canaries(data.Canaries, context);
|
|
1003
868
|
}
|
|
1004
|
-
if (data.NextToken
|
|
869
|
+
if (data.NextToken != null) {
|
|
1005
870
|
contents.NextToken = __expectString(data.NextToken);
|
|
1006
871
|
}
|
|
1007
|
-
return [2,
|
|
872
|
+
return [2, contents];
|
|
1008
873
|
}
|
|
1009
874
|
});
|
|
1010
875
|
}); };
|
|
1011
876
|
var deserializeAws_restJson1DescribeCanariesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1012
|
-
var parsedOutput, _a,
|
|
877
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1013
878
|
var _c;
|
|
1014
879
|
return __generator(this, function (_d) {
|
|
1015
880
|
switch (_d.label) {
|
|
@@ -1034,14 +899,14 @@ var deserializeAws_restJson1DescribeCanariesCommandError = function (output, con
|
|
|
1034
899
|
case 5: throw _d.sent();
|
|
1035
900
|
case 6:
|
|
1036
901
|
parsedBody = parsedOutput.body;
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
$metadata: $metadata,
|
|
902
|
+
throwDefaultError({
|
|
903
|
+
output: output,
|
|
904
|
+
parsedBody: parsedBody,
|
|
905
|
+
exceptionCtor: __BaseException,
|
|
906
|
+
errorCode: errorCode,
|
|
1043
907
|
});
|
|
1044
|
-
|
|
908
|
+
_d.label = 7;
|
|
909
|
+
case 7: return [2];
|
|
1045
910
|
}
|
|
1046
911
|
});
|
|
1047
912
|
}); };
|
|
@@ -1053,28 +918,26 @@ export var deserializeAws_restJson1DescribeCanariesLastRunCommand = function (ou
|
|
|
1053
918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1054
919
|
return [2, deserializeAws_restJson1DescribeCanariesLastRunCommandError(output, context)];
|
|
1055
920
|
}
|
|
1056
|
-
contents = {
|
|
921
|
+
contents = map({
|
|
1057
922
|
$metadata: deserializeMetadata(output),
|
|
1058
|
-
|
|
1059
|
-
NextToken: undefined,
|
|
1060
|
-
};
|
|
923
|
+
});
|
|
1061
924
|
_a = __expectNonNull;
|
|
1062
925
|
_b = __expectObject;
|
|
1063
926
|
return [4, parseBody(output.body, context)];
|
|
1064
927
|
case 1:
|
|
1065
928
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1066
|
-
if (data.CanariesLastRun
|
|
929
|
+
if (data.CanariesLastRun != null) {
|
|
1067
930
|
contents.CanariesLastRun = deserializeAws_restJson1CanariesLastRun(data.CanariesLastRun, context);
|
|
1068
931
|
}
|
|
1069
|
-
if (data.NextToken
|
|
932
|
+
if (data.NextToken != null) {
|
|
1070
933
|
contents.NextToken = __expectString(data.NextToken);
|
|
1071
934
|
}
|
|
1072
|
-
return [2,
|
|
935
|
+
return [2, contents];
|
|
1073
936
|
}
|
|
1074
937
|
});
|
|
1075
938
|
}); };
|
|
1076
939
|
var deserializeAws_restJson1DescribeCanariesLastRunCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1077
|
-
var parsedOutput, _a,
|
|
940
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1078
941
|
var _c;
|
|
1079
942
|
return __generator(this, function (_d) {
|
|
1080
943
|
switch (_d.label) {
|
|
@@ -1099,14 +962,14 @@ var deserializeAws_restJson1DescribeCanariesLastRunCommandError = function (outp
|
|
|
1099
962
|
case 5: throw _d.sent();
|
|
1100
963
|
case 6:
|
|
1101
964
|
parsedBody = parsedOutput.body;
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
$metadata: $metadata,
|
|
965
|
+
throwDefaultError({
|
|
966
|
+
output: output,
|
|
967
|
+
parsedBody: parsedBody,
|
|
968
|
+
exceptionCtor: __BaseException,
|
|
969
|
+
errorCode: errorCode,
|
|
1108
970
|
});
|
|
1109
|
-
|
|
971
|
+
_d.label = 7;
|
|
972
|
+
case 7: return [2];
|
|
1110
973
|
}
|
|
1111
974
|
});
|
|
1112
975
|
}); };
|
|
@@ -1118,28 +981,26 @@ export var deserializeAws_restJson1DescribeRuntimeVersionsCommand = function (ou
|
|
|
1118
981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
982
|
return [2, deserializeAws_restJson1DescribeRuntimeVersionsCommandError(output, context)];
|
|
1120
983
|
}
|
|
1121
|
-
contents = {
|
|
984
|
+
contents = map({
|
|
1122
985
|
$metadata: deserializeMetadata(output),
|
|
1123
|
-
|
|
1124
|
-
RuntimeVersions: undefined,
|
|
1125
|
-
};
|
|
986
|
+
});
|
|
1126
987
|
_a = __expectNonNull;
|
|
1127
988
|
_b = __expectObject;
|
|
1128
989
|
return [4, parseBody(output.body, context)];
|
|
1129
990
|
case 1:
|
|
1130
991
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1131
|
-
if (data.NextToken
|
|
992
|
+
if (data.NextToken != null) {
|
|
1132
993
|
contents.NextToken = __expectString(data.NextToken);
|
|
1133
994
|
}
|
|
1134
|
-
if (data.RuntimeVersions
|
|
995
|
+
if (data.RuntimeVersions != null) {
|
|
1135
996
|
contents.RuntimeVersions = deserializeAws_restJson1RuntimeVersionList(data.RuntimeVersions, context);
|
|
1136
997
|
}
|
|
1137
|
-
return [2,
|
|
998
|
+
return [2, contents];
|
|
1138
999
|
}
|
|
1139
1000
|
});
|
|
1140
1001
|
}); };
|
|
1141
1002
|
var deserializeAws_restJson1DescribeRuntimeVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1142
|
-
var parsedOutput, _a,
|
|
1003
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1143
1004
|
var _c;
|
|
1144
1005
|
return __generator(this, function (_d) {
|
|
1145
1006
|
switch (_d.label) {
|
|
@@ -1164,14 +1025,14 @@ var deserializeAws_restJson1DescribeRuntimeVersionsCommandError = function (outp
|
|
|
1164
1025
|
case 5: throw _d.sent();
|
|
1165
1026
|
case 6:
|
|
1166
1027
|
parsedBody = parsedOutput.body;
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
$metadata: $metadata,
|
|
1028
|
+
throwDefaultError({
|
|
1029
|
+
output: output,
|
|
1030
|
+
parsedBody: parsedBody,
|
|
1031
|
+
exceptionCtor: __BaseException,
|
|
1032
|
+
errorCode: errorCode,
|
|
1173
1033
|
});
|
|
1174
|
-
|
|
1034
|
+
_d.label = 7;
|
|
1035
|
+
case 7: return [2];
|
|
1175
1036
|
}
|
|
1176
1037
|
});
|
|
1177
1038
|
}); };
|
|
@@ -1183,18 +1044,18 @@ export var deserializeAws_restJson1DisassociateResourceCommand = function (outpu
|
|
|
1183
1044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1184
1045
|
return [2, deserializeAws_restJson1DisassociateResourceCommandError(output, context)];
|
|
1185
1046
|
}
|
|
1186
|
-
contents = {
|
|
1047
|
+
contents = map({
|
|
1187
1048
|
$metadata: deserializeMetadata(output),
|
|
1188
|
-
};
|
|
1049
|
+
});
|
|
1189
1050
|
return [4, collectBody(output.body, context)];
|
|
1190
1051
|
case 1:
|
|
1191
1052
|
_a.sent();
|
|
1192
|
-
return [2,
|
|
1053
|
+
return [2, contents];
|
|
1193
1054
|
}
|
|
1194
1055
|
});
|
|
1195
1056
|
}); };
|
|
1196
1057
|
var deserializeAws_restJson1DisassociateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1197
|
-
var parsedOutput, _a,
|
|
1058
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1198
1059
|
var _c;
|
|
1199
1060
|
return __generator(this, function (_d) {
|
|
1200
1061
|
switch (_d.label) {
|
|
@@ -1227,14 +1088,14 @@ var deserializeAws_restJson1DisassociateResourceCommandError = function (output,
|
|
|
1227
1088
|
case 9: throw _d.sent();
|
|
1228
1089
|
case 10:
|
|
1229
1090
|
parsedBody = parsedOutput.body;
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
$metadata: $metadata,
|
|
1091
|
+
throwDefaultError({
|
|
1092
|
+
output: output,
|
|
1093
|
+
parsedBody: parsedBody,
|
|
1094
|
+
exceptionCtor: __BaseException,
|
|
1095
|
+
errorCode: errorCode,
|
|
1236
1096
|
});
|
|
1237
|
-
|
|
1097
|
+
_d.label = 11;
|
|
1098
|
+
case 11: return [2];
|
|
1238
1099
|
}
|
|
1239
1100
|
});
|
|
1240
1101
|
}); };
|
|
@@ -1246,24 +1107,23 @@ export var deserializeAws_restJson1GetCanaryCommand = function (output, context)
|
|
|
1246
1107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1247
1108
|
return [2, deserializeAws_restJson1GetCanaryCommandError(output, context)];
|
|
1248
1109
|
}
|
|
1249
|
-
contents = {
|
|
1110
|
+
contents = map({
|
|
1250
1111
|
$metadata: deserializeMetadata(output),
|
|
1251
|
-
|
|
1252
|
-
};
|
|
1112
|
+
});
|
|
1253
1113
|
_a = __expectNonNull;
|
|
1254
1114
|
_b = __expectObject;
|
|
1255
1115
|
return [4, parseBody(output.body, context)];
|
|
1256
1116
|
case 1:
|
|
1257
1117
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1258
|
-
if (data.Canary
|
|
1118
|
+
if (data.Canary != null) {
|
|
1259
1119
|
contents.Canary = deserializeAws_restJson1Canary(data.Canary, context);
|
|
1260
1120
|
}
|
|
1261
|
-
return [2,
|
|
1121
|
+
return [2, contents];
|
|
1262
1122
|
}
|
|
1263
1123
|
});
|
|
1264
1124
|
}); };
|
|
1265
1125
|
var deserializeAws_restJson1GetCanaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1266
|
-
var parsedOutput, _a,
|
|
1126
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1267
1127
|
var _c;
|
|
1268
1128
|
return __generator(this, function (_d) {
|
|
1269
1129
|
switch (_d.label) {
|
|
@@ -1288,14 +1148,14 @@ var deserializeAws_restJson1GetCanaryCommandError = function (output, context) {
|
|
|
1288
1148
|
case 5: throw _d.sent();
|
|
1289
1149
|
case 6:
|
|
1290
1150
|
parsedBody = parsedOutput.body;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
$metadata: $metadata,
|
|
1151
|
+
throwDefaultError({
|
|
1152
|
+
output: output,
|
|
1153
|
+
parsedBody: parsedBody,
|
|
1154
|
+
exceptionCtor: __BaseException,
|
|
1155
|
+
errorCode: errorCode,
|
|
1297
1156
|
});
|
|
1298
|
-
|
|
1157
|
+
_d.label = 7;
|
|
1158
|
+
case 7: return [2];
|
|
1299
1159
|
}
|
|
1300
1160
|
});
|
|
1301
1161
|
}); };
|
|
@@ -1307,28 +1167,26 @@ export var deserializeAws_restJson1GetCanaryRunsCommand = function (output, cont
|
|
|
1307
1167
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1308
1168
|
return [2, deserializeAws_restJson1GetCanaryRunsCommandError(output, context)];
|
|
1309
1169
|
}
|
|
1310
|
-
contents = {
|
|
1170
|
+
contents = map({
|
|
1311
1171
|
$metadata: deserializeMetadata(output),
|
|
1312
|
-
|
|
1313
|
-
NextToken: undefined,
|
|
1314
|
-
};
|
|
1172
|
+
});
|
|
1315
1173
|
_a = __expectNonNull;
|
|
1316
1174
|
_b = __expectObject;
|
|
1317
1175
|
return [4, parseBody(output.body, context)];
|
|
1318
1176
|
case 1:
|
|
1319
1177
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1320
|
-
if (data.CanaryRuns
|
|
1178
|
+
if (data.CanaryRuns != null) {
|
|
1321
1179
|
contents.CanaryRuns = deserializeAws_restJson1CanaryRuns(data.CanaryRuns, context);
|
|
1322
1180
|
}
|
|
1323
|
-
if (data.NextToken
|
|
1181
|
+
if (data.NextToken != null) {
|
|
1324
1182
|
contents.NextToken = __expectString(data.NextToken);
|
|
1325
1183
|
}
|
|
1326
|
-
return [2,
|
|
1184
|
+
return [2, contents];
|
|
1327
1185
|
}
|
|
1328
1186
|
});
|
|
1329
1187
|
}); };
|
|
1330
1188
|
var deserializeAws_restJson1GetCanaryRunsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1331
|
-
var parsedOutput, _a,
|
|
1189
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1332
1190
|
var _c;
|
|
1333
1191
|
return __generator(this, function (_d) {
|
|
1334
1192
|
switch (_d.label) {
|
|
@@ -1357,14 +1215,14 @@ var deserializeAws_restJson1GetCanaryRunsCommandError = function (output, contex
|
|
|
1357
1215
|
case 7: throw _d.sent();
|
|
1358
1216
|
case 8:
|
|
1359
1217
|
parsedBody = parsedOutput.body;
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
$metadata: $metadata,
|
|
1218
|
+
throwDefaultError({
|
|
1219
|
+
output: output,
|
|
1220
|
+
parsedBody: parsedBody,
|
|
1221
|
+
exceptionCtor: __BaseException,
|
|
1222
|
+
errorCode: errorCode,
|
|
1366
1223
|
});
|
|
1367
|
-
|
|
1224
|
+
_d.label = 9;
|
|
1225
|
+
case 9: return [2];
|
|
1368
1226
|
}
|
|
1369
1227
|
});
|
|
1370
1228
|
}); };
|
|
@@ -1376,24 +1234,23 @@ export var deserializeAws_restJson1GetGroupCommand = function (output, context)
|
|
|
1376
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1377
1235
|
return [2, deserializeAws_restJson1GetGroupCommandError(output, context)];
|
|
1378
1236
|
}
|
|
1379
|
-
contents = {
|
|
1237
|
+
contents = map({
|
|
1380
1238
|
$metadata: deserializeMetadata(output),
|
|
1381
|
-
|
|
1382
|
-
};
|
|
1239
|
+
});
|
|
1383
1240
|
_a = __expectNonNull;
|
|
1384
1241
|
_b = __expectObject;
|
|
1385
1242
|
return [4, parseBody(output.body, context)];
|
|
1386
1243
|
case 1:
|
|
1387
1244
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1388
|
-
if (data.Group
|
|
1245
|
+
if (data.Group != null) {
|
|
1389
1246
|
contents.Group = deserializeAws_restJson1Group(data.Group, context);
|
|
1390
1247
|
}
|
|
1391
|
-
return [2,
|
|
1248
|
+
return [2, contents];
|
|
1392
1249
|
}
|
|
1393
1250
|
});
|
|
1394
1251
|
}); };
|
|
1395
1252
|
var deserializeAws_restJson1GetGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1396
|
-
var parsedOutput, _a,
|
|
1253
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1397
1254
|
var _c;
|
|
1398
1255
|
return __generator(this, function (_d) {
|
|
1399
1256
|
switch (_d.label) {
|
|
@@ -1426,14 +1283,14 @@ var deserializeAws_restJson1GetGroupCommandError = function (output, context) {
|
|
|
1426
1283
|
case 9: throw _d.sent();
|
|
1427
1284
|
case 10:
|
|
1428
1285
|
parsedBody = parsedOutput.body;
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
$metadata: $metadata,
|
|
1286
|
+
throwDefaultError({
|
|
1287
|
+
output: output,
|
|
1288
|
+
parsedBody: parsedBody,
|
|
1289
|
+
exceptionCtor: __BaseException,
|
|
1290
|
+
errorCode: errorCode,
|
|
1435
1291
|
});
|
|
1436
|
-
|
|
1292
|
+
_d.label = 11;
|
|
1293
|
+
case 11: return [2];
|
|
1437
1294
|
}
|
|
1438
1295
|
});
|
|
1439
1296
|
}); };
|
|
@@ -1445,28 +1302,26 @@ export var deserializeAws_restJson1ListAssociatedGroupsCommand = function (outpu
|
|
|
1445
1302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1446
1303
|
return [2, deserializeAws_restJson1ListAssociatedGroupsCommandError(output, context)];
|
|
1447
1304
|
}
|
|
1448
|
-
contents = {
|
|
1305
|
+
contents = map({
|
|
1449
1306
|
$metadata: deserializeMetadata(output),
|
|
1450
|
-
|
|
1451
|
-
NextToken: undefined,
|
|
1452
|
-
};
|
|
1307
|
+
});
|
|
1453
1308
|
_a = __expectNonNull;
|
|
1454
1309
|
_b = __expectObject;
|
|
1455
1310
|
return [4, parseBody(output.body, context)];
|
|
1456
1311
|
case 1:
|
|
1457
1312
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1458
|
-
if (data.Groups
|
|
1313
|
+
if (data.Groups != null) {
|
|
1459
1314
|
contents.Groups = deserializeAws_restJson1GroupSummaryList(data.Groups, context);
|
|
1460
1315
|
}
|
|
1461
|
-
if (data.NextToken
|
|
1316
|
+
if (data.NextToken != null) {
|
|
1462
1317
|
contents.NextToken = __expectString(data.NextToken);
|
|
1463
1318
|
}
|
|
1464
|
-
return [2,
|
|
1319
|
+
return [2, contents];
|
|
1465
1320
|
}
|
|
1466
1321
|
});
|
|
1467
1322
|
}); };
|
|
1468
1323
|
var deserializeAws_restJson1ListAssociatedGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1469
|
-
var parsedOutput, _a,
|
|
1324
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1470
1325
|
var _c;
|
|
1471
1326
|
return __generator(this, function (_d) {
|
|
1472
1327
|
switch (_d.label) {
|
|
@@ -1495,14 +1350,14 @@ var deserializeAws_restJson1ListAssociatedGroupsCommandError = function (output,
|
|
|
1495
1350
|
case 7: throw _d.sent();
|
|
1496
1351
|
case 8:
|
|
1497
1352
|
parsedBody = parsedOutput.body;
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
$metadata: $metadata,
|
|
1353
|
+
throwDefaultError({
|
|
1354
|
+
output: output,
|
|
1355
|
+
parsedBody: parsedBody,
|
|
1356
|
+
exceptionCtor: __BaseException,
|
|
1357
|
+
errorCode: errorCode,
|
|
1504
1358
|
});
|
|
1505
|
-
|
|
1359
|
+
_d.label = 9;
|
|
1360
|
+
case 9: return [2];
|
|
1506
1361
|
}
|
|
1507
1362
|
});
|
|
1508
1363
|
}); };
|
|
@@ -1514,28 +1369,26 @@ export var deserializeAws_restJson1ListGroupResourcesCommand = function (output,
|
|
|
1514
1369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1515
1370
|
return [2, deserializeAws_restJson1ListGroupResourcesCommandError(output, context)];
|
|
1516
1371
|
}
|
|
1517
|
-
contents = {
|
|
1372
|
+
contents = map({
|
|
1518
1373
|
$metadata: deserializeMetadata(output),
|
|
1519
|
-
|
|
1520
|
-
Resources: undefined,
|
|
1521
|
-
};
|
|
1374
|
+
});
|
|
1522
1375
|
_a = __expectNonNull;
|
|
1523
1376
|
_b = __expectObject;
|
|
1524
1377
|
return [4, parseBody(output.body, context)];
|
|
1525
1378
|
case 1:
|
|
1526
1379
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1527
|
-
if (data.NextToken
|
|
1380
|
+
if (data.NextToken != null) {
|
|
1528
1381
|
contents.NextToken = __expectString(data.NextToken);
|
|
1529
1382
|
}
|
|
1530
|
-
if (data.Resources
|
|
1383
|
+
if (data.Resources != null) {
|
|
1531
1384
|
contents.Resources = deserializeAws_restJson1StringList(data.Resources, context);
|
|
1532
1385
|
}
|
|
1533
|
-
return [2,
|
|
1386
|
+
return [2, contents];
|
|
1534
1387
|
}
|
|
1535
1388
|
});
|
|
1536
1389
|
}); };
|
|
1537
1390
|
var deserializeAws_restJson1ListGroupResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1538
|
-
var parsedOutput, _a,
|
|
1391
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1539
1392
|
var _c;
|
|
1540
1393
|
return __generator(this, function (_d) {
|
|
1541
1394
|
switch (_d.label) {
|
|
@@ -1568,14 +1421,14 @@ var deserializeAws_restJson1ListGroupResourcesCommandError = function (output, c
|
|
|
1568
1421
|
case 9: throw _d.sent();
|
|
1569
1422
|
case 10:
|
|
1570
1423
|
parsedBody = parsedOutput.body;
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
$metadata: $metadata,
|
|
1424
|
+
throwDefaultError({
|
|
1425
|
+
output: output,
|
|
1426
|
+
parsedBody: parsedBody,
|
|
1427
|
+
exceptionCtor: __BaseException,
|
|
1428
|
+
errorCode: errorCode,
|
|
1577
1429
|
});
|
|
1578
|
-
|
|
1430
|
+
_d.label = 11;
|
|
1431
|
+
case 11: return [2];
|
|
1579
1432
|
}
|
|
1580
1433
|
});
|
|
1581
1434
|
}); };
|
|
@@ -1587,28 +1440,26 @@ export var deserializeAws_restJson1ListGroupsCommand = function (output, context
|
|
|
1587
1440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1588
1441
|
return [2, deserializeAws_restJson1ListGroupsCommandError(output, context)];
|
|
1589
1442
|
}
|
|
1590
|
-
contents = {
|
|
1443
|
+
contents = map({
|
|
1591
1444
|
$metadata: deserializeMetadata(output),
|
|
1592
|
-
|
|
1593
|
-
NextToken: undefined,
|
|
1594
|
-
};
|
|
1445
|
+
});
|
|
1595
1446
|
_a = __expectNonNull;
|
|
1596
1447
|
_b = __expectObject;
|
|
1597
1448
|
return [4, parseBody(output.body, context)];
|
|
1598
1449
|
case 1:
|
|
1599
1450
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1600
|
-
if (data.Groups
|
|
1451
|
+
if (data.Groups != null) {
|
|
1601
1452
|
contents.Groups = deserializeAws_restJson1GroupSummaryList(data.Groups, context);
|
|
1602
1453
|
}
|
|
1603
|
-
if (data.NextToken
|
|
1454
|
+
if (data.NextToken != null) {
|
|
1604
1455
|
contents.NextToken = __expectString(data.NextToken);
|
|
1605
1456
|
}
|
|
1606
|
-
return [2,
|
|
1457
|
+
return [2, contents];
|
|
1607
1458
|
}
|
|
1608
1459
|
});
|
|
1609
1460
|
}); };
|
|
1610
1461
|
var deserializeAws_restJson1ListGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1611
|
-
var parsedOutput, _a,
|
|
1462
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1612
1463
|
var _c;
|
|
1613
1464
|
return __generator(this, function (_d) {
|
|
1614
1465
|
switch (_d.label) {
|
|
@@ -1633,14 +1484,14 @@ var deserializeAws_restJson1ListGroupsCommandError = function (output, context)
|
|
|
1633
1484
|
case 5: throw _d.sent();
|
|
1634
1485
|
case 6:
|
|
1635
1486
|
parsedBody = parsedOutput.body;
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
$metadata: $metadata,
|
|
1487
|
+
throwDefaultError({
|
|
1488
|
+
output: output,
|
|
1489
|
+
parsedBody: parsedBody,
|
|
1490
|
+
exceptionCtor: __BaseException,
|
|
1491
|
+
errorCode: errorCode,
|
|
1642
1492
|
});
|
|
1643
|
-
|
|
1493
|
+
_d.label = 7;
|
|
1494
|
+
case 7: return [2];
|
|
1644
1495
|
}
|
|
1645
1496
|
});
|
|
1646
1497
|
}); };
|
|
@@ -1652,24 +1503,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1652
1503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1653
1504
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1654
1505
|
}
|
|
1655
|
-
contents = {
|
|
1506
|
+
contents = map({
|
|
1656
1507
|
$metadata: deserializeMetadata(output),
|
|
1657
|
-
|
|
1658
|
-
};
|
|
1508
|
+
});
|
|
1659
1509
|
_a = __expectNonNull;
|
|
1660
1510
|
_b = __expectObject;
|
|
1661
1511
|
return [4, parseBody(output.body, context)];
|
|
1662
1512
|
case 1:
|
|
1663
1513
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1664
|
-
if (data.Tags
|
|
1514
|
+
if (data.Tags != null) {
|
|
1665
1515
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
1666
1516
|
}
|
|
1667
|
-
return [2,
|
|
1517
|
+
return [2, contents];
|
|
1668
1518
|
}
|
|
1669
1519
|
});
|
|
1670
1520
|
}); };
|
|
1671
1521
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1672
|
-
var parsedOutput, _a,
|
|
1522
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1673
1523
|
var _c;
|
|
1674
1524
|
return __generator(this, function (_d) {
|
|
1675
1525
|
switch (_d.label) {
|
|
@@ -1706,14 +1556,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1706
1556
|
case 11: throw _d.sent();
|
|
1707
1557
|
case 12:
|
|
1708
1558
|
parsedBody = parsedOutput.body;
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
$metadata: $metadata,
|
|
1559
|
+
throwDefaultError({
|
|
1560
|
+
output: output,
|
|
1561
|
+
parsedBody: parsedBody,
|
|
1562
|
+
exceptionCtor: __BaseException,
|
|
1563
|
+
errorCode: errorCode,
|
|
1715
1564
|
});
|
|
1716
|
-
|
|
1565
|
+
_d.label = 13;
|
|
1566
|
+
case 13: return [2];
|
|
1717
1567
|
}
|
|
1718
1568
|
});
|
|
1719
1569
|
}); };
|
|
@@ -1725,18 +1575,18 @@ export var deserializeAws_restJson1StartCanaryCommand = function (output, contex
|
|
|
1725
1575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1726
1576
|
return [2, deserializeAws_restJson1StartCanaryCommandError(output, context)];
|
|
1727
1577
|
}
|
|
1728
|
-
contents = {
|
|
1578
|
+
contents = map({
|
|
1729
1579
|
$metadata: deserializeMetadata(output),
|
|
1730
|
-
};
|
|
1580
|
+
});
|
|
1731
1581
|
return [4, collectBody(output.body, context)];
|
|
1732
1582
|
case 1:
|
|
1733
1583
|
_a.sent();
|
|
1734
|
-
return [2,
|
|
1584
|
+
return [2, contents];
|
|
1735
1585
|
}
|
|
1736
1586
|
});
|
|
1737
1587
|
}); };
|
|
1738
1588
|
var deserializeAws_restJson1StartCanaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1739
|
-
var parsedOutput, _a,
|
|
1589
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1740
1590
|
var _c;
|
|
1741
1591
|
return __generator(this, function (_d) {
|
|
1742
1592
|
switch (_d.label) {
|
|
@@ -1769,14 +1619,14 @@ var deserializeAws_restJson1StartCanaryCommandError = function (output, context)
|
|
|
1769
1619
|
case 9: throw _d.sent();
|
|
1770
1620
|
case 10:
|
|
1771
1621
|
parsedBody = parsedOutput.body;
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
$metadata: $metadata,
|
|
1622
|
+
throwDefaultError({
|
|
1623
|
+
output: output,
|
|
1624
|
+
parsedBody: parsedBody,
|
|
1625
|
+
exceptionCtor: __BaseException,
|
|
1626
|
+
errorCode: errorCode,
|
|
1778
1627
|
});
|
|
1779
|
-
|
|
1628
|
+
_d.label = 11;
|
|
1629
|
+
case 11: return [2];
|
|
1780
1630
|
}
|
|
1781
1631
|
});
|
|
1782
1632
|
}); };
|
|
@@ -1788,18 +1638,18 @@ export var deserializeAws_restJson1StopCanaryCommand = function (output, context
|
|
|
1788
1638
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1789
1639
|
return [2, deserializeAws_restJson1StopCanaryCommandError(output, context)];
|
|
1790
1640
|
}
|
|
1791
|
-
contents = {
|
|
1641
|
+
contents = map({
|
|
1792
1642
|
$metadata: deserializeMetadata(output),
|
|
1793
|
-
};
|
|
1643
|
+
});
|
|
1794
1644
|
return [4, collectBody(output.body, context)];
|
|
1795
1645
|
case 1:
|
|
1796
1646
|
_a.sent();
|
|
1797
|
-
return [2,
|
|
1647
|
+
return [2, contents];
|
|
1798
1648
|
}
|
|
1799
1649
|
});
|
|
1800
1650
|
}); };
|
|
1801
1651
|
var deserializeAws_restJson1StopCanaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
|
-
var parsedOutput, _a,
|
|
1652
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1803
1653
|
var _c;
|
|
1804
1654
|
return __generator(this, function (_d) {
|
|
1805
1655
|
switch (_d.label) {
|
|
@@ -1832,14 +1682,14 @@ var deserializeAws_restJson1StopCanaryCommandError = function (output, context)
|
|
|
1832
1682
|
case 9: throw _d.sent();
|
|
1833
1683
|
case 10:
|
|
1834
1684
|
parsedBody = parsedOutput.body;
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
$metadata: $metadata,
|
|
1685
|
+
throwDefaultError({
|
|
1686
|
+
output: output,
|
|
1687
|
+
parsedBody: parsedBody,
|
|
1688
|
+
exceptionCtor: __BaseException,
|
|
1689
|
+
errorCode: errorCode,
|
|
1841
1690
|
});
|
|
1842
|
-
|
|
1691
|
+
_d.label = 11;
|
|
1692
|
+
case 11: return [2];
|
|
1843
1693
|
}
|
|
1844
1694
|
});
|
|
1845
1695
|
}); };
|
|
@@ -1851,18 +1701,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1851
1701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1852
1702
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1853
1703
|
}
|
|
1854
|
-
contents = {
|
|
1704
|
+
contents = map({
|
|
1855
1705
|
$metadata: deserializeMetadata(output),
|
|
1856
|
-
};
|
|
1706
|
+
});
|
|
1857
1707
|
return [4, collectBody(output.body, context)];
|
|
1858
1708
|
case 1:
|
|
1859
1709
|
_a.sent();
|
|
1860
|
-
return [2,
|
|
1710
|
+
return [2, contents];
|
|
1861
1711
|
}
|
|
1862
1712
|
});
|
|
1863
1713
|
}); };
|
|
1864
1714
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1865
|
-
var parsedOutput, _a,
|
|
1715
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1866
1716
|
var _c;
|
|
1867
1717
|
return __generator(this, function (_d) {
|
|
1868
1718
|
switch (_d.label) {
|
|
@@ -1899,14 +1749,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1899
1749
|
case 11: throw _d.sent();
|
|
1900
1750
|
case 12:
|
|
1901
1751
|
parsedBody = parsedOutput.body;
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
$metadata: $metadata,
|
|
1752
|
+
throwDefaultError({
|
|
1753
|
+
output: output,
|
|
1754
|
+
parsedBody: parsedBody,
|
|
1755
|
+
exceptionCtor: __BaseException,
|
|
1756
|
+
errorCode: errorCode,
|
|
1908
1757
|
});
|
|
1909
|
-
|
|
1758
|
+
_d.label = 13;
|
|
1759
|
+
case 13: return [2];
|
|
1910
1760
|
}
|
|
1911
1761
|
});
|
|
1912
1762
|
}); };
|
|
@@ -1918,18 +1768,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1918
1768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1919
1769
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1920
1770
|
}
|
|
1921
|
-
contents = {
|
|
1771
|
+
contents = map({
|
|
1922
1772
|
$metadata: deserializeMetadata(output),
|
|
1923
|
-
};
|
|
1773
|
+
});
|
|
1924
1774
|
return [4, collectBody(output.body, context)];
|
|
1925
1775
|
case 1:
|
|
1926
1776
|
_a.sent();
|
|
1927
|
-
return [2,
|
|
1777
|
+
return [2, contents];
|
|
1928
1778
|
}
|
|
1929
1779
|
});
|
|
1930
1780
|
}); };
|
|
1931
1781
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1932
|
-
var parsedOutput, _a,
|
|
1782
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1933
1783
|
var _c;
|
|
1934
1784
|
return __generator(this, function (_d) {
|
|
1935
1785
|
switch (_d.label) {
|
|
@@ -1966,14 +1816,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1966
1816
|
case 11: throw _d.sent();
|
|
1967
1817
|
case 12:
|
|
1968
1818
|
parsedBody = parsedOutput.body;
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
$metadata: $metadata,
|
|
1819
|
+
throwDefaultError({
|
|
1820
|
+
output: output,
|
|
1821
|
+
parsedBody: parsedBody,
|
|
1822
|
+
exceptionCtor: __BaseException,
|
|
1823
|
+
errorCode: errorCode,
|
|
1975
1824
|
});
|
|
1976
|
-
|
|
1825
|
+
_d.label = 13;
|
|
1826
|
+
case 13: return [2];
|
|
1977
1827
|
}
|
|
1978
1828
|
});
|
|
1979
1829
|
}); };
|
|
@@ -1985,18 +1835,18 @@ export var deserializeAws_restJson1UpdateCanaryCommand = function (output, conte
|
|
|
1985
1835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1986
1836
|
return [2, deserializeAws_restJson1UpdateCanaryCommandError(output, context)];
|
|
1987
1837
|
}
|
|
1988
|
-
contents = {
|
|
1838
|
+
contents = map({
|
|
1989
1839
|
$metadata: deserializeMetadata(output),
|
|
1990
|
-
};
|
|
1840
|
+
});
|
|
1991
1841
|
return [4, collectBody(output.body, context)];
|
|
1992
1842
|
case 1:
|
|
1993
1843
|
_a.sent();
|
|
1994
|
-
return [2,
|
|
1844
|
+
return [2, contents];
|
|
1995
1845
|
}
|
|
1996
1846
|
});
|
|
1997
1847
|
}); };
|
|
1998
1848
|
var deserializeAws_restJson1UpdateCanaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1999
|
-
var parsedOutput, _a,
|
|
1849
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2000
1850
|
var _c;
|
|
2001
1851
|
return __generator(this, function (_d) {
|
|
2002
1852
|
switch (_d.label) {
|
|
@@ -2033,23 +1883,24 @@ var deserializeAws_restJson1UpdateCanaryCommandError = function (output, context
|
|
|
2033
1883
|
case 11: throw _d.sent();
|
|
2034
1884
|
case 12:
|
|
2035
1885
|
parsedBody = parsedOutput.body;
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
$metadata: $metadata,
|
|
1886
|
+
throwDefaultError({
|
|
1887
|
+
output: output,
|
|
1888
|
+
parsedBody: parsedBody,
|
|
1889
|
+
exceptionCtor: __BaseException,
|
|
1890
|
+
errorCode: errorCode,
|
|
2042
1891
|
});
|
|
2043
|
-
|
|
1892
|
+
_d.label = 13;
|
|
1893
|
+
case 13: return [2];
|
|
2044
1894
|
}
|
|
2045
1895
|
});
|
|
2046
1896
|
}); };
|
|
1897
|
+
var map = __map;
|
|
2047
1898
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2048
1899
|
var contents, data, exception;
|
|
2049
1900
|
return __generator(this, function (_a) {
|
|
2050
|
-
contents = {};
|
|
1901
|
+
contents = map({});
|
|
2051
1902
|
data = parsedOutput.body;
|
|
2052
|
-
if (data.Message
|
|
1903
|
+
if (data.Message != null) {
|
|
2053
1904
|
contents.Message = __expectString(data.Message);
|
|
2054
1905
|
}
|
|
2055
1906
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2059,9 +1910,9 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
2059
1910
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2060
1911
|
var contents, data, exception;
|
|
2061
1912
|
return __generator(this, function (_a) {
|
|
2062
|
-
contents = {};
|
|
1913
|
+
contents = map({});
|
|
2063
1914
|
data = parsedOutput.body;
|
|
2064
|
-
if (data.Message
|
|
1915
|
+
if (data.Message != null) {
|
|
2065
1916
|
contents.Message = __expectString(data.Message);
|
|
2066
1917
|
}
|
|
2067
1918
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2071,9 +1922,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2071
1922
|
var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2072
1923
|
var contents, data, exception;
|
|
2073
1924
|
return __generator(this, function (_a) {
|
|
2074
|
-
contents = {};
|
|
1925
|
+
contents = map({});
|
|
2075
1926
|
data = parsedOutput.body;
|
|
2076
|
-
if (data.Message
|
|
1927
|
+
if (data.Message != null) {
|
|
2077
1928
|
contents.Message = __expectString(data.Message);
|
|
2078
1929
|
}
|
|
2079
1930
|
exception = new InternalFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2083,9 +1934,9 @@ var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedO
|
|
|
2083
1934
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2084
1935
|
var contents, data, exception;
|
|
2085
1936
|
return __generator(this, function (_a) {
|
|
2086
|
-
contents = {};
|
|
1937
|
+
contents = map({});
|
|
2087
1938
|
data = parsedOutput.body;
|
|
2088
|
-
if (data.Message
|
|
1939
|
+
if (data.Message != null) {
|
|
2089
1940
|
contents.Message = __expectString(data.Message);
|
|
2090
1941
|
}
|
|
2091
1942
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2095,9 +1946,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
2095
1946
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2096
1947
|
var contents, data, exception;
|
|
2097
1948
|
return __generator(this, function (_a) {
|
|
2098
|
-
contents = {};
|
|
1949
|
+
contents = map({});
|
|
2099
1950
|
data = parsedOutput.body;
|
|
2100
|
-
if (data.Message
|
|
1951
|
+
if (data.Message != null) {
|
|
2101
1952
|
contents.Message = __expectString(data.Message);
|
|
2102
1953
|
}
|
|
2103
1954
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2107,9 +1958,9 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
2107
1958
|
var deserializeAws_restJson1RequestEntityTooLargeExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2108
1959
|
var contents, data, exception;
|
|
2109
1960
|
return __generator(this, function (_a) {
|
|
2110
|
-
contents = {};
|
|
1961
|
+
contents = map({});
|
|
2111
1962
|
data = parsedOutput.body;
|
|
2112
|
-
if (data.Message
|
|
1963
|
+
if (data.Message != null) {
|
|
2113
1964
|
contents.Message = __expectString(data.Message);
|
|
2114
1965
|
}
|
|
2115
1966
|
exception = new RequestEntityTooLargeException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2119,9 +1970,9 @@ var deserializeAws_restJson1RequestEntityTooLargeExceptionResponse = function (p
|
|
|
2119
1970
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2120
1971
|
var contents, data, exception;
|
|
2121
1972
|
return __generator(this, function (_a) {
|
|
2122
|
-
contents = {};
|
|
1973
|
+
contents = map({});
|
|
2123
1974
|
data = parsedOutput.body;
|
|
2124
|
-
if (data.Message
|
|
1975
|
+
if (data.Message != null) {
|
|
2125
1976
|
contents.Message = __expectString(data.Message);
|
|
2126
1977
|
}
|
|
2127
1978
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2131,9 +1982,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
2131
1982
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2132
1983
|
var contents, data, exception;
|
|
2133
1984
|
return __generator(this, function (_a) {
|
|
2134
|
-
contents = {};
|
|
1985
|
+
contents = map({});
|
|
2135
1986
|
data = parsedOutput.body;
|
|
2136
|
-
if (data.Message
|
|
1987
|
+
if (data.Message != null) {
|
|
2137
1988
|
contents.Message = __expectString(data.Message);
|
|
2138
1989
|
}
|
|
2139
1990
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2143,9 +1994,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
2143
1994
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2144
1995
|
var contents, data, exception;
|
|
2145
1996
|
return __generator(this, function (_a) {
|
|
2146
|
-
contents = {};
|
|
1997
|
+
contents = map({});
|
|
2147
1998
|
data = parsedOutput.body;
|
|
2148
|
-
if (data.Message
|
|
1999
|
+
if (data.Message != null) {
|
|
2149
2000
|
contents.Message = __expectString(data.Message);
|
|
2150
2001
|
}
|
|
2151
2002
|
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2155,9 +2006,9 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
2155
2006
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2156
2007
|
var contents, data, exception;
|
|
2157
2008
|
return __generator(this, function (_a) {
|
|
2158
|
-
contents = {};
|
|
2009
|
+
contents = map({});
|
|
2159
2010
|
data = parsedOutput.body;
|
|
2160
|
-
if (data.Message
|
|
2011
|
+
if (data.Message != null) {
|
|
2161
2012
|
contents.Message = __expectString(data.Message);
|
|
2162
2013
|
}
|
|
2163
2014
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -2178,9 +2029,6 @@ var serializeAws_restJson1BaseScreenshotIgnoreCoordinates = function (input, con
|
|
|
2178
2029
|
return input
|
|
2179
2030
|
.filter(function (e) { return e != null; })
|
|
2180
2031
|
.map(function (entry) {
|
|
2181
|
-
if (entry === null) {
|
|
2182
|
-
return null;
|
|
2183
|
-
}
|
|
2184
2032
|
return entry;
|
|
2185
2033
|
});
|
|
2186
2034
|
};
|
|
@@ -2188,9 +2036,6 @@ var serializeAws_restJson1BaseScreenshots = function (input, context) {
|
|
|
2188
2036
|
return input
|
|
2189
2037
|
.filter(function (e) { return e != null; })
|
|
2190
2038
|
.map(function (entry) {
|
|
2191
|
-
if (entry === null) {
|
|
2192
|
-
return null;
|
|
2193
|
-
}
|
|
2194
2039
|
return serializeAws_restJson1BaseScreenshot(entry, context);
|
|
2195
2040
|
});
|
|
2196
2041
|
};
|
|
@@ -2209,9 +2054,6 @@ var serializeAws_restJson1DescribeCanariesLastRunNameFilter = function (input, c
|
|
|
2209
2054
|
return input
|
|
2210
2055
|
.filter(function (e) { return e != null; })
|
|
2211
2056
|
.map(function (entry) {
|
|
2212
|
-
if (entry === null) {
|
|
2213
|
-
return null;
|
|
2214
|
-
}
|
|
2215
2057
|
return entry;
|
|
2216
2058
|
});
|
|
2217
2059
|
};
|
|
@@ -2219,9 +2061,6 @@ var serializeAws_restJson1DescribeCanariesNameFilter = function (input, context)
|
|
|
2219
2061
|
return input
|
|
2220
2062
|
.filter(function (e) { return e != null; })
|
|
2221
2063
|
.map(function (entry) {
|
|
2222
|
-
if (entry === null) {
|
|
2223
|
-
return null;
|
|
2224
|
-
}
|
|
2225
2064
|
return entry;
|
|
2226
2065
|
});
|
|
2227
2066
|
};
|
|
@@ -2242,9 +2081,6 @@ var serializeAws_restJson1SecurityGroupIds = function (input, context) {
|
|
|
2242
2081
|
return input
|
|
2243
2082
|
.filter(function (e) { return e != null; })
|
|
2244
2083
|
.map(function (entry) {
|
|
2245
|
-
if (entry === null) {
|
|
2246
|
-
return null;
|
|
2247
|
-
}
|
|
2248
2084
|
return entry;
|
|
2249
2085
|
});
|
|
2250
2086
|
};
|
|
@@ -2252,9 +2088,6 @@ var serializeAws_restJson1SubnetIds = function (input, context) {
|
|
|
2252
2088
|
return input
|
|
2253
2089
|
.filter(function (e) { return e != null; })
|
|
2254
2090
|
.map(function (entry) {
|
|
2255
|
-
if (entry === null) {
|
|
2256
|
-
return null;
|
|
2257
|
-
}
|
|
2258
2091
|
return entry;
|
|
2259
2092
|
});
|
|
2260
2093
|
};
|