@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
|
@@ -17,8 +17,7 @@ const serializeAws_restJson1CreateReplicationSetCommand = async (input, context)
|
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
19
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
20
|
-
...(input.regions
|
|
21
|
-
input.regions !== null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) }),
|
|
20
|
+
...(input.regions != null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) }),
|
|
22
21
|
});
|
|
23
22
|
return new protocol_http_1.HttpRequest({
|
|
24
23
|
protocol,
|
|
@@ -40,20 +39,16 @@ const serializeAws_restJson1CreateResponsePlanCommand = async (input, context) =
|
|
|
40
39
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createResponsePlan";
|
|
41
40
|
let body;
|
|
42
41
|
body = JSON.stringify({
|
|
43
|
-
...(input.actions
|
|
44
|
-
|
|
45
|
-
...(input.chatChannel !== undefined &&
|
|
46
|
-
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
|
|
42
|
+
...(input.actions != null && { actions: serializeAws_restJson1ActionsList(input.actions, context) }),
|
|
43
|
+
...(input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
|
|
47
44
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
48
|
-
...(input.displayName
|
|
49
|
-
...(input.engagements
|
|
50
|
-
|
|
51
|
-
...(input.incidentTemplate !== undefined &&
|
|
52
|
-
input.incidentTemplate !== null && {
|
|
45
|
+
...(input.displayName != null && { displayName: input.displayName }),
|
|
46
|
+
...(input.engagements != null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) }),
|
|
47
|
+
...(input.incidentTemplate != null && {
|
|
53
48
|
incidentTemplate: serializeAws_restJson1IncidentTemplate(input.incidentTemplate, context),
|
|
54
49
|
}),
|
|
55
|
-
...(input.name
|
|
56
|
-
...(input.tags
|
|
50
|
+
...(input.name != null && { name: input.name }),
|
|
51
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
57
52
|
});
|
|
58
53
|
return new protocol_http_1.HttpRequest({
|
|
59
54
|
protocol,
|
|
@@ -76,12 +71,10 @@ const serializeAws_restJson1CreateTimelineEventCommand = async (input, context)
|
|
|
76
71
|
let body;
|
|
77
72
|
body = JSON.stringify({
|
|
78
73
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
79
|
-
...(input.eventData
|
|
80
|
-
...(input.eventTime
|
|
81
|
-
|
|
82
|
-
...(input.
|
|
83
|
-
...(input.incidentRecordArn !== undefined &&
|
|
84
|
-
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn }),
|
|
74
|
+
...(input.eventData != null && { eventData: input.eventData }),
|
|
75
|
+
...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
|
|
76
|
+
...(input.eventType != null && { eventType: input.eventType }),
|
|
77
|
+
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
85
78
|
});
|
|
86
79
|
return new protocol_http_1.HttpRequest({
|
|
87
80
|
protocol,
|
|
@@ -102,7 +95,7 @@ const serializeAws_restJson1DeleteIncidentRecordCommand = async (input, context)
|
|
|
102
95
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteIncidentRecord";
|
|
103
96
|
let body;
|
|
104
97
|
body = JSON.stringify({
|
|
105
|
-
...(input.arn
|
|
98
|
+
...(input.arn != null && { arn: input.arn }),
|
|
106
99
|
});
|
|
107
100
|
return new protocol_http_1.HttpRequest({
|
|
108
101
|
protocol,
|
|
@@ -143,8 +136,8 @@ const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context)
|
|
|
143
136
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResourcePolicy";
|
|
144
137
|
let body;
|
|
145
138
|
body = JSON.stringify({
|
|
146
|
-
...(input.policyId
|
|
147
|
-
...(input.resourceArn
|
|
139
|
+
...(input.policyId != null && { policyId: input.policyId }),
|
|
140
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
148
141
|
});
|
|
149
142
|
return new protocol_http_1.HttpRequest({
|
|
150
143
|
protocol,
|
|
@@ -165,7 +158,7 @@ const serializeAws_restJson1DeleteResponsePlanCommand = async (input, context) =
|
|
|
165
158
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResponsePlan";
|
|
166
159
|
let body;
|
|
167
160
|
body = JSON.stringify({
|
|
168
|
-
...(input.arn
|
|
161
|
+
...(input.arn != null && { arn: input.arn }),
|
|
169
162
|
});
|
|
170
163
|
return new protocol_http_1.HttpRequest({
|
|
171
164
|
protocol,
|
|
@@ -186,9 +179,8 @@ const serializeAws_restJson1DeleteTimelineEventCommand = async (input, context)
|
|
|
186
179
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteTimelineEvent";
|
|
187
180
|
let body;
|
|
188
181
|
body = JSON.stringify({
|
|
189
|
-
...(input.eventId
|
|
190
|
-
...(input.incidentRecordArn
|
|
191
|
-
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn }),
|
|
182
|
+
...(input.eventId != null && { eventId: input.eventId }),
|
|
183
|
+
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
192
184
|
});
|
|
193
185
|
return new protocol_http_1.HttpRequest({
|
|
194
186
|
protocol,
|
|
@@ -252,8 +244,8 @@ const serializeAws_restJson1GetResourcePoliciesCommand = async (input, context)
|
|
|
252
244
|
};
|
|
253
245
|
let body;
|
|
254
246
|
body = JSON.stringify({
|
|
255
|
-
...(input.maxResults
|
|
256
|
-
...(input.nextToken
|
|
247
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
248
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
257
249
|
});
|
|
258
250
|
return new protocol_http_1.HttpRequest({
|
|
259
251
|
protocol,
|
|
@@ -316,10 +308,9 @@ const serializeAws_restJson1ListIncidentRecordsCommand = async (input, context)
|
|
|
316
308
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentRecords";
|
|
317
309
|
let body;
|
|
318
310
|
body = JSON.stringify({
|
|
319
|
-
...(input.filters
|
|
320
|
-
|
|
321
|
-
...(input.
|
|
322
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
311
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
312
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
313
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
323
314
|
});
|
|
324
315
|
return new protocol_http_1.HttpRequest({
|
|
325
316
|
protocol,
|
|
@@ -340,10 +331,9 @@ const serializeAws_restJson1ListRelatedItemsCommand = async (input, context) =>
|
|
|
340
331
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listRelatedItems";
|
|
341
332
|
let body;
|
|
342
333
|
body = JSON.stringify({
|
|
343
|
-
...(input.incidentRecordArn
|
|
344
|
-
|
|
345
|
-
...(input.
|
|
346
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
334
|
+
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
335
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
336
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
347
337
|
});
|
|
348
338
|
return new protocol_http_1.HttpRequest({
|
|
349
339
|
protocol,
|
|
@@ -364,8 +354,8 @@ const serializeAws_restJson1ListReplicationSetsCommand = async (input, context)
|
|
|
364
354
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listReplicationSets";
|
|
365
355
|
let body;
|
|
366
356
|
body = JSON.stringify({
|
|
367
|
-
...(input.maxResults
|
|
368
|
-
...(input.nextToken
|
|
357
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
358
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
369
359
|
});
|
|
370
360
|
return new protocol_http_1.HttpRequest({
|
|
371
361
|
protocol,
|
|
@@ -386,8 +376,8 @@ const serializeAws_restJson1ListResponsePlansCommand = async (input, context) =>
|
|
|
386
376
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listResponsePlans";
|
|
387
377
|
let body;
|
|
388
378
|
body = JSON.stringify({
|
|
389
|
-
...(input.maxResults
|
|
390
|
-
...(input.nextToken
|
|
379
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
380
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
391
381
|
});
|
|
392
382
|
return new protocol_http_1.HttpRequest({
|
|
393
383
|
protocol,
|
|
@@ -434,14 +424,12 @@ const serializeAws_restJson1ListTimelineEventsCommand = async (input, context) =
|
|
|
434
424
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listTimelineEvents";
|
|
435
425
|
let body;
|
|
436
426
|
body = JSON.stringify({
|
|
437
|
-
...(input.filters
|
|
438
|
-
|
|
439
|
-
...(input.
|
|
440
|
-
|
|
441
|
-
...(input.
|
|
442
|
-
...(input.
|
|
443
|
-
...(input.sortBy !== undefined && input.sortBy !== null && { sortBy: input.sortBy }),
|
|
444
|
-
...(input.sortOrder !== undefined && input.sortOrder !== null && { sortOrder: input.sortOrder }),
|
|
427
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
428
|
+
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
429
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
430
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
431
|
+
...(input.sortBy != null && { sortBy: input.sortBy }),
|
|
432
|
+
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
445
433
|
});
|
|
446
434
|
return new protocol_http_1.HttpRequest({
|
|
447
435
|
protocol,
|
|
@@ -462,8 +450,8 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
|
|
|
462
450
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/putResourcePolicy";
|
|
463
451
|
let body;
|
|
464
452
|
body = JSON.stringify({
|
|
465
|
-
...(input.policy
|
|
466
|
-
...(input.resourceArn
|
|
453
|
+
...(input.policy != null && { policy: input.policy }),
|
|
454
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
467
455
|
});
|
|
468
456
|
return new protocol_http_1.HttpRequest({
|
|
469
457
|
protocol,
|
|
@@ -486,16 +474,13 @@ const serializeAws_restJson1StartIncidentCommand = async (input, context) => {
|
|
|
486
474
|
let body;
|
|
487
475
|
body = JSON.stringify({
|
|
488
476
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
489
|
-
...(input.impact
|
|
490
|
-
...(input.relatedItems
|
|
491
|
-
input.relatedItems !== null && {
|
|
477
|
+
...(input.impact != null && { impact: input.impact }),
|
|
478
|
+
...(input.relatedItems != null && {
|
|
492
479
|
relatedItems: serializeAws_restJson1RelatedItemList(input.relatedItems, context),
|
|
493
480
|
}),
|
|
494
|
-
...(input.responsePlanArn
|
|
495
|
-
|
|
496
|
-
...(input.
|
|
497
|
-
...(input.triggerDetails !== undefined &&
|
|
498
|
-
input.triggerDetails !== null && {
|
|
481
|
+
...(input.responsePlanArn != null && { responsePlanArn: input.responsePlanArn }),
|
|
482
|
+
...(input.title != null && { title: input.title }),
|
|
483
|
+
...(input.triggerDetails != null && {
|
|
499
484
|
triggerDetails: serializeAws_restJson1TriggerDetails(input.triggerDetails, context),
|
|
500
485
|
}),
|
|
501
486
|
});
|
|
@@ -528,7 +513,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
528
513
|
}
|
|
529
514
|
let body;
|
|
530
515
|
body = JSON.stringify({
|
|
531
|
-
...(input.tags
|
|
516
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
532
517
|
});
|
|
533
518
|
return new protocol_http_1.HttpRequest({
|
|
534
519
|
protocol,
|
|
@@ -580,10 +565,9 @@ const serializeAws_restJson1UpdateDeletionProtectionCommand = async (input, cont
|
|
|
580
565
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateDeletionProtection";
|
|
581
566
|
let body;
|
|
582
567
|
body = JSON.stringify({
|
|
583
|
-
...(input.arn
|
|
568
|
+
...(input.arn != null && { arn: input.arn }),
|
|
584
569
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
585
|
-
...(input.deletionProtected
|
|
586
|
-
input.deletionProtected !== null && { deletionProtected: input.deletionProtected }),
|
|
570
|
+
...(input.deletionProtected != null && { deletionProtected: input.deletionProtected }),
|
|
587
571
|
});
|
|
588
572
|
return new protocol_http_1.HttpRequest({
|
|
589
573
|
protocol,
|
|
@@ -605,18 +589,16 @@ const serializeAws_restJson1UpdateIncidentRecordCommand = async (input, context)
|
|
|
605
589
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateIncidentRecord";
|
|
606
590
|
let body;
|
|
607
591
|
body = JSON.stringify({
|
|
608
|
-
...(input.arn
|
|
609
|
-
...(input.chatChannel
|
|
610
|
-
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
|
|
592
|
+
...(input.arn != null && { arn: input.arn }),
|
|
593
|
+
...(input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
|
|
611
594
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
612
|
-
...(input.impact
|
|
613
|
-
...(input.notificationTargets
|
|
614
|
-
input.notificationTargets !== null && {
|
|
595
|
+
...(input.impact != null && { impact: input.impact }),
|
|
596
|
+
...(input.notificationTargets != null && {
|
|
615
597
|
notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
|
|
616
598
|
}),
|
|
617
|
-
...(input.status
|
|
618
|
-
...(input.summary
|
|
619
|
-
...(input.title
|
|
599
|
+
...(input.status != null && { status: input.status }),
|
|
600
|
+
...(input.summary != null && { summary: input.summary }),
|
|
601
|
+
...(input.title != null && { title: input.title }),
|
|
620
602
|
});
|
|
621
603
|
return new protocol_http_1.HttpRequest({
|
|
622
604
|
protocol,
|
|
@@ -639,10 +621,8 @@ const serializeAws_restJson1UpdateRelatedItemsCommand = async (input, context) =
|
|
|
639
621
|
let body;
|
|
640
622
|
body = JSON.stringify({
|
|
641
623
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
642
|
-
...(input.incidentRecordArn
|
|
643
|
-
|
|
644
|
-
...(input.relatedItemsUpdate !== undefined &&
|
|
645
|
-
input.relatedItemsUpdate !== null && {
|
|
624
|
+
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
625
|
+
...(input.relatedItemsUpdate != null && {
|
|
646
626
|
relatedItemsUpdate: serializeAws_restJson1RelatedItemsUpdate(input.relatedItemsUpdate, context),
|
|
647
627
|
}),
|
|
648
628
|
});
|
|
@@ -666,9 +646,8 @@ const serializeAws_restJson1UpdateReplicationSetCommand = async (input, context)
|
|
|
666
646
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateReplicationSet";
|
|
667
647
|
let body;
|
|
668
648
|
body = JSON.stringify({
|
|
669
|
-
...(input.actions
|
|
670
|
-
|
|
671
|
-
...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
|
|
649
|
+
...(input.actions != null && { actions: serializeAws_restJson1UpdateActionList(input.actions, context) }),
|
|
650
|
+
...(input.arn != null && { arn: input.arn }),
|
|
672
651
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
673
652
|
});
|
|
674
653
|
return new protocol_http_1.HttpRequest({
|
|
@@ -691,29 +670,24 @@ const serializeAws_restJson1UpdateResponsePlanCommand = async (input, context) =
|
|
|
691
670
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateResponsePlan";
|
|
692
671
|
let body;
|
|
693
672
|
body = JSON.stringify({
|
|
694
|
-
...(input.actions
|
|
695
|
-
|
|
696
|
-
...(input.
|
|
697
|
-
...(input.chatChannel !== undefined &&
|
|
698
|
-
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
|
|
673
|
+
...(input.actions != null && { actions: serializeAws_restJson1ActionsList(input.actions, context) }),
|
|
674
|
+
...(input.arn != null && { arn: input.arn }),
|
|
675
|
+
...(input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
|
|
699
676
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
700
|
-
...(input.displayName
|
|
701
|
-
...(input.engagements
|
|
702
|
-
|
|
703
|
-
...(input.incidentTemplateDedupeString !== undefined &&
|
|
704
|
-
input.incidentTemplateDedupeString !== null && {
|
|
677
|
+
...(input.displayName != null && { displayName: input.displayName }),
|
|
678
|
+
...(input.engagements != null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) }),
|
|
679
|
+
...(input.incidentTemplateDedupeString != null && {
|
|
705
680
|
incidentTemplateDedupeString: input.incidentTemplateDedupeString,
|
|
706
681
|
}),
|
|
707
|
-
...(input.incidentTemplateImpact
|
|
708
|
-
|
|
709
|
-
...(input.incidentTemplateNotificationTargets !== undefined &&
|
|
710
|
-
input.incidentTemplateNotificationTargets !== null && {
|
|
682
|
+
...(input.incidentTemplateImpact != null && { incidentTemplateImpact: input.incidentTemplateImpact }),
|
|
683
|
+
...(input.incidentTemplateNotificationTargets != null && {
|
|
711
684
|
incidentTemplateNotificationTargets: serializeAws_restJson1NotificationTargetSet(input.incidentTemplateNotificationTargets, context),
|
|
712
685
|
}),
|
|
713
|
-
...(input.incidentTemplateSummary
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
686
|
+
...(input.incidentTemplateSummary != null && { incidentTemplateSummary: input.incidentTemplateSummary }),
|
|
687
|
+
...(input.incidentTemplateTags != null && {
|
|
688
|
+
incidentTemplateTags: serializeAws_restJson1TagMapUpdate(input.incidentTemplateTags, context),
|
|
689
|
+
}),
|
|
690
|
+
...(input.incidentTemplateTitle != null && { incidentTemplateTitle: input.incidentTemplateTitle }),
|
|
717
691
|
});
|
|
718
692
|
return new protocol_http_1.HttpRequest({
|
|
719
693
|
protocol,
|
|
@@ -736,13 +710,11 @@ const serializeAws_restJson1UpdateTimelineEventCommand = async (input, context)
|
|
|
736
710
|
let body;
|
|
737
711
|
body = JSON.stringify({
|
|
738
712
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
739
|
-
...(input.eventData
|
|
740
|
-
...(input.eventId
|
|
741
|
-
...(input.eventTime
|
|
742
|
-
|
|
743
|
-
...(input.
|
|
744
|
-
...(input.incidentRecordArn !== undefined &&
|
|
745
|
-
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn }),
|
|
713
|
+
...(input.eventData != null && { eventData: input.eventData }),
|
|
714
|
+
...(input.eventId != null && { eventId: input.eventId }),
|
|
715
|
+
...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
|
|
716
|
+
...(input.eventType != null && { eventType: input.eventType }),
|
|
717
|
+
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
746
718
|
});
|
|
747
719
|
return new protocol_http_1.HttpRequest({
|
|
748
720
|
protocol,
|
|
@@ -776,8 +748,7 @@ const deserializeAws_restJson1CreateReplicationSetCommandError = async (output,
|
|
|
776
748
|
body: await parseBody(output.body, context),
|
|
777
749
|
};
|
|
778
750
|
let response;
|
|
779
|
-
|
|
780
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
751
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
781
752
|
switch (errorCode) {
|
|
782
753
|
case "AccessDeniedException":
|
|
783
754
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -799,10 +770,12 @@ const deserializeAws_restJson1CreateReplicationSetCommandError = async (output,
|
|
|
799
770
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
800
771
|
default:
|
|
801
772
|
const parsedBody = parsedOutput.body;
|
|
773
|
+
const $metadata = deserializeMetadata(output);
|
|
774
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
802
775
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
803
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
776
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
804
777
|
$fault: "client",
|
|
805
|
-
$metadata
|
|
778
|
+
$metadata,
|
|
806
779
|
});
|
|
807
780
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
808
781
|
}
|
|
@@ -828,8 +801,7 @@ const deserializeAws_restJson1CreateResponsePlanCommandError = async (output, co
|
|
|
828
801
|
body: await parseBody(output.body, context),
|
|
829
802
|
};
|
|
830
803
|
let response;
|
|
831
|
-
|
|
832
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
805
|
switch (errorCode) {
|
|
834
806
|
case "AccessDeniedException":
|
|
835
807
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -851,10 +823,12 @@ const deserializeAws_restJson1CreateResponsePlanCommandError = async (output, co
|
|
|
851
823
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
852
824
|
default:
|
|
853
825
|
const parsedBody = parsedOutput.body;
|
|
826
|
+
const $metadata = deserializeMetadata(output);
|
|
827
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
854
828
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
855
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
829
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
856
830
|
$fault: "client",
|
|
857
|
-
$metadata
|
|
831
|
+
$metadata,
|
|
858
832
|
});
|
|
859
833
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
860
834
|
}
|
|
@@ -884,8 +858,7 @@ const deserializeAws_restJson1CreateTimelineEventCommandError = async (output, c
|
|
|
884
858
|
body: await parseBody(output.body, context),
|
|
885
859
|
};
|
|
886
860
|
let response;
|
|
887
|
-
|
|
888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
862
|
switch (errorCode) {
|
|
890
863
|
case "AccessDeniedException":
|
|
891
864
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -907,10 +880,12 @@ const deserializeAws_restJson1CreateTimelineEventCommandError = async (output, c
|
|
|
907
880
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
908
881
|
default:
|
|
909
882
|
const parsedBody = parsedOutput.body;
|
|
883
|
+
const $metadata = deserializeMetadata(output);
|
|
884
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
910
885
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
911
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
886
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
912
887
|
$fault: "client",
|
|
913
|
-
$metadata
|
|
888
|
+
$metadata,
|
|
914
889
|
});
|
|
915
890
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
916
891
|
}
|
|
@@ -932,8 +907,7 @@ const deserializeAws_restJson1DeleteIncidentRecordCommandError = async (output,
|
|
|
932
907
|
body: await parseBody(output.body, context),
|
|
933
908
|
};
|
|
934
909
|
let response;
|
|
935
|
-
|
|
936
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
937
911
|
switch (errorCode) {
|
|
938
912
|
case "AccessDeniedException":
|
|
939
913
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -949,10 +923,12 @@ const deserializeAws_restJson1DeleteIncidentRecordCommandError = async (output,
|
|
|
949
923
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
950
924
|
default:
|
|
951
925
|
const parsedBody = parsedOutput.body;
|
|
926
|
+
const $metadata = deserializeMetadata(output);
|
|
927
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
952
928
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
953
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
929
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
954
930
|
$fault: "client",
|
|
955
|
-
$metadata
|
|
931
|
+
$metadata,
|
|
956
932
|
});
|
|
957
933
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
958
934
|
}
|
|
@@ -974,8 +950,7 @@ const deserializeAws_restJson1DeleteReplicationSetCommandError = async (output,
|
|
|
974
950
|
body: await parseBody(output.body, context),
|
|
975
951
|
};
|
|
976
952
|
let response;
|
|
977
|
-
|
|
978
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
953
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
954
|
switch (errorCode) {
|
|
980
955
|
case "AccessDeniedException":
|
|
981
956
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -994,10 +969,12 @@ const deserializeAws_restJson1DeleteReplicationSetCommandError = async (output,
|
|
|
994
969
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
995
970
|
default:
|
|
996
971
|
const parsedBody = parsedOutput.body;
|
|
972
|
+
const $metadata = deserializeMetadata(output);
|
|
973
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
997
974
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
998
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
975
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
999
976
|
$fault: "client",
|
|
1000
|
-
$metadata
|
|
977
|
+
$metadata,
|
|
1001
978
|
});
|
|
1002
979
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1003
980
|
}
|
|
@@ -1019,8 +996,7 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1019
996
|
body: await parseBody(output.body, context),
|
|
1020
997
|
};
|
|
1021
998
|
let response;
|
|
1022
|
-
|
|
1023
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
999
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
1000
|
switch (errorCode) {
|
|
1025
1001
|
case "AccessDeniedException":
|
|
1026
1002
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1039,10 +1015,12 @@ const deserializeAws_restJson1DeleteResourcePolicyCommandError = async (output,
|
|
|
1039
1015
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1040
1016
|
default:
|
|
1041
1017
|
const parsedBody = parsedOutput.body;
|
|
1018
|
+
const $metadata = deserializeMetadata(output);
|
|
1019
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1042
1020
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1043
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1021
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1044
1022
|
$fault: "client",
|
|
1045
|
-
$metadata
|
|
1023
|
+
$metadata,
|
|
1046
1024
|
});
|
|
1047
1025
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1048
1026
|
}
|
|
@@ -1064,8 +1042,7 @@ const deserializeAws_restJson1DeleteResponsePlanCommandError = async (output, co
|
|
|
1064
1042
|
body: await parseBody(output.body, context),
|
|
1065
1043
|
};
|
|
1066
1044
|
let response;
|
|
1067
|
-
|
|
1068
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1045
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
1046
|
switch (errorCode) {
|
|
1070
1047
|
case "AccessDeniedException":
|
|
1071
1048
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1081,10 +1058,12 @@ const deserializeAws_restJson1DeleteResponsePlanCommandError = async (output, co
|
|
|
1081
1058
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1082
1059
|
default:
|
|
1083
1060
|
const parsedBody = parsedOutput.body;
|
|
1061
|
+
const $metadata = deserializeMetadata(output);
|
|
1062
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1084
1063
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1085
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1064
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1086
1065
|
$fault: "client",
|
|
1087
|
-
$metadata
|
|
1066
|
+
$metadata,
|
|
1088
1067
|
});
|
|
1089
1068
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1090
1069
|
}
|
|
@@ -1106,8 +1085,7 @@ const deserializeAws_restJson1DeleteTimelineEventCommandError = async (output, c
|
|
|
1106
1085
|
body: await parseBody(output.body, context),
|
|
1107
1086
|
};
|
|
1108
1087
|
let response;
|
|
1109
|
-
|
|
1110
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
1089
|
switch (errorCode) {
|
|
1112
1090
|
case "AccessDeniedException":
|
|
1113
1091
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1123,10 +1101,12 @@ const deserializeAws_restJson1DeleteTimelineEventCommandError = async (output, c
|
|
|
1123
1101
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1124
1102
|
default:
|
|
1125
1103
|
const parsedBody = parsedOutput.body;
|
|
1104
|
+
const $metadata = deserializeMetadata(output);
|
|
1105
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1126
1106
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1127
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1107
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1128
1108
|
$fault: "client",
|
|
1129
|
-
$metadata
|
|
1109
|
+
$metadata,
|
|
1130
1110
|
});
|
|
1131
1111
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1132
1112
|
}
|
|
@@ -1152,8 +1132,7 @@ const deserializeAws_restJson1GetIncidentRecordCommandError = async (output, con
|
|
|
1152
1132
|
body: await parseBody(output.body, context),
|
|
1153
1133
|
};
|
|
1154
1134
|
let response;
|
|
1155
|
-
|
|
1156
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1157
1136
|
switch (errorCode) {
|
|
1158
1137
|
case "AccessDeniedException":
|
|
1159
1138
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1172,10 +1151,12 @@ const deserializeAws_restJson1GetIncidentRecordCommandError = async (output, con
|
|
|
1172
1151
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1173
1152
|
default:
|
|
1174
1153
|
const parsedBody = parsedOutput.body;
|
|
1154
|
+
const $metadata = deserializeMetadata(output);
|
|
1155
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1175
1156
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1176
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1157
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1177
1158
|
$fault: "client",
|
|
1178
|
-
$metadata
|
|
1159
|
+
$metadata,
|
|
1179
1160
|
});
|
|
1180
1161
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1181
1162
|
}
|
|
@@ -1201,8 +1182,7 @@ const deserializeAws_restJson1GetReplicationSetCommandError = async (output, con
|
|
|
1201
1182
|
body: await parseBody(output.body, context),
|
|
1202
1183
|
};
|
|
1203
1184
|
let response;
|
|
1204
|
-
|
|
1205
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
1186
|
switch (errorCode) {
|
|
1207
1187
|
case "AccessDeniedException":
|
|
1208
1188
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1221,10 +1201,12 @@ const deserializeAws_restJson1GetReplicationSetCommandError = async (output, con
|
|
|
1221
1201
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1222
1202
|
default:
|
|
1223
1203
|
const parsedBody = parsedOutput.body;
|
|
1204
|
+
const $metadata = deserializeMetadata(output);
|
|
1205
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1224
1206
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1225
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1207
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1226
1208
|
$fault: "client",
|
|
1227
|
-
$metadata
|
|
1209
|
+
$metadata,
|
|
1228
1210
|
});
|
|
1229
1211
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1230
1212
|
}
|
|
@@ -1254,8 +1236,7 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
|
|
|
1254
1236
|
body: await parseBody(output.body, context),
|
|
1255
1237
|
};
|
|
1256
1238
|
let response;
|
|
1257
|
-
|
|
1258
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
1240
|
switch (errorCode) {
|
|
1260
1241
|
case "AccessDeniedException":
|
|
1261
1242
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1274,10 +1255,12 @@ const deserializeAws_restJson1GetResourcePoliciesCommandError = async (output, c
|
|
|
1274
1255
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1275
1256
|
default:
|
|
1276
1257
|
const parsedBody = parsedOutput.body;
|
|
1258
|
+
const $metadata = deserializeMetadata(output);
|
|
1259
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1277
1260
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1261
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1279
1262
|
$fault: "client",
|
|
1280
|
-
$metadata
|
|
1263
|
+
$metadata,
|
|
1281
1264
|
});
|
|
1282
1265
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1283
1266
|
}
|
|
@@ -1327,8 +1310,7 @@ const deserializeAws_restJson1GetResponsePlanCommandError = async (output, conte
|
|
|
1327
1310
|
body: await parseBody(output.body, context),
|
|
1328
1311
|
};
|
|
1329
1312
|
let response;
|
|
1330
|
-
|
|
1331
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1332
1314
|
switch (errorCode) {
|
|
1333
1315
|
case "AccessDeniedException":
|
|
1334
1316
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1347,10 +1329,12 @@ const deserializeAws_restJson1GetResponsePlanCommandError = async (output, conte
|
|
|
1347
1329
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1348
1330
|
default:
|
|
1349
1331
|
const parsedBody = parsedOutput.body;
|
|
1332
|
+
const $metadata = deserializeMetadata(output);
|
|
1333
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1350
1334
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1351
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1335
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1352
1336
|
$fault: "client",
|
|
1353
|
-
$metadata
|
|
1337
|
+
$metadata,
|
|
1354
1338
|
});
|
|
1355
1339
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1356
1340
|
}
|
|
@@ -1376,8 +1360,7 @@ const deserializeAws_restJson1GetTimelineEventCommandError = async (output, cont
|
|
|
1376
1360
|
body: await parseBody(output.body, context),
|
|
1377
1361
|
};
|
|
1378
1362
|
let response;
|
|
1379
|
-
|
|
1380
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1363
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1381
1364
|
switch (errorCode) {
|
|
1382
1365
|
case "AccessDeniedException":
|
|
1383
1366
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1396,10 +1379,12 @@ const deserializeAws_restJson1GetTimelineEventCommandError = async (output, cont
|
|
|
1396
1379
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1397
1380
|
default:
|
|
1398
1381
|
const parsedBody = parsedOutput.body;
|
|
1382
|
+
const $metadata = deserializeMetadata(output);
|
|
1383
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1399
1384
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1400
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1385
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1401
1386
|
$fault: "client",
|
|
1402
|
-
$metadata
|
|
1387
|
+
$metadata,
|
|
1403
1388
|
});
|
|
1404
1389
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1405
1390
|
}
|
|
@@ -1429,8 +1414,7 @@ const deserializeAws_restJson1ListIncidentRecordsCommandError = async (output, c
|
|
|
1429
1414
|
body: await parseBody(output.body, context),
|
|
1430
1415
|
};
|
|
1431
1416
|
let response;
|
|
1432
|
-
|
|
1433
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1434
1418
|
switch (errorCode) {
|
|
1435
1419
|
case "AccessDeniedException":
|
|
1436
1420
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1446,10 +1430,12 @@ const deserializeAws_restJson1ListIncidentRecordsCommandError = async (output, c
|
|
|
1446
1430
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1447
1431
|
default:
|
|
1448
1432
|
const parsedBody = parsedOutput.body;
|
|
1433
|
+
const $metadata = deserializeMetadata(output);
|
|
1434
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1449
1435
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1450
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1436
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1451
1437
|
$fault: "client",
|
|
1452
|
-
$metadata
|
|
1438
|
+
$metadata,
|
|
1453
1439
|
});
|
|
1454
1440
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1455
1441
|
}
|
|
@@ -1479,8 +1465,7 @@ const deserializeAws_restJson1ListRelatedItemsCommandError = async (output, cont
|
|
|
1479
1465
|
body: await parseBody(output.body, context),
|
|
1480
1466
|
};
|
|
1481
1467
|
let response;
|
|
1482
|
-
|
|
1483
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1484
1469
|
switch (errorCode) {
|
|
1485
1470
|
case "AccessDeniedException":
|
|
1486
1471
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1496,10 +1481,12 @@ const deserializeAws_restJson1ListRelatedItemsCommandError = async (output, cont
|
|
|
1496
1481
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1497
1482
|
default:
|
|
1498
1483
|
const parsedBody = parsedOutput.body;
|
|
1484
|
+
const $metadata = deserializeMetadata(output);
|
|
1485
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1499
1486
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1500
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1487
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1501
1488
|
$fault: "client",
|
|
1502
|
-
$metadata
|
|
1489
|
+
$metadata,
|
|
1503
1490
|
});
|
|
1504
1491
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1505
1492
|
}
|
|
@@ -1529,8 +1516,7 @@ const deserializeAws_restJson1ListReplicationSetsCommandError = async (output, c
|
|
|
1529
1516
|
body: await parseBody(output.body, context),
|
|
1530
1517
|
};
|
|
1531
1518
|
let response;
|
|
1532
|
-
|
|
1533
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1534
1520
|
switch (errorCode) {
|
|
1535
1521
|
case "AccessDeniedException":
|
|
1536
1522
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1546,10 +1532,12 @@ const deserializeAws_restJson1ListReplicationSetsCommandError = async (output, c
|
|
|
1546
1532
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1547
1533
|
default:
|
|
1548
1534
|
const parsedBody = parsedOutput.body;
|
|
1535
|
+
const $metadata = deserializeMetadata(output);
|
|
1536
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1549
1537
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1550
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1538
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1551
1539
|
$fault: "client",
|
|
1552
|
-
$metadata
|
|
1540
|
+
$metadata,
|
|
1553
1541
|
});
|
|
1554
1542
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1555
1543
|
}
|
|
@@ -1579,8 +1567,7 @@ const deserializeAws_restJson1ListResponsePlansCommandError = async (output, con
|
|
|
1579
1567
|
body: await parseBody(output.body, context),
|
|
1580
1568
|
};
|
|
1581
1569
|
let response;
|
|
1582
|
-
|
|
1583
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1584
1571
|
switch (errorCode) {
|
|
1585
1572
|
case "AccessDeniedException":
|
|
1586
1573
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1596,10 +1583,12 @@ const deserializeAws_restJson1ListResponsePlansCommandError = async (output, con
|
|
|
1596
1583
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1597
1584
|
default:
|
|
1598
1585
|
const parsedBody = parsedOutput.body;
|
|
1586
|
+
const $metadata = deserializeMetadata(output);
|
|
1587
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1599
1588
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1600
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1589
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1601
1590
|
$fault: "client",
|
|
1602
|
-
$metadata
|
|
1591
|
+
$metadata,
|
|
1603
1592
|
});
|
|
1604
1593
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1605
1594
|
}
|
|
@@ -1625,8 +1614,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1625
1614
|
body: await parseBody(output.body, context),
|
|
1626
1615
|
};
|
|
1627
1616
|
let response;
|
|
1628
|
-
|
|
1629
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1617
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1630
1618
|
switch (errorCode) {
|
|
1631
1619
|
case "AccessDeniedException":
|
|
1632
1620
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1645,10 +1633,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1645
1633
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1646
1634
|
default:
|
|
1647
1635
|
const parsedBody = parsedOutput.body;
|
|
1636
|
+
const $metadata = deserializeMetadata(output);
|
|
1637
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1648
1638
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1649
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1639
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1650
1640
|
$fault: "client",
|
|
1651
|
-
$metadata
|
|
1641
|
+
$metadata,
|
|
1652
1642
|
});
|
|
1653
1643
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1654
1644
|
}
|
|
@@ -1678,8 +1668,7 @@ const deserializeAws_restJson1ListTimelineEventsCommandError = async (output, co
|
|
|
1678
1668
|
body: await parseBody(output.body, context),
|
|
1679
1669
|
};
|
|
1680
1670
|
let response;
|
|
1681
|
-
|
|
1682
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
1672
|
switch (errorCode) {
|
|
1684
1673
|
case "AccessDeniedException":
|
|
1685
1674
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1695,10 +1684,12 @@ const deserializeAws_restJson1ListTimelineEventsCommandError = async (output, co
|
|
|
1695
1684
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1696
1685
|
default:
|
|
1697
1686
|
const parsedBody = parsedOutput.body;
|
|
1687
|
+
const $metadata = deserializeMetadata(output);
|
|
1688
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1698
1689
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1699
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1690
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1700
1691
|
$fault: "client",
|
|
1701
|
-
$metadata
|
|
1692
|
+
$metadata,
|
|
1702
1693
|
});
|
|
1703
1694
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1704
1695
|
}
|
|
@@ -1724,8 +1715,7 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1724
1715
|
body: await parseBody(output.body, context),
|
|
1725
1716
|
};
|
|
1726
1717
|
let response;
|
|
1727
|
-
|
|
1728
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1718
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1729
1719
|
switch (errorCode) {
|
|
1730
1720
|
case "AccessDeniedException":
|
|
1731
1721
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1744,10 +1734,12 @@ const deserializeAws_restJson1PutResourcePolicyCommandError = async (output, con
|
|
|
1744
1734
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1745
1735
|
default:
|
|
1746
1736
|
const parsedBody = parsedOutput.body;
|
|
1737
|
+
const $metadata = deserializeMetadata(output);
|
|
1738
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1747
1739
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1748
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1740
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1749
1741
|
$fault: "client",
|
|
1750
|
-
$metadata
|
|
1742
|
+
$metadata,
|
|
1751
1743
|
});
|
|
1752
1744
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1753
1745
|
}
|
|
@@ -1773,8 +1765,7 @@ const deserializeAws_restJson1StartIncidentCommandError = async (output, context
|
|
|
1773
1765
|
body: await parseBody(output.body, context),
|
|
1774
1766
|
};
|
|
1775
1767
|
let response;
|
|
1776
|
-
|
|
1777
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1778
1769
|
switch (errorCode) {
|
|
1779
1770
|
case "AccessDeniedException":
|
|
1780
1771
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1796,10 +1787,12 @@ const deserializeAws_restJson1StartIncidentCommandError = async (output, context
|
|
|
1796
1787
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1797
1788
|
default:
|
|
1798
1789
|
const parsedBody = parsedOutput.body;
|
|
1790
|
+
const $metadata = deserializeMetadata(output);
|
|
1791
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1799
1792
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1800
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1793
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1801
1794
|
$fault: "client",
|
|
1802
|
-
$metadata
|
|
1795
|
+
$metadata,
|
|
1803
1796
|
});
|
|
1804
1797
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1805
1798
|
}
|
|
@@ -1821,8 +1814,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1821
1814
|
body: await parseBody(output.body, context),
|
|
1822
1815
|
};
|
|
1823
1816
|
let response;
|
|
1824
|
-
|
|
1825
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1817
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
1818
|
switch (errorCode) {
|
|
1827
1819
|
case "AccessDeniedException":
|
|
1828
1820
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1847,10 +1839,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1847
1839
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1848
1840
|
default:
|
|
1849
1841
|
const parsedBody = parsedOutput.body;
|
|
1842
|
+
const $metadata = deserializeMetadata(output);
|
|
1843
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1850
1844
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1851
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1845
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1852
1846
|
$fault: "client",
|
|
1853
|
-
$metadata
|
|
1847
|
+
$metadata,
|
|
1854
1848
|
});
|
|
1855
1849
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1856
1850
|
}
|
|
@@ -1872,8 +1866,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1872
1866
|
body: await parseBody(output.body, context),
|
|
1873
1867
|
};
|
|
1874
1868
|
let response;
|
|
1875
|
-
|
|
1876
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
1870
|
switch (errorCode) {
|
|
1878
1871
|
case "AccessDeniedException":
|
|
1879
1872
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1895,10 +1888,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1895
1888
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1896
1889
|
default:
|
|
1897
1890
|
const parsedBody = parsedOutput.body;
|
|
1891
|
+
const $metadata = deserializeMetadata(output);
|
|
1892
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1898
1893
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1899
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1894
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1900
1895
|
$fault: "client",
|
|
1901
|
-
$metadata
|
|
1896
|
+
$metadata,
|
|
1902
1897
|
});
|
|
1903
1898
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1904
1899
|
}
|
|
@@ -1920,8 +1915,7 @@ const deserializeAws_restJson1UpdateDeletionProtectionCommandError = async (outp
|
|
|
1920
1915
|
body: await parseBody(output.body, context),
|
|
1921
1916
|
};
|
|
1922
1917
|
let response;
|
|
1923
|
-
|
|
1924
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1925
1919
|
switch (errorCode) {
|
|
1926
1920
|
case "AccessDeniedException":
|
|
1927
1921
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1940,10 +1934,12 @@ const deserializeAws_restJson1UpdateDeletionProtectionCommandError = async (outp
|
|
|
1940
1934
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1941
1935
|
default:
|
|
1942
1936
|
const parsedBody = parsedOutput.body;
|
|
1937
|
+
const $metadata = deserializeMetadata(output);
|
|
1938
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1943
1939
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1944
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1940
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1945
1941
|
$fault: "client",
|
|
1946
|
-
$metadata
|
|
1942
|
+
$metadata,
|
|
1947
1943
|
});
|
|
1948
1944
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1949
1945
|
}
|
|
@@ -1965,8 +1961,7 @@ const deserializeAws_restJson1UpdateIncidentRecordCommandError = async (output,
|
|
|
1965
1961
|
body: await parseBody(output.body, context),
|
|
1966
1962
|
};
|
|
1967
1963
|
let response;
|
|
1968
|
-
|
|
1969
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1964
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1970
1965
|
switch (errorCode) {
|
|
1971
1966
|
case "AccessDeniedException":
|
|
1972
1967
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -1988,10 +1983,12 @@ const deserializeAws_restJson1UpdateIncidentRecordCommandError = async (output,
|
|
|
1988
1983
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1989
1984
|
default:
|
|
1990
1985
|
const parsedBody = parsedOutput.body;
|
|
1986
|
+
const $metadata = deserializeMetadata(output);
|
|
1987
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1991
1988
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
1992
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1989
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1993
1990
|
$fault: "client",
|
|
1994
|
-
$metadata
|
|
1991
|
+
$metadata,
|
|
1995
1992
|
});
|
|
1996
1993
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1997
1994
|
}
|
|
@@ -2013,8 +2010,7 @@ const deserializeAws_restJson1UpdateRelatedItemsCommandError = async (output, co
|
|
|
2013
2010
|
body: await parseBody(output.body, context),
|
|
2014
2011
|
};
|
|
2015
2012
|
let response;
|
|
2016
|
-
|
|
2017
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
2014
|
switch (errorCode) {
|
|
2019
2015
|
case "AccessDeniedException":
|
|
2020
2016
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -2036,10 +2032,12 @@ const deserializeAws_restJson1UpdateRelatedItemsCommandError = async (output, co
|
|
|
2036
2032
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2037
2033
|
default:
|
|
2038
2034
|
const parsedBody = parsedOutput.body;
|
|
2035
|
+
const $metadata = deserializeMetadata(output);
|
|
2036
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2039
2037
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
2040
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2038
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2041
2039
|
$fault: "client",
|
|
2042
|
-
$metadata
|
|
2040
|
+
$metadata,
|
|
2043
2041
|
});
|
|
2044
2042
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2045
2043
|
}
|
|
@@ -2061,8 +2059,7 @@ const deserializeAws_restJson1UpdateReplicationSetCommandError = async (output,
|
|
|
2061
2059
|
body: await parseBody(output.body, context),
|
|
2062
2060
|
};
|
|
2063
2061
|
let response;
|
|
2064
|
-
|
|
2065
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2062
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2066
2063
|
switch (errorCode) {
|
|
2067
2064
|
case "AccessDeniedException":
|
|
2068
2065
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -2084,10 +2081,12 @@ const deserializeAws_restJson1UpdateReplicationSetCommandError = async (output,
|
|
|
2084
2081
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2085
2082
|
default:
|
|
2086
2083
|
const parsedBody = parsedOutput.body;
|
|
2084
|
+
const $metadata = deserializeMetadata(output);
|
|
2085
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2087
2086
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
2088
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2087
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2089
2088
|
$fault: "client",
|
|
2090
|
-
$metadata
|
|
2089
|
+
$metadata,
|
|
2091
2090
|
});
|
|
2092
2091
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2093
2092
|
}
|
|
@@ -2109,8 +2108,7 @@ const deserializeAws_restJson1UpdateResponsePlanCommandError = async (output, co
|
|
|
2109
2108
|
body: await parseBody(output.body, context),
|
|
2110
2109
|
};
|
|
2111
2110
|
let response;
|
|
2112
|
-
|
|
2113
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2111
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
2112
|
switch (errorCode) {
|
|
2115
2113
|
case "AccessDeniedException":
|
|
2116
2114
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -2132,10 +2130,12 @@ const deserializeAws_restJson1UpdateResponsePlanCommandError = async (output, co
|
|
|
2132
2130
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2133
2131
|
default:
|
|
2134
2132
|
const parsedBody = parsedOutput.body;
|
|
2133
|
+
const $metadata = deserializeMetadata(output);
|
|
2134
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2135
2135
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
2136
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2136
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2137
2137
|
$fault: "client",
|
|
2138
|
-
$metadata
|
|
2138
|
+
$metadata,
|
|
2139
2139
|
});
|
|
2140
2140
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2141
2141
|
}
|
|
@@ -2157,8 +2157,7 @@ const deserializeAws_restJson1UpdateTimelineEventCommandError = async (output, c
|
|
|
2157
2157
|
body: await parseBody(output.body, context),
|
|
2158
2158
|
};
|
|
2159
2159
|
let response;
|
|
2160
|
-
|
|
2161
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
2161
|
switch (errorCode) {
|
|
2163
2162
|
case "AccessDeniedException":
|
|
2164
2163
|
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
@@ -2180,10 +2179,12 @@ const deserializeAws_restJson1UpdateTimelineEventCommandError = async (output, c
|
|
|
2180
2179
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2181
2180
|
default:
|
|
2182
2181
|
const parsedBody = parsedOutput.body;
|
|
2182
|
+
const $metadata = deserializeMetadata(output);
|
|
2183
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2183
2184
|
response = new SSMIncidentsServiceException_1.SSMIncidentsServiceException({
|
|
2184
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2185
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2185
2186
|
$fault: "client",
|
|
2186
|
-
$metadata
|
|
2187
|
+
$metadata,
|
|
2187
2188
|
});
|
|
2188
2189
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2189
2190
|
}
|
|
@@ -2323,8 +2324,8 @@ const serializeAws_restJson1ActionsList = (input, context) => {
|
|
|
2323
2324
|
};
|
|
2324
2325
|
const serializeAws_restJson1AddRegionAction = (input, context) => {
|
|
2325
2326
|
return {
|
|
2326
|
-
...(input.regionName
|
|
2327
|
-
...(input.sseKmsKeyId
|
|
2327
|
+
...(input.regionName != null && { regionName: input.regionName }),
|
|
2328
|
+
...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
|
|
2328
2329
|
};
|
|
2329
2330
|
};
|
|
2330
2331
|
const serializeAws_restJson1AttributeValueList = (input, context) => {
|
|
@@ -2361,7 +2362,7 @@ const serializeAws_restJson1Condition = (input, context) => {
|
|
|
2361
2362
|
};
|
|
2362
2363
|
const serializeAws_restJson1DeleteRegionAction = (input, context) => {
|
|
2363
2364
|
return {
|
|
2364
|
-
...(input.regionName
|
|
2365
|
+
...(input.regionName != null && { regionName: input.regionName }),
|
|
2365
2366
|
};
|
|
2366
2367
|
};
|
|
2367
2368
|
const serializeAws_restJson1DynamicSsmParameters = (input, context) => {
|
|
@@ -2396,9 +2397,8 @@ const serializeAws_restJson1EngagementSet = (input, context) => {
|
|
|
2396
2397
|
};
|
|
2397
2398
|
const serializeAws_restJson1Filter = (input, context) => {
|
|
2398
2399
|
return {
|
|
2399
|
-
...(input.condition
|
|
2400
|
-
|
|
2401
|
-
...(input.key !== undefined && input.key !== null && { key: input.key }),
|
|
2400
|
+
...(input.condition != null && { condition: serializeAws_restJson1Condition(input.condition, context) }),
|
|
2401
|
+
...(input.key != null && { key: input.key }),
|
|
2402
2402
|
};
|
|
2403
2403
|
};
|
|
2404
2404
|
const serializeAws_restJson1FilterList = (input, context) => {
|
|
@@ -2413,14 +2413,14 @@ const serializeAws_restJson1FilterList = (input, context) => {
|
|
|
2413
2413
|
};
|
|
2414
2414
|
const serializeAws_restJson1IncidentTemplate = (input, context) => {
|
|
2415
2415
|
return {
|
|
2416
|
-
...(input.dedupeString
|
|
2417
|
-
...(input.impact
|
|
2418
|
-
...(input.
|
|
2419
|
-
|
|
2416
|
+
...(input.dedupeString != null && { dedupeString: input.dedupeString }),
|
|
2417
|
+
...(input.impact != null && { impact: input.impact }),
|
|
2418
|
+
...(input.incidentTags != null && { incidentTags: serializeAws_restJson1TagMap(input.incidentTags, context) }),
|
|
2419
|
+
...(input.notificationTargets != null && {
|
|
2420
2420
|
notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
|
|
2421
2421
|
}),
|
|
2422
|
-
...(input.summary
|
|
2423
|
-
...(input.title
|
|
2422
|
+
...(input.summary != null && { summary: input.summary }),
|
|
2423
|
+
...(input.title != null && { title: input.title }),
|
|
2424
2424
|
};
|
|
2425
2425
|
};
|
|
2426
2426
|
const serializeAws_restJson1IntegerList = (input, context) => {
|
|
@@ -2435,9 +2435,8 @@ const serializeAws_restJson1IntegerList = (input, context) => {
|
|
|
2435
2435
|
};
|
|
2436
2436
|
const serializeAws_restJson1ItemIdentifier = (input, context) => {
|
|
2437
2437
|
return {
|
|
2438
|
-
...(input.type
|
|
2439
|
-
...(input.value
|
|
2440
|
-
input.value !== null && { value: serializeAws_restJson1ItemValue(input.value, context) }),
|
|
2438
|
+
...(input.type != null && { type: input.type }),
|
|
2439
|
+
...(input.value != null && { value: serializeAws_restJson1ItemValue(input.value, context) }),
|
|
2441
2440
|
};
|
|
2442
2441
|
};
|
|
2443
2442
|
const serializeAws_restJson1ItemValue = (input, context) => {
|
|
@@ -2477,14 +2476,13 @@ const serializeAws_restJson1RegionMapInput = (input, context) => {
|
|
|
2477
2476
|
};
|
|
2478
2477
|
const serializeAws_restJson1RegionMapInputValue = (input, context) => {
|
|
2479
2478
|
return {
|
|
2480
|
-
...(input.sseKmsKeyId
|
|
2479
|
+
...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
|
|
2481
2480
|
};
|
|
2482
2481
|
};
|
|
2483
2482
|
const serializeAws_restJson1RelatedItem = (input, context) => {
|
|
2484
2483
|
return {
|
|
2485
|
-
...(input.identifier
|
|
2486
|
-
|
|
2487
|
-
...(input.title !== undefined && input.title !== null && { title: input.title }),
|
|
2484
|
+
...(input.identifier != null && { identifier: serializeAws_restJson1ItemIdentifier(input.identifier, context) }),
|
|
2485
|
+
...(input.title != null && { title: input.title }),
|
|
2488
2486
|
};
|
|
2489
2487
|
};
|
|
2490
2488
|
const serializeAws_restJson1RelatedItemList = (input, context) => {
|
|
@@ -2506,17 +2504,14 @@ const serializeAws_restJson1RelatedItemsUpdate = (input, context) => {
|
|
|
2506
2504
|
};
|
|
2507
2505
|
const serializeAws_restJson1SsmAutomation = (input, context) => {
|
|
2508
2506
|
return {
|
|
2509
|
-
...(input.documentName
|
|
2510
|
-
...(input.documentVersion
|
|
2511
|
-
|
|
2512
|
-
...(input.dynamicParameters !== undefined &&
|
|
2513
|
-
input.dynamicParameters !== null && {
|
|
2507
|
+
...(input.documentName != null && { documentName: input.documentName }),
|
|
2508
|
+
...(input.documentVersion != null && { documentVersion: input.documentVersion }),
|
|
2509
|
+
...(input.dynamicParameters != null && {
|
|
2514
2510
|
dynamicParameters: serializeAws_restJson1DynamicSsmParameters(input.dynamicParameters, context),
|
|
2515
2511
|
}),
|
|
2516
|
-
...(input.parameters
|
|
2517
|
-
|
|
2518
|
-
...(input.
|
|
2519
|
-
...(input.targetAccount !== undefined && input.targetAccount !== null && { targetAccount: input.targetAccount }),
|
|
2512
|
+
...(input.parameters != null && { parameters: serializeAws_restJson1SsmParameters(input.parameters, context) }),
|
|
2513
|
+
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2514
|
+
...(input.targetAccount != null && { targetAccount: input.targetAccount }),
|
|
2520
2515
|
};
|
|
2521
2516
|
};
|
|
2522
2517
|
const serializeAws_restJson1SsmParameters = (input, context) => {
|
|
@@ -2561,13 +2556,23 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2561
2556
|
};
|
|
2562
2557
|
}, {});
|
|
2563
2558
|
};
|
|
2559
|
+
const serializeAws_restJson1TagMapUpdate = (input, context) => {
|
|
2560
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2561
|
+
if (value === null) {
|
|
2562
|
+
return acc;
|
|
2563
|
+
}
|
|
2564
|
+
return {
|
|
2565
|
+
...acc,
|
|
2566
|
+
[key]: value,
|
|
2567
|
+
};
|
|
2568
|
+
}, {});
|
|
2569
|
+
};
|
|
2564
2570
|
const serializeAws_restJson1TriggerDetails = (input, context) => {
|
|
2565
2571
|
return {
|
|
2566
|
-
...(input.rawData
|
|
2567
|
-
...(input.source
|
|
2568
|
-
...(input.timestamp
|
|
2569
|
-
|
|
2570
|
-
...(input.triggerArn !== undefined && input.triggerArn !== null && { triggerArn: input.triggerArn }),
|
|
2572
|
+
...(input.rawData != null && { rawData: input.rawData }),
|
|
2573
|
+
...(input.source != null && { source: input.source }),
|
|
2574
|
+
...(input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
|
|
2575
|
+
...(input.triggerArn != null && { triggerArn: input.triggerArn }),
|
|
2571
2576
|
};
|
|
2572
2577
|
};
|
|
2573
2578
|
const serializeAws_restJson1UpdateActionList = (input, context) => {
|
|
@@ -2681,11 +2686,9 @@ const deserializeAws_restJson1EngagementSet = (output, context) => {
|
|
|
2681
2686
|
const deserializeAws_restJson1EventSummary = (output, context) => {
|
|
2682
2687
|
return {
|
|
2683
2688
|
eventId: (0, smithy_client_1.expectString)(output.eventId),
|
|
2684
|
-
eventTime: output.eventTime
|
|
2685
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime)))
|
|
2686
|
-
: undefined,
|
|
2689
|
+
eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
|
|
2687
2690
|
eventType: (0, smithy_client_1.expectString)(output.eventType),
|
|
2688
|
-
eventUpdatedTime: output.eventUpdatedTime
|
|
2691
|
+
eventUpdatedTime: output.eventUpdatedTime != null
|
|
2689
2692
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventUpdatedTime)))
|
|
2690
2693
|
: undefined,
|
|
2691
2694
|
incidentRecordArn: (0, smithy_client_1.expectString)(output.incidentRecordArn),
|
|
@@ -2705,28 +2708,28 @@ const deserializeAws_restJson1EventSummaryList = (output, context) => {
|
|
|
2705
2708
|
const deserializeAws_restJson1IncidentRecord = (output, context) => {
|
|
2706
2709
|
return {
|
|
2707
2710
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2708
|
-
automationExecutions: output.automationExecutions
|
|
2711
|
+
automationExecutions: output.automationExecutions != null
|
|
2709
2712
|
? deserializeAws_restJson1AutomationExecutionSet(output.automationExecutions, context)
|
|
2710
2713
|
: undefined,
|
|
2711
|
-
chatChannel: output.chatChannel
|
|
2714
|
+
chatChannel: output.chatChannel != null
|
|
2712
2715
|
? deserializeAws_restJson1ChatChannel((0, smithy_client_1.expectUnion)(output.chatChannel), context)
|
|
2713
2716
|
: undefined,
|
|
2714
|
-
creationTime: output.creationTime
|
|
2717
|
+
creationTime: output.creationTime != null
|
|
2715
2718
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
2716
2719
|
: undefined,
|
|
2717
2720
|
dedupeString: (0, smithy_client_1.expectString)(output.dedupeString),
|
|
2718
2721
|
impact: (0, smithy_client_1.expectInt32)(output.impact),
|
|
2719
|
-
incidentRecordSource: output.incidentRecordSource
|
|
2722
|
+
incidentRecordSource: output.incidentRecordSource != null
|
|
2720
2723
|
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
2721
2724
|
: undefined,
|
|
2722
2725
|
lastModifiedBy: (0, smithy_client_1.expectString)(output.lastModifiedBy),
|
|
2723
|
-
lastModifiedTime: output.lastModifiedTime
|
|
2726
|
+
lastModifiedTime: output.lastModifiedTime != null
|
|
2724
2727
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedTime)))
|
|
2725
2728
|
: undefined,
|
|
2726
|
-
notificationTargets: output.notificationTargets
|
|
2729
|
+
notificationTargets: output.notificationTargets != null
|
|
2727
2730
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
2728
2731
|
: undefined,
|
|
2729
|
-
resolvedTime: output.resolvedTime
|
|
2732
|
+
resolvedTime: output.resolvedTime != null
|
|
2730
2733
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.resolvedTime)))
|
|
2731
2734
|
: undefined,
|
|
2732
2735
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -2745,14 +2748,14 @@ const deserializeAws_restJson1IncidentRecordSource = (output, context) => {
|
|
|
2745
2748
|
const deserializeAws_restJson1IncidentRecordSummary = (output, context) => {
|
|
2746
2749
|
return {
|
|
2747
2750
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2748
|
-
creationTime: output.creationTime
|
|
2751
|
+
creationTime: output.creationTime != null
|
|
2749
2752
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
2750
2753
|
: undefined,
|
|
2751
2754
|
impact: (0, smithy_client_1.expectInt32)(output.impact),
|
|
2752
|
-
incidentRecordSource: output.incidentRecordSource
|
|
2755
|
+
incidentRecordSource: output.incidentRecordSource != null
|
|
2753
2756
|
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
2754
2757
|
: undefined,
|
|
2755
|
-
resolvedTime: output.resolvedTime
|
|
2758
|
+
resolvedTime: output.resolvedTime != null
|
|
2756
2759
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.resolvedTime)))
|
|
2757
2760
|
: undefined,
|
|
2758
2761
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -2774,7 +2777,8 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
|
|
|
2774
2777
|
return {
|
|
2775
2778
|
dedupeString: (0, smithy_client_1.expectString)(output.dedupeString),
|
|
2776
2779
|
impact: (0, smithy_client_1.expectInt32)(output.impact),
|
|
2777
|
-
|
|
2780
|
+
incidentTags: output.incidentTags != null ? deserializeAws_restJson1TagMap(output.incidentTags, context) : undefined,
|
|
2781
|
+
notificationTargets: output.notificationTargets != null
|
|
2778
2782
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
2779
2783
|
: undefined,
|
|
2780
2784
|
summary: (0, smithy_client_1.expectString)(output.summary),
|
|
@@ -2784,9 +2788,7 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
|
|
|
2784
2788
|
const deserializeAws_restJson1ItemIdentifier = (output, context) => {
|
|
2785
2789
|
return {
|
|
2786
2790
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2787
|
-
value: output.value
|
|
2788
|
-
? deserializeAws_restJson1ItemValue((0, smithy_client_1.expectUnion)(output.value), context)
|
|
2789
|
-
: undefined,
|
|
2791
|
+
value: output.value != null ? deserializeAws_restJson1ItemValue((0, smithy_client_1.expectUnion)(output.value), context) : undefined,
|
|
2790
2792
|
};
|
|
2791
2793
|
};
|
|
2792
2794
|
const deserializeAws_restJson1ItemValue = (output, context) => {
|
|
@@ -2823,7 +2825,7 @@ const deserializeAws_restJson1RegionInfo = (output, context) => {
|
|
|
2823
2825
|
sseKmsKeyId: (0, smithy_client_1.expectString)(output.sseKmsKeyId),
|
|
2824
2826
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2825
2827
|
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
2826
|
-
statusUpdateDateTime: output.statusUpdateDateTime
|
|
2828
|
+
statusUpdateDateTime: output.statusUpdateDateTime != null
|
|
2827
2829
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.statusUpdateDateTime)))
|
|
2828
2830
|
: undefined,
|
|
2829
2831
|
};
|
|
@@ -2841,9 +2843,7 @@ const deserializeAws_restJson1RegionInfoMap = (output, context) => {
|
|
|
2841
2843
|
};
|
|
2842
2844
|
const deserializeAws_restJson1RelatedItem = (output, context) => {
|
|
2843
2845
|
return {
|
|
2844
|
-
identifier: output.identifier
|
|
2845
|
-
? deserializeAws_restJson1ItemIdentifier(output.identifier, context)
|
|
2846
|
-
: undefined,
|
|
2846
|
+
identifier: output.identifier != null ? deserializeAws_restJson1ItemIdentifier(output.identifier, context) : undefined,
|
|
2847
2847
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
2848
2848
|
};
|
|
2849
2849
|
};
|
|
@@ -2862,17 +2862,15 @@ const deserializeAws_restJson1ReplicationSet = (output, context) => {
|
|
|
2862
2862
|
return {
|
|
2863
2863
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2864
2864
|
createdBy: (0, smithy_client_1.expectString)(output.createdBy),
|
|
2865
|
-
createdTime: output.createdTime
|
|
2865
|
+
createdTime: output.createdTime != null
|
|
2866
2866
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdTime)))
|
|
2867
2867
|
: undefined,
|
|
2868
2868
|
deletionProtected: (0, smithy_client_1.expectBoolean)(output.deletionProtected),
|
|
2869
2869
|
lastModifiedBy: (0, smithy_client_1.expectString)(output.lastModifiedBy),
|
|
2870
|
-
lastModifiedTime: output.lastModifiedTime
|
|
2870
|
+
lastModifiedTime: output.lastModifiedTime != null
|
|
2871
2871
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedTime)))
|
|
2872
2872
|
: undefined,
|
|
2873
|
-
regionMap: output.regionMap
|
|
2874
|
-
? deserializeAws_restJson1RegionInfoMap(output.regionMap, context)
|
|
2875
|
-
: undefined,
|
|
2873
|
+
regionMap: output.regionMap != null ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context) : undefined,
|
|
2876
2874
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2877
2875
|
};
|
|
2878
2876
|
};
|
|
@@ -2927,12 +2925,10 @@ const deserializeAws_restJson1SsmAutomation = (output, context) => {
|
|
|
2927
2925
|
return {
|
|
2928
2926
|
documentName: (0, smithy_client_1.expectString)(output.documentName),
|
|
2929
2927
|
documentVersion: (0, smithy_client_1.expectString)(output.documentVersion),
|
|
2930
|
-
dynamicParameters: output.dynamicParameters
|
|
2928
|
+
dynamicParameters: output.dynamicParameters != null
|
|
2931
2929
|
? deserializeAws_restJson1DynamicSsmParameters(output.dynamicParameters, context)
|
|
2932
2930
|
: undefined,
|
|
2933
|
-
parameters: output.parameters
|
|
2934
|
-
? deserializeAws_restJson1SsmParameters(output.parameters, context)
|
|
2935
|
-
: undefined,
|
|
2931
|
+
parameters: output.parameters != null ? deserializeAws_restJson1SsmParameters(output.parameters, context) : undefined,
|
|
2936
2932
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2937
2933
|
targetAccount: (0, smithy_client_1.expectString)(output.targetAccount),
|
|
2938
2934
|
};
|
|
@@ -2974,11 +2970,9 @@ const deserializeAws_restJson1TimelineEvent = (output, context) => {
|
|
|
2974
2970
|
return {
|
|
2975
2971
|
eventData: (0, smithy_client_1.expectString)(output.eventData),
|
|
2976
2972
|
eventId: (0, smithy_client_1.expectString)(output.eventId),
|
|
2977
|
-
eventTime: output.eventTime
|
|
2978
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime)))
|
|
2979
|
-
: undefined,
|
|
2973
|
+
eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
|
|
2980
2974
|
eventType: (0, smithy_client_1.expectString)(output.eventType),
|
|
2981
|
-
eventUpdatedTime: output.eventUpdatedTime
|
|
2975
|
+
eventUpdatedTime: output.eventUpdatedTime != null
|
|
2982
2976
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventUpdatedTime)))
|
|
2983
2977
|
: undefined,
|
|
2984
2978
|
incidentRecordArn: (0, smithy_client_1.expectString)(output.incidentRecordArn),
|
|
@@ -3033,5 +3027,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3033
3027
|
if (data["__type"] !== undefined) {
|
|
3034
3028
|
return sanitizeErrorCode(data["__type"]);
|
|
3035
3029
|
}
|
|
3036
|
-
return "";
|
|
3037
3030
|
};
|