@aws-sdk/client-ssm-incidents 3.118.1 → 3.127.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 +30 -0
- package/dist-cjs/protocols/Aws_restJson1.js +281 -288
- package/dist-es/protocols/Aws_restJson1.js +219 -229
- package/dist-types/models/models_0.d.ts +25 -11
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/package.json +27 -27
|
@@ -16,8 +16,7 @@ export var serializeAws_restJson1CreateReplicationSetCommand = function (input,
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/createReplicationSet";
|
|
19
|
-
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.regions
|
|
20
|
-
input.regions !== null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) })));
|
|
19
|
+
body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.regions != null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) })));
|
|
21
20
|
return [2, new __HttpRequest({
|
|
22
21
|
protocol: protocol,
|
|
23
22
|
hostname: hostname,
|
|
@@ -42,13 +41,9 @@ export var serializeAws_restJson1CreateResponsePlanCommand = function (input, co
|
|
|
42
41
|
"content-type": "application/json",
|
|
43
42
|
};
|
|
44
43
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/createResponsePlan";
|
|
45
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions !==
|
|
46
|
-
input.actions !== null && { actions: serializeAws_restJson1ActionsList(input.actions, context) })), (input.chatChannel !== undefined &&
|
|
47
|
-
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName })), (input.engagements !== undefined &&
|
|
48
|
-
input.engagements !== null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) })), (input.incidentTemplate !== undefined &&
|
|
49
|
-
input.incidentTemplate !== null && {
|
|
44
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1ActionsList(input.actions, context) })), (input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.displayName != null && { displayName: input.displayName })), (input.engagements != null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) })), (input.incidentTemplate != null && {
|
|
50
45
|
incidentTemplate: serializeAws_restJson1IncidentTemplate(input.incidentTemplate, context),
|
|
51
|
-
})), (input.name
|
|
46
|
+
})), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
52
47
|
return [2, new __HttpRequest({
|
|
53
48
|
protocol: protocol,
|
|
54
49
|
hostname: hostname,
|
|
@@ -73,9 +68,7 @@ export var serializeAws_restJson1CreateTimelineEventCommand = function (input, c
|
|
|
73
68
|
"content-type": "application/json",
|
|
74
69
|
};
|
|
75
70
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/createTimelineEvent";
|
|
76
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.eventData
|
|
77
|
-
input.eventTime !== null && { eventTime: Math.round(input.eventTime.getTime() / 1000) })), (input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType })), (input.incidentRecordArn !== undefined &&
|
|
78
|
-
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })));
|
|
71
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.eventData != null && { eventData: input.eventData })), (input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) })), (input.eventType != null && { eventType: input.eventType })), (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })));
|
|
79
72
|
return [2, new __HttpRequest({
|
|
80
73
|
protocol: protocol,
|
|
81
74
|
hostname: hostname,
|
|
@@ -99,7 +92,7 @@ export var serializeAws_restJson1DeleteIncidentRecordCommand = function (input,
|
|
|
99
92
|
"content-type": "application/json",
|
|
100
93
|
};
|
|
101
94
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteIncidentRecord";
|
|
102
|
-
body = JSON.stringify(__assign({}, (input.arn
|
|
95
|
+
body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
|
|
103
96
|
return [2, new __HttpRequest({
|
|
104
97
|
protocol: protocol,
|
|
105
98
|
hostname: hostname,
|
|
@@ -146,7 +139,7 @@ export var serializeAws_restJson1DeleteResourcePolicyCommand = function (input,
|
|
|
146
139
|
"content-type": "application/json",
|
|
147
140
|
};
|
|
148
141
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteResourcePolicy";
|
|
149
|
-
body = JSON.stringify(__assign(__assign({}, (input.policyId
|
|
142
|
+
body = JSON.stringify(__assign(__assign({}, (input.policyId != null && { policyId: input.policyId })), (input.resourceArn != null && { resourceArn: input.resourceArn })));
|
|
150
143
|
return [2, new __HttpRequest({
|
|
151
144
|
protocol: protocol,
|
|
152
145
|
hostname: hostname,
|
|
@@ -170,7 +163,7 @@ export var serializeAws_restJson1DeleteResponsePlanCommand = function (input, co
|
|
|
170
163
|
"content-type": "application/json",
|
|
171
164
|
};
|
|
172
165
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteResponsePlan";
|
|
173
|
-
body = JSON.stringify(__assign({}, (input.arn
|
|
166
|
+
body = JSON.stringify(__assign({}, (input.arn != null && { arn: input.arn })));
|
|
174
167
|
return [2, new __HttpRequest({
|
|
175
168
|
protocol: protocol,
|
|
176
169
|
hostname: hostname,
|
|
@@ -194,8 +187,7 @@ export var serializeAws_restJson1DeleteTimelineEventCommand = function (input, c
|
|
|
194
187
|
"content-type": "application/json",
|
|
195
188
|
};
|
|
196
189
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteTimelineEvent";
|
|
197
|
-
body = JSON.stringify(__assign(__assign({}, (input.eventId
|
|
198
|
-
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })));
|
|
190
|
+
body = JSON.stringify(__assign(__assign({}, (input.eventId != null && { eventId: input.eventId })), (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })));
|
|
199
191
|
return [2, new __HttpRequest({
|
|
200
192
|
protocol: protocol,
|
|
201
193
|
hostname: hostname,
|
|
@@ -266,7 +258,7 @@ export var serializeAws_restJson1GetResourcePoliciesCommand = function (input, c
|
|
|
266
258
|
};
|
|
267
259
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/getResourcePolicies";
|
|
268
260
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
269
|
-
body = JSON.stringify(__assign(__assign({}, (input.maxResults
|
|
261
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
270
262
|
return [2, new __HttpRequest({
|
|
271
263
|
protocol: protocol,
|
|
272
264
|
hostname: hostname,
|
|
@@ -337,8 +329,7 @@ export var serializeAws_restJson1ListIncidentRecordsCommand = function (input, c
|
|
|
337
329
|
"content-type": "application/json",
|
|
338
330
|
};
|
|
339
331
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listIncidentRecords";
|
|
340
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters
|
|
341
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
332
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
342
333
|
return [2, new __HttpRequest({
|
|
343
334
|
protocol: protocol,
|
|
344
335
|
hostname: hostname,
|
|
@@ -362,8 +353,7 @@ export var serializeAws_restJson1ListRelatedItemsCommand = function (input, cont
|
|
|
362
353
|
"content-type": "application/json",
|
|
363
354
|
};
|
|
364
355
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listRelatedItems";
|
|
365
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.incidentRecordArn
|
|
366
|
-
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
|
|
356
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
367
357
|
return [2, new __HttpRequest({
|
|
368
358
|
protocol: protocol,
|
|
369
359
|
hostname: hostname,
|
|
@@ -387,7 +377,7 @@ export var serializeAws_restJson1ListReplicationSetsCommand = function (input, c
|
|
|
387
377
|
"content-type": "application/json",
|
|
388
378
|
};
|
|
389
379
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listReplicationSets";
|
|
390
|
-
body = JSON.stringify(__assign(__assign({}, (input.maxResults
|
|
380
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
391
381
|
return [2, new __HttpRequest({
|
|
392
382
|
protocol: protocol,
|
|
393
383
|
hostname: hostname,
|
|
@@ -411,7 +401,7 @@ export var serializeAws_restJson1ListResponsePlansCommand = function (input, con
|
|
|
411
401
|
"content-type": "application/json",
|
|
412
402
|
};
|
|
413
403
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listResponsePlans";
|
|
414
|
-
body = JSON.stringify(__assign(__assign({}, (input.maxResults
|
|
404
|
+
body = JSON.stringify(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
415
405
|
return [2, new __HttpRequest({
|
|
416
406
|
protocol: protocol,
|
|
417
407
|
hostname: hostname,
|
|
@@ -466,9 +456,7 @@ export var serializeAws_restJson1ListTimelineEventsCommand = function (input, co
|
|
|
466
456
|
"content-type": "application/json",
|
|
467
457
|
};
|
|
468
458
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listTimelineEvents";
|
|
469
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filters
|
|
470
|
-
input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.incidentRecordArn !== undefined &&
|
|
471
|
-
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy })), (input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder })));
|
|
459
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.sortBy != null && { sortBy: input.sortBy })), (input.sortOrder != null && { sortOrder: input.sortOrder })));
|
|
472
460
|
return [2, new __HttpRequest({
|
|
473
461
|
protocol: protocol,
|
|
474
462
|
hostname: hostname,
|
|
@@ -492,7 +480,7 @@ export var serializeAws_restJson1PutResourcePolicyCommand = function (input, con
|
|
|
492
480
|
"content-type": "application/json",
|
|
493
481
|
};
|
|
494
482
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/putResourcePolicy";
|
|
495
|
-
body = JSON.stringify(__assign(__assign({}, (input.policy
|
|
483
|
+
body = JSON.stringify(__assign(__assign({}, (input.policy != null && { policy: input.policy })), (input.resourceArn != null && { resourceArn: input.resourceArn })));
|
|
496
484
|
return [2, new __HttpRequest({
|
|
497
485
|
protocol: protocol,
|
|
498
486
|
hostname: hostname,
|
|
@@ -517,12 +505,9 @@ export var serializeAws_restJson1StartIncidentCommand = function (input, context
|
|
|
517
505
|
"content-type": "application/json",
|
|
518
506
|
};
|
|
519
507
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/startIncident";
|
|
520
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.impact
|
|
521
|
-
input.relatedItems !== null && {
|
|
508
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.impact != null && { impact: input.impact })), (input.relatedItems != null && {
|
|
522
509
|
relatedItems: serializeAws_restJson1RelatedItemList(input.relatedItems, context),
|
|
523
|
-
})), (input.responsePlanArn
|
|
524
|
-
input.responsePlanArn !== null && { responsePlanArn: input.responsePlanArn })), (input.title !== undefined && input.title !== null && { title: input.title })), (input.triggerDetails !== undefined &&
|
|
525
|
-
input.triggerDetails !== null && {
|
|
510
|
+
})), (input.responsePlanArn != null && { responsePlanArn: input.responsePlanArn })), (input.title != null && { title: input.title })), (input.triggerDetails != null && {
|
|
526
511
|
triggerDetails: serializeAws_restJson1TriggerDetails(input.triggerDetails, context),
|
|
527
512
|
})));
|
|
528
513
|
return [2, new __HttpRequest({
|
|
@@ -558,7 +543,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
558
543
|
else {
|
|
559
544
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
560
545
|
}
|
|
561
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
546
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
562
547
|
return [2, new __HttpRequest({
|
|
563
548
|
protocol: protocol,
|
|
564
549
|
hostname: hostname,
|
|
@@ -616,8 +601,7 @@ export var serializeAws_restJson1UpdateDeletionProtectionCommand = function (inp
|
|
|
616
601
|
"content-type": "application/json",
|
|
617
602
|
};
|
|
618
603
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateDeletionProtection";
|
|
619
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.arn
|
|
620
|
-
input.deletionProtected !== null && { deletionProtected: input.deletionProtected })));
|
|
604
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.arn != null && { arn: input.arn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deletionProtected != null && { deletionProtected: input.deletionProtected })));
|
|
621
605
|
return [2, new __HttpRequest({
|
|
622
606
|
protocol: protocol,
|
|
623
607
|
hostname: hostname,
|
|
@@ -642,11 +626,9 @@ export var serializeAws_restJson1UpdateIncidentRecordCommand = function (input,
|
|
|
642
626
|
"content-type": "application/json",
|
|
643
627
|
};
|
|
644
628
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateIncidentRecord";
|
|
645
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn
|
|
646
|
-
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.impact !== undefined && input.impact !== null && { impact: input.impact })), (input.notificationTargets !== undefined &&
|
|
647
|
-
input.notificationTargets !== null && {
|
|
629
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.impact != null && { impact: input.impact })), (input.notificationTargets != null && {
|
|
648
630
|
notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
|
|
649
|
-
})), (input.status
|
|
631
|
+
})), (input.status != null && { status: input.status })), (input.summary != null && { summary: input.summary })), (input.title != null && { title: input.title })));
|
|
650
632
|
return [2, new __HttpRequest({
|
|
651
633
|
protocol: protocol,
|
|
652
634
|
hostname: hostname,
|
|
@@ -671,9 +653,7 @@ export var serializeAws_restJson1UpdateRelatedItemsCommand = function (input, co
|
|
|
671
653
|
"content-type": "application/json",
|
|
672
654
|
};
|
|
673
655
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateRelatedItems";
|
|
674
|
-
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.incidentRecordArn
|
|
675
|
-
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })), (input.relatedItemsUpdate !== undefined &&
|
|
676
|
-
input.relatedItemsUpdate !== null && {
|
|
656
|
+
body = JSON.stringify(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })), (input.relatedItemsUpdate != null && {
|
|
677
657
|
relatedItemsUpdate: serializeAws_restJson1RelatedItemsUpdate(input.relatedItemsUpdate, context),
|
|
678
658
|
})));
|
|
679
659
|
return [2, new __HttpRequest({
|
|
@@ -700,8 +680,7 @@ export var serializeAws_restJson1UpdateReplicationSetCommand = function (input,
|
|
|
700
680
|
"content-type": "application/json",
|
|
701
681
|
};
|
|
702
682
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateReplicationSet";
|
|
703
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.actions !==
|
|
704
|
-
input.actions !== null && { actions: serializeAws_restJson1UpdateActionList(input.actions, context) })), (input.arn !== undefined && input.arn !== null && { arn: input.arn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
683
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1UpdateActionList(input.actions, context) })), (input.arn != null && { arn: input.arn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
705
684
|
return [2, new __HttpRequest({
|
|
706
685
|
protocol: protocol,
|
|
707
686
|
hostname: hostname,
|
|
@@ -726,19 +705,13 @@ export var serializeAws_restJson1UpdateResponsePlanCommand = function (input, co
|
|
|
726
705
|
"content-type": "application/json",
|
|
727
706
|
};
|
|
728
707
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateResponsePlan";
|
|
729
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions !==
|
|
730
|
-
input.actions !== null && { actions: serializeAws_restJson1ActionsList(input.actions, context) })), (input.arn !== undefined && input.arn !== null && { arn: input.arn })), (input.chatChannel !== undefined &&
|
|
731
|
-
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName })), (input.engagements !== undefined &&
|
|
732
|
-
input.engagements !== null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) })), (input.incidentTemplateDedupeString !== undefined &&
|
|
733
|
-
input.incidentTemplateDedupeString !== null && {
|
|
708
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1ActionsList(input.actions, context) })), (input.arn != null && { arn: input.arn })), (input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.displayName != null && { displayName: input.displayName })), (input.engagements != null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) })), (input.incidentTemplateDedupeString != null && {
|
|
734
709
|
incidentTemplateDedupeString: input.incidentTemplateDedupeString,
|
|
735
|
-
})), (input.incidentTemplateImpact
|
|
736
|
-
input.incidentTemplateImpact !== null && { incidentTemplateImpact: input.incidentTemplateImpact })), (input.incidentTemplateNotificationTargets !== undefined &&
|
|
737
|
-
input.incidentTemplateNotificationTargets !== null && {
|
|
710
|
+
})), (input.incidentTemplateImpact != null && { incidentTemplateImpact: input.incidentTemplateImpact })), (input.incidentTemplateNotificationTargets != null && {
|
|
738
711
|
incidentTemplateNotificationTargets: serializeAws_restJson1NotificationTargetSet(input.incidentTemplateNotificationTargets, context),
|
|
739
|
-
})), (input.incidentTemplateSummary
|
|
740
|
-
|
|
741
|
-
|
|
712
|
+
})), (input.incidentTemplateSummary != null && { incidentTemplateSummary: input.incidentTemplateSummary })), (input.incidentTemplateTags != null && {
|
|
713
|
+
incidentTemplateTags: serializeAws_restJson1TagMapUpdate(input.incidentTemplateTags, context),
|
|
714
|
+
})), (input.incidentTemplateTitle != null && { incidentTemplateTitle: input.incidentTemplateTitle })));
|
|
742
715
|
return [2, new __HttpRequest({
|
|
743
716
|
protocol: protocol,
|
|
744
717
|
hostname: hostname,
|
|
@@ -763,9 +736,7 @@ export var serializeAws_restJson1UpdateTimelineEventCommand = function (input, c
|
|
|
763
736
|
"content-type": "application/json",
|
|
764
737
|
};
|
|
765
738
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateTimelineEvent";
|
|
766
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.eventData
|
|
767
|
-
input.eventTime !== null && { eventTime: Math.round(input.eventTime.getTime() / 1000) })), (input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType })), (input.incidentRecordArn !== undefined &&
|
|
768
|
-
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn })));
|
|
739
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.eventData != null && { eventData: input.eventData })), (input.eventId != null && { eventId: input.eventId })), (input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) })), (input.eventType != null && { eventType: input.eventType })), (input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn })));
|
|
769
740
|
return [2, new __HttpRequest({
|
|
770
741
|
protocol: protocol,
|
|
771
742
|
hostname: hostname,
|
|
@@ -803,7 +774,7 @@ export var deserializeAws_restJson1CreateReplicationSetCommand = function (outpu
|
|
|
803
774
|
});
|
|
804
775
|
}); };
|
|
805
776
|
var deserializeAws_restJson1CreateReplicationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
806
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
777
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
807
778
|
var _c;
|
|
808
779
|
return __generator(this, function (_d) {
|
|
809
780
|
switch (_d.label) {
|
|
@@ -813,7 +784,6 @@ var deserializeAws_restJson1CreateReplicationSetCommandError = function (output,
|
|
|
813
784
|
return [4, parseBody(output.body, context)];
|
|
814
785
|
case 1:
|
|
815
786
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
816
|
-
errorCode = "UnknownError";
|
|
817
787
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
818
788
|
_b = errorCode;
|
|
819
789
|
switch (_b) {
|
|
@@ -845,10 +815,12 @@ var deserializeAws_restJson1CreateReplicationSetCommandError = function (output,
|
|
|
845
815
|
case 13: throw _d.sent();
|
|
846
816
|
case 14:
|
|
847
817
|
parsedBody = parsedOutput.body;
|
|
818
|
+
$metadata = deserializeMetadata(output);
|
|
819
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
848
820
|
response = new __BaseException({
|
|
849
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
821
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
850
822
|
$fault: "client",
|
|
851
|
-
$metadata:
|
|
823
|
+
$metadata: $metadata,
|
|
852
824
|
});
|
|
853
825
|
throw __decorateServiceException(response, parsedBody);
|
|
854
826
|
}
|
|
@@ -879,7 +851,7 @@ export var deserializeAws_restJson1CreateResponsePlanCommand = function (output,
|
|
|
879
851
|
});
|
|
880
852
|
}); };
|
|
881
853
|
var deserializeAws_restJson1CreateResponsePlanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
882
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
854
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
883
855
|
var _c;
|
|
884
856
|
return __generator(this, function (_d) {
|
|
885
857
|
switch (_d.label) {
|
|
@@ -889,7 +861,6 @@ var deserializeAws_restJson1CreateResponsePlanCommandError = function (output, c
|
|
|
889
861
|
return [4, parseBody(output.body, context)];
|
|
890
862
|
case 1:
|
|
891
863
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
892
|
-
errorCode = "UnknownError";
|
|
893
864
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
865
|
_b = errorCode;
|
|
895
866
|
switch (_b) {
|
|
@@ -921,10 +892,12 @@ var deserializeAws_restJson1CreateResponsePlanCommandError = function (output, c
|
|
|
921
892
|
case 13: throw _d.sent();
|
|
922
893
|
case 14:
|
|
923
894
|
parsedBody = parsedOutput.body;
|
|
895
|
+
$metadata = deserializeMetadata(output);
|
|
896
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
924
897
|
response = new __BaseException({
|
|
925
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
898
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
926
899
|
$fault: "client",
|
|
927
|
-
$metadata:
|
|
900
|
+
$metadata: $metadata,
|
|
928
901
|
});
|
|
929
902
|
throw __decorateServiceException(response, parsedBody);
|
|
930
903
|
}
|
|
@@ -959,7 +932,7 @@ export var deserializeAws_restJson1CreateTimelineEventCommand = function (output
|
|
|
959
932
|
});
|
|
960
933
|
}); };
|
|
961
934
|
var deserializeAws_restJson1CreateTimelineEventCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
962
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
935
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
963
936
|
var _c;
|
|
964
937
|
return __generator(this, function (_d) {
|
|
965
938
|
switch (_d.label) {
|
|
@@ -969,7 +942,6 @@ var deserializeAws_restJson1CreateTimelineEventCommandError = function (output,
|
|
|
969
942
|
return [4, parseBody(output.body, context)];
|
|
970
943
|
case 1:
|
|
971
944
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
972
|
-
errorCode = "UnknownError";
|
|
973
945
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
974
946
|
_b = errorCode;
|
|
975
947
|
switch (_b) {
|
|
@@ -1001,10 +973,12 @@ var deserializeAws_restJson1CreateTimelineEventCommandError = function (output,
|
|
|
1001
973
|
case 13: throw _d.sent();
|
|
1002
974
|
case 14:
|
|
1003
975
|
parsedBody = parsedOutput.body;
|
|
976
|
+
$metadata = deserializeMetadata(output);
|
|
977
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1004
978
|
response = new __BaseException({
|
|
1005
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
979
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1006
980
|
$fault: "client",
|
|
1007
|
-
$metadata:
|
|
981
|
+
$metadata: $metadata,
|
|
1008
982
|
});
|
|
1009
983
|
throw __decorateServiceException(response, parsedBody);
|
|
1010
984
|
}
|
|
@@ -1029,7 +1003,7 @@ export var deserializeAws_restJson1DeleteIncidentRecordCommand = function (outpu
|
|
|
1029
1003
|
});
|
|
1030
1004
|
}); };
|
|
1031
1005
|
var deserializeAws_restJson1DeleteIncidentRecordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1032
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1006
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1033
1007
|
var _c;
|
|
1034
1008
|
return __generator(this, function (_d) {
|
|
1035
1009
|
switch (_d.label) {
|
|
@@ -1039,7 +1013,6 @@ var deserializeAws_restJson1DeleteIncidentRecordCommandError = function (output,
|
|
|
1039
1013
|
return [4, parseBody(output.body, context)];
|
|
1040
1014
|
case 1:
|
|
1041
1015
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1042
|
-
errorCode = "UnknownError";
|
|
1043
1016
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1044
1017
|
_b = errorCode;
|
|
1045
1018
|
switch (_b) {
|
|
@@ -1063,10 +1036,12 @@ var deserializeAws_restJson1DeleteIncidentRecordCommandError = function (output,
|
|
|
1063
1036
|
case 9: throw _d.sent();
|
|
1064
1037
|
case 10:
|
|
1065
1038
|
parsedBody = parsedOutput.body;
|
|
1039
|
+
$metadata = deserializeMetadata(output);
|
|
1040
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1066
1041
|
response = new __BaseException({
|
|
1067
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1042
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1068
1043
|
$fault: "client",
|
|
1069
|
-
$metadata:
|
|
1044
|
+
$metadata: $metadata,
|
|
1070
1045
|
});
|
|
1071
1046
|
throw __decorateServiceException(response, parsedBody);
|
|
1072
1047
|
}
|
|
@@ -1091,7 +1066,7 @@ export var deserializeAws_restJson1DeleteReplicationSetCommand = function (outpu
|
|
|
1091
1066
|
});
|
|
1092
1067
|
}); };
|
|
1093
1068
|
var deserializeAws_restJson1DeleteReplicationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1094
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1069
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1095
1070
|
var _c;
|
|
1096
1071
|
return __generator(this, function (_d) {
|
|
1097
1072
|
switch (_d.label) {
|
|
@@ -1101,7 +1076,6 @@ var deserializeAws_restJson1DeleteReplicationSetCommandError = function (output,
|
|
|
1101
1076
|
return [4, parseBody(output.body, context)];
|
|
1102
1077
|
case 1:
|
|
1103
1078
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1104
|
-
errorCode = "UnknownError";
|
|
1105
1079
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
1080
|
_b = errorCode;
|
|
1107
1081
|
switch (_b) {
|
|
@@ -1129,10 +1103,12 @@ var deserializeAws_restJson1DeleteReplicationSetCommandError = function (output,
|
|
|
1129
1103
|
case 11: throw _d.sent();
|
|
1130
1104
|
case 12:
|
|
1131
1105
|
parsedBody = parsedOutput.body;
|
|
1106
|
+
$metadata = deserializeMetadata(output);
|
|
1107
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1132
1108
|
response = new __BaseException({
|
|
1133
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1109
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1134
1110
|
$fault: "client",
|
|
1135
|
-
$metadata:
|
|
1111
|
+
$metadata: $metadata,
|
|
1136
1112
|
});
|
|
1137
1113
|
throw __decorateServiceException(response, parsedBody);
|
|
1138
1114
|
}
|
|
@@ -1157,7 +1133,7 @@ export var deserializeAws_restJson1DeleteResourcePolicyCommand = function (outpu
|
|
|
1157
1133
|
});
|
|
1158
1134
|
}); };
|
|
1159
1135
|
var deserializeAws_restJson1DeleteResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1160
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1136
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1161
1137
|
var _c;
|
|
1162
1138
|
return __generator(this, function (_d) {
|
|
1163
1139
|
switch (_d.label) {
|
|
@@ -1167,7 +1143,6 @@ var deserializeAws_restJson1DeleteResourcePolicyCommandError = function (output,
|
|
|
1167
1143
|
return [4, parseBody(output.body, context)];
|
|
1168
1144
|
case 1:
|
|
1169
1145
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1170
|
-
errorCode = "UnknownError";
|
|
1171
1146
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
1147
|
_b = errorCode;
|
|
1173
1148
|
switch (_b) {
|
|
@@ -1195,10 +1170,12 @@ var deserializeAws_restJson1DeleteResourcePolicyCommandError = function (output,
|
|
|
1195
1170
|
case 11: throw _d.sent();
|
|
1196
1171
|
case 12:
|
|
1197
1172
|
parsedBody = parsedOutput.body;
|
|
1173
|
+
$metadata = deserializeMetadata(output);
|
|
1174
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1198
1175
|
response = new __BaseException({
|
|
1199
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1200
1177
|
$fault: "client",
|
|
1201
|
-
$metadata:
|
|
1178
|
+
$metadata: $metadata,
|
|
1202
1179
|
});
|
|
1203
1180
|
throw __decorateServiceException(response, parsedBody);
|
|
1204
1181
|
}
|
|
@@ -1223,7 +1200,7 @@ export var deserializeAws_restJson1DeleteResponsePlanCommand = function (output,
|
|
|
1223
1200
|
});
|
|
1224
1201
|
}); };
|
|
1225
1202
|
var deserializeAws_restJson1DeleteResponsePlanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1226
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1203
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1227
1204
|
var _c;
|
|
1228
1205
|
return __generator(this, function (_d) {
|
|
1229
1206
|
switch (_d.label) {
|
|
@@ -1233,7 +1210,6 @@ var deserializeAws_restJson1DeleteResponsePlanCommandError = function (output, c
|
|
|
1233
1210
|
return [4, parseBody(output.body, context)];
|
|
1234
1211
|
case 1:
|
|
1235
1212
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1236
|
-
errorCode = "UnknownError";
|
|
1237
1213
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
1214
|
_b = errorCode;
|
|
1239
1215
|
switch (_b) {
|
|
@@ -1257,10 +1233,12 @@ var deserializeAws_restJson1DeleteResponsePlanCommandError = function (output, c
|
|
|
1257
1233
|
case 9: throw _d.sent();
|
|
1258
1234
|
case 10:
|
|
1259
1235
|
parsedBody = parsedOutput.body;
|
|
1236
|
+
$metadata = deserializeMetadata(output);
|
|
1237
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1260
1238
|
response = new __BaseException({
|
|
1261
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1262
1240
|
$fault: "client",
|
|
1263
|
-
$metadata:
|
|
1241
|
+
$metadata: $metadata,
|
|
1264
1242
|
});
|
|
1265
1243
|
throw __decorateServiceException(response, parsedBody);
|
|
1266
1244
|
}
|
|
@@ -1285,7 +1263,7 @@ export var deserializeAws_restJson1DeleteTimelineEventCommand = function (output
|
|
|
1285
1263
|
});
|
|
1286
1264
|
}); };
|
|
1287
1265
|
var deserializeAws_restJson1DeleteTimelineEventCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1288
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1266
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1289
1267
|
var _c;
|
|
1290
1268
|
return __generator(this, function (_d) {
|
|
1291
1269
|
switch (_d.label) {
|
|
@@ -1295,7 +1273,6 @@ var deserializeAws_restJson1DeleteTimelineEventCommandError = function (output,
|
|
|
1295
1273
|
return [4, parseBody(output.body, context)];
|
|
1296
1274
|
case 1:
|
|
1297
1275
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1298
|
-
errorCode = "UnknownError";
|
|
1299
1276
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
1277
|
_b = errorCode;
|
|
1301
1278
|
switch (_b) {
|
|
@@ -1319,10 +1296,12 @@ var deserializeAws_restJson1DeleteTimelineEventCommandError = function (output,
|
|
|
1319
1296
|
case 9: throw _d.sent();
|
|
1320
1297
|
case 10:
|
|
1321
1298
|
parsedBody = parsedOutput.body;
|
|
1299
|
+
$metadata = deserializeMetadata(output);
|
|
1300
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1322
1301
|
response = new __BaseException({
|
|
1323
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1302
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1324
1303
|
$fault: "client",
|
|
1325
|
-
$metadata:
|
|
1304
|
+
$metadata: $metadata,
|
|
1326
1305
|
});
|
|
1327
1306
|
throw __decorateServiceException(response, parsedBody);
|
|
1328
1307
|
}
|
|
@@ -1353,7 +1332,7 @@ export var deserializeAws_restJson1GetIncidentRecordCommand = function (output,
|
|
|
1353
1332
|
});
|
|
1354
1333
|
}); };
|
|
1355
1334
|
var deserializeAws_restJson1GetIncidentRecordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1356
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1335
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1357
1336
|
var _c;
|
|
1358
1337
|
return __generator(this, function (_d) {
|
|
1359
1338
|
switch (_d.label) {
|
|
@@ -1363,7 +1342,6 @@ var deserializeAws_restJson1GetIncidentRecordCommandError = function (output, co
|
|
|
1363
1342
|
return [4, parseBody(output.body, context)];
|
|
1364
1343
|
case 1:
|
|
1365
1344
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1366
|
-
errorCode = "UnknownError";
|
|
1367
1345
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
1346
|
_b = errorCode;
|
|
1369
1347
|
switch (_b) {
|
|
@@ -1391,10 +1369,12 @@ var deserializeAws_restJson1GetIncidentRecordCommandError = function (output, co
|
|
|
1391
1369
|
case 11: throw _d.sent();
|
|
1392
1370
|
case 12:
|
|
1393
1371
|
parsedBody = parsedOutput.body;
|
|
1372
|
+
$metadata = deserializeMetadata(output);
|
|
1373
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1394
1374
|
response = new __BaseException({
|
|
1395
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1375
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1396
1376
|
$fault: "client",
|
|
1397
|
-
$metadata:
|
|
1377
|
+
$metadata: $metadata,
|
|
1398
1378
|
});
|
|
1399
1379
|
throw __decorateServiceException(response, parsedBody);
|
|
1400
1380
|
}
|
|
@@ -1425,7 +1405,7 @@ export var deserializeAws_restJson1GetReplicationSetCommand = function (output,
|
|
|
1425
1405
|
});
|
|
1426
1406
|
}); };
|
|
1427
1407
|
var deserializeAws_restJson1GetReplicationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1428
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1408
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1429
1409
|
var _c;
|
|
1430
1410
|
return __generator(this, function (_d) {
|
|
1431
1411
|
switch (_d.label) {
|
|
@@ -1435,7 +1415,6 @@ var deserializeAws_restJson1GetReplicationSetCommandError = function (output, co
|
|
|
1435
1415
|
return [4, parseBody(output.body, context)];
|
|
1436
1416
|
case 1:
|
|
1437
1417
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1438
|
-
errorCode = "UnknownError";
|
|
1439
1418
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1440
1419
|
_b = errorCode;
|
|
1441
1420
|
switch (_b) {
|
|
@@ -1463,10 +1442,12 @@ var deserializeAws_restJson1GetReplicationSetCommandError = function (output, co
|
|
|
1463
1442
|
case 11: throw _d.sent();
|
|
1464
1443
|
case 12:
|
|
1465
1444
|
parsedBody = parsedOutput.body;
|
|
1445
|
+
$metadata = deserializeMetadata(output);
|
|
1446
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1466
1447
|
response = new __BaseException({
|
|
1467
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1448
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1468
1449
|
$fault: "client",
|
|
1469
|
-
$metadata:
|
|
1450
|
+
$metadata: $metadata,
|
|
1470
1451
|
});
|
|
1471
1452
|
throw __decorateServiceException(response, parsedBody);
|
|
1472
1453
|
}
|
|
@@ -1501,7 +1482,7 @@ export var deserializeAws_restJson1GetResourcePoliciesCommand = function (output
|
|
|
1501
1482
|
});
|
|
1502
1483
|
}); };
|
|
1503
1484
|
var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1504
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1485
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1505
1486
|
var _c;
|
|
1506
1487
|
return __generator(this, function (_d) {
|
|
1507
1488
|
switch (_d.label) {
|
|
@@ -1511,7 +1492,6 @@ var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output,
|
|
|
1511
1492
|
return [4, parseBody(output.body, context)];
|
|
1512
1493
|
case 1:
|
|
1513
1494
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1514
|
-
errorCode = "UnknownError";
|
|
1515
1495
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
1496
|
_b = errorCode;
|
|
1517
1497
|
switch (_b) {
|
|
@@ -1539,10 +1519,12 @@ var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output,
|
|
|
1539
1519
|
case 11: throw _d.sent();
|
|
1540
1520
|
case 12:
|
|
1541
1521
|
parsedBody = parsedOutput.body;
|
|
1522
|
+
$metadata = deserializeMetadata(output);
|
|
1523
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1542
1524
|
response = new __BaseException({
|
|
1543
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1525
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1544
1526
|
$fault: "client",
|
|
1545
|
-
$metadata:
|
|
1527
|
+
$metadata: $metadata,
|
|
1546
1528
|
});
|
|
1547
1529
|
throw __decorateServiceException(response, parsedBody);
|
|
1548
1530
|
}
|
|
@@ -1597,7 +1579,7 @@ export var deserializeAws_restJson1GetResponsePlanCommand = function (output, co
|
|
|
1597
1579
|
});
|
|
1598
1580
|
}); };
|
|
1599
1581
|
var deserializeAws_restJson1GetResponsePlanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1600
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1582
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1601
1583
|
var _c;
|
|
1602
1584
|
return __generator(this, function (_d) {
|
|
1603
1585
|
switch (_d.label) {
|
|
@@ -1607,7 +1589,6 @@ var deserializeAws_restJson1GetResponsePlanCommandError = function (output, cont
|
|
|
1607
1589
|
return [4, parseBody(output.body, context)];
|
|
1608
1590
|
case 1:
|
|
1609
1591
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1610
|
-
errorCode = "UnknownError";
|
|
1611
1592
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
1593
|
_b = errorCode;
|
|
1613
1594
|
switch (_b) {
|
|
@@ -1635,10 +1616,12 @@ var deserializeAws_restJson1GetResponsePlanCommandError = function (output, cont
|
|
|
1635
1616
|
case 11: throw _d.sent();
|
|
1636
1617
|
case 12:
|
|
1637
1618
|
parsedBody = parsedOutput.body;
|
|
1619
|
+
$metadata = deserializeMetadata(output);
|
|
1620
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1638
1621
|
response = new __BaseException({
|
|
1639
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1622
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1640
1623
|
$fault: "client",
|
|
1641
|
-
$metadata:
|
|
1624
|
+
$metadata: $metadata,
|
|
1642
1625
|
});
|
|
1643
1626
|
throw __decorateServiceException(response, parsedBody);
|
|
1644
1627
|
}
|
|
@@ -1669,7 +1652,7 @@ export var deserializeAws_restJson1GetTimelineEventCommand = function (output, c
|
|
|
1669
1652
|
});
|
|
1670
1653
|
}); };
|
|
1671
1654
|
var deserializeAws_restJson1GetTimelineEventCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1672
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1655
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1673
1656
|
var _c;
|
|
1674
1657
|
return __generator(this, function (_d) {
|
|
1675
1658
|
switch (_d.label) {
|
|
@@ -1679,7 +1662,6 @@ var deserializeAws_restJson1GetTimelineEventCommandError = function (output, con
|
|
|
1679
1662
|
return [4, parseBody(output.body, context)];
|
|
1680
1663
|
case 1:
|
|
1681
1664
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1682
|
-
errorCode = "UnknownError";
|
|
1683
1665
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1684
1666
|
_b = errorCode;
|
|
1685
1667
|
switch (_b) {
|
|
@@ -1707,10 +1689,12 @@ var deserializeAws_restJson1GetTimelineEventCommandError = function (output, con
|
|
|
1707
1689
|
case 11: throw _d.sent();
|
|
1708
1690
|
case 12:
|
|
1709
1691
|
parsedBody = parsedOutput.body;
|
|
1692
|
+
$metadata = deserializeMetadata(output);
|
|
1693
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1710
1694
|
response = new __BaseException({
|
|
1711
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1695
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1712
1696
|
$fault: "client",
|
|
1713
|
-
$metadata:
|
|
1697
|
+
$metadata: $metadata,
|
|
1714
1698
|
});
|
|
1715
1699
|
throw __decorateServiceException(response, parsedBody);
|
|
1716
1700
|
}
|
|
@@ -1745,7 +1729,7 @@ export var deserializeAws_restJson1ListIncidentRecordsCommand = function (output
|
|
|
1745
1729
|
});
|
|
1746
1730
|
}); };
|
|
1747
1731
|
var deserializeAws_restJson1ListIncidentRecordsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1732
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1749
1733
|
var _c;
|
|
1750
1734
|
return __generator(this, function (_d) {
|
|
1751
1735
|
switch (_d.label) {
|
|
@@ -1755,7 +1739,6 @@ var deserializeAws_restJson1ListIncidentRecordsCommandError = function (output,
|
|
|
1755
1739
|
return [4, parseBody(output.body, context)];
|
|
1756
1740
|
case 1:
|
|
1757
1741
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1758
|
-
errorCode = "UnknownError";
|
|
1759
1742
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
1743
|
_b = errorCode;
|
|
1761
1744
|
switch (_b) {
|
|
@@ -1779,10 +1762,12 @@ var deserializeAws_restJson1ListIncidentRecordsCommandError = function (output,
|
|
|
1779
1762
|
case 9: throw _d.sent();
|
|
1780
1763
|
case 10:
|
|
1781
1764
|
parsedBody = parsedOutput.body;
|
|
1765
|
+
$metadata = deserializeMetadata(output);
|
|
1766
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1782
1767
|
response = new __BaseException({
|
|
1783
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1768
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1784
1769
|
$fault: "client",
|
|
1785
|
-
$metadata:
|
|
1770
|
+
$metadata: $metadata,
|
|
1786
1771
|
});
|
|
1787
1772
|
throw __decorateServiceException(response, parsedBody);
|
|
1788
1773
|
}
|
|
@@ -1817,7 +1802,7 @@ export var deserializeAws_restJson1ListRelatedItemsCommand = function (output, c
|
|
|
1817
1802
|
});
|
|
1818
1803
|
}); };
|
|
1819
1804
|
var deserializeAws_restJson1ListRelatedItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1820
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1805
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1821
1806
|
var _c;
|
|
1822
1807
|
return __generator(this, function (_d) {
|
|
1823
1808
|
switch (_d.label) {
|
|
@@ -1827,7 +1812,6 @@ var deserializeAws_restJson1ListRelatedItemsCommandError = function (output, con
|
|
|
1827
1812
|
return [4, parseBody(output.body, context)];
|
|
1828
1813
|
case 1:
|
|
1829
1814
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1830
|
-
errorCode = "UnknownError";
|
|
1831
1815
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
1816
|
_b = errorCode;
|
|
1833
1817
|
switch (_b) {
|
|
@@ -1851,10 +1835,12 @@ var deserializeAws_restJson1ListRelatedItemsCommandError = function (output, con
|
|
|
1851
1835
|
case 9: throw _d.sent();
|
|
1852
1836
|
case 10:
|
|
1853
1837
|
parsedBody = parsedOutput.body;
|
|
1838
|
+
$metadata = deserializeMetadata(output);
|
|
1839
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1854
1840
|
response = new __BaseException({
|
|
1855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1841
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1856
1842
|
$fault: "client",
|
|
1857
|
-
$metadata:
|
|
1843
|
+
$metadata: $metadata,
|
|
1858
1844
|
});
|
|
1859
1845
|
throw __decorateServiceException(response, parsedBody);
|
|
1860
1846
|
}
|
|
@@ -1889,7 +1875,7 @@ export var deserializeAws_restJson1ListReplicationSetsCommand = function (output
|
|
|
1889
1875
|
});
|
|
1890
1876
|
}); };
|
|
1891
1877
|
var deserializeAws_restJson1ListReplicationSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1892
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1878
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1893
1879
|
var _c;
|
|
1894
1880
|
return __generator(this, function (_d) {
|
|
1895
1881
|
switch (_d.label) {
|
|
@@ -1899,7 +1885,6 @@ var deserializeAws_restJson1ListReplicationSetsCommandError = function (output,
|
|
|
1899
1885
|
return [4, parseBody(output.body, context)];
|
|
1900
1886
|
case 1:
|
|
1901
1887
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1902
|
-
errorCode = "UnknownError";
|
|
1903
1888
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1904
1889
|
_b = errorCode;
|
|
1905
1890
|
switch (_b) {
|
|
@@ -1923,10 +1908,12 @@ var deserializeAws_restJson1ListReplicationSetsCommandError = function (output,
|
|
|
1923
1908
|
case 9: throw _d.sent();
|
|
1924
1909
|
case 10:
|
|
1925
1910
|
parsedBody = parsedOutput.body;
|
|
1911
|
+
$metadata = deserializeMetadata(output);
|
|
1912
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1926
1913
|
response = new __BaseException({
|
|
1927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1914
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1928
1915
|
$fault: "client",
|
|
1929
|
-
$metadata:
|
|
1916
|
+
$metadata: $metadata,
|
|
1930
1917
|
});
|
|
1931
1918
|
throw __decorateServiceException(response, parsedBody);
|
|
1932
1919
|
}
|
|
@@ -1961,7 +1948,7 @@ export var deserializeAws_restJson1ListResponsePlansCommand = function (output,
|
|
|
1961
1948
|
});
|
|
1962
1949
|
}); };
|
|
1963
1950
|
var deserializeAws_restJson1ListResponsePlansCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1964
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1951
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1965
1952
|
var _c;
|
|
1966
1953
|
return __generator(this, function (_d) {
|
|
1967
1954
|
switch (_d.label) {
|
|
@@ -1971,7 +1958,6 @@ var deserializeAws_restJson1ListResponsePlansCommandError = function (output, co
|
|
|
1971
1958
|
return [4, parseBody(output.body, context)];
|
|
1972
1959
|
case 1:
|
|
1973
1960
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1974
|
-
errorCode = "UnknownError";
|
|
1975
1961
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
1962
|
_b = errorCode;
|
|
1977
1963
|
switch (_b) {
|
|
@@ -1995,10 +1981,12 @@ var deserializeAws_restJson1ListResponsePlansCommandError = function (output, co
|
|
|
1995
1981
|
case 9: throw _d.sent();
|
|
1996
1982
|
case 10:
|
|
1997
1983
|
parsedBody = parsedOutput.body;
|
|
1984
|
+
$metadata = deserializeMetadata(output);
|
|
1985
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1998
1986
|
response = new __BaseException({
|
|
1999
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1987
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2000
1988
|
$fault: "client",
|
|
2001
|
-
$metadata:
|
|
1989
|
+
$metadata: $metadata,
|
|
2002
1990
|
});
|
|
2003
1991
|
throw __decorateServiceException(response, parsedBody);
|
|
2004
1992
|
}
|
|
@@ -2029,7 +2017,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2029
2017
|
});
|
|
2030
2018
|
}); };
|
|
2031
2019
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2032
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2020
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2033
2021
|
var _c;
|
|
2034
2022
|
return __generator(this, function (_d) {
|
|
2035
2023
|
switch (_d.label) {
|
|
@@ -2039,7 +2027,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2039
2027
|
return [4, parseBody(output.body, context)];
|
|
2040
2028
|
case 1:
|
|
2041
2029
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2042
|
-
errorCode = "UnknownError";
|
|
2043
2030
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2044
2031
|
_b = errorCode;
|
|
2045
2032
|
switch (_b) {
|
|
@@ -2067,10 +2054,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2067
2054
|
case 11: throw _d.sent();
|
|
2068
2055
|
case 12:
|
|
2069
2056
|
parsedBody = parsedOutput.body;
|
|
2057
|
+
$metadata = deserializeMetadata(output);
|
|
2058
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2070
2059
|
response = new __BaseException({
|
|
2071
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2060
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2072
2061
|
$fault: "client",
|
|
2073
|
-
$metadata:
|
|
2062
|
+
$metadata: $metadata,
|
|
2074
2063
|
});
|
|
2075
2064
|
throw __decorateServiceException(response, parsedBody);
|
|
2076
2065
|
}
|
|
@@ -2105,7 +2094,7 @@ export var deserializeAws_restJson1ListTimelineEventsCommand = function (output,
|
|
|
2105
2094
|
});
|
|
2106
2095
|
}); };
|
|
2107
2096
|
var deserializeAws_restJson1ListTimelineEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2108
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2097
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2109
2098
|
var _c;
|
|
2110
2099
|
return __generator(this, function (_d) {
|
|
2111
2100
|
switch (_d.label) {
|
|
@@ -2115,7 +2104,6 @@ var deserializeAws_restJson1ListTimelineEventsCommandError = function (output, c
|
|
|
2115
2104
|
return [4, parseBody(output.body, context)];
|
|
2116
2105
|
case 1:
|
|
2117
2106
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2118
|
-
errorCode = "UnknownError";
|
|
2119
2107
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2120
2108
|
_b = errorCode;
|
|
2121
2109
|
switch (_b) {
|
|
@@ -2139,10 +2127,12 @@ var deserializeAws_restJson1ListTimelineEventsCommandError = function (output, c
|
|
|
2139
2127
|
case 9: throw _d.sent();
|
|
2140
2128
|
case 10:
|
|
2141
2129
|
parsedBody = parsedOutput.body;
|
|
2130
|
+
$metadata = deserializeMetadata(output);
|
|
2131
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2142
2132
|
response = new __BaseException({
|
|
2143
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2133
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2144
2134
|
$fault: "client",
|
|
2145
|
-
$metadata:
|
|
2135
|
+
$metadata: $metadata,
|
|
2146
2136
|
});
|
|
2147
2137
|
throw __decorateServiceException(response, parsedBody);
|
|
2148
2138
|
}
|
|
@@ -2173,7 +2163,7 @@ export var deserializeAws_restJson1PutResourcePolicyCommand = function (output,
|
|
|
2173
2163
|
});
|
|
2174
2164
|
}); };
|
|
2175
2165
|
var deserializeAws_restJson1PutResourcePolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2176
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2166
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2177
2167
|
var _c;
|
|
2178
2168
|
return __generator(this, function (_d) {
|
|
2179
2169
|
switch (_d.label) {
|
|
@@ -2183,7 +2173,6 @@ var deserializeAws_restJson1PutResourcePolicyCommandError = function (output, co
|
|
|
2183
2173
|
return [4, parseBody(output.body, context)];
|
|
2184
2174
|
case 1:
|
|
2185
2175
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2186
|
-
errorCode = "UnknownError";
|
|
2187
2176
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2188
2177
|
_b = errorCode;
|
|
2189
2178
|
switch (_b) {
|
|
@@ -2211,10 +2200,12 @@ var deserializeAws_restJson1PutResourcePolicyCommandError = function (output, co
|
|
|
2211
2200
|
case 11: throw _d.sent();
|
|
2212
2201
|
case 12:
|
|
2213
2202
|
parsedBody = parsedOutput.body;
|
|
2203
|
+
$metadata = deserializeMetadata(output);
|
|
2204
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2214
2205
|
response = new __BaseException({
|
|
2215
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2206
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2216
2207
|
$fault: "client",
|
|
2217
|
-
$metadata:
|
|
2208
|
+
$metadata: $metadata,
|
|
2218
2209
|
});
|
|
2219
2210
|
throw __decorateServiceException(response, parsedBody);
|
|
2220
2211
|
}
|
|
@@ -2245,7 +2236,7 @@ export var deserializeAws_restJson1StartIncidentCommand = function (output, cont
|
|
|
2245
2236
|
});
|
|
2246
2237
|
}); };
|
|
2247
2238
|
var deserializeAws_restJson1StartIncidentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2248
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2239
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2249
2240
|
var _c;
|
|
2250
2241
|
return __generator(this, function (_d) {
|
|
2251
2242
|
switch (_d.label) {
|
|
@@ -2255,7 +2246,6 @@ var deserializeAws_restJson1StartIncidentCommandError = function (output, contex
|
|
|
2255
2246
|
return [4, parseBody(output.body, context)];
|
|
2256
2247
|
case 1:
|
|
2257
2248
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2258
|
-
errorCode = "UnknownError";
|
|
2259
2249
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
2250
|
_b = errorCode;
|
|
2261
2251
|
switch (_b) {
|
|
@@ -2287,10 +2277,12 @@ var deserializeAws_restJson1StartIncidentCommandError = function (output, contex
|
|
|
2287
2277
|
case 13: throw _d.sent();
|
|
2288
2278
|
case 14:
|
|
2289
2279
|
parsedBody = parsedOutput.body;
|
|
2280
|
+
$metadata = deserializeMetadata(output);
|
|
2281
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2290
2282
|
response = new __BaseException({
|
|
2291
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2283
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2292
2284
|
$fault: "client",
|
|
2293
|
-
$metadata:
|
|
2285
|
+
$metadata: $metadata,
|
|
2294
2286
|
});
|
|
2295
2287
|
throw __decorateServiceException(response, parsedBody);
|
|
2296
2288
|
}
|
|
@@ -2315,7 +2307,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
2315
2307
|
});
|
|
2316
2308
|
}); };
|
|
2317
2309
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2318
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2310
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2319
2311
|
var _c;
|
|
2320
2312
|
return __generator(this, function (_d) {
|
|
2321
2313
|
switch (_d.label) {
|
|
@@ -2325,7 +2317,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2325
2317
|
return [4, parseBody(output.body, context)];
|
|
2326
2318
|
case 1:
|
|
2327
2319
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2328
|
-
errorCode = "UnknownError";
|
|
2329
2320
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2330
2321
|
_b = errorCode;
|
|
2331
2322
|
switch (_b) {
|
|
@@ -2361,10 +2352,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
2361
2352
|
case 15: throw _d.sent();
|
|
2362
2353
|
case 16:
|
|
2363
2354
|
parsedBody = parsedOutput.body;
|
|
2355
|
+
$metadata = deserializeMetadata(output);
|
|
2356
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2364
2357
|
response = new __BaseException({
|
|
2365
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2358
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2366
2359
|
$fault: "client",
|
|
2367
|
-
$metadata:
|
|
2360
|
+
$metadata: $metadata,
|
|
2368
2361
|
});
|
|
2369
2362
|
throw __decorateServiceException(response, parsedBody);
|
|
2370
2363
|
}
|
|
@@ -2389,7 +2382,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
2389
2382
|
});
|
|
2390
2383
|
}); };
|
|
2391
2384
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2392
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2385
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2393
2386
|
var _c;
|
|
2394
2387
|
return __generator(this, function (_d) {
|
|
2395
2388
|
switch (_d.label) {
|
|
@@ -2399,7 +2392,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2399
2392
|
return [4, parseBody(output.body, context)];
|
|
2400
2393
|
case 1:
|
|
2401
2394
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2402
|
-
errorCode = "UnknownError";
|
|
2403
2395
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
2396
|
_b = errorCode;
|
|
2405
2397
|
switch (_b) {
|
|
@@ -2431,10 +2423,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
2431
2423
|
case 13: throw _d.sent();
|
|
2432
2424
|
case 14:
|
|
2433
2425
|
parsedBody = parsedOutput.body;
|
|
2426
|
+
$metadata = deserializeMetadata(output);
|
|
2427
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2434
2428
|
response = new __BaseException({
|
|
2435
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2429
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2436
2430
|
$fault: "client",
|
|
2437
|
-
$metadata:
|
|
2431
|
+
$metadata: $metadata,
|
|
2438
2432
|
});
|
|
2439
2433
|
throw __decorateServiceException(response, parsedBody);
|
|
2440
2434
|
}
|
|
@@ -2459,7 +2453,7 @@ export var deserializeAws_restJson1UpdateDeletionProtectionCommand = function (o
|
|
|
2459
2453
|
});
|
|
2460
2454
|
}); };
|
|
2461
2455
|
var deserializeAws_restJson1UpdateDeletionProtectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2462
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2456
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2463
2457
|
var _c;
|
|
2464
2458
|
return __generator(this, function (_d) {
|
|
2465
2459
|
switch (_d.label) {
|
|
@@ -2469,7 +2463,6 @@ var deserializeAws_restJson1UpdateDeletionProtectionCommandError = function (out
|
|
|
2469
2463
|
return [4, parseBody(output.body, context)];
|
|
2470
2464
|
case 1:
|
|
2471
2465
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2472
|
-
errorCode = "UnknownError";
|
|
2473
2466
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2474
2467
|
_b = errorCode;
|
|
2475
2468
|
switch (_b) {
|
|
@@ -2497,10 +2490,12 @@ var deserializeAws_restJson1UpdateDeletionProtectionCommandError = function (out
|
|
|
2497
2490
|
case 11: throw _d.sent();
|
|
2498
2491
|
case 12:
|
|
2499
2492
|
parsedBody = parsedOutput.body;
|
|
2493
|
+
$metadata = deserializeMetadata(output);
|
|
2494
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2500
2495
|
response = new __BaseException({
|
|
2501
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2496
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2502
2497
|
$fault: "client",
|
|
2503
|
-
$metadata:
|
|
2498
|
+
$metadata: $metadata,
|
|
2504
2499
|
});
|
|
2505
2500
|
throw __decorateServiceException(response, parsedBody);
|
|
2506
2501
|
}
|
|
@@ -2525,7 +2520,7 @@ export var deserializeAws_restJson1UpdateIncidentRecordCommand = function (outpu
|
|
|
2525
2520
|
});
|
|
2526
2521
|
}); };
|
|
2527
2522
|
var deserializeAws_restJson1UpdateIncidentRecordCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2528
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2523
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2529
2524
|
var _c;
|
|
2530
2525
|
return __generator(this, function (_d) {
|
|
2531
2526
|
switch (_d.label) {
|
|
@@ -2535,7 +2530,6 @@ var deserializeAws_restJson1UpdateIncidentRecordCommandError = function (output,
|
|
|
2535
2530
|
return [4, parseBody(output.body, context)];
|
|
2536
2531
|
case 1:
|
|
2537
2532
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2538
|
-
errorCode = "UnknownError";
|
|
2539
2533
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2540
2534
|
_b = errorCode;
|
|
2541
2535
|
switch (_b) {
|
|
@@ -2567,10 +2561,12 @@ var deserializeAws_restJson1UpdateIncidentRecordCommandError = function (output,
|
|
|
2567
2561
|
case 13: throw _d.sent();
|
|
2568
2562
|
case 14:
|
|
2569
2563
|
parsedBody = parsedOutput.body;
|
|
2564
|
+
$metadata = deserializeMetadata(output);
|
|
2565
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2570
2566
|
response = new __BaseException({
|
|
2571
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2567
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2572
2568
|
$fault: "client",
|
|
2573
|
-
$metadata:
|
|
2569
|
+
$metadata: $metadata,
|
|
2574
2570
|
});
|
|
2575
2571
|
throw __decorateServiceException(response, parsedBody);
|
|
2576
2572
|
}
|
|
@@ -2595,7 +2591,7 @@ export var deserializeAws_restJson1UpdateRelatedItemsCommand = function (output,
|
|
|
2595
2591
|
});
|
|
2596
2592
|
}); };
|
|
2597
2593
|
var deserializeAws_restJson1UpdateRelatedItemsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2598
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2594
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2599
2595
|
var _c;
|
|
2600
2596
|
return __generator(this, function (_d) {
|
|
2601
2597
|
switch (_d.label) {
|
|
@@ -2605,7 +2601,6 @@ var deserializeAws_restJson1UpdateRelatedItemsCommandError = function (output, c
|
|
|
2605
2601
|
return [4, parseBody(output.body, context)];
|
|
2606
2602
|
case 1:
|
|
2607
2603
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2608
|
-
errorCode = "UnknownError";
|
|
2609
2604
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2610
2605
|
_b = errorCode;
|
|
2611
2606
|
switch (_b) {
|
|
@@ -2637,10 +2632,12 @@ var deserializeAws_restJson1UpdateRelatedItemsCommandError = function (output, c
|
|
|
2637
2632
|
case 13: throw _d.sent();
|
|
2638
2633
|
case 14:
|
|
2639
2634
|
parsedBody = parsedOutput.body;
|
|
2635
|
+
$metadata = deserializeMetadata(output);
|
|
2636
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2640
2637
|
response = new __BaseException({
|
|
2641
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2638
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2642
2639
|
$fault: "client",
|
|
2643
|
-
$metadata:
|
|
2640
|
+
$metadata: $metadata,
|
|
2644
2641
|
});
|
|
2645
2642
|
throw __decorateServiceException(response, parsedBody);
|
|
2646
2643
|
}
|
|
@@ -2665,7 +2662,7 @@ export var deserializeAws_restJson1UpdateReplicationSetCommand = function (outpu
|
|
|
2665
2662
|
});
|
|
2666
2663
|
}); };
|
|
2667
2664
|
var deserializeAws_restJson1UpdateReplicationSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2668
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2665
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2669
2666
|
var _c;
|
|
2670
2667
|
return __generator(this, function (_d) {
|
|
2671
2668
|
switch (_d.label) {
|
|
@@ -2675,7 +2672,6 @@ var deserializeAws_restJson1UpdateReplicationSetCommandError = function (output,
|
|
|
2675
2672
|
return [4, parseBody(output.body, context)];
|
|
2676
2673
|
case 1:
|
|
2677
2674
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2678
|
-
errorCode = "UnknownError";
|
|
2679
2675
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2680
2676
|
_b = errorCode;
|
|
2681
2677
|
switch (_b) {
|
|
@@ -2707,10 +2703,12 @@ var deserializeAws_restJson1UpdateReplicationSetCommandError = function (output,
|
|
|
2707
2703
|
case 13: throw _d.sent();
|
|
2708
2704
|
case 14:
|
|
2709
2705
|
parsedBody = parsedOutput.body;
|
|
2706
|
+
$metadata = deserializeMetadata(output);
|
|
2707
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2710
2708
|
response = new __BaseException({
|
|
2711
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2709
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2712
2710
|
$fault: "client",
|
|
2713
|
-
$metadata:
|
|
2711
|
+
$metadata: $metadata,
|
|
2714
2712
|
});
|
|
2715
2713
|
throw __decorateServiceException(response, parsedBody);
|
|
2716
2714
|
}
|
|
@@ -2735,7 +2733,7 @@ export var deserializeAws_restJson1UpdateResponsePlanCommand = function (output,
|
|
|
2735
2733
|
});
|
|
2736
2734
|
}); };
|
|
2737
2735
|
var deserializeAws_restJson1UpdateResponsePlanCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2738
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2736
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2739
2737
|
var _c;
|
|
2740
2738
|
return __generator(this, function (_d) {
|
|
2741
2739
|
switch (_d.label) {
|
|
@@ -2745,7 +2743,6 @@ var deserializeAws_restJson1UpdateResponsePlanCommandError = function (output, c
|
|
|
2745
2743
|
return [4, parseBody(output.body, context)];
|
|
2746
2744
|
case 1:
|
|
2747
2745
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2748
|
-
errorCode = "UnknownError";
|
|
2749
2746
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2750
2747
|
_b = errorCode;
|
|
2751
2748
|
switch (_b) {
|
|
@@ -2777,10 +2774,12 @@ var deserializeAws_restJson1UpdateResponsePlanCommandError = function (output, c
|
|
|
2777
2774
|
case 13: throw _d.sent();
|
|
2778
2775
|
case 14:
|
|
2779
2776
|
parsedBody = parsedOutput.body;
|
|
2777
|
+
$metadata = deserializeMetadata(output);
|
|
2778
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2780
2779
|
response = new __BaseException({
|
|
2781
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2780
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2782
2781
|
$fault: "client",
|
|
2783
|
-
$metadata:
|
|
2782
|
+
$metadata: $metadata,
|
|
2784
2783
|
});
|
|
2785
2784
|
throw __decorateServiceException(response, parsedBody);
|
|
2786
2785
|
}
|
|
@@ -2805,7 +2804,7 @@ export var deserializeAws_restJson1UpdateTimelineEventCommand = function (output
|
|
|
2805
2804
|
});
|
|
2806
2805
|
}); };
|
|
2807
2806
|
var deserializeAws_restJson1UpdateTimelineEventCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2808
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2807
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2809
2808
|
var _c;
|
|
2810
2809
|
return __generator(this, function (_d) {
|
|
2811
2810
|
switch (_d.label) {
|
|
@@ -2815,7 +2814,6 @@ var deserializeAws_restJson1UpdateTimelineEventCommandError = function (output,
|
|
|
2815
2814
|
return [4, parseBody(output.body, context)];
|
|
2816
2815
|
case 1:
|
|
2817
2816
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2818
|
-
errorCode = "UnknownError";
|
|
2819
2817
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2820
2818
|
_b = errorCode;
|
|
2821
2819
|
switch (_b) {
|
|
@@ -2847,10 +2845,12 @@ var deserializeAws_restJson1UpdateTimelineEventCommandError = function (output,
|
|
|
2847
2845
|
case 13: throw _d.sent();
|
|
2848
2846
|
case 14:
|
|
2849
2847
|
parsedBody = parsedOutput.body;
|
|
2848
|
+
$metadata = deserializeMetadata(output);
|
|
2849
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2850
2850
|
response = new __BaseException({
|
|
2851
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2851
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2852
2852
|
$fault: "client",
|
|
2853
|
-
$metadata:
|
|
2853
|
+
$metadata: $metadata,
|
|
2854
2854
|
});
|
|
2855
2855
|
throw __decorateServiceException(response, parsedBody);
|
|
2856
2856
|
}
|
|
@@ -2990,7 +2990,7 @@ var serializeAws_restJson1ActionsList = function (input, context) {
|
|
|
2990
2990
|
});
|
|
2991
2991
|
};
|
|
2992
2992
|
var serializeAws_restJson1AddRegionAction = function (input, context) {
|
|
2993
|
-
return __assign(__assign({}, (input.regionName
|
|
2993
|
+
return __assign(__assign({}, (input.regionName != null && { regionName: input.regionName })), (input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }));
|
|
2994
2994
|
};
|
|
2995
2995
|
var serializeAws_restJson1AttributeValueList = function (input, context) {
|
|
2996
2996
|
return AttributeValueList.visit(input, {
|
|
@@ -3025,7 +3025,7 @@ var serializeAws_restJson1Condition = function (input, context) {
|
|
|
3025
3025
|
});
|
|
3026
3026
|
};
|
|
3027
3027
|
var serializeAws_restJson1DeleteRegionAction = function (input, context) {
|
|
3028
|
-
return __assign({}, (input.regionName
|
|
3028
|
+
return __assign({}, (input.regionName != null && { regionName: input.regionName }));
|
|
3029
3029
|
};
|
|
3030
3030
|
var serializeAws_restJson1DynamicSsmParameters = function (input, context) {
|
|
3031
3031
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -3057,8 +3057,7 @@ var serializeAws_restJson1EngagementSet = function (input, context) {
|
|
|
3057
3057
|
});
|
|
3058
3058
|
};
|
|
3059
3059
|
var serializeAws_restJson1Filter = function (input, context) {
|
|
3060
|
-
return __assign(__assign({}, (input.condition
|
|
3061
|
-
input.condition !== null && { condition: serializeAws_restJson1Condition(input.condition, context) })), (input.key !== undefined && input.key !== null && { key: input.key }));
|
|
3060
|
+
return __assign(__assign({}, (input.condition != null && { condition: serializeAws_restJson1Condition(input.condition, context) })), (input.key != null && { key: input.key }));
|
|
3062
3061
|
};
|
|
3063
3062
|
var serializeAws_restJson1FilterList = function (input, context) {
|
|
3064
3063
|
return input
|
|
@@ -3071,10 +3070,9 @@ var serializeAws_restJson1FilterList = function (input, context) {
|
|
|
3071
3070
|
});
|
|
3072
3071
|
};
|
|
3073
3072
|
var serializeAws_restJson1IncidentTemplate = function (input, context) {
|
|
3074
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.dedupeString
|
|
3075
|
-
input.notificationTargets !== null && {
|
|
3073
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.dedupeString != null && { dedupeString: input.dedupeString })), (input.impact != null && { impact: input.impact })), (input.incidentTags != null && { incidentTags: serializeAws_restJson1TagMap(input.incidentTags, context) })), (input.notificationTargets != null && {
|
|
3076
3074
|
notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
|
|
3077
|
-
})), (input.summary
|
|
3075
|
+
})), (input.summary != null && { summary: input.summary })), (input.title != null && { title: input.title }));
|
|
3078
3076
|
};
|
|
3079
3077
|
var serializeAws_restJson1IntegerList = function (input, context) {
|
|
3080
3078
|
return input
|
|
@@ -3087,8 +3085,7 @@ var serializeAws_restJson1IntegerList = function (input, context) {
|
|
|
3087
3085
|
});
|
|
3088
3086
|
};
|
|
3089
3087
|
var serializeAws_restJson1ItemIdentifier = function (input, context) {
|
|
3090
|
-
return __assign(__assign({}, (input.type
|
|
3091
|
-
input.value !== null && { value: serializeAws_restJson1ItemValue(input.value, context) }));
|
|
3088
|
+
return __assign(__assign({}, (input.type != null && { type: input.type })), (input.value != null && { value: serializeAws_restJson1ItemValue(input.value, context) }));
|
|
3092
3089
|
};
|
|
3093
3090
|
var serializeAws_restJson1ItemValue = function (input, context) {
|
|
3094
3091
|
return ItemValue.visit(input, {
|
|
@@ -3125,11 +3122,10 @@ var serializeAws_restJson1RegionMapInput = function (input, context) {
|
|
|
3125
3122
|
}, {});
|
|
3126
3123
|
};
|
|
3127
3124
|
var serializeAws_restJson1RegionMapInputValue = function (input, context) {
|
|
3128
|
-
return __assign({}, (input.sseKmsKeyId
|
|
3125
|
+
return __assign({}, (input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }));
|
|
3129
3126
|
};
|
|
3130
3127
|
var serializeAws_restJson1RelatedItem = function (input, context) {
|
|
3131
|
-
return __assign(__assign({}, (input.identifier
|
|
3132
|
-
input.identifier !== null && { identifier: serializeAws_restJson1ItemIdentifier(input.identifier, context) })), (input.title !== undefined && input.title !== null && { title: input.title }));
|
|
3128
|
+
return __assign(__assign({}, (input.identifier != null && { identifier: serializeAws_restJson1ItemIdentifier(input.identifier, context) })), (input.title != null && { title: input.title }));
|
|
3133
3129
|
};
|
|
3134
3130
|
var serializeAws_restJson1RelatedItemList = function (input, context) {
|
|
3135
3131
|
return input
|
|
@@ -3149,12 +3145,9 @@ var serializeAws_restJson1RelatedItemsUpdate = function (input, context) {
|
|
|
3149
3145
|
});
|
|
3150
3146
|
};
|
|
3151
3147
|
var serializeAws_restJson1SsmAutomation = function (input, context) {
|
|
3152
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.documentName
|
|
3153
|
-
input.documentVersion !== null && { documentVersion: input.documentVersion })), (input.dynamicParameters !== undefined &&
|
|
3154
|
-
input.dynamicParameters !== null && {
|
|
3148
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.documentName != null && { documentName: input.documentName })), (input.documentVersion != null && { documentVersion: input.documentVersion })), (input.dynamicParameters != null && {
|
|
3155
3149
|
dynamicParameters: serializeAws_restJson1DynamicSsmParameters(input.dynamicParameters, context),
|
|
3156
|
-
})), (input.parameters
|
|
3157
|
-
input.parameters !== null && { parameters: serializeAws_restJson1SsmParameters(input.parameters, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.targetAccount !== undefined && input.targetAccount !== null && { targetAccount: input.targetAccount }));
|
|
3150
|
+
})), (input.parameters != null && { parameters: serializeAws_restJson1SsmParameters(input.parameters, context) })), (input.roleArn != null && { roleArn: input.roleArn })), (input.targetAccount != null && { targetAccount: input.targetAccount }));
|
|
3158
3151
|
};
|
|
3159
3152
|
var serializeAws_restJson1SsmParameters = function (input, context) {
|
|
3160
3153
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -3196,9 +3189,18 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
3196
3189
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
3197
3190
|
}, {});
|
|
3198
3191
|
};
|
|
3192
|
+
var serializeAws_restJson1TagMapUpdate = function (input, context) {
|
|
3193
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
3194
|
+
var _b;
|
|
3195
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
3196
|
+
if (value === null) {
|
|
3197
|
+
return acc;
|
|
3198
|
+
}
|
|
3199
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
3200
|
+
}, {});
|
|
3201
|
+
};
|
|
3199
3202
|
var serializeAws_restJson1TriggerDetails = function (input, context) {
|
|
3200
|
-
return __assign(__assign(__assign(__assign({}, (input.rawData
|
|
3201
|
-
input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.triggerArn !== undefined && input.triggerArn !== null && { triggerArn: input.triggerArn }));
|
|
3203
|
+
return __assign(__assign(__assign(__assign({}, (input.rawData != null && { rawData: input.rawData })), (input.source != null && { source: input.source })), (input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) })), (input.triggerArn != null && { triggerArn: input.triggerArn }));
|
|
3202
3204
|
};
|
|
3203
3205
|
var serializeAws_restJson1UpdateActionList = function (input, context) {
|
|
3204
3206
|
return input
|
|
@@ -3310,11 +3312,9 @@ var deserializeAws_restJson1EngagementSet = function (output, context) {
|
|
|
3310
3312
|
var deserializeAws_restJson1EventSummary = function (output, context) {
|
|
3311
3313
|
return {
|
|
3312
3314
|
eventId: __expectString(output.eventId),
|
|
3313
|
-
eventTime: output.eventTime
|
|
3314
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
|
|
3315
|
-
: undefined,
|
|
3315
|
+
eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
|
|
3316
3316
|
eventType: __expectString(output.eventType),
|
|
3317
|
-
eventUpdatedTime: output.eventUpdatedTime
|
|
3317
|
+
eventUpdatedTime: output.eventUpdatedTime != null
|
|
3318
3318
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
|
|
3319
3319
|
: undefined,
|
|
3320
3320
|
incidentRecordArn: __expectString(output.incidentRecordArn),
|
|
@@ -3334,28 +3334,28 @@ var deserializeAws_restJson1EventSummaryList = function (output, context) {
|
|
|
3334
3334
|
var deserializeAws_restJson1IncidentRecord = function (output, context) {
|
|
3335
3335
|
return {
|
|
3336
3336
|
arn: __expectString(output.arn),
|
|
3337
|
-
automationExecutions: output.automationExecutions
|
|
3337
|
+
automationExecutions: output.automationExecutions != null
|
|
3338
3338
|
? deserializeAws_restJson1AutomationExecutionSet(output.automationExecutions, context)
|
|
3339
3339
|
: undefined,
|
|
3340
|
-
chatChannel: output.chatChannel
|
|
3340
|
+
chatChannel: output.chatChannel != null
|
|
3341
3341
|
? deserializeAws_restJson1ChatChannel(__expectUnion(output.chatChannel), context)
|
|
3342
3342
|
: undefined,
|
|
3343
|
-
creationTime: output.creationTime
|
|
3343
|
+
creationTime: output.creationTime != null
|
|
3344
3344
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3345
3345
|
: undefined,
|
|
3346
3346
|
dedupeString: __expectString(output.dedupeString),
|
|
3347
3347
|
impact: __expectInt32(output.impact),
|
|
3348
|
-
incidentRecordSource: output.incidentRecordSource
|
|
3348
|
+
incidentRecordSource: output.incidentRecordSource != null
|
|
3349
3349
|
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
3350
3350
|
: undefined,
|
|
3351
3351
|
lastModifiedBy: __expectString(output.lastModifiedBy),
|
|
3352
|
-
lastModifiedTime: output.lastModifiedTime
|
|
3352
|
+
lastModifiedTime: output.lastModifiedTime != null
|
|
3353
3353
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
|
|
3354
3354
|
: undefined,
|
|
3355
|
-
notificationTargets: output.notificationTargets
|
|
3355
|
+
notificationTargets: output.notificationTargets != null
|
|
3356
3356
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
3357
3357
|
: undefined,
|
|
3358
|
-
resolvedTime: output.resolvedTime
|
|
3358
|
+
resolvedTime: output.resolvedTime != null
|
|
3359
3359
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
|
|
3360
3360
|
: undefined,
|
|
3361
3361
|
status: __expectString(output.status),
|
|
@@ -3374,14 +3374,14 @@ var deserializeAws_restJson1IncidentRecordSource = function (output, context) {
|
|
|
3374
3374
|
var deserializeAws_restJson1IncidentRecordSummary = function (output, context) {
|
|
3375
3375
|
return {
|
|
3376
3376
|
arn: __expectString(output.arn),
|
|
3377
|
-
creationTime: output.creationTime
|
|
3377
|
+
creationTime: output.creationTime != null
|
|
3378
3378
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3379
3379
|
: undefined,
|
|
3380
3380
|
impact: __expectInt32(output.impact),
|
|
3381
|
-
incidentRecordSource: output.incidentRecordSource
|
|
3381
|
+
incidentRecordSource: output.incidentRecordSource != null
|
|
3382
3382
|
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
3383
3383
|
: undefined,
|
|
3384
|
-
resolvedTime: output.resolvedTime
|
|
3384
|
+
resolvedTime: output.resolvedTime != null
|
|
3385
3385
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
|
|
3386
3386
|
: undefined,
|
|
3387
3387
|
status: __expectString(output.status),
|
|
@@ -3403,7 +3403,8 @@ var deserializeAws_restJson1IncidentTemplate = function (output, context) {
|
|
|
3403
3403
|
return {
|
|
3404
3404
|
dedupeString: __expectString(output.dedupeString),
|
|
3405
3405
|
impact: __expectInt32(output.impact),
|
|
3406
|
-
|
|
3406
|
+
incidentTags: output.incidentTags != null ? deserializeAws_restJson1TagMap(output.incidentTags, context) : undefined,
|
|
3407
|
+
notificationTargets: output.notificationTargets != null
|
|
3407
3408
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
3408
3409
|
: undefined,
|
|
3409
3410
|
summary: __expectString(output.summary),
|
|
@@ -3413,9 +3414,7 @@ var deserializeAws_restJson1IncidentTemplate = function (output, context) {
|
|
|
3413
3414
|
var deserializeAws_restJson1ItemIdentifier = function (output, context) {
|
|
3414
3415
|
return {
|
|
3415
3416
|
type: __expectString(output.type),
|
|
3416
|
-
value: output.value
|
|
3417
|
-
? deserializeAws_restJson1ItemValue(__expectUnion(output.value), context)
|
|
3418
|
-
: undefined,
|
|
3417
|
+
value: output.value != null ? deserializeAws_restJson1ItemValue(__expectUnion(output.value), context) : undefined,
|
|
3419
3418
|
};
|
|
3420
3419
|
};
|
|
3421
3420
|
var deserializeAws_restJson1ItemValue = function (output, context) {
|
|
@@ -3452,7 +3451,7 @@ var deserializeAws_restJson1RegionInfo = function (output, context) {
|
|
|
3452
3451
|
sseKmsKeyId: __expectString(output.sseKmsKeyId),
|
|
3453
3452
|
status: __expectString(output.status),
|
|
3454
3453
|
statusMessage: __expectString(output.statusMessage),
|
|
3455
|
-
statusUpdateDateTime: output.statusUpdateDateTime
|
|
3454
|
+
statusUpdateDateTime: output.statusUpdateDateTime != null
|
|
3456
3455
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.statusUpdateDateTime)))
|
|
3457
3456
|
: undefined,
|
|
3458
3457
|
};
|
|
@@ -3469,9 +3468,7 @@ var deserializeAws_restJson1RegionInfoMap = function (output, context) {
|
|
|
3469
3468
|
};
|
|
3470
3469
|
var deserializeAws_restJson1RelatedItem = function (output, context) {
|
|
3471
3470
|
return {
|
|
3472
|
-
identifier: output.identifier
|
|
3473
|
-
? deserializeAws_restJson1ItemIdentifier(output.identifier, context)
|
|
3474
|
-
: undefined,
|
|
3471
|
+
identifier: output.identifier != null ? deserializeAws_restJson1ItemIdentifier(output.identifier, context) : undefined,
|
|
3475
3472
|
title: __expectString(output.title),
|
|
3476
3473
|
};
|
|
3477
3474
|
};
|
|
@@ -3490,17 +3487,15 @@ var deserializeAws_restJson1ReplicationSet = function (output, context) {
|
|
|
3490
3487
|
return {
|
|
3491
3488
|
arn: __expectString(output.arn),
|
|
3492
3489
|
createdBy: __expectString(output.createdBy),
|
|
3493
|
-
createdTime: output.createdTime
|
|
3490
|
+
createdTime: output.createdTime != null
|
|
3494
3491
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdTime)))
|
|
3495
3492
|
: undefined,
|
|
3496
3493
|
deletionProtected: __expectBoolean(output.deletionProtected),
|
|
3497
3494
|
lastModifiedBy: __expectString(output.lastModifiedBy),
|
|
3498
|
-
lastModifiedTime: output.lastModifiedTime
|
|
3495
|
+
lastModifiedTime: output.lastModifiedTime != null
|
|
3499
3496
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
|
|
3500
3497
|
: undefined,
|
|
3501
|
-
regionMap: output.regionMap
|
|
3502
|
-
? deserializeAws_restJson1RegionInfoMap(output.regionMap, context)
|
|
3503
|
-
: undefined,
|
|
3498
|
+
regionMap: output.regionMap != null ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context) : undefined,
|
|
3504
3499
|
status: __expectString(output.status),
|
|
3505
3500
|
};
|
|
3506
3501
|
};
|
|
@@ -3555,12 +3550,10 @@ var deserializeAws_restJson1SsmAutomation = function (output, context) {
|
|
|
3555
3550
|
return {
|
|
3556
3551
|
documentName: __expectString(output.documentName),
|
|
3557
3552
|
documentVersion: __expectString(output.documentVersion),
|
|
3558
|
-
dynamicParameters: output.dynamicParameters
|
|
3553
|
+
dynamicParameters: output.dynamicParameters != null
|
|
3559
3554
|
? deserializeAws_restJson1DynamicSsmParameters(output.dynamicParameters, context)
|
|
3560
3555
|
: undefined,
|
|
3561
|
-
parameters: output.parameters
|
|
3562
|
-
? deserializeAws_restJson1SsmParameters(output.parameters, context)
|
|
3563
|
-
: undefined,
|
|
3556
|
+
parameters: output.parameters != null ? deserializeAws_restJson1SsmParameters(output.parameters, context) : undefined,
|
|
3564
3557
|
roleArn: __expectString(output.roleArn),
|
|
3565
3558
|
targetAccount: __expectString(output.targetAccount),
|
|
3566
3559
|
};
|
|
@@ -3600,11 +3593,9 @@ var deserializeAws_restJson1TimelineEvent = function (output, context) {
|
|
|
3600
3593
|
return {
|
|
3601
3594
|
eventData: __expectString(output.eventData),
|
|
3602
3595
|
eventId: __expectString(output.eventId),
|
|
3603
|
-
eventTime: output.eventTime
|
|
3604
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
|
|
3605
|
-
: undefined,
|
|
3596
|
+
eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
|
|
3606
3597
|
eventType: __expectString(output.eventType),
|
|
3607
|
-
eventUpdatedTime: output.eventUpdatedTime
|
|
3598
|
+
eventUpdatedTime: output.eventUpdatedTime != null
|
|
3608
3599
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
|
|
3609
3600
|
: undefined,
|
|
3610
3601
|
incidentRecordArn: __expectString(output.incidentRecordArn),
|
|
@@ -3666,5 +3657,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
3666
3657
|
if (data["__type"] !== undefined) {
|
|
3667
3658
|
return sanitizeErrorCode(data["__type"]);
|
|
3668
3659
|
}
|
|
3669
|
-
return "";
|
|
3670
3660
|
};
|