@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.
@@ -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 !== undefined &&
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 !== undefined &&
44
- input.actions !== null && { actions: serializeAws_restJson1ActionsList(input.actions, context) }),
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 !== undefined && input.displayName !== null && { displayName: input.displayName }),
49
- ...(input.engagements !== undefined &&
50
- input.engagements !== null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) }),
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 !== undefined && input.name !== null && { name: input.name }),
56
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
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 !== undefined && input.eventData !== null && { eventData: input.eventData }),
80
- ...(input.eventTime !== undefined &&
81
- input.eventTime !== null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
82
- ...(input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType }),
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 !== undefined && input.arn !== null && { arn: 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 !== undefined && input.policyId !== null && { policyId: input.policyId }),
147
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: 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 !== undefined && input.arn !== null && { arn: 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 !== undefined && input.eventId !== null && { eventId: input.eventId }),
190
- ...(input.incidentRecordArn !== undefined &&
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 !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
256
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: 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 !== undefined &&
320
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
321
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
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 !== undefined &&
344
- input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn }),
345
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
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 !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
368
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: 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 !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
390
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: 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 !== undefined &&
438
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
439
- ...(input.incidentRecordArn !== undefined &&
440
- input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn }),
441
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
442
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
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 !== undefined && input.policy !== null && { policy: input.policy }),
466
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: 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 !== undefined && input.impact !== null && { impact: input.impact }),
490
- ...(input.relatedItems !== undefined &&
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 !== undefined &&
495
- input.responsePlanArn !== null && { responsePlanArn: input.responsePlanArn }),
496
- ...(input.title !== undefined && input.title !== null && { title: input.title }),
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 !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
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 !== undefined && input.arn !== null && { arn: 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 !== undefined &&
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 !== undefined && input.arn !== null && { arn: input.arn }),
609
- ...(input.chatChannel !== undefined &&
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 !== undefined && input.impact !== null && { impact: input.impact }),
613
- ...(input.notificationTargets !== undefined &&
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 !== undefined && input.status !== null && { status: input.status }),
618
- ...(input.summary !== undefined && input.summary !== null && { summary: input.summary }),
619
- ...(input.title !== undefined && input.title !== null && { title: 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 !== undefined &&
643
- input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn }),
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 !== undefined &&
670
- input.actions !== null && { actions: serializeAws_restJson1UpdateActionList(input.actions, context) }),
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 !== undefined &&
695
- input.actions !== null && { actions: serializeAws_restJson1ActionsList(input.actions, context) }),
696
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
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 !== undefined && input.displayName !== null && { displayName: input.displayName }),
701
- ...(input.engagements !== undefined &&
702
- input.engagements !== null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) }),
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 !== undefined &&
708
- input.incidentTemplateImpact !== null && { incidentTemplateImpact: input.incidentTemplateImpact }),
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 !== undefined &&
714
- input.incidentTemplateSummary !== null && { incidentTemplateSummary: input.incidentTemplateSummary }),
715
- ...(input.incidentTemplateTitle !== undefined &&
716
- input.incidentTemplateTitle !== null && { incidentTemplateTitle: input.incidentTemplateTitle }),
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 !== undefined && input.eventData !== null && { eventData: input.eventData }),
740
- ...(input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId }),
741
- ...(input.eventTime !== undefined &&
742
- input.eventTime !== null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
743
- ...(input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType }),
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,
@@ -2352,8 +2324,8 @@ const serializeAws_restJson1ActionsList = (input, context) => {
2352
2324
  };
2353
2325
  const serializeAws_restJson1AddRegionAction = (input, context) => {
2354
2326
  return {
2355
- ...(input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName }),
2356
- ...(input.sseKmsKeyId !== undefined && input.sseKmsKeyId !== null && { sseKmsKeyId: input.sseKmsKeyId }),
2327
+ ...(input.regionName != null && { regionName: input.regionName }),
2328
+ ...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
2357
2329
  };
2358
2330
  };
2359
2331
  const serializeAws_restJson1AttributeValueList = (input, context) => {
@@ -2390,7 +2362,7 @@ const serializeAws_restJson1Condition = (input, context) => {
2390
2362
  };
2391
2363
  const serializeAws_restJson1DeleteRegionAction = (input, context) => {
2392
2364
  return {
2393
- ...(input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName }),
2365
+ ...(input.regionName != null && { regionName: input.regionName }),
2394
2366
  };
2395
2367
  };
