@aws-sdk/client-ssm-incidents 3.121.0 → 3.128.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.
@@ -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 !== undefined &&
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 !== undefined &&
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 !== undefined && input.name !== null && { name: input.name })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
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 !== undefined && input.eventData !== null && { eventData: input.eventData })), (input.eventTime !== undefined &&
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 !== undefined && input.arn !== null && { arn: 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 !== undefined && input.policyId !== null && { policyId: input.policyId })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })));
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 !== undefined && input.arn !== null && { arn: 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 !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.incidentRecordArn !== undefined &&
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 !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
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 !== undefined &&
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 !== undefined &&
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 !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
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 !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
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 !== undefined &&
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 !== undefined && input.policy !== null && { policy: input.policy })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })));
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 !== undefined && input.impact !== null && { impact: input.impact })), (input.relatedItems !== undefined &&
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 !== undefined &&
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 !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
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 !== undefined && input.arn !== null && { arn: input.arn })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.deletionProtected !== undefined &&
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 !== undefined && input.arn !== null && { arn: input.arn })), (input.chatChannel !== undefined &&
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 !== undefined && input.status !== null && { status: input.status })), (input.summary !== undefined && input.summary !== null && { summary: input.summary })), (input.title !== undefined && input.title !== null && { title: input.title })));
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
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 !== undefined &&
740
- input.incidentTemplateSummary !== null && { incidentTemplateSummary: input.incidentTemplateSummary })), (input.incidentTemplateTitle !== undefined &&
741
- input.incidentTemplateTitle !== null && { incidentTemplateTitle: input.incidentTemplateTitle })));
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 !== undefined && input.eventData !== null && { eventData: input.eventData })), (input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId })), (input.eventTime !== undefined &&
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,
@@ -3019,7 +2990,7 @@ var serializeAws_restJson1ActionsList = function (input, context) {
3019
2990
  });
3020
2991
  };
3021
2992
  var serializeAws_restJson1AddRegionAction = function (input, context) {
3022
- return __assign(__assign({}, (input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName })), (input.sseKmsKeyId !== undefined && input.sseKmsKeyId !== null && { sseKmsKeyId: input.sseKmsKeyId }));
2993
+ return __assign(__assign({}, (input.regionName != null && { regionName: input.regionName })), (input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }));
3023
2994
  };
3024
2995
  var serializeAws_restJson1AttributeValueList = function (input, context) {
3025
2996
  return AttributeValueList.visit(input, {
@@ -3054,7 +3025,7 @@ var serializeAws_restJson1Condition = function (input, context) {
3054
3025
  });
3055
3026
  };
3056
3027
  var serializeAws_restJson1DeleteRegionAction = function (input, context) {
3057
- return __assign({}, (input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName }));
3028
+ return __assign({}, (input.regionName != null && { regionName: input.regionName }));
3058
3029
  };
3059
3030
  var serializeAws_restJson1DynamicSsmParameters = function (input, context) {
3060
3031
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3086,8 +3057,7 @@ var serializeAws_restJson1EngagementSet = function (input, context) {
3086
3057
  });
3087
3058
  };
3088
3059
  var serializeAws_restJson1Filter = function (input, context) {
3089
- return __assign(__assign({}, (input.condition !== undefined &&
3090
- 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 }));
3091
3061
  };
3092
3062
  var serializeAws_restJson1FilterList = function (input, context) {
3093
3063
  return input
@@ -3100,10 +3070,9 @@ var serializeAws_restJson1FilterList = function (input, context) {
3100
3070
  });
3101
3071
  };
3102
3072
  var serializeAws_restJson1IncidentTemplate = function (input, context) {
3103
- return __assign(__assign(__assign(__assign(__assign({}, (input.dedupeString !== undefined && input.dedupeString !== null && { dedupeString: input.dedupeString })), (input.impact !== undefined && input.impact !== null && { impact: input.impact })), (input.notificationTargets !== undefined &&
3104
- 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 && {
3105
3074
  notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
3106
- })), (input.summary !== undefined && input.summary !== null && { summary: input.summary })), (input.title !== undefined && input.title !== null && { title: input.title }));
3075
+ })), (input.summary != null && { summary: input.summary })), (input.title != null && { title: input.title }));
3107
3076
  };
