@aws-sdk/client-ssm-incidents 3.123.0 → 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.
@@ -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,33 +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.incidentTemplateTags !== undefined &&
716
- input.incidentTemplateTags !== null && {
686
+ ...(input.incidentTemplateSummary != null && { incidentTemplateSummary: input.incidentTemplateSummary }),
687
+ ...(input.incidentTemplateTags != null && {
717
688
  incidentTemplateTags: serializeAws_restJson1TagMapUpdate(input.incidentTemplateTags, context),
718
689
  }),
719
- ...(input.incidentTemplateTitle !== undefined &&
720
- input.incidentTemplateTitle !== null && { incidentTemplateTitle: input.incidentTemplateTitle }),
690
+ ...(input.incidentTemplateTitle != null && { incidentTemplateTitle: input.incidentTemplateTitle }),
721
691
  });
722
692
  return new protocol_http_1.HttpRequest({
723
693
  protocol,
@@ -740,13 +710,11 @@ const serializeAws_restJson1UpdateTimelineEventCommand = async (input, context)
740
710
  let body;
741
711
  body = JSON.stringify({
742
712
  clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
743
- ...(input.eventData !== undefined && input.eventData !== null && { eventData: input.eventData }),
744
- ...(input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId }),
745
- ...(input.eventTime !== undefined &&
746
- input.eventTime !== null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
747
- ...(input.eventType !== undefined && input.eventType !== null && { eventType: input.eventType }),
748
- ...(input.incidentRecordArn !== undefined &&
749
- 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 }),
750
718
  });
751
719
  return new protocol_http_1.HttpRequest({
752
720
  protocol,
@@ -2356,8 +2324,8 @@ const serializeAws_restJson1ActionsList = (input, context) => {
2356
2324
  };
2357
2325
  const serializeAws_restJson1AddRegionAction = (input, context) => {
2358
2326
  return {
2359
- ...(input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName }),
2360
- ...(input.sseKmsKeyId !== undefined && input.sseKmsKeyId !== null && { sseKmsKeyId: input.sseKmsKeyId }),
2327
+ ...(input.regionName != null && { regionName: input.regionName }),
2328
+ ...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
2361
2329
  };
2362
2330
  };
2363
2331
  const serializeAws_restJson1AttributeValueList = (input, context) => {
@@ -2394,7 +2362,7 @@ const serializeAws_restJson1Condition = (input, context) => {
2394
2362
  };
2395
2363
  const serializeAws_restJson1DeleteRegionAction = (input, context) => {
2396
2364
  return {
2397
- ...(input.regionName !== undefined && input.regionName !== null && { regionName: input.regionName }),
2365
+ ...(input.regionName != null && { regionName: input.regionName }),
2398
2366
  };
2399
2367
  };
2400
2368
  const serializeAws_restJson1DynamicSsmParameters = (input, context) => {
@@ -2429,9 +2397,8 @@ const serializeAws_restJson1EngagementSet = (input, context) => {
2429
2397
  };
2430
2398
  const serializeAws_restJson1Filter = (input, context) => {
2431
2399
  return {
2432
- ...(input.condition !== undefined &&
2433
- input.condition !== null && { condition: serializeAws_restJson1Condition(input.condition, context) }),
2434
- ...(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 }),
2435
2402
  };
2436
2403
  };
2437
2404
  const serializeAws_restJson1FilterList = (input, context) => {
@@ -2446,16 +2413,14 @@ const serializeAws_restJson1FilterList = (input, context) => {
2446
2413
  };
2447
2414
  const serializeAws_restJson1IncidentTemplate = (input, context) => {
2448
2415
  return {
2449
- ...(input.dedupeString !== undefined && input.dedupeString !== null && { dedupeString: input.dedupeString }),
2450
- ...(input.impact !== undefined && input.impact !== null && { impact: input.impact }),
2451
- ...(input.incidentTags !== undefined &&
2452
- input.incidentTags !== null && { incidentTags: serializeAws_restJson1TagMap(input.incidentTags, context) }),
2453
- ...(input.notificationTargets !== undefined &&
2454
- 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 && {
2455
2420
  notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
2456
2421
  }),
2457
- ...(input.summary !== undefined && input.summary !== null && { summary: input.summary }),
2458
- ...(input.title !== undefined && input.title !== null && { title: input.title }),
2422
+ ...(input.summary != null && { summary: input.summary }),
2423
+ ...(input.title != null && { title: input.title }),
2459
2424
  };
2460
2425
  };
2461
2426
  const serializeAws_restJson1IntegerList = (input, context) => {
@@ -2470,9 +2435,8 @@ const serializeAws_restJson1IntegerList = (input, context) => {
2470
2435
  };
2471
2436
  const serializeAws_restJson1ItemIdentifier = (input, context) => {
2472
2437
  return {
2473
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2474
- ...(input.value !== undefined &&
2475
- 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) }),
2476
2440
  };
2477
2441
  };
2478
2442
  const serializeAws_restJson1ItemValue = (input, context) => {
@@ -2512,14 +2476,13 @@ const serializeAws_restJson1RegionMapInput = (input, context) => {
2512
2476
  };
2513
2477
  const serializeAws_restJson1RegionMapInputValue = (input, context) => {
2514
2478
  return {
2515
- ...(input.sseKmsKeyId !== undefined && input.sseKmsKeyId !== null && { sseKmsKeyId: input.sseKmsKeyId }),
2479
+ ...(input.sseKmsKeyId != null && { sseKmsKeyId: input.sseKmsKeyId }),
2516
2480
  };
2517
2481
  };
2518
2482
  const serializeAws_restJson1RelatedItem = (input, context) => {
2519
2483
  return {
2520
- ...(input.identifier !== undefined &&
2521
- input.identifier !== null && { identifier: serializeAws_restJson1ItemIdentifier(input.identifier, context) }),
2522
- ...(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 }),
2523
2486
  };
2524
2487
  };
2525
2488
  const serializeAws_restJson1RelatedItemList = (input, context) => {
@@ -2541,17 +2504,14 @@ const serializeAws_restJson1RelatedItemsUpdate = (input, context) => {
2541
2504
  };
2542
2505
  const serializeAws_restJson1SsmAutomation = (input, context) => {
2543
2506
  return {
2544
- ...(input.documentName !== undefined && input.documentName !== null && { documentName: input.documentName }),
2545
- ...(input.documentVersion !== undefined &&
2546
- input.documentVersion !== null && { documentVersion: input.documentVersion }),
2547
- ...(input.dynamicParameters !== undefined &&
2548
- input.dynamicParameters !== null && {
2507
+ ...(input.documentName != null && { documentName: input.documentName }),
2508
+ ...(input.documentVersion != null && { documentVersion: input.documentVersion }),
2509
+ ...(input.dynamicParameters != null && {
2549
2510
  dynamicParameters: serializeAws_restJson1DynamicSsmParameters(input.dynamicParameters, context),
2550
2511
  }),
2551
- ...(input.parameters !== undefined &&
2552
- input.parameters !== null && { parameters: serializeAws_restJson1SsmParameters(input.parameters, context) }),
2553
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
2554
- ...(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 }),
2555
2515
  };
2556
2516
  };
2557
2517
  const serializeAws_restJson1SsmParameters = (input, context) => {
@@ -2609,11 +2569,10 @@ const serializeAws_restJson1TagMapUpdate = (input, context) => {
2609
2569
  };
2610
2570
  const serializeAws_restJson1TriggerDetails = (input, context) => {
2611
2571
  return {
2612
- ...(input.rawData !== undefined && input.rawData !== null && { rawData: input.rawData }),
2613
- ...(input.source !== undefined && input.source !== null && { source: input.source }),
2614
- ...(input.timestamp !== undefined &&
2615
- input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
2616
- ...(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 }),
2617
2576
  };
2618
2577
  };
2619
2578
  const serializeAws_restJson1UpdateActionList = (input, context) => {
@@ -2727,11 +2686,9 @@ const deserializeAws_restJson1EngagementSet = (output, context) => {
2727
2686
  const deserializeAws_restJson1EventSummary = (output, context) => {
2728
2687
  return {
2729
2688
  eventId: (0, smithy_client_1.expectString)(output.eventId),
2730
- eventTime: output.eventTime !== undefined && output.eventTime !== null
2731
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime)))
2732
- : undefined,
2689
+ eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
2733
2690
  eventType: (0, smithy_client_1.expectString)(output.eventType),
2734
- eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
2691
+ eventUpdatedTime: output.eventUpdatedTime != null
2735
2692
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventUpdatedTime)))
2736
2693
  : undefined,
2737
2694
  incidentRecordArn: (0, smithy_client_1.expectString)(output.incidentRecordArn),
@@ -2751,28 +2708,28 @@ const deserializeAws_restJson1EventSummaryList = (output, context) => {
2751
2708
  const deserializeAws_restJson1IncidentRecord = (output, context) => {
2752
2709
  return {
2753
2710
  arn: (0, smithy_client_1.expectString)(output.arn),
2754
- automationExecutions: output.automationExecutions !== undefined && output.automationExecutions !== null
2711
+ automationExecutions: output.automationExecutions != null
2755
2712
  ? deserializeAws_restJson1AutomationExecutionSet(output.automationExecutions, context)
2756
2713
  : undefined,
2757
- chatChannel: output.chatChannel !== undefined && output.chatChannel !== null
2714
+ chatChannel: output.chatChannel != null
2758
2715
  ? deserializeAws_restJson1ChatChannel((0, smithy_client_1.expectUnion)(output.chatChannel), context)
2759
2716
  : undefined,
2760
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2717
+ creationTime: output.creationTime != null
2761
2718
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2762
2719
  : undefined,
2763
2720
  dedupeString: (0, smithy_client_1.expectString)(output.dedupeString),
2764
2721
  impact: (0, smithy_client_1.expectInt32)(output.impact),
2765
- incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
2722
+ incidentRecordSource: output.incidentRecordSource != null
2766
2723
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
2767
2724
  : undefined,
2768
2725
  lastModifiedBy: (0, smithy_client_1.expectString)(output.lastModifiedBy),
2769
- lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
2726
+ lastModifiedTime: output.lastModifiedTime != null
2770
2727
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedTime)))
2771
2728
  : undefined,
2772
- notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
2729
+ notificationTargets: output.notificationTargets != null
2773
2730
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
2774
2731
  : undefined,
2775
- resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
2732
+ resolvedTime: output.resolvedTime != null
2776
2733
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.resolvedTime)))
2777
2734
  : undefined,
2778
2735
  status: (0, smithy_client_1.expectString)(output.status),
@@ -2791,14 +2748,14 @@ const deserializeAws_restJson1IncidentRecordSource = (output, context) => {
2791
2748
  const deserializeAws_restJson1IncidentRecordSummary = (output, context) => {
2792
2749
  return {
2793
2750
  arn: (0, smithy_client_1.expectString)(output.arn),
2794
- creationTime: output.creationTime !== undefined && output.creationTime !== null
2751
+ creationTime: output.creationTime != null
2795
2752
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
2796
2753
  : undefined,
2797
2754
  impact: (0, smithy_client_1.expectInt32)(output.impact),
2798
- incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
2755
+ incidentRecordSource: output.incidentRecordSource != null
2799
2756
  ? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
2800
2757
  : undefined,
2801
- resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
2758
+ resolvedTime: output.resolvedTime != null
2802
2759
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.resolvedTime)))
2803
2760
  : undefined,
2804
2761
  status: (0, smithy_client_1.expectString)(output.status),
@@ -2820,10 +2777,8 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
2820
2777
  return {
2821
2778
  dedupeString: (0, smithy_client_1.expectString)(output.dedupeString),
2822
2779
  impact: (0, smithy_client_1.expectInt32)(output.impact),
2823
- incidentTags: output.incidentTags !== undefined && output.incidentTags !== null
2824
- ? deserializeAws_restJson1TagMap(output.incidentTags, context)
2825
- : undefined,
2826
- notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
2780
+ incidentTags: output.incidentTags != null ? deserializeAws_restJson1TagMap(output.incidentTags, context) : undefined,
2781
+ notificationTargets: output.notificationTargets != null
2827
2782
  ? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
2828
2783
  : undefined,
2829
2784
  summary: (0, smithy_client_1.expectString)(output.summary),
@@ -2833,9 +2788,7 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
2833
2788
  const deserializeAws_restJson1ItemIdentifier = (output, context) => {
2834
2789
  return {
2835
2790
  type: (0, smithy_client_1.expectString)(output.type),
2836
- value: output.value !== undefined && output.value !== null
2837
- ? deserializeAws_restJson1ItemValue((0, smithy_client_1.expectUnion)(output.value), context)
2838
- : undefined,
2791
+ value: output.value != null ? deserializeAws_restJson1ItemValue((0, smithy_client_1.expectUnion)(output.value), context) : undefined,
2839
2792
  };
2840
2793
  };
2841
2794
  const deserializeAws_restJson1ItemValue = (output, context) => {
@@ -2872,7 +2825,7 @@ const deserializeAws_restJson1RegionInfo = (output, context) => {
2872
2825
  sseKmsKeyId: (0, smithy_client_1.expectString)(output.sseKmsKeyId),
2873
2826
  status: (0, smithy_client_1.expectString)(output.status),
2874
2827
  statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
2875
- statusUpdateDateTime: output.statusUpdateDateTime !== undefined && output.statusUpdateDateTime !== null
2828
+ statusUpdateDateTime: output.statusUpdateDateTime != null
2876
2829
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.statusUpdateDateTime)))
2877
2830
  : undefined,
2878
2831
  };
