@aws-sdk/client-iot 3.125.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.
@@ -56,12 +56,10 @@ const serializeAws_restJson1AddThingToBillingGroupCommand = async (input, contex
56
56
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/billing-groups/addThingToBillingGroup";
57
57
  let body;
58
58
  body = JSON.stringify({
59
- ...(input.billingGroupArn !== undefined &&
60
- input.billingGroupArn !== null && { billingGroupArn: input.billingGroupArn }),
61
- ...(input.billingGroupName !== undefined &&
62
- input.billingGroupName !== null && { billingGroupName: input.billingGroupName }),
63
- ...(input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }),
64
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
59
+ ...(input.billingGroupArn != null && { billingGroupArn: input.billingGroupArn }),
60
+ ...(input.billingGroupName != null && { billingGroupName: input.billingGroupName }),
61
+ ...(input.thingArn != null && { thingArn: input.thingArn }),
62
+ ...(input.thingName != null && { thingName: input.thingName }),
65
63
  });
66
64
  return new protocol_http_1.HttpRequest({
67
65
  protocol,
@@ -82,13 +80,11 @@ const serializeAws_restJson1AddThingToThingGroupCommand = async (input, context)
82
80
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/addThingToThingGroup";
83
81
  let body;
84
82
  body = JSON.stringify({
85
- ...(input.overrideDynamicGroups !== undefined &&
86
- input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups }),
87
- ...(input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }),
88
- ...(input.thingGroupArn !== undefined && input.thingGroupArn !== null && { thingGroupArn: input.thingGroupArn }),
89
- ...(input.thingGroupName !== undefined &&
90
- input.thingGroupName !== null && { thingGroupName: input.thingGroupName }),
91
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
83
+ ...(input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups }),
84
+ ...(input.thingArn != null && { thingArn: input.thingArn }),
85
+ ...(input.thingGroupArn != null && { thingGroupArn: input.thingGroupArn }),
86
+ ...(input.thingGroupName != null && { thingGroupName: input.thingGroupName }),
87
+ ...(input.thingName != null && { thingName: input.thingName }),
92
88
  });