3108
3077
  var serializeAws_restJson1IntegerList = function (input, context) {
3109
3078
  return input
@@ -3116,8 +3085,7 @@ var serializeAws_restJson1IntegerList = function (input, context) {
3116
3085
  });
3117
3086
  };
3118
3087
  var serializeAws_restJson1ItemIdentifier = function (input, context) {
3119
- return __assign(__assign({}, (input.type !== undefined && input.type !== null && { type: input.type })), (input.value !== undefined &&
3120
- 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) }));
3121
3089
  };
3122
3090
  var serializeAws_restJson1ItemValue = function (input, context) {
3123
3091
  return ItemValue.visit(input, {
@@ -3154,11 +3122,10 @@ var serializeAws_restJson1RegionMapInput = function (input, context) {
3154
3122
  }, {});
3155
3123
  };
3156
3124
  var serializeAws_restJson1RegionMapInputValue = function (input, context) {
3157
- return __assign({}, (input.sseKmsKeyId !== undefined && input.sseKmsKeyId !== null && { sseKmsKeyId: input.sseKmsKeyId }));
3125
+ return __assign({}, (input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }));
3158
3126
  };
3159
3127
  var serializeAws_restJson1RelatedItem = function (input, context) {
3160
- return __assign(__assign({}, (input.identifier !== undefined &&
3161
- 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 }));
3162
3129
  };
3163
3130
  var serializeAws_restJson1RelatedItemList = function (input, context) {
3164
3131
  return input
@@ -3178,12 +3145,9 @@ var serializeAws_restJson1RelatedItemsUpdate = function (input, context) {
3178
3145
  });
3179
3146
  };
3180
3147
  var serializeAws_restJson1SsmAutomation = function (input, context) {
3181
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.documentName !== undefined && input.documentName !== null && { documentName: input.documentName })), (input.documentVersion !== undefined &&
3182
- input.documentVersion !== null && { documentVersion: input.documentVersion })), (input.dynamicParameters !== undefined &&
3183
- 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 && {
3184
3149
  dynamicParameters: serializeAws_restJson1DynamicSsmParameters(input.dynamicParameters, context),
3185
- })), (input.parameters !== undefined &&
3186
- 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 }));
3187
3151
  };