2396
2368
  const serializeAws_restJson1DynamicSsmParameters = (input, context) => {
@@ -2425,9 +2397,8 @@ const serializeAws_restJson1EngagementSet = (input, context) => {
2425
2397
  };
2426
2398
  const serializeAws_restJson1Filter = (input, context) => {
2427
2399
  return {
2428
- ...(input.condition !== undefined &&
2429
- input.condition !== null && { condition: serializeAws_restJson1Condition(input.condition, context) }),
2430
- ...(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 }),
2431
2402
  };
2432
2403
  };
2433
2404
  const serializeAws_restJson1FilterList = (input, context) => {
@@ -2442,14 +2413,14 @@ const serializeAws_restJson1FilterList = (input, context) => {
2442
2413
  };
2443
2414
  const serializeAws_restJson1IncidentTemplate = (input, context) => {
2444
2415
  return {
2445
- ...(input.dedupeString !== undefined && input.dedupeString !== null && { dedupeString: input.dedupeString }),
2446
- ...(input.impact !== undefined && input.impact !== null && { impact: input.impact }),
2447
- ...(input.notificationTargets !== undefined &&
2448
- input.notificationTargets !== null && {
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 && {
2449
2420
  notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
2450
2421
  }),
2451
- ...(input.summary !== undefined && input.summary !== null && { summary: input.summary }),
2452
- ...(input.title !== undefined && input.title !== null && { title: input.title }),
2422
+ ...(input.summary != null && { summary: input.summary }),
2423
+ ...(input.title != null && { title: input.title }),
2453
2424
  };
2454
2425
  };
2455
2426
  const serializeAws_restJson1IntegerList = (input, context) => {
@@ -2464,9 +2435,8 @@ const serializeAws_restJson1IntegerList = (input, context) => {
2464
2435
  };
2465
2436
  const serializeAws_restJson1ItemIdentifier = (input, context) => {
2466
2437
  return {
2467
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2468
- ...(input.value !== undefined &&
2469
- 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) }),
2470
2440
  };
2471
2441
  };
2472
2442
  const serializeAws_restJson1ItemValue = (input, context) => {
@@ -2506,14 +2476,13 @@ const serializeAws_restJson1RegionMapInput = (input, context) => {
2506
2476
  };
2507
2477
  const serializeAws_restJson1RegionMapInputValue = (input, context) => {
2508
2478
  return {
2509
- ...(input.sseKmsKeyId !== undefined && input.sseKmsKeyId !== null && { sseKmsKeyId: input.sseKmsKeyId }),
2479
+ ...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
2510
2480
  };
2511
2481
  };
2512
2482
  const serializeAws_restJson1RelatedItem = (input, context) => {
2513
2483
  return {
2514
- ...(input.identifier !== undefined &&
2515
- input.identifier !== null && { identifier: serializeAws_restJson1ItemIdentifier(input.identifier, context) }),
2516
- ...(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 }),
2517
2486
  };
2518
2487
  };
2519
2488
  const serializeAws_restJson1RelatedItemList = (input, context) => {
@@ -2535,17 +2504,14 @@ const serializeAws_restJson1RelatedItemsUpdate = (input, context) => {
2535
2504
  };
2536
2505
  const serializeAws_restJson1SsmAutomation = (input, context) => {
2537
2506
  return {
2538
- ...(input.documentName !== undefined && input.documentName !== null && { documentName: input.documentName }),
2539
- ...(input.documentVersion !== undefined &&
2540
- input.documentVersion !== null && { documentVersion: input.documentVersion }),
2541
- ...(input.dynamicParameters !== undefined &&
2542
- input.dynamicParameters !== null && {
2507
+ ...(input.documentName != null && { documentName: input.documentName }),
2508
+ ...(input.documentVersion != null && { documentVersion: input.documentVersion }),
2509
+ ...(input.dynamicParameters != null && {
2543
2510
  dynamicParameters: serializeAws_restJson1DynamicSsmParameters(input.dynamicParameters, context),
2544
2511
  }),
2545
- ...(input.parameters !== undefined &&
2546
- input.parameters !== null && { parameters: serializeAws_restJson1SsmParameters(input.parameters, context) }),
2547
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
2548
- ...(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 }),
2549
2515
  };
2550
2516
  };
2551
2517
  const serializeAws_restJson1SsmParameters = (input, context) => {
@@ -2590,13 +2556,23 @@ const serializeAws_restJson1TagMap = (input, context) => {
2590
2556
  };
2591
2557
  }, {});
2592
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
+ };
2593
2570
  const serializeAws_restJson1TriggerDetails = (input, context) => {
2594
2571
  return {
2595
- ...(input.rawData !== undefined && input.rawData !== null && { rawData: input.rawData }),
2596
- ...(input.source !== undefined && input.source !== null && { source: input.source }),
2597
- ...(input.timestamp !== undefined &&
2598
- input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
2599
- ...(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 }),
2600
2576
  };
2601
2577
  };
2602
2578
  const serializeAws_restJson1UpdateActionList = (input, context) => {
@@ -2710,11 +2686,9 @@ const deserializeAws_restJson1EngagementSet = (output, context) => {
2710
2686
  const deserializeAws_restJson1EventSummary = (output, context) => {
2711
2687
  return {
2712
2688
  eventId: (0, smithy_client_1.expectString)(output.eventId),
2713
- eventTime: output.eventTime !== undefined && output.eventTime !== null
2714
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime)))
2715
- : undefined,
2689
+ eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
2716
2690
  eventType: (0, smithy_client_1.expectString)(output.eventType),
2717
- eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
2691
+ eventUpdatedTime: output.eventUpdatedTime != null
2718
2692
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventUpdatedTime)))
2719
2693
  : undefined,
