@aws-sdk/client-chime 3.121.0 → 3.130.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.
@@ -34,12 +34,10 @@ const serializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorCommand = asy
34
34
  };
35
35
  let body;
36
36
  body = JSON.stringify({
37
- ...(input.E164PhoneNumbers !== undefined &&
38
- input.E164PhoneNumbers !== null && {
37
+ ...(input.E164PhoneNumbers != null && {
39
38
  E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
40
39
  }),
41
- ...(input.ForceAssociate !== undefined &&
42
- input.ForceAssociate !== null && { ForceAssociate: input.ForceAssociate }),
40
+ ...(input.ForceAssociate != null && { ForceAssociate: input.ForceAssociate }),
43
41
  });
44
42
  return new protocol_http_1.HttpRequest({
45
43
  protocol,
@@ -75,12 +73,10 @@ const serializeAws_restJson1AssociatePhoneNumbersWithVoiceConnectorGroupCommand
75
73
  };
76
74
  let body;
77
75
  body = JSON.stringify({
78
- ...(input.E164PhoneNumbers !== undefined &&
79
- input.E164PhoneNumbers !== null && {
76
+ ...(input.E164PhoneNumbers != null && {
80
77
  E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
81
78
  }),
82
- ...(input.ForceAssociate !== undefined &&
83
- input.ForceAssociate !== null && { ForceAssociate: input.ForceAssociate }),
79
+ ...(input.ForceAssociate != null && { ForceAssociate: input.ForceAssociate }),
84
80
  });
85
81
  return new protocol_http_1.HttpRequest({
86
82
  protocol,
@@ -125,8 +121,7 @@ const serializeAws_restJson1AssociatePhoneNumberWithUserCommand = async (input,
125
121
  };
126
122
  let body;
127
123
  body = JSON.stringify({
128
- ...(input.E164PhoneNumber !== undefined &&
129
- input.E164PhoneNumber !== null && { E164PhoneNumber: input.E164PhoneNumber }),
124
+ ...(input.E164PhoneNumber != null && { E164PhoneNumber: input.E164PhoneNumber }),
130
125
  });
131
126
  return new protocol_http_1.HttpRequest({
132
127
  protocol,
@@ -161,8 +156,7 @@ const serializeAws_restJson1AssociateSigninDelegateGroupsWithAccountCommand = as
161
156
  };
162
157
  let body;
163
158
  body = JSON.stringify({
164
- ...(input.SigninDelegateGroups !== undefined &&
165
- input.SigninDelegateGroups !== null && {
159
+ ...(input.SigninDelegateGroups != null && {
166
160
  SigninDelegateGroups: serializeAws_restJson1SigninDelegateGroupList(input.SigninDelegateGroups, context),
167
161
  }),
168
162
  });
@@ -199,8 +193,7 @@ const serializeAws_restJson1BatchCreateAttendeeCommand = async (input, context)
199
193
  };
200
194
  let body;
201
195
  body = JSON.stringify({
202
- ...(input.Attendees !== undefined &&
203
- input.Attendees !== null && {
196
+ ...(input.Attendees != null && {
204
197
  Attendees: serializeAws_restJson1CreateAttendeeRequestItemList(input.Attendees, context),
205
198
  }),
206
199
  });
@@ -238,9 +231,8 @@ const serializeAws_restJson1BatchCreateChannelMembershipCommand = async (input,
238
231
  };
239
232
  let body;
240
233
  body = JSON.stringify({
241
- ...(input.MemberArns !== undefined &&
242
- input.MemberArns !== null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) }),
243
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
234
+ ...(input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) }),
235
+ ...(input.Type != null && { Type: input.Type }),
244
236
  });
245
237
  let { hostname: resolvedHostname } = await context.endpoint();
246
238
  if (context.disableHostPrefix !== true) {
@@ -293,8 +285,7 @@ const serializeAws_restJson1BatchCreateRoomMembershipCommand = async (input, con
293
285
  };
294
286
  let body;
295
287
  body = JSON.stringify({
296
- ...(input.MembershipItemList !== undefined &&
297
- input.MembershipItemList !== null && {
288
+ ...(input.MembershipItemList != null && {
298
289
  MembershipItemList: serializeAws_restJson1MembershipItemList(input.MembershipItemList, context),
299
290
  }),
300
291
  });
@@ -321,8 +312,7 @@ const serializeAws_restJson1BatchDeletePhoneNumberCommand = async (input, contex
321
312
  };
322
313
  let body;
323
314
  body = JSON.stringify({
324
- ...(input.PhoneNumberIds !== undefined &&
325
- input.PhoneNumberIds !== null && {
315
+ ...(input.PhoneNumberIds != null && {
326
316
  PhoneNumberIds: serializeAws_restJson1NonEmptyStringList(input.PhoneNumberIds, context),
327
317
  }),
328
318
  });
@@ -359,8 +349,7 @@ const serializeAws_restJson1BatchSuspendUserCommand = async (input, context) =>
359
349
  };
360
350
  let body;
361
351
  body = JSON.stringify({
362
- ...(input.UserIdList !== undefined &&
363
- input.UserIdList !== null && { UserIdList: serializeAws_restJson1UserIdList(input.UserIdList, context) }),
352
+ ...(input.UserIdList != null && { UserIdList: serializeAws_restJson1UserIdList(input.UserIdList, context) }),
364
353
  });
365
354
  return new protocol_http_1.HttpRequest({
366
355
  protocol,
@@ -395,8 +384,7 @@ const serializeAws_restJson1BatchUnsuspendUserCommand = async (input, context) =
395
384
  };
396
385
  let body;
397
386
  body = JSON.stringify({
398
- ...(input.UserIdList !== undefined &&
399
- input.UserIdList !== null && { UserIdList: serializeAws_restJson1UserIdList(input.UserIdList, context) }),
387
+ ...(input.UserIdList != null && { UserIdList: serializeAws_restJson1UserIdList(input.UserIdList, context) }),
400
388
  });
401
389
  return new protocol_http_1.HttpRequest({
402
390
  protocol,
@@ -421,8 +409,7 @@ const serializeAws_restJson1BatchUpdatePhoneNumberCommand = async (input, contex
421
409
  };
422
410
  let body;
423
411
  body = JSON.stringify({
424
- ...(input.UpdatePhoneNumberRequestItems !== undefined &&
425
- input.UpdatePhoneNumberRequestItems !== null && {
412
+ ...(input.UpdatePhoneNumberRequestItems != null && {
426
413
  UpdatePhoneNumberRequestItems: serializeAws_restJson1UpdatePhoneNumberRequestItemList(input.UpdatePhoneNumberRequestItems, context),
427
414
  }),
428
415
  });
@@ -456,8 +443,7 @@ const serializeAws_restJson1BatchUpdateUserCommand = async (input, context) => {
456
443
  }
457
444
  let body;
458
445
  body = JSON.stringify({
459
- ...(input.UpdateUserRequestItems !== undefined &&
460
- input.UpdateUserRequestItems !== null && {
446
+ ...(input.UpdateUserRequestItems != null && {
461
447
  UpdateUserRequestItems: serializeAws_restJson1UpdateUserRequestItemList(input.UpdateUserRequestItems, context),
462
448
  }),
463
449
  });
@@ -480,7 +466,7 @@ const serializeAws_restJson1CreateAccountCommand = async (input, context) => {
480
466
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/accounts";
481
467
  let body;
482
468
  body = JSON.stringify({
483
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
469
+ ...(input.Name != null && { Name: input.Name }),
484
470
  });
485
471
  return new protocol_http_1.HttpRequest({
486
472
  protocol,
@@ -503,10 +489,9 @@ const serializeAws_restJson1CreateAppInstanceCommand = async (input, context) =>
503
489
  let body;
504
490
  body = JSON.stringify({
505
491
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
506
- ...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
507
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
508
- ...(input.Tags !== undefined &&
509
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
492
+ ...(input.Metadata != null && { Metadata: input.Metadata }),
493
+ ...(input.Name != null && { Name: input.Name }),
494
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
510
495
  });
511
496
  let { hostname: resolvedHostname } = await context.endpoint();
512
497
  if (context.disableHostPrefix !== true) {
@@ -544,8 +529,7 @@ const serializeAws_restJson1CreateAppInstanceAdminCommand = async (input, contex
544
529
  }
545
530
  let body;
546
531
  body = JSON.stringify({
547
- ...(input.AppInstanceAdminArn !== undefined &&
548
- input.AppInstanceAdminArn !== null && { AppInstanceAdminArn: input.AppInstanceAdminArn }),
532
+ ...(input.AppInstanceAdminArn != null && { AppInstanceAdminArn: input.AppInstanceAdminArn }),
549
533
  });
550
534
  let { hostname: resolvedHostname } = await context.endpoint();
551
535
  if (context.disableHostPrefix !== true) {
@@ -574,15 +558,12 @@ const serializeAws_restJson1CreateAppInstanceUserCommand = async (input, context
574
558
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users";
575
559
  let body;
576
560
  body = JSON.stringify({
577
- ...(input.AppInstanceArn !== undefined &&
578
- input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn }),
579
- ...(input.AppInstanceUserId !== undefined &&
580
- input.AppInstanceUserId !== null && { AppInstanceUserId: input.AppInstanceUserId }),
561
+ ...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
562
+ ...(input.AppInstanceUserId != null && { AppInstanceUserId: input.AppInstanceUserId }),
581
563
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
582
- ...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
583
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
584
- ...(input.Tags !== undefined &&
585
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
564
+ ...(input.Metadata != null && { Metadata: input.Metadata }),
565
+ ...(input.Name != null && { Name: input.Name }),
566
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
586
567
  });
587
568
  let { hostname: resolvedHostname } = await context.endpoint();
588
569
  if (context.disableHostPrefix !== true) {
@@ -620,10 +601,8 @@ const serializeAws_restJson1CreateAttendeeCommand = async (input, context) => {
620
601
  }
621
602
  let body;
622
603
  body = JSON.stringify({
623
- ...(input.ExternalUserId !== undefined &&
624
- input.ExternalUserId !== null && { ExternalUserId: input.ExternalUserId }),
625
- ...(input.Tags !== undefined &&
626
- input.Tags !== null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) }),
604
+ ...(input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId }),
605
+ ...(input.Tags != null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) }),
627
606
  });
628
607
  return new protocol_http_1.HttpRequest({
629
608
  protocol,
@@ -654,8 +633,8 @@ const serializeAws_restJson1CreateBotCommand = async (input, context) => {
654
633
  }
655
634
  let body;
656
635
  body = JSON.stringify({
657
- ...(input.DisplayName !== undefined && input.DisplayName !== null && { DisplayName: input.DisplayName }),
658
- ...(input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }),
636
+ ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
637
+ ...(input.Domain != null && { Domain: input.Domain }),
659
638
  });
660
639
  return new protocol_http_1.HttpRequest({
661
640
  protocol,
@@ -678,15 +657,13 @@ const serializeAws_restJson1CreateChannelCommand = async (input, context) => {
678
657
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/channels";
679
658
  let body;
680
659
  body = JSON.stringify({
681
- ...(input.AppInstanceArn !== undefined &&
682
- input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn }),
660
+ ...(input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn }),
683
661
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
684
- ...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
685
- ...(input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode }),
686
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
687
- ...(input.Privacy !== undefined && input.Privacy !== null && { Privacy: input.Privacy }),
688
- ...(input.Tags !== undefined &&
689
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
662
+ ...(input.Metadata != null && { Metadata: input.Metadata }),
663
+ ...(input.Mode != null && { Mode: input.Mode }),
664
+ ...(input.Name != null && { Name: input.Name }),
665
+ ...(input.Privacy != null && { Privacy: input.Privacy }),
666
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
690
667
  });
691
668
  let { hostname: resolvedHostname } = await context.endpoint();
692
669
  if (context.disableHostPrefix !== true) {
@@ -725,7 +702,7 @@ const serializeAws_restJson1CreateChannelBanCommand = async (input, context) =>
725
702
  }
726
703
  let body;
727
704
  body = JSON.stringify({
728
- ...(input.MemberArn !== undefined && input.MemberArn !== null && { MemberArn: input.MemberArn }),
705
+ ...(input.MemberArn != null && { MemberArn: input.MemberArn }),
729
706
  });
730
707
  let { hostname: resolvedHostname } = await context.endpoint();
731
708
  if (context.disableHostPrefix !== true) {
@@ -764,8 +741,8 @@ const serializeAws_restJson1CreateChannelMembershipCommand = async (input, conte
764
741
  }
765
742
  let body;
766
743
  body = JSON.stringify({
767
- ...(input.MemberArn !== undefined && input.MemberArn !== null && { MemberArn: input.MemberArn }),
768
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
744
+ ...(input.MemberArn != null && { MemberArn: input.MemberArn }),
745
+ ...(input.Type != null && { Type: input.Type }),
769
746
  });
770
747
  let { hostname: resolvedHostname } = await context.endpoint();
771
748
  if (context.disableHostPrefix !== true) {
@@ -804,8 +781,7 @@ const serializeAws_restJson1CreateChannelModeratorCommand = async (input, contex
804
781
  }
805
782
  let body;
806
783
  body = JSON.stringify({
807
- ...(input.ChannelModeratorArn !== undefined &&
808
- input.ChannelModeratorArn !== null && { ChannelModeratorArn: input.ChannelModeratorArn }),
784
+ ...(input.ChannelModeratorArn != null && { ChannelModeratorArn: input.ChannelModeratorArn }),
809
785
  });
810
786
  let { hostname: resolvedHostname } = await context.endpoint();
811
787
  if (context.disableHostPrefix !== true) {
@@ -834,15 +810,14 @@ const serializeAws_restJson1CreateMediaCapturePipelineCommand = async (input, co
834
810
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/media-capture-pipelines";
835
811
  let body;
836
812
  body = JSON.stringify({
837
- ...(input.ChimeSdkMeetingConfiguration !== undefined &&
838
- input.ChimeSdkMeetingConfiguration !== null && {
813
+ ...(input.ChimeSdkMeetingConfiguration != null && {
839
814
  ChimeSdkMeetingConfiguration: serializeAws_restJson1ChimeSdkMeetingConfiguration(input.ChimeSdkMeetingConfiguration, context),
840
815
  }),
841
816
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
842
- ...(input.SinkArn !== undefined && input.SinkArn !== null && { SinkArn: input.SinkArn }),
843
- ...(input.SinkType !== undefined && input.SinkType !== null && { SinkType: input.SinkType }),
844
- ...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
845
- ...(input.SourceType !== undefined && input.SourceType !== null && { SourceType: input.SourceType }),
817
+ ...(input.SinkArn != null && { SinkArn: input.SinkArn }),
818
+ ...(input.SinkType != null && { SinkType: input.SinkType }),
819
+ ...(input.SourceArn != null && { SourceArn: input.SourceArn }),
820
+ ...(input.SourceType != null && { SourceType: input.SourceType }),
846
821
  });
847
822
  return new protocol_http_1.HttpRequest({
848
823
  protocol,
@@ -865,16 +840,13 @@ const serializeAws_restJson1CreateMeetingCommand = async (input, context) => {
865
840
  let body;
866
841
  body = JSON.stringify({
867
842
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
868
- ...(input.ExternalMeetingId !== undefined &&
869
- input.ExternalMeetingId !== null && { ExternalMeetingId: input.ExternalMeetingId }),
870
- ...(input.MediaRegion !== undefined && input.MediaRegion !== null && { MediaRegion: input.MediaRegion }),
871
- ...(input.MeetingHostId !== undefined && input.MeetingHostId !== null && { MeetingHostId: input.MeetingHostId }),
872
- ...(input.NotificationsConfiguration !== undefined &&
873
- input.NotificationsConfiguration !== null && {
843
+ ...(input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId }),
844
+ ...(input.MediaRegion != null && { MediaRegion: input.MediaRegion }),
845
+ ...(input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId }),
846
+ ...(input.NotificationsConfiguration != null && {
874
847
  NotificationsConfiguration: serializeAws_restJson1MeetingNotificationConfiguration(input.NotificationsConfiguration, context),
875
848
  }),
876
- ...(input.Tags !== undefined &&
877
- input.Tags !== null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) }),
849
+ ...(input.Tags != null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) }),
878
850
  });
879
851
  return new protocol_http_1.HttpRequest({
880
852
  protocol,
@@ -905,10 +877,9 @@ const serializeAws_restJson1CreateMeetingDialOutCommand = async (input, context)
905
877
  }
906
878
  let body;
907
879
  body = JSON.stringify({
908
- ...(input.FromPhoneNumber !== undefined &&
909
- input.FromPhoneNumber !== null && { FromPhoneNumber: input.FromPhoneNumber }),
910
- ...(input.JoinToken !== undefined && input.JoinToken !== null && { JoinToken: input.JoinToken }),
911
- ...(input.ToPhoneNumber !== undefined && input.ToPhoneNumber !== null && { ToPhoneNumber: input.ToPhoneNumber }),
880
+ ...(input.FromPhoneNumber != null && { FromPhoneNumber: input.FromPhoneNumber }),
881
+ ...(input.JoinToken != null && { JoinToken: input.JoinToken }),
882
+ ...(input.ToPhoneNumber != null && { ToPhoneNumber: input.ToPhoneNumber }),
912
883
  });
913
884
  return new protocol_http_1.HttpRequest({
914
885
  protocol,
@@ -933,21 +904,17 @@ const serializeAws_restJson1CreateMeetingWithAttendeesCommand = async (input, co
933
904
  };
934
905
  let body;
935
906
  body = JSON.stringify({
936
- ...(input.Attendees !== undefined &&
937
- input.Attendees !== null && {
907
+ ...(input.Attendees != null && {
938
908
  Attendees: serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList(input.Attendees, context),
939
909
  }),
940
910
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
941
- ...(input.ExternalMeetingId !== undefined &&
942
- input.ExternalMeetingId !== null && { ExternalMeetingId: input.ExternalMeetingId }),
943
- ...(input.MediaRegion !== undefined && input.MediaRegion !== null && { MediaRegion: input.MediaRegion }),
944
- ...(input.MeetingHostId !== undefined && input.MeetingHostId !== null && { MeetingHostId: input.MeetingHostId }),
945
- ...(input.NotificationsConfiguration !== undefined &&
946
- input.NotificationsConfiguration !== null && {
911
+ ...(input.ExternalMeetingId != null && { ExternalMeetingId: input.ExternalMeetingId }),
912
+ ...(input.MediaRegion != null && { MediaRegion: input.MediaRegion }),
913
+ ...(input.MeetingHostId != null && { MeetingHostId: input.MeetingHostId }),
914
+ ...(input.NotificationsConfiguration != null && {
947
915
  NotificationsConfiguration: serializeAws_restJson1MeetingNotificationConfiguration(input.NotificationsConfiguration, context),
948
916
  }),
949
- ...(input.Tags !== undefined &&
950
- input.Tags !== null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) }),
917
+ ...(input.Tags != null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) }),
951
918
  });
952
919
  return new protocol_http_1.HttpRequest({
953
920
  protocol,
@@ -969,11 +936,10 @@ const serializeAws_restJson1CreatePhoneNumberOrderCommand = async (input, contex
969
936
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/phone-number-orders";
970
937
  let body;
971
938
  body = JSON.stringify({
972
- ...(input.E164PhoneNumbers !== undefined &&
973
- input.E164PhoneNumbers !== null && {
939
+ ...(input.E164PhoneNumbers != null && {
974
940
  E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
975
941
  }),
976
- ...(input.ProductType !== undefined && input.ProductType !== null && { ProductType: input.ProductType }),
942
+ ...(input.ProductType != null && { ProductType: input.ProductType }),
977
943
  });
978
944
  return new protocol_http_1.HttpRequest({
979
945
  protocol,
@@ -1005,21 +971,17 @@ const serializeAws_restJson1CreateProxySessionCommand = async (input, context) =
1005
971
  }
1006
972
  let body;
1007
973
  body = JSON.stringify({
1008
- ...(input.Capabilities !== undefined &&
1009
- input.Capabilities !== null && {
974
+ ...(input.Capabilities != null && {
1010
975
  Capabilities: serializeAws_restJson1CapabilityList(input.Capabilities, context),
1011
976
  }),
1012
- ...(input.ExpiryMinutes !== undefined && input.ExpiryMinutes !== null && { ExpiryMinutes: input.ExpiryMinutes }),
1013
- ...(input.GeoMatchLevel !== undefined && input.GeoMatchLevel !== null && { GeoMatchLevel: input.GeoMatchLevel }),
1014
- ...(input.GeoMatchParams !== undefined &&
1015
- input.GeoMatchParams !== null && {
977
+ ...(input.ExpiryMinutes != null && { ExpiryMinutes: input.ExpiryMinutes }),
978
+ ...(input.GeoMatchLevel != null && { GeoMatchLevel: input.GeoMatchLevel }),
979
+ ...(input.GeoMatchParams != null && {
1016
980
  GeoMatchParams: serializeAws_restJson1GeoMatchParams(input.GeoMatchParams, context),
1017
981
  }),
1018
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1019
- ...(input.NumberSelectionBehavior !== undefined &&
1020
- input.NumberSelectionBehavior !== null && { NumberSelectionBehavior: input.NumberSelectionBehavior }),
1021
- ...(input.ParticipantPhoneNumbers !== undefined &&
1022
- input.ParticipantPhoneNumbers !== null && {
982
+ ...(input.Name != null && { Name: input.Name }),
983
+ ...(input.NumberSelectionBehavior != null && { NumberSelectionBehavior: input.NumberSelectionBehavior }),
984
+ ...(input.ParticipantPhoneNumbers != null && {
1023
985
  ParticipantPhoneNumbers: serializeAws_restJson1ParticipantPhoneNumberList(input.ParticipantPhoneNumbers, context),
1024
986
  }),
1025
987
  });
@@ -1054,7 +1016,7 @@ const serializeAws_restJson1CreateRoomCommand = async (input, context) => {
1054
1016
  let body;
1055
1017
  body = JSON.stringify({
1056
1018
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1057
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1019
+ ...(input.Name != null && { Name: input.Name }),
1058
1020
  });
1059
1021
  return new protocol_http_1.HttpRequest({
1060
1022
  protocol,
@@ -1096,8 +1058,8 @@ const serializeAws_restJson1CreateRoomMembershipCommand = async (input, context)
1096
1058
  }
1097
1059
  let body;
1098
1060
  body = JSON.stringify({
1099
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
1100
- ...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
1061
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
1062
+ ...(input.Role != null && { Role: input.Role }),
1101
1063
  });
1102
1064
  return new protocol_http_1.HttpRequest({
1103
1065
  protocol,
@@ -1118,12 +1080,11 @@ const serializeAws_restJson1CreateSipMediaApplicationCommand = async (input, con
1118
1080
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sip-media-applications";
1119
1081
  let body;
1120
1082
  body = JSON.stringify({
1121
- ...(input.AwsRegion !== undefined && input.AwsRegion !== null && { AwsRegion: input.AwsRegion }),
1122
- ...(input.Endpoints !== undefined &&
1123
- input.Endpoints !== null && {
1083
+ ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1084
+ ...(input.Endpoints != null && {
1124
1085
  Endpoints: serializeAws_restJson1SipMediaApplicationEndpointList(input.Endpoints, context),
1125
1086
  }),
1126
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1087
+ ...(input.Name != null && { Name: input.Name }),
1127
1088
  });
1128
1089
  return new protocol_http_1.HttpRequest({
1129
1090
  protocol,
@@ -1155,11 +1116,9 @@ const serializeAws_restJson1CreateSipMediaApplicationCallCommand = async (input,
1155
1116
  }
1156
1117
  let body;
1157
1118
  body = JSON.stringify({
1158
- ...(input.FromPhoneNumber !== undefined &&
1159
- input.FromPhoneNumber !== null && { FromPhoneNumber: input.FromPhoneNumber }),
1160
- ...(input.SipHeaders !== undefined &&
1161
- input.SipHeaders !== null && { SipHeaders: serializeAws_restJson1SipHeadersMap(input.SipHeaders, context) }),
1162
- ...(input.ToPhoneNumber !== undefined && input.ToPhoneNumber !== null && { ToPhoneNumber: input.ToPhoneNumber }),
1119
+ ...(input.FromPhoneNumber != null && { FromPhoneNumber: input.FromPhoneNumber }),
1120
+ ...(input.SipHeaders != null && { SipHeaders: serializeAws_restJson1SipHeadersMap(input.SipHeaders, context) }),
1121
+ ...(input.ToPhoneNumber != null && { ToPhoneNumber: input.ToPhoneNumber }),
1163
1122
  });
1164
1123
  return new protocol_http_1.HttpRequest({
1165
1124
  protocol,
@@ -1180,14 +1139,13 @@ const serializeAws_restJson1CreateSipRuleCommand = async (input, context) => {
1180
1139
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/sip-rules";
1181
1140
  let body;
1182
1141
  body = JSON.stringify({
1183
- ...(input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }),
1184
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1185
- ...(input.TargetApplications !== undefined &&
1186
- input.TargetApplications !== null && {
1142
+ ...(input.Disabled != null && { Disabled: input.Disabled }),
1143
+ ...(input.Name != null && { Name: input.Name }),
1144
+ ...(input.TargetApplications != null && {
1187
1145
  TargetApplications: serializeAws_restJson1SipRuleTargetApplicationList(input.TargetApplications, context),
1188
1146
  }),
1189
- ...(input.TriggerType !== undefined && input.TriggerType !== null && { TriggerType: input.TriggerType }),
1190
- ...(input.TriggerValue !== undefined && input.TriggerValue !== null && { TriggerValue: input.TriggerValue }),
1147
+ ...(input.TriggerType != null && { TriggerType: input.TriggerType }),
1148
+ ...(input.TriggerValue != null && { TriggerValue: input.TriggerValue }),
1191
1149
  });
1192
1150
  return new protocol_http_1.HttpRequest({
1193
1151
  protocol,
@@ -1221,9 +1179,9 @@ const serializeAws_restJson1CreateUserCommand = async (input, context) => {
1221
1179
  };
1222
1180
  let body;
1223
1181
  body = JSON.stringify({
1224
- ...(input.Email !== undefined && input.Email !== null && { Email: input.Email }),
1225
- ...(input.UserType !== undefined && input.UserType !== null && { UserType: input.UserType }),
1226
- ...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
1182
+ ...(input.Email != null && { Email: input.Email }),
1183
+ ...(input.UserType != null && { UserType: input.UserType }),
1184
+ ...(input.Username != null && { Username: input.Username }),
1227
1185
  });
1228
1186
  return new protocol_http_1.HttpRequest({
1229
1187
  protocol,
@@ -1245,10 +1203,9 @@ const serializeAws_restJson1CreateVoiceConnectorCommand = async (input, context)
1245
1203
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connectors";
1246
1204
  let body;
1247
1205
  body = JSON.stringify({
1248
- ...(input.AwsRegion !== undefined && input.AwsRegion !== null && { AwsRegion: input.AwsRegion }),
1249
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1250
- ...(input.RequireEncryption !== undefined &&
1251
- input.RequireEncryption !== null && { RequireEncryption: input.RequireEncryption }),
1206
+ ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
1207
+ ...(input.Name != null && { Name: input.Name }),
1208
+ ...(input.RequireEncryption != null && { RequireEncryption: input.RequireEncryption }),
1252
1209
  });
1253
1210
  return new protocol_http_1.HttpRequest({
1254
1211
  protocol,
@@ -1269,9 +1226,8 @@ const serializeAws_restJson1CreateVoiceConnectorGroupCommand = async (input, con
1269
1226
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/voice-connector-groups";
1270
1227
  let body;
1271
1228
  body = JSON.stringify({
1272
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
1273
- ...(input.VoiceConnectorItems !== undefined &&
1274
- input.VoiceConnectorItems !== null && {
1229
+ ...(input.Name != null && { Name: input.Name }),
1230
+ ...(input.VoiceConnectorItems != null && {
1275
1231
  VoiceConnectorItems: serializeAws_restJson1VoiceConnectorItemList(input.VoiceConnectorItems, context),
1276
1232
  }),
1277
1233
  });
@@ -2203,8 +2159,7 @@ const serializeAws_restJson1DeleteVoiceConnectorTerminationCredentialsCommand =
2203
2159
  };
2204
2160
  let body;
2205
2161
  body = JSON.stringify({
2206
- ...(input.Usernames !== undefined &&
2207
- input.Usernames !== null && { Usernames: serializeAws_restJson1SensitiveStringList(input.Usernames, context) }),
2162
+ ...(input.Usernames != null && { Usernames: serializeAws_restJson1SensitiveStringList(input.Usernames, context) }),
2208
2163
  });
2209
2164
  return new protocol_http_1.HttpRequest({
2210
2165
  protocol,
@@ -2641,8 +2596,7 @@ const serializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorCommand =
2641
2596
  };
2642
2597
  let body;
2643
2598
  body = JSON.stringify({
2644
- ...(input.E164PhoneNumbers !== undefined &&
2645
- input.E164PhoneNumbers !== null && {
2599
+ ...(input.E164PhoneNumbers != null && {
2646
2600
  E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
2647
2601
  }),
2648
2602
  });
@@ -2680,8 +2634,7 @@ const serializeAws_restJson1DisassociatePhoneNumbersFromVoiceConnectorGroupComma
2680
2634
  };
2681
2635
  let body;
2682
2636
  body = JSON.stringify({
2683
- ...(input.E164PhoneNumbers !== undefined &&
2684
- input.E164PhoneNumbers !== null && {
2637
+ ...(input.E164PhoneNumbers != null && {
2685
2638
  E164PhoneNumbers: serializeAws_restJson1E164PhoneNumberList(input.E164PhoneNumbers, context),
2686
2639
  }),
2687
2640
  });
@@ -2718,8 +2671,9 @@ const serializeAws_restJson1DisassociateSigninDelegateGroupsFromAccountCommand =
2718
2671
  };
2719
2672
  let body;
2720
2673
  body = JSON.stringify({
2721
- ...(input.GroupNames !== undefined &&
2722
- input.GroupNames !== null && { GroupNames: serializeAws_restJson1NonEmptyStringList(input.GroupNames, context) }),
2674
+ ...(input.GroupNames != null && {
2675
+ GroupNames: serializeAws_restJson1NonEmptyStringList(input.GroupNames, context),
2676
+ }),
2723
2677
  });
2724
2678
  return new protocol_http_1.HttpRequest({
2725
2679
  protocol,
@@ -3686,11 +3640,10 @@ const serializeAws_restJson1InviteUsersCommand = async (input, context) => {
3686
3640
  };
3687
3641
  let body;
3688
3642
  body = JSON.stringify({
3689
- ...(input.UserEmailList !== undefined &&
3690
- input.UserEmailList !== null && {
3643
+ ...(input.UserEmailList != null && {
3691
3644
  UserEmailList: serializeAws_restJson1UserEmailList(input.UserEmailList, context),
3692
3645
  }),
3693
- ...(input.UserType !== undefined && input.UserType !== null && { UserType: input.UserType }),
3646
+ ...(input.UserType != null && { UserType: input.UserType }),
3694
3647
  });
3695
3648
  return new protocol_http_1.HttpRequest({
3696
3649
  protocol,
@@ -4648,8 +4601,7 @@ const serializeAws_restJson1PutAppInstanceRetentionSettingsCommand = async (inpu
4648
4601
  }
4649
4602
  let body;
4650
4603
  body = JSON.stringify({
4651
- ...(input.AppInstanceRetentionSettings !== undefined &&
4652
- input.AppInstanceRetentionSettings !== null && {
4604
+ ...(input.AppInstanceRetentionSettings != null && {
4653
4605
  AppInstanceRetentionSettings: serializeAws_restJson1AppInstanceRetentionSettings(input.AppInstanceRetentionSettings, context),
4654
4606
  }),
4655
4607
  });
@@ -4690,8 +4642,7 @@ const serializeAws_restJson1PutAppInstanceStreamingConfigurationsCommand = async
4690
4642
  }
4691
4643
  let body;
4692
4644
  body = JSON.stringify({
4693
- ...(input.AppInstanceStreamingConfigurations !== undefined &&
4694
- input.AppInstanceStreamingConfigurations !== null && {
4645
+ ...(input.AppInstanceStreamingConfigurations != null && {
4695
4646
  AppInstanceStreamingConfigurations: serializeAws_restJson1AppInstanceStreamingConfigurationList(input.AppInstanceStreamingConfigurations, context),
4696
4647
  }),
4697
4648
  });
@@ -4735,10 +4686,10 @@ const serializeAws_restJson1PutEventsConfigurationCommand = async (input, contex
4735
4686
  }
4736
4687
  let body;
4737
4688
  body = JSON.stringify({
4738
- ...(input.LambdaFunctionArn !== undefined &&
4739
- input.LambdaFunctionArn !== null && { LambdaFunctionArn: input.LambdaFunctionArn }),
4740
- ...(input.OutboundEventsHTTPSEndpoint !== undefined &&
4741
- input.OutboundEventsHTTPSEndpoint !== null && { OutboundEventsHTTPSEndpoint: input.OutboundEventsHTTPSEndpoint }),
4689
+ ...(input.LambdaFunctionArn != null && { LambdaFunctionArn: input.LambdaFunctionArn }),
4690
+ ...(input.OutboundEventsHTTPSEndpoint != null && {
4691
+ OutboundEventsHTTPSEndpoint: input.OutboundEventsHTTPSEndpoint,
4692
+ }),
4742
4693
  });
4743
4694
  return new protocol_http_1.HttpRequest({
4744
4695
  protocol,
@@ -4769,8 +4720,7 @@ const serializeAws_restJson1PutRetentionSettingsCommand = async (input, context)
4769
4720
  }
4770
4721
  let body;
4771
4722
  body = JSON.stringify({
4772
- ...(input.RetentionSettings !== undefined &&
4773
- input.RetentionSettings !== null && {
4723
+ ...(input.RetentionSettings != null && {
4774
4724
  RetentionSettings: serializeAws_restJson1RetentionSettings(input.RetentionSettings, context),
4775
4725
  }),
4776
4726
  });
@@ -4804,8 +4754,7 @@ const serializeAws_restJson1PutSipMediaApplicationLoggingConfigurationCommand =
4804
4754
  }
4805
4755
  let body;
4806
4756
  body = JSON.stringify({
4807
- ...(input.SipMediaApplicationLoggingConfiguration !== undefined &&
4808
- input.SipMediaApplicationLoggingConfiguration !== null && {
4757
+ ...(input.SipMediaApplicationLoggingConfiguration != null && {
4809
4758
  SipMediaApplicationLoggingConfiguration: serializeAws_restJson1SipMediaApplicationLoggingConfiguration(input.SipMediaApplicationLoggingConfiguration, context),
4810
4759
  }),
4811
4760
  });
@@ -4839,8 +4788,7 @@ const serializeAws_restJson1PutVoiceConnectorEmergencyCallingConfigurationComman
4839
4788
  }
4840
4789
  let body;
4841
4790
  body = JSON.stringify({
4842
- ...(input.EmergencyCallingConfiguration !== undefined &&
4843
- input.EmergencyCallingConfiguration !== null && {
4791
+ ...(input.EmergencyCallingConfiguration != null && {
4844
4792
  EmergencyCallingConfiguration: serializeAws_restJson1EmergencyCallingConfiguration(input.EmergencyCallingConfiguration, context),
4845
4793
  }),
4846
4794
  });
@@ -4874,8 +4822,7 @@ const serializeAws_restJson1PutVoiceConnectorLoggingConfigurationCommand = async
4874
4822
  }
4875
4823
  let body;
4876
4824
  body = JSON.stringify({
4877
- ...(input.LoggingConfiguration !== undefined &&
4878
- input.LoggingConfiguration !== null && {
4825
+ ...(input.LoggingConfiguration != null && {
4879
4826
  LoggingConfiguration: serializeAws_restJson1LoggingConfiguration(input.LoggingConfiguration, context),
4880
4827
  }),
4881
4828
  });
@@ -4909,8 +4856,7 @@ const serializeAws_restJson1PutVoiceConnectorOriginationCommand = async (input,
4909
4856
  }
4910
4857
  let body;
4911
4858
  body = JSON.stringify({
4912
- ...(input.Origination !== undefined &&
4913
- input.Origination !== null && { Origination: serializeAws_restJson1Origination(input.Origination, context) }),
4859
+ ...(input.Origination != null && { Origination: serializeAws_restJson1Origination(input.Origination, context) }),
4914
4860
  });
4915
4861
  return new protocol_http_1.HttpRequest({
4916
4862
  protocol,
@@ -4942,13 +4888,12 @@ const serializeAws_restJson1PutVoiceConnectorProxyCommand = async (input, contex
4942
4888
  }
4943
4889
  let body;
4944
4890
  body = JSON.stringify({
4945
- ...(input.DefaultSessionExpiryMinutes !== undefined &&
4946
- input.DefaultSessionExpiryMinutes !== null && { DefaultSessionExpiryMinutes: input.DefaultSessionExpiryMinutes }),
4947
- ...(input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }),
4948
- ...(input.FallBackPhoneNumber !== undefined &&
4949
- input.FallBackPhoneNumber !== null && { FallBackPhoneNumber: input.FallBackPhoneNumber }),
4950
- ...(input.PhoneNumberPoolCountries !== undefined &&
4951
- input.PhoneNumberPoolCountries !== null && {
4891
+ ...(input.DefaultSessionExpiryMinutes != null && {
4892
+ DefaultSessionExpiryMinutes: input.DefaultSessionExpiryMinutes,
4893
+ }),
4894
+ ...(input.Disabled != null && { Disabled: input.Disabled }),
4895
+ ...(input.FallBackPhoneNumber != null && { FallBackPhoneNumber: input.FallBackPhoneNumber }),
4896
+ ...(input.PhoneNumberPoolCountries != null && {
4952
4897
  PhoneNumberPoolCountries: serializeAws_restJson1CountryList(input.PhoneNumberPoolCountries, context),
4953
4898
  }),
4954
4899
  });
@@ -4982,8 +4927,7 @@ const serializeAws_restJson1PutVoiceConnectorStreamingConfigurationCommand = asy
4982
4927
  }
4983
4928
  let body;
4984
4929
  body = JSON.stringify({
4985
- ...(input.StreamingConfiguration !== undefined &&
4986
- input.StreamingConfiguration !== null && {
4930
+ ...(input.StreamingConfiguration != null && {
4987
4931
  StreamingConfiguration: serializeAws_restJson1StreamingConfiguration(input.StreamingConfiguration, context),
4988
4932
  }),
4989
4933
  });
@@ -5017,8 +4961,7 @@ const serializeAws_restJson1PutVoiceConnectorTerminationCommand = async (input,
5017
4961
  }
5018
4962
  let body;
5019
4963
  body = JSON.stringify({
5020
- ...(input.Termination !== undefined &&
5021
- input.Termination !== null && { Termination: serializeAws_restJson1Termination(input.Termination, context) }),
4964
+ ...(input.Termination != null && { Termination: serializeAws_restJson1Termination(input.Termination, context) }),
5022
4965
  });
5023
4966
  return new protocol_http_1.HttpRequest({
5024
4967
  protocol,
@@ -5053,8 +4996,7 @@ const serializeAws_restJson1PutVoiceConnectorTerminationCredentialsCommand = asy
5053
4996
  };
5054
4997
  let body;
5055
4998
  body = JSON.stringify({
5056
- ...(input.Credentials !== undefined &&
5057
- input.Credentials !== null && { Credentials: serializeAws_restJson1CredentialList(input.Credentials, context) }),
4999
+ ...(input.Credentials != null && { Credentials: serializeAws_restJson1CredentialList(input.Credentials, context) }),
5058
5000
  });
5059
5001
  return new protocol_http_1.HttpRequest({
5060
5002
  protocol,
@@ -5379,10 +5321,10 @@ const serializeAws_restJson1SendChannelMessageCommand = async (input, context) =
5379
5321
  let body;
5380
5322
  body = JSON.stringify({
5381
5323
  ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
5382
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
5383
- ...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
5384
- ...(input.Persistence !== undefined && input.Persistence !== null && { Persistence: input.Persistence }),
5385
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
5324
+ ...(input.Content != null && { Content: input.Content }),
5325
+ ...(input.Metadata != null && { Metadata: input.Metadata }),
5326
+ ...(input.Persistence != null && { Persistence: input.Persistence }),
5327
+ ...(input.Type != null && { Type: input.Type }),
5386
5328
  });
5387
5329
  let { hostname: resolvedHostname } = await context.endpoint();
5388
5330
  if (context.disableHostPrefix !== true) {
@@ -5423,8 +5365,7 @@ const serializeAws_restJson1StartMeetingTranscriptionCommand = async (input, con
5423
5365
  };
5424
5366
  let body;
5425
5367
  body = JSON.stringify({
5426
- ...(input.TranscriptionConfiguration !== undefined &&
5427
- input.TranscriptionConfiguration !== null && {
5368
+ ...(input.TranscriptionConfiguration != null && {
5428
5369
  TranscriptionConfiguration: serializeAws_restJson1TranscriptionConfiguration(input.TranscriptionConfiguration, context),
5429
5370
  }),
5430
5371
  });
@@ -5502,8 +5443,7 @@ const serializeAws_restJson1TagAttendeeCommand = async (input, context) => {
5502
5443
  };
5503
5444
  let body;
5504
5445
  body = JSON.stringify({
5505
- ...(input.Tags !== undefined &&
5506
- input.Tags !== null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) }),
5446
+ ...(input.Tags != null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) }),
5507
5447
  });
5508
5448
  return new protocol_http_1.HttpRequest({
5509
5449
  protocol,
@@ -5538,8 +5478,7 @@ const serializeAws_restJson1TagMeetingCommand = async (input, context) => {
5538
5478
  };
5539
5479
  let body;
5540
5480
  body = JSON.stringify({
5541
- ...(input.Tags !== undefined &&
5542
- input.Tags !== null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) }),
5481
+ ...(input.Tags != null && { Tags: serializeAws_restJson1MeetingTagList(input.Tags, context) }),
5543
5482
  });
5544
5483
  return new protocol_http_1.HttpRequest({
5545
5484
  protocol,
@@ -5564,9 +5503,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
5564
5503
  };
5565
5504
  let body;
5566
5505
  body = JSON.stringify({
5567
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
5568
- ...(input.Tags !== undefined &&
5569
- input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
5506
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
5507
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) }),
5570
5508
  });
5571
5509
  return new protocol_http_1.HttpRequest({
5572
5510
  protocol,
@@ -5612,8 +5550,7 @@ const serializeAws_restJson1UntagAttendeeCommand = async (input, context) => {
5612
5550
  };
5613
5551
  let body;
5614
5552
  body = JSON.stringify({
5615
- ...(input.TagKeys !== undefined &&
5616
- input.TagKeys !== null && { TagKeys: serializeAws_restJson1AttendeeTagKeyList(input.TagKeys, context) }),
5553
+ ...(input.TagKeys != null && { TagKeys: serializeAws_restJson1AttendeeTagKeyList(input.TagKeys, context) }),
5617
5554
  });
5618
5555
  return new protocol_http_1.HttpRequest({
5619
5556
  protocol,
@@ -5648,8 +5585,7 @@ const serializeAws_restJson1UntagMeetingCommand = async (input, context) => {
5648
5585
  };
5649
5586
  let body;
5650
5587
  body = JSON.stringify({
5651
- ...(input.TagKeys !== undefined &&
5652
- input.TagKeys !== null && { TagKeys: serializeAws_restJson1MeetingTagKeyList(input.TagKeys, context) }),
5588
+ ...(input.TagKeys != null && { TagKeys: serializeAws_restJson1MeetingTagKeyList(input.TagKeys, context) }),
5653
5589
  });
5654
5590
  return new protocol_http_1.HttpRequest({
5655
5591
  protocol,
@@ -5674,9 +5610,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
5674
5610
  };
5675
5611
  let body;
5676
5612
  body = JSON.stringify({
5677
- ...(input.ResourceARN !== undefined && input.ResourceARN !== null && { ResourceARN: input.ResourceARN }),
5678
- ...(input.TagKeys !== undefined &&
5679
- input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
5613
+ ...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
5614
+ ...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) }),
5680
5615
  });
5681
5616
  return new protocol_http_1.HttpRequest({
5682
5617
  protocol,
@@ -5708,9 +5643,8 @@ const serializeAws_restJson1UpdateAccountCommand = async (input, context) => {
5708
5643
  }
5709
5644
  let body;
5710
5645
  body = JSON.stringify({
5711
- ...(input.DefaultLicense !== undefined &&
5712
- input.DefaultLicense !== null && { DefaultLicense: input.DefaultLicense }),
5713
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
5646
+ ...(input.DefaultLicense != null && { DefaultLicense: input.DefaultLicense }),
5647
+ ...(input.Name != null && { Name: input.Name }),
5714
5648
  });
5715
5649
  return new protocol_http_1.HttpRequest({
5716
5650
  protocol,
@@ -5741,8 +5675,7 @@ const serializeAws_restJson1UpdateAccountSettingsCommand = async (input, context
5741
5675
  }
5742
5676
  let body;
5743
5677
  body = JSON.stringify({
5744
- ...(input.AccountSettings !== undefined &&
5745
- input.AccountSettings !== null && {
5678
+ ...(input.AccountSettings != null && {
5746
5679
  AccountSettings: serializeAws_restJson1AccountSettings(input.AccountSettings, context),
5747
5680
  }),
5748
5681
  });
@@ -5775,8 +5708,8 @@ const serializeAws_restJson1UpdateAppInstanceCommand = async (input, context) =>
5775
5708
  }
5776
5709
  let body;
5777
5710
  body = JSON.stringify({
5778
- ...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
5779
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
5711
+ ...(input.Metadata != null && { Metadata: input.Metadata }),
5712
+ ...(input.Name != null && { Name: input.Name }),
5780
5713
  });
5781
5714
  let { hostname: resolvedHostname } = await context.endpoint();
5782
5715
  if (context.disableHostPrefix !== true) {
@@ -5814,8 +5747,8 @@ const serializeAws_restJson1UpdateAppInstanceUserCommand = async (input, context
5814
5747
  }
5815
5748
  let body;
5816
5749
  body = JSON.stringify({
5817
- ...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
5818
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
5750
+ ...(input.Metadata != null && { Metadata: input.Metadata }),
5751
+ ...(input.Name != null && { Name: input.Name }),
5819
5752
  });
5820
5753
  let { hostname: resolvedHostname } = await context.endpoint();
5821
5754
  if (context.disableHostPrefix !== true) {
@@ -5863,7 +5796,7 @@ const serializeAws_restJson1UpdateBotCommand = async (input, context) => {
5863
5796
  }
5864
5797
  let body;
5865
5798
  body = JSON.stringify({
5866
- ...(input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }),
5799
+ ...(input.Disabled != null && { Disabled: input.Disabled }),
5867
5800
  });
5868
5801
  return new protocol_http_1.HttpRequest({
5869
5802
  protocol,
@@ -5895,9 +5828,9 @@ const serializeAws_restJson1UpdateChannelCommand = async (input, context) => {
5895
5828
  }
5896
5829
  let body;
5897
5830
  body = JSON.stringify({
5898
- ...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
5899
- ...(input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode }),
5900
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
5831
+ ...(input.Metadata != null && { Metadata: input.Metadata }),
5832
+ ...(input.Mode != null && { Mode: input.Mode }),
5833
+ ...(input.Name != null && { Name: input.Name }),
5901
5834
  });
5902
5835
  let { hostname: resolvedHostname } = await context.endpoint();
5903
5836
  if (context.disableHostPrefix !== true) {
@@ -5947,8 +5880,8 @@ const serializeAws_restJson1UpdateChannelMessageCommand = async (input, context)
5947
5880
  }
5948
5881
  let body;
5949
5882
  body = JSON.stringify({
5950
- ...(input.Content !== undefined && input.Content !== null && { Content: input.Content }),
5951
- ...(input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata }),
5883
+ ...(input.Content != null && { Content: input.Content }),
5884
+ ...(input.Metadata != null && { Metadata: input.Metadata }),
5952
5885
  });
5953
5886
  let { hostname: resolvedHostname } = await context.endpoint();
5954
5887
  if (context.disableHostPrefix !== true) {
@@ -6011,12 +5944,10 @@ const serializeAws_restJson1UpdateGlobalSettingsCommand = async (input, context)
6011
5944
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/settings";
6012
5945
  let body;
6013
5946
  body = JSON.stringify({
6014
- ...(input.BusinessCalling !== undefined &&
6015
- input.BusinessCalling !== null && {
5947
+ ...(input.BusinessCalling != null && {
6016
5948
  BusinessCalling: serializeAws_restJson1BusinessCallingSettings(input.BusinessCalling, context),
6017
5949
  }),
6018
- ...(input.VoiceConnector !== undefined &&
6019
- input.VoiceConnector !== null && {
5950
+ ...(input.VoiceConnector != null && {
6020
5951
  VoiceConnector: serializeAws_restJson1VoiceConnectorSettings(input.VoiceConnector, context),
6021
5952
  }),
6022
5953
  });
@@ -6049,8 +5980,8 @@ const serializeAws_restJson1UpdatePhoneNumberCommand = async (input, context) =>
6049
5980
  }
6050
5981
  let body;
6051
5982
  body = JSON.stringify({
6052
- ...(input.CallingName !== undefined && input.CallingName !== null && { CallingName: input.CallingName }),
6053
- ...(input.ProductType !== undefined && input.ProductType !== null && { ProductType: input.ProductType }),
5983
+ ...(input.CallingName != null && { CallingName: input.CallingName }),
5984
+ ...(input.ProductType != null && { ProductType: input.ProductType }),
6054
5985
  });
6055
5986
  return new protocol_http_1.HttpRequest({
6056
5987
  protocol,
@@ -6071,7 +6002,7 @@ const serializeAws_restJson1UpdatePhoneNumberSettingsCommand = async (input, con
6071
6002
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/settings/phone-number";
6072
6003
  let body;
6073
6004
  body = JSON.stringify({
6074
- ...(input.CallingName !== undefined && input.CallingName !== null && { CallingName: input.CallingName }),
6005
+ ...(input.CallingName != null && { CallingName: input.CallingName }),
6075
6006
  });
6076
6007
  return new protocol_http_1.HttpRequest({
6077
6008
  protocol,
@@ -6113,11 +6044,10 @@ const serializeAws_restJson1UpdateProxySessionCommand = async (input, context) =
6113
6044
  }
6114
6045
  let body;
6115
6046
  body = JSON.stringify({
6116
- ...(input.Capabilities !== undefined &&
6117
- input.Capabilities !== null && {
6047
+ ...(input.Capabilities != null && {
6118
6048
  Capabilities: serializeAws_restJson1CapabilityList(input.Capabilities, context),
6119
6049
  }),
6120
- ...(input.ExpiryMinutes !== undefined && input.ExpiryMinutes !== null && { ExpiryMinutes: input.ExpiryMinutes }),
6050
+ ...(input.ExpiryMinutes != null && { ExpiryMinutes: input.ExpiryMinutes }),
6121
6051
  });
6122
6052
  return new protocol_http_1.HttpRequest({
6123
6053
  protocol,
@@ -6158,7 +6088,7 @@ const serializeAws_restJson1UpdateRoomCommand = async (input, context) => {
6158
6088
  }
6159
6089
  let body;
6160
6090
  body = JSON.stringify({
6161
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
6091
+ ...(input.Name != null && { Name: input.Name }),
6162
6092
  });
6163
6093
  return new protocol_http_1.HttpRequest({
6164
6094
  protocol,
@@ -6210,7 +6140,7 @@ const serializeAws_restJson1UpdateRoomMembershipCommand = async (input, context)
6210
6140
  }
6211
6141
  let body;
6212
6142
  body = JSON.stringify({
6213
- ...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
6143
+ ...(input.Role != null && { Role: input.Role }),
6214
6144
  });
6215
6145
  return new protocol_http_1.HttpRequest({
6216
6146
  protocol,
@@ -6242,11 +6172,10 @@ const serializeAws_restJson1UpdateSipMediaApplicationCommand = async (input, con
6242
6172
  }
6243
6173
  let body;
6244
6174
  body = JSON.stringify({
6245
- ...(input.Endpoints !== undefined &&
6246
- input.Endpoints !== null && {
6175
+ ...(input.Endpoints != null && {
6247
6176
  Endpoints: serializeAws_restJson1SipMediaApplicationEndpointList(input.Endpoints, context),
6248
6177
  }),
6249
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
6178
+ ...(input.Name != null && { Name: input.Name }),
6250
6179
  });
6251
6180
  return new protocol_http_1.HttpRequest({
6252
6181
  protocol,
@@ -6288,8 +6217,7 @@ const serializeAws_restJson1UpdateSipMediaApplicationCallCommand = async (input,
6288
6217
  }
6289
6218
  let body;
6290
6219
  body = JSON.stringify({
6291
- ...(input.Arguments !== undefined &&
6292
- input.Arguments !== null && {
6220
+ ...(input.Arguments != null && {
6293
6221
  Arguments: serializeAws_restJson1SMAUpdateCallArgumentsMap(input.Arguments, context),
6294
6222
  }),
6295
6223
  });
@@ -6322,10 +6250,9 @@ const serializeAws_restJson1UpdateSipRuleCommand = async (input, context) => {
6322
6250
  }
6323
6251
  let body;
6324
6252
  body = JSON.stringify({
6325
- ...(input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }),
6326
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
6327
- ...(input.TargetApplications !== undefined &&
6328
- input.TargetApplications !== null && {
6253
+ ...(input.Disabled != null && { Disabled: input.Disabled }),
6254
+ ...(input.Name != null && { Name: input.Name }),
6255
+ ...(input.TargetApplications != null && {
6329
6256
  TargetApplications: serializeAws_restJson1SipRuleTargetApplicationList(input.TargetApplications, context),
6330
6257
  }),
6331
6258
  });
@@ -6368,12 +6295,11 @@ const serializeAws_restJson1UpdateUserCommand = async (input, context) => {
6368
6295
  }
6369
6296
  let body;
6370
6297
  body = JSON.stringify({
6371
- ...(input.AlexaForBusinessMetadata !== undefined &&
6372
- input.AlexaForBusinessMetadata !== null && {
6298
+ ...(input.AlexaForBusinessMetadata != null && {
6373
6299
  AlexaForBusinessMetadata: serializeAws_restJson1AlexaForBusinessMetadata(input.AlexaForBusinessMetadata, context),
6374
6300
  }),
6375
- ...(input.LicenseType !== undefined && input.LicenseType !== null && { LicenseType: input.LicenseType }),
6376
- ...(input.UserType !== undefined && input.UserType !== null && { UserType: input.UserType }),
6301
+ ...(input.LicenseType != null && { LicenseType: input.LicenseType }),
6302
+ ...(input.UserType != null && { UserType: input.UserType }),
6377
6303
  });
6378
6304
  return new protocol_http_1.HttpRequest({
6379
6305
  protocol,
@@ -6415,8 +6341,9 @@ const serializeAws_restJson1UpdateUserSettingsCommand = async (input, context) =
6415
6341
  }
6416
6342
  let body;
6417
6343
  body = JSON.stringify({
6418
- ...(input.UserSettings !== undefined &&
6419
- input.UserSettings !== null && { UserSettings: serializeAws_restJson1UserSettings(input.UserSettings, context) }),
6344
+ ...(input.UserSettings != null && {
6345
+ UserSettings: serializeAws_restJson1UserSettings(input.UserSettings, context),
6346
+ }),
6420
6347
  });
6421
6348
  return new protocol_http_1.HttpRequest({
6422
6349
  protocol,
@@ -6447,9 +6374,8 @@ const serializeAws_restJson1UpdateVoiceConnectorCommand = async (input, context)
6447
6374
  }
6448
6375
  let body;
6449
6376
  body = JSON.stringify({
6450
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
6451
- ...(input.RequireEncryption !== undefined &&
6452
- input.RequireEncryption !== null && { RequireEncryption: input.RequireEncryption }),
6377
+ ...(input.Name != null && { Name: input.Name }),
6378
+ ...(input.RequireEncryption != null && { RequireEncryption: input.RequireEncryption }),
6453
6379
  });
6454
6380
  return new protocol_http_1.HttpRequest({
6455
6381
  protocol,
@@ -6481,9 +6407,8 @@ const serializeAws_restJson1UpdateVoiceConnectorGroupCommand = async (input, con
6481
6407
  }
6482
6408
  let body;
6483
6409
  body = JSON.stringify({
6484
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
6485
- ...(input.VoiceConnectorItems !== undefined &&
6486
- input.VoiceConnectorItems !== null && {
6410
+ ...(input.Name != null && { Name: input.Name }),
6411
+ ...(input.VoiceConnectorItems != null && {
6487
6412
  VoiceConnectorItems: serializeAws_restJson1VoiceConnectorItemList(input.VoiceConnectorItems, context),
6488
6413
  }),
6489
6414
  });
@@ -17332,32 +17257,27 @@ const deserializeAws_restJson1UnprocessableEntityExceptionResponse = async (pars
17332
17257
  };
17333
17258
  const serializeAws_restJson1AccountSettings = (input, context) => {
17334
17259
  return {
17335
- ...(input.DisableRemoteControl !== undefined &&
17336
- input.DisableRemoteControl !== null && { DisableRemoteControl: input.DisableRemoteControl }),
17337
- ...(input.EnableDialOut !== undefined && input.EnableDialOut !== null && { EnableDialOut: input.EnableDialOut }),
17260
+ ...(input.DisableRemoteControl != null && { DisableRemoteControl: input.DisableRemoteControl }),
17261
+ ...(input.EnableDialOut != null && { EnableDialOut: input.EnableDialOut }),
17338
17262
  };
17339
17263
  };
17340
17264
  const serializeAws_restJson1AlexaForBusinessMetadata = (input, context) => {
17341
17265
  return {
17342
- ...(input.AlexaForBusinessRoomArn !== undefined &&
17343
- input.AlexaForBusinessRoomArn !== null && { AlexaForBusinessRoomArn: input.AlexaForBusinessRoomArn }),
17344
- ...(input.IsAlexaForBusinessEnabled !== undefined &&
17345
- input.IsAlexaForBusinessEnabled !== null && { IsAlexaForBusinessEnabled: input.IsAlexaForBusinessEnabled }),
17266
+ ...(input.AlexaForBusinessRoomArn != null && { AlexaForBusinessRoomArn: input.AlexaForBusinessRoomArn }),
17267
+ ...(input.IsAlexaForBusinessEnabled != null && { IsAlexaForBusinessEnabled: input.IsAlexaForBusinessEnabled }),
17346
17268
  };
17347
17269
  };
17348
17270
  const serializeAws_restJson1AppInstanceRetentionSettings = (input, context) => {
17349
17271
  return {
17350
- ...(input.ChannelRetentionSettings !== undefined &&
17351
- input.ChannelRetentionSettings !== null && {
17272
+ ...(input.ChannelRetentionSettings != null && {
17352
17273
  ChannelRetentionSettings: serializeAws_restJson1ChannelRetentionSettings(input.ChannelRetentionSettings, context),
17353
17274
  }),
17354
17275
  };
17355
17276
  };
17356
17277
  const serializeAws_restJson1AppInstanceStreamingConfiguration = (input, context) => {
17357
17278
  return {
17358
- ...(input.AppInstanceDataType !== undefined &&
17359
- input.AppInstanceDataType !== null && { AppInstanceDataType: input.AppInstanceDataType }),
17360
- ...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
17279
+ ...(input.AppInstanceDataType != null && { AppInstanceDataType: input.AppInstanceDataType }),
17280
+ ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
17361
17281
  };
17362
17282
  };
17363
17283
  const serializeAws_restJson1AppInstanceStreamingConfigurationList = (input, context) => {
@@ -17372,14 +17292,11 @@ const serializeAws_restJson1AppInstanceStreamingConfigurationList = (input, cont
17372
17292
  };
17373
17293
  const serializeAws_restJson1ArtifactsConfiguration = (input, context) => {
17374
17294
  return {
17375
- ...(input.Audio !== undefined &&
17376
- input.Audio !== null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) }),
17377
- ...(input.Content !== undefined &&
17378
- input.Content !== null && {
17295
+ ...(input.Audio != null && { Audio: serializeAws_restJson1AudioArtifactsConfiguration(input.Audio, context) }),
17296
+ ...(input.Content != null && {
17379
17297
  Content: serializeAws_restJson1ContentArtifactsConfiguration(input.Content, context),
17380
17298
  }),
17381
- ...(input.Video !== undefined &&
17382
- input.Video !== null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }),
17299
+ ...(input.Video != null && { Video: serializeAws_restJson1VideoArtifactsConfiguration(input.Video, context) }),
17383
17300
  };
17384
17301
  };
17385
17302
  const serializeAws_restJson1AttendeeIdList = (input, context) => {
@@ -17414,12 +17331,12 @@ const serializeAws_restJson1AttendeeTagList = (input, context) => {
17414
17331
  };
17415
17332
  const serializeAws_restJson1AudioArtifactsConfiguration = (input, context) => {
17416
17333
  return {
17417
- ...(input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }),
17334
+ ...(input.MuxType != null && { MuxType: input.MuxType }),
17418
17335
  };
17419
17336
  };
17420
17337
  const serializeAws_restJson1BusinessCallingSettings = (input, context) => {
17421
17338
  return {
17422
- ...(input.CdrBucket !== undefined && input.CdrBucket !== null && { CdrBucket: input.CdrBucket }),
17339
+ ...(input.CdrBucket != null && { CdrBucket: input.CdrBucket }),
17423
17340
  };
17424
17341
  };
17425
17342
  const serializeAws_restJson1CallingRegionList = (input, context) => {
@@ -17444,30 +17361,28 @@ const serializeAws_restJson1CapabilityList = (input, context) => {
17444
17361
  };
17445
17362
  const serializeAws_restJson1ChannelRetentionSettings = (input, context) => {
17446
17363
  return {
17447
- ...(input.RetentionDays !== undefined && input.RetentionDays !== null && { RetentionDays: input.RetentionDays }),
17364
+ ...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
17448
17365
  };
17449
17366
  };
17450
17367
  const serializeAws_restJson1ChimeSdkMeetingConfiguration = (input, context) => {
17451
17368
  return {
17452
- ...(input.ArtifactsConfiguration !== undefined &&
17453
- input.ArtifactsConfiguration !== null && {
17369
+ ...(input.ArtifactsConfiguration != null && {
17454
17370
  ArtifactsConfiguration: serializeAws_restJson1ArtifactsConfiguration(input.ArtifactsConfiguration, context),
17455
17371
  }),
17456
- ...(input.SourceConfiguration !== undefined &&
17457
- input.SourceConfiguration !== null && {
17372
+ ...(input.SourceConfiguration != null && {
17458
17373
  SourceConfiguration: serializeAws_restJson1SourceConfiguration(input.SourceConfiguration, context),
17459
17374
  }),
17460
17375
  };
17461
17376
  };
17462
17377
  const serializeAws_restJson1ContentArtifactsConfiguration = (input, context) => {
17463
17378
  return {
17464
- ...(input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }),
17465
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
17379
+ ...(input.MuxType != null && { MuxType: input.MuxType }),
17380
+ ...(input.State != null && { State: input.State }),
17466
17381
  };
17467
17382
  };
17468
17383
  const serializeAws_restJson1ConversationRetentionSettings = (input, context) => {
17469
17384
  return {
17470
- ...(input.RetentionDays !== undefined && input.RetentionDays !== null && { RetentionDays: input.RetentionDays }),
17385
+ ...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
17471
17386
  };
17472
17387
  };
17473
17388
  const serializeAws_restJson1CountryList = (input, context) => {
@@ -17482,10 +17397,8 @@ const serializeAws_restJson1CountryList = (input, context) => {
17482
17397
  };
17483
17398
  const serializeAws_restJson1CreateAttendeeRequestItem = (input, context) => {
17484
17399
  return {
17485
- ...(input.ExternalUserId !== undefined &&
17486
- input.ExternalUserId !== null && { ExternalUserId: input.ExternalUserId }),
17487
- ...(input.Tags !== undefined &&
17488
- input.Tags !== null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) }),
17400
+ ...(input.ExternalUserId != null && { ExternalUserId: input.ExternalUserId }),
17401
+ ...(input.Tags != null && { Tags: serializeAws_restJson1AttendeeTagList(input.Tags, context) }),
17489
17402
  };
17490
17403
  };
17491
17404
  const serializeAws_restJson1CreateAttendeeRequestItemList = (input, context) => {
@@ -17510,8 +17423,8 @@ const serializeAws_restJson1CreateMeetingWithAttendeesRequestItemList = (input,
17510
17423
  };
17511
17424
  const serializeAws_restJson1Credential = (input, context) => {
17512
17425
  return {
17513
- ...(input.Password !== undefined && input.Password !== null && { Password: input.Password }),
17514
- ...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
17426
+ ...(input.Password != null && { Password: input.Password }),
17427
+ ...(input.Username != null && { Username: input.Username }),
17515
17428
  };
17516
17429
  };
17517
17430
  const serializeAws_restJson1CredentialList = (input, context) => {
@@ -17526,12 +17439,9 @@ const serializeAws_restJson1CredentialList = (input, context) => {
17526
17439
  };
17527
17440
  const serializeAws_restJson1DNISEmergencyCallingConfiguration = (input, context) => {
17528
17441
  return {
17529
- ...(input.CallingCountry !== undefined &&
17530
- input.CallingCountry !== null && { CallingCountry: input.CallingCountry }),
17531
- ...(input.EmergencyPhoneNumber !== undefined &&
17532
- input.EmergencyPhoneNumber !== null && { EmergencyPhoneNumber: input.EmergencyPhoneNumber }),
17533
- ...(input.TestPhoneNumber !== undefined &&
17534
- input.TestPhoneNumber !== null && { TestPhoneNumber: input.TestPhoneNumber }),
17442
+ ...(input.CallingCountry != null && { CallingCountry: input.CallingCountry }),
17443
+ ...(input.EmergencyPhoneNumber != null && { EmergencyPhoneNumber: input.EmergencyPhoneNumber }),
17444
+ ...(input.TestPhoneNumber != null && { TestPhoneNumber: input.TestPhoneNumber }),
17535
17445
  };
17536
17446
  };
17537
17447
  const serializeAws_restJson1DNISEmergencyCallingConfigurationList = (input, context) => {
@@ -17556,48 +17466,36 @@ const serializeAws_restJson1E164PhoneNumberList = (input, context) => {
17556
17466
  };
17557
17467
  const serializeAws_restJson1EmergencyCallingConfiguration = (input, context) => {
17558
17468
  return {
17559
- ...(input.DNIS !== undefined &&
17560
- input.DNIS !== null && {
17469
+ ...(input.DNIS != null && {
17561
17470
  DNIS: serializeAws_restJson1DNISEmergencyCallingConfigurationList(input.DNIS, context),
17562
17471
  }),
17563
17472
  };
17564
17473
  };
17565
17474
  const serializeAws_restJson1EngineTranscribeMedicalSettings = (input, context) => {
17566
17475
  return {
17567
- ...(input.ContentIdentificationType !== undefined &&
17568
- input.ContentIdentificationType !== null && { ContentIdentificationType: input.ContentIdentificationType }),
17569
- ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
17570
- ...(input.Region !== undefined && input.Region !== null && { Region: input.Region }),
17571
- ...(input.Specialty !== undefined && input.Specialty !== null && { Specialty: input.Specialty }),
17572
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
17573
- ...(input.VocabularyName !== undefined &&
17574
- input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
17476
+ ...(input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType }),
17477
+ ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
17478
+ ...(input.Region != null && { Region: input.Region }),
17479
+ ...(input.Specialty != null && { Specialty: input.Specialty }),
17480
+ ...(input.Type != null && { Type: input.Type }),
17481
+ ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
17575
17482
  };
17576
17483
  };
17577
17484
  const serializeAws_restJson1EngineTranscribeSettings = (input, context) => {
17578
17485
  return {
17579
- ...(input.ContentIdentificationType !== undefined &&
17580
- input.ContentIdentificationType !== null && { ContentIdentificationType: input.ContentIdentificationType }),
17581
- ...(input.ContentRedactionType !== undefined &&
17582
- input.ContentRedactionType !== null && { ContentRedactionType: input.ContentRedactionType }),
17583
- ...(input.EnablePartialResultsStabilization !== undefined &&
17584
- input.EnablePartialResultsStabilization !== null && {
17486
+ ...(input.ContentIdentificationType != null && { ContentIdentificationType: input.ContentIdentificationType }),
17487
+ ...(input.ContentRedactionType != null && { ContentRedactionType: input.ContentRedactionType }),
17488
+ ...(input.EnablePartialResultsStabilization != null && {
17585
17489
  EnablePartialResultsStabilization: input.EnablePartialResultsStabilization,
17586
17490
  }),
17587
- ...(input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode }),
17588
- ...(input.LanguageModelName !== undefined &&
17589
- input.LanguageModelName !== null && { LanguageModelName: input.LanguageModelName }),
17590
- ...(input.PartialResultsStability !== undefined &&
17591
- input.PartialResultsStability !== null && { PartialResultsStability: input.PartialResultsStability }),
17592
- ...(input.PiiEntityTypes !== undefined &&
17593
- input.PiiEntityTypes !== null && { PiiEntityTypes: input.PiiEntityTypes }),
17594
- ...(input.Region !== undefined && input.Region !== null && { Region: input.Region }),
17595
- ...(input.VocabularyFilterMethod !== undefined &&
17596
- input.VocabularyFilterMethod !== null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
17597
- ...(input.VocabularyFilterName !== undefined &&
17598
- input.VocabularyFilterName !== null && { VocabularyFilterName: input.VocabularyFilterName }),
17599
- ...(input.VocabularyName !== undefined &&
17600
- input.VocabularyName !== null && { VocabularyName: input.VocabularyName }),
17491
+ ...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
17492
+ ...(input.LanguageModelName != null && { LanguageModelName: input.LanguageModelName }),
17493
+ ...(input.PartialResultsStability != null && { PartialResultsStability: input.PartialResultsStability }),
17494
+ ...(input.PiiEntityTypes != null && { PiiEntityTypes: input.PiiEntityTypes }),
17495
+ ...(input.Region != null && { Region: input.Region }),
17496
+ ...(input.VocabularyFilterMethod != null && { VocabularyFilterMethod: input.VocabularyFilterMethod }),
17497
+ ...(input.VocabularyFilterName != null && { VocabularyFilterName: input.VocabularyFilterName }),
17498
+ ...(input.VocabularyName != null && { VocabularyName: input.VocabularyName }),
17601
17499
  };
17602
17500
  };
17603
17501
  const serializeAws_restJson1ExternalUserIdList = (input, context) => {
@@ -17612,21 +17510,20 @@ const serializeAws_restJson1ExternalUserIdList = (input, context) => {
17612
17510
  };
17613
17511
  const serializeAws_restJson1GeoMatchParams = (input, context) => {
17614
17512
  return {
17615
- ...(input.AreaCode !== undefined && input.AreaCode !== null && { AreaCode: input.AreaCode }),
17616
- ...(input.Country !== undefined && input.Country !== null && { Country: input.Country }),
17513
+ ...(input.AreaCode != null && { AreaCode: input.AreaCode }),
17514
+ ...(input.Country != null && { Country: input.Country }),
17617
17515
  };
17618
17516
  };
17619
17517
  const serializeAws_restJson1LoggingConfiguration = (input, context) => {
17620
17518
  return {
17621
- ...(input.EnableMediaMetricLogs !== undefined &&
17622
- input.EnableMediaMetricLogs !== null && { EnableMediaMetricLogs: input.EnableMediaMetricLogs }),
17623
- ...(input.EnableSIPLogs !== undefined && input.EnableSIPLogs !== null && { EnableSIPLogs: input.EnableSIPLogs }),
17519
+ ...(input.EnableMediaMetricLogs != null && { EnableMediaMetricLogs: input.EnableMediaMetricLogs }),
17520
+ ...(input.EnableSIPLogs != null && { EnableSIPLogs: input.EnableSIPLogs }),
17624
17521
  };
17625
17522
  };
17626
17523
  const serializeAws_restJson1MeetingNotificationConfiguration = (input, context) => {
17627
17524
  return {
17628
- ...(input.SnsTopicArn !== undefined && input.SnsTopicArn !== null && { SnsTopicArn: input.SnsTopicArn }),
17629
- ...(input.SqsQueueArn !== undefined && input.SqsQueueArn !== null && { SqsQueueArn: input.SqsQueueArn }),
17525
+ ...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
17526
+ ...(input.SqsQueueArn != null && { SqsQueueArn: input.SqsQueueArn }),
17630
17527
  };
17631
17528
  };
17632
17529
  const serializeAws_restJson1MeetingTagKeyList = (input, context) => {
@@ -17661,8 +17558,8 @@ const serializeAws_restJson1MemberArns = (input, context) => {
17661
17558
  };
17662
17559
  const serializeAws_restJson1MembershipItem = (input, context) => {
17663
17560
  return {
17664
- ...(input.MemberId !== undefined && input.MemberId !== null && { MemberId: input.MemberId }),
17665
- ...(input.Role !== undefined && input.Role !== null && { Role: input.Role }),
17561
+ ...(input.MemberId != null && { MemberId: input.MemberId }),
17562
+ ...(input.Role != null && { Role: input.Role }),
17666
17563
  };
17667
17564
  };
17668
17565
  const serializeAws_restJson1MembershipItemList = (input, context) => {
@@ -17687,18 +17584,17 @@ const serializeAws_restJson1NonEmptyStringList = (input, context) => {
17687
17584
  };
17688
17585
  const serializeAws_restJson1Origination = (input, context) => {
17689
17586
  return {
17690
- ...(input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }),
17691
- ...(input.Routes !== undefined &&
17692
- input.Routes !== null && { Routes: serializeAws_restJson1OriginationRouteList(input.Routes, context) }),
17587
+ ...(input.Disabled != null && { Disabled: input.Disabled }),
17588
+ ...(input.Routes != null && { Routes: serializeAws_restJson1OriginationRouteList(input.Routes, context) }),
17693
17589
  };
17694
17590
  };
17695
17591
  const serializeAws_restJson1OriginationRoute = (input, context) => {
17696
17592
  return {
17697
- ...(input.Host !== undefined && input.Host !== null && { Host: input.Host }),
17698
- ...(input.Port !== undefined && input.Port !== null && { Port: input.Port }),
17699
- ...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
17700
- ...(input.Protocol !== undefined && input.Protocol !== null && { Protocol: input.Protocol }),
17701
- ...(input.Weight !== undefined && input.Weight !== null && { Weight: input.Weight }),
17593
+ ...(input.Host != null && { Host: input.Host }),
17594
+ ...(input.Port != null && { Port: input.Port }),
17595
+ ...(input.Priority != null && { Priority: input.Priority }),
17596
+ ...(input.Protocol != null && { Protocol: input.Protocol }),
17597
+ ...(input.Weight != null && { Weight: input.Weight }),
17702
17598
  };
17703
17599
  };
17704
17600
  const serializeAws_restJson1OriginationRouteList = (input, context) => {
@@ -17723,27 +17619,23 @@ const serializeAws_restJson1ParticipantPhoneNumberList = (input, context) => {
17723
17619
  };
17724
17620
  const serializeAws_restJson1RetentionSettings = (input, context) => {
17725
17621
  return {
17726
- ...(input.ConversationRetentionSettings !== undefined &&
17727
- input.ConversationRetentionSettings !== null && {
17622
+ ...(input.ConversationRetentionSettings != null && {
17728
17623
  ConversationRetentionSettings: serializeAws_restJson1ConversationRetentionSettings(input.ConversationRetentionSettings, context),
17729
17624
  }),
17730
- ...(input.RoomRetentionSettings !== undefined &&
17731
- input.RoomRetentionSettings !== null && {
17625
+ ...(input.RoomRetentionSettings != null && {
17732
17626
  RoomRetentionSettings: serializeAws_restJson1RoomRetentionSettings(input.RoomRetentionSettings, context),
17733
17627
  }),
17734
17628
  };
17735
17629
  };
17736
17630
  const serializeAws_restJson1RoomRetentionSettings = (input, context) => {
17737
17631
  return {
17738
- ...(input.RetentionDays !== undefined && input.RetentionDays !== null && { RetentionDays: input.RetentionDays }),
17632
+ ...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
17739
17633
  };
17740
17634
  };
17741
17635
  const serializeAws_restJson1SelectedVideoStreams = (input, context) => {
17742
17636
  return {
17743
- ...(input.AttendeeIds !== undefined &&
17744
- input.AttendeeIds !== null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) }),
17745
- ...(input.ExternalUserIds !== undefined &&
17746
- input.ExternalUserIds !== null && {
17637
+ ...(input.AttendeeIds != null && { AttendeeIds: serializeAws_restJson1AttendeeIdList(input.AttendeeIds, context) }),
17638
+ ...(input.ExternalUserIds != null && {
17747
17639
  ExternalUserIds: serializeAws_restJson1ExternalUserIdList(input.ExternalUserIds, context),
17748
17640
  }),
17749
17641
  };
@@ -17760,7 +17652,7 @@ const serializeAws_restJson1SensitiveStringList = (input, context) => {
17760
17652
  };
17761
17653
  const serializeAws_restJson1SigninDelegateGroup = (input, context) => {
17762
17654
  return {
17763
- ...(input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName }),
17655
+ ...(input.GroupName != null && { GroupName: input.GroupName }),
17764
17656
  };
17765
17657
  };
17766
17658
  const serializeAws_restJson1SigninDelegateGroupList = (input, context) => {
@@ -17786,7 +17678,7 @@ const serializeAws_restJson1SipHeadersMap = (input, context) => {
17786
17678
  };
17787
17679
  const serializeAws_restJson1SipMediaApplicationEndpoint = (input, context) => {
17788
17680
  return {
17789
- ...(input.LambdaArn !== undefined && input.LambdaArn !== null && { LambdaArn: input.LambdaArn }),
17681
+ ...(input.LambdaArn != null && { LambdaArn: input.LambdaArn }),
17790
17682
  };
17791
17683
  };
17792
17684
  const serializeAws_restJson1SipMediaApplicationEndpointList = (input, context) => {
@@ -17801,18 +17693,16 @@ const serializeAws_restJson1SipMediaApplicationEndpointList = (input, context) =
17801
17693
  };
17802
17694
  const serializeAws_restJson1SipMediaApplicationLoggingConfiguration = (input, context) => {
17803
17695
  return {
17804
- ...(input.EnableSipMediaApplicationMessageLogs !== undefined &&
17805
- input.EnableSipMediaApplicationMessageLogs !== null && {
17696
+ ...(input.EnableSipMediaApplicationMessageLogs != null && {
17806
17697
  EnableSipMediaApplicationMessageLogs: input.EnableSipMediaApplicationMessageLogs,
17807
17698
  }),
17808
17699
  };
17809
17700
  };
17810
17701
  const serializeAws_restJson1SipRuleTargetApplication = (input, context) => {
17811
17702
  return {
17812
- ...(input.AwsRegion !== undefined && input.AwsRegion !== null && { AwsRegion: input.AwsRegion }),
17813
- ...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
17814
- ...(input.SipMediaApplicationId !== undefined &&
17815
- input.SipMediaApplicationId !== null && { SipMediaApplicationId: input.SipMediaApplicationId }),
17703
+ ...(input.AwsRegion != null && { AwsRegion: input.AwsRegion }),
17704
+ ...(input.Priority != null && { Priority: input.Priority }),
17705
+ ...(input.SipMediaApplicationId != null && { SipMediaApplicationId: input.SipMediaApplicationId }),
17816
17706
  };
17817
17707
  };
17818
17708
  const serializeAws_restJson1SipRuleTargetApplicationList = (input, context) => {
@@ -17838,27 +17728,23 @@ const serializeAws_restJson1SMAUpdateCallArgumentsMap = (input, context) => {
17838
17728
  };
17839
17729
  const serializeAws_restJson1SourceConfiguration = (input, context) => {
17840
17730
  return {
17841
- ...(input.SelectedVideoStreams !== undefined &&
17842
- input.SelectedVideoStreams !== null && {
17731
+ ...(input.SelectedVideoStreams != null && {
17843
17732
  SelectedVideoStreams: serializeAws_restJson1SelectedVideoStreams(input.SelectedVideoStreams, context),
17844
17733
  }),
17845
17734
  };
17846
17735
  };
17847
17736
  const serializeAws_restJson1StreamingConfiguration = (input, context) => {
17848
17737
  return {
17849
- ...(input.DataRetentionInHours !== undefined &&
17850
- input.DataRetentionInHours !== null && { DataRetentionInHours: input.DataRetentionInHours }),
17851
- ...(input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }),
17852
- ...(input.StreamingNotificationTargets !== undefined &&
17853
- input.StreamingNotificationTargets !== null && {
17738
+ ...(input.DataRetentionInHours != null && { DataRetentionInHours: input.DataRetentionInHours }),
17739
+ ...(input.Disabled != null && { Disabled: input.Disabled }),
17740
+ ...(input.StreamingNotificationTargets != null && {
17854
17741
  StreamingNotificationTargets: serializeAws_restJson1StreamingNotificationTargetList(input.StreamingNotificationTargets, context),
17855
17742
  }),
17856
17743
  };
17857
17744
  };
17858
17745
  const serializeAws_restJson1StreamingNotificationTarget = (input, context) => {
17859
17746
  return {
17860
- ...(input.NotificationTarget !== undefined &&
17861
- input.NotificationTarget !== null && { NotificationTarget: input.NotificationTarget }),
17747
+ ...(input.NotificationTarget != null && { NotificationTarget: input.NotificationTarget }),
17862
17748
  };
17863
17749
  };
17864
17750
  const serializeAws_restJson1StreamingNotificationTargetList = (input, context) => {
@@ -17883,8 +17769,8 @@ const serializeAws_restJson1StringList = (input, context) => {
17883
17769
  };
17884
17770
  const serializeAws_restJson1Tag = (input, context) => {
17885
17771
  return {
17886
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
17887
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
17772
+ ...(input.Key != null && { Key: input.Key }),
17773
+ ...(input.Value != null && { Value: input.Value }),
17888
17774
  };
17889
17775
  };
17890
17776
  const serializeAws_restJson1TagKeyList = (input, context) => {
@@ -17909,46 +17795,39 @@ const serializeAws_restJson1TagList = (input, context) => {
17909
17795
  };
17910
17796
  const serializeAws_restJson1TelephonySettings = (input, context) => {
17911
17797
  return {
17912
- ...(input.InboundCalling !== undefined &&
17913
- input.InboundCalling !== null && { InboundCalling: input.InboundCalling }),
17914
- ...(input.OutboundCalling !== undefined &&
17915
- input.OutboundCalling !== null && { OutboundCalling: input.OutboundCalling }),
17916
- ...(input.SMS !== undefined && input.SMS !== null && { SMS: input.SMS }),
17798
+ ...(input.InboundCalling != null && { InboundCalling: input.InboundCalling }),
17799
+ ...(input.OutboundCalling != null && { OutboundCalling: input.OutboundCalling }),
17800
+ ...(input.SMS != null && { SMS: input.SMS }),
17917
17801
  };
17918
17802
  };
17919
17803
  const serializeAws_restJson1Termination = (input, context) => {
17920
17804
  return {
17921
- ...(input.CallingRegions !== undefined &&
17922
- input.CallingRegions !== null && {
17805
+ ...(input.CallingRegions != null && {
17923
17806
  CallingRegions: serializeAws_restJson1CallingRegionList(input.CallingRegions, context),
17924
17807
  }),
17925
- ...(input.CidrAllowedList !== undefined &&
17926
- input.CidrAllowedList !== null && {
17808
+ ...(input.CidrAllowedList != null && {
17927
17809
  CidrAllowedList: serializeAws_restJson1StringList(input.CidrAllowedList, context),
17928
17810
  }),
17929
- ...(input.CpsLimit !== undefined && input.CpsLimit !== null && { CpsLimit: input.CpsLimit }),
17930
- ...(input.DefaultPhoneNumber !== undefined &&
17931
- input.DefaultPhoneNumber !== null && { DefaultPhoneNumber: input.DefaultPhoneNumber }),
17932
- ...(input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }),
17811
+ ...(input.CpsLimit != null && { CpsLimit: input.CpsLimit }),
17812
+ ...(input.DefaultPhoneNumber != null && { DefaultPhoneNumber: input.DefaultPhoneNumber }),
17813
+ ...(input.Disabled != null && { Disabled: input.Disabled }),
17933
17814
  };
17934
17815
  };
17935
17816
  const serializeAws_restJson1TranscriptionConfiguration = (input, context) => {
17936
17817
  return {
17937
- ...(input.EngineTranscribeMedicalSettings !== undefined &&
17938
- input.EngineTranscribeMedicalSettings !== null && {
17818
+ ...(input.EngineTranscribeMedicalSettings != null && {
17939
17819
  EngineTranscribeMedicalSettings: serializeAws_restJson1EngineTranscribeMedicalSettings(input.EngineTranscribeMedicalSettings, context),
17940
17820
  }),
17941
- ...(input.EngineTranscribeSettings !== undefined &&
17942
- input.EngineTranscribeSettings !== null && {
17821
+ ...(input.EngineTranscribeSettings != null && {
17943
17822
  EngineTranscribeSettings: serializeAws_restJson1EngineTranscribeSettings(input.EngineTranscribeSettings, context),
17944
17823
  }),
17945
17824
  };
17946
17825
  };
17947
17826
  const serializeAws_restJson1UpdatePhoneNumberRequestItem = (input, context) => {
17948
17827
  return {
17949
- ...(input.CallingName !== undefined && input.CallingName !== null && { CallingName: input.CallingName }),
17950
- ...(input.PhoneNumberId !== undefined && input.PhoneNumberId !== null && { PhoneNumberId: input.PhoneNumberId }),
17951
- ...(input.ProductType !== undefined && input.ProductType !== null && { ProductType: input.ProductType }),
17828
+ ...(input.CallingName != null && { CallingName: input.CallingName }),
17829
+ ...(input.PhoneNumberId != null && { PhoneNumberId: input.PhoneNumberId }),
17830
+ ...(input.ProductType != null && { ProductType: input.ProductType }),
17952
17831
  };
17953
17832
  };
17954
17833
  const serializeAws_restJson1UpdatePhoneNumberRequestItemList = (input, context) => {
@@ -17963,13 +17842,12 @@ const serializeAws_restJson1UpdatePhoneNumberRequestItemList = (input, context)
17963
17842
  };
17964
17843
  const serializeAws_restJson1UpdateUserRequestItem = (input, context) => {
17965
17844
  return {
17966
- ...(input.AlexaForBusinessMetadata !== undefined &&
17967
- input.AlexaForBusinessMetadata !== null && {
17845
+ ...(input.AlexaForBusinessMetadata != null && {
17968
17846
  AlexaForBusinessMetadata: serializeAws_restJson1AlexaForBusinessMetadata(input.AlexaForBusinessMetadata, context),
17969
17847
  }),
17970
- ...(input.LicenseType !== undefined && input.LicenseType !== null && { LicenseType: input.LicenseType }),
17971
- ...(input.UserId !== undefined && input.UserId !== null && { UserId: input.UserId }),
17972
- ...(input.UserType !== undefined && input.UserType !== null && { UserType: input.UserType }),
17848
+ ...(input.LicenseType != null && { LicenseType: input.LicenseType }),
17849
+ ...(input.UserId != null && { UserId: input.UserId }),
17850
+ ...(input.UserType != null && { UserType: input.UserType }),
17973
17851
  };
17974
17852
  };
17975
17853
  const serializeAws_restJson1UpdateUserRequestItemList = (input, context) => {
@@ -18004,21 +17882,19 @@ const serializeAws_restJson1UserIdList = (input, context) => {
18004
17882
  };
18005
17883
  const serializeAws_restJson1UserSettings = (input, context) => {
18006
17884
  return {
18007
- ...(input.Telephony !== undefined &&
18008
- input.Telephony !== null && { Telephony: serializeAws_restJson1TelephonySettings(input.Telephony, context) }),
17885
+ ...(input.Telephony != null && { Telephony: serializeAws_restJson1TelephonySettings(input.Telephony, context) }),
18009
17886
  };
18010
17887
  };
18011
17888
  const serializeAws_restJson1VideoArtifactsConfiguration = (input, context) => {
18012
17889
  return {
18013
- ...(input.MuxType !== undefined && input.MuxType !== null && { MuxType: input.MuxType }),
18014
- ...(input.State !== undefined && input.State !== null && { State: input.State }),
17890
+ ...(input.MuxType != null && { MuxType: input.MuxType }),
17891
+ ...(input.State != null && { State: input.State }),
18015
17892
  };
18016
17893
  };
18017
17894
  const serializeAws_restJson1VoiceConnectorItem = (input, context) => {
18018
17895
  return {
18019
- ...(input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }),
18020
- ...(input.VoiceConnectorId !== undefined &&
18021
- input.VoiceConnectorId !== null && { VoiceConnectorId: input.VoiceConnectorId }),
17896
+ ...(input.Priority != null && { Priority: input.Priority }),
17897
+ ...(input.VoiceConnectorId != null && { VoiceConnectorId: input.VoiceConnectorId }),
18022
17898
  };
18023
17899
  };
18024
17900
  const serializeAws_restJson1VoiceConnectorItemList = (input, context) => {
@@ -18033,7 +17909,7 @@ const serializeAws_restJson1VoiceConnectorItemList = (input, context) => {
18033
17909
  };
18034
17910
  const serializeAws_restJson1VoiceConnectorSettings = (input, context) => {
18035
17911
  return {
18036
- ...(input.CdrBucket !== undefined && input.CdrBucket !== null && { CdrBucket: input.CdrBucket }),
17912
+ ...(input.CdrBucket != null && { CdrBucket: input.CdrBucket }),
18037
17913
  };
18038
17914
  };
18039
17915
  const deserializeAws_restJson1Account = (output, context) => {
@@ -18042,15 +17918,13 @@ const deserializeAws_restJson1Account = (output, context) => {
18042
17918
  AccountStatus: (0, smithy_client_1.expectString)(output.AccountStatus),
18043
17919
  AccountType: (0, smithy_client_1.expectString)(output.AccountType),
18044
17920
  AwsAccountId: (0, smithy_client_1.expectString)(output.AwsAccountId),
18045
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18046
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
18047
- : undefined,
17921
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
18048
17922
  DefaultLicense: (0, smithy_client_1.expectString)(output.DefaultLicense),
18049
17923
  Name: (0, smithy_client_1.expectString)(output.Name),
18050
- SigninDelegateGroups: output.SigninDelegateGroups !== undefined && output.SigninDelegateGroups !== null
17924
+ SigninDelegateGroups: output.SigninDelegateGroups != null
18051
17925
  ? deserializeAws_restJson1SigninDelegateGroupList(output.SigninDelegateGroups, context)
18052
17926
  : undefined,
18053
- SupportedLicenses: output.SupportedLicenses !== undefined && output.SupportedLicenses !== null
17927
+ SupportedLicenses: output.SupportedLicenses != null
18054
17928
  ? deserializeAws_restJson1LicenseList(output.SupportedLicenses, context)
18055
17929
  : undefined,
18056
17930
  };
@@ -18081,10 +17955,10 @@ const deserializeAws_restJson1AlexaForBusinessMetadata = (output, context) => {
18081
17955
  const deserializeAws_restJson1AppInstance = (output, context) => {
18082
17956
  return {
18083
17957
  AppInstanceArn: (0, smithy_client_1.expectString)(output.AppInstanceArn),
18084
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
17958
+ CreatedTimestamp: output.CreatedTimestamp != null
18085
17959
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
18086
17960
  : undefined,
18087
- LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
17961
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
18088
17962
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
18089
17963
  : undefined,
18090
17964
  Metadata: (0, smithy_client_1.expectString)(output.Metadata),
@@ -18093,11 +17967,9 @@ const deserializeAws_restJson1AppInstance = (output, context) => {
18093
17967
  };
18094
17968
  const deserializeAws_restJson1AppInstanceAdmin = (output, context) => {
18095
17969
  return {
18096
- Admin: output.Admin !== undefined && output.Admin !== null
18097
- ? deserializeAws_restJson1Identity(output.Admin, context)
18098
- : undefined,
17970
+ Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
18099
17971
  AppInstanceArn: (0, smithy_client_1.expectString)(output.AppInstanceArn),
18100
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
17972
+ CreatedTimestamp: output.CreatedTimestamp != null
18101
17973
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
18102
17974
  : undefined,
18103
17975
  };
@@ -18115,9 +17987,7 @@ const deserializeAws_restJson1AppInstanceAdminList = (output, context) => {
18115
17987
  };
18116
17988
  const deserializeAws_restJson1AppInstanceAdminSummary = (output, context) => {
18117
17989
  return {
18118
- Admin: output.Admin !== undefined && output.Admin !== null
18119
- ? deserializeAws_restJson1Identity(output.Admin, context)
18120
- : undefined,
17990
+ Admin: output.Admin != null ? deserializeAws_restJson1Identity(output.Admin, context) : undefined,
18121
17991
  };
18122
17992
  };
18123
17993
  const deserializeAws_restJson1AppInstanceList = (output, context) => {
@@ -18133,7 +18003,7 @@ const deserializeAws_restJson1AppInstanceList = (output, context) => {
18133
18003
  };
18134
18004
  const deserializeAws_restJson1AppInstanceRetentionSettings = (output, context) => {
18135
18005
  return {
18136
- ChannelRetentionSettings: output.ChannelRetentionSettings !== undefined && output.ChannelRetentionSettings !== null
18006
+ ChannelRetentionSettings: output.ChannelRetentionSettings != null
18137
18007
  ? deserializeAws_restJson1ChannelRetentionSettings(output.ChannelRetentionSettings, context)
18138
18008
  : undefined,
18139
18009
  };
@@ -18165,10 +18035,10 @@ const deserializeAws_restJson1AppInstanceSummary = (output, context) => {
18165
18035
  const deserializeAws_restJson1AppInstanceUser = (output, context) => {
18166
18036
  return {
18167
18037
  AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
18168
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18038
+ CreatedTimestamp: output.CreatedTimestamp != null
18169
18039
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
18170
18040
  : undefined,
18171
- LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
18041
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
18172
18042
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
18173
18043
  : undefined,
18174
18044
  Metadata: (0, smithy_client_1.expectString)(output.Metadata),
@@ -18188,7 +18058,7 @@ const deserializeAws_restJson1AppInstanceUserList = (output, context) => {
18188
18058
  };
18189
18059
  const deserializeAws_restJson1AppInstanceUserMembershipSummary = (output, context) => {
18190
18060
  return {
18191
- ReadMarkerTimestamp: output.ReadMarkerTimestamp !== undefined && output.ReadMarkerTimestamp !== null
18061
+ ReadMarkerTimestamp: output.ReadMarkerTimestamp != null
18192
18062
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.ReadMarkerTimestamp)))
18193
18063
  : undefined,
18194
18064
  Type: (0, smithy_client_1.expectString)(output.Type),
@@ -18203,15 +18073,11 @@ const deserializeAws_restJson1AppInstanceUserSummary = (output, context) => {
18203
18073
  };
18204
18074
  const deserializeAws_restJson1ArtifactsConfiguration = (output, context) => {
18205
18075
  return {
18206
- Audio: output.Audio !== undefined && output.Audio !== null
18207
- ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context)
18208
- : undefined,
18209
- Content: output.Content !== undefined && output.Content !== null
18076
+ Audio: output.Audio != null ? deserializeAws_restJson1AudioArtifactsConfiguration(output.Audio, context) : undefined,
18077
+ Content: output.Content != null
18210
18078
  ? deserializeAws_restJson1ContentArtifactsConfiguration(output.Content, context)
18211
18079
  : undefined,
18212
- Video: output.Video !== undefined && output.Video !== null
18213
- ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context)
18214
- : undefined,
18080
+ Video: output.Video != null ? deserializeAws_restJson1VideoArtifactsConfiguration(output.Video, context) : undefined,
18215
18081
  };
18216
18082
  };
18217
18083
  const deserializeAws_restJson1Attendee = (output, context) => {
@@ -18251,12 +18117,8 @@ const deserializeAws_restJson1AudioArtifactsConfiguration = (output, context) =>
18251
18117
  const deserializeAws_restJson1BatchChannelMemberships = (output, context) => {
18252
18118
  return {
18253
18119
  ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
18254
- InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
18255
- ? deserializeAws_restJson1Identity(output.InvitedBy, context)
18256
- : undefined,
18257
- Members: output.Members !== undefined && output.Members !== null
18258
- ? deserializeAws_restJson1Members(output.Members, context)
18259
- : undefined,
18120
+ InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
18121
+ Members: output.Members != null ? deserializeAws_restJson1Members(output.Members, context) : undefined,
18260
18122
  Type: (0, smithy_client_1.expectString)(output.Type),
18261
18123
  };
18262
18124
  };
@@ -18294,15 +18156,11 @@ const deserializeAws_restJson1Bot = (output, context) => {
18294
18156
  BotEmail: (0, smithy_client_1.expectString)(output.BotEmail),
18295
18157
  BotId: (0, smithy_client_1.expectString)(output.BotId),
18296
18158
  BotType: (0, smithy_client_1.expectString)(output.BotType),
18297
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18298
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
18299
- : undefined,
18159
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
18300
18160
  Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
18301
18161
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
18302
18162
  SecurityToken: (0, smithy_client_1.expectString)(output.SecurityToken),
18303
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
18304
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
18305
- : undefined,
18163
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
18306
18164
  UserId: (0, smithy_client_1.expectString)(output.UserId),
18307
18165
  };
18308
18166
  };
@@ -18347,16 +18205,14 @@ const deserializeAws_restJson1CapabilityList = (output, context) => {
18347
18205
  const deserializeAws_restJson1Channel = (output, context) => {
18348
18206
  return {
18349
18207
  ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
18350
- CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
18351
- ? deserializeAws_restJson1Identity(output.CreatedBy, context)
18352
- : undefined,
18353
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18208
+ CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
18209
+ CreatedTimestamp: output.CreatedTimestamp != null
18354
18210
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
18355
18211
  : undefined,
18356
- LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
18212
+ LastMessageTimestamp: output.LastMessageTimestamp != null
18357
18213
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastMessageTimestamp)))
18358
18214
  : undefined,
18359
- LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
18215
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
18360
18216
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
18361
18217
  : undefined,
18362
18218
  Metadata: (0, smithy_client_1.expectString)(output.Metadata),
@@ -18368,22 +18224,16 @@ const deserializeAws_restJson1Channel = (output, context) => {
18368
18224
  const deserializeAws_restJson1ChannelBan = (output, context) => {
18369
18225
  return {
18370
18226
  ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
18371
- CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
18372
- ? deserializeAws_restJson1Identity(output.CreatedBy, context)
18373
- : undefined,
18374
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18227
+ CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
18228
+ CreatedTimestamp: output.CreatedTimestamp != null
18375
18229
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
18376
18230
  : undefined,
18377
- Member: output.Member !== undefined && output.Member !== null
18378
- ? deserializeAws_restJson1Identity(output.Member, context)
18379
- : undefined,
18231
+ Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
18380
18232
  };
18381
18233
  };
18382
18234
  const deserializeAws_restJson1ChannelBanSummary = (output, context) => {
18383
18235
  return {
18384
- Member: output.Member !== undefined && output.Member !== null
18385
- ? deserializeAws_restJson1Identity(output.Member, context)
18386
- : undefined,
18236
+ Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
18387
18237
  };
18388
18238
  };
18389
18239
  const deserializeAws_restJson1ChannelBanSummaryList = (output, context) => {
@@ -18400,27 +18250,23 @@ const deserializeAws_restJson1ChannelBanSummaryList = (output, context) => {
18400
18250
  const deserializeAws_restJson1ChannelMembership = (output, context) => {
18401
18251
  return {
18402
18252
  ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
18403
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18253
+ CreatedTimestamp: output.CreatedTimestamp != null
18404
18254
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
18405
18255
  : undefined,
18406
- InvitedBy: output.InvitedBy !== undefined && output.InvitedBy !== null
18407
- ? deserializeAws_restJson1Identity(output.InvitedBy, context)
18408
- : undefined,
18409
- LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
18256
+ InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
18257
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
18410
18258
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
18411
18259
  : undefined,
18412
- Member: output.Member !== undefined && output.Member !== null
18413
- ? deserializeAws_restJson1Identity(output.Member, context)
18414
- : undefined,
18260
+ Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
18415
18261
  Type: (0, smithy_client_1.expectString)(output.Type),
18416
18262
  };
18417
18263
  };
18418
18264
  const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary = (output, context) => {
18419
18265
  return {
18420
- AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary !== undefined && output.AppInstanceUserMembershipSummary !== null
18266
+ AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary != null
18421
18267
  ? deserializeAws_restJson1AppInstanceUserMembershipSummary(output.AppInstanceUserMembershipSummary, context)
18422
18268
  : undefined,
18423
- ChannelSummary: output.ChannelSummary !== undefined && output.ChannelSummary !== null
18269
+ ChannelSummary: output.ChannelSummary != null
18424
18270
  ? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
18425
18271
  : undefined,
18426
18272
  };
@@ -18438,9 +18284,7 @@ const deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList = (
18438
18284
  };
18439
18285
  const deserializeAws_restJson1ChannelMembershipSummary = (output, context) => {
18440
18286
  return {
18441
- Member: output.Member !== undefined && output.Member !== null
18442
- ? deserializeAws_restJson1Identity(output.Member, context)
18443
- : undefined,
18287
+ Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
18444
18288
  };
18445
18289
  };
18446
18290
  const deserializeAws_restJson1ChannelMembershipSummaryList = (output, context) => {
@@ -18458,43 +18302,39 @@ const deserializeAws_restJson1ChannelMessage = (output, context) => {
18458
18302
  return {
18459
18303
  ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
18460
18304
  Content: (0, smithy_client_1.expectString)(output.Content),
18461
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18305
+ CreatedTimestamp: output.CreatedTimestamp != null
18462
18306
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
18463
18307
  : undefined,
18464
- LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
18308
+ LastEditedTimestamp: output.LastEditedTimestamp != null
18465
18309
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastEditedTimestamp)))
18466
18310
  : undefined,
18467
- LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
18311
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
18468
18312
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
18469
18313
  : undefined,
18470
18314
  MessageId: (0, smithy_client_1.expectString)(output.MessageId),
18471
18315
  Metadata: (0, smithy_client_1.expectString)(output.Metadata),
18472
18316
  Persistence: (0, smithy_client_1.expectString)(output.Persistence),
18473
18317
  Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
18474
- Sender: output.Sender !== undefined && output.Sender !== null
18475
- ? deserializeAws_restJson1Identity(output.Sender, context)
18476
- : undefined,
18318
+ Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
18477
18319
  Type: (0, smithy_client_1.expectString)(output.Type),
18478
18320
  };
18479
18321
  };
18480
18322
  const deserializeAws_restJson1ChannelMessageSummary = (output, context) => {
18481
18323
  return {
18482
18324
  Content: (0, smithy_client_1.expectString)(output.Content),
18483
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18325
+ CreatedTimestamp: output.CreatedTimestamp != null
18484
18326
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
18485
18327
  : undefined,
18486
- LastEditedTimestamp: output.LastEditedTimestamp !== undefined && output.LastEditedTimestamp !== null
18328
+ LastEditedTimestamp: output.LastEditedTimestamp != null
18487
18329
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastEditedTimestamp)))
18488
18330
  : undefined,
18489
- LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
18331
+ LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
18490
18332
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
18491
18333
  : undefined,
18492
18334
  MessageId: (0, smithy_client_1.expectString)(output.MessageId),
18493
18335
  Metadata: (0, smithy_client_1.expectString)(output.Metadata),
18494
18336
  Redacted: (0, smithy_client_1.expectBoolean)(output.Redacted),
18495
- Sender: output.Sender !== undefined && output.Sender !== null
18496
- ? deserializeAws_restJson1Identity(output.Sender, context)
18497
- : undefined,
18337
+ Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
18498
18338
  Type: (0, smithy_client_1.expectString)(output.Type),
18499
18339
  };
18500
18340
  };
@@ -18511,7 +18351,7 @@ const deserializeAws_restJson1ChannelMessageSummaryList = (output, context) => {
18511
18351
  };
18512
18352
  const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary = (output, context) => {
18513
18353
  return {
18514
- ChannelSummary: output.ChannelSummary !== undefined && output.ChannelSummary !== null
18354
+ ChannelSummary: output.ChannelSummary != null
18515
18355
  ? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
18516
18356
  : undefined,
18517
18357
  };
@@ -18530,22 +18370,16 @@ const deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = (ou
18530
18370
  const deserializeAws_restJson1ChannelModerator = (output, context) => {
18531
18371
  return {
18532
18372
  ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
18533
- CreatedBy: output.CreatedBy !== undefined && output.CreatedBy !== null
18534
- ? deserializeAws_restJson1Identity(output.CreatedBy, context)
18535
- : undefined,
18536
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18373
+ CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
18374
+ CreatedTimestamp: output.CreatedTimestamp != null
18537
18375
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
18538
18376
  : undefined,
18539
- Moderator: output.Moderator !== undefined && output.Moderator !== null
18540
- ? deserializeAws_restJson1Identity(output.Moderator, context)
18541
- : undefined,
18377
+ Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
18542
18378
  };
18543
18379
  };
18544
18380
  const deserializeAws_restJson1ChannelModeratorSummary = (output, context) => {
18545
18381
  return {
18546
- Moderator: output.Moderator !== undefined && output.Moderator !== null
18547
- ? deserializeAws_restJson1Identity(output.Moderator, context)
18548
- : undefined,
18382
+ Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
18549
18383
  };
18550
18384
  };
18551
18385
  const deserializeAws_restJson1ChannelModeratorSummaryList = (output, context) => {
@@ -18567,7 +18401,7 @@ const deserializeAws_restJson1ChannelRetentionSettings = (output, context) => {
18567
18401
  const deserializeAws_restJson1ChannelSummary = (output, context) => {
18568
18402
  return {
18569
18403
  ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
18570
- LastMessageTimestamp: output.LastMessageTimestamp !== undefined && output.LastMessageTimestamp !== null
18404
+ LastMessageTimestamp: output.LastMessageTimestamp != null
18571
18405
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastMessageTimestamp)))
18572
18406
  : undefined,
18573
18407
  Metadata: (0, smithy_client_1.expectString)(output.Metadata),
@@ -18589,10 +18423,10 @@ const deserializeAws_restJson1ChannelSummaryList = (output, context) => {
18589
18423
  };
18590
18424
  const deserializeAws_restJson1ChimeSdkMeetingConfiguration = (output, context) => {
18591
18425
  return {
18592
- ArtifactsConfiguration: output.ArtifactsConfiguration !== undefined && output.ArtifactsConfiguration !== null
18426
+ ArtifactsConfiguration: output.ArtifactsConfiguration != null
18593
18427
  ? deserializeAws_restJson1ArtifactsConfiguration(output.ArtifactsConfiguration, context)
18594
18428
  : undefined,
18595
- SourceConfiguration: output.SourceConfiguration !== undefined && output.SourceConfiguration !== null
18429
+ SourceConfiguration: output.SourceConfiguration != null
18596
18430
  ? deserializeAws_restJson1SourceConfiguration(output.SourceConfiguration, context)
18597
18431
  : undefined,
18598
18432
  };
@@ -18646,7 +18480,7 @@ const deserializeAws_restJson1E164PhoneNumberList = (output, context) => {
18646
18480
  };
18647
18481
  const deserializeAws_restJson1EmergencyCallingConfiguration = (output, context) => {
18648
18482
  return {
18649
- DNIS: output.DNIS !== undefined && output.DNIS !== null
18483
+ DNIS: output.DNIS != null
18650
18484
  ? deserializeAws_restJson1DNISEmergencyCallingConfigurationList(output.DNIS, context)
18651
18485
  : undefined,
18652
18486
  };
@@ -18719,21 +18553,17 @@ const deserializeAws_restJson1LoggingConfiguration = (output, context) => {
18719
18553
  };
18720
18554
  const deserializeAws_restJson1MediaCapturePipeline = (output, context) => {
18721
18555
  return {
18722
- ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration !== undefined && output.ChimeSdkMeetingConfiguration !== null
18556
+ ChimeSdkMeetingConfiguration: output.ChimeSdkMeetingConfiguration != null
18723
18557
  ? deserializeAws_restJson1ChimeSdkMeetingConfiguration(output.ChimeSdkMeetingConfiguration, context)
18724
18558
  : undefined,
18725
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18726
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
18727
- : undefined,
18559
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
18728
18560
  MediaPipelineId: (0, smithy_client_1.expectString)(output.MediaPipelineId),
18729
18561
  SinkArn: (0, smithy_client_1.expectString)(output.SinkArn),
18730
18562
  SinkType: (0, smithy_client_1.expectString)(output.SinkType),
18731
18563
  SourceArn: (0, smithy_client_1.expectString)(output.SourceArn),
18732
18564
  SourceType: (0, smithy_client_1.expectString)(output.SourceType),
18733
18565
  Status: (0, smithy_client_1.expectString)(output.Status),
18734
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
18735
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
18736
- : undefined,
18566
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
18737
18567
  };
18738
18568
  };
18739
18569
  const deserializeAws_restJson1MediaCapturePipelineList = (output, context) => {
@@ -18762,7 +18592,7 @@ const deserializeAws_restJson1MediaPlacement = (output, context) => {
18762
18592
  const deserializeAws_restJson1Meeting = (output, context) => {
18763
18593
  return {
18764
18594
  ExternalMeetingId: (0, smithy_client_1.expectString)(output.ExternalMeetingId),
18765
- MediaPlacement: output.MediaPlacement !== undefined && output.MediaPlacement !== null
18595
+ MediaPlacement: output.MediaPlacement != null
18766
18596
  ? deserializeAws_restJson1MediaPlacement(output.MediaPlacement, context)
18767
18597
  : undefined,
18768
18598
  MediaRegion: (0, smithy_client_1.expectString)(output.MediaRegion),
@@ -18843,9 +18673,7 @@ const deserializeAws_restJson1OrderedPhoneNumberList = (output, context) => {
18843
18673
  const deserializeAws_restJson1Origination = (output, context) => {
18844
18674
  return {
18845
18675
  Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
18846
- Routes: output.Routes !== undefined && output.Routes !== null
18847
- ? deserializeAws_restJson1OriginationRouteList(output.Routes, context)
18848
- : undefined,
18676
+ Routes: output.Routes != null ? deserializeAws_restJson1OriginationRouteList(output.Routes, context) : undefined,
18849
18677
  };
18850
18678
  };
18851
18679
  const deserializeAws_restJson1OriginationRoute = (output, context) => {
@@ -18887,34 +18715,28 @@ const deserializeAws_restJson1Participants = (output, context) => {
18887
18715
  };
18888
18716
  const deserializeAws_restJson1PhoneNumber = (output, context) => {
18889
18717
  return {
18890
- Associations: output.Associations !== undefined && output.Associations !== null
18718
+ Associations: output.Associations != null
18891
18719
  ? deserializeAws_restJson1PhoneNumberAssociationList(output.Associations, context)
18892
18720
  : undefined,
18893
18721
  CallingName: (0, smithy_client_1.expectString)(output.CallingName),
18894
18722
  CallingNameStatus: (0, smithy_client_1.expectString)(output.CallingNameStatus),
18895
- Capabilities: output.Capabilities !== undefined && output.Capabilities !== null
18723
+ Capabilities: output.Capabilities != null
18896
18724
  ? deserializeAws_restJson1PhoneNumberCapabilities(output.Capabilities, context)
18897
18725
  : undefined,
18898
18726
  Country: (0, smithy_client_1.expectString)(output.Country),
18899
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18900
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
18901
- : undefined,
18902
- DeletionTimestamp: output.DeletionTimestamp !== undefined && output.DeletionTimestamp !== null
18903
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.DeletionTimestamp))
18904
- : undefined,
18727
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
18728
+ DeletionTimestamp: output.DeletionTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.DeletionTimestamp)) : undefined,
18905
18729
  E164PhoneNumber: (0, smithy_client_1.expectString)(output.E164PhoneNumber),
18906
18730
  PhoneNumberId: (0, smithy_client_1.expectString)(output.PhoneNumberId),
18907
18731
  ProductType: (0, smithy_client_1.expectString)(output.ProductType),
18908
18732
  Status: (0, smithy_client_1.expectString)(output.Status),
18909
18733
  Type: (0, smithy_client_1.expectString)(output.Type),
18910
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
18911
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
18912
- : undefined,
18734
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
18913
18735
  };
18914
18736
  };
18915
18737
  const deserializeAws_restJson1PhoneNumberAssociation = (output, context) => {
18916
18738
  return {
18917
- AssociatedTimestamp: output.AssociatedTimestamp !== undefined && output.AssociatedTimestamp !== null
18739
+ AssociatedTimestamp: output.AssociatedTimestamp != null
18918
18740
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.AssociatedTimestamp))
18919
18741
  : undefined,
18920
18742
  Name: (0, smithy_client_1.expectString)(output.Name),
@@ -18956,7 +18778,7 @@ const deserializeAws_restJson1PhoneNumberCountriesList = (output, context) => {
18956
18778
  const deserializeAws_restJson1PhoneNumberCountry = (output, context) => {
18957
18779
  return {
18958
18780
  CountryCode: (0, smithy_client_1.expectString)(output.CountryCode),
18959
- SupportedPhoneNumberTypes: output.SupportedPhoneNumberTypes !== undefined && output.SupportedPhoneNumberTypes !== null
18781
+ SupportedPhoneNumberTypes: output.SupportedPhoneNumberTypes != null
18960
18782
  ? deserializeAws_restJson1PhoneNumberTypeList(output.SupportedPhoneNumberTypes, context)
18961
18783
  : undefined,
18962
18784
  };
@@ -18992,18 +18814,14 @@ const deserializeAws_restJson1PhoneNumberList = (output, context) => {
18992
18814
  };
18993
18815
  const deserializeAws_restJson1PhoneNumberOrder = (output, context) => {
18994
18816
  return {
18995
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
18996
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
18997
- : undefined,
18998
- OrderedPhoneNumbers: output.OrderedPhoneNumbers !== undefined && output.OrderedPhoneNumbers !== null
18817
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
18818
+ OrderedPhoneNumbers: output.OrderedPhoneNumbers != null
18999
18819
  ? deserializeAws_restJson1OrderedPhoneNumberList(output.OrderedPhoneNumbers, context)
19000
18820
  : undefined,
19001
18821
  PhoneNumberOrderId: (0, smithy_client_1.expectString)(output.PhoneNumberOrderId),
19002
18822
  ProductType: (0, smithy_client_1.expectString)(output.ProductType),
19003
18823
  Status: (0, smithy_client_1.expectString)(output.Status),
19004
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
19005
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
19006
- : undefined,
18824
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
19007
18825
  };
19008
18826
  };
19009
18827
  const deserializeAws_restJson1PhoneNumberOrderList = (output, context) => {
@@ -19033,37 +18851,27 @@ const deserializeAws_restJson1Proxy = (output, context) => {
19033
18851
  DefaultSessionExpiryMinutes: (0, smithy_client_1.expectInt32)(output.DefaultSessionExpiryMinutes),
19034
18852
  Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
19035
18853
  FallBackPhoneNumber: (0, smithy_client_1.expectString)(output.FallBackPhoneNumber),
19036
- PhoneNumberCountries: output.PhoneNumberCountries !== undefined && output.PhoneNumberCountries !== null
18854
+ PhoneNumberCountries: output.PhoneNumberCountries != null
19037
18855
  ? deserializeAws_restJson1StringList(output.PhoneNumberCountries, context)
19038
18856
  : undefined,
19039
18857
  };
19040
18858
  };
19041
18859
  const deserializeAws_restJson1ProxySession = (output, context) => {
19042
18860
  return {
19043
- Capabilities: output.Capabilities !== undefined && output.Capabilities !== null
19044
- ? deserializeAws_restJson1CapabilityList(output.Capabilities, context)
19045
- : undefined,
19046
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
19047
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
19048
- : undefined,
19049
- EndedTimestamp: output.EndedTimestamp !== undefined && output.EndedTimestamp !== null
19050
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.EndedTimestamp))
19051
- : undefined,
18861
+ Capabilities: output.Capabilities != null ? deserializeAws_restJson1CapabilityList(output.Capabilities, context) : undefined,
18862
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
18863
+ EndedTimestamp: output.EndedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.EndedTimestamp)) : undefined,
19052
18864
  ExpiryMinutes: (0, smithy_client_1.expectInt32)(output.ExpiryMinutes),
19053
18865
  GeoMatchLevel: (0, smithy_client_1.expectString)(output.GeoMatchLevel),
19054
- GeoMatchParams: output.GeoMatchParams !== undefined && output.GeoMatchParams !== null
18866
+ GeoMatchParams: output.GeoMatchParams != null
19055
18867
  ? deserializeAws_restJson1GeoMatchParams(output.GeoMatchParams, context)
19056
18868
  : undefined,
19057
18869
  Name: (0, smithy_client_1.expectString)(output.Name),
19058
18870
  NumberSelectionBehavior: (0, smithy_client_1.expectString)(output.NumberSelectionBehavior),
19059
- Participants: output.Participants !== undefined && output.Participants !== null
19060
- ? deserializeAws_restJson1Participants(output.Participants, context)
19061
- : undefined,
18871
+ Participants: output.Participants != null ? deserializeAws_restJson1Participants(output.Participants, context) : undefined,
19062
18872
  ProxySessionId: (0, smithy_client_1.expectString)(output.ProxySessionId),
19063
18873
  Status: (0, smithy_client_1.expectString)(output.Status),
19064
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
19065
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
19066
- : undefined,
18874
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
19067
18875
  VoiceConnectorId: (0, smithy_client_1.expectString)(output.VoiceConnectorId),
19068
18876
  };
19069
18877
  };
@@ -19080,10 +18888,10 @@ const deserializeAws_restJson1ProxySessions = (output, context) => {
19080
18888
  };
19081
18889
  const deserializeAws_restJson1RetentionSettings = (output, context) => {
19082
18890
  return {
19083
- ConversationRetentionSettings: output.ConversationRetentionSettings !== undefined && output.ConversationRetentionSettings !== null
18891
+ ConversationRetentionSettings: output.ConversationRetentionSettings != null
19084
18892
  ? deserializeAws_restJson1ConversationRetentionSettings(output.ConversationRetentionSettings, context)
19085
18893
  : undefined,
19086
- RoomRetentionSettings: output.RoomRetentionSettings !== undefined && output.RoomRetentionSettings !== null
18894
+ RoomRetentionSettings: output.RoomRetentionSettings != null
19087
18895
  ? deserializeAws_restJson1RoomRetentionSettings(output.RoomRetentionSettings, context)
19088
18896
  : undefined,
19089
18897
  };
@@ -19092,14 +18900,10 @@ const deserializeAws_restJson1Room = (output, context) => {
19092
18900
  return {
19093
18901
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
19094
18902
  CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
19095
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
19096
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
19097
- : undefined,
18903
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
19098
18904
  Name: (0, smithy_client_1.expectString)(output.Name),
19099
18905
  RoomId: (0, smithy_client_1.expectString)(output.RoomId),
19100
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
19101
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
19102
- : undefined,
18906
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
19103
18907
  };
19104
18908
  };
19105
18909
  const deserializeAws_restJson1RoomList = (output, context) => {
@@ -19116,14 +18920,10 @@ const deserializeAws_restJson1RoomList = (output, context) => {
19116
18920
  const deserializeAws_restJson1RoomMembership = (output, context) => {
19117
18921
  return {
19118
18922
  InvitedBy: (0, smithy_client_1.expectString)(output.InvitedBy),
19119
- Member: output.Member !== undefined && output.Member !== null
19120
- ? deserializeAws_restJson1Member(output.Member, context)
19121
- : undefined,
18923
+ Member: output.Member != null ? deserializeAws_restJson1Member(output.Member, context) : undefined,
19122
18924
  Role: (0, smithy_client_1.expectString)(output.Role),
19123
18925
  RoomId: (0, smithy_client_1.expectString)(output.RoomId),
19124
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
19125
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
19126
- : undefined,
18926
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
19127
18927
  };
19128
18928
  };
19129
18929
  const deserializeAws_restJson1RoomMembershipList = (output, context) => {
@@ -19144,10 +18944,8 @@ const deserializeAws_restJson1RoomRetentionSettings = (output, context) => {
19144
18944
  };
19145
18945
  const deserializeAws_restJson1SelectedVideoStreams = (output, context) => {
19146
18946
  return {
19147
- AttendeeIds: output.AttendeeIds !== undefined && output.AttendeeIds !== null
19148
- ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context)
19149
- : undefined,
19150
- ExternalUserIds: output.ExternalUserIds !== undefined && output.ExternalUserIds !== null
18947
+ AttendeeIds: output.AttendeeIds != null ? deserializeAws_restJson1AttendeeIdList(output.AttendeeIds, context) : undefined,
18948
+ ExternalUserIds: output.ExternalUserIds != null
19151
18949
  ? deserializeAws_restJson1ExternalUserIdList(output.ExternalUserIds, context)
19152
18950
  : undefined,
19153
18951
  };
@@ -19182,17 +18980,13 @@ const deserializeAws_restJson1SigninDelegateGroupList = (output, context) => {
19182
18980
  const deserializeAws_restJson1SipMediaApplication = (output, context) => {
19183
18981
  return {
19184
18982
  AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
19185
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
19186
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
19187
- : undefined,
19188
- Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
18983
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
18984
+ Endpoints: output.Endpoints != null
19189
18985
  ? deserializeAws_restJson1SipMediaApplicationEndpointList(output.Endpoints, context)
19190
18986
  : undefined,
19191
18987
  Name: (0, smithy_client_1.expectString)(output.Name),
19192
18988
  SipMediaApplicationId: (0, smithy_client_1.expectString)(output.SipMediaApplicationId),
19193
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
19194
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
19195
- : undefined,
18989
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
19196
18990
  };
19197
18991
  };
19198
18992
  const deserializeAws_restJson1SipMediaApplicationCall = (output, context) => {
@@ -19234,20 +19028,16 @@ const deserializeAws_restJson1SipMediaApplicationLoggingConfiguration = (output,
19234
19028
  };
19235
19029
  const deserializeAws_restJson1SipRule = (output, context) => {
19236
19030
  return {
19237
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
19238
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
19239
- : undefined,
19031
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
19240
19032
  Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
19241
19033
  Name: (0, smithy_client_1.expectString)(output.Name),
19242
19034
  SipRuleId: (0, smithy_client_1.expectString)(output.SipRuleId),
19243
- TargetApplications: output.TargetApplications !== undefined && output.TargetApplications !== null
19035
+ TargetApplications: output.TargetApplications != null
19244
19036
  ? deserializeAws_restJson1SipRuleTargetApplicationList(output.TargetApplications, context)
19245
19037
  : undefined,
19246
19038
  TriggerType: (0, smithy_client_1.expectString)(output.TriggerType),
19247
19039
  TriggerValue: (0, smithy_client_1.expectString)(output.TriggerValue),
19248
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
19249
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
19250
- : undefined,
19040
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
19251
19041
  };
19252
19042
  };
19253
19043
  const deserializeAws_restJson1SipRuleList = (output, context) => {
@@ -19281,7 +19071,7 @@ const deserializeAws_restJson1SipRuleTargetApplicationList = (output, context) =
19281
19071
  };
19282
19072
  const deserializeAws_restJson1SourceConfiguration = (output, context) => {
19283
19073
  return {
19284
- SelectedVideoStreams: output.SelectedVideoStreams !== undefined && output.SelectedVideoStreams !== null
19074
+ SelectedVideoStreams: output.SelectedVideoStreams != null
19285
19075
  ? deserializeAws_restJson1SelectedVideoStreams(output.SelectedVideoStreams, context)
19286
19076
  : undefined,
19287
19077
  };
@@ -19290,7 +19080,7 @@ const deserializeAws_restJson1StreamingConfiguration = (output, context) => {
19290
19080
  return {
19291
19081
  DataRetentionInHours: (0, smithy_client_1.expectInt32)(output.DataRetentionInHours),
19292
19082
  Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
19293
- StreamingNotificationTargets: output.StreamingNotificationTargets !== undefined && output.StreamingNotificationTargets !== null
19083
+ StreamingNotificationTargets: output.StreamingNotificationTargets != null
19294
19084
  ? deserializeAws_restJson1StreamingNotificationTargetList(output.StreamingNotificationTargets, context)
19295
19085
  : undefined,
19296
19086
  };
@@ -19348,12 +19138,10 @@ const deserializeAws_restJson1TelephonySettings = (output, context) => {
19348
19138
  };
19349
19139
  const deserializeAws_restJson1Termination = (output, context) => {
19350
19140
  return {
19351
- CallingRegions: output.CallingRegions !== undefined && output.CallingRegions !== null
19141
+ CallingRegions: output.CallingRegions != null
19352
19142
  ? deserializeAws_restJson1CallingRegionList(output.CallingRegions, context)
19353
19143
  : undefined,
19354
- CidrAllowedList: output.CidrAllowedList !== undefined && output.CidrAllowedList !== null
19355
- ? deserializeAws_restJson1StringList(output.CidrAllowedList, context)
19356
- : undefined,
19144
+ CidrAllowedList: output.CidrAllowedList != null ? deserializeAws_restJson1StringList(output.CidrAllowedList, context) : undefined,
19357
19145
  CpsLimit: (0, smithy_client_1.expectInt32)(output.CpsLimit),
19358
19146
  DefaultPhoneNumber: (0, smithy_client_1.expectString)(output.DefaultPhoneNumber),
19359
19147
  Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
@@ -19362,28 +19150,22 @@ const deserializeAws_restJson1Termination = (output, context) => {
19362
19150
  const deserializeAws_restJson1TerminationHealth = (output, context) => {
19363
19151
  return {
19364
19152
  Source: (0, smithy_client_1.expectString)(output.Source),
19365
- Timestamp: output.Timestamp !== undefined && output.Timestamp !== null
19366
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.Timestamp))
19367
- : undefined,
19153
+ Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.Timestamp)) : undefined,
19368
19154
  };
19369
19155
  };
19370
19156
  const deserializeAws_restJson1User = (output, context) => {
19371
19157
  return {
19372
19158
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
19373
- AlexaForBusinessMetadata: output.AlexaForBusinessMetadata !== undefined && output.AlexaForBusinessMetadata !== null
19159
+ AlexaForBusinessMetadata: output.AlexaForBusinessMetadata != null
19374
19160
  ? deserializeAws_restJson1AlexaForBusinessMetadata(output.AlexaForBusinessMetadata, context)
19375
19161
  : undefined,
19376
19162
  DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
19377
- InvitedOn: output.InvitedOn !== undefined && output.InvitedOn !== null
19378
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.InvitedOn))
19379
- : undefined,
19163
+ InvitedOn: output.InvitedOn != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.InvitedOn)) : undefined,
19380
19164
  LicenseType: (0, smithy_client_1.expectString)(output.LicenseType),
19381
19165
  PersonalPIN: (0, smithy_client_1.expectString)(output.PersonalPIN),
19382
19166
  PrimaryEmail: (0, smithy_client_1.expectString)(output.PrimaryEmail),
19383
19167
  PrimaryProvisionedNumber: (0, smithy_client_1.expectString)(output.PrimaryProvisionedNumber),
19384
- RegisteredOn: output.RegisteredOn !== undefined && output.RegisteredOn !== null
19385
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.RegisteredOn))
19386
- : undefined,
19168
+ RegisteredOn: output.RegisteredOn != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.RegisteredOn)) : undefined,
19387
19169
  UserId: (0, smithy_client_1.expectString)(output.UserId),
19388
19170
  UserInvitationStatus: (0, smithy_client_1.expectString)(output.UserInvitationStatus),
19389
19171
  UserRegistrationStatus: (0, smithy_client_1.expectString)(output.UserRegistrationStatus),
@@ -19421,9 +19203,7 @@ const deserializeAws_restJson1UserList = (output, context) => {
19421
19203
  };
19422
19204
  const deserializeAws_restJson1UserSettings = (output, context) => {
19423
19205
  return {
19424
- Telephony: output.Telephony !== undefined && output.Telephony !== null
19425
- ? deserializeAws_restJson1TelephonySettings(output.Telephony, context)
19426
- : undefined,
19206
+ Telephony: output.Telephony != null ? deserializeAws_restJson1TelephonySettings(output.Telephony, context) : undefined,
19427
19207
  };
19428
19208
  };
19429
19209
  const deserializeAws_restJson1VideoArtifactsConfiguration = (output, context) => {
@@ -19435,31 +19215,23 @@ const deserializeAws_restJson1VideoArtifactsConfiguration = (output, context) =>
19435
19215
  const deserializeAws_restJson1VoiceConnector = (output, context) => {
19436
19216
  return {
19437
19217
  AwsRegion: (0, smithy_client_1.expectString)(output.AwsRegion),
19438
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
19439
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
19440
- : undefined,
19218
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
19441
19219
  Name: (0, smithy_client_1.expectString)(output.Name),
19442
19220
  OutboundHostName: (0, smithy_client_1.expectString)(output.OutboundHostName),
19443
19221
  RequireEncryption: (0, smithy_client_1.expectBoolean)(output.RequireEncryption),
19444
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
19445
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
19446
- : undefined,
19222
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
19447
19223
  VoiceConnectorArn: (0, smithy_client_1.expectString)(output.VoiceConnectorArn),
19448
19224
  VoiceConnectorId: (0, smithy_client_1.expectString)(output.VoiceConnectorId),
19449
19225
  };
19450
19226
  };
19451
19227
  const deserializeAws_restJson1VoiceConnectorGroup = (output, context) => {
19452
19228
  return {
19453
- CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
19454
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp))
19455
- : undefined,
19229
+ CreatedTimestamp: output.CreatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreatedTimestamp)) : undefined,
19456
19230
  Name: (0, smithy_client_1.expectString)(output.Name),
19457
- UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
19458
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp))
19459
- : undefined,
19231
+ UpdatedTimestamp: output.UpdatedTimestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdatedTimestamp)) : undefined,
19460
19232
  VoiceConnectorGroupArn: (0, smithy_client_1.expectString)(output.VoiceConnectorGroupArn),
19461
19233
  VoiceConnectorGroupId: (0, smithy_client_1.expectString)(output.VoiceConnectorGroupId),
19462
- VoiceConnectorItems: output.VoiceConnectorItems !== undefined && output.VoiceConnectorItems !== null
19234
+ VoiceConnectorItems: output.VoiceConnectorItems != null
19463
19235
  ? deserializeAws_restJson1VoiceConnectorItemList(output.VoiceConnectorItems, context)
19464
19236
  : undefined,
19465
19237
  };
@@ -19539,6 +19311,9 @@ const loadRestJsonErrorCode = (output, data) => {
19539
19311
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
19540
19312
  const sanitizeErrorCode = (rawValue) => {
19541
19313
  let cleanValue = rawValue;
19314
+ if (typeof cleanValue === "number") {
19315
+ cleanValue = cleanValue.toString();
19316
+ }
19542
19317
  if (cleanValue.indexOf(":") >= 0) {
19543
19318
  cleanValue = cleanValue.split(":")[0];
19544
19319
  }