@@ -2890,9 +2843,7 @@ const deserializeAws_restJson1RegionInfoMap = (output, context) => {
2890
2843
  };
2891
2844
  const deserializeAws_restJson1RelatedItem = (output, context) => {
2892
2845
  return {
2893
- identifier: output.identifier !== undefined && output.identifier !== null
2894
- ? deserializeAws_restJson1ItemIdentifier(output.identifier, context)
2895
- : undefined,
2846
+ identifier: output.identifier != null ? deserializeAws_restJson1ItemIdentifier(output.identifier, context) : undefined,
2896
2847
  title: (0, smithy_client_1.expectString)(output.title),
2897
2848
  };
2898
2849
  };
@@ -2911,17 +2862,15 @@ const deserializeAws_restJson1ReplicationSet = (output, context) => {
2911
2862
  return {
2912
2863
  arn: (0, smithy_client_1.expectString)(output.arn),
2913
2864
  createdBy: (0, smithy_client_1.expectString)(output.createdBy),
2914
- createdTime: output.createdTime !== undefined && output.createdTime !== null
2865
+ createdTime: output.createdTime != null
2915
2866
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdTime)))
2916
2867
  : undefined,
2917
2868
  deletionProtected: (0, smithy_client_1.expectBoolean)(output.deletionProtected),