2720
2694
  incidentRecordArn: (0, smithy_client_1.expectString)(output.incidentRecordArn),
@@ -2734,28 +2708,28 @@ const deserializeAws_restJson1EventSummaryList = (output, context) => {
2734
2708
  const deserializeAws_restJson1IncidentRecord = (output, context) => {
2735
2709
  return {
2736
2710
  arn: (0, smithy_client_1.expectString)(output.arn),
2737
- automationExecutions: output.automationExecutions !== undefined && output.automationExecutions !== null
2711
+ automationExecutions: output.automationExecutions != null
2738
2712
  ? deserializeAws_restJson1AutomationExecutionSet(output.automationExecutions, context)
2739
2713
  : undefined,
2740
- chatChannel: output.chatChannel !== undefined && output.chatChannel !== null
2714
+ chatChannel: output.chatChannel != null
2741
2715
  ? deserializeAws_restJson1ChatChannel((0, smithy_client_1.expectUnion)(output.chatChannel), context)
2742
2716
  : undefined,
2743
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2717
+ creationTime: output.creationTime != null
2744
2718
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2745
2719
  : undefined,
2746
2720
  dedupeString: (0, smithy_client_1.expectString)(output.dedupeString),
2747
2721
  impact: (0, smithy_client_1.expectInt32)(output.impact),
2748
- incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
2722
+ incidentRecordSource: output.incidentRecordSource != null
2749
2723
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
2750
2724
  : undefined,
2751
2725
  lastModifiedBy: (0, smithy_client_1.expectString)(output.lastModifiedBy),
2752
- lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
2726
+ lastModifiedTime: output.lastModifiedTime != null
2753
2727
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedTime)))
2754
2728
  : undefined,
2755
- notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
2729
+ notificationTargets: output.notificationTargets != null
2756
2730
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
2757
2731
  : undefined,
2758
- resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
2732
+ resolvedTime: output.resolvedTime != null
2759
2733
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.resolvedTime)))
2760
2734
  : undefined,
2761
2735
  status: (0, smithy_client_1.expectString)(output.status),
@@ -2774,14 +2748,14 @@ const deserializeAws_restJson1IncidentRecordSource = (output, context) => {
2774
2748
  const deserializeAws_restJson1IncidentRecordSummary = (output, context) => {
2775
2749
  return {
2776
2750
  arn: (0, smithy_client_1.expectString)(output.arn),
2777
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2751
+ creationTime: output.creationTime != null
2778
2752
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2779
2753
  : undefined,
2780
2754
  impact: (0, smithy_client_1.expectInt32)(output.impact),
2781
- incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
2755
+ incidentRecordSource: output.incidentRecordSource != null
2782
2756
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
2783
2757
  : undefined,
2784
- resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
2758
+ resolvedTime: output.resolvedTime != null
2785
2759
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.resolvedTime)))
2786
2760
  : undefined,
2787
2761
  status: (0, smithy_client_1.expectString)(output.status),