3188
3152
  var serializeAws_restJson1SsmParameters = function (input, context) {
3189
3153
  return Object.entries(input).reduce(function (acc, _a) {
@@ -3225,9 +3189,18 @@ var serializeAws_restJson1TagMap = function (input, context) {
3225
3189
  return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
3226
3190
  }, {});
3227
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
+ };
3228
3202
  var serializeAws_restJson1TriggerDetails = function (input, context) {
3229
- return __assign(__assign(__assign(__assign({}, (input.rawData !== undefined && input.rawData !== null && { rawData: input.rawData })), (input.source !== undefined && input.source !== null && { source: input.source })), (input.timestamp !== undefined &&
3230
- 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 }));
3231
3204
  };
3232
3205
  var serializeAws_restJson1UpdateActionList = function (input, context) {
3233
3206
  return input
@@ -3339,11 +3312,9 @@ var deserializeAws_restJson1EngagementSet = function (output, context) {
3339
3312
  var deserializeAws_restJson1EventSummary = function (output, context) {
3340
3313
  return {
3341
3314
  eventId: __expectString(output.eventId),
3342
- eventTime: output.eventTime !== undefined && output.eventTime !== null
3343
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
3344
- : undefined,
3315
+ eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
3345
3316
  eventType: __expectString(output.eventType),
3346
- eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
3317
+ eventUpdatedTime: output.eventUpdatedTime != null
3347
3318
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
3348
3319
  : undefined,
3349
3320
  incidentRecordArn: __expectString(output.incidentRecordArn),
@@ -3363,28 +3334,28 @@ var deserializeAws_restJson1EventSummaryList = function (output, context) {
3363
3334
  var deserializeAws_restJson1IncidentRecord = function (output, context) {
3364
3335
  return {
3365
3336
  arn: __expectString(output.arn),
3366
- automationExecutions: output.automationExecutions !== undefined && output.automationExecutions !== null
3337
+ automationExecutions: output.automationExecutions != null
3367
3338
  ? deserializeAws_restJson1AutomationExecutionSet(output.automationExecutions, context)
3368
3339
  : undefined,
3369
- chatChannel: output.chatChannel !== undefined && output.chatChannel !== null
3340
+ chatChannel: output.chatChannel != null
3370
3341
  ? deserializeAws_restJson1ChatChannel(__expectUnion(output.chatChannel), context)
3371
3342
  : undefined,
3372
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3343
+ creationTime: output.creationTime != null
3373
3344
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3374
3345
  : undefined,
3375
3346
  dedupeString: __expectString(output.dedupeString),
3376
3347
  impact: __expectInt32(output.impact),
3377
- incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
3348
+ incidentRecordSource: output.incidentRecordSource != null
3378
3349
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
3379
3350
  : undefined,
3380
3351
  lastModifiedBy: __expectString(output.lastModifiedBy),
3381
- lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
3352
+ lastModifiedTime: output.lastModifiedTime != null
3382
3353
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
3383
3354
  : undefined,
3384
- notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
3355
+ notificationTargets: output.notificationTargets != null
3385
3356
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
3386
3357
  : undefined,
3387
- resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
3358
+ resolvedTime: output.resolvedTime != null
3388
3359
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
3389
3360
  : undefined,
3390
3361
  status: __expectString(output.status),
@@ -3403,14 +3374,14 @@ var deserializeAws_restJson1IncidentRecordSource = function (output, context) {
3403
3374
  var deserializeAws_restJson1IncidentRecordSummary = function (output, context) {
3404
3375
  return {
3405
3376
  arn: __expectString(output.arn),
3406
- creationTime: output.creationTime !== undefined && output.creationTime !== null
3377
+ creationTime: output.creationTime != null
3407
3378
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
3408
3379
  : undefined,
3409
3380
  impact: __expectInt32(output.impact),
3410
- incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
3381
+ incidentRecordSource: output.incidentRecordSource != null
3411
3382
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
3412
3383
  : undefined,
3413
- resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
3384
+ resolvedTime: output.resolvedTime != null
3414
3385
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
3415
3386
  : undefined,
3416
3387
  status: __expectString(output.status),
@@ -3432,7 +3403,8 @@ var deserializeAws_restJson1IncidentTemplate = function (output, context) {
3432
3403
  return {
3433
3404
  dedupeString: __expectString(output.dedupeString),
3434
3405
  impact: __expectInt32(output.impact),
3435
- notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
3406
+ incidentTags: output.incidentTags != null ? deserializeAws_restJson1TagMap(output.incidentTags, context) : undefined,
3407
+ notificationTargets: output.notificationTargets != null
3436
3408
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
3437
3409
  : undefined,
3438
3410
  summary: __expectString(output.summary),
@@ -3442,9 +3414,7 @@ var deserializeAws_restJson1IncidentTemplate = function (output, context) {
3442
3414
  var deserializeAws_restJson1ItemIdentifier = function (output, context) {
3443
3415
  return {
3444
3416
  type: __expectString(output.type),
3445
- value: output.value !== undefined && output.value !== null
3446
- ? deserializeAws_restJson1ItemValue(__expectUnion(output.value), context)
3447
- : undefined,
3417
+ value: output.value != null ? deserializeAws_restJson1ItemValue(__expectUnion(output.value), context) : undefined,
3448
3418
  };
3449
3419
  };
3450
3420
  var deserializeAws_restJson1ItemValue = function (output, context) {
@@ -3481,7 +3451,7 @@ var deserializeAws_restJson1RegionInfo = function (output, context) {
3481
3451
  sseKmsKeyId: __expectString(output.sseKmsKeyId),
3482
3452
  status: __expectString(output.status),
3483
3453
  statusMessage: __expectString(output.statusMessage),
3484
- statusUpdateDateTime: output.statusUpdateDateTime !== undefined && output.statusUpdateDateTime !== null
3454
+ statusUpdateDateTime: output.statusUpdateDateTime != null
3485
3455
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.statusUpdateDateTime)))
3486
3456
  : undefined,
3487
3457
  };
@@ -3498,9 +3468,7 @@ var deserializeAws_restJson1RegionInfoMap = function (output, context) {
3498
3468
  };
3499
3469
  var deserializeAws_restJson1RelatedItem = function (output, context) {
3500
3470
  return {
3501
- identifier: output.identifier !== undefined && output.identifier !== null
3502
- ? deserializeAws_restJson1ItemIdentifier(output.identifier, context)
3503
- : undefined,
3471
+ identifier: output.identifier != null ? deserializeAws_restJson1ItemIdentifier(output.identifier, context) : undefined,
3504
3472
  title: __expectString(output.title),
3505
3473
  };
3506
3474
  };
@@ -3519,17 +3487,15 @@ var deserializeAws_restJson1ReplicationSet = function (output, context) {
3519
3487
  return {
3520
3488
  arn: __expectString(output.arn),
3521
3489
  createdBy: __expectString(output.createdBy),
3522
- createdTime: output.createdTime !== undefined && output.createdTime !== null
3490
+ createdTime: output.createdTime != null
3523
3491
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdTime)))
3524
3492
  : undefined,
3525
3493
  deletionProtected: __expectBoolean(output.deletionProtected),
3526
3494
  lastModifiedBy: __expectString(output.lastModifiedBy),
3527
- lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
3495
+ lastModifiedTime: output.lastModifiedTime != null
3528
3496
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
3529
3497
  : undefined,
3530
- regionMap: output.regionMap !== undefined && output.regionMap !== null
3531
- ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context)
3532
- : undefined,
3498
+ regionMap: output.regionMap != null ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context) : undefined,
3533
3499
  status: __expectString(output.status),
3534
3500
  };
3535
3501
  };
@@ -3584,12 +3550,10 @@ var deserializeAws_restJson1SsmAutomation = function (output, context) {
3584
3550
  return {
3585
3551
  documentName: __expectString(output.documentName),
3586
3552
  documentVersion: __expectString(output.documentVersion),
3587
- dynamicParameters: output.dynamicParameters !== undefined && output.dynamicParameters !== null
3553
+ dynamicParameters: output.dynamicParameters != null
3588
3554
  ? deserializeAws_restJson1DynamicSsmParameters(output.dynamicParameters, context)
3589
3555
  : undefined,
3590
- parameters: output.parameters !== undefined && output.parameters !== null
3591
- ? deserializeAws_restJson1SsmParameters(output.parameters, context)
3592
- : undefined,
3556
+ parameters: output.parameters != null ? deserializeAws_restJson1SsmParameters(output.parameters, context) : undefined,
3593
3557
  roleArn: __expectString(output.roleArn),
3594
3558
  targetAccount: __expectString(output.targetAccount),
3595
3559
  };
@@ -3629,11 +3593,9 @@ var deserializeAws_restJson1TimelineEvent = function (output, context) {
3629
3593
  return {
3630
3594
  eventData: __expectString(output.eventData),
3631
3595
  eventId: __expectString(output.eventId),
3632
- eventTime: output.eventTime !== undefined && output.eventTime !== null
3633
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
3634
- : undefined,
3596
+ eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
3635
3597
  eventType: __expectString(output.eventType),
3636
- eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
3598
+ eventUpdatedTime: output.eventUpdatedTime != null
3637
3599
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
3638
3600
  : undefined,
3639
3601
  incidentRecordArn: __expectString(output.incidentRecordArn),