2918
2869
  lastModifiedBy: (0, smithy_client_1.expectString)(output.lastModifiedBy),
2919
- lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
2870
+ lastModifiedTime: output.lastModifiedTime != null
2920
2871
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedTime)))
2921
2872
  : undefined,
2922
- regionMap: output.regionMap !== undefined && output.regionMap !== null
2923
- ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context)
2924
- : undefined,
2873
+ regionMap: output.regionMap != null ? deserializeAws_restJson1RegionInfoMap(output.regionMap, context) : undefined,
2925
2874
  status: (0, smithy_client_1.expectString)(output.status),
2926
2875
  };
2927
2876
  };
@@ -2976,12 +2925,10 @@ const deserializeAws_restJson1SsmAutomation = (output, context) => {
2976
2925
  return {
2977
2926
  documentName: (0, smithy_client_1.expectString)(output.documentName),
2978
2927
  documentVersion: (0, smithy_client_1.expectString)(output.documentVersion),
2979
- dynamicParameters: output.dynamicParameters !== undefined && output.dynamicParameters !== null
2928
+ dynamicParameters: output.dynamicParameters != null
2980
2929
  ? deserializeAws_restJson1DynamicSsmParameters(output.dynamicParameters, context)
2981
2930
  : undefined,
2982
- parameters: output.parameters !== undefined && output.parameters !== null
2983
- ? deserializeAws_restJson1SsmParameters(output.parameters, context)
2984
- : undefined,
2931
+ parameters: output.parameters != null ? deserializeAws_restJson1SsmParameters(output.parameters, context) : undefined,
2985
2932
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
2986
2933
  targetAccount: (0, smithy_client_1.expectString)(output.targetAccount),
2987
2934
  };
@@ -3023,11 +2970,9 @@ const deserializeAws_restJson1TimelineEvent = (output, context) => {
3023
2970
  return {
3024
2971
  eventData: (0, smithy_client_1.expectString)(output.eventData),
3025
2972
  eventId: (0, smithy_client_1.expectString)(output.eventId),
3026
- eventTime: output.eventTime !== undefined && output.eventTime !== null
3027
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime)))
3028
- : undefined,
2973
+ eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
3029
2974
  eventType: (0, smithy_client_1.expectString)(output.eventType),
3030
- eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
2975
+ eventUpdatedTime: output.eventUpdatedTime != null
3031
2976
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventUpdatedTime)))
3032
2977
  : undefined,
3033
2978
  incidentRecordArn: (0, smithy_client_1.expectString)(output.incidentRecordArn),