@@ -2803,7 +2777,8 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
2803
2777
  return {
2804
2778
  dedupeString: (0, smithy_client_1.expectString)(output.dedupeString),
2805
2779
  impact: (0, smithy_client_1.expectInt32)(output.impact),
2806
- notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
2780
+ incidentTags: output.incidentTags != null ? deserializeAws_restJson1TagMap(output.incidentTags, context) : undefined,
2781
+ notificationTargets: output.notificationTargets != null
2807
2782
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
2808
2783
  : undefined,
2809
2784
  summary: (0, smithy_client_1.expectString)(output.summary),
@@ -2813,9 +2788,7 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
2813
2788
  const deserializeAws_restJson1ItemIdentifier = (output, context) => {
2814
2789
  return {
2815
2790
  type: (0, smithy_client_1.expectString)(output.type),
2816
- value: output.value !== undefined && output.value !== null
2817
- ? deserializeAws_restJson1ItemValue((0, smithy_client_1.expectUnion)(output.value), context)
2818
- : undefined,
2791
+ value: output.value != null ? deserializeAws_restJson1ItemValue((0, smithy_client_1.expectUnion)(output.value), context) : undefined,
2819
2792
  };
2820
2793
  };
2821
2794
  const deserializeAws_restJson1ItemValue = (output, context) => {
@@ -2852,7 +2825,7 @@ const deserializeAws_restJson1RegionInfo = (output, context) => {
2852
2825
  sseKmsKeyId: (0, smithy_client_1.expectString)(output.sseKmsKeyId),
2853
2826
  status: (0, smithy_client_1.expectString)(output.status),
2854
2827
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2855
- statusUpdateDateTime: output.statusUpdateDateTime !== undefined && output.statusUpdateDateTime !== null
2828
+ statusUpdateDateTime: output.statusUpdateDateTime != null
2856
2829
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.statusUpdateDateTime)))
2857
2830
  : undefined,
2858
2831
  };
@@ -2870,9 +2843,7 @@ const deserializeAws_restJson1RegionInfoMap = (output, context) => {
2870
2843
  };
2871
2844
  const deserializeAws_restJson1RelatedItem = (output, context) => {
2872
2845
  return {
2873
- identifier: output.identifier !== undefined && output.identifier !== null
2874
- ? deserializeAws_restJson1ItemIdentifier(output.identifier, context)
2875
- : undefined,
2846
+ identifier: output.identifier != null ? deserializeAws_restJson1ItemIdentifier(output.identifier, context) : undefined,
2876
2847
  title: (0, smithy_client_1.expectString)(output.title),
2877
2848
  };
2878
2849
  };
@@ -2891,17 +2862,15 @@ const deserializeAws_restJson1ReplicationSet = (output, context) => {
2891
2862
  return {
2892
2863
  arn: (0, smithy_client_1.expectString)(output.arn),
2893
2864
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
2894
- createdTime: output.createdTime !== undefined && output.createdTime !== null
2865
+ createdTime: output.createdTime != null
2895
2866
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdTime)))
2896
2867
  : undefined,
2897
2868
  deletionProtected: (0, smithy_client_1.expectBoolean)(output.deletionProtected),
2898
2869
  lastModifiedBy: (0, smithy_client_1.expectString)(output.lastModifiedBy),
2899
- lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
2870
+ lastModifiedTime: output.lastModifiedTime != null
2900
2871
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedTime)))
2901
2872
  : undefined,
2902
- regionMap: output.regionMap !== undefined && output.regionMap !== null
2903
- ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context)
2904
- : undefined,
2873
+ regionMap: output.regionMap != null ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context) : undefined,
2905
2874
  status: (0, smithy_client_1.expectString)(output.status),
2906
2875
  };
2907
2876
  };
@@ -2956,12 +2925,10 @@ const deserializeAws_restJson1SsmAutomation = (output, context) => {
2956
2925
  return {
2957
2926
  documentName: (0, smithy_client_1.expectString)(output.documentName),
2958
2927
  documentVersion: (0, smithy_client_1.expectString)(output.documentVersion),
2959
- dynamicParameters: output.dynamicParameters !== undefined && output.dynamicParameters !== null
2928
+ dynamicParameters: output.dynamicParameters != null
2960
2929
  ? deserializeAws_restJson1DynamicSsmParameters(output.dynamicParameters, context)
2961
2930
  : undefined,
2962
- parameters: output.parameters !== undefined && output.parameters !== null
2963
- ? deserializeAws_restJson1SsmParameters(output.parameters, context)
2964
- : undefined,
2931
+ parameters: output.parameters != null ? deserializeAws_restJson1SsmParameters(output.parameters, context) : undefined,
2965
2932
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
2966
2933
  targetAccount: (0, smithy_client_1.expectString)(output.targetAccount),
2967
2934
  };
@@ -3003,11 +2970,9 @@ const deserializeAws_restJson1TimelineEvent = (output, context) => {
3003
2970
  return {
3004
2971
  eventData: (0, smithy_client_1.expectString)(output.eventData),
3005
2972
  eventId: (0, smithy_client_1.expectString)(output.eventId),
3006
- eventTime: output.eventTime !== undefined && output.eventTime !== null
3007
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime)))
3008
- : undefined,
2973
+ eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
3009
2974
  eventType: (0, smithy_client_1.expectString)(output.eventType),
3010
- eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
2975
+ eventUpdatedTime: output.eventUpdatedTime != null
3011
2976
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventUpdatedTime)))
3012
2977
  : undefined,
3013
2978
  incidentRecordArn: (0, smithy_client_1.expectString)(output.incidentRecordArn),