93
89
  return new protocol_http_1.HttpRequest({
94
90
  protocol,
@@ -122,9 +118,8 @@ const serializeAws_restJson1AssociateTargetsWithJobCommand = async (input, conte
122
118
  };
123
119
  let body;
124
120
  body = JSON.stringify({
125
- ...(input.comment !== undefined && input.comment !== null && { comment: input.comment }),
126
- ...(input.targets !== undefined &&
127
- input.targets !== null && { targets: serializeAws_restJson1JobTargets(input.targets, context) }),
121
+ ...(input.comment != null && { comment: input.comment }),
122
+ ...(input.targets != null && { targets: serializeAws_restJson1JobTargets(input.targets, context) }),
128
123
  });
129
124
  return new protocol_http_1.HttpRequest({
130
125
  protocol,
@@ -156,7 +151,7 @@ const serializeAws_restJson1AttachPolicyCommand = async (input, context) => {
156
151
  }
157
152
  let body;
158
153
  body = JSON.stringify({
159
- ...(input.target !== undefined && input.target !== null && { target: input.target }),
154
+ ...(input.target != null && { target: input.target }),
160
155
  });
161
156
  return new protocol_http_1.HttpRequest({
162
157
  protocol,
@@ -384,8 +379,8 @@ const serializeAws_restJson1CancelJobCommand = async (input, context) => {
384
379
  };
385
380
  let body;
386
381
  body = JSON.stringify({
387
- ...(input.comment !== undefined && input.comment !== null && { comment: input.comment }),
388
- ...(input.reasonCode !== undefined && input.reasonCode !== null && { reasonCode: input.reasonCode }),
382
+ ...(input.comment != null && { comment: input.comment }),
383
+ ...(input.reasonCode != null && { reasonCode: input.reasonCode }),
389
384
  });
390
385
  return new protocol_http_1.HttpRequest({
391
386
  protocol,
@@ -430,10 +425,8 @@ const serializeAws_restJson1CancelJobExecutionCommand = async (input, context) =
430
425
  };
431
426
  let body;
432
427
  body = JSON.stringify({
433
- ...(input.expectedVersion !== undefined &&
434
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
435
- ...(input.statusDetails !== undefined &&
436
- input.statusDetails !== null && {
428
+ ...(input.expectedVersion != null && { expectedVersion: input.expectedVersion }),
429
+ ...(input.statusDetails != null && {
437
430
  statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
438
431
  }),
439
432
  });
@@ -506,17 +499,14 @@ const serializeAws_restJson1CreateAuditSuppressionCommand = async (input, contex
506
499
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/create";
507
500
  let body;
508
501
  body = JSON.stringify({
509
- ...(input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName }),
502
+ ...(input.checkName != null && { checkName: input.checkName }),
510
503
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
511
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
512
- ...(input.expirationDate !== undefined &&
513
- input.expirationDate !== null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) }),
514
- ...(input.resourceIdentifier !== undefined &&
515
- input.resourceIdentifier !== null && {
504
+ ...(input.description != null && { description: input.description }),
505
+ ...(input.expirationDate != null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) }),
506
+ ...(input.resourceIdentifier != null && {
516
507
  resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
517
508
  }),
518
- ...(input.suppressIndefinitely !== undefined &&
519
- input.suppressIndefinitely !== null && { suppressIndefinitely: input.suppressIndefinitely }),
509
+ ...(input.suppressIndefinitely != null && { suppressIndefinitely: input.suppressIndefinitely }),
520
510
  });
521
511
  return new protocol_http_1.HttpRequest({
522
512
  protocol,
@@ -547,18 +537,13 @@ const serializeAws_restJson1CreateAuthorizerCommand = async (input, context) =>
547
537
  }
548
538
  let body;
549
539
  body = JSON.stringify({
550
- ...(input.authorizerFunctionArn !== undefined &&
551
- input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn }),
552
- ...(input.enableCachingForHttp !== undefined &&
553
- input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp }),
554
- ...(input.signingDisabled !== undefined &&
555
- input.signingDisabled !== null && { signingDisabled: input.signingDisabled }),
556
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
557
- ...(input.tags !== undefined &&
558
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
559
- ...(input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName }),
560
- ...(input.tokenSigningPublicKeys !== undefined &&
561
- input.tokenSigningPublicKeys !== null && {
540
+ ...(input.authorizerFunctionArn != null && { authorizerFunctionArn: input.authorizerFunctionArn }),
541
+ ...(input.enableCachingForHttp != null && { enableCachingForHttp: input.enableCachingForHttp }),
542
+ ...(input.signingDisabled != null && { signingDisabled: input.signingDisabled }),
543
+ ...(input.status != null && { status: input.status }),
544
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
545
+ ...(input.tokenKeyName != null && { tokenKeyName: input.tokenKeyName }),
546
+ ...(input.tokenSigningPublicKeys != null && {
562
547
  tokenSigningPublicKeys: serializeAws_restJson1PublicKeyMap(input.tokenSigningPublicKeys, context),
563
548
  }),
564
549
  });
@@ -591,12 +576,10 @@ const serializeAws_restJson1CreateBillingGroupCommand = async (input, context) =
591
576
  }
592
577
  let body;
593
578
  body = JSON.stringify({
594
- ...(input.billingGroupProperties !== undefined &&
595
- input.billingGroupProperties !== null && {
579
+ ...(input.billingGroupProperties != null && {
596
580
  billingGroupProperties: serializeAws_restJson1BillingGroupProperties(input.billingGroupProperties, context),
597
581
  }),
598
- ...(input.tags !== undefined &&
599
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
582
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
600
583
  });
601
584
  return new protocol_http_1.HttpRequest({
602
585
  protocol,
@@ -620,8 +603,7 @@ const serializeAws_restJson1CreateCertificateFromCsrCommand = async (input, cont
620
603
  };
621
604
  let body;
622
605
  body = JSON.stringify({
623
- ...(input.certificateSigningRequest !== undefined &&
624
- input.certificateSigningRequest !== null && { certificateSigningRequest: input.certificateSigningRequest }),
606
+ ...(input.certificateSigningRequest != null && { certificateSigningRequest: input.certificateSigningRequest }),
625
607
  });
626
608
  return new protocol_http_1.HttpRequest({
627
609
  protocol,
@@ -655,10 +637,9 @@ const serializeAws_restJson1CreateCustomMetricCommand = async (input, context) =
655
637
  let body;
656
638
  body = JSON.stringify({
657
639
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
658
- ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
659
- ...(input.metricType !== undefined && input.metricType !== null && { metricType: input.metricType }),
660
- ...(input.tags !== undefined &&
661
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
640
+ ...(input.displayName != null && { displayName: input.displayName }),
641
+ ...(input.metricType != null && { metricType: input.metricType }),
642
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
662
643
  });
663
644
  return new protocol_http_1.HttpRequest({
664
645
  protocol,
@@ -691,13 +672,11 @@ const serializeAws_restJson1CreateDimensionCommand = async (input, context) => {
691
672
  let body;
692
673
  body = JSON.stringify({
693
674
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
694
- ...(input.stringValues !== undefined &&
695
- input.stringValues !== null && {
675
+ ...(input.stringValues != null && {
696
676
  stringValues: serializeAws_restJson1DimensionStringValues(input.stringValues, context),
697
677
  }),
698
- ...(input.tags !== undefined &&
699
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
700
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
678
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
679
+ ...(input.type != null && { type: input.type }),
701
680
  });
702
681
  return new protocol_http_1.HttpRequest({
703
682
  protocol,
@@ -729,20 +708,16 @@ const serializeAws_restJson1CreateDomainConfigurationCommand = async (input, con
729
708
  }
730
709
  let body;
731
710
  body = JSON.stringify({
732
- ...(input.authorizerConfig !== undefined &&
733
- input.authorizerConfig !== null && {
711
+ ...(input.authorizerConfig != null && {
734
712
  authorizerConfig: serializeAws_restJson1AuthorizerConfig(input.authorizerConfig, context),
735
713
  }),
736
- ...(input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName }),
737
- ...(input.serverCertificateArns !== undefined &&
738
- input.serverCertificateArns !== null && {
714
+ ...(input.domainName != null && { domainName: input.domainName }),
715
+ ...(input.serverCertificateArns != null && {
739
716
  serverCertificateArns: serializeAws_restJson1ServerCertificateArns(input.serverCertificateArns, context),
740
717
  }),
741
- ...(input.serviceType !== undefined && input.serviceType !== null && { serviceType: input.serviceType }),
742
- ...(input.tags !== undefined &&
743
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
744
- ...(input.validationCertificateArn !== undefined &&
745
- input.validationCertificateArn !== null && { validationCertificateArn: input.validationCertificateArn }),
718
+ ...(input.serviceType != null && { serviceType: input.serviceType }),
719
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
720
+ ...(input.validationCertificateArn != null && { validationCertificateArn: input.validationCertificateArn }),
746
721
  });
747
722
  return new protocol_http_1.HttpRequest({
748
723
  protocol,
@@ -773,13 +748,11 @@ const serializeAws_restJson1CreateDynamicThingGroupCommand = async (input, conte
773
748
  }
774
749
  let body;
775
750
  body = JSON.stringify({
776
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
777
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
778
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
779
- ...(input.tags !== undefined &&
780
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
781
- ...(input.thingGroupProperties !== undefined &&
782
- input.thingGroupProperties !== null && {
751
+ ...(input.indexName != null && { indexName: input.indexName }),
752
+ ...(input.queryString != null && { queryString: input.queryString }),
753
+ ...(input.queryVersion != null && { queryVersion: input.queryVersion }),
754
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
755
+ ...(input.thingGroupProperties != null && {
783
756
  thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
784
757
  }),
785
758
  });
@@ -812,20 +785,17 @@ const serializeAws_restJson1CreateFleetMetricCommand = async (input, context) =>
812
785
  }
813
786
  let body;
814
787
  body = JSON.stringify({
815
- ...(input.aggregationField !== undefined &&
816
- input.aggregationField !== null && { aggregationField: input.aggregationField }),
817
- ...(input.aggregationType !== undefined &&
818
- input.aggregationType !== null && {
788
+ ...(input.aggregationField != null && { aggregationField: input.aggregationField }),
789
+ ...(input.aggregationType != null && {
819
790
  aggregationType: serializeAws_restJson1AggregationType(input.aggregationType, context),
820
791
  }),
821
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
822
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
823
- ...(input.period !== undefined && input.period !== null && { period: input.period }),
824
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
825
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
826
- ...(input.tags !== undefined &&
827
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
828
- ...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
792
+ ...(input.description != null && { description: input.description }),
793
+ ...(input.indexName != null && { indexName: input.indexName }),
794
+ ...(input.period != null && { period: input.period }),
795
+ ...(input.queryString != null && { queryString: input.queryString }),
796
+ ...(input.queryVersion != null && { queryVersion: input.queryVersion }),
797
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
798
+ ...(input.unit != null && { unit: input.unit }),
829
799
  });
830
800
  return new protocol_http_1.HttpRequest({
831
801
  protocol,
@@ -856,39 +826,28 @@ const serializeAws_restJson1CreateJobCommand = async (input, context) => {
856
826
  }
857
827
  let body;
858
828
  body = JSON.stringify({
859
- ...(input.abortConfig !== undefined &&
860
- input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
861
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
862
- ...(input.document !== undefined && input.document !== null && { document: input.document }),
863
- ...(input.documentParameters !== undefined &&
864
- input.documentParameters !== null && {
829
+ ...(input.abortConfig != null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
830
+ ...(input.description != null && { description: input.description }),
831
+ ...(input.document != null && { document: input.document }),
832
+ ...(input.documentParameters != null && {
865
833
  documentParameters: serializeAws_restJson1ParameterMap(input.documentParameters, context),
866
834
  }),
867
- ...(input.documentSource !== undefined &&
868
- input.documentSource !== null && { documentSource: input.documentSource }),
869
- ...(input.jobExecutionsRetryConfig !== undefined &&
870
- input.jobExecutionsRetryConfig !== null && {
835
+ ...(input.documentSource != null && { documentSource: input.documentSource }),
836
+ ...(input.jobExecutionsRetryConfig != null && {
871
837
  jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
872
838
  }),
873
- ...(input.jobExecutionsRolloutConfig !== undefined &&
874
- input.jobExecutionsRolloutConfig !== null && {
839
+ ...(input.jobExecutionsRolloutConfig != null && {
875
840
  jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
876
841
  }),
877
- ...(input.jobTemplateArn !== undefined &&
878
- input.jobTemplateArn !== null && { jobTemplateArn: input.jobTemplateArn }),
879
- ...(input.namespaceId !== undefined && input.namespaceId !== null && { namespaceId: input.namespaceId }),
880
- ...(input.presignedUrlConfig !== undefined &&
881
- input.presignedUrlConfig !== null && {
842
+ ...(input.jobTemplateArn != null && { jobTemplateArn: input.jobTemplateArn }),
843
+ ...(input.namespaceId != null && { namespaceId: input.namespaceId }),
844
+ ...(input.presignedUrlConfig != null && {
882
845
  presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
883
846
  }),
884
- ...(input.tags !== undefined &&
885
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
886
- ...(input.targetSelection !== undefined &&
887
- input.targetSelection !== null && { targetSelection: input.targetSelection }),
888
- ...(input.targets !== undefined &&
889
- input.targets !== null && { targets: serializeAws_restJson1JobTargets(input.targets, context) }),
890
- ...(input.timeoutConfig !== undefined &&
891
- input.timeoutConfig !== null && {
847
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
848
+ ...(input.targetSelection != null && { targetSelection: input.targetSelection }),
849
+ ...(input.targets != null && { targets: serializeAws_restJson1JobTargets(input.targets, context) }),
850
+ ...(input.timeoutConfig != null && {
892
851
  timeoutConfig: serializeAws_restJson1TimeoutConfig(input.timeoutConfig, context),
893
852
  }),
894
853
  });
@@ -921,29 +880,22 @@ const serializeAws_restJson1CreateJobTemplateCommand = async (input, context) =>
921
880
  }
922
881
  let body;
923
882
  body = JSON.stringify({
924
- ...(input.abortConfig !== undefined &&
925
- input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
926
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
927
- ...(input.document !== undefined && input.document !== null && { document: input.document }),
928
- ...(input.documentSource !== undefined &&
929
- input.documentSource !== null && { documentSource: input.documentSource }),
930
- ...(input.jobArn !== undefined && input.jobArn !== null && { jobArn: input.jobArn }),
931
- ...(input.jobExecutionsRetryConfig !== undefined &&
932
- input.jobExecutionsRetryConfig !== null && {
883
+ ...(input.abortConfig != null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
884
+ ...(input.description != null && { description: input.description }),
885
+ ...(input.document != null && { document: input.document }),
886
+ ...(input.documentSource != null && { documentSource: input.documentSource }),
887
+ ...(input.jobArn != null && { jobArn: input.jobArn }),
888
+ ...(input.jobExecutionsRetryConfig != null && {
933
889
  jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
934
890
  }),
935
- ...(input.jobExecutionsRolloutConfig !== undefined &&
936
- input.jobExecutionsRolloutConfig !== null && {
891
+ ...(input.jobExecutionsRolloutConfig != null && {
937
892
  jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
938
893
  }),
939
- ...(input.presignedUrlConfig !== undefined &&
940
- input.presignedUrlConfig !== null && {
894
+ ...(input.presignedUrlConfig != null && {
941
895
  presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
942
896
  }),
943
- ...(input.tags !== undefined &&
944
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
945
- ...(input.timeoutConfig !== undefined &&
946
- input.timeoutConfig !== null && {
897
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
898
+ ...(input.timeoutConfig != null && {
947
899
  timeoutConfig: serializeAws_restJson1TimeoutConfig(input.timeoutConfig, context),
948
900
  }),
949
901
  });
@@ -996,13 +948,11 @@ const serializeAws_restJson1CreateMitigationActionCommand = async (input, contex
996
948
  }
997
949
  let body;
998
950
  body = JSON.stringify({
999
- ...(input.actionParams !== undefined &&
1000
- input.actionParams !== null && {
951
+ ...(input.actionParams != null && {
1001
952
  actionParams: serializeAws_restJson1MitigationActionParams(input.actionParams, context),
1002
953
  }),
1003
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
1004
- ...(input.tags !== undefined &&
1005
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
954
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
955
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1006
956
  });
1007
957
  return new protocol_http_1.HttpRequest({
1008
958
  protocol,
@@ -1033,38 +983,28 @@ const serializeAws_restJson1CreateOTAUpdateCommand = async (input, context) => {
1033
983
  }
1034
984
  let body;
1035
985
  body = JSON.stringify({
1036
- ...(input.additionalParameters !== undefined &&
1037
- input.additionalParameters !== null && {
986
+ ...(input.additionalParameters != null && {
1038
987
  additionalParameters: serializeAws_restJson1AdditionalParameterMap(input.additionalParameters, context),
1039
988
  }),
1040
- ...(input.awsJobAbortConfig !== undefined &&
1041
- input.awsJobAbortConfig !== null && {
989
+ ...(input.awsJobAbortConfig != null && {
1042
990
  awsJobAbortConfig: serializeAws_restJson1AwsJobAbortConfig(input.awsJobAbortConfig, context),
1043
991
  }),
1044
- ...(input.awsJobExecutionsRolloutConfig !== undefined &&
1045
- input.awsJobExecutionsRolloutConfig !== null && {
992
+ ...(input.awsJobExecutionsRolloutConfig != null && {
1046
993
  awsJobExecutionsRolloutConfig: serializeAws_restJson1AwsJobExecutionsRolloutConfig(input.awsJobExecutionsRolloutConfig, context),
1047
994
  }),
1048
- ...(input.awsJobPresignedUrlConfig !== undefined &&
1049
- input.awsJobPresignedUrlConfig !== null && {
995
+ ...(input.awsJobPresignedUrlConfig != null && {
1050
996
  awsJobPresignedUrlConfig: serializeAws_restJson1AwsJobPresignedUrlConfig(input.awsJobPresignedUrlConfig, context),
1051
997
  }),
1052
- ...(input.awsJobTimeoutConfig !== undefined &&
1053
- input.awsJobTimeoutConfig !== null && {
998
+ ...(input.awsJobTimeoutConfig != null && {
1054
999
  awsJobTimeoutConfig: serializeAws_restJson1AwsJobTimeoutConfig(input.awsJobTimeoutConfig, context),
1055
1000
  }),
1056
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1057
- ...(input.files !== undefined &&
1058
- input.files !== null && { files: serializeAws_restJson1OTAUpdateFiles(input.files, context) }),
1059
- ...(input.protocols !== undefined &&
1060
- input.protocols !== null && { protocols: serializeAws_restJson1Protocols(input.protocols, context) }),
1061
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
1062
- ...(input.tags !== undefined &&
1063
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1064
- ...(input.targetSelection !== undefined &&
1065
- input.targetSelection !== null && { targetSelection: input.targetSelection }),
1066
- ...(input.targets !== undefined &&
1067
- input.targets !== null && { targets: serializeAws_restJson1Targets(input.targets, context) }),
1001
+ ...(input.description != null && { description: input.description }),
1002
+ ...(input.files != null && { files: serializeAws_restJson1OTAUpdateFiles(input.files, context) }),
1003
+ ...(input.protocols != null && { protocols: serializeAws_restJson1Protocols(input.protocols, context) }),
1004
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
1005
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1006
+ ...(input.targetSelection != null && { targetSelection: input.targetSelection }),
1007
+ ...(input.targets != null && { targets: serializeAws_restJson1Targets(input.targets, context) }),
1068
1008
  });
1069
1009
  return new protocol_http_1.HttpRequest({
1070
1010
  protocol,
@@ -1095,10 +1035,8 @@ const serializeAws_restJson1CreatePolicyCommand = async (input, context) => {
1095
1035
  }
1096
1036
  let body;
1097
1037
  body = JSON.stringify({
1098
- ...(input.policyDocument !== undefined &&
1099
- input.policyDocument !== null && { policyDocument: input.policyDocument }),
1100
- ...(input.tags !== undefined &&
1101
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1038
+ ...(input.policyDocument != null && { policyDocument: input.policyDocument }),
1039
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1102
1040
  });
1103
1041
  return new protocol_http_1.HttpRequest({
1104
1042
  protocol,
@@ -1132,8 +1070,7 @@ const serializeAws_restJson1CreatePolicyVersionCommand = async (input, context)
1132
1070
  };
1133
1071
  let body;
1134
1072
  body = JSON.stringify({
1135
- ...(input.policyDocument !== undefined &&
1136
- input.policyDocument !== null && { policyDocument: input.policyDocument }),
1073
+ ...(input.policyDocument != null && { policyDocument: input.policyDocument }),
1137
1074
  });
1138
1075
  return new protocol_http_1.HttpRequest({
1139
1076
  protocol,
@@ -1182,18 +1119,15 @@ const serializeAws_restJson1CreateProvisioningTemplateCommand = async (input, co
1182
1119
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/provisioning-templates";
1183
1120
  let body;
1184
1121
  body = JSON.stringify({
1185
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1186
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
1187
- ...(input.preProvisioningHook !== undefined &&
1188
- input.preProvisioningHook !== null && {
1122
+ ...(input.description != null && { description: input.description }),
1123
+ ...(input.enabled != null && { enabled: input.enabled }),
1124
+ ...(input.preProvisioningHook != null && {
1189
1125
  preProvisioningHook: serializeAws_restJson1ProvisioningHook(input.preProvisioningHook, context),
1190
1126
  }),
1191
- ...(input.provisioningRoleArn !== undefined &&
1192
- input.provisioningRoleArn !== null && { provisioningRoleArn: input.provisioningRoleArn }),
1193
- ...(input.tags !== undefined &&
1194
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1195
- ...(input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody }),
1196
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
1127
+ ...(input.provisioningRoleArn != null && { provisioningRoleArn: input.provisioningRoleArn }),
1128
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1129
+ ...(input.templateBody != null && { templateBody: input.templateBody }),
1130
+ ...(input.templateName != null && { templateName: input.templateName }),
1197
1131
  });
1198
1132
  return new protocol_http_1.HttpRequest({
1199
1133
  protocol,
@@ -1228,7 +1162,7 @@ const serializeAws_restJson1CreateProvisioningTemplateVersionCommand = async (in
1228
1162
  };
1229
1163
  let body;
1230
1164
  body = JSON.stringify({
1231
- ...(input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody }),
1165
+ ...(input.templateBody != null && { templateBody: input.templateBody }),
1232
1166
  });
1233
1167
  return new protocol_http_1.HttpRequest({
1234
1168
  protocol,
@@ -1260,11 +1194,9 @@ const serializeAws_restJson1CreateRoleAliasCommand = async (input, context) => {
1260
1194
  }
1261
1195
  let body;
1262
1196
  body = JSON.stringify({
1263
- ...(input.credentialDurationSeconds !== undefined &&
1264
- input.credentialDurationSeconds !== null && { credentialDurationSeconds: input.credentialDurationSeconds }),
1265
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
1266
- ...(input.tags !== undefined &&
1267
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1197
+ ...(input.credentialDurationSeconds != null && { credentialDurationSeconds: input.credentialDurationSeconds }),
1198
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
1199
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1268
1200
  });
1269
1201
  return new protocol_http_1.HttpRequest({
1270
1202
  protocol,
@@ -1296,13 +1228,11 @@ const serializeAws_restJson1CreateScheduledAuditCommand = async (input, context)
1296
1228
  }
1297
1229
  let body;
1298
1230
  body = JSON.stringify({
1299
- ...(input.dayOfMonth !== undefined && input.dayOfMonth !== null && { dayOfMonth: input.dayOfMonth }),
1300
- ...(input.dayOfWeek !== undefined && input.dayOfWeek !== null && { dayOfWeek: input.dayOfWeek }),
1301
- ...(input.frequency !== undefined && input.frequency !== null && { frequency: input.frequency }),
1302
- ...(input.tags !== undefined &&
1303
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1304
- ...(input.targetCheckNames !== undefined &&
1305
- input.targetCheckNames !== null && {
1231
+ ...(input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth }),
1232
+ ...(input.dayOfWeek != null && { dayOfWeek: input.dayOfWeek }),
1233
+ ...(input.frequency != null && { frequency: input.frequency }),
1234
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1235
+ ...(input.targetCheckNames != null && {
1306
1236
  targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
1307
1237
  }),
1308
1238
  });
@@ -1335,22 +1265,18 @@ const serializeAws_restJson1CreateSecurityProfileCommand = async (input, context
1335
1265
  }
1336
1266
  let body;
1337
1267
  body = JSON.stringify({
1338
- ...(input.additionalMetricsToRetain !== undefined &&
1339
- input.additionalMetricsToRetain !== null && {
1268
+ ...(input.additionalMetricsToRetain != null && {
1340
1269
  additionalMetricsToRetain: serializeAws_restJson1AdditionalMetricsToRetainList(input.additionalMetricsToRetain, context),
1341
1270
  }),
1342
- ...(input.additionalMetricsToRetainV2 !== undefined &&
1343
- input.additionalMetricsToRetainV2 !== null && {
1271
+ ...(input.additionalMetricsToRetainV2 != null && {
1344
1272
  additionalMetricsToRetainV2: serializeAws_restJson1AdditionalMetricsToRetainV2List(input.additionalMetricsToRetainV2, context),
1345
1273
  }),
1346
- ...(input.alertTargets !== undefined &&
1347
- input.alertTargets !== null && { alertTargets: serializeAws_restJson1AlertTargets(input.alertTargets, context) }),
1348
- ...(input.behaviors !== undefined &&
1349
- input.behaviors !== null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
1350
- ...(input.securityProfileDescription !== undefined &&
1351
- input.securityProfileDescription !== null && { securityProfileDescription: input.securityProfileDescription }),
1352
- ...(input.tags !== undefined &&
1353
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1274
+ ...(input.alertTargets != null && {
1275
+ alertTargets: serializeAws_restJson1AlertTargets(input.alertTargets, context),
1276
+ }),
1277
+ ...(input.behaviors != null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
1278
+ ...(input.securityProfileDescription != null && { securityProfileDescription: input.securityProfileDescription }),
1279
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1354
1280
  });
1355
1281
  return new protocol_http_1.HttpRequest({
1356
1282
  protocol,
@@ -1381,12 +1307,10 @@ const serializeAws_restJson1CreateStreamCommand = async (input, context) => {
1381
1307
  }
1382
1308
  let body;
1383
1309
  body = JSON.stringify({
1384
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1385
- ...(input.files !== undefined &&
1386
- input.files !== null && { files: serializeAws_restJson1StreamFiles(input.files, context) }),
1387
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
1388
- ...(input.tags !== undefined &&
1389
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1310
+ ...(input.description != null && { description: input.description }),
1311
+ ...(input.files != null && { files: serializeAws_restJson1StreamFiles(input.files, context) }),
1312
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
1313
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1390
1314
  });
1391
1315
  return new protocol_http_1.HttpRequest({
1392
1316
  protocol,
@@ -1417,13 +1341,11 @@ const serializeAws_restJson1CreateThingCommand = async (input, context) => {
1417
1341
  }
1418
1342
  let body;
1419
1343
  body = JSON.stringify({
1420
- ...(input.attributePayload !== undefined &&
1421
- input.attributePayload !== null && {
1344
+ ...(input.attributePayload != null && {
1422
1345
  attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
1423
1346
  }),
1424
- ...(input.billingGroupName !== undefined &&
1425
- input.billingGroupName !== null && { billingGroupName: input.billingGroupName }),
1426
- ...(input.thingTypeName !== undefined && input.thingTypeName !== null && { thingTypeName: input.thingTypeName }),
1347
+ ...(input.billingGroupName != null && { billingGroupName: input.billingGroupName }),
1348
+ ...(input.thingTypeName != null && { thingTypeName: input.thingTypeName }),
1427
1349
  });
1428
1350
  return new protocol_http_1.HttpRequest({
1429
1351
  protocol,
@@ -1454,12 +1376,9 @@ const serializeAws_restJson1CreateThingGroupCommand = async (input, context) =>
1454
1376
  }
1455
1377
  let body;
1456
1378
  body = JSON.stringify({
1457
- ...(input.parentGroupName !== undefined &&
1458
- input.parentGroupName !== null && { parentGroupName: input.parentGroupName }),
1459
- ...(input.tags !== undefined &&
1460
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1461
- ...(input.thingGroupProperties !== undefined &&
1462
- input.thingGroupProperties !== null && {
1379
+ ...(input.parentGroupName != null && { parentGroupName: input.parentGroupName }),
1380
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1381
+ ...(input.thingGroupProperties != null && {
1463
1382
  thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
1464
1383
  }),
1465
1384
  });
@@ -1492,10 +1411,8 @@ const serializeAws_restJson1CreateThingTypeCommand = async (input, context) => {
1492
1411
  }
1493
1412
  let body;
1494
1413
  body = JSON.stringify({
1495
- ...(input.tags !== undefined &&
1496
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1497
- ...(input.thingTypeProperties !== undefined &&
1498
- input.thingTypeProperties !== null && {
1414
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
1415
+ ...(input.thingTypeProperties != null && {
1499
1416
  thingTypeProperties: serializeAws_restJson1ThingTypeProperties(input.thingTypeProperties, context),
1500
1417
  }),
1501
1418
  });
@@ -1554,8 +1471,7 @@ const serializeAws_restJson1CreateTopicRuleDestinationCommand = async (input, co
1554
1471
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
1555
1472
  let body;
1556
1473
  body = JSON.stringify({
1557
- ...(input.destinationConfiguration !== undefined &&
1558
- input.destinationConfiguration !== null && {
1474
+ ...(input.destinationConfiguration != null && {
1559
1475
  destinationConfiguration: serializeAws_restJson1TopicRuleDestinationConfiguration(input.destinationConfiguration, context),
1560
1476
  }),
1561
1477
  });
@@ -1598,9 +1514,8 @@ const serializeAws_restJson1DeleteAuditSuppressionCommand = async (input, contex
1598
1514
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/delete";
1599
1515
  let body;
1600
1516
  body = JSON.stringify({
1601
- ...(input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName }),
1602
- ...(input.resourceIdentifier !== undefined &&
1603
- input.resourceIdentifier !== null && {
1517
+ ...(input.checkName != null && { checkName: input.checkName }),
1518
+ ...(input.resourceIdentifier != null && {
1604
1519
  resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
1605
1520
  }),
1606
1521
  });
@@ -2466,7 +2381,7 @@ const serializeAws_restJson1DeprecateThingTypeCommand = async (input, context) =
2466
2381
  }
2467
2382
  let body;
2468
2383
  body = JSON.stringify({
2469
- ...(input.undoDeprecate !== undefined && input.undoDeprecate !== null && { undoDeprecate: input.undoDeprecate }),
2384
+ ...(input.undoDeprecate != null && { undoDeprecate: input.undoDeprecate }),
2470
2385
  });
2471
2386
  return new protocol_http_1.HttpRequest({
2472
2387
  protocol,
@@ -2558,9 +2473,8 @@ const serializeAws_restJson1DescribeAuditSuppressionCommand = async (input, cont
2558
2473
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/describe";
2559
2474
  let body;
2560
2475
  body = JSON.stringify({
2561
- ...(input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName }),
2562
- ...(input.resourceIdentifier !== undefined &&
2563
- input.resourceIdentifier !== null && {
2476
+ ...(input.checkName != null && { checkName: input.checkName }),
2477
+ ...(input.resourceIdentifier != null && {
2564
2478
  resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
2565
2479
  }),
2566
2480
  });
@@ -3358,7 +3272,7 @@ const serializeAws_restJson1DetachPolicyCommand = async (input, context) => {
3358
3272
  }
3359
3273
  let body;
3360
3274
  body = JSON.stringify({
3361
- ...(input.target !== undefined && input.target !== null && { target: input.target }),
3275
+ ...(input.target != null && { target: input.target }),
3362
3276
  });
3363
3277
  return new protocol_http_1.HttpRequest({
3364
3278
  protocol,
@@ -3540,15 +3454,13 @@ const serializeAws_restJson1GetBucketsAggregationCommand = async (input, context
3540
3454
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/indices/buckets";
3541
3455
  let body;
3542
3456
  body = JSON.stringify({
3543
- ...(input.aggregationField !== undefined &&
3544
- input.aggregationField !== null && { aggregationField: input.aggregationField }),
3545
- ...(input.bucketsAggregationType !== undefined &&
3546
- input.bucketsAggregationType !== null && {
3457
+ ...(input.aggregationField != null && { aggregationField: input.aggregationField }),
3458
+ ...(input.bucketsAggregationType != null && {
3547
3459
  bucketsAggregationType: serializeAws_restJson1BucketsAggregationType(input.bucketsAggregationType, context),
3548
3460
  }),
3549
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
3550
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
3551
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
3461
+ ...(input.indexName != null && { indexName: input.indexName }),
3462
+ ...(input.queryString != null && { queryString: input.queryString }),
3463
+ ...(input.queryVersion != null && { queryVersion: input.queryVersion }),
3552
3464
  });
3553
3465
  return new protocol_http_1.HttpRequest({
3554
3466
  protocol,
@@ -3569,11 +3481,10 @@ const serializeAws_restJson1GetCardinalityCommand = async (input, context) => {
3569
3481
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/indices/cardinality";
3570
3482
  let body;
3571
3483
  body = JSON.stringify({
3572
- ...(input.aggregationField !== undefined &&
3573
- input.aggregationField !== null && { aggregationField: input.aggregationField }),
3574
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
3575
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
3576
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
3484
+ ...(input.aggregationField != null && { aggregationField: input.aggregationField }),
3485
+ ...(input.indexName != null && { indexName: input.indexName }),
3486
+ ...(input.queryString != null && { queryString: input.queryString }),
3487
+ ...(input.queryVersion != null && { queryVersion: input.queryVersion }),
3577
3488
  });
3578
3489
  return new protocol_http_1.HttpRequest({
3579
3490
  protocol,
@@ -3597,9 +3508,8 @@ const serializeAws_restJson1GetEffectivePoliciesCommand = async (input, context)
3597
3508
  };
3598
3509
  let body;
3599
3510
  body = JSON.stringify({
3600
- ...(input.cognitoIdentityPoolId !== undefined &&
3601
- input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
3602
- ...(input.principal !== undefined && input.principal !== null && { principal: input.principal }),
3511
+ ...(input.cognitoIdentityPoolId != null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
3512
+ ...(input.principal != null && { principal: input.principal }),
3603
3513
  });
3604
3514
  return new protocol_http_1.HttpRequest({
3605
3515
  protocol,
@@ -3711,13 +3621,11 @@ const serializeAws_restJson1GetPercentilesCommand = async (input, context) => {
3711
3621
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/indices/percentiles";
3712
3622
  let body;
3713
3623
  body = JSON.stringify({
3714
- ...(input.aggregationField !== undefined &&
3715
- input.aggregationField !== null && { aggregationField: input.aggregationField }),
3716
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
3717
- ...(input.percents !== undefined &&
3718
- input.percents !== null && { percents: serializeAws_restJson1PercentList(input.percents, context) }),
3719
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
3720
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
3624
+ ...(input.aggregationField != null && { aggregationField: input.aggregationField }),
3625
+ ...(input.indexName != null && { indexName: input.indexName }),
3626
+ ...(input.percents != null && { percents: serializeAws_restJson1PercentList(input.percents, context) }),
3627
+ ...(input.queryString != null && { queryString: input.queryString }),
3628
+ ...(input.queryVersion != null && { queryVersion: input.queryVersion }),
3721
3629
  });
3722
3630
  return new protocol_http_1.HttpRequest({
3723
3631
  protocol,
@@ -3820,11 +3728,10 @@ const serializeAws_restJson1GetStatisticsCommand = async (input, context) => {
3820
3728
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/indices/statistics";
3821
3729
  let body;
3822
3730
  body = JSON.stringify({
3823
- ...(input.aggregationField !== undefined &&
3824
- input.aggregationField !== null && { aggregationField: input.aggregationField }),
3825
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
3826
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
3827
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
3731
+ ...(input.aggregationField != null && { aggregationField: input.aggregationField }),
3732
+ ...(input.indexName != null && { indexName: input.indexName }),
3733
+ ...(input.queryString != null && { queryString: input.queryString }),
3734
+ ...(input.queryVersion != null && { queryVersion: input.queryVersion }),
3828
3735
  });
3829
3736
  return new protocol_http_1.HttpRequest({
3830
3737
  protocol,
@@ -3977,20 +3884,16 @@ const serializeAws_restJson1ListAuditFindingsCommand = async (input, context) =>
3977
3884
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/findings";
3978
3885
  let body;
3979
3886
  body = JSON.stringify({
3980
- ...(input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName }),
3981
- ...(input.endTime !== undefined &&
3982
- input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
3983
- ...(input.listSuppressedFindings !== undefined &&
3984
- input.listSuppressedFindings !== null && { listSuppressedFindings: input.listSuppressedFindings }),
3985
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
3986
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
3987
- ...(input.resourceIdentifier !== undefined &&
3988
- input.resourceIdentifier !== null && {
3887
+ ...(input.checkName != null && { checkName: input.checkName }),
3888
+ ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
3889
+ ...(input.listSuppressedFindings != null && { listSuppressedFindings: input.listSuppressedFindings }),
3890
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3891
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3892
+ ...(input.resourceIdentifier != null && {
3989
3893
  resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
3990
3894
  }),
3991
- ...(input.startTime !== undefined &&
3992
- input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
3993
- ...(input.taskId !== undefined && input.taskId !== null && { taskId: input.taskId }),
3895
+ ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
3896
+ ...(input.taskId != null && { taskId: input.taskId }),
3994
3897
  });
3995
3898
  return new protocol_http_1.HttpRequest({
3996
3899
  protocol,
@@ -4061,13 +3964,11 @@ const serializeAws_restJson1ListAuditSuppressionsCommand = async (input, context
4061
3964
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/list";
4062
3965
  let body;
4063
3966
  body = JSON.stringify({
4064
- ...(input.ascendingOrder !== undefined &&
4065
- input.ascendingOrder !== null && { ascendingOrder: input.ascendingOrder }),
4066
- ...(input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName }),
4067
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
4068
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
4069
- ...(input.resourceIdentifier !== undefined &&
4070
- input.resourceIdentifier !== null && {
3967
+ ...(input.ascendingOrder != null && { ascendingOrder: input.ascendingOrder }),
3968
+ ...(input.checkName != null && { checkName: input.checkName }),
3969
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
3970
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
3971
+ ...(input.resourceIdentifier != null && {
4071
3972
  resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
4072
3973
  }),
4073
3974
  });
@@ -5344,10 +5245,8 @@ const serializeAws_restJson1PutVerificationStateOnViolationCommand = async (inpu
5344
5245
  }
5345
5246
  let body;
5346
5247
  body = JSON.stringify({
5347
- ...(input.verificationState !== undefined &&
5348
- input.verificationState !== null && { verificationState: input.verificationState }),
5349
- ...(input.verificationStateDescription !== undefined &&
5350
- input.verificationStateDescription !== null && {
5248
+ ...(input.verificationState != null && { verificationState: input.verificationState }),
5249
+ ...(input.verificationStateDescription != null && {
5351
5250
  verificationStateDescription: input.verificationStateDescription,
5352
5251
  }),
5353
5252
  });
@@ -5374,17 +5273,13 @@ const serializeAws_restJson1RegisterCACertificateCommand = async (input, context
5374
5273
  };
5375
5274
  let body;
5376
5275
  body = JSON.stringify({
5377
- ...(input.caCertificate !== undefined && input.caCertificate !== null && { caCertificate: input.caCertificate }),
5378
- ...(input.certificateMode !== undefined &&
5379
- input.certificateMode !== null && { certificateMode: input.certificateMode }),
5380
- ...(input.registrationConfig !== undefined &&
5381
- input.registrationConfig !== null && {
5276
+ ...(input.caCertificate != null && { caCertificate: input.caCertificate }),
5277
+ ...(input.certificateMode != null && { certificateMode: input.certificateMode }),
5278
+ ...(input.registrationConfig != null && {
5382
5279
  registrationConfig: serializeAws_restJson1RegistrationConfig(input.registrationConfig, context),
5383
5280
  }),
5384
- ...(input.tags !== undefined &&
5385
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
5386
- ...(input.verificationCertificate !== undefined &&
5387
- input.verificationCertificate !== null && { verificationCertificate: input.verificationCertificate }),
5281
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
5282
+ ...(input.verificationCertificate != null && { verificationCertificate: input.verificationCertificate }),
5388
5283
  });
5389
5284
  return new protocol_http_1.HttpRequest({
5390
5285
  protocol,
@@ -5409,11 +5304,9 @@ const serializeAws_restJson1RegisterCertificateCommand = async (input, context)
5409
5304
  };
5410
5305
  let body;
5411
5306
  body = JSON.stringify({
5412
- ...(input.caCertificatePem !== undefined &&
5413
- input.caCertificatePem !== null && { caCertificatePem: input.caCertificatePem }),
5414
- ...(input.certificatePem !== undefined &&
5415
- input.certificatePem !== null && { certificatePem: input.certificatePem }),
5416
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
5307
+ ...(input.caCertificatePem != null && { caCertificatePem: input.caCertificatePem }),
5308
+ ...(input.certificatePem != null && { certificatePem: input.certificatePem }),
5309
+ ...(input.status != null && { status: input.status }),
5417
5310
  });
5418
5311
  return new protocol_http_1.HttpRequest({
5419
5312
  protocol,
@@ -5435,9 +5328,8 @@ const serializeAws_restJson1RegisterCertificateWithoutCACommand = async (input,
5435
5328
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/certificate/register-no-ca";
5436
5329
  let body;
5437
5330
  body = JSON.stringify({
5438
- ...(input.certificatePem !== undefined &&
5439
- input.certificatePem !== null && { certificatePem: input.certificatePem }),
5440
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
5331
+ ...(input.certificatePem != null && { certificatePem: input.certificatePem }),
5332
+ ...(input.status != null && { status: input.status }),
5441
5333
  });
5442
5334
  return new protocol_http_1.HttpRequest({
5443
5335
  protocol,
@@ -5458,9 +5350,8 @@ const serializeAws_restJson1RegisterThingCommand = async (input, context) => {
5458
5350
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/things";
5459
5351
  let body;
5460
5352
  body = JSON.stringify({
5461
- ...(input.parameters !== undefined &&
5462
- input.parameters !== null && { parameters: serializeAws_restJson1Parameters(input.parameters, context) }),
5463
- ...(input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody }),
5353
+ ...(input.parameters != null && { parameters: serializeAws_restJson1Parameters(input.parameters, context) }),
5354
+ ...(input.templateBody != null && { templateBody: input.templateBody }),
5464
5355
  });
5465
5356
  return new protocol_http_1.HttpRequest({
5466
5357
  protocol,
@@ -5492,7 +5383,7 @@ const serializeAws_restJson1RejectCertificateTransferCommand = async (input, con
5492
5383
  }
5493
5384
  let body;
5494
5385
  body = JSON.stringify({
5495
- ...(input.rejectReason !== undefined && input.rejectReason !== null && { rejectReason: input.rejectReason }),
5386
+ ...(input.rejectReason != null && { rejectReason: input.rejectReason }),
5496
5387
  });
5497
5388
  return new protocol_http_1.HttpRequest({
5498
5389
  protocol,
@@ -5514,12 +5405,10 @@ const serializeAws_restJson1RemoveThingFromBillingGroupCommand = async (input, c
5514
5405
  "/billing-groups/removeThingFromBillingGroup";
5515
5406
  let body;
5516
5407
  body = JSON.stringify({
5517
- ...(input.billingGroupArn !== undefined &&
5518
- input.billingGroupArn !== null && { billingGroupArn: input.billingGroupArn }),
5519
- ...(input.billingGroupName !== undefined &&
5520
- input.billingGroupName !== null && { billingGroupName: input.billingGroupName }),
5521
- ...(input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }),
5522
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
5408
+ ...(input.billingGroupArn != null && { billingGroupArn: input.billingGroupArn }),
5409
+ ...(input.billingGroupName != null && { billingGroupName: input.billingGroupName }),
5410
+ ...(input.thingArn != null && { thingArn: input.thingArn }),
5411
+ ...(input.thingName != null && { thingName: input.thingName }),
5523
5412
  });
5524
5413
  return new protocol_http_1.HttpRequest({
5525
5414
  protocol,
@@ -5540,11 +5429,10 @@ const serializeAws_restJson1RemoveThingFromThingGroupCommand = async (input, con
5540
5429
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/removeThingFromThingGroup";
5541
5430
  let body;
5542
5431
  body = JSON.stringify({
5543
- ...(input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }),
5544
- ...(input.thingGroupArn !== undefined && input.thingGroupArn !== null && { thingGroupArn: input.thingGroupArn }),
5545
- ...(input.thingGroupName !== undefined &&
5546
- input.thingGroupName !== null && { thingGroupName: input.thingGroupName }),
5547
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
5432
+ ...(input.thingArn != null && { thingArn: input.thingArn }),
5433
+ ...(input.thingGroupArn != null && { thingGroupArn: input.thingGroupArn }),
5434
+ ...(input.thingGroupName != null && { thingGroupName: input.thingGroupName }),
5435
+ ...(input.thingName != null && { thingName: input.thingName }),
5548
5436
  });
5549
5437
  return new protocol_http_1.HttpRequest({
5550
5438
  protocol,
@@ -5600,11 +5488,11 @@ const serializeAws_restJson1SearchIndexCommand = async (input, context) => {
5600
5488
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/indices/search";
5601
5489
  let body;
5602
5490
  body = JSON.stringify({
5603
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
5604
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
5605
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5606
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
5607
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
5491
+ ...(input.indexName != null && { indexName: input.indexName }),
5492
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
5493
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
5494
+ ...(input.queryString != null && { queryString: input.queryString }),
5495
+ ...(input.queryVersion != null && { queryVersion: input.queryVersion }),
5608
5496
  });
5609
5497
  return new protocol_http_1.HttpRequest({
5610
5498
  protocol,
@@ -5625,8 +5513,7 @@ const serializeAws_restJson1SetDefaultAuthorizerCommand = async (input, context)
5625
5513
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/default-authorizer";
5626
5514
  let body;
5627
5515
  body = JSON.stringify({
5628
- ...(input.authorizerName !== undefined &&
5629
- input.authorizerName !== null && { authorizerName: input.authorizerName }),
5516
+ ...(input.authorizerName != null && { authorizerName: input.authorizerName }),
5630
5517
  });
5631
5518
  return new protocol_http_1.HttpRequest({
5632
5519
  protocol,
@@ -5709,9 +5596,8 @@ const serializeAws_restJson1SetV2LoggingLevelCommand = async (input, context) =>
5709
5596
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel";
5710
5597
  let body;
5711
5598
  body = JSON.stringify({
5712
- ...(input.logLevel !== undefined && input.logLevel !== null && { logLevel: input.logLevel }),
5713
- ...(input.logTarget !== undefined &&
5714
- input.logTarget !== null && { logTarget: serializeAws_restJson1LogTarget(input.logTarget, context) }),
5599
+ ...(input.logLevel != null && { logLevel: input.logLevel }),
5600
+ ...(input.logTarget != null && { logTarget: serializeAws_restJson1LogTarget(input.logTarget, context) }),
5715
5601
  });
5716
5602
  return new protocol_http_1.HttpRequest({
5717
5603
  protocol,
@@ -5732,11 +5618,9 @@ const serializeAws_restJson1SetV2LoggingOptionsCommand = async (input, context)
5732
5618
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingOptions";
5733
5619
  let body;
5734
5620
  body = JSON.stringify({
5735
- ...(input.defaultLogLevel !== undefined &&
5736
- input.defaultLogLevel !== null && { defaultLogLevel: input.defaultLogLevel }),
5737
- ...(input.disableAllLogs !== undefined &&
5738
- input.disableAllLogs !== null && { disableAllLogs: input.disableAllLogs }),
5739
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
5621
+ ...(input.defaultLogLevel != null && { defaultLogLevel: input.defaultLogLevel }),
5622
+ ...(input.disableAllLogs != null && { disableAllLogs: input.disableAllLogs }),
5623
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
5740
5624
  });
5741
5625
  return new protocol_http_1.HttpRequest({
5742
5626
  protocol,
@@ -5768,13 +5652,11 @@ const serializeAws_restJson1StartAuditMitigationActionsTaskCommand = async (inpu
5768
5652
  }
5769
5653
  let body;
5770
5654
  body = JSON.stringify({
5771
- ...(input.auditCheckToActionsMapping !== undefined &&
5772
- input.auditCheckToActionsMapping !== null && {
5655
+ ...(input.auditCheckToActionsMapping != null && {
5773
5656
  auditCheckToActionsMapping: serializeAws_restJson1AuditCheckToActionsMapping(input.auditCheckToActionsMapping, context),
5774
5657
  }),
5775
5658
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
5776
- ...(input.target !== undefined &&
5777
- input.target !== null && {
5659
+ ...(input.target != null && {
5778
5660
  target: serializeAws_restJson1AuditMitigationActionsTaskTarget(input.target, context),
5779
5661
  }),
5780
5662
  });
@@ -5808,21 +5690,18 @@ const serializeAws_restJson1StartDetectMitigationActionsTaskCommand = async (inp
5808
5690
  }
5809
5691
  let body;
5810
5692
  body = JSON.stringify({
5811
- ...(input.actions !== undefined &&
5812
- input.actions !== null && {
5693
+ ...(input.actions != null && {
5813
5694
  actions: serializeAws_restJson1DetectMitigationActionsToExecuteList(input.actions, context),
5814
5695
  }),
5815
5696
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
5816
- ...(input.includeOnlyActiveViolations !== undefined &&
5817
- input.includeOnlyActiveViolations !== null && { includeOnlyActiveViolations: input.includeOnlyActiveViolations }),
5818
- ...(input.includeSuppressedAlerts !== undefined &&
5819
- input.includeSuppressedAlerts !== null && { includeSuppressedAlerts: input.includeSuppressedAlerts }),
5820
- ...(input.target !== undefined &&
5821
- input.target !== null && {
5697
+ ...(input.includeOnlyActiveViolations != null && {
5698
+ includeOnlyActiveViolations: input.includeOnlyActiveViolations,
5699
+ }),
5700
+ ...(input.includeSuppressedAlerts != null && { includeSuppressedAlerts: input.includeSuppressedAlerts }),
5701
+ ...(input.target != null && {
5822
5702
  target: serializeAws_restJson1DetectMitigationActionsTaskTarget(input.target, context),
5823
5703
  }),
5824
- ...(input.violationEventOccurrenceRange !== undefined &&
5825
- input.violationEventOccurrenceRange !== null && {
5704
+ ...(input.violationEventOccurrenceRange != null && {
5826
5705
  violationEventOccurrenceRange: serializeAws_restJson1ViolationEventOccurrenceRange(input.violationEventOccurrenceRange, context),
5827
5706
  }),
5828
5707
  });
@@ -5845,8 +5724,7 @@ const serializeAws_restJson1StartOnDemandAuditTaskCommand = async (input, contex
5845
5724
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks";
5846
5725
  let body;
5847
5726
  body = JSON.stringify({
5848
- ...(input.targetCheckNames !== undefined &&
5849
- input.targetCheckNames !== null && {
5727
+ ...(input.targetCheckNames != null && {
5850
5728
  targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
5851
5729
  }),
5852
5730
  });
@@ -5869,11 +5747,10 @@ const serializeAws_restJson1StartThingRegistrationTaskCommand = async (input, co
5869
5747
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks";
5870
5748
  let body;
5871
5749
  body = JSON.stringify({
5872
- ...(input.inputFileBucket !== undefined &&
5873
- input.inputFileBucket !== null && { inputFileBucket: input.inputFileBucket }),
5874
- ...(input.inputFileKey !== undefined && input.inputFileKey !== null && { inputFileKey: input.inputFileKey }),
5875
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
5876
- ...(input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody }),
5750
+ ...(input.inputFileBucket != null && { inputFileBucket: input.inputFileBucket }),
5751
+ ...(input.inputFileKey != null && { inputFileKey: input.inputFileKey }),
5752
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
5753
+ ...(input.templateBody != null && { templateBody: input.templateBody }),
5877
5754
  });
5878
5755
  return new protocol_http_1.HttpRequest({
5879
5756
  protocol,
@@ -5920,9 +5797,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
5920
5797
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
5921
5798
  let body;
5922
5799
  body = JSON.stringify({
5923
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
5924
- ...(input.tags !== undefined &&
5925
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
5800
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
5801
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
5926
5802
  });
5927
5803
  return new protocol_http_1.HttpRequest({
5928
5804
  protocol,
@@ -5946,19 +5822,15 @@ const serializeAws_restJson1TestAuthorizationCommand = async (input, context) =>
5946
5822
  };
5947
5823
  let body;
5948
5824
  body = JSON.stringify({
5949
- ...(input.authInfos !== undefined &&
5950
- input.authInfos !== null && { authInfos: serializeAws_restJson1AuthInfos(input.authInfos, context) }),
5951
- ...(input.cognitoIdentityPoolId !== undefined &&
5952
- input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
5953
- ...(input.policyNamesToAdd !== undefined &&
5954
- input.policyNamesToAdd !== null && {
5825
+ ...(input.authInfos != null && { authInfos: serializeAws_restJson1AuthInfos(input.authInfos, context) }),
5826
+ ...(input.cognitoIdentityPoolId != null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
5827
+ ...(input.policyNamesToAdd != null && {
5955
5828
  policyNamesToAdd: serializeAws_restJson1PolicyNames(input.policyNamesToAdd, context),
5956
5829
  }),
5957
- ...(input.policyNamesToSkip !== undefined &&
5958
- input.policyNamesToSkip !== null && {
5830
+ ...(input.policyNamesToSkip != null && {
5959
5831
  policyNamesToSkip: serializeAws_restJson1PolicyNames(input.policyNamesToSkip, context),
5960
5832
  }),
5961
- ...(input.principal !== undefined && input.principal !== null && { principal: input.principal }),
5833
+ ...(input.principal != null && { principal: input.principal }),
5962
5834
  });
5963
5835
  return new protocol_http_1.HttpRequest({
5964
5836
  protocol,
@@ -5990,15 +5862,11 @@ const serializeAws_restJson1TestInvokeAuthorizerCommand = async (input, context)
5990
5862
  }
5991
5863
  let body;
5992
5864
  body = JSON.stringify({
5993
- ...(input.httpContext !== undefined &&
5994
- input.httpContext !== null && { httpContext: serializeAws_restJson1HttpContext(input.httpContext, context) }),
5995
- ...(input.mqttContext !== undefined &&
5996
- input.mqttContext !== null && { mqttContext: serializeAws_restJson1MqttContext(input.mqttContext, context) }),
5997
- ...(input.tlsContext !== undefined &&
5998
- input.tlsContext !== null && { tlsContext: serializeAws_restJson1TlsContext(input.tlsContext, context) }),
5999
- ...(input.token !== undefined && input.token !== null && { token: input.token }),
6000
- ...(input.tokenSignature !== undefined &&
6001
- input.tokenSignature !== null && { tokenSignature: input.tokenSignature }),
5865
+ ...(input.httpContext != null && { httpContext: serializeAws_restJson1HttpContext(input.httpContext, context) }),
5866
+ ...(input.mqttContext != null && { mqttContext: serializeAws_restJson1MqttContext(input.mqttContext, context) }),
5867
+ ...(input.tlsContext != null && { tlsContext: serializeAws_restJson1TlsContext(input.tlsContext, context) }),
5868
+ ...(input.token != null && { token: input.token }),
5869
+ ...(input.tokenSignature != null && { tokenSignature: input.tokenSignature }),
6002
5870
  });
6003
5871
  return new protocol_http_1.HttpRequest({
6004
5872
  protocol,
@@ -6032,8 +5900,7 @@ const serializeAws_restJson1TransferCertificateCommand = async (input, context)
6032
5900
  };
6033
5901
  let body;
6034
5902
  body = JSON.stringify({
6035
- ...(input.transferMessage !== undefined &&
6036
- input.transferMessage !== null && { transferMessage: input.transferMessage }),
5903
+ ...(input.transferMessage != null && { transferMessage: input.transferMessage }),
6037
5904
  });
6038
5905
  return new protocol_http_1.HttpRequest({
6039
5906
  protocol,
@@ -6055,9 +5922,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
6055
5922
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/untag";
6056
5923
  let body;
6057
5924
  body = JSON.stringify({
6058
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
6059
- ...(input.tagKeys !== undefined &&
6060
- input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
5925
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
5926
+ ...(input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) }),
6061
5927
  });
6062
5928
  return new protocol_http_1.HttpRequest({
6063
5929
  protocol,
@@ -6078,15 +5944,13 @@ const serializeAws_restJson1UpdateAccountAuditConfigurationCommand = async (inpu
6078
5944
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/configuration";
6079
5945
  let body;
6080
5946
  body = JSON.stringify({
6081
- ...(input.auditCheckConfigurations !== undefined &&
6082
- input.auditCheckConfigurations !== null && {
5947
+ ...(input.auditCheckConfigurations != null && {
6083
5948
  auditCheckConfigurations: serializeAws_restJson1AuditCheckConfigurations(input.auditCheckConfigurations, context),
6084
5949
  }),
6085
- ...(input.auditNotificationTargetConfigurations !== undefined &&
6086
- input.auditNotificationTargetConfigurations !== null && {
5950
+ ...(input.auditNotificationTargetConfigurations != null && {
6087
5951
  auditNotificationTargetConfigurations: serializeAws_restJson1AuditNotificationTargetConfigurations(input.auditNotificationTargetConfigurations, context),
6088
5952
  }),
6089
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
5953
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
6090
5954
  });
6091
5955
  return new protocol_http_1.HttpRequest({
6092
5956
  protocol,
@@ -6107,16 +5971,13 @@ const serializeAws_restJson1UpdateAuditSuppressionCommand = async (input, contex
6107
5971
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/update";
6108
5972
  let body;
6109
5973
  body = JSON.stringify({
6110
- ...(input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName }),
6111
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6112
- ...(input.expirationDate !== undefined &&
6113
- input.expirationDate !== null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) }),
6114
- ...(input.resourceIdentifier !== undefined &&
6115
- input.resourceIdentifier !== null && {
5974
+ ...(input.checkName != null && { checkName: input.checkName }),
5975
+ ...(input.description != null && { description: input.description }),
5976
+ ...(input.expirationDate != null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) }),
5977
+ ...(input.resourceIdentifier != null && {
6116
5978
  resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
6117
5979
  }),
6118
- ...(input.suppressIndefinitely !== undefined &&
6119
- input.suppressIndefinitely !== null && { suppressIndefinitely: input.suppressIndefinitely }),
5980
+ ...(input.suppressIndefinitely != null && { suppressIndefinitely: input.suppressIndefinitely }),
6120
5981
  });
6121
5982
  return new protocol_http_1.HttpRequest({
6122
5983
  protocol,
@@ -6147,14 +6008,11 @@ const serializeAws_restJson1UpdateAuthorizerCommand = async (input, context) =>
6147
6008
  }
6148
6009
  let body;
6149
6010
  body = JSON.stringify({
6150
- ...(input.authorizerFunctionArn !== undefined &&
6151
- input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn }),
6152
- ...(input.enableCachingForHttp !== undefined &&
6153
- input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp }),
6154
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
6155
- ...(input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName }),
6156
- ...(input.tokenSigningPublicKeys !== undefined &&
6157
- input.tokenSigningPublicKeys !== null && {
6011
+ ...(input.authorizerFunctionArn != null && { authorizerFunctionArn: input.authorizerFunctionArn }),
6012
+ ...(input.enableCachingForHttp != null && { enableCachingForHttp: input.enableCachingForHttp }),
6013
+ ...(input.status != null && { status: input.status }),
6014
+ ...(input.tokenKeyName != null && { tokenKeyName: input.tokenKeyName }),
6015
+ ...(input.tokenSigningPublicKeys != null && {
6158
6016
  tokenSigningPublicKeys: serializeAws_restJson1PublicKeyMap(input.tokenSigningPublicKeys, context),
6159
6017
  }),
6160
6018
  });
@@ -6187,12 +6045,10 @@ const serializeAws_restJson1UpdateBillingGroupCommand = async (input, context) =
6187
6045
  }
6188
6046
  let body;
6189
6047
  body = JSON.stringify({
6190
- ...(input.billingGroupProperties !== undefined &&
6191
- input.billingGroupProperties !== null && {
6048
+ ...(input.billingGroupProperties != null && {
6192
6049
  billingGroupProperties: serializeAws_restJson1BillingGroupProperties(input.billingGroupProperties, context),
6193
6050
  }),
6194
- ...(input.expectedVersion !== undefined &&
6195
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6051
+ ...(input.expectedVersion != null && { expectedVersion: input.expectedVersion }),
6196
6052
  });
6197
6053
  return new protocol_http_1.HttpRequest({
6198
6054
  protocol,
@@ -6229,12 +6085,10 @@ const serializeAws_restJson1UpdateCACertificateCommand = async (input, context)
6229
6085
  };
6230
6086
  let body;
6231
6087
  body = JSON.stringify({
6232
- ...(input.registrationConfig !== undefined &&
6233
- input.registrationConfig !== null && {
6088
+ ...(input.registrationConfig != null && {
6234
6089
  registrationConfig: serializeAws_restJson1RegistrationConfig(input.registrationConfig, context),
6235
6090
  }),
6236
- ...(input.removeAutoRegistration !== undefined &&
6237
- input.removeAutoRegistration !== null && { removeAutoRegistration: input.removeAutoRegistration }),
6091
+ ...(input.removeAutoRegistration != null && { removeAutoRegistration: input.removeAutoRegistration }),
6238
6092
  });
6239
6093
  return new protocol_http_1.HttpRequest({
6240
6094
  protocol,
@@ -6296,7 +6150,7 @@ const serializeAws_restJson1UpdateCustomMetricCommand = async (input, context) =
6296
6150
  }
6297
6151
  let body;
6298
6152
  body = JSON.stringify({
6299
- ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
6153
+ ...(input.displayName != null && { displayName: input.displayName }),
6300
6154
  });
6301
6155
  return new protocol_http_1.HttpRequest({
6302
6156
  protocol,
@@ -6327,8 +6181,7 @@ const serializeAws_restJson1UpdateDimensionCommand = async (input, context) => {
6327
6181
  }
6328
6182
  let body;
6329
6183
  body = JSON.stringify({
6330
- ...(input.stringValues !== undefined &&
6331
- input.stringValues !== null && {
6184
+ ...(input.stringValues != null && {
6332
6185
  stringValues: serializeAws_restJson1DimensionStringValues(input.stringValues, context),
6333
6186
  }),
6334
6187
  });
@@ -6362,14 +6215,11 @@ const serializeAws_restJson1UpdateDomainConfigurationCommand = async (input, con
6362
6215
  }
6363
6216
  let body;
6364
6217
  body = JSON.stringify({
6365
- ...(input.authorizerConfig !== undefined &&
6366
- input.authorizerConfig !== null && {
6218
+ ...(input.authorizerConfig != null && {
6367
6219
  authorizerConfig: serializeAws_restJson1AuthorizerConfig(input.authorizerConfig, context),
6368
6220
  }),
6369
- ...(input.domainConfigurationStatus !== undefined &&
6370
- input.domainConfigurationStatus !== null && { domainConfigurationStatus: input.domainConfigurationStatus }),
6371
- ...(input.removeAuthorizerConfig !== undefined &&
6372
- input.removeAuthorizerConfig !== null && { removeAuthorizerConfig: input.removeAuthorizerConfig }),
6221
+ ...(input.domainConfigurationStatus != null && { domainConfigurationStatus: input.domainConfigurationStatus }),
6222
+ ...(input.removeAuthorizerConfig != null && { removeAuthorizerConfig: input.removeAuthorizerConfig }),
6373
6223
  });
6374
6224
  return new protocol_http_1.HttpRequest({
6375
6225
  protocol,
@@ -6400,13 +6250,11 @@ const serializeAws_restJson1UpdateDynamicThingGroupCommand = async (input, conte
6400
6250
  }
6401
6251
  let body;
6402
6252
  body = JSON.stringify({
6403
- ...(input.expectedVersion !== undefined &&
6404
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6405
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
6406
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
6407
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
6408
- ...(input.thingGroupProperties !== undefined &&
6409
- input.thingGroupProperties !== null && {
6253
+ ...(input.expectedVersion != null && { expectedVersion: input.expectedVersion }),
6254
+ ...(input.indexName != null && { indexName: input.indexName }),
6255
+ ...(input.queryString != null && { queryString: input.queryString }),
6256
+ ...(input.queryVersion != null && { queryVersion: input.queryVersion }),
6257
+ ...(input.thingGroupProperties != null && {
6410
6258
  thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
6411
6259
  }),
6412
6260
  });
@@ -6429,8 +6277,7 @@ const serializeAws_restJson1UpdateEventConfigurationsCommand = async (input, con
6429
6277
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations";
6430
6278
  let body;
6431
6279
  body = JSON.stringify({
6432
- ...(input.eventConfigurations !== undefined &&
6433
- input.eventConfigurations !== null && {
6280
+ ...(input.eventConfigurations != null && {
6434
6281
  eventConfigurations: serializeAws_restJson1EventConfigurations(input.eventConfigurations, context),
6435
6282
  }),
6436
6283
  });
@@ -6463,20 +6310,17 @@ const serializeAws_restJson1UpdateFleetMetricCommand = async (input, context) =>
6463
6310
  }
6464
6311
  let body;
6465
6312
  body = JSON.stringify({
6466
- ...(input.aggregationField !== undefined &&
6467
- input.aggregationField !== null && { aggregationField: input.aggregationField }),
6468
- ...(input.aggregationType !== undefined &&
6469
- input.aggregationType !== null && {
6313
+ ...(input.aggregationField != null && { aggregationField: input.aggregationField }),
6314
+ ...(input.aggregationType != null && {
6470
6315
  aggregationType: serializeAws_restJson1AggregationType(input.aggregationType, context),
6471
6316
  }),
6472
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6473
- ...(input.expectedVersion !== undefined &&
6474
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6475
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
6476
- ...(input.period !== undefined && input.period !== null && { period: input.period }),
6477
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
6478
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
6479
- ...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
6317
+ ...(input.description != null && { description: input.description }),
6318
+ ...(input.expectedVersion != null && { expectedVersion: input.expectedVersion }),
6319
+ ...(input.indexName != null && { indexName: input.indexName }),
6320
+ ...(input.period != null && { period: input.period }),
6321
+ ...(input.queryString != null && { queryString: input.queryString }),
6322
+ ...(input.queryVersion != null && { queryVersion: input.queryVersion }),
6323
+ ...(input.unit != null && { unit: input.unit }),
6480
6324
  });
6481
6325
  return new protocol_http_1.HttpRequest({
6482
6326
  protocol,
@@ -6497,12 +6341,10 @@ const serializeAws_restJson1UpdateIndexingConfigurationCommand = async (input, c
6497
6341
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/indexing/config";
6498
6342
  let body;
6499
6343
  body = JSON.stringify({
6500
- ...(input.thingGroupIndexingConfiguration !== undefined &&
6501
- input.thingGroupIndexingConfiguration !== null && {
6344
+ ...(input.thingGroupIndexingConfiguration != null && {
6502
6345
  thingGroupIndexingConfiguration: serializeAws_restJson1ThingGroupIndexingConfiguration(input.thingGroupIndexingConfiguration, context),
6503
6346
  }),
6504
- ...(input.thingIndexingConfiguration !== undefined &&
6505
- input.thingIndexingConfiguration !== null && {
6347
+ ...(input.thingIndexingConfiguration != null && {
6506
6348
  thingIndexingConfiguration: serializeAws_restJson1ThingIndexingConfiguration(input.thingIndexingConfiguration, context),
6507
6349
  }),
6508
6350
  });
@@ -6538,23 +6380,18 @@ const serializeAws_restJson1UpdateJobCommand = async (input, context) => {
6538
6380
  };
6539
6381
  let body;
6540
6382
  body = JSON.stringify({
6541
- ...(input.abortConfig !== undefined &&
6542
- input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
6543
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6544
- ...(input.jobExecutionsRetryConfig !== undefined &&
6545
- input.jobExecutionsRetryConfig !== null && {
6383
+ ...(input.abortConfig != null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
6384
+ ...(input.description != null && { description: input.description }),
6385
+ ...(input.jobExecutionsRetryConfig != null && {
6546
6386
  jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
6547
6387
  }),
6548
- ...(input.jobExecutionsRolloutConfig !== undefined &&
6549
- input.jobExecutionsRolloutConfig !== null && {
6388
+ ...(input.jobExecutionsRolloutConfig != null && {
6550
6389
  jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
6551
6390
  }),
6552
- ...(input.presignedUrlConfig !== undefined &&
6553
- input.presignedUrlConfig !== null && {
6391
+ ...(input.presignedUrlConfig != null && {
6554
6392
  presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
6555
6393
  }),
6556
- ...(input.timeoutConfig !== undefined &&
6557
- input.timeoutConfig !== null && {
6394
+ ...(input.timeoutConfig != null && {
6558
6395
  timeoutConfig: serializeAws_restJson1TimeoutConfig(input.timeoutConfig, context),
6559
6396
  }),
6560
6397
  });
@@ -6588,11 +6425,10 @@ const serializeAws_restJson1UpdateMitigationActionCommand = async (input, contex
6588
6425
  }
6589
6426
  let body;
6590
6427
  body = JSON.stringify({
6591
- ...(input.actionParams !== undefined &&
6592
- input.actionParams !== null && {
6428
+ ...(input.actionParams != null && {
6593
6429
  actionParams: serializeAws_restJson1MitigationActionParams(input.actionParams, context),
6594
6430
  }),
6595
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
6431
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
6596
6432
  });
6597
6433
  return new protocol_http_1.HttpRequest({
6598
6434
  protocol,
@@ -6623,18 +6459,14 @@ const serializeAws_restJson1UpdateProvisioningTemplateCommand = async (input, co
6623
6459
  }
6624
6460
  let body;
6625
6461
  body = JSON.stringify({
6626
- ...(input.defaultVersionId !== undefined &&
6627
- input.defaultVersionId !== null && { defaultVersionId: input.defaultVersionId }),
6628
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6629
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
6630
- ...(input.preProvisioningHook !== undefined &&
6631
- input.preProvisioningHook !== null && {
6462
+ ...(input.defaultVersionId != null && { defaultVersionId: input.defaultVersionId }),
6463
+ ...(input.description != null && { description: input.description }),
6464
+ ...(input.enabled != null && { enabled: input.enabled }),
6465
+ ...(input.preProvisioningHook != null && {
6632
6466
  preProvisioningHook: serializeAws_restJson1ProvisioningHook(input.preProvisioningHook, context),
6633
6467
  }),
6634
- ...(input.provisioningRoleArn !== undefined &&
6635
- input.provisioningRoleArn !== null && { provisioningRoleArn: input.provisioningRoleArn }),
6636
- ...(input.removePreProvisioningHook !== undefined &&
6637
- input.removePreProvisioningHook !== null && { removePreProvisioningHook: input.removePreProvisioningHook }),
6468
+ ...(input.provisioningRoleArn != null && { provisioningRoleArn: input.provisioningRoleArn }),
6469
+ ...(input.removePreProvisioningHook != null && { removePreProvisioningHook: input.removePreProvisioningHook }),
6638
6470
  });
6639
6471
  return new protocol_http_1.HttpRequest({
6640
6472
  protocol,
@@ -6665,9 +6497,8 @@ const serializeAws_restJson1UpdateRoleAliasCommand = async (input, context) => {
6665
6497
  }
6666
6498
  let body;
6667
6499
  body = JSON.stringify({
6668
- ...(input.credentialDurationSeconds !== undefined &&
6669
- input.credentialDurationSeconds !== null && { credentialDurationSeconds: input.credentialDurationSeconds }),
6670
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
6500
+ ...(input.credentialDurationSeconds != null && { credentialDurationSeconds: input.credentialDurationSeconds }),
6501
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
6671
6502
  });
6672
6503
  return new protocol_http_1.HttpRequest({
6673
6504
  protocol,
@@ -6699,11 +6530,10 @@ const serializeAws_restJson1UpdateScheduledAuditCommand = async (input, context)
6699
6530
  }
6700
6531
  let body;
6701
6532
  body = JSON.stringify({
6702
- ...(input.dayOfMonth !== undefined && input.dayOfMonth !== null && { dayOfMonth: input.dayOfMonth }),
6703
- ...(input.dayOfWeek !== undefined && input.dayOfWeek !== null && { dayOfWeek: input.dayOfWeek }),
6704
- ...(input.frequency !== undefined && input.frequency !== null && { frequency: input.frequency }),
6705
- ...(input.targetCheckNames !== undefined &&
6706
- input.targetCheckNames !== null && {
6533
+ ...(input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth }),
6534
+ ...(input.dayOfWeek != null && { dayOfWeek: input.dayOfWeek }),
6535
+ ...(input.frequency != null && { frequency: input.frequency }),
6536
+ ...(input.targetCheckNames != null && {
6707
6537
  targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
6708
6538
  }),
6709
6539
  });
@@ -6739,28 +6569,22 @@ const serializeAws_restJson1UpdateSecurityProfileCommand = async (input, context
6739
6569
  };
6740
6570
  let body;
6741
6571
  body = JSON.stringify({
6742
- ...(input.additionalMetricsToRetain !== undefined &&
6743
- input.additionalMetricsToRetain !== null && {
6572
+ ...(input.additionalMetricsToRetain != null && {
6744
6573
  additionalMetricsToRetain: serializeAws_restJson1AdditionalMetricsToRetainList(input.additionalMetricsToRetain, context),
6745
6574
  }),
6746
- ...(input.additionalMetricsToRetainV2 !== undefined &&
6747
- input.additionalMetricsToRetainV2 !== null && {
6575
+ ...(input.additionalMetricsToRetainV2 != null && {
6748
6576
  additionalMetricsToRetainV2: serializeAws_restJson1AdditionalMetricsToRetainV2List(input.additionalMetricsToRetainV2, context),
6749
6577
  }),
6750
- ...(input.alertTargets !== undefined &&
6751
- input.alertTargets !== null && { alertTargets: serializeAws_restJson1AlertTargets(input.alertTargets, context) }),
6752
- ...(input.behaviors !== undefined &&
6753
- input.behaviors !== null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
6754
- ...(input.deleteAdditionalMetricsToRetain !== undefined &&
6755
- input.deleteAdditionalMetricsToRetain !== null && {
6578
+ ...(input.alertTargets != null && {
6579
+ alertTargets: serializeAws_restJson1AlertTargets(input.alertTargets, context),
6580
+ }),
6581
+ ...(input.behaviors != null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
6582
+ ...(input.deleteAdditionalMetricsToRetain != null && {
6756
6583
  deleteAdditionalMetricsToRetain: input.deleteAdditionalMetricsToRetain,
6757
6584
  }),
6758
- ...(input.deleteAlertTargets !== undefined &&
6759
- input.deleteAlertTargets !== null && { deleteAlertTargets: input.deleteAlertTargets }),
6760
- ...(input.deleteBehaviors !== undefined &&
6761
- input.deleteBehaviors !== null && { deleteBehaviors: input.deleteBehaviors }),
6762
- ...(input.securityProfileDescription !== undefined &&
6763
- input.securityProfileDescription !== null && { securityProfileDescription: input.securityProfileDescription }),
6585
+ ...(input.deleteAlertTargets != null && { deleteAlertTargets: input.deleteAlertTargets }),
6586
+ ...(input.deleteBehaviors != null && { deleteBehaviors: input.deleteBehaviors }),
6587
+ ...(input.securityProfileDescription != null && { securityProfileDescription: input.securityProfileDescription }),
6764
6588
  });
6765
6589
  return new protocol_http_1.HttpRequest({
6766
6590
  protocol,
@@ -6792,10 +6616,9 @@ const serializeAws_restJson1UpdateStreamCommand = async (input, context) => {
6792
6616
  }
6793
6617
  let body;
6794
6618
  body = JSON.stringify({
6795
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6796
- ...(input.files !== undefined &&
6797
- input.files !== null && { files: serializeAws_restJson1StreamFiles(input.files, context) }),
6798
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
6619
+ ...(input.description != null && { description: input.description }),
6620
+ ...(input.files != null && { files: serializeAws_restJson1StreamFiles(input.files, context) }),
6621
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
6799
6622
  });
6800
6623
  return new protocol_http_1.HttpRequest({
6801
6624
  protocol,
@@ -6826,15 +6649,12 @@ const serializeAws_restJson1UpdateThingCommand = async (input, context) => {
6826
6649
  }
6827
6650
  let body;
6828
6651
  body = JSON.stringify({
6829
- ...(input.attributePayload !== undefined &&
6830
- input.attributePayload !== null && {
6652
+ ...(input.attributePayload != null && {
6831
6653
  attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
6832
6654
  }),
6833
- ...(input.expectedVersion !== undefined &&
6834
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6835
- ...(input.removeThingType !== undefined &&
6836
- input.removeThingType !== null && { removeThingType: input.removeThingType }),
6837
- ...(input.thingTypeName !== undefined && input.thingTypeName !== null && { thingTypeName: input.thingTypeName }),
6655
+ ...(input.expectedVersion != null && { expectedVersion: input.expectedVersion }),
6656
+ ...(input.removeThingType != null && { removeThingType: input.removeThingType }),
6657
+ ...(input.thingTypeName != null && { thingTypeName: input.thingTypeName }),
6838
6658
  });
6839
6659
  return new protocol_http_1.HttpRequest({
6840
6660
  protocol,
@@ -6865,10 +6685,8 @@ const serializeAws_restJson1UpdateThingGroupCommand = async (input, context) =>
6865
6685
  }
6866
6686
  let body;
6867
6687
  body = JSON.stringify({
6868
- ...(input.expectedVersion !== undefined &&
6869
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6870
- ...(input.thingGroupProperties !== undefined &&
6871
- input.thingGroupProperties !== null && {
6688
+ ...(input.expectedVersion != null && { expectedVersion: input.expectedVersion }),
6689
+ ...(input.thingGroupProperties != null && {
6872
6690
  thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
6873
6691
  }),
6874
6692
  });
@@ -6891,17 +6709,14 @@ const serializeAws_restJson1UpdateThingGroupsForThingCommand = async (input, con
6891
6709
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/updateThingGroupsForThing";
6892
6710
  let body;
6893
6711
  body = JSON.stringify({
6894
- ...(input.overrideDynamicGroups !== undefined &&
6895
- input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups }),
6896
- ...(input.thingGroupsToAdd !== undefined &&
6897
- input.thingGroupsToAdd !== null && {
6712
+ ...(input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups }),
6713
+ ...(input.thingGroupsToAdd != null && {
6898
6714
  thingGroupsToAdd: serializeAws_restJson1ThingGroupList(input.thingGroupsToAdd, context),
6899
6715
  }),
6900
- ...(input.thingGroupsToRemove !== undefined &&
6901
- input.thingGroupsToRemove !== null && {
6716
+ ...(input.thingGroupsToRemove != null && {
6902
6717
  thingGroupsToRemove: serializeAws_restJson1ThingGroupList(input.thingGroupsToRemove, context),
6903
6718
  }),
6904
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
6719
+ ...(input.thingName != null && { thingName: input.thingName }),
6905
6720
  });
6906
6721
  return new protocol_http_1.HttpRequest({
6907
6722
  protocol,
@@ -6922,8 +6737,8 @@ const serializeAws_restJson1UpdateTopicRuleDestinationCommand = async (input, co
6922
6737
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
6923
6738
  let body;
6924
6739
  body = JSON.stringify({
6925
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
6926
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
6740
+ ...(input.arn != null && { arn: input.arn }),
6741
+ ...(input.status != null && { status: input.status }),
6927
6742
  });
6928
6743
  return new protocol_http_1.HttpRequest({
6929
6744
  protocol,
@@ -6944,8 +6759,7 @@ const serializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = async (inp
6944
6759
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/security-profile-behaviors/validate";
6945
6760
  let body;
6946
6761
  body = JSON.stringify({
6947
- ...(input.behaviors !== undefined &&
6948
- input.behaviors !== null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
6762
+ ...(input.behaviors != null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
6949
6763
  });
6950
6764
  return new protocol_http_1.HttpRequest({
6951
6765
  protocol,
@@ -20211,20 +20025,17 @@ const deserializeAws_restJson1VersionsLimitExceededExceptionResponse = async (pa
20211
20025
  };
20212
20026
  const serializeAws_restJson1AbortConfig = (input, context) => {
20213
20027
  return {
20214
- ...(input.criteriaList !== undefined &&
20215
- input.criteriaList !== null && {
20028
+ ...(input.criteriaList != null && {
20216
20029
  criteriaList: serializeAws_restJson1AbortCriteriaList(input.criteriaList, context),
20217
20030
  }),
20218
20031
  };
20219
20032
  };
20220
20033
  const serializeAws_restJson1AbortCriteria = (input, context) => {
20221
20034
  return {
20222
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
20223
- ...(input.failureType !== undefined && input.failureType !== null && { failureType: input.failureType }),
20224
- ...(input.minNumberOfExecutedThings !== undefined &&
20225
- input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings }),
20226
- ...(input.thresholdPercentage !== undefined &&
20227
- input.thresholdPercentage !== null && { thresholdPercentage: (0, smithy_client_1.serializeFloat)(input.thresholdPercentage) }),
20035
+ ...(input.action != null && { action: input.action }),
20036
+ ...(input.failureType != null && { failureType: input.failureType }),
20037
+ ...(input.minNumberOfExecutedThings != null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings }),
20038
+ ...(input.thresholdPercentage != null && { thresholdPercentage: (0, smithy_client_1.serializeFloat)(input.thresholdPercentage) }),
20228
20039
  };
20229
20040
  };
20230
20041
  const serializeAws_restJson1AbortCriteriaList = (input, context) => {
@@ -20239,61 +20050,42 @@ const serializeAws_restJson1AbortCriteriaList = (input, context) => {
20239
20050
  };
20240
20051
  const serializeAws_restJson1Action = (input, context) => {
20241
20052
  return {
20242
- ...(input.cloudwatchAlarm !== undefined &&
20243
- input.cloudwatchAlarm !== null && {
20053
+ ...(input.cloudwatchAlarm != null && {
20244
20054
  cloudwatchAlarm: serializeAws_restJson1CloudwatchAlarmAction(input.cloudwatchAlarm, context),
20245
20055
  }),
20246
- ...(input.cloudwatchLogs !== undefined &&
20247
- input.cloudwatchLogs !== null && {
20056
+ ...(input.cloudwatchLogs != null && {
20248
20057
  cloudwatchLogs: serializeAws_restJson1CloudwatchLogsAction(input.cloudwatchLogs, context),
20249
20058
  }),
20250
- ...(input.cloudwatchMetric !== undefined &&
20251
- input.cloudwatchMetric !== null && {
20059
+ ...(input.cloudwatchMetric != null && {
20252
20060
  cloudwatchMetric: serializeAws_restJson1CloudwatchMetricAction(input.cloudwatchMetric, context),
20253
20061
  }),
20254
- ...(input.dynamoDB !== undefined &&
20255
- input.dynamoDB !== null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) }),
20256
- ...(input.dynamoDBv2 !== undefined &&
20257
- input.dynamoDBv2 !== null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) }),
20258
- ...(input.elasticsearch !== undefined &&
20259
- input.elasticsearch !== null && {
20062
+ ...(input.dynamoDB != null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) }),
20063
+ ...(input.dynamoDBv2 != null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) }),
20064
+ ...(input.elasticsearch != null && {
20260
20065
  elasticsearch: serializeAws_restJson1ElasticsearchAction(input.elasticsearch, context),
20261
20066
  }),
20262
- ...(input.firehose !== undefined &&
20263
- input.firehose !== null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) }),
20264
- ...(input.http !== undefined &&
20265
- input.http !== null && { http: serializeAws_restJson1HttpAction(input.http, context) }),
20266
- ...(input.iotAnalytics !== undefined &&
20267
- input.iotAnalytics !== null && {
20067
+ ...(input.firehose != null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) }),
20068
+ ...(input.http != null && { http: serializeAws_restJson1HttpAction(input.http, context) }),
20069
+ ...(input.iotAnalytics != null && {
20268
20070
  iotAnalytics: serializeAws_restJson1IotAnalyticsAction(input.iotAnalytics, context),
20269
20071
  }),
20270
- ...(input.iotEvents !== undefined &&
20271
- input.iotEvents !== null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) }),
20272
- ...(input.iotSiteWise !== undefined &&
20273
- input.iotSiteWise !== null && {
20072
+ ...(input.iotEvents != null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) }),
20073
+ ...(input.iotSiteWise != null && {
20274
20074
  iotSiteWise: serializeAws_restJson1IotSiteWiseAction(input.iotSiteWise, context),
20275
20075
  }),
20276
- ...(input.kafka !== undefined &&
20277
- input.kafka !== null && { kafka: serializeAws_restJson1KafkaAction(input.kafka, context) }),
20278
- ...(input.kinesis !== undefined &&
20279
- input.kinesis !== null && { kinesis: serializeAws_restJson1KinesisAction(input.kinesis, context) }),
20280
- ...(input.lambda !== undefined &&
20281
- input.lambda !== null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) }),
20282
- ...(input.openSearch !== undefined &&
20283
- input.openSearch !== null && { openSearch: serializeAws_restJson1OpenSearchAction(input.openSearch, context) }),
20284
- ...(input.republish !== undefined &&
20285
- input.republish !== null && { republish: serializeAws_restJson1RepublishAction(input.republish, context) }),
20286
- ...(input.s3 !== undefined && input.s3 !== null && { s3: serializeAws_restJson1S3Action(input.s3, context) }),
20287
- ...(input.salesforce !== undefined &&
20288
- input.salesforce !== null && { salesforce: serializeAws_restJson1SalesforceAction(input.salesforce, context) }),
20289
- ...(input.sns !== undefined && input.sns !== null && { sns: serializeAws_restJson1SnsAction(input.sns, context) }),
20290
- ...(input.sqs !== undefined && input.sqs !== null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }),
20291
- ...(input.stepFunctions !== undefined &&
20292
- input.stepFunctions !== null && {
20076
+ ...(input.kafka != null && { kafka: serializeAws_restJson1KafkaAction(input.kafka, context) }),
20077
+ ...(input.kinesis != null && { kinesis: serializeAws_restJson1KinesisAction(input.kinesis, context) }),
20078
+ ...(input.lambda != null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) }),
20079
+ ...(input.openSearch != null && { openSearch: serializeAws_restJson1OpenSearchAction(input.openSearch, context) }),
20080
+ ...(input.republish != null && { republish: serializeAws_restJson1RepublishAction(input.republish, context) }),
20081
+ ...(input.s3 != null && { s3: serializeAws_restJson1S3Action(input.s3, context) }),
20082
+ ...(input.salesforce != null && { salesforce: serializeAws_restJson1SalesforceAction(input.salesforce, context) }),
20083
+ ...(input.sns != null && { sns: serializeAws_restJson1SnsAction(input.sns, context) }),
20084
+ ...(input.sqs != null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }),
20085
+ ...(input.stepFunctions != null && {
20293
20086
  stepFunctions: serializeAws_restJson1StepFunctionsAction(input.stepFunctions, context),
20294
20087
  }),
20295
- ...(input.timestream !== undefined &&
20296
- input.timestream !== null && { timestream: serializeAws_restJson1TimestreamAction(input.timestream, context) }),
20088
+ ...(input.timestream != null && { timestream: serializeAws_restJson1TimestreamAction(input.timestream, context) }),
20297
20089
  };
20298
20090
  };
20299
20091
  const serializeAws_restJson1ActionList = (input, context) => {
@@ -20339,19 +20131,16 @@ const serializeAws_restJson1AdditionalParameterMap = (input, context) => {
20339
20131
  };
20340
20132
  const serializeAws_restJson1AddThingsToThingGroupParams = (input, context) => {
20341
20133
  return {
20342
- ...(input.overrideDynamicGroups !== undefined &&
20343
- input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups }),
20344
- ...(input.thingGroupNames !== undefined &&
20345
- input.thingGroupNames !== null && {
20134
+ ...(input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups }),
20135
+ ...(input.thingGroupNames != null && {
20346
20136
  thingGroupNames: serializeAws_restJson1ThingGroupNames(input.thingGroupNames, context),
20347
20137
  }),
20348
20138
  };
20349
20139
  };
20350
20140
  const serializeAws_restJson1AggregationType = (input, context) => {
20351
20141
  return {
20352
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
20353
- ...(input.values !== undefined &&
20354
- input.values !== null && { values: serializeAws_restJson1AggregationTypeValues(input.values, context) }),
20142
+ ...(input.name != null && { name: input.name }),
20143
+ ...(input.values != null && { values: serializeAws_restJson1AggregationTypeValues(input.values, context) }),
20355
20144
  };
20356
20145
  };
20357
20146
  const serializeAws_restJson1AggregationTypeValues = (input, context) => {
@@ -20366,9 +20155,8 @@ const serializeAws_restJson1AggregationTypeValues = (input, context) => {
20366
20155
  };
20367
20156
  const serializeAws_restJson1AlertTarget = (input, context) => {
20368
20157
  return {
20369
- ...(input.alertTargetArn !== undefined &&
20370
- input.alertTargetArn !== null && { alertTargetArn: input.alertTargetArn }),
20371
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20158
+ ...(input.alertTargetArn != null && { alertTargetArn: input.alertTargetArn }),
20159
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20372
20160
  };
20373
20161
  };
20374
20162
  const serializeAws_restJson1AlertTargets = (input, context) => {
@@ -20384,19 +20172,17 @@ const serializeAws_restJson1AlertTargets = (input, context) => {
20384
20172
  };
20385
20173
  const serializeAws_restJson1AssetPropertyTimestamp = (input, context) => {
20386
20174
  return {
20387
- ...(input.offsetInNanos !== undefined && input.offsetInNanos !== null && { offsetInNanos: input.offsetInNanos }),
20388
- ...(input.timeInSeconds !== undefined && input.timeInSeconds !== null && { timeInSeconds: input.timeInSeconds }),
20175
+ ...(input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos }),
20176
+ ...(input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }),
20389
20177
  };
20390
20178
  };
20391
20179
  const serializeAws_restJson1AssetPropertyValue = (input, context) => {
20392
20180
  return {
20393
- ...(input.quality !== undefined && input.quality !== null && { quality: input.quality }),
20394
- ...(input.timestamp !== undefined &&
20395
- input.timestamp !== null && {
20181
+ ...(input.quality != null && { quality: input.quality }),
20182
+ ...(input.timestamp != null && {
20396
20183
  timestamp: serializeAws_restJson1AssetPropertyTimestamp(input.timestamp, context),
20397
20184
  }),
20398
- ...(input.value !== undefined &&
20399
- input.value !== null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }),
20185
+ ...(input.value != null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }),
20400
20186
  };
20401
20187
  };
20402
20188
  const serializeAws_restJson1AssetPropertyValueList = (input, context) => {
@@ -20420,9 +20206,8 @@ const serializeAws_restJson1AssetPropertyVariant = (input, context) => {
20420
20206
  };
20421
20207
  const serializeAws_restJson1AttributePayload = (input, context) => {
20422
20208
  return {
20423
- ...(input.attributes !== undefined &&
20424
- input.attributes !== null && { attributes: serializeAws_restJson1Attributes(input.attributes, context) }),
20425
- ...(input.merge !== undefined && input.merge !== null && { merge: input.merge }),
20209
+ ...(input.attributes != null && { attributes: serializeAws_restJson1Attributes(input.attributes, context) }),
20210
+ ...(input.merge != null && { merge: input.merge }),
20426
20211
  };
20427
20212
  };
20428
20213
  const serializeAws_restJson1Attributes = (input, context) => {
@@ -20449,7 +20234,7 @@ const serializeAws_restJson1AttributesMap = (input, context) => {
20449
20234
  };
20450
20235
  const serializeAws_restJson1AuditCheckConfiguration = (input, context) => {
20451
20236
  return {
20452
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
20237
+ ...(input.enabled != null && { enabled: input.enabled }),
20453
20238
  };
20454
20239
  };
20455
20240
  const serializeAws_restJson1AuditCheckConfigurations = (input, context) => {
@@ -20487,20 +20272,18 @@ const serializeAws_restJson1AuditCheckToReasonCodeFilter = (input, context) => {
20487
20272
  };
20488
20273
  const serializeAws_restJson1AuditMitigationActionsTaskTarget = (input, context) => {
20489
20274
  return {
20490
- ...(input.auditCheckToReasonCodeFilter !== undefined &&
20491
- input.auditCheckToReasonCodeFilter !== null && {
20275
+ ...(input.auditCheckToReasonCodeFilter != null && {
20492
20276
  auditCheckToReasonCodeFilter: serializeAws_restJson1AuditCheckToReasonCodeFilter(input.auditCheckToReasonCodeFilter, context),
20493
20277
  }),
20494
- ...(input.auditTaskId !== undefined && input.auditTaskId !== null && { auditTaskId: input.auditTaskId }),
20495
- ...(input.findingIds !== undefined &&
20496
- input.findingIds !== null && { findingIds: serializeAws_restJson1FindingIds(input.findingIds, context) }),
20278
+ ...(input.auditTaskId != null && { auditTaskId: input.auditTaskId }),
20279
+ ...(input.findingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.findingIds, context) }),
20497
20280
  };
20498
20281
  };
20499
20282
  const serializeAws_restJson1AuditNotificationTarget = (input, context) => {
20500
20283
  return {
20501
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
20502
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20503
- ...(input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }),
20284
+ ...(input.enabled != null && { enabled: input.enabled }),
20285
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20286
+ ...(input.targetArn != null && { targetArn: input.targetArn }),
20504
20287
  };
20505
20288
  };
20506
20289
  const serializeAws_restJson1AuditNotificationTargetConfigurations = (input, context) => {
@@ -20516,9 +20299,8 @@ const serializeAws_restJson1AuditNotificationTargetConfigurations = (input, cont
20516
20299
  };
20517
20300
  const serializeAws_restJson1AuthInfo = (input, context) => {
20518
20301
  return {
20519
- ...(input.actionType !== undefined && input.actionType !== null && { actionType: input.actionType }),
20520
- ...(input.resources !== undefined &&
20521
- input.resources !== null && { resources: serializeAws_restJson1Resources(input.resources, context) }),
20302
+ ...(input.actionType != null && { actionType: input.actionType }),
20303
+ ...(input.resources != null && { resources: serializeAws_restJson1Resources(input.resources, context) }),
20522
20304
  };
20523
20305
  };
20524
20306
  const serializeAws_restJson1AuthInfos = (input, context) => {
@@ -20533,28 +20315,23 @@ const serializeAws_restJson1AuthInfos = (input, context) => {
20533
20315
  };
20534
20316
  const serializeAws_restJson1AuthorizerConfig = (input, context) => {
20535
20317
  return {
20536
- ...(input.allowAuthorizerOverride !== undefined &&
20537
- input.allowAuthorizerOverride !== null && { allowAuthorizerOverride: input.allowAuthorizerOverride }),
20538
- ...(input.defaultAuthorizerName !== undefined &&
20539
- input.defaultAuthorizerName !== null && { defaultAuthorizerName: input.defaultAuthorizerName }),
20318
+ ...(input.allowAuthorizerOverride != null && { allowAuthorizerOverride: input.allowAuthorizerOverride }),
20319
+ ...(input.defaultAuthorizerName != null && { defaultAuthorizerName: input.defaultAuthorizerName }),
20540
20320
  };
20541
20321
  };
20542
20322
  const serializeAws_restJson1AwsJobAbortConfig = (input, context) => {
20543
20323
  return {
20544
- ...(input.abortCriteriaList !== undefined &&
20545
- input.abortCriteriaList !== null && {
20324
+ ...(input.abortCriteriaList != null && {
20546
20325
  abortCriteriaList: serializeAws_restJson1AwsJobAbortCriteriaList(input.abortCriteriaList, context),
20547
20326
  }),
20548
20327
  };
20549
20328
  };
20550
20329
  const serializeAws_restJson1AwsJobAbortCriteria = (input, context) => {
20551
20330
  return {
20552
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
20553
- ...(input.failureType !== undefined && input.failureType !== null && { failureType: input.failureType }),
20554
- ...(input.minNumberOfExecutedThings !== undefined &&
20555
- input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings }),
20556
- ...(input.thresholdPercentage !== undefined &&
20557
- input.thresholdPercentage !== null && { thresholdPercentage: (0, smithy_client_1.serializeFloat)(input.thresholdPercentage) }),
20331
+ ...(input.action != null && { action: input.action }),
20332
+ ...(input.failureType != null && { failureType: input.failureType }),
20333
+ ...(input.minNumberOfExecutedThings != null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings }),
20334
+ ...(input.thresholdPercentage != null && { thresholdPercentage: (0, smithy_client_1.serializeFloat)(input.thresholdPercentage) }),
20558
20335
  };
20559
20336
  };
20560
20337
  const serializeAws_restJson1AwsJobAbortCriteriaList = (input, context) => {
@@ -20569,83 +20346,65 @@ const serializeAws_restJson1AwsJobAbortCriteriaList = (input, context) => {
20569
20346
  };
20570
20347
  const serializeAws_restJson1AwsJobExecutionsRolloutConfig = (input, context) => {
20571
20348
  return {
20572
- ...(input.exponentialRate !== undefined &&
20573
- input.exponentialRate !== null && {
20349
+ ...(input.exponentialRate != null && {
20574
20350
  exponentialRate: serializeAws_restJson1AwsJobExponentialRolloutRate(input.exponentialRate, context),
20575
20351
  }),
20576
- ...(input.maximumPerMinute !== undefined &&
20577
- input.maximumPerMinute !== null && { maximumPerMinute: input.maximumPerMinute }),
20352
+ ...(input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }),
20578
20353
  };
20579
20354
  };
20580
20355
  const serializeAws_restJson1AwsJobExponentialRolloutRate = (input, context) => {
20581
20356
  return {
20582
- ...(input.baseRatePerMinute !== undefined &&
20583
- input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute }),
20584
- ...(input.incrementFactor !== undefined &&
20585
- input.incrementFactor !== null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
20586
- ...(input.rateIncreaseCriteria !== undefined &&
20587
- input.rateIncreaseCriteria !== null && {
20357
+ ...(input.baseRatePerMinute != null && { baseRatePerMinute: input.baseRatePerMinute }),
20358
+ ...(input.incrementFactor != null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
20359
+ ...(input.rateIncreaseCriteria != null && {
20588
20360
  rateIncreaseCriteria: serializeAws_restJson1AwsJobRateIncreaseCriteria(input.rateIncreaseCriteria, context),
20589
20361
  }),
20590
20362
  };
20591
20363
  };
20592
20364
  const serializeAws_restJson1AwsJobPresignedUrlConfig = (input, context) => {
20593
20365
  return {
20594
- ...(input.expiresInSec !== undefined && input.expiresInSec !== null && { expiresInSec: input.expiresInSec }),
20366
+ ...(input.expiresInSec != null && { expiresInSec: input.expiresInSec }),
20595
20367
  };
20596
20368
  };
20597
20369
  const serializeAws_restJson1AwsJobRateIncreaseCriteria = (input, context) => {
20598
20370
  return {
20599
- ...(input.numberOfNotifiedThings !== undefined &&
20600
- input.numberOfNotifiedThings !== null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
20601
- ...(input.numberOfSucceededThings !== undefined &&
20602
- input.numberOfSucceededThings !== null && { numberOfSucceededThings: input.numberOfSucceededThings }),
20371
+ ...(input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
20372
+ ...(input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }),
20603
20373
  };
20604
20374
  };
20605
20375
  const serializeAws_restJson1AwsJobTimeoutConfig = (input, context) => {
20606
20376
  return {
20607
- ...(input.inProgressTimeoutInMinutes !== undefined &&
20608
- input.inProgressTimeoutInMinutes !== null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
20377
+ ...(input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
20609
20378
  };
20610
20379
  };
20611
20380
  const serializeAws_restJson1Behavior = (input, context) => {
20612
20381
  return {
20613
- ...(input.criteria !== undefined &&
20614
- input.criteria !== null && { criteria: serializeAws_restJson1BehaviorCriteria(input.criteria, context) }),
20615
- ...(input.metric !== undefined && input.metric !== null && { metric: input.metric }),
20616
- ...(input.metricDimension !== undefined &&
20617
- input.metricDimension !== null && {
20382
+ ...(input.criteria != null && { criteria: serializeAws_restJson1BehaviorCriteria(input.criteria, context) }),
20383
+ ...(input.metric != null && { metric: input.metric }),
20384
+ ...(input.metricDimension != null && {
20618
20385
  metricDimension: serializeAws_restJson1MetricDimension(input.metricDimension, context),
20619
20386
  }),
20620
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
20621
- ...(input.suppressAlerts !== undefined &&
20622
- input.suppressAlerts !== null && { suppressAlerts: input.suppressAlerts }),
20387
+ ...(input.name != null && { name: input.name }),
20388
+ ...(input.suppressAlerts != null && { suppressAlerts: input.suppressAlerts }),
20623
20389
  };
20624
20390
  };
20625
20391
  const serializeAws_restJson1BehaviorCriteria = (input, context) => {
20626
20392
  return {
20627
- ...(input.comparisonOperator !== undefined &&
20628
- input.comparisonOperator !== null && { comparisonOperator: input.comparisonOperator }),
20629
- ...(input.consecutiveDatapointsToAlarm !== undefined &&
20630
- input.consecutiveDatapointsToAlarm !== null && {
20393
+ ...(input.comparisonOperator != null && { comparisonOperator: input.comparisonOperator }),
20394
+ ...(input.consecutiveDatapointsToAlarm != null && {
20631
20395
  consecutiveDatapointsToAlarm: input.consecutiveDatapointsToAlarm,
20632
20396
  }),
20633
- ...(input.consecutiveDatapointsToClear !== undefined &&
20634
- input.consecutiveDatapointsToClear !== null && {
20397
+ ...(input.consecutiveDatapointsToClear != null && {
20635
20398
  consecutiveDatapointsToClear: input.consecutiveDatapointsToClear,
20636
20399
  }),
20637
- ...(input.durationSeconds !== undefined &&
20638
- input.durationSeconds !== null && { durationSeconds: input.durationSeconds }),
20639
- ...(input.mlDetectionConfig !== undefined &&
20640
- input.mlDetectionConfig !== null && {
20400
+ ...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
20401
+ ...(input.mlDetectionConfig != null && {
20641
20402
  mlDetectionConfig: serializeAws_restJson1MachineLearningDetectionConfig(input.mlDetectionConfig, context),
20642
20403
  }),
20643
- ...(input.statisticalThreshold !== undefined &&
20644
- input.statisticalThreshold !== null && {
20404
+ ...(input.statisticalThreshold != null && {
20645
20405
  statisticalThreshold: serializeAws_restJson1StatisticalThreshold(input.statisticalThreshold, context),
20646
20406
  }),
20647
- ...(input.value !== undefined &&
20648
- input.value !== null && { value: serializeAws_restJson1MetricValue(input.value, context) }),
20407
+ ...(input.value != null && { value: serializeAws_restJson1MetricValue(input.value, context) }),
20649
20408
  };
20650
20409
  };
20651
20410
  const serializeAws_restJson1Behaviors = (input, context) => {
@@ -20660,14 +20419,12 @@ const serializeAws_restJson1Behaviors = (input, context) => {
20660
20419
  };
20661
20420
  const serializeAws_restJson1BillingGroupProperties = (input, context) => {
20662
20421
  return {
20663
- ...(input.billingGroupDescription !== undefined &&
20664
- input.billingGroupDescription !== null && { billingGroupDescription: input.billingGroupDescription }),
20422
+ ...(input.billingGroupDescription != null && { billingGroupDescription: input.billingGroupDescription }),
20665
20423
  };
20666
20424
  };
20667
20425
  const serializeAws_restJson1BucketsAggregationType = (input, context) => {
20668
20426
  return {
20669
- ...(input.termsAggregation !== undefined &&
20670
- input.termsAggregation !== null && {
20427
+ ...(input.termsAggregation != null && {
20671
20428
  termsAggregation: serializeAws_restJson1TermsAggregation(input.termsAggregation, context),
20672
20429
  }),
20673
20430
  };
@@ -20695,80 +20452,68 @@ const serializeAws_restJson1ClientProperties = (input, context) => {
20695
20452
  };
20696
20453
  const serializeAws_restJson1CloudwatchAlarmAction = (input, context) => {
20697
20454
  return {
20698
- ...(input.alarmName !== undefined && input.alarmName !== null && { alarmName: input.alarmName }),
20699
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20700
- ...(input.stateReason !== undefined && input.stateReason !== null && { stateReason: input.stateReason }),
20701
- ...(input.stateValue !== undefined && input.stateValue !== null && { stateValue: input.stateValue }),
20455
+ ...(input.alarmName != null && { alarmName: input.alarmName }),
20456
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20457
+ ...(input.stateReason != null && { stateReason: input.stateReason }),
20458
+ ...(input.stateValue != null && { stateValue: input.stateValue }),
20702
20459
  };
20703
20460
  };
20704
20461
  const serializeAws_restJson1CloudwatchLogsAction = (input, context) => {
20705
20462
  return {
20706
- ...(input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName }),
20707
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20463
+ ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
20464
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20708
20465
  };
20709
20466
  };
20710
20467
  const serializeAws_restJson1CloudwatchMetricAction = (input, context) => {
20711
20468
  return {
20712
- ...(input.metricName !== undefined && input.metricName !== null && { metricName: input.metricName }),
20713
- ...(input.metricNamespace !== undefined &&
20714
- input.metricNamespace !== null && { metricNamespace: input.metricNamespace }),
20715
- ...(input.metricTimestamp !== undefined &&
20716
- input.metricTimestamp !== null && { metricTimestamp: input.metricTimestamp }),
20717
- ...(input.metricUnit !== undefined && input.metricUnit !== null && { metricUnit: input.metricUnit }),
20718
- ...(input.metricValue !== undefined && input.metricValue !== null && { metricValue: input.metricValue }),
20719
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20469
+ ...(input.metricName != null && { metricName: input.metricName }),
20470
+ ...(input.metricNamespace != null && { metricNamespace: input.metricNamespace }),
20471
+ ...(input.metricTimestamp != null && { metricTimestamp: input.metricTimestamp }),
20472
+ ...(input.metricUnit != null && { metricUnit: input.metricUnit }),
20473
+ ...(input.metricValue != null && { metricValue: input.metricValue }),
20474
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20720
20475
  };
20721
20476
  };
20722
20477
  const serializeAws_restJson1CodeSigning = (input, context) => {
20723
20478
  return {
20724
- ...(input.awsSignerJobId !== undefined &&
20725
- input.awsSignerJobId !== null && { awsSignerJobId: input.awsSignerJobId }),
20726
- ...(input.customCodeSigning !== undefined &&
20727
- input.customCodeSigning !== null && {
20479
+ ...(input.awsSignerJobId != null && { awsSignerJobId: input.awsSignerJobId }),
20480
+ ...(input.customCodeSigning != null && {
20728
20481
  customCodeSigning: serializeAws_restJson1CustomCodeSigning(input.customCodeSigning, context),
20729
20482
  }),
20730
- ...(input.startSigningJobParameter !== undefined &&
20731
- input.startSigningJobParameter !== null && {
20483
+ ...(input.startSigningJobParameter != null && {
20732
20484
  startSigningJobParameter: serializeAws_restJson1StartSigningJobParameter(input.startSigningJobParameter, context),
20733
20485
  }),
20734
20486
  };
20735
20487
  };
20736
20488
  const serializeAws_restJson1CodeSigningCertificateChain = (input, context) => {
20737
20489
  return {
20738
- ...(input.certificateName !== undefined &&
20739
- input.certificateName !== null && { certificateName: input.certificateName }),
20740
- ...(input.inlineDocument !== undefined &&
20741
- input.inlineDocument !== null && { inlineDocument: input.inlineDocument }),
20490
+ ...(input.certificateName != null && { certificateName: input.certificateName }),
20491
+ ...(input.inlineDocument != null && { inlineDocument: input.inlineDocument }),
20742
20492
  };
20743
20493
  };
20744
20494
  const serializeAws_restJson1CodeSigningSignature = (input, context) => {
20745
20495
  return {
20746
- ...(input.inlineDocument !== undefined &&
20747
- input.inlineDocument !== null && { inlineDocument: context.base64Encoder(input.inlineDocument) }),
20496
+ ...(input.inlineDocument != null && { inlineDocument: context.base64Encoder(input.inlineDocument) }),
20748
20497
  };
20749
20498
  };
20750
20499
  const serializeAws_restJson1Configuration = (input, context) => {
20751
20500
  return {
20752
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
20501
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
20753
20502
  };
20754
20503
  };
20755
20504
  const serializeAws_restJson1CustomCodeSigning = (input, context) => {
20756
20505
  return {
20757
- ...(input.certificateChain !== undefined &&
20758
- input.certificateChain !== null && {
20506
+ ...(input.certificateChain != null && {
20759
20507
  certificateChain: serializeAws_restJson1CodeSigningCertificateChain(input.certificateChain, context),
20760
20508
  }),
20761
- ...(input.hashAlgorithm !== undefined && input.hashAlgorithm !== null && { hashAlgorithm: input.hashAlgorithm }),
20762
- ...(input.signature !== undefined &&
20763
- input.signature !== null && { signature: serializeAws_restJson1CodeSigningSignature(input.signature, context) }),
20764
- ...(input.signatureAlgorithm !== undefined &&
20765
- input.signatureAlgorithm !== null && { signatureAlgorithm: input.signatureAlgorithm }),
20509
+ ...(input.hashAlgorithm != null && { hashAlgorithm: input.hashAlgorithm }),
20510
+ ...(input.signature != null && { signature: serializeAws_restJson1CodeSigningSignature(input.signature, context) }),
20511
+ ...(input.signatureAlgorithm != null && { signatureAlgorithm: input.signatureAlgorithm }),
20766
20512
  };
20767
20513
  };
20768
20514
  const serializeAws_restJson1Destination = (input, context) => {
20769
20515
  return {
20770
- ...(input.s3Destination !== undefined &&
20771
- input.s3Destination !== null && {
20516
+ ...(input.s3Destination != null && {
20772
20517
  s3Destination: serializeAws_restJson1S3Destination(input.s3Destination, context),
20773
20518
  }),
20774
20519
  };
@@ -20786,11 +20531,9 @@ const serializeAws_restJson1DetailsMap = (input, context) => {
20786
20531
  };
20787
20532
  const serializeAws_restJson1DetectMitigationActionsTaskTarget = (input, context) => {
20788
20533
  return {
20789
- ...(input.behaviorName !== undefined && input.behaviorName !== null && { behaviorName: input.behaviorName }),
20790
- ...(input.securityProfileName !== undefined &&
20791
- input.securityProfileName !== null && { securityProfileName: input.securityProfileName }),
20792
- ...(input.violationIds !== undefined &&
20793
- input.violationIds !== null && {
20534
+ ...(input.behaviorName != null && { behaviorName: input.behaviorName }),
20535
+ ...(input.securityProfileName != null && { securityProfileName: input.securityProfileName }),
20536
+ ...(input.violationIds != null && {
20794
20537
  violationIds: serializeAws_restJson1TargetViolationIdsForDetectMitigationActions(input.violationIds, context),
20795
20538
  }),
20796
20539
  };
@@ -20817,39 +20560,37 @@ const serializeAws_restJson1DimensionStringValues = (input, context) => {
20817
20560
  };
20818
20561
  const serializeAws_restJson1DynamoDBAction = (input, context) => {
20819
20562
  return {
20820
- ...(input.hashKeyField !== undefined && input.hashKeyField !== null && { hashKeyField: input.hashKeyField }),
20821
- ...(input.hashKeyType !== undefined && input.hashKeyType !== null && { hashKeyType: input.hashKeyType }),
20822
- ...(input.hashKeyValue !== undefined && input.hashKeyValue !== null && { hashKeyValue: input.hashKeyValue }),
20823
- ...(input.operation !== undefined && input.operation !== null && { operation: input.operation }),
20824
- ...(input.payloadField !== undefined && input.payloadField !== null && { payloadField: input.payloadField }),
20825
- ...(input.rangeKeyField !== undefined && input.rangeKeyField !== null && { rangeKeyField: input.rangeKeyField }),
20826
- ...(input.rangeKeyType !== undefined && input.rangeKeyType !== null && { rangeKeyType: input.rangeKeyType }),
20827
- ...(input.rangeKeyValue !== undefined && input.rangeKeyValue !== null && { rangeKeyValue: input.rangeKeyValue }),
20828
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20829
- ...(input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }),
20563
+ ...(input.hashKeyField != null && { hashKeyField: input.hashKeyField }),
20564
+ ...(input.hashKeyType != null && { hashKeyType: input.hashKeyType }),
20565
+ ...(input.hashKeyValue != null && { hashKeyValue: input.hashKeyValue }),
20566
+ ...(input.operation != null && { operation: input.operation }),
20567
+ ...(input.payloadField != null && { payloadField: input.payloadField }),
20568
+ ...(input.rangeKeyField != null && { rangeKeyField: input.rangeKeyField }),
20569
+ ...(input.rangeKeyType != null && { rangeKeyType: input.rangeKeyType }),
20570
+ ...(input.rangeKeyValue != null && { rangeKeyValue: input.rangeKeyValue }),
20571
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20572
+ ...(input.tableName != null && { tableName: input.tableName }),
20830
20573
  };
20831
20574
  };
20832
20575
  const serializeAws_restJson1DynamoDBv2Action = (input, context) => {
20833
20576
  return {
20834
- ...(input.putItem !== undefined &&
20835
- input.putItem !== null && { putItem: serializeAws_restJson1PutItemInput(input.putItem, context) }),
20836
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20577
+ ...(input.putItem != null && { putItem: serializeAws_restJson1PutItemInput(input.putItem, context) }),
20578
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20837
20579
  };
20838
20580
  };
20839
20581
  const serializeAws_restJson1ElasticsearchAction = (input, context) => {
20840
20582
  return {
20841
- ...(input.endpoint !== undefined && input.endpoint !== null && { endpoint: input.endpoint }),
20842
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
20843
- ...(input.index !== undefined && input.index !== null && { index: input.index }),
20844
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20845
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
20583
+ ...(input.endpoint != null && { endpoint: input.endpoint }),
20584
+ ...(input.id != null && { id: input.id }),
20585
+ ...(input.index != null && { index: input.index }),
20586
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20587
+ ...(input.type != null && { type: input.type }),
20846
20588
  };
20847
20589
  };
20848
20590
  const serializeAws_restJson1EnableIoTLoggingParams = (input, context) => {
20849
20591
  return {
20850
- ...(input.logLevel !== undefined && input.logLevel !== null && { logLevel: input.logLevel }),
20851
- ...(input.roleArnForLogging !== undefined &&
20852
- input.roleArnForLogging !== null && { roleArnForLogging: input.roleArnForLogging }),
20592
+ ...(input.logLevel != null && { logLevel: input.logLevel }),
20593
+ ...(input.roleArnForLogging != null && { roleArnForLogging: input.roleArnForLogging }),
20853
20594
  };
20854
20595
  };
20855
20596
  const serializeAws_restJson1EventConfigurations = (input, context) => {
@@ -20865,20 +20606,17 @@ const serializeAws_restJson1EventConfigurations = (input, context) => {
20865
20606
  };
20866
20607
  const serializeAws_restJson1ExponentialRolloutRate = (input, context) => {
20867
20608
  return {
20868
- ...(input.baseRatePerMinute !== undefined &&
20869
- input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute }),
20870
- ...(input.incrementFactor !== undefined &&
20871
- input.incrementFactor !== null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
20872
- ...(input.rateIncreaseCriteria !== undefined &&
20873
- input.rateIncreaseCriteria !== null && {
20609
+ ...(input.baseRatePerMinute != null && { baseRatePerMinute: input.baseRatePerMinute }),
20610
+ ...(input.incrementFactor != null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
20611
+ ...(input.rateIncreaseCriteria != null && {
20874
20612
  rateIncreaseCriteria: serializeAws_restJson1RateIncreaseCriteria(input.rateIncreaseCriteria, context),
20875
20613
  }),
20876
20614
  };
20877
20615
  };
20878
20616
  const serializeAws_restJson1Field = (input, context) => {
20879
20617
  return {
20880
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
20881
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
20618
+ ...(input.name != null && { name: input.name }),
20619
+ ...(input.type != null && { type: input.type }),
20882
20620
  };
20883
20621
  };
20884
20622
  const serializeAws_restJson1Fields = (input, context) => {
@@ -20893,10 +20631,8 @@ const serializeAws_restJson1Fields = (input, context) => {
20893
20631
  };
20894
20632
  const serializeAws_restJson1FileLocation = (input, context) => {
20895
20633
  return {
20896
- ...(input.s3Location !== undefined &&
20897
- input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }),
20898
- ...(input.stream !== undefined &&
20899
- input.stream !== null && { stream: serializeAws_restJson1_Stream(input.stream, context) }),
20634
+ ...(input.s3Location != null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }),
20635
+ ...(input.stream != null && { stream: serializeAws_restJson1_Stream(input.stream, context) }),
20900
20636
  };
20901
20637
  };
20902
20638
  const serializeAws_restJson1FindingIds = (input, context) => {
@@ -20911,11 +20647,10 @@ const serializeAws_restJson1FindingIds = (input, context) => {
20911
20647
  };
20912
20648
  const serializeAws_restJson1FirehoseAction = (input, context) => {
20913
20649
  return {
20914
- ...(input.batchMode !== undefined && input.batchMode !== null && { batchMode: input.batchMode }),
20915
- ...(input.deliveryStreamName !== undefined &&
20916
- input.deliveryStreamName !== null && { deliveryStreamName: input.deliveryStreamName }),
20917
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20918
- ...(input.separator !== undefined && input.separator !== null && { separator: input.separator }),
20650
+ ...(input.batchMode != null && { batchMode: input.batchMode }),
20651
+ ...(input.deliveryStreamName != null && { deliveryStreamName: input.deliveryStreamName }),
20652
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20653
+ ...(input.separator != null && { separator: input.separator }),
20919
20654
  };
20920
20655
  };
20921
20656
  const serializeAws_restJson1HeaderList = (input, context) => {
@@ -20930,32 +20665,27 @@ const serializeAws_restJson1HeaderList = (input, context) => {
20930
20665
  };
20931
20666
  const serializeAws_restJson1HttpAction = (input, context) => {
20932
20667
  return {
20933
- ...(input.auth !== undefined &&
20934
- input.auth !== null && { auth: serializeAws_restJson1HttpAuthorization(input.auth, context) }),
20935
- ...(input.confirmationUrl !== undefined &&
20936
- input.confirmationUrl !== null && { confirmationUrl: input.confirmationUrl }),
20937
- ...(input.headers !== undefined &&
20938
- input.headers !== null && { headers: serializeAws_restJson1HeaderList(input.headers, context) }),
20939
- ...(input.url !== undefined && input.url !== null && { url: input.url }),
20668
+ ...(input.auth != null && { auth: serializeAws_restJson1HttpAuthorization(input.auth, context) }),
20669
+ ...(input.confirmationUrl != null && { confirmationUrl: input.confirmationUrl }),
20670
+ ...(input.headers != null && { headers: serializeAws_restJson1HeaderList(input.headers, context) }),
20671
+ ...(input.url != null && { url: input.url }),
20940
20672
  };
20941
20673
  };
20942
20674
  const serializeAws_restJson1HttpActionHeader = (input, context) => {
20943
20675
  return {
20944
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
20945
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
20676
+ ...(input.key != null && { key: input.key }),
20677
+ ...(input.value != null && { value: input.value }),
20946
20678
  };
20947
20679
  };
20948
20680
  const serializeAws_restJson1HttpAuthorization = (input, context) => {
20949
20681
  return {
20950
- ...(input.sigv4 !== undefined &&
20951
- input.sigv4 !== null && { sigv4: serializeAws_restJson1SigV4Authorization(input.sigv4, context) }),
20682
+ ...(input.sigv4 != null && { sigv4: serializeAws_restJson1SigV4Authorization(input.sigv4, context) }),
20952
20683
  };
20953
20684
  };
20954
20685
  const serializeAws_restJson1HttpContext = (input, context) => {
20955
20686
  return {
20956
- ...(input.headers !== undefined &&
20957
- input.headers !== null && { headers: serializeAws_restJson1HttpHeaders(input.headers, context) }),
20958
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
20687
+ ...(input.headers != null && { headers: serializeAws_restJson1HttpHeaders(input.headers, context) }),
20688
+ ...(input.queryString != null && { queryString: input.queryString }),
20959
20689
  };
20960
20690
  };
20961
20691
  const serializeAws_restJson1HttpHeaders = (input, context) => {
@@ -20971,51 +20701,46 @@ const serializeAws_restJson1HttpHeaders = (input, context) => {
20971
20701
  };
20972
20702
  const serializeAws_restJson1HttpUrlDestinationConfiguration = (input, context) => {
20973
20703
  return {
20974
- ...(input.confirmationUrl !== undefined &&
20975
- input.confirmationUrl !== null && { confirmationUrl: input.confirmationUrl }),
20704
+ ...(input.confirmationUrl != null && { confirmationUrl: input.confirmationUrl }),
20976
20705
  };
20977
20706
  };
20978
20707
  const serializeAws_restJson1IotAnalyticsAction = (input, context) => {
20979
20708
  return {
20980
- ...(input.batchMode !== undefined && input.batchMode !== null && { batchMode: input.batchMode }),
20981
- ...(input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn }),
20982
- ...(input.channelName !== undefined && input.channelName !== null && { channelName: input.channelName }),
20983
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20709
+ ...(input.batchMode != null && { batchMode: input.batchMode }),
20710
+ ...(input.channelArn != null && { channelArn: input.channelArn }),
20711
+ ...(input.channelName != null && { channelName: input.channelName }),
20712
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20984
20713
  };
20985
20714
  };
20986
20715
  const serializeAws_restJson1IotEventsAction = (input, context) => {
20987
20716
  return {
20988
- ...(input.batchMode !== undefined && input.batchMode !== null && { batchMode: input.batchMode }),
20989
- ...(input.inputName !== undefined && input.inputName !== null && { inputName: input.inputName }),
20990
- ...(input.messageId !== undefined && input.messageId !== null && { messageId: input.messageId }),
20991
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20717
+ ...(input.batchMode != null && { batchMode: input.batchMode }),
20718
+ ...(input.inputName != null && { inputName: input.inputName }),
20719
+ ...(input.messageId != null && { messageId: input.messageId }),
20720
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20992
20721
  };
20993
20722
  };
20994
20723
  const serializeAws_restJson1IotSiteWiseAction = (input, context) => {
20995
20724
  return {
20996
- ...(input.putAssetPropertyValueEntries !== undefined &&
20997
- input.putAssetPropertyValueEntries !== null && {
20725
+ ...(input.putAssetPropertyValueEntries != null && {
20998
20726
  putAssetPropertyValueEntries: serializeAws_restJson1PutAssetPropertyValueEntryList(input.putAssetPropertyValueEntries, context),
20999
20727
  }),
21000
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20728
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21001
20729
  };
21002
20730
  };
21003
20731
  const serializeAws_restJson1JobExecutionsRetryConfig = (input, context) => {
21004
20732
  return {
21005
- ...(input.criteriaList !== undefined &&
21006
- input.criteriaList !== null && {
20733
+ ...(input.criteriaList != null && {
21007
20734
  criteriaList: serializeAws_restJson1RetryCriteriaList(input.criteriaList, context),
21008
20735
  }),
21009
20736
  };
21010
20737
  };
21011
20738
  const serializeAws_restJson1JobExecutionsRolloutConfig = (input, context) => {
21012
20739
  return {
21013
- ...(input.exponentialRate !== undefined &&
21014
- input.exponentialRate !== null && {
20740
+ ...(input.exponentialRate != null && {
21015
20741
  exponentialRate: serializeAws_restJson1ExponentialRolloutRate(input.exponentialRate, context),
21016
20742
  }),
21017
- ...(input.maximumPerMinute !== undefined &&
21018
- input.maximumPerMinute !== null && { maximumPerMinute: input.maximumPerMinute }),
20743
+ ...(input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }),
21019
20744
  };
21020
20745
  };
21021
20746
  const serializeAws_restJson1JobTargets = (input, context) => {
@@ -21030,74 +20755,66 @@ const serializeAws_restJson1JobTargets = (input, context) => {
21030
20755
  };
21031
20756
  const serializeAws_restJson1KafkaAction = (input, context) => {
21032
20757
  return {
21033
- ...(input.clientProperties !== undefined &&
21034
- input.clientProperties !== null && {
20758
+ ...(input.clientProperties != null && {
21035
20759
  clientProperties: serializeAws_restJson1ClientProperties(input.clientProperties, context),
21036
20760
  }),
21037
- ...(input.destinationArn !== undefined &&
21038
- input.destinationArn !== null && { destinationArn: input.destinationArn }),
21039
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
21040
- ...(input.partition !== undefined && input.partition !== null && { partition: input.partition }),
21041
- ...(input.topic !== undefined && input.topic !== null && { topic: input.topic }),
20761
+ ...(input.destinationArn != null && { destinationArn: input.destinationArn }),
20762
+ ...(input.key != null && { key: input.key }),
20763
+ ...(input.partition != null && { partition: input.partition }),
20764
+ ...(input.topic != null && { topic: input.topic }),
21042
20765
  };
21043
20766
  };
21044
20767
  const serializeAws_restJson1KinesisAction = (input, context) => {
21045
20768
  return {
21046
- ...(input.partitionKey !== undefined && input.partitionKey !== null && { partitionKey: input.partitionKey }),
21047
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21048
- ...(input.streamName !== undefined && input.streamName !== null && { streamName: input.streamName }),
20769
+ ...(input.partitionKey != null && { partitionKey: input.partitionKey }),
20770
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20771
+ ...(input.streamName != null && { streamName: input.streamName }),
21049
20772
  };
21050
20773
  };
21051
20774
  const serializeAws_restJson1LambdaAction = (input, context) => {
21052
20775
  return {
21053
- ...(input.functionArn !== undefined && input.functionArn !== null && { functionArn: input.functionArn }),
20776
+ ...(input.functionArn != null && { functionArn: input.functionArn }),
21054
20777
  };
21055
20778
  };
21056
20779
  const serializeAws_restJson1LoggingOptionsPayload = (input, context) => {
21057
20780
  return {
21058
- ...(input.logLevel !== undefined && input.logLevel !== null && { logLevel: input.logLevel }),
21059
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20781
+ ...(input.logLevel != null && { logLevel: input.logLevel }),
20782
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21060
20783
  };
21061
20784
  };
21062
20785
  const serializeAws_restJson1LogTarget = (input, context) => {
21063
20786
  return {
21064
- ...(input.targetName !== undefined && input.targetName !== null && { targetName: input.targetName }),
21065
- ...(input.targetType !== undefined && input.targetType !== null && { targetType: input.targetType }),
20787
+ ...(input.targetName != null && { targetName: input.targetName }),
20788
+ ...(input.targetType != null && { targetType: input.targetType }),
21066
20789
  };
21067
20790
  };
21068
20791
  const serializeAws_restJson1MachineLearningDetectionConfig = (input, context) => {
21069
20792
  return {
21070
- ...(input.confidenceLevel !== undefined &&
21071
- input.confidenceLevel !== null && { confidenceLevel: input.confidenceLevel }),
20793
+ ...(input.confidenceLevel != null && { confidenceLevel: input.confidenceLevel }),
21072
20794
  };
21073
20795
  };
21074
20796
  const serializeAws_restJson1MetricDimension = (input, context) => {
21075
20797
  return {
21076
- ...(input.dimensionName !== undefined && input.dimensionName !== null && { dimensionName: input.dimensionName }),
21077
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
20798
+ ...(input.dimensionName != null && { dimensionName: input.dimensionName }),
20799
+ ...(input.operator != null && { operator: input.operator }),
21078
20800
  };
21079
20801
  };
21080
20802
  const serializeAws_restJson1MetricToRetain = (input, context) => {
21081
20803
  return {
21082
- ...(input.metric !== undefined && input.metric !== null && { metric: input.metric }),
21083
- ...(input.metricDimension !== undefined &&
21084
- input.metricDimension !== null && {
20804
+ ...(input.metric != null && { metric: input.metric }),
20805
+ ...(input.metricDimension != null && {
21085
20806
  metricDimension: serializeAws_restJson1MetricDimension(input.metricDimension, context),
21086
20807
  }),
21087
20808
  };
21088
20809
  };
21089
20810
  const serializeAws_restJson1MetricValue = (input, context) => {
21090
20811
  return {
21091
- ...(input.cidrs !== undefined &&
21092
- input.cidrs !== null && { cidrs: serializeAws_restJson1Cidrs(input.cidrs, context) }),
21093
- ...(input.count !== undefined && input.count !== null && { count: input.count }),
21094
- ...(input.number !== undefined && input.number !== null && { number: (0, smithy_client_1.serializeFloat)(input.number) }),
21095
- ...(input.numbers !== undefined &&
21096
- input.numbers !== null && { numbers: serializeAws_restJson1NumberList(input.numbers, context) }),
21097
- ...(input.ports !== undefined &&
21098
- input.ports !== null && { ports: serializeAws_restJson1Ports(input.ports, context) }),
21099
- ...(input.strings !== undefined &&
21100
- input.strings !== null && { strings: serializeAws_restJson1StringList(input.strings, context) }),
20812
+ ...(input.cidrs != null && { cidrs: serializeAws_restJson1Cidrs(input.cidrs, context) }),
20813
+ ...(input.count != null && { count: input.count }),
20814
+ ...(input.number != null && { number: (0, smithy_client_1.serializeFloat)(input.number) }),
20815
+ ...(input.numbers != null && { numbers: serializeAws_restJson1NumberList(input.numbers, context) }),
20816
+ ...(input.ports != null && { ports: serializeAws_restJson1Ports(input.ports, context) }),
20817
+ ...(input.strings != null && { strings: serializeAws_restJson1StringList(input.strings, context) }),
21101
20818
  };
21102
20819
  };
21103
20820
  const serializeAws_restJson1MitigationActionNameList = (input, context) => {
@@ -21112,37 +20829,31 @@ const serializeAws_restJson1MitigationActionNameList = (input, context) => {
21112
20829
  };
21113
20830
  const serializeAws_restJson1MitigationActionParams = (input, context) => {
21114
20831
  return {
21115
- ...(input.addThingsToThingGroupParams !== undefined &&
21116
- input.addThingsToThingGroupParams !== null && {
20832
+ ...(input.addThingsToThingGroupParams != null && {
21117
20833
  addThingsToThingGroupParams: serializeAws_restJson1AddThingsToThingGroupParams(input.addThingsToThingGroupParams, context),
21118
20834
  }),
21119
- ...(input.enableIoTLoggingParams !== undefined &&
21120
- input.enableIoTLoggingParams !== null && {
20835
+ ...(input.enableIoTLoggingParams != null && {
21121
20836
  enableIoTLoggingParams: serializeAws_restJson1EnableIoTLoggingParams(input.enableIoTLoggingParams, context),
21122
20837
  }),
21123
- ...(input.publishFindingToSnsParams !== undefined &&
21124
- input.publishFindingToSnsParams !== null && {
20838
+ ...(input.publishFindingToSnsParams != null && {
21125
20839
  publishFindingToSnsParams: serializeAws_restJson1PublishFindingToSnsParams(input.publishFindingToSnsParams, context),
21126
20840
  }),
21127
- ...(input.replaceDefaultPolicyVersionParams !== undefined &&
21128
- input.replaceDefaultPolicyVersionParams !== null && {
20841
+ ...(input.replaceDefaultPolicyVersionParams != null && {
21129
20842
  replaceDefaultPolicyVersionParams: serializeAws_restJson1ReplaceDefaultPolicyVersionParams(input.replaceDefaultPolicyVersionParams, context),
21130
20843
  }),
21131
- ...(input.updateCACertificateParams !== undefined &&
21132
- input.updateCACertificateParams !== null && {
20844
+ ...(input.updateCACertificateParams != null && {
21133
20845
  updateCACertificateParams: serializeAws_restJson1UpdateCACertificateParams(input.updateCACertificateParams, context),
21134
20846
  }),
21135
- ...(input.updateDeviceCertificateParams !== undefined &&
21136
- input.updateDeviceCertificateParams !== null && {
20847
+ ...(input.updateDeviceCertificateParams != null && {
21137
20848
  updateDeviceCertificateParams: serializeAws_restJson1UpdateDeviceCertificateParams(input.updateDeviceCertificateParams, context),
21138
20849
  }),
21139
20850
  };
21140
20851
  };
21141
20852
  const serializeAws_restJson1MqttContext = (input, context) => {
21142
20853
  return {
21143
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
21144
- ...(input.password !== undefined && input.password !== null && { password: context.base64Encoder(input.password) }),
21145
- ...(input.username !== undefined && input.username !== null && { username: input.username }),
20854
+ ...(input.clientId != null && { clientId: input.clientId }),
20855
+ ...(input.password != null && { password: context.base64Encoder(input.password) }),
20856
+ ...(input.username != null && { username: input.username }),
21146
20857
  };
21147
20858
  };
21148
20859
  const serializeAws_restJson1NumberList = (input, context) => {
@@ -21157,24 +20868,23 @@ const serializeAws_restJson1NumberList = (input, context) => {
21157
20868
  };
21158
20869
  const serializeAws_restJson1OpenSearchAction = (input, context) => {
21159
20870
  return {
21160
- ...(input.endpoint !== undefined && input.endpoint !== null && { endpoint: input.endpoint }),
21161
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
21162
- ...(input.index !== undefined && input.index !== null && { index: input.index }),
21163
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21164
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
20871
+ ...(input.endpoint != null && { endpoint: input.endpoint }),
20872
+ ...(input.id != null && { id: input.id }),
20873
+ ...(input.index != null && { index: input.index }),
20874
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20875
+ ...(input.type != null && { type: input.type }),
21165
20876
  };
21166
20877
  };
21167
20878
  const serializeAws_restJson1OTAUpdateFile = (input, context) => {
21168
20879
  return {
21169
- ...(input.attributes !== undefined &&
21170
- input.attributes !== null && { attributes: serializeAws_restJson1AttributesMap(input.attributes, context) }),
21171
- ...(input.codeSigning !== undefined &&
21172
- input.codeSigning !== null && { codeSigning: serializeAws_restJson1CodeSigning(input.codeSigning, context) }),
21173
- ...(input.fileLocation !== undefined &&
21174
- input.fileLocation !== null && { fileLocation: serializeAws_restJson1FileLocation(input.fileLocation, context) }),
21175
- ...(input.fileName !== undefined && input.fileName !== null && { fileName: input.fileName }),
21176
- ...(input.fileType !== undefined && input.fileType !== null && { fileType: input.fileType }),
21177
- ...(input.fileVersion !== undefined && input.fileVersion !== null && { fileVersion: input.fileVersion }),
20880
+ ...(input.attributes != null && { attributes: serializeAws_restJson1AttributesMap(input.attributes, context) }),
20881
+ ...(input.codeSigning != null && { codeSigning: serializeAws_restJson1CodeSigning(input.codeSigning, context) }),
20882
+ ...(input.fileLocation != null && {
20883
+ fileLocation: serializeAws_restJson1FileLocation(input.fileLocation, context),
20884
+ }),
20885
+ ...(input.fileName != null && { fileName: input.fileName }),
20886
+ ...(input.fileType != null && { fileType: input.fileType }),
20887
+ ...(input.fileVersion != null && { fileVersion: input.fileVersion }),
21178
20888
  };
21179
20889
  };
21180
20890
  const serializeAws_restJson1OTAUpdateFiles = (input, context) => {
@@ -21231,9 +20941,8 @@ const serializeAws_restJson1PolicyNames = (input, context) => {
21231
20941
  };
21232
20942
  const serializeAws_restJson1PolicyVersionIdentifier = (input, context) => {
21233
20943
  return {
21234
- ...(input.policyName !== undefined && input.policyName !== null && { policyName: input.policyName }),
21235
- ...(input.policyVersionId !== undefined &&
21236
- input.policyVersionId !== null && { policyVersionId: input.policyVersionId }),
20944
+ ...(input.policyName != null && { policyName: input.policyName }),
20945
+ ...(input.policyVersionId != null && { policyVersionId: input.policyVersionId }),
21237
20946
  };
21238
20947
  };
21239
20948
  const serializeAws_restJson1Ports = (input, context) => {
@@ -21248,8 +20957,8 @@ const serializeAws_restJson1Ports = (input, context) => {
21248
20957
  };
21249
20958
  const serializeAws_restJson1PresignedUrlConfig = (input, context) => {
21250
20959
  return {
21251
- ...(input.expiresInSec !== undefined && input.expiresInSec !== null && { expiresInSec: input.expiresInSec }),
21252
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20960
+ ...(input.expiresInSec != null && { expiresInSec: input.expiresInSec }),
20961
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21253
20962
  };
21254
20963
  };
21255
20964
  const serializeAws_restJson1Protocols = (input, context) => {
@@ -21264,9 +20973,8 @@ const serializeAws_restJson1Protocols = (input, context) => {
21264
20973
  };
21265
20974
  const serializeAws_restJson1ProvisioningHook = (input, context) => {
21266
20975
  return {
21267
- ...(input.payloadVersion !== undefined &&
21268
- input.payloadVersion !== null && { payloadVersion: input.payloadVersion }),
21269
- ...(input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }),
20976
+ ...(input.payloadVersion != null && { payloadVersion: input.payloadVersion }),
20977
+ ...(input.targetArn != null && { targetArn: input.targetArn }),
21270
20978
  };
21271
20979
  };
21272
20980
  const serializeAws_restJson1PublicKeyMap = (input, context) => {
@@ -21282,17 +20990,16 @@ const serializeAws_restJson1PublicKeyMap = (input, context) => {
21282
20990
  };
21283
20991
  const serializeAws_restJson1PublishFindingToSnsParams = (input, context) => {
21284
20992
  return {
21285
- ...(input.topicArn !== undefined && input.topicArn !== null && { topicArn: input.topicArn }),
20993
+ ...(input.topicArn != null && { topicArn: input.topicArn }),
21286
20994
  };
21287
20995
  };
21288
20996
  const serializeAws_restJson1PutAssetPropertyValueEntry = (input, context) => {
21289
20997
  return {
21290
- ...(input.assetId !== undefined && input.assetId !== null && { assetId: input.assetId }),
21291
- ...(input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId }),
21292
- ...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
21293
- ...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
21294
- ...(input.propertyValues !== undefined &&
21295
- input.propertyValues !== null && {
20998
+ ...(input.assetId != null && { assetId: input.assetId }),
20999
+ ...(input.entryId != null && { entryId: input.entryId }),
21000
+ ...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
21001
+ ...(input.propertyId != null && { propertyId: input.propertyId }),
21002
+ ...(input.propertyValues != null && {
21296
21003
  propertyValues: serializeAws_restJson1AssetPropertyValueList(input.propertyValues, context),
21297
21004
  }),
21298
21005
  };
@@ -21309,15 +21016,13 @@ const serializeAws_restJson1PutAssetPropertyValueEntryList = (input, context) =>
21309
21016
  };
21310
21017
  const serializeAws_restJson1PutItemInput = (input, context) => {
21311
21018
  return {
21312
- ...(input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }),
21019
+ ...(input.tableName != null && { tableName: input.tableName }),
21313
21020
  };
21314
21021
  };
21315
21022
  const serializeAws_restJson1RateIncreaseCriteria = (input, context) => {
21316
21023
  return {
21317
- ...(input.numberOfNotifiedThings !== undefined &&
21318
- input.numberOfNotifiedThings !== null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
21319
- ...(input.numberOfSucceededThings !== undefined &&
21320
- input.numberOfSucceededThings !== null && { numberOfSucceededThings: input.numberOfSucceededThings }),
21024
+ ...(input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
21025
+ ...(input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }),
21321
21026
  };
21322
21027
  };
21323
21028
  const serializeAws_restJson1ReasonForNonComplianceCodes = (input, context) => {
@@ -21332,38 +21037,34 @@ const serializeAws_restJson1ReasonForNonComplianceCodes = (input, context) => {
21332
21037
  };
21333
21038
  const serializeAws_restJson1RegistrationConfig = (input, context) => {
21334
21039
  return {
21335
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21336
- ...(input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody }),
21040
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21041
+ ...(input.templateBody != null && { templateBody: input.templateBody }),
21337
21042
  };
21338
21043
  };
21339
21044
  const serializeAws_restJson1ReplaceDefaultPolicyVersionParams = (input, context) => {
21340
21045
  return {
21341
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
21046
+ ...(input.templateName != null && { templateName: input.templateName }),
21342
21047
  };
21343
21048
  };
21344
21049
  const serializeAws_restJson1RepublishAction = (input, context) => {
21345
21050
  return {
21346
- ...(input.qos !== undefined && input.qos !== null && { qos: input.qos }),
21347
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21348
- ...(input.topic !== undefined && input.topic !== null && { topic: input.topic }),
21051
+ ...(input.qos != null && { qos: input.qos }),
21052
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21053
+ ...(input.topic != null && { topic: input.topic }),
21349
21054
  };
21350
21055
  };
21351
21056
  const serializeAws_restJson1ResourceIdentifier = (input, context) => {
21352
21057
  return {
21353
- ...(input.account !== undefined && input.account !== null && { account: input.account }),
21354
- ...(input.caCertificateId !== undefined &&
21355
- input.caCertificateId !== null && { caCertificateId: input.caCertificateId }),
21356
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
21357
- ...(input.cognitoIdentityPoolId !== undefined &&
21358
- input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
21359
- ...(input.deviceCertificateId !== undefined &&
21360
- input.deviceCertificateId !== null && { deviceCertificateId: input.deviceCertificateId }),
21361
- ...(input.iamRoleArn !== undefined && input.iamRoleArn !== null && { iamRoleArn: input.iamRoleArn }),
21362
- ...(input.policyVersionIdentifier !== undefined &&
21363
- input.policyVersionIdentifier !== null && {
21058
+ ...(input.account != null && { account: input.account }),
21059
+ ...(input.caCertificateId != null && { caCertificateId: input.caCertificateId }),
21060
+ ...(input.clientId != null && { clientId: input.clientId }),
21061
+ ...(input.cognitoIdentityPoolId != null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
21062
+ ...(input.deviceCertificateId != null && { deviceCertificateId: input.deviceCertificateId }),
21063
+ ...(input.iamRoleArn != null && { iamRoleArn: input.iamRoleArn }),
21064
+ ...(input.policyVersionIdentifier != null && {
21364
21065
  policyVersionIdentifier: serializeAws_restJson1PolicyVersionIdentifier(input.policyVersionIdentifier, context),
21365
21066
  }),
21366
- ...(input.roleAliasArn !== undefined && input.roleAliasArn !== null && { roleAliasArn: input.roleAliasArn }),
21067
+ ...(input.roleAliasArn != null && { roleAliasArn: input.roleAliasArn }),
21367
21068
  };
21368
21069
  };
21369
21070
  const serializeAws_restJson1Resources = (input, context) => {
@@ -21378,9 +21079,8 @@ const serializeAws_restJson1Resources = (input, context) => {
21378
21079
  };
21379
21080
  const serializeAws_restJson1RetryCriteria = (input, context) => {
21380
21081
  return {
21381
- ...(input.failureType !== undefined && input.failureType !== null && { failureType: input.failureType }),
21382
- ...(input.numberOfRetries !== undefined &&
21383
- input.numberOfRetries !== null && { numberOfRetries: input.numberOfRetries }),
21082
+ ...(input.failureType != null && { failureType: input.failureType }),
21083
+ ...(input.numberOfRetries != null && { numberOfRetries: input.numberOfRetries }),
21384
21084
  };
21385
21085
  };
21386
21086
  const serializeAws_restJson1RetryCriteriaList = (input, context) => {
@@ -21395,29 +21095,29 @@ const serializeAws_restJson1RetryCriteriaList = (input, context) => {
21395
21095
  };
21396
21096
  const serializeAws_restJson1S3Action = (input, context) => {
21397
21097
  return {
21398
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
21399
- ...(input.cannedAcl !== undefined && input.cannedAcl !== null && { cannedAcl: input.cannedAcl }),
21400
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
21401
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21098
+ ...(input.bucketName != null && { bucketName: input.bucketName }),
21099
+ ...(input.cannedAcl != null && { cannedAcl: input.cannedAcl }),
21100
+ ...(input.key != null && { key: input.key }),
21101
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21402
21102
  };
21403
21103
  };
21404
21104
  const serializeAws_restJson1S3Destination = (input, context) => {
21405
21105
  return {
21406
- ...(input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket }),
21407
- ...(input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }),
21106
+ ...(input.bucket != null && { bucket: input.bucket }),
21107
+ ...(input.prefix != null && { prefix: input.prefix }),
21408
21108
  };
21409
21109
  };
21410
21110
  const serializeAws_restJson1S3Location = (input, context) => {
21411
21111
  return {
21412
- ...(input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket }),
21413
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
21414
- ...(input.version !== undefined && input.version !== null && { version: input.version }),
21112
+ ...(input.bucket != null && { bucket: input.bucket }),
21113
+ ...(input.key != null && { key: input.key }),
21114
+ ...(input.version != null && { version: input.version }),
21415
21115
  };
21416
21116
  };
21417
21117
  const serializeAws_restJson1SalesforceAction = (input, context) => {
21418
21118
  return {
21419
- ...(input.token !== undefined && input.token !== null && { token: input.token }),
21420
- ...(input.url !== undefined && input.url !== null && { url: input.url }),
21119
+ ...(input.token != null && { token: input.token }),
21120
+ ...(input.url != null && { url: input.url }),
21421
21121
  };
21422
21122
  };
21423
21123
  const serializeAws_restJson1SearchableAttributes = (input, context) => {
@@ -21452,71 +21152,63 @@ const serializeAws_restJson1ServerCertificateArns = (input, context) => {
21452
21152
  };
21453
21153
  const serializeAws_restJson1SigningProfileParameter = (input, context) => {
21454
21154
  return {
21455
- ...(input.certificateArn !== undefined &&
21456
- input.certificateArn !== null && { certificateArn: input.certificateArn }),
21457
- ...(input.certificatePathOnDevice !== undefined &&
21458
- input.certificatePathOnDevice !== null && { certificatePathOnDevice: input.certificatePathOnDevice }),
21459
- ...(input.platform !== undefined && input.platform !== null && { platform: input.platform }),
21155
+ ...(input.certificateArn != null && { certificateArn: input.certificateArn }),
21156
+ ...(input.certificatePathOnDevice != null && { certificatePathOnDevice: input.certificatePathOnDevice }),
21157
+ ...(input.platform != null && { platform: input.platform }),
21460
21158
  };
21461
21159
  };
21462
21160
  const serializeAws_restJson1SigV4Authorization = (input, context) => {
21463
21161
  return {
21464
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21465
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
21466
- ...(input.signingRegion !== undefined && input.signingRegion !== null && { signingRegion: input.signingRegion }),
21162
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21163
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
21164
+ ...(input.signingRegion != null && { signingRegion: input.signingRegion }),
21467
21165
  };
21468
21166
  };
21469
21167
  const serializeAws_restJson1SnsAction = (input, context) => {
21470
21168
  return {
21471
- ...(input.messageFormat !== undefined && input.messageFormat !== null && { messageFormat: input.messageFormat }),
21472
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21473
- ...(input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }),
21169
+ ...(input.messageFormat != null && { messageFormat: input.messageFormat }),
21170
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21171
+ ...(input.targetArn != null && { targetArn: input.targetArn }),
21474
21172
  };
21475
21173
  };
21476
21174
  const serializeAws_restJson1SqsAction = (input, context) => {
21477
21175
  return {
21478
- ...(input.queueUrl !== undefined && input.queueUrl !== null && { queueUrl: input.queueUrl }),
21479
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21480
- ...(input.useBase64 !== undefined && input.useBase64 !== null && { useBase64: input.useBase64 }),
21176
+ ...(input.queueUrl != null && { queueUrl: input.queueUrl }),
21177
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21178
+ ...(input.useBase64 != null && { useBase64: input.useBase64 }),
21481
21179
  };
21482
21180
  };
21483
21181
  const serializeAws_restJson1StartSigningJobParameter = (input, context) => {
21484
21182
  return {
21485
- ...(input.destination !== undefined &&
21486
- input.destination !== null && { destination: serializeAws_restJson1Destination(input.destination, context) }),
21487
- ...(input.signingProfileName !== undefined &&
21488
- input.signingProfileName !== null && { signingProfileName: input.signingProfileName }),
21489
- ...(input.signingProfileParameter !== undefined &&
21490
- input.signingProfileParameter !== null && {
21183
+ ...(input.destination != null && { destination: serializeAws_restJson1Destination(input.destination, context) }),
21184
+ ...(input.signingProfileName != null && { signingProfileName: input.signingProfileName }),
21185
+ ...(input.signingProfileParameter != null && {
21491
21186
  signingProfileParameter: serializeAws_restJson1SigningProfileParameter(input.signingProfileParameter, context),
21492
21187
  }),
21493
21188
  };
21494
21189
  };
21495
21190
  const serializeAws_restJson1StatisticalThreshold = (input, context) => {
21496
21191
  return {
21497
- ...(input.statistic !== undefined && input.statistic !== null && { statistic: input.statistic }),
21192
+ ...(input.statistic != null && { statistic: input.statistic }),
21498
21193
  };
21499
21194
  };
21500
21195
  const serializeAws_restJson1StepFunctionsAction = (input, context) => {
21501
21196
  return {
21502
- ...(input.executionNamePrefix !== undefined &&
21503
- input.executionNamePrefix !== null && { executionNamePrefix: input.executionNamePrefix }),
21504
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21505
- ...(input.stateMachineName !== undefined &&
21506
- input.stateMachineName !== null && { stateMachineName: input.stateMachineName }),
21197
+ ...(input.executionNamePrefix != null && { executionNamePrefix: input.executionNamePrefix }),
21198
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21199
+ ...(input.stateMachineName != null && { stateMachineName: input.stateMachineName }),
21507
21200
  };
21508
21201
  };
21509
21202
  const serializeAws_restJson1_Stream = (input, context) => {
21510
21203
  return {
21511
- ...(input.fileId !== undefined && input.fileId !== null && { fileId: input.fileId }),
21512
- ...(input.streamId !== undefined && input.streamId !== null && { streamId: input.streamId }),
21204
+ ...(input.fileId != null && { fileId: input.fileId }),
21205
+ ...(input.streamId != null && { streamId: input.streamId }),
21513
21206
  };
21514
21207
  };
21515
21208
  const serializeAws_restJson1StreamFile = (input, context) => {
21516
21209
  return {
21517
- ...(input.fileId !== undefined && input.fileId !== null && { fileId: input.fileId }),
21518
- ...(input.s3Location !== undefined &&
21519
- input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }),
21210
+ ...(input.fileId != null && { fileId: input.fileId }),
21211
+ ...(input.s3Location != null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }),
21520
21212
  };
21521
21213
  };
21522
21214
  const serializeAws_restJson1StreamFiles = (input, context) => {
@@ -21551,8 +21243,8 @@ const serializeAws_restJson1SubnetIdList = (input, context) => {
21551
21243
  };
21552
21244
  const serializeAws_restJson1Tag = (input, context) => {
21553
21245
  return {
21554
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
21555
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
21246
+ ...(input.Key != null && { Key: input.Key }),
21247
+ ...(input.Value != null && { Value: input.Value }),
21556
21248
  };
21557
21249
  };
21558
21250
  const serializeAws_restJson1TagKeyList = (input, context) => {
@@ -21607,17 +21299,14 @@ const serializeAws_restJson1TargetViolationIdsForDetectMitigationActions = (inpu
21607
21299
  };
21608
21300
  const serializeAws_restJson1TermsAggregation = (input, context) => {
21609
21301
  return {
21610
- ...(input.maxBuckets !== undefined && input.maxBuckets !== null && { maxBuckets: input.maxBuckets }),
21302
+ ...(input.maxBuckets != null && { maxBuckets: input.maxBuckets }),
21611
21303
  };
21612
21304
  };
21613
21305
  const serializeAws_restJson1ThingGroupIndexingConfiguration = (input, context) => {
21614
21306
  return {
21615
- ...(input.customFields !== undefined &&
21616
- input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) }),
21617
- ...(input.managedFields !== undefined &&
21618
- input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) }),
21619
- ...(input.thingGroupIndexingMode !== undefined &&
21620
- input.thingGroupIndexingMode !== null && { thingGroupIndexingMode: input.thingGroupIndexingMode }),
21307
+ ...(input.customFields != null && { customFields: serializeAws_restJson1Fields(input.customFields, context) }),
21308
+ ...(input.managedFields != null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) }),
21309
+ ...(input.thingGroupIndexingMode != null && { thingGroupIndexingMode: input.thingGroupIndexingMode }),
21621
21310
  };
21622
21311
  };
21623
21312
  const serializeAws_restJson1ThingGroupList = (input, context) => {
@@ -21642,65 +21331,52 @@ const serializeAws_restJson1ThingGroupNames = (input, context) => {
21642
21331
  };
21643
21332
  const serializeAws_restJson1ThingGroupProperties = (input, context) => {
21644
21333
  return {
21645
- ...(input.attributePayload !== undefined &&
21646
- input.attributePayload !== null && {
21334
+ ...(input.attributePayload != null && {
21647
21335
  attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
21648
21336
  }),
21649
- ...(input.thingGroupDescription !== undefined &&
21650
- input.thingGroupDescription !== null && { thingGroupDescription: input.thingGroupDescription }),
21337
+ ...(input.thingGroupDescription != null && { thingGroupDescription: input.thingGroupDescription }),
21651
21338
  };
21652
21339
  };
21653
21340
  const serializeAws_restJson1ThingIndexingConfiguration = (input, context) => {
21654
21341
  return {
21655
- ...(input.customFields !== undefined &&
21656
- input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) }),
21657
- ...(input.deviceDefenderIndexingMode !== undefined &&
21658
- input.deviceDefenderIndexingMode !== null && { deviceDefenderIndexingMode: input.deviceDefenderIndexingMode }),
21659
- ...(input.managedFields !== undefined &&
21660
- input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) }),
21661
- ...(input.namedShadowIndexingMode !== undefined &&
21662
- input.namedShadowIndexingMode !== null && { namedShadowIndexingMode: input.namedShadowIndexingMode }),
21663
- ...(input.thingConnectivityIndexingMode !== undefined &&
21664
- input.thingConnectivityIndexingMode !== null && {
21342
+ ...(input.customFields != null && { customFields: serializeAws_restJson1Fields(input.customFields, context) }),
21343
+ ...(input.deviceDefenderIndexingMode != null && { deviceDefenderIndexingMode: input.deviceDefenderIndexingMode }),
21344
+ ...(input.managedFields != null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) }),
21345
+ ...(input.namedShadowIndexingMode != null && { namedShadowIndexingMode: input.namedShadowIndexingMode }),
21346
+ ...(input.thingConnectivityIndexingMode != null && {
21665
21347
  thingConnectivityIndexingMode: input.thingConnectivityIndexingMode,
21666
21348
  }),
21667
- ...(input.thingIndexingMode !== undefined &&
21668
- input.thingIndexingMode !== null && { thingIndexingMode: input.thingIndexingMode }),
21349
+ ...(input.thingIndexingMode != null && { thingIndexingMode: input.thingIndexingMode }),
21669
21350
  };
21670
21351
  };
21671
21352
  const serializeAws_restJson1ThingTypeProperties = (input, context) => {
21672
21353
  return {
21673
- ...(input.searchableAttributes !== undefined &&
21674
- input.searchableAttributes !== null && {
21354
+ ...(input.searchableAttributes != null && {
21675
21355
  searchableAttributes: serializeAws_restJson1SearchableAttributes(input.searchableAttributes, context),
21676
21356
  }),
21677
- ...(input.thingTypeDescription !== undefined &&
21678
- input.thingTypeDescription !== null && { thingTypeDescription: input.thingTypeDescription }),
21357
+ ...(input.thingTypeDescription != null && { thingTypeDescription: input.thingTypeDescription }),
21679
21358
  };
21680
21359
  };
21681
21360
  const serializeAws_restJson1TimeoutConfig = (input, context) => {
21682
21361
  return {
21683
- ...(input.inProgressTimeoutInMinutes !== undefined &&
21684
- input.inProgressTimeoutInMinutes !== null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
21362
+ ...(input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
21685
21363
  };
21686
21364
  };
21687
21365
  const serializeAws_restJson1TimestreamAction = (input, context) => {
21688
21366
  return {
21689
- ...(input.databaseName !== undefined && input.databaseName !== null && { databaseName: input.databaseName }),
21690
- ...(input.dimensions !== undefined &&
21691
- input.dimensions !== null && {
21367
+ ...(input.databaseName != null && { databaseName: input.databaseName }),
21368
+ ...(input.dimensions != null && {
21692
21369
  dimensions: serializeAws_restJson1TimestreamDimensionList(input.dimensions, context),
21693
21370
  }),
21694
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21695
- ...(input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }),
21696
- ...(input.timestamp !== undefined &&
21697
- input.timestamp !== null && { timestamp: serializeAws_restJson1TimestreamTimestamp(input.timestamp, context) }),
21371
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21372
+ ...(input.tableName != null && { tableName: input.tableName }),
21373
+ ...(input.timestamp != null && { timestamp: serializeAws_restJson1TimestreamTimestamp(input.timestamp, context) }),
21698
21374
  };
21699
21375
  };
21700
21376
  const serializeAws_restJson1TimestreamDimension = (input, context) => {
21701
21377
  return {
21702
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
21703
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
21378
+ ...(input.name != null && { name: input.name }),
21379
+ ...(input.value != null && { value: input.value }),
21704
21380
  };
21705
21381
  };
21706
21382
  const serializeAws_restJson1TimestreamDimensionList = (input, context) => {
@@ -21715,75 +21391,64 @@ const serializeAws_restJson1TimestreamDimensionList = (input, context) => {
21715
21391
  };
21716
21392
  const serializeAws_restJson1TimestreamTimestamp = (input, context) => {
21717
21393
  return {
21718
- ...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
21719
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
21394
+ ...(input.unit != null && { unit: input.unit }),
21395
+ ...(input.value != null && { value: input.value }),
21720
21396
  };
21721
21397
  };
21722
21398
  const serializeAws_restJson1TlsContext = (input, context) => {
21723
21399
  return {
21724
- ...(input.serverName !== undefined && input.serverName !== null && { serverName: input.serverName }),
21400
+ ...(input.serverName != null && { serverName: input.serverName }),
21725
21401
  };
21726
21402
  };
21727
21403
  const serializeAws_restJson1TopicRuleDestinationConfiguration = (input, context) => {
21728
21404
  return {
21729
- ...(input.httpUrlConfiguration !== undefined &&
21730
- input.httpUrlConfiguration !== null && {
21405
+ ...(input.httpUrlConfiguration != null && {
21731
21406
  httpUrlConfiguration: serializeAws_restJson1HttpUrlDestinationConfiguration(input.httpUrlConfiguration, context),
21732
21407
  }),
21733
- ...(input.vpcConfiguration !== undefined &&
21734
- input.vpcConfiguration !== null && {
21408
+ ...(input.vpcConfiguration != null && {
21735
21409
  vpcConfiguration: serializeAws_restJson1VpcDestinationConfiguration(input.vpcConfiguration, context),
21736
21410
  }),
21737
21411
  };
21738
21412
  };
21739
21413
  const serializeAws_restJson1TopicRulePayload = (input, context) => {
21740
21414
  return {
21741
- ...(input.actions !== undefined &&
21742
- input.actions !== null && { actions: serializeAws_restJson1ActionList(input.actions, context) }),
21743
- ...(input.awsIotSqlVersion !== undefined &&
21744
- input.awsIotSqlVersion !== null && { awsIotSqlVersion: input.awsIotSqlVersion }),
21745
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
21746
- ...(input.errorAction !== undefined &&
21747
- input.errorAction !== null && { errorAction: serializeAws_restJson1Action(input.errorAction, context) }),
21748
- ...(input.ruleDisabled !== undefined && input.ruleDisabled !== null && { ruleDisabled: input.ruleDisabled }),
21749
- ...(input.sql !== undefined && input.sql !== null && { sql: input.sql }),
21415
+ ...(input.actions != null && { actions: serializeAws_restJson1ActionList(input.actions, context) }),
21416
+ ...(input.awsIotSqlVersion != null && { awsIotSqlVersion: input.awsIotSqlVersion }),
21417
+ ...(input.description != null && { description: input.description }),
21418
+ ...(input.errorAction != null && { errorAction: serializeAws_restJson1Action(input.errorAction, context) }),
21419
+ ...(input.ruleDisabled != null && { ruleDisabled: input.ruleDisabled }),
21420
+ ...(input.sql != null && { sql: input.sql }),
21750
21421
  };
21751
21422
  };
21752
21423
  const serializeAws_restJson1UpdateCACertificateParams = (input, context) => {
21753
21424
  return {
21754
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
21425
+ ...(input.action != null && { action: input.action }),
21755
21426
  };
21756
21427
  };
21757
21428
  const serializeAws_restJson1UpdateDeviceCertificateParams = (input, context) => {
21758
21429
  return {
21759
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
21430
+ ...(input.action != null && { action: input.action }),
21760
21431
  };
21761
21432
  };
21762
21433
  const serializeAws_restJson1ViolationEventOccurrenceRange = (input, context) => {
21763
21434
  return {
21764
- ...(input.endTime !== undefined &&
21765
- input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
21766
- ...(input.startTime !== undefined &&
21767
- input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
21435
+ ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
21436
+ ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
21768
21437
  };
21769
21438
  };
21770
21439
  const serializeAws_restJson1VpcDestinationConfiguration = (input, context) => {
21771
21440
  return {
21772
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21773
- ...(input.securityGroups !== undefined &&
21774
- input.securityGroups !== null && {
21441
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21442
+ ...(input.securityGroups != null && {
21775
21443
  securityGroups: serializeAws_restJson1SecurityGroupList(input.securityGroups, context),
21776
21444
  }),
21777
- ...(input.subnetIds !== undefined &&
21778
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1SubnetIdList(input.subnetIds, context) }),
21779
- ...(input.vpcId !== undefined && input.vpcId !== null && { vpcId: input.vpcId }),
21445
+ ...(input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIdList(input.subnetIds, context) }),
21446
+ ...(input.vpcId != null && { vpcId: input.vpcId }),
21780
21447
  };
21781
21448
  };
21782
21449
  const deserializeAws_restJson1AbortConfig = (output, context) => {
21783
21450
  return {
21784
- criteriaList: output.criteriaList !== undefined && output.criteriaList !== null
21785
- ? deserializeAws_restJson1AbortCriteriaList(output.criteriaList, context)
21786
- : undefined,
21451
+ criteriaList: output.criteriaList != null ? deserializeAws_restJson1AbortCriteriaList(output.criteriaList, context) : undefined,
21787
21452
  };
21788
21453
  };
21789
21454
  const deserializeAws_restJson1AbortCriteria = (output, context) => {
@@ -21807,70 +21472,40 @@ const deserializeAws_restJson1AbortCriteriaList = (output, context) => {
21807
21472
  };
21808
21473
  const deserializeAws_restJson1Action = (output, context) => {
21809
21474
  return {
21810
- cloudwatchAlarm: output.cloudwatchAlarm !== undefined && output.cloudwatchAlarm !== null
21475
+ cloudwatchAlarm: output.cloudwatchAlarm != null
21811
21476
  ? deserializeAws_restJson1CloudwatchAlarmAction(output.cloudwatchAlarm, context)
21812
21477
  : undefined,
21813
- cloudwatchLogs: output.cloudwatchLogs !== undefined && output.cloudwatchLogs !== null
21478
+ cloudwatchLogs: output.cloudwatchLogs != null
21814
21479
  ? deserializeAws_restJson1CloudwatchLogsAction(output.cloudwatchLogs, context)
21815
21480
  : undefined,
21816
- cloudwatchMetric: output.cloudwatchMetric !== undefined && output.cloudwatchMetric !== null
21481
+ cloudwatchMetric: output.cloudwatchMetric != null
21817
21482
  ? deserializeAws_restJson1CloudwatchMetricAction(output.cloudwatchMetric, context)
21818
21483
  : undefined,
21819
- dynamoDB: output.dynamoDB !== undefined && output.dynamoDB !== null
21820
- ? deserializeAws_restJson1DynamoDBAction(output.dynamoDB, context)
21821
- : undefined,
21822
- dynamoDBv2: output.dynamoDBv2 !== undefined && output.dynamoDBv2 !== null
21823
- ? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context)
21824
- : undefined,
21825
- elasticsearch: output.elasticsearch !== undefined && output.elasticsearch !== null
21484
+ dynamoDB: output.dynamoDB != null ? deserializeAws_restJson1DynamoDBAction(output.dynamoDB, context) : undefined,
21485
+ dynamoDBv2: output.dynamoDBv2 != null ? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
21486
+ elasticsearch: output.elasticsearch != null
21826
21487
  ? deserializeAws_restJson1ElasticsearchAction(output.elasticsearch, context)
21827
21488
  : undefined,
21828
- firehose: output.firehose !== undefined && output.firehose !== null
21829
- ? deserializeAws_restJson1FirehoseAction(output.firehose, context)
21830
- : undefined,
21831
- http: output.http !== undefined && output.http !== null
21832
- ? deserializeAws_restJson1HttpAction(output.http, context)
21833
- : undefined,
21834
- iotAnalytics: output.iotAnalytics !== undefined && output.iotAnalytics !== null
21489
+ firehose: output.firehose != null ? deserializeAws_restJson1FirehoseAction(output.firehose, context) : undefined,
21490
+ http: output.http != null ? deserializeAws_restJson1HttpAction(output.http, context) : undefined,
21491
+ iotAnalytics: output.iotAnalytics != null
21835
21492
  ? deserializeAws_restJson1IotAnalyticsAction(output.iotAnalytics, context)
21836
21493
  : undefined,
21837
- iotEvents: output.iotEvents !== undefined && output.iotEvents !== null
21838
- ? deserializeAws_restJson1IotEventsAction(output.iotEvents, context)
21839
- : undefined,
21840
- iotSiteWise: output.iotSiteWise !== undefined && output.iotSiteWise !== null
21841
- ? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context)
21842
- : undefined,
21843
- kafka: output.kafka !== undefined && output.kafka !== null
21844
- ? deserializeAws_restJson1KafkaAction(output.kafka, context)
21845
- : undefined,
21846
- kinesis: output.kinesis !== undefined && output.kinesis !== null
21847
- ? deserializeAws_restJson1KinesisAction(output.kinesis, context)
21848
- : undefined,
21849
- lambda: output.lambda !== undefined && output.lambda !== null
21850
- ? deserializeAws_restJson1LambdaAction(output.lambda, context)
21851
- : undefined,
21852
- openSearch: output.openSearch !== undefined && output.openSearch !== null
21853
- ? deserializeAws_restJson1OpenSearchAction(output.openSearch, context)
21854
- : undefined,
21855
- republish: output.republish !== undefined && output.republish !== null
21856
- ? deserializeAws_restJson1RepublishAction(output.republish, context)
21857
- : undefined,
21858
- s3: output.s3 !== undefined && output.s3 !== null ? deserializeAws_restJson1S3Action(output.s3, context) : undefined,
21859
- salesforce: output.salesforce !== undefined && output.salesforce !== null
21860
- ? deserializeAws_restJson1SalesforceAction(output.salesforce, context)
21861
- : undefined,
21862
- sns: output.sns !== undefined && output.sns !== null
21863
- ? deserializeAws_restJson1SnsAction(output.sns, context)
21864
- : undefined,
21865
- sqs: output.sqs !== undefined && output.sqs !== null
21866
- ? deserializeAws_restJson1SqsAction(output.sqs, context)
21867
- : undefined,
21868
- stepFunctions: output.stepFunctions !== undefined && output.stepFunctions !== null
21494
+ iotEvents: output.iotEvents != null ? deserializeAws_restJson1IotEventsAction(output.iotEvents, context) : undefined,
21495
+ iotSiteWise: output.iotSiteWise != null ? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context) : undefined,
21496
+ kafka: output.kafka != null ? deserializeAws_restJson1KafkaAction(output.kafka, context) : undefined,
21497
+ kinesis: output.kinesis != null ? deserializeAws_restJson1KinesisAction(output.kinesis, context) : undefined,
21498
+ lambda: output.lambda != null ? deserializeAws_restJson1LambdaAction(output.lambda, context) : undefined,
21499
+ openSearch: output.openSearch != null ? deserializeAws_restJson1OpenSearchAction(output.openSearch, context) : undefined,
21500
+ republish: output.republish != null ? deserializeAws_restJson1RepublishAction(output.republish, context) : undefined,
21501
+ s3: output.s3 != null ? deserializeAws_restJson1S3Action(output.s3, context) : undefined,
21502
+ salesforce: output.salesforce != null ? deserializeAws_restJson1SalesforceAction(output.salesforce, context) : undefined,
21503
+ sns: output.sns != null ? deserializeAws_restJson1SnsAction(output.sns, context) : undefined,
21504
+ sqs: output.sqs != null ? deserializeAws_restJson1SqsAction(output.sqs, context) : undefined,
21505
+ stepFunctions: output.stepFunctions != null
21869
21506
  ? deserializeAws_restJson1StepFunctionsAction(output.stepFunctions, context)
21870
21507
  : undefined,
21871
- timestream: output.timestream !== undefined && output.timestream !== null
21872
- ? deserializeAws_restJson1TimestreamAction(output.timestream, context)
21873
- : undefined,
21508
+ timestream: output.timestream != null ? deserializeAws_restJson1TimestreamAction(output.timestream, context) : undefined,
21874
21509
  };
21875
21510
  };
21876
21511
  const deserializeAws_restJson1ActionList = (output, context) => {
@@ -21886,24 +21521,22 @@ const deserializeAws_restJson1ActionList = (output, context) => {
21886
21521
  };
21887
21522
  const deserializeAws_restJson1ActiveViolation = (output, context) => {
21888
21523
  return {
21889
- behavior: output.behavior !== undefined && output.behavior !== null
21890
- ? deserializeAws_restJson1Behavior(output.behavior, context)
21891
- : undefined,
21892
- lastViolationTime: output.lastViolationTime !== undefined && output.lastViolationTime !== null
21524
+ behavior: output.behavior != null ? deserializeAws_restJson1Behavior(output.behavior, context) : undefined,
21525
+ lastViolationTime: output.lastViolationTime != null
21893
21526
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastViolationTime)))
21894
21527
  : undefined,
21895
- lastViolationValue: output.lastViolationValue !== undefined && output.lastViolationValue !== null
21528
+ lastViolationValue: output.lastViolationValue != null
21896
21529
  ? deserializeAws_restJson1MetricValue(output.lastViolationValue, context)
21897
21530
  : undefined,
21898
21531
  securityProfileName: (0, smithy_client_1.expectString)(output.securityProfileName),
21899
21532
  thingName: (0, smithy_client_1.expectString)(output.thingName),
21900
21533
  verificationState: (0, smithy_client_1.expectString)(output.verificationState),
21901
21534
  verificationStateDescription: (0, smithy_client_1.expectString)(output.verificationStateDescription),
21902
- violationEventAdditionalInfo: output.violationEventAdditionalInfo !== undefined && output.violationEventAdditionalInfo !== null
21535
+ violationEventAdditionalInfo: output.violationEventAdditionalInfo != null
21903
21536
  ? deserializeAws_restJson1ViolationEventAdditionalInfo(output.violationEventAdditionalInfo, context)
21904
21537
  : undefined,
21905
21538
  violationId: (0, smithy_client_1.expectString)(output.violationId),
21906
- violationStartTime: output.violationStartTime !== undefined && output.violationStartTime !== null
21539
+ violationStartTime: output.violationStartTime != null
21907
21540
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.violationStartTime)))
21908
21541
  : undefined,
21909
21542
  };
@@ -21955,7 +21588,7 @@ const deserializeAws_restJson1AdditionalParameterMap = (output, context) => {
21955
21588
  const deserializeAws_restJson1AddThingsToThingGroupParams = (output, context) => {
21956
21589
  return {
21957
21590
  overrideDynamicGroups: (0, smithy_client_1.expectBoolean)(output.overrideDynamicGroups),
21958
- thingGroupNames: output.thingGroupNames !== undefined && output.thingGroupNames !== null
21591
+ thingGroupNames: output.thingGroupNames != null
21959
21592
  ? deserializeAws_restJson1ThingGroupNames(output.thingGroupNames, context)
21960
21593
  : undefined,
21961
21594
  };
@@ -21963,9 +21596,7 @@ const deserializeAws_restJson1AddThingsToThingGroupParams = (output, context) =>
21963
21596
  const deserializeAws_restJson1AggregationType = (output, context) => {
21964
21597
  return {
21965
21598
  name: (0, smithy_client_1.expectString)(output.name),
21966
- values: output.values !== undefined && output.values !== null
21967
- ? deserializeAws_restJson1AggregationTypeValues(output.values, context)
21968
- : undefined,
21599
+ values: output.values != null ? deserializeAws_restJson1AggregationTypeValues(output.values, context) : undefined,
21969
21600
  };
21970
21601
  };
21971
21602
  const deserializeAws_restJson1AggregationTypeValues = (output, context) => {
@@ -21998,9 +21629,7 @@ const deserializeAws_restJson1AlertTargets = (output, context) => {
21998
21629
  };
21999
21630
  const deserializeAws_restJson1Allowed = (output, context) => {
22000
21631
  return {
22001
- policies: output.policies !== undefined && output.policies !== null
22002
- ? deserializeAws_restJson1Policies(output.policies, context)
22003
- : undefined,
21632
+ policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
22004
21633
  };
22005
21634
  };
22006
21635
  const deserializeAws_restJson1AssetPropertyTimestamp = (output, context) => {
@@ -22012,10 +21641,8 @@ const deserializeAws_restJson1AssetPropertyTimestamp = (output, context) => {
22012
21641
  const deserializeAws_restJson1AssetPropertyValue = (output, context) => {
22013
21642
  return {
22014
21643
  quality: (0, smithy_client_1.expectString)(output.quality),
22015
- timestamp: output.timestamp !== undefined && output.timestamp !== null
22016
- ? deserializeAws_restJson1AssetPropertyTimestamp(output.timestamp, context)
22017
- : undefined,
22018
- value: output.value !== undefined && output.value !== null
21644
+ timestamp: output.timestamp != null ? deserializeAws_restJson1AssetPropertyTimestamp(output.timestamp, context) : undefined,
21645
+ value: output.value != null
22019
21646
  ? deserializeAws_restJson1AssetPropertyVariant((0, smithy_client_1.expectUnion)(output.value), context)
22020
21647
  : undefined,
22021
21648
  };
@@ -22048,9 +21675,7 @@ const deserializeAws_restJson1AssetPropertyVariant = (output, context) => {
22048
21675
  };
22049
21676
  const deserializeAws_restJson1AttributePayload = (output, context) => {
22050
21677
  return {
22051
- attributes: output.attributes !== undefined && output.attributes !== null
22052
- ? deserializeAws_restJson1Attributes(output.attributes, context)
22053
- : undefined,
21678
+ attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
22054
21679
  merge: (0, smithy_client_1.expectBoolean)(output.merge),
22055
21680
  };
22056
21681
  };
@@ -22140,21 +21765,21 @@ const deserializeAws_restJson1AuditFinding = (output, context) => {
22140
21765
  return {
22141
21766
  checkName: (0, smithy_client_1.expectString)(output.checkName),
22142
21767
  findingId: (0, smithy_client_1.expectString)(output.findingId),
22143
- findingTime: output.findingTime !== undefined && output.findingTime !== null
21768
+ findingTime: output.findingTime != null
22144
21769
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.findingTime)))
22145
21770
  : undefined,
22146
21771
  isSuppressed: (0, smithy_client_1.expectBoolean)(output.isSuppressed),
22147
- nonCompliantResource: output.nonCompliantResource !== undefined && output.nonCompliantResource !== null
21772
+ nonCompliantResource: output.nonCompliantResource != null
22148
21773
  ? deserializeAws_restJson1NonCompliantResource(output.nonCompliantResource, context)
22149
21774
  : undefined,
22150
21775
  reasonForNonCompliance: (0, smithy_client_1.expectString)(output.reasonForNonCompliance),
22151
21776
  reasonForNonComplianceCode: (0, smithy_client_1.expectString)(output.reasonForNonComplianceCode),
22152
- relatedResources: output.relatedResources !== undefined && output.relatedResources !== null
21777
+ relatedResources: output.relatedResources != null
22153
21778
  ? deserializeAws_restJson1RelatedResources(output.relatedResources, context)
22154
21779
  : undefined,
22155
21780
  severity: (0, smithy_client_1.expectString)(output.severity),
22156
21781
  taskId: (0, smithy_client_1.expectString)(output.taskId),
22157
- taskStartTime: output.taskStartTime !== undefined && output.taskStartTime !== null
21782
+ taskStartTime: output.taskStartTime != null
22158
21783
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.taskStartTime)))
22159
21784
  : undefined,
22160
21785
  };
@@ -22174,15 +21799,11 @@ const deserializeAws_restJson1AuditMitigationActionExecutionMetadata = (output,
22174
21799
  return {
22175
21800
  actionId: (0, smithy_client_1.expectString)(output.actionId),
22176
21801
  actionName: (0, smithy_client_1.expectString)(output.actionName),
22177
- endTime: output.endTime !== undefined && output.endTime !== null
22178
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
22179
- : undefined,
21802
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
22180
21803
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
22181
21804
  findingId: (0, smithy_client_1.expectString)(output.findingId),
22182
21805
  message: (0, smithy_client_1.expectString)(output.message),
22183
- startTime: output.startTime !== undefined && output.startTime !== null
22184
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
22185
- : undefined,
21806
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
22186
21807
  status: (0, smithy_client_1.expectString)(output.status),
22187
21808
  taskId: (0, smithy_client_1.expectString)(output.taskId),
22188
21809
  };
@@ -22200,9 +21821,7 @@ const deserializeAws_restJson1AuditMitigationActionExecutionMetadataList = (outp
22200
21821
  };
22201
21822
  const deserializeAws_restJson1AuditMitigationActionsTaskMetadata = (output, context) => {
22202
21823
  return {
22203
- startTime: output.startTime !== undefined && output.startTime !== null
22204
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
22205
- : undefined,
21824
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
22206
21825
  taskId: (0, smithy_client_1.expectString)(output.taskId),
22207
21826
  taskStatus: (0, smithy_client_1.expectString)(output.taskStatus),
22208
21827
  };
@@ -22231,13 +21850,11 @@ const deserializeAws_restJson1AuditMitigationActionsTaskStatistics = (output, co
22231
21850
  };
22232
21851
  const deserializeAws_restJson1AuditMitigationActionsTaskTarget = (output, context) => {
22233
21852
  return {
22234
- auditCheckToReasonCodeFilter: output.auditCheckToReasonCodeFilter !== undefined && output.auditCheckToReasonCodeFilter !== null
21853
+ auditCheckToReasonCodeFilter: output.auditCheckToReasonCodeFilter != null
22235
21854
  ? deserializeAws_restJson1AuditCheckToReasonCodeFilter(output.auditCheckToReasonCodeFilter, context)
22236
21855
  : undefined,
22237
21856
  auditTaskId: (0, smithy_client_1.expectString)(output.auditTaskId),
22238
- findingIds: output.findingIds !== undefined && output.findingIds !== null
22239
- ? deserializeAws_restJson1FindingIds(output.findingIds, context)
22240
- : undefined,
21857
+ findingIds: output.findingIds != null ? deserializeAws_restJson1FindingIds(output.findingIds, context) : undefined,
22241
21858
  };
22242
21859
  };
22243
21860
  const deserializeAws_restJson1AuditNotificationTarget = (output, context) => {
@@ -22262,10 +21879,10 @@ const deserializeAws_restJson1AuditSuppression = (output, context) => {
22262
21879
  return {
22263
21880
  checkName: (0, smithy_client_1.expectString)(output.checkName),
22264
21881
  description: (0, smithy_client_1.expectString)(output.description),
22265
- expirationDate: output.expirationDate !== undefined && output.expirationDate !== null
21882
+ expirationDate: output.expirationDate != null
22266
21883
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expirationDate)))
22267
21884
  : undefined,
22268
- resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
21885
+ resourceIdentifier: output.resourceIdentifier != null
22269
21886
  ? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
22270
21887
  : undefined,
22271
21888
  suppressIndefinitely: (0, smithy_client_1.expectBoolean)(output.suppressIndefinitely),
@@ -22303,9 +21920,7 @@ const deserializeAws_restJson1AuditTaskMetadataList = (output, context) => {
22303
21920
  const deserializeAws_restJson1AuthInfo = (output, context) => {
22304
21921
  return {
22305
21922
  actionType: (0, smithy_client_1.expectString)(output.actionType),
22306
- resources: output.resources !== undefined && output.resources !== null
22307
- ? deserializeAws_restJson1Resources(output.resources, context)
22308
- : undefined,
21923
+ resources: output.resources != null ? deserializeAws_restJson1Resources(output.resources, context) : undefined,
22309
21924
  };
22310
21925
  };
22311
21926
  const deserializeAws_restJson1AuthorizerConfig = (output, context) => {
@@ -22319,17 +21934,17 @@ const deserializeAws_restJson1AuthorizerDescription = (output, context) => {
22319
21934
  authorizerArn: (0, smithy_client_1.expectString)(output.authorizerArn),
22320
21935
  authorizerFunctionArn: (0, smithy_client_1.expectString)(output.authorizerFunctionArn),
22321
21936
  authorizerName: (0, smithy_client_1.expectString)(output.authorizerName),
22322
- creationDate: output.creationDate !== undefined && output.creationDate !== null
21937
+ creationDate: output.creationDate != null
22323
21938
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22324
21939
  : undefined,
22325
21940
  enableCachingForHttp: (0, smithy_client_1.expectBoolean)(output.enableCachingForHttp),
22326
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
21941
+ lastModifiedDate: output.lastModifiedDate != null
22327
21942
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
22328
21943
  : undefined,
22329
21944
  signingDisabled: (0, smithy_client_1.expectBoolean)(output.signingDisabled),
22330
21945
  status: (0, smithy_client_1.expectString)(output.status),
22331
21946
  tokenKeyName: (0, smithy_client_1.expectString)(output.tokenKeyName),
22332
- tokenSigningPublicKeys: output.tokenSigningPublicKeys !== undefined && output.tokenSigningPublicKeys !== null
21947
+ tokenSigningPublicKeys: output.tokenSigningPublicKeys != null
22333
21948
  ? deserializeAws_restJson1PublicKeyMap(output.tokenSigningPublicKeys, context)
22334
21949
  : undefined,
22335
21950
  };
@@ -22353,17 +21968,11 @@ const deserializeAws_restJson1AuthorizerSummary = (output, context) => {
22353
21968
  };
22354
21969
  const deserializeAws_restJson1AuthResult = (output, context) => {
22355
21970
  return {
22356
- allowed: output.allowed !== undefined && output.allowed !== null
22357
- ? deserializeAws_restJson1Allowed(output.allowed, context)
22358
- : undefined,
21971
+ allowed: output.allowed != null ? deserializeAws_restJson1Allowed(output.allowed, context) : undefined,
22359
21972
  authDecision: (0, smithy_client_1.expectString)(output.authDecision),
22360
- authInfo: output.authInfo !== undefined && output.authInfo !== null
22361
- ? deserializeAws_restJson1AuthInfo(output.authInfo, context)
22362
- : undefined,
22363
- denied: output.denied !== undefined && output.denied !== null
22364
- ? deserializeAws_restJson1Denied(output.denied, context)
22365
- : undefined,
22366
- missingContextValues: output.missingContextValues !== undefined && output.missingContextValues !== null
21973
+ authInfo: output.authInfo != null ? deserializeAws_restJson1AuthInfo(output.authInfo, context) : undefined,
21974
+ denied: output.denied != null ? deserializeAws_restJson1Denied(output.denied, context) : undefined,
21975
+ missingContextValues: output.missingContextValues != null
22367
21976
  ? deserializeAws_restJson1MissingContextValues(output.missingContextValues, context)
22368
21977
  : undefined,
22369
21978
  };
@@ -22381,7 +21990,7 @@ const deserializeAws_restJson1AuthResults = (output, context) => {
22381
21990
  };
22382
21991
  const deserializeAws_restJson1AwsJobExecutionsRolloutConfig = (output, context) => {
22383
21992
  return {
22384
- exponentialRate: output.exponentialRate !== undefined && output.exponentialRate !== null
21993
+ exponentialRate: output.exponentialRate != null
22385
21994
  ? deserializeAws_restJson1AwsJobExponentialRolloutRate(output.exponentialRate, context)
22386
21995
  : undefined,
22387
21996
  maximumPerMinute: (0, smithy_client_1.expectInt32)(output.maximumPerMinute),
@@ -22391,7 +22000,7 @@ const deserializeAws_restJson1AwsJobExponentialRolloutRate = (output, context) =
22391
22000
  return {
22392
22001
  baseRatePerMinute: (0, smithy_client_1.expectInt32)(output.baseRatePerMinute),
22393
22002
  incrementFactor: (0, smithy_client_1.limitedParseDouble)(output.incrementFactor),
22394
- rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null
22003
+ rateIncreaseCriteria: output.rateIncreaseCriteria != null
22395
22004
  ? deserializeAws_restJson1AwsJobRateIncreaseCriteria(output.rateIncreaseCriteria, context)
22396
22005
  : undefined,
22397
22006
  };
@@ -22409,11 +22018,9 @@ const deserializeAws_restJson1AwsJobRateIncreaseCriteria = (output, context) =>
22409
22018
  };
22410
22019
  const deserializeAws_restJson1Behavior = (output, context) => {
22411
22020
  return {
22412
- criteria: output.criteria !== undefined && output.criteria !== null
22413
- ? deserializeAws_restJson1BehaviorCriteria(output.criteria, context)
22414
- : undefined,
22021
+ criteria: output.criteria != null ? deserializeAws_restJson1BehaviorCriteria(output.criteria, context) : undefined,
22415
22022
  metric: (0, smithy_client_1.expectString)(output.metric),
22416
- metricDimension: output.metricDimension !== undefined && output.metricDimension !== null
22023
+ metricDimension: output.metricDimension != null
22417
22024
  ? deserializeAws_restJson1MetricDimension(output.metricDimension, context)
22418
22025
  : undefined,
22419
22026
  name: (0, smithy_client_1.expectString)(output.name),
@@ -22426,15 +22033,13 @@ const deserializeAws_restJson1BehaviorCriteria = (output, context) => {
22426
22033
  consecutiveDatapointsToAlarm: (0, smithy_client_1.expectInt32)(output.consecutiveDatapointsToAlarm),
22427
22034
  consecutiveDatapointsToClear: (0, smithy_client_1.expectInt32)(output.consecutiveDatapointsToClear),
22428
22035
  durationSeconds: (0, smithy_client_1.expectInt32)(output.durationSeconds),
22429
- mlDetectionConfig: output.mlDetectionConfig !== undefined && output.mlDetectionConfig !== null
22036
+ mlDetectionConfig: output.mlDetectionConfig != null
22430
22037
  ? deserializeAws_restJson1MachineLearningDetectionConfig(output.mlDetectionConfig, context)
22431
22038
  : undefined,
22432
- statisticalThreshold: output.statisticalThreshold !== undefined && output.statisticalThreshold !== null
22039
+ statisticalThreshold: output.statisticalThreshold != null
22433
22040
  ? deserializeAws_restJson1StatisticalThreshold(output.statisticalThreshold, context)
22434
22041
  : undefined,
22435
- value: output.value !== undefined && output.value !== null
22436
- ? deserializeAws_restJson1MetricValue(output.value, context)
22437
- : undefined,
22042
+ value: output.value != null ? deserializeAws_restJson1MetricValue(output.value, context) : undefined,
22438
22043
  };
22439
22044
  };
22440
22045
  const deserializeAws_restJson1BehaviorModelTrainingSummaries = (output, context) => {
@@ -22452,12 +22057,12 @@ const deserializeAws_restJson1BehaviorModelTrainingSummary = (output, context) =
22452
22057
  return {
22453
22058
  behaviorName: (0, smithy_client_1.expectString)(output.behaviorName),
22454
22059
  datapointsCollectionPercentage: (0, smithy_client_1.limitedParseDouble)(output.datapointsCollectionPercentage),
22455
- lastModelRefreshDate: output.lastModelRefreshDate !== undefined && output.lastModelRefreshDate !== null
22060
+ lastModelRefreshDate: output.lastModelRefreshDate != null
22456
22061
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModelRefreshDate)))
22457
22062
  : undefined,
22458
22063
  modelStatus: (0, smithy_client_1.expectString)(output.modelStatus),
22459
22064
  securityProfileName: (0, smithy_client_1.expectString)(output.securityProfileName),
22460
- trainingDataCollectionStartDate: output.trainingDataCollectionStartDate !== undefined && output.trainingDataCollectionStartDate !== null
22065
+ trainingDataCollectionStartDate: output.trainingDataCollectionStartDate != null
22461
22066
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.trainingDataCollectionStartDate)))
22462
22067
  : undefined,
22463
22068
  };
@@ -22475,7 +22080,7 @@ const deserializeAws_restJson1Behaviors = (output, context) => {
22475
22080
  };
22476
22081
  const deserializeAws_restJson1BillingGroupMetadata = (output, context) => {
22477
22082
  return {
22478
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22083
+ creationDate: output.creationDate != null
22479
22084
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22480
22085
  : undefined,
22481
22086
  };
@@ -22517,7 +22122,7 @@ const deserializeAws_restJson1CACertificate = (output, context) => {
22517
22122
  return {
22518
22123
  certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
22519
22124
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
22520
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22125
+ creationDate: output.creationDate != null
22521
22126
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22522
22127
  : undefined,
22523
22128
  status: (0, smithy_client_1.expectString)(output.status),
@@ -22530,19 +22135,17 @@ const deserializeAws_restJson1CACertificateDescription = (output, context) => {
22530
22135
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
22531
22136
  certificateMode: (0, smithy_client_1.expectString)(output.certificateMode),
22532
22137
  certificatePem: (0, smithy_client_1.expectString)(output.certificatePem),
22533
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22138
+ creationDate: output.creationDate != null
22534
22139
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22535
22140
  : undefined,
22536
22141
  customerVersion: (0, smithy_client_1.expectInt32)(output.customerVersion),
22537
22142
  generationId: (0, smithy_client_1.expectString)(output.generationId),
22538
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
22143
+ lastModifiedDate: output.lastModifiedDate != null
22539
22144
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
22540
22145
  : undefined,
22541
22146
  ownedBy: (0, smithy_client_1.expectString)(output.ownedBy),
22542
22147
  status: (0, smithy_client_1.expectString)(output.status),
22543
- validity: output.validity !== undefined && output.validity !== null
22544
- ? deserializeAws_restJson1CertificateValidity(output.validity, context)
22545
- : undefined,
22148
+ validity: output.validity != null ? deserializeAws_restJson1CertificateValidity(output.validity, context) : undefined,
22546
22149
  };
22547
22150
  };
22548
22151
  const deserializeAws_restJson1CACertificates = (output, context) => {
@@ -22561,7 +22164,7 @@ const deserializeAws_restJson1Certificate = (output, context) => {
22561
22164
  certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
22562
22165
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
22563
22166
  certificateMode: (0, smithy_client_1.expectString)(output.certificateMode),
22564
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22167
+ creationDate: output.creationDate != null
22565
22168
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22566
22169
  : undefined,
22567
22170
  status: (0, smithy_client_1.expectString)(output.status),
@@ -22574,23 +22177,19 @@ const deserializeAws_restJson1CertificateDescription = (output, context) => {
22574
22177
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
22575
22178
  certificateMode: (0, smithy_client_1.expectString)(output.certificateMode),
22576
22179
  certificatePem: (0, smithy_client_1.expectString)(output.certificatePem),
22577
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22180
+ creationDate: output.creationDate != null
22578
22181
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22579
22182
  : undefined,
22580
22183
  customerVersion: (0, smithy_client_1.expectInt32)(output.customerVersion),
22581
22184
  generationId: (0, smithy_client_1.expectString)(output.generationId),
22582
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
22185
+ lastModifiedDate: output.lastModifiedDate != null
22583
22186
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
22584
22187
  : undefined,
22585
22188
  ownedBy: (0, smithy_client_1.expectString)(output.ownedBy),
22586
22189
  previousOwnedBy: (0, smithy_client_1.expectString)(output.previousOwnedBy),
22587
22190
  status: (0, smithy_client_1.expectString)(output.status),
22588
- transferData: output.transferData !== undefined && output.transferData !== null
22589
- ? deserializeAws_restJson1TransferData(output.transferData, context)
22590
- : undefined,
22591
- validity: output.validity !== undefined && output.validity !== null
22592
- ? deserializeAws_restJson1CertificateValidity(output.validity, context)
22593
- : undefined,
22191
+ transferData: output.transferData != null ? deserializeAws_restJson1TransferData(output.transferData, context) : undefined,
22192
+ validity: output.validity != null ? deserializeAws_restJson1CertificateValidity(output.validity, context) : undefined,
22594
22193
  };
22595
22194
  };
22596
22195
  const deserializeAws_restJson1Certificates = (output, context) => {
@@ -22606,12 +22205,8 @@ const deserializeAws_restJson1Certificates = (output, context) => {
22606
22205
  };
22607
22206
  const deserializeAws_restJson1CertificateValidity = (output, context) => {
22608
22207
  return {
22609
- notAfter: output.notAfter !== undefined && output.notAfter !== null
22610
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notAfter)))
22611
- : undefined,
22612
- notBefore: output.notBefore !== undefined && output.notBefore !== null
22613
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notBefore)))
22614
- : undefined,
22208
+ notAfter: output.notAfter != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notAfter))) : undefined,
22209
+ notBefore: output.notBefore != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notBefore))) : undefined,
22615
22210
  };
22616
22211
  };
22617
22212
  const deserializeAws_restJson1Cidrs = (output, context) => {
@@ -22663,10 +22258,10 @@ const deserializeAws_restJson1CloudwatchMetricAction = (output, context) => {
22663
22258
  const deserializeAws_restJson1CodeSigning = (output, context) => {
22664
22259
  return {
22665
22260
  awsSignerJobId: (0, smithy_client_1.expectString)(output.awsSignerJobId),
22666
- customCodeSigning: output.customCodeSigning !== undefined && output.customCodeSigning !== null
22261
+ customCodeSigning: output.customCodeSigning != null
22667
22262
  ? deserializeAws_restJson1CustomCodeSigning(output.customCodeSigning, context)
22668
22263
  : undefined,
22669
- startSigningJobParameter: output.startSigningJobParameter !== undefined && output.startSigningJobParameter !== null
22264
+ startSigningJobParameter: output.startSigningJobParameter != null
22670
22265
  ? deserializeAws_restJson1StartSigningJobParameter(output.startSigningJobParameter, context)
22671
22266
  : undefined,
22672
22267
  };
@@ -22679,9 +22274,7 @@ const deserializeAws_restJson1CodeSigningCertificateChain = (output, context) =>
22679
22274
  };
22680
22275
  const deserializeAws_restJson1CodeSigningSignature = (output, context) => {
22681
22276
  return {
22682
- inlineDocument: output.inlineDocument !== undefined && output.inlineDocument !== null
22683
- ? context.base64Decoder(output.inlineDocument)
22684
- : undefined,
22277
+ inlineDocument: output.inlineDocument != null ? context.base64Decoder(output.inlineDocument) : undefined,
22685
22278
  };
22686
22279
  };
22687
22280
  const deserializeAws_restJson1Configuration = (output, context) => {
@@ -22691,31 +22284,23 @@ const deserializeAws_restJson1Configuration = (output, context) => {
22691
22284
  };
22692
22285
  const deserializeAws_restJson1CustomCodeSigning = (output, context) => {
22693
22286
  return {
22694
- certificateChain: output.certificateChain !== undefined && output.certificateChain !== null
22287
+ certificateChain: output.certificateChain != null
22695
22288
  ? deserializeAws_restJson1CodeSigningCertificateChain(output.certificateChain, context)
22696
22289
  : undefined,
22697
22290
  hashAlgorithm: (0, smithy_client_1.expectString)(output.hashAlgorithm),
22698
- signature: output.signature !== undefined && output.signature !== null
22699
- ? deserializeAws_restJson1CodeSigningSignature(output.signature, context)
22700
- : undefined,
22291
+ signature: output.signature != null ? deserializeAws_restJson1CodeSigningSignature(output.signature, context) : undefined,
22701
22292
  signatureAlgorithm: (0, smithy_client_1.expectString)(output.signatureAlgorithm),
22702
22293
  };
22703
22294
  };
22704
22295
  const deserializeAws_restJson1Denied = (output, context) => {
22705
22296
  return {
22706
- explicitDeny: output.explicitDeny !== undefined && output.explicitDeny !== null
22707
- ? deserializeAws_restJson1ExplicitDeny(output.explicitDeny, context)
22708
- : undefined,
22709
- implicitDeny: output.implicitDeny !== undefined && output.implicitDeny !== null
22710
- ? deserializeAws_restJson1ImplicitDeny(output.implicitDeny, context)
22711
- : undefined,
22297
+ explicitDeny: output.explicitDeny != null ? deserializeAws_restJson1ExplicitDeny(output.explicitDeny, context) : undefined,
22298
+ implicitDeny: output.implicitDeny != null ? deserializeAws_restJson1ImplicitDeny(output.implicitDeny, context) : undefined,
22712
22299
  };
22713
22300
  };
22714
22301
  const deserializeAws_restJson1Destination = (output, context) => {
22715
22302
  return {
22716
- s3Destination: output.s3Destination !== undefined && output.s3Destination !== null
22717
- ? deserializeAws_restJson1S3Destination(output.s3Destination, context)
22718
- : undefined,
22303
+ s3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
22719
22304
  };
22720
22305
  };
22721
22306
  const deserializeAws_restJson1DetailsMap = (output, context) => {
@@ -22733,10 +22318,10 @@ const deserializeAws_restJson1DetectMitigationActionExecution = (output, context
22733
22318
  return {
22734
22319
  actionName: (0, smithy_client_1.expectString)(output.actionName),
22735
22320
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
22736
- executionEndDate: output.executionEndDate !== undefined && output.executionEndDate !== null
22321
+ executionEndDate: output.executionEndDate != null
22737
22322
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.executionEndDate)))
22738
22323
  : undefined,
22739
- executionStartDate: output.executionStartDate !== undefined && output.executionStartDate !== null
22324
+ executionStartDate: output.executionStartDate != null
22740
22325
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.executionStartDate)))
22741
22326
  : undefined,
22742
22327
  message: (0, smithy_client_1.expectString)(output.message),
@@ -22766,26 +22351,26 @@ const deserializeAws_restJson1DetectMitigationActionsTaskStatistics = (output, c
22766
22351
  };
22767
22352
  const deserializeAws_restJson1DetectMitigationActionsTaskSummary = (output, context) => {
22768
22353
  return {
22769
- actionsDefinition: output.actionsDefinition !== undefined && output.actionsDefinition !== null
22354
+ actionsDefinition: output.actionsDefinition != null
22770
22355
  ? deserializeAws_restJson1MitigationActionList(output.actionsDefinition, context)
22771
22356
  : undefined,
22772
22357
  onlyActiveViolationsIncluded: (0, smithy_client_1.expectBoolean)(output.onlyActiveViolationsIncluded),
22773
22358
  suppressedAlertsIncluded: (0, smithy_client_1.expectBoolean)(output.suppressedAlertsIncluded),
22774
- target: output.target !== undefined && output.target !== null
22359
+ target: output.target != null
22775
22360
  ? deserializeAws_restJson1DetectMitigationActionsTaskTarget(output.target, context)
22776
22361
  : undefined,
22777
- taskEndTime: output.taskEndTime !== undefined && output.taskEndTime !== null
22362
+ taskEndTime: output.taskEndTime != null
22778
22363
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.taskEndTime)))
22779
22364
  : undefined,
22780
22365
  taskId: (0, smithy_client_1.expectString)(output.taskId),
22781
- taskStartTime: output.taskStartTime !== undefined && output.taskStartTime !== null
22366
+ taskStartTime: output.taskStartTime != null
22782
22367
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.taskStartTime)))
22783
22368
  : undefined,
22784
- taskStatistics: output.taskStatistics !== undefined && output.taskStatistics !== null
22369
+ taskStatistics: output.taskStatistics != null
22785
22370
  ? deserializeAws_restJson1DetectMitigationActionsTaskStatistics(output.taskStatistics, context)
22786
22371
  : undefined,
22787
22372
  taskStatus: (0, smithy_client_1.expectString)(output.taskStatus),
22788
- violationEventOccurrenceRange: output.violationEventOccurrenceRange !== undefined && output.violationEventOccurrenceRange !== null
22373
+ violationEventOccurrenceRange: output.violationEventOccurrenceRange != null
22789
22374
  ? deserializeAws_restJson1ViolationEventOccurrenceRange(output.violationEventOccurrenceRange, context)
22790
22375
  : undefined,
22791
22376
  };
@@ -22805,7 +22390,7 @@ const deserializeAws_restJson1DetectMitigationActionsTaskTarget = (output, conte
22805
22390
  return {
22806
22391
  behaviorName: (0, smithy_client_1.expectString)(output.behaviorName),
22807
22392
  securityProfileName: (0, smithy_client_1.expectString)(output.securityProfileName),
22808
- violationIds: output.violationIds !== undefined && output.violationIds !== null
22393
+ violationIds: output.violationIds != null
22809
22394
  ? deserializeAws_restJson1TargetViolationIdsForDetectMitigationActions(output.violationIds, context)
22810
22395
  : undefined,
22811
22396
  };
@@ -22886,9 +22471,7 @@ const deserializeAws_restJson1DynamoDBAction = (output, context) => {
22886
22471
  };
22887
22472
  const deserializeAws_restJson1DynamoDBv2Action = (output, context) => {
22888
22473
  return {
22889
- putItem: output.putItem !== undefined && output.putItem !== null
22890
- ? deserializeAws_restJson1PutItemInput(output.putItem, context)
22891
- : undefined,
22474
+ putItem: output.putItem != null ? deserializeAws_restJson1PutItemInput(output.putItem, context) : undefined,
22892
22475
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
22893
22476
  };
22894
22477
  };
@@ -22955,16 +22538,14 @@ const deserializeAws_restJson1EventConfigurations = (output, context) => {
22955
22538
  };
22956
22539
  const deserializeAws_restJson1ExplicitDeny = (output, context) => {
22957
22540
  return {
22958
- policies: output.policies !== undefined && output.policies !== null
22959
- ? deserializeAws_restJson1Policies(output.policies, context)
22960
- : undefined,
22541
+ policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
22961
22542
  };
22962
22543
  };
22963
22544
  const deserializeAws_restJson1ExponentialRolloutRate = (output, context) => {
22964
22545
  return {
22965
22546
  baseRatePerMinute: (0, smithy_client_1.expectInt32)(output.baseRatePerMinute),
22966
22547
  incrementFactor: (0, smithy_client_1.limitedParseDouble)(output.incrementFactor),
22967
- rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null
22548
+ rateIncreaseCriteria: output.rateIncreaseCriteria != null
22968
22549
  ? deserializeAws_restJson1RateIncreaseCriteria(output.rateIncreaseCriteria, context)
22969
22550
  : undefined,
22970
22551
  };
@@ -22988,12 +22569,8 @@ const deserializeAws_restJson1Fields = (output, context) => {
22988
22569
  };
22989
22570
  const deserializeAws_restJson1FileLocation = (output, context) => {
22990
22571
  return {
22991
- s3Location: output.s3Location !== undefined && output.s3Location !== null
22992
- ? deserializeAws_restJson1S3Location(output.s3Location, context)
22993
- : undefined,
22994
- stream: output.stream !== undefined && output.stream !== null
22995
- ? deserializeAws_restJson1_Stream(output.stream, context)
22996
- : undefined,
22572
+ s3Location: output.s3Location != null ? deserializeAws_restJson1S3Location(output.s3Location, context) : undefined,
22573
+ stream: output.stream != null ? deserializeAws_restJson1_Stream(output.stream, context) : undefined,
22997
22574
  };
22998
22575
  };
22999
22576
  const deserializeAws_restJson1FindingIds = (output, context) => {
@@ -23051,13 +22628,9 @@ const deserializeAws_restJson1HeaderList = (output, context) => {
23051
22628
  };
23052
22629
  const deserializeAws_restJson1HttpAction = (output, context) => {
23053
22630
  return {
23054
- auth: output.auth !== undefined && output.auth !== null
23055
- ? deserializeAws_restJson1HttpAuthorization(output.auth, context)
23056
- : undefined,
22631
+ auth: output.auth != null ? deserializeAws_restJson1HttpAuthorization(output.auth, context) : undefined,
23057
22632
  confirmationUrl: (0, smithy_client_1.expectString)(output.confirmationUrl),
23058
- headers: output.headers !== undefined && output.headers !== null
23059
- ? deserializeAws_restJson1HeaderList(output.headers, context)
23060
- : undefined,
22633
+ headers: output.headers != null ? deserializeAws_restJson1HeaderList(output.headers, context) : undefined,
23061
22634
  url: (0, smithy_client_1.expectString)(output.url),
23062
22635
  };
23063
22636
  };
@@ -23069,9 +22642,7 @@ const deserializeAws_restJson1HttpActionHeader = (output, context) => {
23069
22642
  };
23070
22643
  const deserializeAws_restJson1HttpAuthorization = (output, context) => {
23071
22644
  return {
23072
- sigv4: output.sigv4 !== undefined && output.sigv4 !== null
23073
- ? deserializeAws_restJson1SigV4Authorization(output.sigv4, context)
23074
- : undefined,
22645
+ sigv4: output.sigv4 != null ? deserializeAws_restJson1SigV4Authorization(output.sigv4, context) : undefined,
23075
22646
  };
23076
22647
  };
23077
22648
  const deserializeAws_restJson1HttpUrlDestinationProperties = (output, context) => {
@@ -23086,9 +22657,7 @@ const deserializeAws_restJson1HttpUrlDestinationSummary = (output, context) => {
23086
22657
  };
23087
22658
  const deserializeAws_restJson1ImplicitDeny = (output, context) => {
23088
22659
  return {
23089
- policies: output.policies !== undefined && output.policies !== null
23090
- ? deserializeAws_restJson1Policies(output.policies, context)
23091
- : undefined,
22660
+ policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
23092
22661
  };
23093
22662
  };
23094
22663
  const deserializeAws_restJson1IndexNamesList = (output, context) => {
@@ -23120,7 +22689,7 @@ const deserializeAws_restJson1IotEventsAction = (output, context) => {
23120
22689
  };
23121
22690
  const deserializeAws_restJson1IotSiteWiseAction = (output, context) => {
23122
22691
  return {
23123
- putAssetPropertyValueEntries: output.putAssetPropertyValueEntries !== undefined && output.putAssetPropertyValueEntries !== null
22692
+ putAssetPropertyValueEntries: output.putAssetPropertyValueEntries != null
23124
22693
  ? deserializeAws_restJson1PutAssetPropertyValueEntryList(output.putAssetPropertyValueEntries, context)
23125
22694
  : undefined,
23126
22695
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -23128,50 +22697,42 @@ const deserializeAws_restJson1IotSiteWiseAction = (output, context) => {
23128
22697
  };
23129
22698
  const deserializeAws_restJson1Job = (output, context) => {
23130
22699
  return {
23131
- abortConfig: output.abortConfig !== undefined && output.abortConfig !== null
23132
- ? deserializeAws_restJson1AbortConfig(output.abortConfig, context)
23133
- : undefined,
22700
+ abortConfig: output.abortConfig != null ? deserializeAws_restJson1AbortConfig(output.abortConfig, context) : undefined,
23134
22701
  comment: (0, smithy_client_1.expectString)(output.comment),
23135
- completedAt: output.completedAt !== undefined && output.completedAt !== null
22702
+ completedAt: output.completedAt != null
23136
22703
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completedAt)))
23137
22704
  : undefined,
23138
- createdAt: output.createdAt !== undefined && output.createdAt !== null
23139
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
23140
- : undefined,
22705
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
23141
22706
  description: (0, smithy_client_1.expectString)(output.description),
23142
- documentParameters: output.documentParameters !== undefined && output.documentParameters !== null
22707
+ documentParameters: output.documentParameters != null
23143
22708
  ? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
23144
22709
  : undefined,
23145
22710
  forceCanceled: (0, smithy_client_1.expectBoolean)(output.forceCanceled),
23146
22711
  isConcurrent: (0, smithy_client_1.expectBoolean)(output.isConcurrent),
23147
22712
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
23148
- jobExecutionsRetryConfig: output.jobExecutionsRetryConfig !== undefined && output.jobExecutionsRetryConfig !== null
22713
+ jobExecutionsRetryConfig: output.jobExecutionsRetryConfig != null
23149
22714
  ? deserializeAws_restJson1JobExecutionsRetryConfig(output.jobExecutionsRetryConfig, context)
23150
22715
  : undefined,
23151
- jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig !== undefined && output.jobExecutionsRolloutConfig !== null
22716
+ jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig != null
23152
22717
  ? deserializeAws_restJson1JobExecutionsRolloutConfig(output.jobExecutionsRolloutConfig, context)
23153
22718
  : undefined,
23154
22719
  jobId: (0, smithy_client_1.expectString)(output.jobId),
23155
- jobProcessDetails: output.jobProcessDetails !== undefined && output.jobProcessDetails !== null
22720
+ jobProcessDetails: output.jobProcessDetails != null
23156
22721
  ? deserializeAws_restJson1JobProcessDetails(output.jobProcessDetails, context)
23157
22722
  : undefined,
23158
22723
  jobTemplateArn: (0, smithy_client_1.expectString)(output.jobTemplateArn),
23159
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
22724
+ lastUpdatedAt: output.lastUpdatedAt != null
23160
22725
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
23161
22726
  : undefined,
23162
22727
  namespaceId: (0, smithy_client_1.expectString)(output.namespaceId),
23163
- presignedUrlConfig: output.presignedUrlConfig !== undefined && output.presignedUrlConfig !== null
22728
+ presignedUrlConfig: output.presignedUrlConfig != null
23164
22729
  ? deserializeAws_restJson1PresignedUrlConfig(output.presignedUrlConfig, context)
23165
22730
  : undefined,
23166
22731
  reasonCode: (0, smithy_client_1.expectString)(output.reasonCode),
23167
22732
  status: (0, smithy_client_1.expectString)(output.status),
23168
22733
  targetSelection: (0, smithy_client_1.expectString)(output.targetSelection),
23169
- targets: output.targets !== undefined && output.targets !== null
23170
- ? deserializeAws_restJson1JobTargets(output.targets, context)
23171
- : undefined,
23172
- timeoutConfig: output.timeoutConfig !== undefined && output.timeoutConfig !== null
23173
- ? deserializeAws_restJson1TimeoutConfig(output.timeoutConfig, context)
23174
- : undefined,
22734
+ targets: output.targets != null ? deserializeAws_restJson1JobTargets(output.targets, context) : undefined,
22735
+ timeoutConfig: output.timeoutConfig != null ? deserializeAws_restJson1TimeoutConfig(output.timeoutConfig, context) : undefined,
23175
22736
  };
23176
22737
  };
23177
22738
  const deserializeAws_restJson1JobExecution = (output, context) => {
@@ -23180,17 +22741,13 @@ const deserializeAws_restJson1JobExecution = (output, context) => {
23180
22741
  executionNumber: (0, smithy_client_1.expectLong)(output.executionNumber),
23181
22742
  forceCanceled: (0, smithy_client_1.expectBoolean)(output.forceCanceled),
23182
22743
  jobId: (0, smithy_client_1.expectString)(output.jobId),
23183
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
22744
+ lastUpdatedAt: output.lastUpdatedAt != null
23184
22745
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
23185
22746
  : undefined,
23186
- queuedAt: output.queuedAt !== undefined && output.queuedAt !== null
23187
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.queuedAt)))
23188
- : undefined,
23189
- startedAt: output.startedAt !== undefined && output.startedAt !== null
23190
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
23191
- : undefined,
22747
+ queuedAt: output.queuedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.queuedAt))) : undefined,
22748
+ startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
23192
22749
  status: (0, smithy_client_1.expectString)(output.status),
23193
- statusDetails: output.statusDetails !== undefined && output.statusDetails !== null
22750
+ statusDetails: output.statusDetails != null
23194
22751
  ? deserializeAws_restJson1JobExecutionStatusDetails(output.statusDetails, context)
23195
22752
  : undefined,
23196
22753
  thingArn: (0, smithy_client_1.expectString)(output.thingArn),
@@ -23199,14 +22756,12 @@ const deserializeAws_restJson1JobExecution = (output, context) => {
23199
22756
  };
23200
22757
  const deserializeAws_restJson1JobExecutionsRetryConfig = (output, context) => {
23201
22758
  return {
23202
- criteriaList: output.criteriaList !== undefined && output.criteriaList !== null
23203
- ? deserializeAws_restJson1RetryCriteriaList(output.criteriaList, context)
23204
- : undefined,
22759
+ criteriaList: output.criteriaList != null ? deserializeAws_restJson1RetryCriteriaList(output.criteriaList, context) : undefined,
23205
22760
  };
23206
22761
  };
23207
22762
  const deserializeAws_restJson1JobExecutionsRolloutConfig = (output, context) => {
23208
22763
  return {
23209
- exponentialRate: output.exponentialRate !== undefined && output.exponentialRate !== null
22764
+ exponentialRate: output.exponentialRate != null
23210
22765
  ? deserializeAws_restJson1ExponentialRolloutRate(output.exponentialRate, context)
23211
22766
  : undefined,
23212
22767
  maximumPerMinute: (0, smithy_client_1.expectInt32)(output.maximumPerMinute),
@@ -23214,30 +22769,24 @@ const deserializeAws_restJson1JobExecutionsRolloutConfig = (output, context) =>
23214
22769
  };
23215
22770
  const deserializeAws_restJson1JobExecutionStatusDetails = (output, context) => {
23216
22771
  return {
23217
- detailsMap: output.detailsMap !== undefined && output.detailsMap !== null
23218
- ? deserializeAws_restJson1DetailsMap(output.detailsMap, context)
23219
- : undefined,
22772
+ detailsMap: output.detailsMap != null ? deserializeAws_restJson1DetailsMap(output.detailsMap, context) : undefined,
23220
22773
  };
23221
22774
  };
23222
22775
  const deserializeAws_restJson1JobExecutionSummary = (output, context) => {
23223
22776
  return {
23224
22777
  executionNumber: (0, smithy_client_1.expectLong)(output.executionNumber),
23225
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
22778
+ lastUpdatedAt: output.lastUpdatedAt != null
23226
22779
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
23227
22780
  : undefined,
23228
- queuedAt: output.queuedAt !== undefined && output.queuedAt !== null
23229
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.queuedAt)))
23230
- : undefined,
22781
+ queuedAt: output.queuedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.queuedAt))) : undefined,
23231
22782
  retryAttempt: (0, smithy_client_1.expectInt32)(output.retryAttempt),
23232
- startedAt: output.startedAt !== undefined && output.startedAt !== null
23233
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
23234
- : undefined,
22783
+ startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
23235
22784
  status: (0, smithy_client_1.expectString)(output.status),
23236
22785
  };
23237
22786
  };
23238
22787
  const deserializeAws_restJson1JobExecutionSummaryForJob = (output, context) => {
23239
22788
  return {
23240
- jobExecutionSummary: output.jobExecutionSummary !== undefined && output.jobExecutionSummary !== null
22789
+ jobExecutionSummary: output.jobExecutionSummary != null
23241
22790
  ? deserializeAws_restJson1JobExecutionSummary(output.jobExecutionSummary, context)
23242
22791
  : undefined,
23243
22792
  thingArn: (0, smithy_client_1.expectString)(output.thingArn),
@@ -23256,7 +22805,7 @@ const deserializeAws_restJson1JobExecutionSummaryForJobList = (output, context)
23256
22805
  };
23257
22806
  const deserializeAws_restJson1JobExecutionSummaryForThing = (output, context) => {
23258
22807
  return {
23259
- jobExecutionSummary: output.jobExecutionSummary !== undefined && output.jobExecutionSummary !== null
22808
+ jobExecutionSummary: output.jobExecutionSummary != null
23260
22809
  ? deserializeAws_restJson1JobExecutionSummary(output.jobExecutionSummary, context)
23261
22810
  : undefined,
23262
22811
  jobId: (0, smithy_client_1.expectString)(output.jobId),
@@ -23283,23 +22832,21 @@ const deserializeAws_restJson1JobProcessDetails = (output, context) => {
23283
22832
  numberOfRemovedThings: (0, smithy_client_1.expectInt32)(output.numberOfRemovedThings),
23284
22833
  numberOfSucceededThings: (0, smithy_client_1.expectInt32)(output.numberOfSucceededThings),
23285
22834
  numberOfTimedOutThings: (0, smithy_client_1.expectInt32)(output.numberOfTimedOutThings),
23286
- processingTargets: output.processingTargets !== undefined && output.processingTargets !== null
22835
+ processingTargets: output.processingTargets != null
23287
22836
  ? deserializeAws_restJson1ProcessingTargetNameList(output.processingTargets, context)
23288
22837
  : undefined,
23289
22838
  };
23290
22839
  };
23291
22840
  const deserializeAws_restJson1JobSummary = (output, context) => {
23292
22841
  return {
23293
- completedAt: output.completedAt !== undefined && output.completedAt !== null
22842
+ completedAt: output.completedAt != null
23294
22843
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completedAt)))
23295
22844
  : undefined,
23296
- createdAt: output.createdAt !== undefined && output.createdAt !== null
23297
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
23298
- : undefined,
22845
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
23299
22846
  isConcurrent: (0, smithy_client_1.expectBoolean)(output.isConcurrent),
23300
22847
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
23301
22848
  jobId: (0, smithy_client_1.expectString)(output.jobId),
23302
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
22849
+ lastUpdatedAt: output.lastUpdatedAt != null
23303
22850
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
23304
22851
  : undefined,
23305
22852
  status: (0, smithy_client_1.expectString)(output.status),
@@ -23331,9 +22878,7 @@ const deserializeAws_restJson1JobTargets = (output, context) => {
23331
22878
  };
23332
22879
  const deserializeAws_restJson1JobTemplateSummary = (output, context) => {
23333
22880
  return {
23334
- createdAt: output.createdAt !== undefined && output.createdAt !== null
23335
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
23336
- : undefined,
22881
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
23337
22882
  description: (0, smithy_client_1.expectString)(output.description),
23338
22883
  jobTemplateArn: (0, smithy_client_1.expectString)(output.jobTemplateArn),
23339
22884
  jobTemplateId: (0, smithy_client_1.expectString)(output.jobTemplateId),
@@ -23352,7 +22897,7 @@ const deserializeAws_restJson1JobTemplateSummaryList = (output, context) => {
23352
22897
  };
23353
22898
  const deserializeAws_restJson1KafkaAction = (output, context) => {
23354
22899
  return {
23355
- clientProperties: output.clientProperties !== undefined && output.clientProperties !== null
22900
+ clientProperties: output.clientProperties != null
23356
22901
  ? deserializeAws_restJson1ClientProperties(output.clientProperties, context)
23357
22902
  : undefined,
23358
22903
  destinationArn: (0, smithy_client_1.expectString)(output.destinationArn),
@@ -23388,9 +22933,7 @@ const deserializeAws_restJson1LogTarget = (output, context) => {
23388
22933
  const deserializeAws_restJson1LogTargetConfiguration = (output, context) => {
23389
22934
  return {
23390
22935
  logLevel: (0, smithy_client_1.expectString)(output.logLevel),
23391
- logTarget: output.logTarget !== undefined && output.logTarget !== null
23392
- ? deserializeAws_restJson1LogTarget(output.logTarget, context)
23393
- : undefined,
22936
+ logTarget: output.logTarget != null ? deserializeAws_restJson1LogTarget(output.logTarget, context) : undefined,
23394
22937
  };
23395
22938
  };
23396
22939
  const deserializeAws_restJson1LogTargetConfigurations = (output, context) => {
@@ -23423,9 +22966,7 @@ const deserializeAws_restJson1ManagedJobTemplatesSummaryList = (output, context)
23423
22966
  const deserializeAws_restJson1ManagedJobTemplateSummary = (output, context) => {
23424
22967
  return {
23425
22968
  description: (0, smithy_client_1.expectString)(output.description),
23426
- environments: output.environments !== undefined && output.environments !== null
23427
- ? deserializeAws_restJson1Environments(output.environments, context)
23428
- : undefined,
22969
+ environments: output.environments != null ? deserializeAws_restJson1Environments(output.environments, context) : undefined,
23429
22970
  templateArn: (0, smithy_client_1.expectString)(output.templateArn),
23430
22971
  templateName: (0, smithy_client_1.expectString)(output.templateName),
23431
22972
  templateVersion: (0, smithy_client_1.expectString)(output.templateVersion),
@@ -23433,12 +22974,8 @@ const deserializeAws_restJson1ManagedJobTemplateSummary = (output, context) => {
23433
22974
  };
23434
22975
  const deserializeAws_restJson1MetricDatum = (output, context) => {
23435
22976
  return {
23436
- timestamp: output.timestamp !== undefined && output.timestamp !== null
23437
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
23438
- : undefined,
23439
- value: output.value !== undefined && output.value !== null
23440
- ? deserializeAws_restJson1MetricValue(output.value, context)
23441
- : undefined,
22977
+ timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
22978
+ value: output.value != null ? deserializeAws_restJson1MetricValue(output.value, context) : undefined,
23442
22979
  };
23443
22980
  };
23444
22981
  const deserializeAws_restJson1MetricDatumList = (output, context) => {
@@ -23472,27 +23009,19 @@ const deserializeAws_restJson1MetricNames = (output, context) => {
23472
23009
  const deserializeAws_restJson1MetricToRetain = (output, context) => {
23473
23010
  return {
23474
23011
  metric: (0, smithy_client_1.expectString)(output.metric),
23475
- metricDimension: output.metricDimension !== undefined && output.metricDimension !== null
23012
+ metricDimension: output.metricDimension != null
23476
23013
  ? deserializeAws_restJson1MetricDimension(output.metricDimension, context)
23477
23014
  : undefined,
23478
23015
  };
23479
23016
  };
23480
23017
  const deserializeAws_restJson1MetricValue = (output, context) => {
23481
23018
  return {
23482
- cidrs: output.cidrs !== undefined && output.cidrs !== null
23483
- ? deserializeAws_restJson1Cidrs(output.cidrs, context)
23484
- : undefined,
23019
+ cidrs: output.cidrs != null ? deserializeAws_restJson1Cidrs(output.cidrs, context) : undefined,
23485
23020
  count: (0, smithy_client_1.expectLong)(output.count),
23486
23021
  number: (0, smithy_client_1.limitedParseDouble)(output.number),
23487
- numbers: output.numbers !== undefined && output.numbers !== null
23488
- ? deserializeAws_restJson1NumberList(output.numbers, context)
23489
- : undefined,
23490
- ports: output.ports !== undefined && output.ports !== null
23491
- ? deserializeAws_restJson1Ports(output.ports, context)
23492
- : undefined,
23493
- strings: output.strings !== undefined && output.strings !== null
23494
- ? deserializeAws_restJson1StringList(output.strings, context)
23495
- : undefined,
23022
+ numbers: output.numbers != null ? deserializeAws_restJson1NumberList(output.numbers, context) : undefined,
23023
+ ports: output.ports != null ? deserializeAws_restJson1Ports(output.ports, context) : undefined,
23024
+ strings: output.strings != null ? deserializeAws_restJson1StringList(output.strings, context) : undefined,
23496
23025
  };
23497
23026
  };
23498
23027
  const deserializeAws_restJson1MissingContextValues = (output, context) => {
@@ -23508,7 +23037,7 @@ const deserializeAws_restJson1MissingContextValues = (output, context) => {
23508
23037
  };
23509
23038
  const deserializeAws_restJson1MitigationAction = (output, context) => {
23510
23039
  return {
23511
- actionParams: output.actionParams !== undefined && output.actionParams !== null
23040
+ actionParams: output.actionParams != null
23512
23041
  ? deserializeAws_restJson1MitigationActionParams(output.actionParams, context)
23513
23042
  : undefined,
23514
23043
  id: (0, smithy_client_1.expectString)(output.id),
@@ -23520,7 +23049,7 @@ const deserializeAws_restJson1MitigationActionIdentifier = (output, context) =>
23520
23049
  return {
23521
23050
  actionArn: (0, smithy_client_1.expectString)(output.actionArn),
23522
23051
  actionName: (0, smithy_client_1.expectString)(output.actionName),
23523
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23052
+ creationDate: output.creationDate != null
23524
23053
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23525
23054
  : undefined,
23526
23055
  };
@@ -23560,32 +23089,30 @@ const deserializeAws_restJson1MitigationActionNameList = (output, context) => {
23560
23089
  };
23561
23090
  const deserializeAws_restJson1MitigationActionParams = (output, context) => {
23562
23091
  return {
23563
- addThingsToThingGroupParams: output.addThingsToThingGroupParams !== undefined && output.addThingsToThingGroupParams !== null
23092
+ addThingsToThingGroupParams: output.addThingsToThingGroupParams != null
23564
23093
  ? deserializeAws_restJson1AddThingsToThingGroupParams(output.addThingsToThingGroupParams, context)
23565
23094
  : undefined,
23566
- enableIoTLoggingParams: output.enableIoTLoggingParams !== undefined && output.enableIoTLoggingParams !== null
23095
+ enableIoTLoggingParams: output.enableIoTLoggingParams != null
23567
23096
  ? deserializeAws_restJson1EnableIoTLoggingParams(output.enableIoTLoggingParams, context)
23568
23097
  : undefined,
23569
- publishFindingToSnsParams: output.publishFindingToSnsParams !== undefined && output.publishFindingToSnsParams !== null
23098
+ publishFindingToSnsParams: output.publishFindingToSnsParams != null
23570
23099
  ? deserializeAws_restJson1PublishFindingToSnsParams(output.publishFindingToSnsParams, context)
23571
23100
  : undefined,
23572
- replaceDefaultPolicyVersionParams: output.replaceDefaultPolicyVersionParams !== undefined && output.replaceDefaultPolicyVersionParams !== null
23101
+ replaceDefaultPolicyVersionParams: output.replaceDefaultPolicyVersionParams != null
23573
23102
  ? deserializeAws_restJson1ReplaceDefaultPolicyVersionParams(output.replaceDefaultPolicyVersionParams, context)
23574
23103
  : undefined,
23575
- updateCACertificateParams: output.updateCACertificateParams !== undefined && output.updateCACertificateParams !== null
23104
+ updateCACertificateParams: output.updateCACertificateParams != null
23576
23105
  ? deserializeAws_restJson1UpdateCACertificateParams(output.updateCACertificateParams, context)
23577
23106
  : undefined,
23578
- updateDeviceCertificateParams: output.updateDeviceCertificateParams !== undefined && output.updateDeviceCertificateParams !== null
23107
+ updateDeviceCertificateParams: output.updateDeviceCertificateParams != null
23579
23108
  ? deserializeAws_restJson1UpdateDeviceCertificateParams(output.updateDeviceCertificateParams, context)
23580
23109
  : undefined,
23581
23110
  };
23582
23111
  };
23583
23112
  const deserializeAws_restJson1NonCompliantResource = (output, context) => {
23584
23113
  return {
23585
- additionalInfo: output.additionalInfo !== undefined && output.additionalInfo !== null
23586
- ? deserializeAws_restJson1StringMap(output.additionalInfo, context)
23587
- : undefined,
23588
- resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
23114
+ additionalInfo: output.additionalInfo != null ? deserializeAws_restJson1StringMap(output.additionalInfo, context) : undefined,
23115
+ resourceIdentifier: output.resourceIdentifier != null
23589
23116
  ? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
23590
23117
  : undefined,
23591
23118
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
@@ -23613,15 +23140,9 @@ const deserializeAws_restJson1OpenSearchAction = (output, context) => {
23613
23140
  };
23614
23141
  const deserializeAws_restJson1OTAUpdateFile = (output, context) => {
23615
23142
  return {
23616
- attributes: output.attributes !== undefined && output.attributes !== null
23617
- ? deserializeAws_restJson1AttributesMap(output.attributes, context)
23618
- : undefined,
23619
- codeSigning: output.codeSigning !== undefined && output.codeSigning !== null
23620
- ? deserializeAws_restJson1CodeSigning(output.codeSigning, context)
23621
- : undefined,
23622
- fileLocation: output.fileLocation !== undefined && output.fileLocation !== null
23623
- ? deserializeAws_restJson1FileLocation(output.fileLocation, context)
23624
- : undefined,
23143
+ attributes: output.attributes != null ? deserializeAws_restJson1AttributesMap(output.attributes, context) : undefined,
23144
+ codeSigning: output.codeSigning != null ? deserializeAws_restJson1CodeSigning(output.codeSigning, context) : undefined,
23145
+ fileLocation: output.fileLocation != null ? deserializeAws_restJson1FileLocation(output.fileLocation, context) : undefined,
23625
23146
  fileName: (0, smithy_client_1.expectString)(output.fileName),
23626
23147
  fileType: (0, smithy_client_1.expectInt32)(output.fileType),
23627
23148
  fileVersion: (0, smithy_client_1.expectString)(output.fileVersion),
@@ -23640,40 +23161,34 @@ const deserializeAws_restJson1OTAUpdateFiles = (output, context) => {
23640
23161
  };
23641
23162
  const deserializeAws_restJson1OTAUpdateInfo = (output, context) => {
23642
23163
  return {
23643
- additionalParameters: output.additionalParameters !== undefined && output.additionalParameters !== null
23164
+ additionalParameters: output.additionalParameters != null
23644
23165
  ? deserializeAws_restJson1AdditionalParameterMap(output.additionalParameters, context)
23645
23166
  : undefined,
23646
23167
  awsIotJobArn: (0, smithy_client_1.expectString)(output.awsIotJobArn),
23647
23168
  awsIotJobId: (0, smithy_client_1.expectString)(output.awsIotJobId),
23648
- awsJobExecutionsRolloutConfig: output.awsJobExecutionsRolloutConfig !== undefined && output.awsJobExecutionsRolloutConfig !== null
23169
+ awsJobExecutionsRolloutConfig: output.awsJobExecutionsRolloutConfig != null
23649
23170
  ? deserializeAws_restJson1AwsJobExecutionsRolloutConfig(output.awsJobExecutionsRolloutConfig, context)
23650
23171
  : undefined,
23651
- awsJobPresignedUrlConfig: output.awsJobPresignedUrlConfig !== undefined && output.awsJobPresignedUrlConfig !== null
23172
+ awsJobPresignedUrlConfig: output.awsJobPresignedUrlConfig != null
23652
23173
  ? deserializeAws_restJson1AwsJobPresignedUrlConfig(output.awsJobPresignedUrlConfig, context)
23653
23174
  : undefined,
23654
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23175
+ creationDate: output.creationDate != null
23655
23176
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23656
23177
  : undefined,
23657
23178
  description: (0, smithy_client_1.expectString)(output.description),
23658
- errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
23659
- ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context)
23660
- : undefined,
23661
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
23179
+ errorInfo: output.errorInfo != null ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context) : undefined,
23180
+ lastModifiedDate: output.lastModifiedDate != null
23662
23181
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
23663
23182
  : undefined,
23664
23183
  otaUpdateArn: (0, smithy_client_1.expectString)(output.otaUpdateArn),
23665
- otaUpdateFiles: output.otaUpdateFiles !== undefined && output.otaUpdateFiles !== null
23184
+ otaUpdateFiles: output.otaUpdateFiles != null
23666
23185
  ? deserializeAws_restJson1OTAUpdateFiles(output.otaUpdateFiles, context)
23667
23186
  : undefined,
23668
23187
  otaUpdateId: (0, smithy_client_1.expectString)(output.otaUpdateId),
23669
23188
  otaUpdateStatus: (0, smithy_client_1.expectString)(output.otaUpdateStatus),
23670
- protocols: output.protocols !== undefined && output.protocols !== null
23671
- ? deserializeAws_restJson1Protocols(output.protocols, context)
23672
- : undefined,
23189
+ protocols: output.protocols != null ? deserializeAws_restJson1Protocols(output.protocols, context) : undefined,
23673
23190
  targetSelection: (0, smithy_client_1.expectString)(output.targetSelection),
23674
- targets: output.targets !== undefined && output.targets !== null
23675
- ? deserializeAws_restJson1Targets(output.targets, context)
23676
- : undefined,
23191
+ targets: output.targets != null ? deserializeAws_restJson1Targets(output.targets, context) : undefined,
23677
23192
  };
23678
23193
  };
23679
23194
  const deserializeAws_restJson1OTAUpdatesSummary = (output, context) => {
@@ -23689,7 +23204,7 @@ const deserializeAws_restJson1OTAUpdatesSummary = (output, context) => {
23689
23204
  };
23690
23205
  const deserializeAws_restJson1OTAUpdateSummary = (output, context) => {
23691
23206
  return {
23692
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23207
+ creationDate: output.creationDate != null
23693
23208
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23694
23209
  : undefined,
23695
23210
  otaUpdateArn: (0, smithy_client_1.expectString)(output.otaUpdateArn),
@@ -23700,10 +23215,10 @@ const deserializeAws_restJson1OutgoingCertificate = (output, context) => {
23700
23215
  return {
23701
23216
  certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
23702
23217
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
23703
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23218
+ creationDate: output.creationDate != null
23704
23219
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23705
23220
  : undefined,
23706
- transferDate: output.transferDate !== undefined && output.transferDate !== null
23221
+ transferDate: output.transferDate != null
23707
23222
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.transferDate)))
23708
23223
  : undefined,
23709
23224
  transferMessage: (0, smithy_client_1.expectString)(output.transferMessage),
@@ -23790,9 +23305,7 @@ const deserializeAws_restJson1PolicyTargets = (output, context) => {
23790
23305
  };
23791
23306
  const deserializeAws_restJson1PolicyVersion = (output, context) => {
23792
23307
  return {
23793
- createDate: output.createDate !== undefined && output.createDate !== null
23794
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createDate)))
23795
- : undefined,
23308
+ createDate: output.createDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createDate))) : undefined,
23796
23309
  isDefaultVersion: (0, smithy_client_1.expectBoolean)(output.isDefaultVersion),
23797
23310
  versionId: (0, smithy_client_1.expectString)(output.versionId),
23798
23311
  };
@@ -23883,12 +23396,12 @@ const deserializeAws_restJson1ProvisioningTemplateListing = (output, context) =>
23883
23396
  };
23884
23397
  const deserializeAws_restJson1ProvisioningTemplateSummary = (output, context) => {
23885
23398
  return {
23886
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23399
+ creationDate: output.creationDate != null
23887
23400
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23888
23401
  : undefined,
23889
23402
  description: (0, smithy_client_1.expectString)(output.description),
23890
23403
  enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
23891
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
23404
+ lastModifiedDate: output.lastModifiedDate != null
23892
23405
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
23893
23406
  : undefined,
23894
23407
  templateArn: (0, smithy_client_1.expectString)(output.templateArn),
@@ -23908,7 +23421,7 @@ const deserializeAws_restJson1ProvisioningTemplateVersionListing = (output, cont
23908
23421
  };
23909
23422
  const deserializeAws_restJson1ProvisioningTemplateVersionSummary = (output, context) => {
23910
23423
  return {
23911
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23424
+ creationDate: output.creationDate != null
23912
23425
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23913
23426
  : undefined,
23914
23427
  isDefaultVersion: (0, smithy_client_1.expectBoolean)(output.isDefaultVersion),
@@ -23937,7 +23450,7 @@ const deserializeAws_restJson1PutAssetPropertyValueEntry = (output, context) =>
23937
23450
  entryId: (0, smithy_client_1.expectString)(output.entryId),
23938
23451
  propertyAlias: (0, smithy_client_1.expectString)(output.propertyAlias),
23939
23452
  propertyId: (0, smithy_client_1.expectString)(output.propertyId),
23940
- propertyValues: output.propertyValues !== undefined && output.propertyValues !== null
23453
+ propertyValues: output.propertyValues != null
23941
23454
  ? deserializeAws_restJson1AssetPropertyValueList(output.propertyValues, context)
23942
23455
  : undefined,
23943
23456
  };
@@ -23983,10 +23496,8 @@ const deserializeAws_restJson1RegistrationConfig = (output, context) => {
23983
23496
  };
23984
23497
  const deserializeAws_restJson1RelatedResource = (output, context) => {
23985
23498
  return {
23986
- additionalInfo: output.additionalInfo !== undefined && output.additionalInfo !== null
23987
- ? deserializeAws_restJson1StringMap(output.additionalInfo, context)
23988
- : undefined,
23989
- resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
23499
+ additionalInfo: output.additionalInfo != null ? deserializeAws_restJson1StringMap(output.additionalInfo, context) : undefined,
23500
+ resourceIdentifier: output.resourceIdentifier != null
23990
23501
  ? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
23991
23502
  : undefined,
23992
23503
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
@@ -24034,7 +23545,7 @@ const deserializeAws_restJson1ResourceIdentifier = (output, context) => {
24034
23545
  cognitoIdentityPoolId: (0, smithy_client_1.expectString)(output.cognitoIdentityPoolId),
24035
23546
  deviceCertificateId: (0, smithy_client_1.expectString)(output.deviceCertificateId),
24036
23547
  iamRoleArn: (0, smithy_client_1.expectString)(output.iamRoleArn),
24037
- policyVersionIdentifier: output.policyVersionIdentifier !== undefined && output.policyVersionIdentifier !== null
23548
+ policyVersionIdentifier: output.policyVersionIdentifier != null
24038
23549
  ? deserializeAws_restJson1PolicyVersionIdentifier(output.policyVersionIdentifier, context)
24039
23550
  : undefined,
24040
23551
  roleAliasArn: (0, smithy_client_1.expectString)(output.roleAliasArn),
@@ -24070,11 +23581,11 @@ const deserializeAws_restJson1RetryCriteriaList = (output, context) => {
24070
23581
  };
24071
23582
  const deserializeAws_restJson1RoleAliasDescription = (output, context) => {
24072
23583
  return {
24073
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23584
+ creationDate: output.creationDate != null
24074
23585
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
24075
23586
  : undefined,
24076
23587
  credentialDurationSeconds: (0, smithy_client_1.expectInt32)(output.credentialDurationSeconds),
24077
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
23588
+ lastModifiedDate: output.lastModifiedDate != null
24078
23589
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
24079
23590
  : undefined,
24080
23591
  owner: (0, smithy_client_1.expectString)(output.owner),
@@ -24198,12 +23709,10 @@ const deserializeAws_restJson1SecurityProfileTarget = (output, context) => {
24198
23709
  };
24199
23710
  const deserializeAws_restJson1SecurityProfileTargetMapping = (output, context) => {
24200
23711
  return {
24201
- securityProfileIdentifier: output.securityProfileIdentifier !== undefined && output.securityProfileIdentifier !== null
23712
+ securityProfileIdentifier: output.securityProfileIdentifier != null
24202
23713
  ? deserializeAws_restJson1SecurityProfileIdentifier(output.securityProfileIdentifier, context)
24203
23714
  : undefined,
24204
- target: output.target !== undefined && output.target !== null
24205
- ? deserializeAws_restJson1SecurityProfileTarget(output.target, context)
24206
- : undefined,
23715
+ target: output.target != null ? deserializeAws_restJson1SecurityProfileTarget(output.target, context) : undefined,
24207
23716
  };
24208
23717
  };
24209
23718
  const deserializeAws_restJson1SecurityProfileTargetMappings = (output, context) => {
@@ -24276,11 +23785,9 @@ const deserializeAws_restJson1SqsAction = (output, context) => {
24276
23785
  };
24277
23786
  const deserializeAws_restJson1StartSigningJobParameter = (output, context) => {
24278
23787
  return {
24279
- destination: output.destination !== undefined && output.destination !== null
24280
- ? deserializeAws_restJson1Destination(output.destination, context)
24281
- : undefined,
23788
+ destination: output.destination != null ? deserializeAws_restJson1Destination(output.destination, context) : undefined,
24282
23789
  signingProfileName: (0, smithy_client_1.expectString)(output.signingProfileName),
24283
- signingProfileParameter: output.signingProfileParameter !== undefined && output.signingProfileParameter !== null
23790
+ signingProfileParameter: output.signingProfileParameter != null
24284
23791
  ? deserializeAws_restJson1SigningProfileParameter(output.signingProfileParameter, context)
24285
23792
  : undefined,
24286
23793
  };
@@ -24318,9 +23825,7 @@ const deserializeAws_restJson1_Stream = (output, context) => {
24318
23825
  const deserializeAws_restJson1StreamFile = (output, context) => {
24319
23826
  return {
24320
23827
  fileId: (0, smithy_client_1.expectInt32)(output.fileId),
24321
- s3Location: output.s3Location !== undefined && output.s3Location !== null
24322
- ? deserializeAws_restJson1S3Location(output.s3Location, context)
24323
- : undefined,
23828
+ s3Location: output.s3Location != null ? deserializeAws_restJson1S3Location(output.s3Location, context) : undefined,
24324
23829
  };
24325
23830
  };
24326
23831
  const deserializeAws_restJson1StreamFiles = (output, context) => {
@@ -24336,14 +23841,10 @@ const deserializeAws_restJson1StreamFiles = (output, context) => {
24336
23841
  };
24337
23842
  const deserializeAws_restJson1StreamInfo = (output, context) => {
24338
23843
  return {
24339
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24340
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24341
- : undefined,
23844
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
24342
23845
  description: (0, smithy_client_1.expectString)(output.description),
24343
- files: output.files !== undefined && output.files !== null
24344
- ? deserializeAws_restJson1StreamFiles(output.files, context)
24345
- : undefined,
24346
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
23846
+ files: output.files != null ? deserializeAws_restJson1StreamFiles(output.files, context) : undefined,
23847
+ lastUpdatedAt: output.lastUpdatedAt != null
24347
23848
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
24348
23849
  : undefined,
24349
23850
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -24487,9 +23988,7 @@ const deserializeAws_restJson1TaskStatisticsForAuditCheck = (output, context) =>
24487
23988
  };
24488
23989
  const deserializeAws_restJson1ThingAttribute = (output, context) => {
24489
23990
  return {
24490
- attributes: output.attributes !== undefined && output.attributes !== null
24491
- ? deserializeAws_restJson1Attributes(output.attributes, context)
24492
- : undefined,
23991
+ attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
24493
23992
  thingArn: (0, smithy_client_1.expectString)(output.thingArn),
24494
23993
  thingName: (0, smithy_client_1.expectString)(output.thingName),
24495
23994
  thingTypeName: (0, smithy_client_1.expectString)(output.thingTypeName),
@@ -24516,15 +24015,11 @@ const deserializeAws_restJson1ThingConnectivity = (output, context) => {
24516
24015
  };
24517
24016
  const deserializeAws_restJson1ThingDocument = (output, context) => {
24518
24017
  return {
24519
- attributes: output.attributes !== undefined && output.attributes !== null
24520
- ? deserializeAws_restJson1Attributes(output.attributes, context)
24521
- : undefined,
24522
- connectivity: output.connectivity !== undefined && output.connectivity !== null
24523
- ? deserializeAws_restJson1ThingConnectivity(output.connectivity, context)
24524
- : undefined,
24018
+ attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
24019
+ connectivity: output.connectivity != null ? deserializeAws_restJson1ThingConnectivity(output.connectivity, context) : undefined,
24525
24020
  deviceDefender: (0, smithy_client_1.expectString)(output.deviceDefender),
24526
24021
  shadow: (0, smithy_client_1.expectString)(output.shadow),
24527
- thingGroupNames: output.thingGroupNames !== undefined && output.thingGroupNames !== null
24022
+ thingGroupNames: output.thingGroupNames != null
24528
24023
  ? deserializeAws_restJson1ThingGroupNameList(output.thingGroupNames, context)
24529
24024
  : undefined,
24530
24025
  thingId: (0, smithy_client_1.expectString)(output.thingId),
@@ -24545,10 +24040,8 @@ const deserializeAws_restJson1ThingDocumentList = (output, context) => {
24545
24040
  };
24546
24041
  const deserializeAws_restJson1ThingGroupDocument = (output, context) => {
24547
24042
  return {
24548
- attributes: output.attributes !== undefined && output.attributes !== null
24549
- ? deserializeAws_restJson1Attributes(output.attributes, context)
24550
- : undefined,
24551
- parentGroupNames: output.parentGroupNames !== undefined && output.parentGroupNames !== null
24043
+ attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
24044
+ parentGroupNames: output.parentGroupNames != null
24552
24045
  ? deserializeAws_restJson1ThingGroupNameList(output.parentGroupNames, context)
24553
24046
  : undefined,
24554
24047
  thingGroupDescription: (0, smithy_client_1.expectString)(output.thingGroupDescription),
@@ -24569,22 +24062,18 @@ const deserializeAws_restJson1ThingGroupDocumentList = (output, context) => {
24569
24062
  };
24570
24063
  const deserializeAws_restJson1ThingGroupIndexingConfiguration = (output, context) => {
24571
24064
  return {
24572
- customFields: output.customFields !== undefined && output.customFields !== null
24573
- ? deserializeAws_restJson1Fields(output.customFields, context)
24574
- : undefined,
24575
- managedFields: output.managedFields !== undefined && output.managedFields !== null
24576
- ? deserializeAws_restJson1Fields(output.managedFields, context)
24577
- : undefined,
24065
+ customFields: output.customFields != null ? deserializeAws_restJson1Fields(output.customFields, context) : undefined,
24066
+ managedFields: output.managedFields != null ? deserializeAws_restJson1Fields(output.managedFields, context) : undefined,
24578
24067
  thingGroupIndexingMode: (0, smithy_client_1.expectString)(output.thingGroupIndexingMode),
24579
24068
  };
24580
24069
  };
24581
24070
  const deserializeAws_restJson1ThingGroupMetadata = (output, context) => {
24582
24071
  return {
24583
- creationDate: output.creationDate !== undefined && output.creationDate !== null
24072
+ creationDate: output.creationDate != null
24584
24073
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
24585
24074
  : undefined,
24586
24075
  parentGroupName: (0, smithy_client_1.expectString)(output.parentGroupName),
24587
- rootToParentThingGroups: output.rootToParentThingGroups !== undefined && output.rootToParentThingGroups !== null
24076
+ rootToParentThingGroups: output.rootToParentThingGroups != null
24588
24077
  ? deserializeAws_restJson1ThingGroupNameAndArnList(output.rootToParentThingGroups, context)
24589
24078
  : undefined,
24590
24079
  };
@@ -24624,7 +24113,7 @@ const deserializeAws_restJson1ThingGroupNames = (output, context) => {
24624
24113
  };
24625
24114
  const deserializeAws_restJson1ThingGroupProperties = (output, context) => {
24626
24115
  return {
24627
- attributePayload: output.attributePayload !== undefined && output.attributePayload !== null
24116
+ attributePayload: output.attributePayload != null
24628
24117
  ? deserializeAws_restJson1AttributePayload(output.attributePayload, context)
24629
24118
  : undefined,
24630
24119
  thingGroupDescription: (0, smithy_client_1.expectString)(output.thingGroupDescription),
@@ -24632,13 +24121,9 @@ const deserializeAws_restJson1ThingGroupProperties = (output, context) => {
24632
24121
  };
24633
24122
  const deserializeAws_restJson1ThingIndexingConfiguration = (output, context) => {
24634
24123
  return {
24635
- customFields: output.customFields !== undefined && output.customFields !== null
24636
- ? deserializeAws_restJson1Fields(output.customFields, context)
24637
- : undefined,
24124
+ customFields: output.customFields != null ? deserializeAws_restJson1Fields(output.customFields, context) : undefined,
24638
24125
  deviceDefenderIndexingMode: (0, smithy_client_1.expectString)(output.deviceDefenderIndexingMode),
24639
- managedFields: output.managedFields !== undefined && output.managedFields !== null
24640
- ? deserializeAws_restJson1Fields(output.managedFields, context)
24641
- : undefined,
24126
+ managedFields: output.managedFields != null ? deserializeAws_restJson1Fields(output.managedFields, context) : undefined,
24642
24127
  namedShadowIndexingMode: (0, smithy_client_1.expectString)(output.namedShadowIndexingMode),
24643
24128
  thingConnectivityIndexingMode: (0, smithy_client_1.expectString)(output.thingConnectivityIndexingMode),
24644
24129
  thingIndexingMode: (0, smithy_client_1.expectString)(output.thingIndexingMode),
@@ -24658,11 +24143,11 @@ const deserializeAws_restJson1ThingNameList = (output, context) => {
24658
24143
  const deserializeAws_restJson1ThingTypeDefinition = (output, context) => {
24659
24144
  return {
24660
24145
  thingTypeArn: (0, smithy_client_1.expectString)(output.thingTypeArn),
24661
- thingTypeMetadata: output.thingTypeMetadata !== undefined && output.thingTypeMetadata !== null
24146
+ thingTypeMetadata: output.thingTypeMetadata != null
24662
24147
  ? deserializeAws_restJson1ThingTypeMetadata(output.thingTypeMetadata, context)
24663
24148
  : undefined,
24664
24149
  thingTypeName: (0, smithy_client_1.expectString)(output.thingTypeName),
24665
- thingTypeProperties: output.thingTypeProperties !== undefined && output.thingTypeProperties !== null
24150
+ thingTypeProperties: output.thingTypeProperties != null
24666
24151
  ? deserializeAws_restJson1ThingTypeProperties(output.thingTypeProperties, context)
24667
24152
  : undefined,
24668
24153
  };
@@ -24680,18 +24165,18 @@ const deserializeAws_restJson1ThingTypeList = (output, context) => {
24680
24165
  };
24681
24166
  const deserializeAws_restJson1ThingTypeMetadata = (output, context) => {
24682
24167
  return {
24683
- creationDate: output.creationDate !== undefined && output.creationDate !== null
24168
+ creationDate: output.creationDate != null
24684
24169
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
24685
24170
  : undefined,
24686
24171
  deprecated: (0, smithy_client_1.expectBoolean)(output.deprecated),
24687
- deprecationDate: output.deprecationDate !== undefined && output.deprecationDate !== null
24172
+ deprecationDate: output.deprecationDate != null
24688
24173
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deprecationDate)))
24689
24174
  : undefined,
24690
24175
  };
24691
24176
  };
24692
24177
  const deserializeAws_restJson1ThingTypeProperties = (output, context) => {
24693
24178
  return {
24694
- searchableAttributes: output.searchableAttributes !== undefined && output.searchableAttributes !== null
24179
+ searchableAttributes: output.searchableAttributes != null
24695
24180
  ? deserializeAws_restJson1SearchableAttributes(output.searchableAttributes, context)
24696
24181
  : undefined,
24697
24182
  thingTypeDescription: (0, smithy_client_1.expectString)(output.thingTypeDescription),
@@ -24705,14 +24190,12 @@ const deserializeAws_restJson1TimeoutConfig = (output, context) => {
24705
24190
  const deserializeAws_restJson1TimestreamAction = (output, context) => {
24706
24191
  return {
24707
24192
  databaseName: (0, smithy_client_1.expectString)(output.databaseName),
24708
- dimensions: output.dimensions !== undefined && output.dimensions !== null
24193
+ dimensions: output.dimensions != null
24709
24194
  ? deserializeAws_restJson1TimestreamDimensionList(output.dimensions, context)
24710
24195
  : undefined,
24711
24196
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
24712
24197
  tableName: (0, smithy_client_1.expectString)(output.tableName),
24713
- timestamp: output.timestamp !== undefined && output.timestamp !== null
24714
- ? deserializeAws_restJson1TimestreamTimestamp(output.timestamp, context)
24715
- : undefined,
24198
+ timestamp: output.timestamp != null ? deserializeAws_restJson1TimestreamTimestamp(output.timestamp, context) : undefined,
24716
24199
  };
24717
24200
  };
24718
24201
  const deserializeAws_restJson1TimestreamDimension = (output, context) => {
@@ -24740,17 +24223,11 @@ const deserializeAws_restJson1TimestreamTimestamp = (output, context) => {
24740
24223
  };
24741
24224
  const deserializeAws_restJson1TopicRule = (output, context) => {
24742
24225
  return {
24743
- actions: output.actions !== undefined && output.actions !== null
24744
- ? deserializeAws_restJson1ActionList(output.actions, context)
24745
- : undefined,
24226
+ actions: output.actions != null ? deserializeAws_restJson1ActionList(output.actions, context) : undefined,
24746
24227
  awsIotSqlVersion: (0, smithy_client_1.expectString)(output.awsIotSqlVersion),
24747
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24748
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24749
- : undefined,
24228
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
24750
24229
  description: (0, smithy_client_1.expectString)(output.description),
24751
- errorAction: output.errorAction !== undefined && output.errorAction !== null
24752
- ? deserializeAws_restJson1Action(output.errorAction, context)
24753
- : undefined,
24230
+ errorAction: output.errorAction != null ? deserializeAws_restJson1Action(output.errorAction, context) : undefined,
24754
24231
  ruleDisabled: (0, smithy_client_1.expectBoolean)(output.ruleDisabled),
24755
24232
  ruleName: (0, smithy_client_1.expectString)(output.ruleName),
24756
24233
  sql: (0, smithy_client_1.expectString)(output.sql),
@@ -24759,18 +24236,16 @@ const deserializeAws_restJson1TopicRule = (output, context) => {
24759
24236
  const deserializeAws_restJson1TopicRuleDestination = (output, context) => {
24760
24237
  return {
24761
24238
  arn: (0, smithy_client_1.expectString)(output.arn),
24762
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24763
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24764
- : undefined,
24765
- httpUrlProperties: output.httpUrlProperties !== undefined && output.httpUrlProperties !== null
24239
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
24240
+ httpUrlProperties: output.httpUrlProperties != null
24766
24241
  ? deserializeAws_restJson1HttpUrlDestinationProperties(output.httpUrlProperties, context)
24767
24242
  : undefined,
24768
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
24243
+ lastUpdatedAt: output.lastUpdatedAt != null
24769
24244
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
24770
24245
  : undefined,
24771
24246
  status: (0, smithy_client_1.expectString)(output.status),
24772
24247
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
24773
- vpcProperties: output.vpcProperties !== undefined && output.vpcProperties !== null
24248
+ vpcProperties: output.vpcProperties != null
24774
24249
  ? deserializeAws_restJson1VpcDestinationProperties(output.vpcProperties, context)
24775
24250
  : undefined,
24776
24251
  };
@@ -24789,18 +24264,16 @@ const deserializeAws_restJson1TopicRuleDestinationSummaries = (output, context)
24789
24264
  const deserializeAws_restJson1TopicRuleDestinationSummary = (output, context) => {
24790
24265
  return {
24791
24266
  arn: (0, smithy_client_1.expectString)(output.arn),
24792
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24793
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24794
- : undefined,
24795
- httpUrlSummary: output.httpUrlSummary !== undefined && output.httpUrlSummary !== null
24267
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
24268
+ httpUrlSummary: output.httpUrlSummary != null
24796
24269
  ? deserializeAws_restJson1HttpUrlDestinationSummary(output.httpUrlSummary, context)
24797
24270
  : undefined,
24798
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
24271
+ lastUpdatedAt: output.lastUpdatedAt != null
24799
24272
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
24800
24273
  : undefined,
24801
24274
  status: (0, smithy_client_1.expectString)(output.status),
24802
24275
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
24803
- vpcDestinationSummary: output.vpcDestinationSummary !== undefined && output.vpcDestinationSummary !== null
24276
+ vpcDestinationSummary: output.vpcDestinationSummary != null
24804
24277
  ? deserializeAws_restJson1VpcDestinationSummary(output.vpcDestinationSummary, context)
24805
24278
  : undefined,
24806
24279
  };
@@ -24818,9 +24291,7 @@ const deserializeAws_restJson1TopicRuleList = (output, context) => {
24818
24291
  };
24819
24292
  const deserializeAws_restJson1TopicRuleListItem = (output, context) => {
24820
24293
  return {
24821
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24822
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24823
- : undefined,
24294
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
24824
24295
  ruleArn: (0, smithy_client_1.expectString)(output.ruleArn),
24825
24296
  ruleDisabled: (0, smithy_client_1.expectBoolean)(output.ruleDisabled),
24826
24297
  ruleName: (0, smithy_client_1.expectString)(output.ruleName),
@@ -24829,14 +24300,10 @@ const deserializeAws_restJson1TopicRuleListItem = (output, context) => {
24829
24300
  };
24830
24301
  const deserializeAws_restJson1TransferData = (output, context) => {
24831
24302
  return {
24832
- acceptDate: output.acceptDate !== undefined && output.acceptDate !== null
24833
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.acceptDate)))
24834
- : undefined,
24835
- rejectDate: output.rejectDate !== undefined && output.rejectDate !== null
24836
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.rejectDate)))
24837
- : undefined,
24303
+ acceptDate: output.acceptDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.acceptDate))) : undefined,
24304
+ rejectDate: output.rejectDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.rejectDate))) : undefined,
24838
24305
  rejectReason: (0, smithy_client_1.expectString)(output.rejectReason),
24839
- transferDate: output.transferDate !== undefined && output.transferDate !== null
24306
+ transferDate: output.transferDate != null
24840
24307
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.transferDate)))
24841
24308
  : undefined,
24842
24309
  transferMessage: (0, smithy_client_1.expectString)(output.transferMessage),
@@ -24870,20 +24337,16 @@ const deserializeAws_restJson1ValidationErrors = (output, context) => {
24870
24337
  };
24871
24338
  const deserializeAws_restJson1ViolationEvent = (output, context) => {
24872
24339
  return {
24873
- behavior: output.behavior !== undefined && output.behavior !== null
24874
- ? deserializeAws_restJson1Behavior(output.behavior, context)
24875
- : undefined,
24876
- metricValue: output.metricValue !== undefined && output.metricValue !== null
24877
- ? deserializeAws_restJson1MetricValue(output.metricValue, context)
24878
- : undefined,
24340
+ behavior: output.behavior != null ? deserializeAws_restJson1Behavior(output.behavior, context) : undefined,
24341
+ metricValue: output.metricValue != null ? deserializeAws_restJson1MetricValue(output.metricValue, context) : undefined,
24879
24342
  securityProfileName: (0, smithy_client_1.expectString)(output.securityProfileName),
24880
24343
  thingName: (0, smithy_client_1.expectString)(output.thingName),
24881
24344
  verificationState: (0, smithy_client_1.expectString)(output.verificationState),
24882
24345
  verificationStateDescription: (0, smithy_client_1.expectString)(output.verificationStateDescription),
24883
- violationEventAdditionalInfo: output.violationEventAdditionalInfo !== undefined && output.violationEventAdditionalInfo !== null
24346
+ violationEventAdditionalInfo: output.violationEventAdditionalInfo != null
24884
24347
  ? deserializeAws_restJson1ViolationEventAdditionalInfo(output.violationEventAdditionalInfo, context)
24885
24348
  : undefined,
24886
- violationEventTime: output.violationEventTime !== undefined && output.violationEventTime !== null
24349
+ violationEventTime: output.violationEventTime != null
24887
24350
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.violationEventTime)))
24888
24351
  : undefined,
24889
24352
  violationEventType: (0, smithy_client_1.expectString)(output.violationEventType),
@@ -24897,12 +24360,8 @@ const deserializeAws_restJson1ViolationEventAdditionalInfo = (output, context) =
24897
24360
  };
24898
24361
  const deserializeAws_restJson1ViolationEventOccurrenceRange = (output, context) => {
24899
24362
  return {
24900
- endTime: output.endTime !== undefined && output.endTime !== null
24901
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
24902
- : undefined,
24903
- startTime: output.startTime !== undefined && output.startTime !== null
24904
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
24905
- : undefined,
24363
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
24364
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
24906
24365
  };
24907
24366
  };
24908
24367
  const deserializeAws_restJson1ViolationEvents = (output, context) => {
@@ -24919,24 +24378,20 @@ const deserializeAws_restJson1ViolationEvents = (output, context) => {
24919
24378
  const deserializeAws_restJson1VpcDestinationProperties = (output, context) => {
24920
24379
  return {
24921
24380
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
24922
- securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
24381
+ securityGroups: output.securityGroups != null
24923
24382
  ? deserializeAws_restJson1SecurityGroupList(output.securityGroups, context)
24924
24383
  : undefined,
24925
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
24926
- ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
24927
- : undefined,
24384
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
24928
24385
  vpcId: (0, smithy_client_1.expectString)(output.vpcId),
24929
24386
  };
24930
24387
  };
24931
24388
  const deserializeAws_restJson1VpcDestinationSummary = (output, context) => {
24932
24389
  return {
24933
24390
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
24934
- securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
24391
+ securityGroups: output.securityGroups != null
24935
24392
  ? deserializeAws_restJson1SecurityGroupList(output.securityGroups, context)
24936
24393
  : undefined,
24937
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
24938
- ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
24939
- : undefined,
24394
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
24940
24395
  vpcId: (0, smithy_client_1.expectString)(output.vpcId),
24941
24396
  };
24942
24397
  };
@@ -24971,6 +24426,9 @@ const loadRestJsonErrorCode = (output, data) => {
24971
24426
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
24972
24427
  const sanitizeErrorCode = (rawValue) => {
24973
24428
  let cleanValue = rawValue;
24429
+ if (typeof cleanValue === "number") {
24430
+ cleanValue = cleanValue.toString();
24431
+ }
24974
24432
  if (cleanValue.indexOf(":") >= 0) {
24975
24433
  cleanValue = cleanValue.split(":")[0];
24976
24434
  }