@aws-sdk/client-iot 3.121.0 → 3.128.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,15 +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.registrationConfig !== undefined &&
5379
- input.registrationConfig !== null && {
5276
+ ...(input.caCertificate != null && { caCertificate: input.caCertificate }),
5277
+ ...(input.certificateMode != null && { certificateMode: input.certificateMode }),
5278
+ ...(input.registrationConfig != null && {
5380
5279
  registrationConfig: serializeAws_restJson1RegistrationConfig(input.registrationConfig, context),
5381
5280
  }),
5382
- ...(input.tags !== undefined &&
5383
- input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
5384
- ...(input.verificationCertificate !== undefined &&
5385
- input.verificationCertificate !== null && { verificationCertificate: input.verificationCertificate }),
5281
+ ...(input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) }),
5282
+ ...(input.verificationCertificate != null && { verificationCertificate: input.verificationCertificate }),
5386
5283
  });
5387
5284
  return new protocol_http_1.HttpRequest({
5388
5285
  protocol,
@@ -5407,11 +5304,9 @@ const serializeAws_restJson1RegisterCertificateCommand = async (input, context)
5407
5304
  };
5408
5305
  let body;
5409
5306
  body = JSON.stringify({
5410
- ...(input.caCertificatePem !== undefined &&
5411
- input.caCertificatePem !== null && { caCertificatePem: input.caCertificatePem }),
5412
- ...(input.certificatePem !== undefined &&
5413
- input.certificatePem !== null && { certificatePem: input.certificatePem }),
5414
- ...(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 }),
5415
5310
  });
5416
5311
  return new protocol_http_1.HttpRequest({
5417
5312
  protocol,
@@ -5433,9 +5328,8 @@ const serializeAws_restJson1RegisterCertificateWithoutCACommand = async (input,
5433
5328
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/certificate/register-no-ca";
5434
5329
  let body;
5435
5330
  body = JSON.stringify({
5436
- ...(input.certificatePem !== undefined &&
5437
- input.certificatePem !== null && { certificatePem: input.certificatePem }),
5438
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
5331
+ ...(input.certificatePem != null && { certificatePem: input.certificatePem }),
5332
+ ...(input.status != null && { status: input.status }),
5439
5333
  });
5440
5334
  return new protocol_http_1.HttpRequest({
5441
5335
  protocol,
@@ -5456,9 +5350,8 @@ const serializeAws_restJson1RegisterThingCommand = async (input, context) => {
5456
5350
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/things";
5457
5351
  let body;
5458
5352
  body = JSON.stringify({
5459
- ...(input.parameters !== undefined &&
5460
- input.parameters !== null && { parameters: serializeAws_restJson1Parameters(input.parameters, context) }),
5461
- ...(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 }),
5462
5355
  });
5463
5356
  return new protocol_http_1.HttpRequest({
5464
5357
  protocol,
@@ -5490,7 +5383,7 @@ const serializeAws_restJson1RejectCertificateTransferCommand = async (input, con
5490
5383
  }
5491
5384
  let body;
5492
5385
  body = JSON.stringify({
5493
- ...(input.rejectReason !== undefined && input.rejectReason !== null && { rejectReason: input.rejectReason }),
5386
+ ...(input.rejectReason != null && { rejectReason: input.rejectReason }),
5494
5387
  });
5495
5388
  return new protocol_http_1.HttpRequest({
5496
5389
  protocol,
@@ -5512,12 +5405,10 @@ const serializeAws_restJson1RemoveThingFromBillingGroupCommand = async (input, c
5512
5405
  "/billing-groups/removeThingFromBillingGroup";
5513
5406
  let body;
5514
5407
  body = JSON.stringify({
5515
- ...(input.billingGroupArn !== undefined &&
5516
- input.billingGroupArn !== null && { billingGroupArn: input.billingGroupArn }),
5517
- ...(input.billingGroupName !== undefined &&
5518
- input.billingGroupName !== null && { billingGroupName: input.billingGroupName }),
5519
- ...(input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }),
5520
- ...(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 }),
5521
5412
  });
5522
5413
  return new protocol_http_1.HttpRequest({
5523
5414
  protocol,
@@ -5538,11 +5429,10 @@ const serializeAws_restJson1RemoveThingFromThingGroupCommand = async (input, con
5538
5429
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/removeThingFromThingGroup";
5539
5430
  let body;
5540
5431
  body = JSON.stringify({
5541
- ...(input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn }),
5542
- ...(input.thingGroupArn !== undefined && input.thingGroupArn !== null && { thingGroupArn: input.thingGroupArn }),
5543
- ...(input.thingGroupName !== undefined &&
5544
- input.thingGroupName !== null && { thingGroupName: input.thingGroupName }),
5545
- ...(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 }),
5546
5436
  });
5547
5437
  return new protocol_http_1.HttpRequest({
5548
5438
  protocol,
@@ -5598,11 +5488,11 @@ const serializeAws_restJson1SearchIndexCommand = async (input, context) => {
5598
5488
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/indices/search";
5599
5489
  let body;
5600
5490
  body = JSON.stringify({
5601
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
5602
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
5603
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
5604
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
5605
- ...(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 }),
5606
5496
  });
5607
5497
  return new protocol_http_1.HttpRequest({
5608
5498
  protocol,
@@ -5623,8 +5513,7 @@ const serializeAws_restJson1SetDefaultAuthorizerCommand = async (input, context)
5623
5513
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/default-authorizer";
5624
5514
  let body;
5625
5515
  body = JSON.stringify({
5626
- ...(input.authorizerName !== undefined &&
5627
- input.authorizerName !== null && { authorizerName: input.authorizerName }),
5516
+ ...(input.authorizerName != null && { authorizerName: input.authorizerName }),
5628
5517
  });
5629
5518
  return new protocol_http_1.HttpRequest({
5630
5519
  protocol,
@@ -5707,9 +5596,8 @@ const serializeAws_restJson1SetV2LoggingLevelCommand = async (input, context) =>
5707
5596
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingLevel";
5708
5597
  let body;
5709
5598
  body = JSON.stringify({
5710
- ...(input.logLevel !== undefined && input.logLevel !== null && { logLevel: input.logLevel }),
5711
- ...(input.logTarget !== undefined &&
5712
- 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) }),
5713
5601
  });
5714
5602
  return new protocol_http_1.HttpRequest({
5715
5603
  protocol,
@@ -5730,11 +5618,9 @@ const serializeAws_restJson1SetV2LoggingOptionsCommand = async (input, context)
5730
5618
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v2LoggingOptions";
5731
5619
  let body;
5732
5620
  body = JSON.stringify({
5733
- ...(input.defaultLogLevel !== undefined &&
5734
- input.defaultLogLevel !== null && { defaultLogLevel: input.defaultLogLevel }),
5735
- ...(input.disableAllLogs !== undefined &&
5736
- input.disableAllLogs !== null && { disableAllLogs: input.disableAllLogs }),
5737
- ...(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 }),
5738
5624
  });
5739
5625
  return new protocol_http_1.HttpRequest({
5740
5626
  protocol,
@@ -5766,13 +5652,11 @@ const serializeAws_restJson1StartAuditMitigationActionsTaskCommand = async (inpu
5766
5652
  }
5767
5653
  let body;
5768
5654
  body = JSON.stringify({
5769
- ...(input.auditCheckToActionsMapping !== undefined &&
5770
- input.auditCheckToActionsMapping !== null && {
5655
+ ...(input.auditCheckToActionsMapping != null && {
5771
5656
  auditCheckToActionsMapping: serializeAws_restJson1AuditCheckToActionsMapping(input.auditCheckToActionsMapping, context),
5772
5657
  }),
5773
5658
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
5774
- ...(input.target !== undefined &&
5775
- input.target !== null && {
5659
+ ...(input.target != null && {
5776
5660
  target: serializeAws_restJson1AuditMitigationActionsTaskTarget(input.target, context),
5777
5661
  }),
5778
5662
  });
@@ -5806,21 +5690,18 @@ const serializeAws_restJson1StartDetectMitigationActionsTaskCommand = async (inp
5806
5690
  }
5807
5691
  let body;
5808
5692
  body = JSON.stringify({
5809
- ...(input.actions !== undefined &&
5810
- input.actions !== null && {
5693
+ ...(input.actions != null && {
5811
5694
  actions: serializeAws_restJson1DetectMitigationActionsToExecuteList(input.actions, context),
5812
5695
  }),
5813
5696
  clientRequestToken: (_a = input.clientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
5814
- ...(input.includeOnlyActiveViolations !== undefined &&
5815
- input.includeOnlyActiveViolations !== null && { includeOnlyActiveViolations: input.includeOnlyActiveViolations }),
5816
- ...(input.includeSuppressedAlerts !== undefined &&
5817
- input.includeSuppressedAlerts !== null && { includeSuppressedAlerts: input.includeSuppressedAlerts }),
5818
- ...(input.target !== undefined &&
5819
- input.target !== null && {
5697
+ ...(input.includeOnlyActiveViolations != null && {
5698
+ includeOnlyActiveViolations: input.includeOnlyActiveViolations,
5699
+ }),
5700
+ ...(input.includeSuppressedAlerts != null && { includeSuppressedAlerts: input.includeSuppressedAlerts }),
5701
+ ...(input.target != null && {
5820
5702
  target: serializeAws_restJson1DetectMitigationActionsTaskTarget(input.target, context),
5821
5703
  }),
5822
- ...(input.violationEventOccurrenceRange !== undefined &&
5823
- input.violationEventOccurrenceRange !== null && {
5704
+ ...(input.violationEventOccurrenceRange != null && {
5824
5705
  violationEventOccurrenceRange: serializeAws_restJson1ViolationEventOccurrenceRange(input.violationEventOccurrenceRange, context),
5825
5706
  }),
5826
5707
  });
@@ -5843,8 +5724,7 @@ const serializeAws_restJson1StartOnDemandAuditTaskCommand = async (input, contex
5843
5724
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/tasks";
5844
5725
  let body;
5845
5726
  body = JSON.stringify({
5846
- ...(input.targetCheckNames !== undefined &&
5847
- input.targetCheckNames !== null && {
5727
+ ...(input.targetCheckNames != null && {
5848
5728
  targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
5849
5729
  }),
5850
5730
  });
@@ -5867,11 +5747,10 @@ const serializeAws_restJson1StartThingRegistrationTaskCommand = async (input, co
5867
5747
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/thing-registration-tasks";
5868
5748
  let body;
5869
5749
  body = JSON.stringify({
5870
- ...(input.inputFileBucket !== undefined &&
5871
- input.inputFileBucket !== null && { inputFileBucket: input.inputFileBucket }),
5872
- ...(input.inputFileKey !== undefined && input.inputFileKey !== null && { inputFileKey: input.inputFileKey }),
5873
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
5874
- ...(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 }),
5875
5754
  });
5876
5755
  return new protocol_http_1.HttpRequest({
5877
5756
  protocol,
@@ -5918,9 +5797,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
5918
5797
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
5919
5798
  let body;
5920
5799
  body = JSON.stringify({
5921
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
5922
- ...(input.tags !== undefined &&
5923
- 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) }),
5924
5802
  });
5925
5803
  return new protocol_http_1.HttpRequest({
5926
5804
  protocol,
@@ -5944,19 +5822,15 @@ const serializeAws_restJson1TestAuthorizationCommand = async (input, context) =>
5944
5822
  };
5945
5823
  let body;
5946
5824
  body = JSON.stringify({
5947
- ...(input.authInfos !== undefined &&
5948
- input.authInfos !== null && { authInfos: serializeAws_restJson1AuthInfos(input.authInfos, context) }),
5949
- ...(input.cognitoIdentityPoolId !== undefined &&
5950
- input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
5951
- ...(input.policyNamesToAdd !== undefined &&
5952
- input.policyNamesToAdd !== null && {
5825
+ ...(input.authInfos != null && { authInfos: serializeAws_restJson1AuthInfos(input.authInfos, context) }),
5826
+ ...(input.cognitoIdentityPoolId != null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
5827
+ ...(input.policyNamesToAdd != null && {
5953
5828
  policyNamesToAdd: serializeAws_restJson1PolicyNames(input.policyNamesToAdd, context),
5954
5829
  }),
5955
- ...(input.policyNamesToSkip !== undefined &&
5956
- input.policyNamesToSkip !== null && {
5830
+ ...(input.policyNamesToSkip != null && {
5957
5831
  policyNamesToSkip: serializeAws_restJson1PolicyNames(input.policyNamesToSkip, context),
5958
5832
  }),
5959
- ...(input.principal !== undefined && input.principal !== null && { principal: input.principal }),
5833
+ ...(input.principal != null && { principal: input.principal }),
5960
5834
  });
5961
5835
  return new protocol_http_1.HttpRequest({
5962
5836
  protocol,
@@ -5988,15 +5862,11 @@ const serializeAws_restJson1TestInvokeAuthorizerCommand = async (input, context)
5988
5862
  }
5989
5863
  let body;
5990
5864
  body = JSON.stringify({
5991
- ...(input.httpContext !== undefined &&
5992
- input.httpContext !== null && { httpContext: serializeAws_restJson1HttpContext(input.httpContext, context) }),
5993
- ...(input.mqttContext !== undefined &&
5994
- input.mqttContext !== null && { mqttContext: serializeAws_restJson1MqttContext(input.mqttContext, context) }),
5995
- ...(input.tlsContext !== undefined &&
5996
- input.tlsContext !== null && { tlsContext: serializeAws_restJson1TlsContext(input.tlsContext, context) }),
5997
- ...(input.token !== undefined && input.token !== null && { token: input.token }),
5998
- ...(input.tokenSignature !== undefined &&
5999
- 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 }),
6000
5870
  });
6001
5871
  return new protocol_http_1.HttpRequest({
6002
5872
  protocol,
@@ -6030,8 +5900,7 @@ const serializeAws_restJson1TransferCertificateCommand = async (input, context)
6030
5900
  };
6031
5901
  let body;
6032
5902
  body = JSON.stringify({
6033
- ...(input.transferMessage !== undefined &&
6034
- input.transferMessage !== null && { transferMessage: input.transferMessage }),
5903
+ ...(input.transferMessage != null && { transferMessage: input.transferMessage }),
6035
5904
  });
6036
5905
  return new protocol_http_1.HttpRequest({
6037
5906
  protocol,
@@ -6053,9 +5922,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
6053
5922
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/untag";
6054
5923
  let body;
6055
5924
  body = JSON.stringify({
6056
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
6057
- ...(input.tagKeys !== undefined &&
6058
- 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) }),
6059
5927
  });
6060
5928
  return new protocol_http_1.HttpRequest({
6061
5929
  protocol,
@@ -6076,15 +5944,13 @@ const serializeAws_restJson1UpdateAccountAuditConfigurationCommand = async (inpu
6076
5944
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/configuration";
6077
5945
  let body;
6078
5946
  body = JSON.stringify({
6079
- ...(input.auditCheckConfigurations !== undefined &&
6080
- input.auditCheckConfigurations !== null && {
5947
+ ...(input.auditCheckConfigurations != null && {
6081
5948
  auditCheckConfigurations: serializeAws_restJson1AuditCheckConfigurations(input.auditCheckConfigurations, context),
6082
5949
  }),
6083
- ...(input.auditNotificationTargetConfigurations !== undefined &&
6084
- input.auditNotificationTargetConfigurations !== null && {
5950
+ ...(input.auditNotificationTargetConfigurations != null && {
6085
5951
  auditNotificationTargetConfigurations: serializeAws_restJson1AuditNotificationTargetConfigurations(input.auditNotificationTargetConfigurations, context),
6086
5952
  }),
6087
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
5953
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
6088
5954
  });
6089
5955
  return new protocol_http_1.HttpRequest({
6090
5956
  protocol,
@@ -6105,16 +5971,13 @@ const serializeAws_restJson1UpdateAuditSuppressionCommand = async (input, contex
6105
5971
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/audit/suppressions/update";
6106
5972
  let body;
6107
5973
  body = JSON.stringify({
6108
- ...(input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName }),
6109
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6110
- ...(input.expirationDate !== undefined &&
6111
- input.expirationDate !== null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) }),
6112
- ...(input.resourceIdentifier !== undefined &&
6113
- 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 && {
6114
5978
  resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
6115
5979
  }),
6116
- ...(input.suppressIndefinitely !== undefined &&
6117
- input.suppressIndefinitely !== null && { suppressIndefinitely: input.suppressIndefinitely }),
5980
+ ...(input.suppressIndefinitely != null && { suppressIndefinitely: input.suppressIndefinitely }),
6118
5981
  });
6119
5982
  return new protocol_http_1.HttpRequest({
6120
5983
  protocol,
@@ -6145,14 +6008,11 @@ const serializeAws_restJson1UpdateAuthorizerCommand = async (input, context) =>
6145
6008
  }
6146
6009
  let body;
6147
6010
  body = JSON.stringify({
6148
- ...(input.authorizerFunctionArn !== undefined &&
6149
- input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn }),
6150
- ...(input.enableCachingForHttp !== undefined &&
6151
- input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp }),
6152
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
6153
- ...(input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName }),
6154
- ...(input.tokenSigningPublicKeys !== undefined &&
6155
- 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 && {
6156
6016
  tokenSigningPublicKeys: serializeAws_restJson1PublicKeyMap(input.tokenSigningPublicKeys, context),
6157
6017
  }),
6158
6018
  });
@@ -6185,12 +6045,10 @@ const serializeAws_restJson1UpdateBillingGroupCommand = async (input, context) =
6185
6045
  }
6186
6046
  let body;
6187
6047
  body = JSON.stringify({
6188
- ...(input.billingGroupProperties !== undefined &&
6189
- input.billingGroupProperties !== null && {
6048
+ ...(input.billingGroupProperties != null && {
6190
6049
  billingGroupProperties: serializeAws_restJson1BillingGroupProperties(input.billingGroupProperties, context),
6191
6050
  }),
6192
- ...(input.expectedVersion !== undefined &&
6193
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6051
+ ...(input.expectedVersion != null && { expectedVersion: input.expectedVersion }),
6194
6052
  });
6195
6053
  return new protocol_http_1.HttpRequest({
6196
6054
  protocol,
@@ -6227,12 +6085,10 @@ const serializeAws_restJson1UpdateCACertificateCommand = async (input, context)
6227
6085
  };
6228
6086
  let body;
6229
6087
  body = JSON.stringify({
6230
- ...(input.registrationConfig !== undefined &&
6231
- input.registrationConfig !== null && {
6088
+ ...(input.registrationConfig != null && {
6232
6089
  registrationConfig: serializeAws_restJson1RegistrationConfig(input.registrationConfig, context),
6233
6090
  }),
6234
- ...(input.removeAutoRegistration !== undefined &&
6235
- input.removeAutoRegistration !== null && { removeAutoRegistration: input.removeAutoRegistration }),
6091
+ ...(input.removeAutoRegistration != null && { removeAutoRegistration: input.removeAutoRegistration }),
6236
6092
  });
6237
6093
  return new protocol_http_1.HttpRequest({
6238
6094
  protocol,
@@ -6294,7 +6150,7 @@ const serializeAws_restJson1UpdateCustomMetricCommand = async (input, context) =
6294
6150
  }
6295
6151
  let body;
6296
6152
  body = JSON.stringify({
6297
- ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
6153
+ ...(input.displayName != null && { displayName: input.displayName }),
6298
6154
  });
6299
6155
  return new protocol_http_1.HttpRequest({
6300
6156
  protocol,
@@ -6325,8 +6181,7 @@ const serializeAws_restJson1UpdateDimensionCommand = async (input, context) => {
6325
6181
  }
6326
6182
  let body;
6327
6183
  body = JSON.stringify({
6328
- ...(input.stringValues !== undefined &&
6329
- input.stringValues !== null && {
6184
+ ...(input.stringValues != null && {
6330
6185
  stringValues: serializeAws_restJson1DimensionStringValues(input.stringValues, context),
6331
6186
  }),
6332
6187
  });
@@ -6360,14 +6215,11 @@ const serializeAws_restJson1UpdateDomainConfigurationCommand = async (input, con
6360
6215
  }
6361
6216
  let body;
6362
6217
  body = JSON.stringify({
6363
- ...(input.authorizerConfig !== undefined &&
6364
- input.authorizerConfig !== null && {
6218
+ ...(input.authorizerConfig != null && {
6365
6219
  authorizerConfig: serializeAws_restJson1AuthorizerConfig(input.authorizerConfig, context),
6366
6220
  }),
6367
- ...(input.domainConfigurationStatus !== undefined &&
6368
- input.domainConfigurationStatus !== null && { domainConfigurationStatus: input.domainConfigurationStatus }),
6369
- ...(input.removeAuthorizerConfig !== undefined &&
6370
- input.removeAuthorizerConfig !== null && { removeAuthorizerConfig: input.removeAuthorizerConfig }),
6221
+ ...(input.domainConfigurationStatus != null && { domainConfigurationStatus: input.domainConfigurationStatus }),
6222
+ ...(input.removeAuthorizerConfig != null && { removeAuthorizerConfig: input.removeAuthorizerConfig }),
6371
6223
  });
6372
6224
  return new protocol_http_1.HttpRequest({
6373
6225
  protocol,
@@ -6398,13 +6250,11 @@ const serializeAws_restJson1UpdateDynamicThingGroupCommand = async (input, conte
6398
6250
  }
6399
6251
  let body;
6400
6252
  body = JSON.stringify({
6401
- ...(input.expectedVersion !== undefined &&
6402
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6403
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
6404
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
6405
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
6406
- ...(input.thingGroupProperties !== undefined &&
6407
- 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 && {
6408
6258
  thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
6409
6259
  }),
6410
6260
  });
@@ -6427,8 +6277,7 @@ const serializeAws_restJson1UpdateEventConfigurationsCommand = async (input, con
6427
6277
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/event-configurations";
6428
6278
  let body;
6429
6279
  body = JSON.stringify({
6430
- ...(input.eventConfigurations !== undefined &&
6431
- input.eventConfigurations !== null && {
6280
+ ...(input.eventConfigurations != null && {
6432
6281
  eventConfigurations: serializeAws_restJson1EventConfigurations(input.eventConfigurations, context),
6433
6282
  }),
6434
6283
  });
@@ -6461,20 +6310,17 @@ const serializeAws_restJson1UpdateFleetMetricCommand = async (input, context) =>
6461
6310
  }
6462
6311
  let body;
6463
6312
  body = JSON.stringify({
6464
- ...(input.aggregationField !== undefined &&
6465
- input.aggregationField !== null && { aggregationField: input.aggregationField }),
6466
- ...(input.aggregationType !== undefined &&
6467
- input.aggregationType !== null && {
6313
+ ...(input.aggregationField != null && { aggregationField: input.aggregationField }),
6314
+ ...(input.aggregationType != null && {
6468
6315
  aggregationType: serializeAws_restJson1AggregationType(input.aggregationType, context),
6469
6316
  }),
6470
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6471
- ...(input.expectedVersion !== undefined &&
6472
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6473
- ...(input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName }),
6474
- ...(input.period !== undefined && input.period !== null && { period: input.period }),
6475
- ...(input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }),
6476
- ...(input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion }),
6477
- ...(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 }),
6478
6324
  });
6479
6325
  return new protocol_http_1.HttpRequest({
6480
6326
  protocol,
@@ -6495,12 +6341,10 @@ const serializeAws_restJson1UpdateIndexingConfigurationCommand = async (input, c
6495
6341
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/indexing/config";
6496
6342
  let body;
6497
6343
  body = JSON.stringify({
6498
- ...(input.thingGroupIndexingConfiguration !== undefined &&
6499
- input.thingGroupIndexingConfiguration !== null && {
6344
+ ...(input.thingGroupIndexingConfiguration != null && {
6500
6345
  thingGroupIndexingConfiguration: serializeAws_restJson1ThingGroupIndexingConfiguration(input.thingGroupIndexingConfiguration, context),
6501
6346
  }),
6502
- ...(input.thingIndexingConfiguration !== undefined &&
6503
- input.thingIndexingConfiguration !== null && {
6347
+ ...(input.thingIndexingConfiguration != null && {
6504
6348
  thingIndexingConfiguration: serializeAws_restJson1ThingIndexingConfiguration(input.thingIndexingConfiguration, context),
6505
6349
  }),
6506
6350
  });
@@ -6536,23 +6380,18 @@ const serializeAws_restJson1UpdateJobCommand = async (input, context) => {
6536
6380
  };
6537
6381
  let body;
6538
6382
  body = JSON.stringify({
6539
- ...(input.abortConfig !== undefined &&
6540
- input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
6541
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6542
- ...(input.jobExecutionsRetryConfig !== undefined &&
6543
- input.jobExecutionsRetryConfig !== null && {
6383
+ ...(input.abortConfig != null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) }),
6384
+ ...(input.description != null && { description: input.description }),
6385
+ ...(input.jobExecutionsRetryConfig != null && {
6544
6386
  jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
6545
6387
  }),
6546
- ...(input.jobExecutionsRolloutConfig !== undefined &&
6547
- input.jobExecutionsRolloutConfig !== null && {
6388
+ ...(input.jobExecutionsRolloutConfig != null && {
6548
6389
  jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
6549
6390
  }),
6550
- ...(input.presignedUrlConfig !== undefined &&
6551
- input.presignedUrlConfig !== null && {
6391
+ ...(input.presignedUrlConfig != null && {
6552
6392
  presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
6553
6393
  }),
6554
- ...(input.timeoutConfig !== undefined &&
6555
- input.timeoutConfig !== null && {
6394
+ ...(input.timeoutConfig != null && {
6556
6395
  timeoutConfig: serializeAws_restJson1TimeoutConfig(input.timeoutConfig, context),
6557
6396
  }),
6558
6397
  });
@@ -6586,11 +6425,10 @@ const serializeAws_restJson1UpdateMitigationActionCommand = async (input, contex
6586
6425
  }
6587
6426
  let body;
6588
6427
  body = JSON.stringify({
6589
- ...(input.actionParams !== undefined &&
6590
- input.actionParams !== null && {
6428
+ ...(input.actionParams != null && {
6591
6429
  actionParams: serializeAws_restJson1MitigationActionParams(input.actionParams, context),
6592
6430
  }),
6593
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
6431
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
6594
6432
  });
6595
6433
  return new protocol_http_1.HttpRequest({
6596
6434
  protocol,
@@ -6621,18 +6459,14 @@ const serializeAws_restJson1UpdateProvisioningTemplateCommand = async (input, co
6621
6459
  }
6622
6460
  let body;
6623
6461
  body = JSON.stringify({
6624
- ...(input.defaultVersionId !== undefined &&
6625
- input.defaultVersionId !== null && { defaultVersionId: input.defaultVersionId }),
6626
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6627
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
6628
- ...(input.preProvisioningHook !== undefined &&
6629
- 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 && {
6630
6466
  preProvisioningHook: serializeAws_restJson1ProvisioningHook(input.preProvisioningHook, context),
6631
6467
  }),
6632
- ...(input.provisioningRoleArn !== undefined &&
6633
- input.provisioningRoleArn !== null && { provisioningRoleArn: input.provisioningRoleArn }),
6634
- ...(input.removePreProvisioningHook !== undefined &&
6635
- input.removePreProvisioningHook !== null && { removePreProvisioningHook: input.removePreProvisioningHook }),
6468
+ ...(input.provisioningRoleArn != null && { provisioningRoleArn: input.provisioningRoleArn }),
6469
+ ...(input.removePreProvisioningHook != null && { removePreProvisioningHook: input.removePreProvisioningHook }),
6636
6470
  });
6637
6471
  return new protocol_http_1.HttpRequest({
6638
6472
  protocol,
@@ -6663,9 +6497,8 @@ const serializeAws_restJson1UpdateRoleAliasCommand = async (input, context) => {
6663
6497
  }
6664
6498
  let body;
6665
6499
  body = JSON.stringify({
6666
- ...(input.credentialDurationSeconds !== undefined &&
6667
- input.credentialDurationSeconds !== null && { credentialDurationSeconds: input.credentialDurationSeconds }),
6668
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
6500
+ ...(input.credentialDurationSeconds != null && { credentialDurationSeconds: input.credentialDurationSeconds }),
6501
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
6669
6502
  });
6670
6503
  return new protocol_http_1.HttpRequest({
6671
6504
  protocol,
@@ -6697,11 +6530,10 @@ const serializeAws_restJson1UpdateScheduledAuditCommand = async (input, context)
6697
6530
  }
6698
6531
  let body;
6699
6532
  body = JSON.stringify({
6700
- ...(input.dayOfMonth !== undefined && input.dayOfMonth !== null && { dayOfMonth: input.dayOfMonth }),
6701
- ...(input.dayOfWeek !== undefined && input.dayOfWeek !== null && { dayOfWeek: input.dayOfWeek }),
6702
- ...(input.frequency !== undefined && input.frequency !== null && { frequency: input.frequency }),
6703
- ...(input.targetCheckNames !== undefined &&
6704
- 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 && {
6705
6537
  targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
6706
6538
  }),
6707
6539
  });
@@ -6737,28 +6569,22 @@ const serializeAws_restJson1UpdateSecurityProfileCommand = async (input, context
6737
6569
  };
6738
6570
  let body;
6739
6571
  body = JSON.stringify({
6740
- ...(input.additionalMetricsToRetain !== undefined &&
6741
- input.additionalMetricsToRetain !== null && {
6572
+ ...(input.additionalMetricsToRetain != null && {
6742
6573
  additionalMetricsToRetain: serializeAws_restJson1AdditionalMetricsToRetainList(input.additionalMetricsToRetain, context),
6743
6574
  }),
6744
- ...(input.additionalMetricsToRetainV2 !== undefined &&
6745
- input.additionalMetricsToRetainV2 !== null && {
6575
+ ...(input.additionalMetricsToRetainV2 != null && {
6746
6576
  additionalMetricsToRetainV2: serializeAws_restJson1AdditionalMetricsToRetainV2List(input.additionalMetricsToRetainV2, context),
6747
6577
  }),
6748
- ...(input.alertTargets !== undefined &&
6749
- input.alertTargets !== null && { alertTargets: serializeAws_restJson1AlertTargets(input.alertTargets, context) }),
6750
- ...(input.behaviors !== undefined &&
6751
- input.behaviors !== null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
6752
- ...(input.deleteAdditionalMetricsToRetain !== undefined &&
6753
- 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 && {
6754
6583
  deleteAdditionalMetricsToRetain: input.deleteAdditionalMetricsToRetain,
6755
6584
  }),
6756
- ...(input.deleteAlertTargets !== undefined &&
6757
- input.deleteAlertTargets !== null && { deleteAlertTargets: input.deleteAlertTargets }),
6758
- ...(input.deleteBehaviors !== undefined &&
6759
- input.deleteBehaviors !== null && { deleteBehaviors: input.deleteBehaviors }),
6760
- ...(input.securityProfileDescription !== undefined &&
6761
- 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 }),
6762
6588
  });
6763
6589
  return new protocol_http_1.HttpRequest({
6764
6590
  protocol,
@@ -6790,10 +6616,9 @@ const serializeAws_restJson1UpdateStreamCommand = async (input, context) => {
6790
6616
  }
6791
6617
  let body;
6792
6618
  body = JSON.stringify({
6793
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
6794
- ...(input.files !== undefined &&
6795
- input.files !== null && { files: serializeAws_restJson1StreamFiles(input.files, context) }),
6796
- ...(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 }),
6797
6622
  });
6798
6623
  return new protocol_http_1.HttpRequest({
6799
6624
  protocol,
@@ -6824,15 +6649,12 @@ const serializeAws_restJson1UpdateThingCommand = async (input, context) => {
6824
6649
  }
6825
6650
  let body;
6826
6651
  body = JSON.stringify({
6827
- ...(input.attributePayload !== undefined &&
6828
- input.attributePayload !== null && {
6652
+ ...(input.attributePayload != null && {
6829
6653
  attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
6830
6654
  }),
6831
- ...(input.expectedVersion !== undefined &&
6832
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6833
- ...(input.removeThingType !== undefined &&
6834
- input.removeThingType !== null && { removeThingType: input.removeThingType }),
6835
- ...(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 }),
6836
6658
  });
6837
6659
  return new protocol_http_1.HttpRequest({
6838
6660
  protocol,
@@ -6863,10 +6685,8 @@ const serializeAws_restJson1UpdateThingGroupCommand = async (input, context) =>
6863
6685
  }
6864
6686
  let body;
6865
6687
  body = JSON.stringify({
6866
- ...(input.expectedVersion !== undefined &&
6867
- input.expectedVersion !== null && { expectedVersion: input.expectedVersion }),
6868
- ...(input.thingGroupProperties !== undefined &&
6869
- input.thingGroupProperties !== null && {
6688
+ ...(input.expectedVersion != null && { expectedVersion: input.expectedVersion }),
6689
+ ...(input.thingGroupProperties != null && {
6870
6690
  thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
6871
6691
  }),
6872
6692
  });
@@ -6889,17 +6709,14 @@ const serializeAws_restJson1UpdateThingGroupsForThingCommand = async (input, con
6889
6709
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/thing-groups/updateThingGroupsForThing";
6890
6710
  let body;
6891
6711
  body = JSON.stringify({
6892
- ...(input.overrideDynamicGroups !== undefined &&
6893
- input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups }),
6894
- ...(input.thingGroupsToAdd !== undefined &&
6895
- input.thingGroupsToAdd !== null && {
6712
+ ...(input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups }),
6713
+ ...(input.thingGroupsToAdd != null && {
6896
6714
  thingGroupsToAdd: serializeAws_restJson1ThingGroupList(input.thingGroupsToAdd, context),
6897
6715
  }),
6898
- ...(input.thingGroupsToRemove !== undefined &&
6899
- input.thingGroupsToRemove !== null && {
6716
+ ...(input.thingGroupsToRemove != null && {
6900
6717
  thingGroupsToRemove: serializeAws_restJson1ThingGroupList(input.thingGroupsToRemove, context),
6901
6718
  }),
6902
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
6719
+ ...(input.thingName != null && { thingName: input.thingName }),
6903
6720
  });
6904
6721
  return new protocol_http_1.HttpRequest({
6905
6722
  protocol,
@@ -6920,8 +6737,8 @@ const serializeAws_restJson1UpdateTopicRuleDestinationCommand = async (input, co
6920
6737
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/destinations";
6921
6738
  let body;
6922
6739
  body = JSON.stringify({
6923
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
6924
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
6740
+ ...(input.arn != null && { arn: input.arn }),
6741
+ ...(input.status != null && { status: input.status }),
6925
6742
  });
6926
6743
  return new protocol_http_1.HttpRequest({
6927
6744
  protocol,
@@ -6942,8 +6759,7 @@ const serializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = async (inp
6942
6759
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/security-profile-behaviors/validate";
6943
6760
  let body;
6944
6761
  body = JSON.stringify({
6945
- ...(input.behaviors !== undefined &&
6946
- input.behaviors !== null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
6762
+ ...(input.behaviors != null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) }),
6947
6763
  });
6948
6764
  return new protocol_http_1.HttpRequest({
6949
6765
  protocol,
@@ -20209,20 +20025,17 @@ const deserializeAws_restJson1VersionsLimitExceededExceptionResponse = async (pa
20209
20025
  };
20210
20026
  const serializeAws_restJson1AbortConfig = (input, context) => {
20211
20027
  return {
20212
- ...(input.criteriaList !== undefined &&
20213
- input.criteriaList !== null && {
20028
+ ...(input.criteriaList != null && {
20214
20029
  criteriaList: serializeAws_restJson1AbortCriteriaList(input.criteriaList, context),
20215
20030
  }),
20216
20031
  };
20217
20032
  };
20218
20033
  const serializeAws_restJson1AbortCriteria = (input, context) => {
20219
20034
  return {
20220
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
20221
- ...(input.failureType !== undefined && input.failureType !== null && { failureType: input.failureType }),
20222
- ...(input.minNumberOfExecutedThings !== undefined &&
20223
- input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings }),
20224
- ...(input.thresholdPercentage !== undefined &&
20225
- 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) }),
20226
20039
  };
20227
20040
  };
20228
20041
  const serializeAws_restJson1AbortCriteriaList = (input, context) => {
@@ -20237,61 +20050,42 @@ const serializeAws_restJson1AbortCriteriaList = (input, context) => {
20237
20050
  };
20238
20051
  const serializeAws_restJson1Action = (input, context) => {
20239
20052
  return {
20240
- ...(input.cloudwatchAlarm !== undefined &&
20241
- input.cloudwatchAlarm !== null && {
20053
+ ...(input.cloudwatchAlarm != null && {
20242
20054
  cloudwatchAlarm: serializeAws_restJson1CloudwatchAlarmAction(input.cloudwatchAlarm, context),
20243
20055
  }),
20244
- ...(input.cloudwatchLogs !== undefined &&
20245
- input.cloudwatchLogs !== null && {
20056
+ ...(input.cloudwatchLogs != null && {
20246
20057
  cloudwatchLogs: serializeAws_restJson1CloudwatchLogsAction(input.cloudwatchLogs, context),
20247
20058
  }),
20248
- ...(input.cloudwatchMetric !== undefined &&
20249
- input.cloudwatchMetric !== null && {
20059
+ ...(input.cloudwatchMetric != null && {
20250
20060
  cloudwatchMetric: serializeAws_restJson1CloudwatchMetricAction(input.cloudwatchMetric, context),
20251
20061
  }),
20252
- ...(input.dynamoDB !== undefined &&
20253
- input.dynamoDB !== null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) }),
20254
- ...(input.dynamoDBv2 !== undefined &&
20255
- input.dynamoDBv2 !== null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) }),
20256
- ...(input.elasticsearch !== undefined &&
20257
- 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 && {
20258
20065
  elasticsearch: serializeAws_restJson1ElasticsearchAction(input.elasticsearch, context),
20259
20066
  }),
20260
- ...(input.firehose !== undefined &&
20261
- input.firehose !== null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) }),
20262
- ...(input.http !== undefined &&
20263
- input.http !== null && { http: serializeAws_restJson1HttpAction(input.http, context) }),
20264
- ...(input.iotAnalytics !== undefined &&
20265
- 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 && {
20266
20070
  iotAnalytics: serializeAws_restJson1IotAnalyticsAction(input.iotAnalytics, context),
20267
20071
  }),
20268
- ...(input.iotEvents !== undefined &&
20269
- input.iotEvents !== null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) }),
20270
- ...(input.iotSiteWise !== undefined &&
20271
- input.iotSiteWise !== null && {
20072
+ ...(input.iotEvents != null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) }),
20073
+ ...(input.iotSiteWise != null && {
20272
20074
  iotSiteWise: serializeAws_restJson1IotSiteWiseAction(input.iotSiteWise, context),
20273
20075
  }),
20274
- ...(input.kafka !== undefined &&
20275
- input.kafka !== null && { kafka: serializeAws_restJson1KafkaAction(input.kafka, context) }),
20276
- ...(input.kinesis !== undefined &&
20277
- input.kinesis !== null && { kinesis: serializeAws_restJson1KinesisAction(input.kinesis, context) }),
20278
- ...(input.lambda !== undefined &&
20279
- input.lambda !== null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) }),
20280
- ...(input.openSearch !== undefined &&
20281
- input.openSearch !== null && { openSearch: serializeAws_restJson1OpenSearchAction(input.openSearch, context) }),
20282
- ...(input.republish !== undefined &&
20283
- input.republish !== null && { republish: serializeAws_restJson1RepublishAction(input.republish, context) }),
20284
- ...(input.s3 !== undefined && input.s3 !== null && { s3: serializeAws_restJson1S3Action(input.s3, context) }),
20285
- ...(input.salesforce !== undefined &&
20286
- input.salesforce !== null && { salesforce: serializeAws_restJson1SalesforceAction(input.salesforce, context) }),
20287
- ...(input.sns !== undefined && input.sns !== null && { sns: serializeAws_restJson1SnsAction(input.sns, context) }),
20288
- ...(input.sqs !== undefined && input.sqs !== null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }),
20289
- ...(input.stepFunctions !== undefined &&
20290
- 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 && {
20291
20086
  stepFunctions: serializeAws_restJson1StepFunctionsAction(input.stepFunctions, context),
20292
20087
  }),
20293
- ...(input.timestream !== undefined &&
20294
- input.timestream !== null && { timestream: serializeAws_restJson1TimestreamAction(input.timestream, context) }),
20088
+ ...(input.timestream != null && { timestream: serializeAws_restJson1TimestreamAction(input.timestream, context) }),
20295
20089
  };
20296
20090
  };
20297
20091
  const serializeAws_restJson1ActionList = (input, context) => {
@@ -20337,19 +20131,16 @@ const serializeAws_restJson1AdditionalParameterMap = (input, context) => {
20337
20131
  };
20338
20132
  const serializeAws_restJson1AddThingsToThingGroupParams = (input, context) => {
20339
20133
  return {
20340
- ...(input.overrideDynamicGroups !== undefined &&
20341
- input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups }),
20342
- ...(input.thingGroupNames !== undefined &&
20343
- input.thingGroupNames !== null && {
20134
+ ...(input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups }),
20135
+ ...(input.thingGroupNames != null && {
20344
20136
  thingGroupNames: serializeAws_restJson1ThingGroupNames(input.thingGroupNames, context),
20345
20137
  }),
20346
20138
  };
20347
20139
  };
20348
20140
  const serializeAws_restJson1AggregationType = (input, context) => {
20349
20141
  return {
20350
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
20351
- ...(input.values !== undefined &&
20352
- 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) }),
20353
20144
  };
20354
20145
  };
20355
20146
  const serializeAws_restJson1AggregationTypeValues = (input, context) => {
@@ -20364,9 +20155,8 @@ const serializeAws_restJson1AggregationTypeValues = (input, context) => {
20364
20155
  };
20365
20156
  const serializeAws_restJson1AlertTarget = (input, context) => {
20366
20157
  return {
20367
- ...(input.alertTargetArn !== undefined &&
20368
- input.alertTargetArn !== null && { alertTargetArn: input.alertTargetArn }),
20369
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20158
+ ...(input.alertTargetArn != null && { alertTargetArn: input.alertTargetArn }),
20159
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20370
20160
  };
20371
20161
  };
20372
20162
  const serializeAws_restJson1AlertTargets = (input, context) => {
@@ -20382,19 +20172,17 @@ const serializeAws_restJson1AlertTargets = (input, context) => {
20382
20172
  };
20383
20173
  const serializeAws_restJson1AssetPropertyTimestamp = (input, context) => {
20384
20174
  return {
20385
- ...(input.offsetInNanos !== undefined && input.offsetInNanos !== null && { offsetInNanos: input.offsetInNanos }),
20386
- ...(input.timeInSeconds !== undefined && input.timeInSeconds !== null && { timeInSeconds: input.timeInSeconds }),
20175
+ ...(input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos }),
20176
+ ...(input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }),
20387
20177
  };
20388
20178
  };
20389
20179
  const serializeAws_restJson1AssetPropertyValue = (input, context) => {
20390
20180
  return {
20391
- ...(input.quality !== undefined && input.quality !== null && { quality: input.quality }),
20392
- ...(input.timestamp !== undefined &&
20393
- input.timestamp !== null && {
20181
+ ...(input.quality != null && { quality: input.quality }),
20182
+ ...(input.timestamp != null && {
20394
20183
  timestamp: serializeAws_restJson1AssetPropertyTimestamp(input.timestamp, context),
20395
20184
  }),
20396
- ...(input.value !== undefined &&
20397
- input.value !== null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }),
20185
+ ...(input.value != null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }),
20398
20186
  };
20399
20187
  };
20400
20188
  const serializeAws_restJson1AssetPropertyValueList = (input, context) => {
@@ -20418,9 +20206,8 @@ const serializeAws_restJson1AssetPropertyVariant = (input, context) => {
20418
20206
  };
20419
20207
  const serializeAws_restJson1AttributePayload = (input, context) => {
20420
20208
  return {
20421
- ...(input.attributes !== undefined &&
20422
- input.attributes !== null && { attributes: serializeAws_restJson1Attributes(input.attributes, context) }),
20423
- ...(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 }),
20424
20211
  };
20425
20212
  };
20426
20213
  const serializeAws_restJson1Attributes = (input, context) => {
@@ -20447,7 +20234,7 @@ const serializeAws_restJson1AttributesMap = (input, context) => {
20447
20234
  };
20448
20235
  const serializeAws_restJson1AuditCheckConfiguration = (input, context) => {
20449
20236
  return {
20450
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
20237
+ ...(input.enabled != null && { enabled: input.enabled }),
20451
20238
  };
20452
20239
  };
20453
20240
  const serializeAws_restJson1AuditCheckConfigurations = (input, context) => {
@@ -20485,20 +20272,18 @@ const serializeAws_restJson1AuditCheckToReasonCodeFilter = (input, context) => {
20485
20272
  };
20486
20273
  const serializeAws_restJson1AuditMitigationActionsTaskTarget = (input, context) => {
20487
20274
  return {
20488
- ...(input.auditCheckToReasonCodeFilter !== undefined &&
20489
- input.auditCheckToReasonCodeFilter !== null && {
20275
+ ...(input.auditCheckToReasonCodeFilter != null && {
20490
20276
  auditCheckToReasonCodeFilter: serializeAws_restJson1AuditCheckToReasonCodeFilter(input.auditCheckToReasonCodeFilter, context),
20491
20277
  }),
20492
- ...(input.auditTaskId !== undefined && input.auditTaskId !== null && { auditTaskId: input.auditTaskId }),
20493
- ...(input.findingIds !== undefined &&
20494
- 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) }),
20495
20280
  };
20496
20281
  };
20497
20282
  const serializeAws_restJson1AuditNotificationTarget = (input, context) => {
20498
20283
  return {
20499
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
20500
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20501
- ...(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 }),
20502
20287
  };
20503
20288
  };
20504
20289
  const serializeAws_restJson1AuditNotificationTargetConfigurations = (input, context) => {
@@ -20514,9 +20299,8 @@ const serializeAws_restJson1AuditNotificationTargetConfigurations = (input, cont
20514
20299
  };
20515
20300
  const serializeAws_restJson1AuthInfo = (input, context) => {
20516
20301
  return {
20517
- ...(input.actionType !== undefined && input.actionType !== null && { actionType: input.actionType }),
20518
- ...(input.resources !== undefined &&
20519
- 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) }),
20520
20304
  };
20521
20305
  };
20522
20306
  const serializeAws_restJson1AuthInfos = (input, context) => {
@@ -20531,28 +20315,23 @@ const serializeAws_restJson1AuthInfos = (input, context) => {
20531
20315
  };
20532
20316
  const serializeAws_restJson1AuthorizerConfig = (input, context) => {
20533
20317
  return {
20534
- ...(input.allowAuthorizerOverride !== undefined &&
20535
- input.allowAuthorizerOverride !== null && { allowAuthorizerOverride: input.allowAuthorizerOverride }),
20536
- ...(input.defaultAuthorizerName !== undefined &&
20537
- input.defaultAuthorizerName !== null && { defaultAuthorizerName: input.defaultAuthorizerName }),
20318
+ ...(input.allowAuthorizerOverride != null && { allowAuthorizerOverride: input.allowAuthorizerOverride }),
20319
+ ...(input.defaultAuthorizerName != null && { defaultAuthorizerName: input.defaultAuthorizerName }),
20538
20320
  };
20539
20321
  };
20540
20322
  const serializeAws_restJson1AwsJobAbortConfig = (input, context) => {
20541
20323
  return {
20542
- ...(input.abortCriteriaList !== undefined &&
20543
- input.abortCriteriaList !== null && {
20324
+ ...(input.abortCriteriaList != null && {
20544
20325
  abortCriteriaList: serializeAws_restJson1AwsJobAbortCriteriaList(input.abortCriteriaList, context),
20545
20326
  }),
20546
20327
  };
20547
20328
  };
20548
20329
  const serializeAws_restJson1AwsJobAbortCriteria = (input, context) => {
20549
20330
  return {
20550
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
20551
- ...(input.failureType !== undefined && input.failureType !== null && { failureType: input.failureType }),
20552
- ...(input.minNumberOfExecutedThings !== undefined &&
20553
- input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings }),
20554
- ...(input.thresholdPercentage !== undefined &&
20555
- 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) }),
20556
20335
  };
20557
20336
  };
20558
20337
  const serializeAws_restJson1AwsJobAbortCriteriaList = (input, context) => {
@@ -20567,83 +20346,65 @@ const serializeAws_restJson1AwsJobAbortCriteriaList = (input, context) => {
20567
20346
  };
20568
20347
  const serializeAws_restJson1AwsJobExecutionsRolloutConfig = (input, context) => {
20569
20348
  return {
20570
- ...(input.exponentialRate !== undefined &&
20571
- input.exponentialRate !== null && {
20349
+ ...(input.exponentialRate != null && {
20572
20350
  exponentialRate: serializeAws_restJson1AwsJobExponentialRolloutRate(input.exponentialRate, context),
20573
20351
  }),
20574
- ...(input.maximumPerMinute !== undefined &&
20575
- input.maximumPerMinute !== null && { maximumPerMinute: input.maximumPerMinute }),
20352
+ ...(input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }),
20576
20353
  };
20577
20354
  };
20578
20355
  const serializeAws_restJson1AwsJobExponentialRolloutRate = (input, context) => {
20579
20356
  return {
20580
- ...(input.baseRatePerMinute !== undefined &&
20581
- input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute }),
20582
- ...(input.incrementFactor !== undefined &&
20583
- input.incrementFactor !== null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
20584
- ...(input.rateIncreaseCriteria !== undefined &&
20585
- 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 && {
20586
20360
  rateIncreaseCriteria: serializeAws_restJson1AwsJobRateIncreaseCriteria(input.rateIncreaseCriteria, context),
20587
20361
  }),
20588
20362
  };
20589
20363
  };
20590
20364
  const serializeAws_restJson1AwsJobPresignedUrlConfig = (input, context) => {
20591
20365
  return {
20592
- ...(input.expiresInSec !== undefined && input.expiresInSec !== null && { expiresInSec: input.expiresInSec }),
20366
+ ...(input.expiresInSec != null && { expiresInSec: input.expiresInSec }),
20593
20367
  };
20594
20368
  };
20595
20369
  const serializeAws_restJson1AwsJobRateIncreaseCriteria = (input, context) => {
20596
20370
  return {
20597
- ...(input.numberOfNotifiedThings !== undefined &&
20598
- input.numberOfNotifiedThings !== null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
20599
- ...(input.numberOfSucceededThings !== undefined &&
20600
- input.numberOfSucceededThings !== null && { numberOfSucceededThings: input.numberOfSucceededThings }),
20371
+ ...(input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
20372
+ ...(input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }),
20601
20373
  };
20602
20374
  };
20603
20375
  const serializeAws_restJson1AwsJobTimeoutConfig = (input, context) => {
20604
20376
  return {
20605
- ...(input.inProgressTimeoutInMinutes !== undefined &&
20606
- input.inProgressTimeoutInMinutes !== null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
20377
+ ...(input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
20607
20378
  };
20608
20379
  };
20609
20380
  const serializeAws_restJson1Behavior = (input, context) => {
20610
20381
  return {
20611
- ...(input.criteria !== undefined &&
20612
- input.criteria !== null && { criteria: serializeAws_restJson1BehaviorCriteria(input.criteria, context) }),
20613
- ...(input.metric !== undefined && input.metric !== null && { metric: input.metric }),
20614
- ...(input.metricDimension !== undefined &&
20615
- input.metricDimension !== null && {
20382
+ ...(input.criteria != null && { criteria: serializeAws_restJson1BehaviorCriteria(input.criteria, context) }),
20383
+ ...(input.metric != null && { metric: input.metric }),
20384
+ ...(input.metricDimension != null && {
20616
20385
  metricDimension: serializeAws_restJson1MetricDimension(input.metricDimension, context),
20617
20386
  }),
20618
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
20619
- ...(input.suppressAlerts !== undefined &&
20620
- input.suppressAlerts !== null && { suppressAlerts: input.suppressAlerts }),
20387
+ ...(input.name != null && { name: input.name }),
20388
+ ...(input.suppressAlerts != null && { suppressAlerts: input.suppressAlerts }),
20621
20389
  };
20622
20390
  };
20623
20391
  const serializeAws_restJson1BehaviorCriteria = (input, context) => {
20624
20392
  return {
20625
- ...(input.comparisonOperator !== undefined &&
20626
- input.comparisonOperator !== null && { comparisonOperator: input.comparisonOperator }),
20627
- ...(input.consecutiveDatapointsToAlarm !== undefined &&
20628
- input.consecutiveDatapointsToAlarm !== null && {
20393
+ ...(input.comparisonOperator != null && { comparisonOperator: input.comparisonOperator }),
20394
+ ...(input.consecutiveDatapointsToAlarm != null && {
20629
20395
  consecutiveDatapointsToAlarm: input.consecutiveDatapointsToAlarm,
20630
20396
  }),
20631
- ...(input.consecutiveDatapointsToClear !== undefined &&
20632
- input.consecutiveDatapointsToClear !== null && {
20397
+ ...(input.consecutiveDatapointsToClear != null && {
20633
20398
  consecutiveDatapointsToClear: input.consecutiveDatapointsToClear,
20634
20399
  }),
20635
- ...(input.durationSeconds !== undefined &&
20636
- input.durationSeconds !== null && { durationSeconds: input.durationSeconds }),
20637
- ...(input.mlDetectionConfig !== undefined &&
20638
- input.mlDetectionConfig !== null && {
20400
+ ...(input.durationSeconds != null && { durationSeconds: input.durationSeconds }),
20401
+ ...(input.mlDetectionConfig != null && {
20639
20402
  mlDetectionConfig: serializeAws_restJson1MachineLearningDetectionConfig(input.mlDetectionConfig, context),
20640
20403
  }),
20641
- ...(input.statisticalThreshold !== undefined &&
20642
- input.statisticalThreshold !== null && {
20404
+ ...(input.statisticalThreshold != null && {
20643
20405
  statisticalThreshold: serializeAws_restJson1StatisticalThreshold(input.statisticalThreshold, context),
20644
20406
  }),
20645
- ...(input.value !== undefined &&
20646
- input.value !== null && { value: serializeAws_restJson1MetricValue(input.value, context) }),
20407
+ ...(input.value != null && { value: serializeAws_restJson1MetricValue(input.value, context) }),
20647
20408
  };
20648
20409
  };
20649
20410
  const serializeAws_restJson1Behaviors = (input, context) => {
@@ -20658,14 +20419,12 @@ const serializeAws_restJson1Behaviors = (input, context) => {
20658
20419
  };
20659
20420
  const serializeAws_restJson1BillingGroupProperties = (input, context) => {
20660
20421
  return {
20661
- ...(input.billingGroupDescription !== undefined &&
20662
- input.billingGroupDescription !== null && { billingGroupDescription: input.billingGroupDescription }),
20422
+ ...(input.billingGroupDescription != null && { billingGroupDescription: input.billingGroupDescription }),
20663
20423
  };
20664
20424
  };
20665
20425
  const serializeAws_restJson1BucketsAggregationType = (input, context) => {
20666
20426
  return {
20667
- ...(input.termsAggregation !== undefined &&
20668
- input.termsAggregation !== null && {
20427
+ ...(input.termsAggregation != null && {
20669
20428
  termsAggregation: serializeAws_restJson1TermsAggregation(input.termsAggregation, context),
20670
20429
  }),
20671
20430
  };
@@ -20693,80 +20452,68 @@ const serializeAws_restJson1ClientProperties = (input, context) => {
20693
20452
  };
20694
20453
  const serializeAws_restJson1CloudwatchAlarmAction = (input, context) => {
20695
20454
  return {
20696
- ...(input.alarmName !== undefined && input.alarmName !== null && { alarmName: input.alarmName }),
20697
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20698
- ...(input.stateReason !== undefined && input.stateReason !== null && { stateReason: input.stateReason }),
20699
- ...(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 }),
20700
20459
  };
20701
20460
  };
20702
20461
  const serializeAws_restJson1CloudwatchLogsAction = (input, context) => {
20703
20462
  return {
20704
- ...(input.logGroupName !== undefined && input.logGroupName !== null && { logGroupName: input.logGroupName }),
20705
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20463
+ ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
20464
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20706
20465
  };
20707
20466
  };
20708
20467
  const serializeAws_restJson1CloudwatchMetricAction = (input, context) => {
20709
20468
  return {
20710
- ...(input.metricName !== undefined && input.metricName !== null && { metricName: input.metricName }),
20711
- ...(input.metricNamespace !== undefined &&
20712
- input.metricNamespace !== null && { metricNamespace: input.metricNamespace }),
20713
- ...(input.metricTimestamp !== undefined &&
20714
- input.metricTimestamp !== null && { metricTimestamp: input.metricTimestamp }),
20715
- ...(input.metricUnit !== undefined && input.metricUnit !== null && { metricUnit: input.metricUnit }),
20716
- ...(input.metricValue !== undefined && input.metricValue !== null && { metricValue: input.metricValue }),
20717
- ...(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 }),
20718
20475
  };
20719
20476
  };
20720
20477
  const serializeAws_restJson1CodeSigning = (input, context) => {
20721
20478
  return {
20722
- ...(input.awsSignerJobId !== undefined &&
20723
- input.awsSignerJobId !== null && { awsSignerJobId: input.awsSignerJobId }),
20724
- ...(input.customCodeSigning !== undefined &&
20725
- input.customCodeSigning !== null && {
20479
+ ...(input.awsSignerJobId != null && { awsSignerJobId: input.awsSignerJobId }),
20480
+ ...(input.customCodeSigning != null && {
20726
20481
  customCodeSigning: serializeAws_restJson1CustomCodeSigning(input.customCodeSigning, context),
20727
20482
  }),
20728
- ...(input.startSigningJobParameter !== undefined &&
20729
- input.startSigningJobParameter !== null && {
20483
+ ...(input.startSigningJobParameter != null && {
20730
20484
  startSigningJobParameter: serializeAws_restJson1StartSigningJobParameter(input.startSigningJobParameter, context),
20731
20485
  }),
20732
20486
  };
20733
20487
  };
20734
20488
  const serializeAws_restJson1CodeSigningCertificateChain = (input, context) => {
20735
20489
  return {
20736
- ...(input.certificateName !== undefined &&
20737
- input.certificateName !== null && { certificateName: input.certificateName }),
20738
- ...(input.inlineDocument !== undefined &&
20739
- input.inlineDocument !== null && { inlineDocument: input.inlineDocument }),
20490
+ ...(input.certificateName != null && { certificateName: input.certificateName }),
20491
+ ...(input.inlineDocument != null && { inlineDocument: input.inlineDocument }),
20740
20492
  };
20741
20493
  };
20742
20494
  const serializeAws_restJson1CodeSigningSignature = (input, context) => {
20743
20495
  return {
20744
- ...(input.inlineDocument !== undefined &&
20745
- input.inlineDocument !== null && { inlineDocument: context.base64Encoder(input.inlineDocument) }),
20496
+ ...(input.inlineDocument != null && { inlineDocument: context.base64Encoder(input.inlineDocument) }),
20746
20497
  };
20747
20498
  };
20748
20499
  const serializeAws_restJson1Configuration = (input, context) => {
20749
20500
  return {
20750
- ...(input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }),
20501
+ ...(input.Enabled != null && { Enabled: input.Enabled }),
20751
20502
  };
20752
20503
  };
20753
20504
  const serializeAws_restJson1CustomCodeSigning = (input, context) => {
20754
20505
  return {
20755
- ...(input.certificateChain !== undefined &&
20756
- input.certificateChain !== null && {
20506
+ ...(input.certificateChain != null && {
20757
20507
  certificateChain: serializeAws_restJson1CodeSigningCertificateChain(input.certificateChain, context),
20758
20508
  }),
20759
- ...(input.hashAlgorithm !== undefined && input.hashAlgorithm !== null && { hashAlgorithm: input.hashAlgorithm }),
20760
- ...(input.signature !== undefined &&
20761
- input.signature !== null && { signature: serializeAws_restJson1CodeSigningSignature(input.signature, context) }),
20762
- ...(input.signatureAlgorithm !== undefined &&
20763
- 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 }),
20764
20512
  };
20765
20513
  };
20766
20514
  const serializeAws_restJson1Destination = (input, context) => {
20767
20515
  return {
20768
- ...(input.s3Destination !== undefined &&
20769
- input.s3Destination !== null && {
20516
+ ...(input.s3Destination != null && {
20770
20517
  s3Destination: serializeAws_restJson1S3Destination(input.s3Destination, context),
20771
20518
  }),
20772
20519
  };
@@ -20784,11 +20531,9 @@ const serializeAws_restJson1DetailsMap = (input, context) => {
20784
20531
  };
20785
20532
  const serializeAws_restJson1DetectMitigationActionsTaskTarget = (input, context) => {
20786
20533
  return {
20787
- ...(input.behaviorName !== undefined && input.behaviorName !== null && { behaviorName: input.behaviorName }),
20788
- ...(input.securityProfileName !== undefined &&
20789
- input.securityProfileName !== null && { securityProfileName: input.securityProfileName }),
20790
- ...(input.violationIds !== undefined &&
20791
- input.violationIds !== null && {
20534
+ ...(input.behaviorName != null && { behaviorName: input.behaviorName }),
20535
+ ...(input.securityProfileName != null && { securityProfileName: input.securityProfileName }),
20536
+ ...(input.violationIds != null && {
20792
20537
  violationIds: serializeAws_restJson1TargetViolationIdsForDetectMitigationActions(input.violationIds, context),
20793
20538
  }),
20794
20539
  };
@@ -20815,39 +20560,37 @@ const serializeAws_restJson1DimensionStringValues = (input, context) => {
20815
20560
  };
20816
20561
  const serializeAws_restJson1DynamoDBAction = (input, context) => {
20817
20562
  return {
20818
- ...(input.hashKeyField !== undefined && input.hashKeyField !== null && { hashKeyField: input.hashKeyField }),
20819
- ...(input.hashKeyType !== undefined && input.hashKeyType !== null && { hashKeyType: input.hashKeyType }),
20820
- ...(input.hashKeyValue !== undefined && input.hashKeyValue !== null && { hashKeyValue: input.hashKeyValue }),
20821
- ...(input.operation !== undefined && input.operation !== null && { operation: input.operation }),
20822
- ...(input.payloadField !== undefined && input.payloadField !== null && { payloadField: input.payloadField }),
20823
- ...(input.rangeKeyField !== undefined && input.rangeKeyField !== null && { rangeKeyField: input.rangeKeyField }),
20824
- ...(input.rangeKeyType !== undefined && input.rangeKeyType !== null && { rangeKeyType: input.rangeKeyType }),
20825
- ...(input.rangeKeyValue !== undefined && input.rangeKeyValue !== null && { rangeKeyValue: input.rangeKeyValue }),
20826
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20827
- ...(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 }),
20828
20573
  };
20829
20574
  };
20830
20575
  const serializeAws_restJson1DynamoDBv2Action = (input, context) => {
20831
20576
  return {
20832
- ...(input.putItem !== undefined &&
20833
- input.putItem !== null && { putItem: serializeAws_restJson1PutItemInput(input.putItem, context) }),
20834
- ...(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 }),
20835
20579
  };
20836
20580
  };
20837
20581
  const serializeAws_restJson1ElasticsearchAction = (input, context) => {
20838
20582
  return {
20839
- ...(input.endpoint !== undefined && input.endpoint !== null && { endpoint: input.endpoint }),
20840
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
20841
- ...(input.index !== undefined && input.index !== null && { index: input.index }),
20842
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20843
- ...(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 }),
20844
20588
  };
20845
20589
  };
20846
20590
  const serializeAws_restJson1EnableIoTLoggingParams = (input, context) => {
20847
20591
  return {
20848
- ...(input.logLevel !== undefined && input.logLevel !== null && { logLevel: input.logLevel }),
20849
- ...(input.roleArnForLogging !== undefined &&
20850
- input.roleArnForLogging !== null && { roleArnForLogging: input.roleArnForLogging }),
20592
+ ...(input.logLevel != null && { logLevel: input.logLevel }),
20593
+ ...(input.roleArnForLogging != null && { roleArnForLogging: input.roleArnForLogging }),
20851
20594
  };
20852
20595
  };
20853
20596
  const serializeAws_restJson1EventConfigurations = (input, context) => {
@@ -20863,20 +20606,17 @@ const serializeAws_restJson1EventConfigurations = (input, context) => {
20863
20606
  };
20864
20607
  const serializeAws_restJson1ExponentialRolloutRate = (input, context) => {
20865
20608
  return {
20866
- ...(input.baseRatePerMinute !== undefined &&
20867
- input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute }),
20868
- ...(input.incrementFactor !== undefined &&
20869
- input.incrementFactor !== null && { incrementFactor: (0, smithy_client_1.serializeFloat)(input.incrementFactor) }),
20870
- ...(input.rateIncreaseCriteria !== undefined &&
20871
- 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 && {
20872
20612
  rateIncreaseCriteria: serializeAws_restJson1RateIncreaseCriteria(input.rateIncreaseCriteria, context),
20873
20613
  }),
20874
20614
  };
20875
20615
  };
20876
20616
  const serializeAws_restJson1Field = (input, context) => {
20877
20617
  return {
20878
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
20879
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
20618
+ ...(input.name != null && { name: input.name }),
20619
+ ...(input.type != null && { type: input.type }),
20880
20620
  };
20881
20621
  };
20882
20622
  const serializeAws_restJson1Fields = (input, context) => {
@@ -20891,10 +20631,8 @@ const serializeAws_restJson1Fields = (input, context) => {
20891
20631
  };
20892
20632
  const serializeAws_restJson1FileLocation = (input, context) => {
20893
20633
  return {
20894
- ...(input.s3Location !== undefined &&
20895
- input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }),
20896
- ...(input.stream !== undefined &&
20897
- 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) }),
20898
20636
  };
20899
20637
  };
20900
20638
  const serializeAws_restJson1FindingIds = (input, context) => {
@@ -20909,11 +20647,10 @@ const serializeAws_restJson1FindingIds = (input, context) => {
20909
20647
  };
20910
20648
  const serializeAws_restJson1FirehoseAction = (input, context) => {
20911
20649
  return {
20912
- ...(input.batchMode !== undefined && input.batchMode !== null && { batchMode: input.batchMode }),
20913
- ...(input.deliveryStreamName !== undefined &&
20914
- input.deliveryStreamName !== null && { deliveryStreamName: input.deliveryStreamName }),
20915
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20916
- ...(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 }),
20917
20654
  };
20918
20655
  };
20919
20656
  const serializeAws_restJson1HeaderList = (input, context) => {
@@ -20928,32 +20665,27 @@ const serializeAws_restJson1HeaderList = (input, context) => {
20928
20665
  };
20929
20666
  const serializeAws_restJson1HttpAction = (input, context) => {
20930
20667
  return {
20931
- ...(input.auth !== undefined &&
20932
- input.auth !== null && { auth: serializeAws_restJson1HttpAuthorization(input.auth, context) }),
20933
- ...(input.confirmationUrl !== undefined &&
20934
- input.confirmationUrl !== null && { confirmationUrl: input.confirmationUrl }),
20935
- ...(input.headers !== undefined &&
20936
- input.headers !== null && { headers: serializeAws_restJson1HeaderList(input.headers, context) }),
20937
- ...(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 }),
20938
20672
  };
20939
20673
  };
20940
20674
  const serializeAws_restJson1HttpActionHeader = (input, context) => {
20941
20675
  return {
20942
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
20943
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
20676
+ ...(input.key != null && { key: input.key }),
20677
+ ...(input.value != null && { value: input.value }),
20944
20678
  };
20945
20679
  };
20946
20680
  const serializeAws_restJson1HttpAuthorization = (input, context) => {
20947
20681
  return {
20948
- ...(input.sigv4 !== undefined &&
20949
- input.sigv4 !== null && { sigv4: serializeAws_restJson1SigV4Authorization(input.sigv4, context) }),
20682
+ ...(input.sigv4 != null && { sigv4: serializeAws_restJson1SigV4Authorization(input.sigv4, context) }),
20950
20683
  };
20951
20684
  };
20952
20685
  const serializeAws_restJson1HttpContext = (input, context) => {
20953
20686
  return {
20954
- ...(input.headers !== undefined &&
20955
- input.headers !== null && { headers: serializeAws_restJson1HttpHeaders(input.headers, context) }),
20956
- ...(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 }),
20957
20689
  };
20958
20690
  };
20959
20691
  const serializeAws_restJson1HttpHeaders = (input, context) => {
@@ -20969,51 +20701,46 @@ const serializeAws_restJson1HttpHeaders = (input, context) => {
20969
20701
  };
20970
20702
  const serializeAws_restJson1HttpUrlDestinationConfiguration = (input, context) => {
20971
20703
  return {
20972
- ...(input.confirmationUrl !== undefined &&
20973
- input.confirmationUrl !== null && { confirmationUrl: input.confirmationUrl }),
20704
+ ...(input.confirmationUrl != null && { confirmationUrl: input.confirmationUrl }),
20974
20705
  };
20975
20706
  };
20976
20707
  const serializeAws_restJson1IotAnalyticsAction = (input, context) => {
20977
20708
  return {
20978
- ...(input.batchMode !== undefined && input.batchMode !== null && { batchMode: input.batchMode }),
20979
- ...(input.channelArn !== undefined && input.channelArn !== null && { channelArn: input.channelArn }),
20980
- ...(input.channelName !== undefined && input.channelName !== null && { channelName: input.channelName }),
20981
- ...(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 }),
20982
20713
  };
20983
20714
  };
20984
20715
  const serializeAws_restJson1IotEventsAction = (input, context) => {
20985
20716
  return {
20986
- ...(input.batchMode !== undefined && input.batchMode !== null && { batchMode: input.batchMode }),
20987
- ...(input.inputName !== undefined && input.inputName !== null && { inputName: input.inputName }),
20988
- ...(input.messageId !== undefined && input.messageId !== null && { messageId: input.messageId }),
20989
- ...(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 }),
20990
20721
  };
20991
20722
  };
20992
20723
  const serializeAws_restJson1IotSiteWiseAction = (input, context) => {
20993
20724
  return {
20994
- ...(input.putAssetPropertyValueEntries !== undefined &&
20995
- input.putAssetPropertyValueEntries !== null && {
20725
+ ...(input.putAssetPropertyValueEntries != null && {
20996
20726
  putAssetPropertyValueEntries: serializeAws_restJson1PutAssetPropertyValueEntryList(input.putAssetPropertyValueEntries, context),
20997
20727
  }),
20998
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20728
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
20999
20729
  };
21000
20730
  };
21001
20731
  const serializeAws_restJson1JobExecutionsRetryConfig = (input, context) => {
21002
20732
  return {
21003
- ...(input.criteriaList !== undefined &&
21004
- input.criteriaList !== null && {
20733
+ ...(input.criteriaList != null && {
21005
20734
  criteriaList: serializeAws_restJson1RetryCriteriaList(input.criteriaList, context),
21006
20735
  }),
21007
20736
  };
21008
20737
  };
21009
20738
  const serializeAws_restJson1JobExecutionsRolloutConfig = (input, context) => {
21010
20739
  return {
21011
- ...(input.exponentialRate !== undefined &&
21012
- input.exponentialRate !== null && {
20740
+ ...(input.exponentialRate != null && {
21013
20741
  exponentialRate: serializeAws_restJson1ExponentialRolloutRate(input.exponentialRate, context),
21014
20742
  }),
21015
- ...(input.maximumPerMinute !== undefined &&
21016
- input.maximumPerMinute !== null && { maximumPerMinute: input.maximumPerMinute }),
20743
+ ...(input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }),
21017
20744
  };
21018
20745
  };
21019
20746
  const serializeAws_restJson1JobTargets = (input, context) => {
@@ -21028,74 +20755,66 @@ const serializeAws_restJson1JobTargets = (input, context) => {
21028
20755
  };
21029
20756
  const serializeAws_restJson1KafkaAction = (input, context) => {
21030
20757
  return {
21031
- ...(input.clientProperties !== undefined &&
21032
- input.clientProperties !== null && {
20758
+ ...(input.clientProperties != null && {
21033
20759
  clientProperties: serializeAws_restJson1ClientProperties(input.clientProperties, context),
21034
20760
  }),
21035
- ...(input.destinationArn !== undefined &&
21036
- input.destinationArn !== null && { destinationArn: input.destinationArn }),
21037
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
21038
- ...(input.partition !== undefined && input.partition !== null && { partition: input.partition }),
21039
- ...(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 }),
21040
20765
  };
21041
20766
  };
21042
20767
  const serializeAws_restJson1KinesisAction = (input, context) => {
21043
20768
  return {
21044
- ...(input.partitionKey !== undefined && input.partitionKey !== null && { partitionKey: input.partitionKey }),
21045
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21046
- ...(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 }),
21047
20772
  };
21048
20773
  };
21049
20774
  const serializeAws_restJson1LambdaAction = (input, context) => {
21050
20775
  return {
21051
- ...(input.functionArn !== undefined && input.functionArn !== null && { functionArn: input.functionArn }),
20776
+ ...(input.functionArn != null && { functionArn: input.functionArn }),
21052
20777
  };
21053
20778
  };
21054
20779
  const serializeAws_restJson1LoggingOptionsPayload = (input, context) => {
21055
20780
  return {
21056
- ...(input.logLevel !== undefined && input.logLevel !== null && { logLevel: input.logLevel }),
21057
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20781
+ ...(input.logLevel != null && { logLevel: input.logLevel }),
20782
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21058
20783
  };
21059
20784
  };
21060
20785
  const serializeAws_restJson1LogTarget = (input, context) => {
21061
20786
  return {
21062
- ...(input.targetName !== undefined && input.targetName !== null && { targetName: input.targetName }),
21063
- ...(input.targetType !== undefined && input.targetType !== null && { targetType: input.targetType }),
20787
+ ...(input.targetName != null && { targetName: input.targetName }),
20788
+ ...(input.targetType != null && { targetType: input.targetType }),
21064
20789
  };
21065
20790
  };
21066
20791
  const serializeAws_restJson1MachineLearningDetectionConfig = (input, context) => {
21067
20792
  return {
21068
- ...(input.confidenceLevel !== undefined &&
21069
- input.confidenceLevel !== null && { confidenceLevel: input.confidenceLevel }),
20793
+ ...(input.confidenceLevel != null && { confidenceLevel: input.confidenceLevel }),
21070
20794
  };
21071
20795
  };
21072
20796
  const serializeAws_restJson1MetricDimension = (input, context) => {
21073
20797
  return {
21074
- ...(input.dimensionName !== undefined && input.dimensionName !== null && { dimensionName: input.dimensionName }),
21075
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
20798
+ ...(input.dimensionName != null && { dimensionName: input.dimensionName }),
20799
+ ...(input.operator != null && { operator: input.operator }),
21076
20800
  };
21077
20801
  };
21078
20802
  const serializeAws_restJson1MetricToRetain = (input, context) => {
21079
20803
  return {
21080
- ...(input.metric !== undefined && input.metric !== null && { metric: input.metric }),
21081
- ...(input.metricDimension !== undefined &&
21082
- input.metricDimension !== null && {
20804
+ ...(input.metric != null && { metric: input.metric }),
20805
+ ...(input.metricDimension != null && {
21083
20806
  metricDimension: serializeAws_restJson1MetricDimension(input.metricDimension, context),
21084
20807
  }),
21085
20808
  };
21086
20809
  };
21087
20810
  const serializeAws_restJson1MetricValue = (input, context) => {
21088
20811
  return {
21089
- ...(input.cidrs !== undefined &&
21090
- input.cidrs !== null && { cidrs: serializeAws_restJson1Cidrs(input.cidrs, context) }),
21091
- ...(input.count !== undefined && input.count !== null && { count: input.count }),
21092
- ...(input.number !== undefined && input.number !== null && { number: (0, smithy_client_1.serializeFloat)(input.number) }),
21093
- ...(input.numbers !== undefined &&
21094
- input.numbers !== null && { numbers: serializeAws_restJson1NumberList(input.numbers, context) }),
21095
- ...(input.ports !== undefined &&
21096
- input.ports !== null && { ports: serializeAws_restJson1Ports(input.ports, context) }),
21097
- ...(input.strings !== undefined &&
21098
- 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) }),
21099
20818
  };
21100
20819
  };
21101
20820
  const serializeAws_restJson1MitigationActionNameList = (input, context) => {
@@ -21110,37 +20829,31 @@ const serializeAws_restJson1MitigationActionNameList = (input, context) => {
21110
20829
  };
21111
20830
  const serializeAws_restJson1MitigationActionParams = (input, context) => {
21112
20831
  return {
21113
- ...(input.addThingsToThingGroupParams !== undefined &&
21114
- input.addThingsToThingGroupParams !== null && {
20832
+ ...(input.addThingsToThingGroupParams != null && {
21115
20833
  addThingsToThingGroupParams: serializeAws_restJson1AddThingsToThingGroupParams(input.addThingsToThingGroupParams, context),
21116
20834
  }),
21117
- ...(input.enableIoTLoggingParams !== undefined &&
21118
- input.enableIoTLoggingParams !== null && {
20835
+ ...(input.enableIoTLoggingParams != null && {
21119
20836
  enableIoTLoggingParams: serializeAws_restJson1EnableIoTLoggingParams(input.enableIoTLoggingParams, context),
21120
20837
  }),
21121
- ...(input.publishFindingToSnsParams !== undefined &&
21122
- input.publishFindingToSnsParams !== null && {
20838
+ ...(input.publishFindingToSnsParams != null && {
21123
20839
  publishFindingToSnsParams: serializeAws_restJson1PublishFindingToSnsParams(input.publishFindingToSnsParams, context),
21124
20840
  }),
21125
- ...(input.replaceDefaultPolicyVersionParams !== undefined &&
21126
- input.replaceDefaultPolicyVersionParams !== null && {
20841
+ ...(input.replaceDefaultPolicyVersionParams != null && {
21127
20842
  replaceDefaultPolicyVersionParams: serializeAws_restJson1ReplaceDefaultPolicyVersionParams(input.replaceDefaultPolicyVersionParams, context),
21128
20843
  }),
21129
- ...(input.updateCACertificateParams !== undefined &&
21130
- input.updateCACertificateParams !== null && {
20844
+ ...(input.updateCACertificateParams != null && {
21131
20845
  updateCACertificateParams: serializeAws_restJson1UpdateCACertificateParams(input.updateCACertificateParams, context),
21132
20846
  }),
21133
- ...(input.updateDeviceCertificateParams !== undefined &&
21134
- input.updateDeviceCertificateParams !== null && {
20847
+ ...(input.updateDeviceCertificateParams != null && {
21135
20848
  updateDeviceCertificateParams: serializeAws_restJson1UpdateDeviceCertificateParams(input.updateDeviceCertificateParams, context),
21136
20849
  }),
21137
20850
  };
21138
20851
  };
21139
20852
  const serializeAws_restJson1MqttContext = (input, context) => {
21140
20853
  return {
21141
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
21142
- ...(input.password !== undefined && input.password !== null && { password: context.base64Encoder(input.password) }),
21143
- ...(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 }),
21144
20857
  };
21145
20858
  };
21146
20859
  const serializeAws_restJson1NumberList = (input, context) => {
@@ -21155,24 +20868,23 @@ const serializeAws_restJson1NumberList = (input, context) => {
21155
20868
  };
21156
20869
  const serializeAws_restJson1OpenSearchAction = (input, context) => {
21157
20870
  return {
21158
- ...(input.endpoint !== undefined && input.endpoint !== null && { endpoint: input.endpoint }),
21159
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
21160
- ...(input.index !== undefined && input.index !== null && { index: input.index }),
21161
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21162
- ...(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 }),
21163
20876
  };
21164
20877
  };
21165
20878
  const serializeAws_restJson1OTAUpdateFile = (input, context) => {
21166
20879
  return {
21167
- ...(input.attributes !== undefined &&
21168
- input.attributes !== null && { attributes: serializeAws_restJson1AttributesMap(input.attributes, context) }),
21169
- ...(input.codeSigning !== undefined &&
21170
- input.codeSigning !== null && { codeSigning: serializeAws_restJson1CodeSigning(input.codeSigning, context) }),
21171
- ...(input.fileLocation !== undefined &&
21172
- input.fileLocation !== null && { fileLocation: serializeAws_restJson1FileLocation(input.fileLocation, context) }),
21173
- ...(input.fileName !== undefined && input.fileName !== null && { fileName: input.fileName }),
21174
- ...(input.fileType !== undefined && input.fileType !== null && { fileType: input.fileType }),
21175
- ...(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 }),
21176
20888
  };
21177
20889
  };
21178
20890
  const serializeAws_restJson1OTAUpdateFiles = (input, context) => {
@@ -21229,9 +20941,8 @@ const serializeAws_restJson1PolicyNames = (input, context) => {
21229
20941
  };
21230
20942
  const serializeAws_restJson1PolicyVersionIdentifier = (input, context) => {
21231
20943
  return {
21232
- ...(input.policyName !== undefined && input.policyName !== null && { policyName: input.policyName }),
21233
- ...(input.policyVersionId !== undefined &&
21234
- input.policyVersionId !== null && { policyVersionId: input.policyVersionId }),
20944
+ ...(input.policyName != null && { policyName: input.policyName }),
20945
+ ...(input.policyVersionId != null && { policyVersionId: input.policyVersionId }),
21235
20946
  };
21236
20947
  };
21237
20948
  const serializeAws_restJson1Ports = (input, context) => {
@@ -21246,8 +20957,8 @@ const serializeAws_restJson1Ports = (input, context) => {
21246
20957
  };
21247
20958
  const serializeAws_restJson1PresignedUrlConfig = (input, context) => {
21248
20959
  return {
21249
- ...(input.expiresInSec !== undefined && input.expiresInSec !== null && { expiresInSec: input.expiresInSec }),
21250
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
20960
+ ...(input.expiresInSec != null && { expiresInSec: input.expiresInSec }),
20961
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21251
20962
  };
21252
20963
  };
21253
20964
  const serializeAws_restJson1Protocols = (input, context) => {
@@ -21262,9 +20973,8 @@ const serializeAws_restJson1Protocols = (input, context) => {
21262
20973
  };
21263
20974
  const serializeAws_restJson1ProvisioningHook = (input, context) => {
21264
20975
  return {
21265
- ...(input.payloadVersion !== undefined &&
21266
- input.payloadVersion !== null && { payloadVersion: input.payloadVersion }),
21267
- ...(input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }),
20976
+ ...(input.payloadVersion != null && { payloadVersion: input.payloadVersion }),
20977
+ ...(input.targetArn != null && { targetArn: input.targetArn }),
21268
20978
  };
21269
20979
  };
21270
20980
  const serializeAws_restJson1PublicKeyMap = (input, context) => {
@@ -21280,17 +20990,16 @@ const serializeAws_restJson1PublicKeyMap = (input, context) => {
21280
20990
  };
21281
20991
  const serializeAws_restJson1PublishFindingToSnsParams = (input, context) => {
21282
20992
  return {
21283
- ...(input.topicArn !== undefined && input.topicArn !== null && { topicArn: input.topicArn }),
20993
+ ...(input.topicArn != null && { topicArn: input.topicArn }),
21284
20994
  };
21285
20995
  };
21286
20996
  const serializeAws_restJson1PutAssetPropertyValueEntry = (input, context) => {
21287
20997
  return {
21288
- ...(input.assetId !== undefined && input.assetId !== null && { assetId: input.assetId }),
21289
- ...(input.entryId !== undefined && input.entryId !== null && { entryId: input.entryId }),
21290
- ...(input.propertyAlias !== undefined && input.propertyAlias !== null && { propertyAlias: input.propertyAlias }),
21291
- ...(input.propertyId !== undefined && input.propertyId !== null && { propertyId: input.propertyId }),
21292
- ...(input.propertyValues !== undefined &&
21293
- 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 && {
21294
21003
  propertyValues: serializeAws_restJson1AssetPropertyValueList(input.propertyValues, context),
21295
21004
  }),
21296
21005
  };
@@ -21307,15 +21016,13 @@ const serializeAws_restJson1PutAssetPropertyValueEntryList = (input, context) =>
21307
21016
  };
21308
21017
  const serializeAws_restJson1PutItemInput = (input, context) => {
21309
21018
  return {
21310
- ...(input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }),
21019
+ ...(input.tableName != null && { tableName: input.tableName }),
21311
21020
  };
21312
21021
  };
21313
21022
  const serializeAws_restJson1RateIncreaseCriteria = (input, context) => {
21314
21023
  return {
21315
- ...(input.numberOfNotifiedThings !== undefined &&
21316
- input.numberOfNotifiedThings !== null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
21317
- ...(input.numberOfSucceededThings !== undefined &&
21318
- input.numberOfSucceededThings !== null && { numberOfSucceededThings: input.numberOfSucceededThings }),
21024
+ ...(input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings }),
21025
+ ...(input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }),
21319
21026
  };
21320
21027
  };
21321
21028
  const serializeAws_restJson1ReasonForNonComplianceCodes = (input, context) => {
@@ -21330,38 +21037,34 @@ const serializeAws_restJson1ReasonForNonComplianceCodes = (input, context) => {
21330
21037
  };
21331
21038
  const serializeAws_restJson1RegistrationConfig = (input, context) => {
21332
21039
  return {
21333
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21334
- ...(input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody }),
21040
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21041
+ ...(input.templateBody != null && { templateBody: input.templateBody }),
21335
21042
  };
21336
21043
  };
21337
21044
  const serializeAws_restJson1ReplaceDefaultPolicyVersionParams = (input, context) => {
21338
21045
  return {
21339
- ...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
21046
+ ...(input.templateName != null && { templateName: input.templateName }),
21340
21047
  };
21341
21048
  };
21342
21049
  const serializeAws_restJson1RepublishAction = (input, context) => {
21343
21050
  return {
21344
- ...(input.qos !== undefined && input.qos !== null && { qos: input.qos }),
21345
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21346
- ...(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 }),
21347
21054
  };
21348
21055
  };
21349
21056
  const serializeAws_restJson1ResourceIdentifier = (input, context) => {
21350
21057
  return {
21351
- ...(input.account !== undefined && input.account !== null && { account: input.account }),
21352
- ...(input.caCertificateId !== undefined &&
21353
- input.caCertificateId !== null && { caCertificateId: input.caCertificateId }),
21354
- ...(input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId }),
21355
- ...(input.cognitoIdentityPoolId !== undefined &&
21356
- input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId }),
21357
- ...(input.deviceCertificateId !== undefined &&
21358
- input.deviceCertificateId !== null && { deviceCertificateId: input.deviceCertificateId }),
21359
- ...(input.iamRoleArn !== undefined && input.iamRoleArn !== null && { iamRoleArn: input.iamRoleArn }),
21360
- ...(input.policyVersionIdentifier !== undefined &&
21361
- 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 && {
21362
21065
  policyVersionIdentifier: serializeAws_restJson1PolicyVersionIdentifier(input.policyVersionIdentifier, context),
21363
21066
  }),
21364
- ...(input.roleAliasArn !== undefined && input.roleAliasArn !== null && { roleAliasArn: input.roleAliasArn }),
21067
+ ...(input.roleAliasArn != null && { roleAliasArn: input.roleAliasArn }),
21365
21068
  };
21366
21069
  };
21367
21070
  const serializeAws_restJson1Resources = (input, context) => {
@@ -21376,9 +21079,8 @@ const serializeAws_restJson1Resources = (input, context) => {
21376
21079
  };
21377
21080
  const serializeAws_restJson1RetryCriteria = (input, context) => {
21378
21081
  return {
21379
- ...(input.failureType !== undefined && input.failureType !== null && { failureType: input.failureType }),
21380
- ...(input.numberOfRetries !== undefined &&
21381
- input.numberOfRetries !== null && { numberOfRetries: input.numberOfRetries }),
21082
+ ...(input.failureType != null && { failureType: input.failureType }),
21083
+ ...(input.numberOfRetries != null && { numberOfRetries: input.numberOfRetries }),
21382
21084
  };
21383
21085
  };
21384
21086
  const serializeAws_restJson1RetryCriteriaList = (input, context) => {
@@ -21393,29 +21095,29 @@ const serializeAws_restJson1RetryCriteriaList = (input, context) => {
21393
21095
  };
21394
21096
  const serializeAws_restJson1S3Action = (input, context) => {
21395
21097
  return {
21396
- ...(input.bucketName !== undefined && input.bucketName !== null && { bucketName: input.bucketName }),
21397
- ...(input.cannedAcl !== undefined && input.cannedAcl !== null && { cannedAcl: input.cannedAcl }),
21398
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
21399
- ...(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 }),
21400
21102
  };
21401
21103
  };
21402
21104
  const serializeAws_restJson1S3Destination = (input, context) => {
21403
21105
  return {
21404
- ...(input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket }),
21405
- ...(input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }),
21106
+ ...(input.bucket != null && { bucket: input.bucket }),
21107
+ ...(input.prefix != null && { prefix: input.prefix }),
21406
21108
  };
21407
21109
  };
21408
21110
  const serializeAws_restJson1S3Location = (input, context) => {
21409
21111
  return {
21410
- ...(input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket }),
21411
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
21412
- ...(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 }),
21413
21115
  };
21414
21116
  };
21415
21117
  const serializeAws_restJson1SalesforceAction = (input, context) => {
21416
21118
  return {
21417
- ...(input.token !== undefined && input.token !== null && { token: input.token }),
21418
- ...(input.url !== undefined && input.url !== null && { url: input.url }),
21119
+ ...(input.token != null && { token: input.token }),
21120
+ ...(input.url != null && { url: input.url }),
21419
21121
  };
21420
21122
  };
21421
21123
  const serializeAws_restJson1SearchableAttributes = (input, context) => {
@@ -21450,71 +21152,63 @@ const serializeAws_restJson1ServerCertificateArns = (input, context) => {
21450
21152
  };
21451
21153
  const serializeAws_restJson1SigningProfileParameter = (input, context) => {
21452
21154
  return {
21453
- ...(input.certificateArn !== undefined &&
21454
- input.certificateArn !== null && { certificateArn: input.certificateArn }),
21455
- ...(input.certificatePathOnDevice !== undefined &&
21456
- input.certificatePathOnDevice !== null && { certificatePathOnDevice: input.certificatePathOnDevice }),
21457
- ...(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 }),
21458
21158
  };
21459
21159
  };
21460
21160
  const serializeAws_restJson1SigV4Authorization = (input, context) => {
21461
21161
  return {
21462
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21463
- ...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
21464
- ...(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 }),
21465
21165
  };
21466
21166
  };
21467
21167
  const serializeAws_restJson1SnsAction = (input, context) => {
21468
21168
  return {
21469
- ...(input.messageFormat !== undefined && input.messageFormat !== null && { messageFormat: input.messageFormat }),
21470
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21471
- ...(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 }),
21472
21172
  };
21473
21173
  };
21474
21174
  const serializeAws_restJson1SqsAction = (input, context) => {
21475
21175
  return {
21476
- ...(input.queueUrl !== undefined && input.queueUrl !== null && { queueUrl: input.queueUrl }),
21477
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21478
- ...(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 }),
21479
21179
  };
21480
21180
  };
21481
21181
  const serializeAws_restJson1StartSigningJobParameter = (input, context) => {
21482
21182
  return {
21483
- ...(input.destination !== undefined &&
21484
- input.destination !== null && { destination: serializeAws_restJson1Destination(input.destination, context) }),
21485
- ...(input.signingProfileName !== undefined &&
21486
- input.signingProfileName !== null && { signingProfileName: input.signingProfileName }),
21487
- ...(input.signingProfileParameter !== undefined &&
21488
- input.signingProfileParameter !== null && {
21183
+ ...(input.destination != null && { destination: serializeAws_restJson1Destination(input.destination, context) }),
21184
+ ...(input.signingProfileName != null && { signingProfileName: input.signingProfileName }),
21185
+ ...(input.signingProfileParameter != null && {
21489
21186
  signingProfileParameter: serializeAws_restJson1SigningProfileParameter(input.signingProfileParameter, context),
21490
21187
  }),
21491
21188
  };
21492
21189
  };
21493
21190
  const serializeAws_restJson1StatisticalThreshold = (input, context) => {
21494
21191
  return {
21495
- ...(input.statistic !== undefined && input.statistic !== null && { statistic: input.statistic }),
21192
+ ...(input.statistic != null && { statistic: input.statistic }),
21496
21193
  };
21497
21194
  };
21498
21195
  const serializeAws_restJson1StepFunctionsAction = (input, context) => {
21499
21196
  return {
21500
- ...(input.executionNamePrefix !== undefined &&
21501
- input.executionNamePrefix !== null && { executionNamePrefix: input.executionNamePrefix }),
21502
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21503
- ...(input.stateMachineName !== undefined &&
21504
- 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 }),
21505
21200
  };
21506
21201
  };
21507
21202
  const serializeAws_restJson1_Stream = (input, context) => {
21508
21203
  return {
21509
- ...(input.fileId !== undefined && input.fileId !== null && { fileId: input.fileId }),
21510
- ...(input.streamId !== undefined && input.streamId !== null && { streamId: input.streamId }),
21204
+ ...(input.fileId != null && { fileId: input.fileId }),
21205
+ ...(input.streamId != null && { streamId: input.streamId }),
21511
21206
  };
21512
21207
  };
21513
21208
  const serializeAws_restJson1StreamFile = (input, context) => {
21514
21209
  return {
21515
- ...(input.fileId !== undefined && input.fileId !== null && { fileId: input.fileId }),
21516
- ...(input.s3Location !== undefined &&
21517
- 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) }),
21518
21212
  };
21519
21213
  };
21520
21214
  const serializeAws_restJson1StreamFiles = (input, context) => {
@@ -21549,8 +21243,8 @@ const serializeAws_restJson1SubnetIdList = (input, context) => {
21549
21243
  };
21550
21244
  const serializeAws_restJson1Tag = (input, context) => {
21551
21245
  return {
21552
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
21553
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
21246
+ ...(input.Key != null && { Key: input.Key }),
21247
+ ...(input.Value != null && { Value: input.Value }),
21554
21248
  };
21555
21249
  };
21556
21250
  const serializeAws_restJson1TagKeyList = (input, context) => {
@@ -21605,17 +21299,14 @@ const serializeAws_restJson1TargetViolationIdsForDetectMitigationActions = (inpu
21605
21299
  };
21606
21300
  const serializeAws_restJson1TermsAggregation = (input, context) => {
21607
21301
  return {
21608
- ...(input.maxBuckets !== undefined && input.maxBuckets !== null && { maxBuckets: input.maxBuckets }),
21302
+ ...(input.maxBuckets != null && { maxBuckets: input.maxBuckets }),
21609
21303
  };
21610
21304
  };
21611
21305
  const serializeAws_restJson1ThingGroupIndexingConfiguration = (input, context) => {
21612
21306
  return {
21613
- ...(input.customFields !== undefined &&
21614
- input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) }),
21615
- ...(input.managedFields !== undefined &&
21616
- input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) }),
21617
- ...(input.thingGroupIndexingMode !== undefined &&
21618
- 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 }),
21619
21310
  };
21620
21311
  };
21621
21312
  const serializeAws_restJson1ThingGroupList = (input, context) => {
@@ -21640,65 +21331,52 @@ const serializeAws_restJson1ThingGroupNames = (input, context) => {
21640
21331
  };
21641
21332
  const serializeAws_restJson1ThingGroupProperties = (input, context) => {
21642
21333
  return {
21643
- ...(input.attributePayload !== undefined &&
21644
- input.attributePayload !== null && {
21334
+ ...(input.attributePayload != null && {
21645
21335
  attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
21646
21336
  }),
21647
- ...(input.thingGroupDescription !== undefined &&
21648
- input.thingGroupDescription !== null && { thingGroupDescription: input.thingGroupDescription }),
21337
+ ...(input.thingGroupDescription != null && { thingGroupDescription: input.thingGroupDescription }),
21649
21338
  };
21650
21339
  };
21651
21340
  const serializeAws_restJson1ThingIndexingConfiguration = (input, context) => {
21652
21341
  return {
21653
- ...(input.customFields !== undefined &&
21654
- input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) }),
21655
- ...(input.deviceDefenderIndexingMode !== undefined &&
21656
- input.deviceDefenderIndexingMode !== null && { deviceDefenderIndexingMode: input.deviceDefenderIndexingMode }),
21657
- ...(input.managedFields !== undefined &&
21658
- input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) }),
21659
- ...(input.namedShadowIndexingMode !== undefined &&
21660
- input.namedShadowIndexingMode !== null && { namedShadowIndexingMode: input.namedShadowIndexingMode }),
21661
- ...(input.thingConnectivityIndexingMode !== undefined &&
21662
- 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 && {
21663
21347
  thingConnectivityIndexingMode: input.thingConnectivityIndexingMode,
21664
21348
  }),
21665
- ...(input.thingIndexingMode !== undefined &&
21666
- input.thingIndexingMode !== null && { thingIndexingMode: input.thingIndexingMode }),
21349
+ ...(input.thingIndexingMode != null && { thingIndexingMode: input.thingIndexingMode }),
21667
21350
  };
21668
21351
  };
21669
21352
  const serializeAws_restJson1ThingTypeProperties = (input, context) => {
21670
21353
  return {
21671
- ...(input.searchableAttributes !== undefined &&
21672
- input.searchableAttributes !== null && {
21354
+ ...(input.searchableAttributes != null && {
21673
21355
  searchableAttributes: serializeAws_restJson1SearchableAttributes(input.searchableAttributes, context),
21674
21356
  }),
21675
- ...(input.thingTypeDescription !== undefined &&
21676
- input.thingTypeDescription !== null && { thingTypeDescription: input.thingTypeDescription }),
21357
+ ...(input.thingTypeDescription != null && { thingTypeDescription: input.thingTypeDescription }),
21677
21358
  };
21678
21359
  };
21679
21360
  const serializeAws_restJson1TimeoutConfig = (input, context) => {
21680
21361
  return {
21681
- ...(input.inProgressTimeoutInMinutes !== undefined &&
21682
- input.inProgressTimeoutInMinutes !== null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
21362
+ ...(input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }),
21683
21363
  };
21684
21364
  };
21685
21365
  const serializeAws_restJson1TimestreamAction = (input, context) => {
21686
21366
  return {
21687
- ...(input.databaseName !== undefined && input.databaseName !== null && { databaseName: input.databaseName }),
21688
- ...(input.dimensions !== undefined &&
21689
- input.dimensions !== null && {
21367
+ ...(input.databaseName != null && { databaseName: input.databaseName }),
21368
+ ...(input.dimensions != null && {
21690
21369
  dimensions: serializeAws_restJson1TimestreamDimensionList(input.dimensions, context),
21691
21370
  }),
21692
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21693
- ...(input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }),
21694
- ...(input.timestamp !== undefined &&
21695
- 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) }),
21696
21374
  };
21697
21375
  };
21698
21376
  const serializeAws_restJson1TimestreamDimension = (input, context) => {
21699
21377
  return {
21700
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
21701
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
21378
+ ...(input.name != null && { name: input.name }),
21379
+ ...(input.value != null && { value: input.value }),
21702
21380
  };
21703
21381
  };
21704
21382
  const serializeAws_restJson1TimestreamDimensionList = (input, context) => {
@@ -21713,75 +21391,64 @@ const serializeAws_restJson1TimestreamDimensionList = (input, context) => {
21713
21391
  };
21714
21392
  const serializeAws_restJson1TimestreamTimestamp = (input, context) => {
21715
21393
  return {
21716
- ...(input.unit !== undefined && input.unit !== null && { unit: input.unit }),
21717
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
21394
+ ...(input.unit != null && { unit: input.unit }),
21395
+ ...(input.value != null && { value: input.value }),
21718
21396
  };
21719
21397
  };
21720
21398
  const serializeAws_restJson1TlsContext = (input, context) => {
21721
21399
  return {
21722
- ...(input.serverName !== undefined && input.serverName !== null && { serverName: input.serverName }),
21400
+ ...(input.serverName != null && { serverName: input.serverName }),
21723
21401
  };
21724
21402
  };
21725
21403
  const serializeAws_restJson1TopicRuleDestinationConfiguration = (input, context) => {
21726
21404
  return {
21727
- ...(input.httpUrlConfiguration !== undefined &&
21728
- input.httpUrlConfiguration !== null && {
21405
+ ...(input.httpUrlConfiguration != null && {
21729
21406
  httpUrlConfiguration: serializeAws_restJson1HttpUrlDestinationConfiguration(input.httpUrlConfiguration, context),
21730
21407
  }),
21731
- ...(input.vpcConfiguration !== undefined &&
21732
- input.vpcConfiguration !== null && {
21408
+ ...(input.vpcConfiguration != null && {
21733
21409
  vpcConfiguration: serializeAws_restJson1VpcDestinationConfiguration(input.vpcConfiguration, context),
21734
21410
  }),
21735
21411
  };
21736
21412
  };
21737
21413
  const serializeAws_restJson1TopicRulePayload = (input, context) => {
21738
21414
  return {
21739
- ...(input.actions !== undefined &&
21740
- input.actions !== null && { actions: serializeAws_restJson1ActionList(input.actions, context) }),
21741
- ...(input.awsIotSqlVersion !== undefined &&
21742
- input.awsIotSqlVersion !== null && { awsIotSqlVersion: input.awsIotSqlVersion }),
21743
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
21744
- ...(input.errorAction !== undefined &&
21745
- input.errorAction !== null && { errorAction: serializeAws_restJson1Action(input.errorAction, context) }),
21746
- ...(input.ruleDisabled !== undefined && input.ruleDisabled !== null && { ruleDisabled: input.ruleDisabled }),
21747
- ...(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 }),
21748
21421
  };
21749
21422
  };
21750
21423
  const serializeAws_restJson1UpdateCACertificateParams = (input, context) => {
21751
21424
  return {
21752
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
21425
+ ...(input.action != null && { action: input.action }),
21753
21426
  };
21754
21427
  };
21755
21428
  const serializeAws_restJson1UpdateDeviceCertificateParams = (input, context) => {
21756
21429
  return {
21757
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
21430
+ ...(input.action != null && { action: input.action }),
21758
21431
  };
21759
21432
  };
21760
21433
  const serializeAws_restJson1ViolationEventOccurrenceRange = (input, context) => {
21761
21434
  return {
21762
- ...(input.endTime !== undefined &&
21763
- input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
21764
- ...(input.startTime !== undefined &&
21765
- 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) }),
21766
21437
  };
21767
21438
  };
21768
21439
  const serializeAws_restJson1VpcDestinationConfiguration = (input, context) => {
21769
21440
  return {
21770
- ...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
21771
- ...(input.securityGroups !== undefined &&
21772
- input.securityGroups !== null && {
21441
+ ...(input.roleArn != null && { roleArn: input.roleArn }),
21442
+ ...(input.securityGroups != null && {
21773
21443
  securityGroups: serializeAws_restJson1SecurityGroupList(input.securityGroups, context),
21774
21444
  }),
21775
- ...(input.subnetIds !== undefined &&
21776
- input.subnetIds !== null && { subnetIds: serializeAws_restJson1SubnetIdList(input.subnetIds, context) }),
21777
- ...(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 }),
21778
21447
  };
21779
21448
  };
21780
21449
  const deserializeAws_restJson1AbortConfig = (output, context) => {
21781
21450
  return {
21782
- criteriaList: output.criteriaList !== undefined && output.criteriaList !== null
21783
- ? deserializeAws_restJson1AbortCriteriaList(output.criteriaList, context)
21784
- : undefined,
21451
+ criteriaList: output.criteriaList != null ? deserializeAws_restJson1AbortCriteriaList(output.criteriaList, context) : undefined,
21785
21452
  };
21786
21453
  };
21787
21454
  const deserializeAws_restJson1AbortCriteria = (output, context) => {
@@ -21805,70 +21472,40 @@ const deserializeAws_restJson1AbortCriteriaList = (output, context) => {
21805
21472
  };
21806
21473
  const deserializeAws_restJson1Action = (output, context) => {
21807
21474
  return {
21808
- cloudwatchAlarm: output.cloudwatchAlarm !== undefined && output.cloudwatchAlarm !== null
21475
+ cloudwatchAlarm: output.cloudwatchAlarm != null
21809
21476
  ? deserializeAws_restJson1CloudwatchAlarmAction(output.cloudwatchAlarm, context)
21810
21477
  : undefined,
21811
- cloudwatchLogs: output.cloudwatchLogs !== undefined && output.cloudwatchLogs !== null
21478
+ cloudwatchLogs: output.cloudwatchLogs != null
21812
21479
  ? deserializeAws_restJson1CloudwatchLogsAction(output.cloudwatchLogs, context)
21813
21480
  : undefined,
21814
- cloudwatchMetric: output.cloudwatchMetric !== undefined && output.cloudwatchMetric !== null
21481
+ cloudwatchMetric: output.cloudwatchMetric != null
21815
21482
  ? deserializeAws_restJson1CloudwatchMetricAction(output.cloudwatchMetric, context)
21816
21483
  : undefined,
21817
- dynamoDB: output.dynamoDB !== undefined && output.dynamoDB !== null
21818
- ? deserializeAws_restJson1DynamoDBAction(output.dynamoDB, context)
21819
- : undefined,
21820
- dynamoDBv2: output.dynamoDBv2 !== undefined && output.dynamoDBv2 !== null
21821
- ? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context)
21822
- : undefined,
21823
- 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
21824
21487
  ? deserializeAws_restJson1ElasticsearchAction(output.elasticsearch, context)
21825
21488
  : undefined,
21826
- firehose: output.firehose !== undefined && output.firehose !== null
21827
- ? deserializeAws_restJson1FirehoseAction(output.firehose, context)
21828
- : undefined,
21829
- http: output.http !== undefined && output.http !== null
21830
- ? deserializeAws_restJson1HttpAction(output.http, context)
21831
- : undefined,
21832
- 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
21833
21492
  ? deserializeAws_restJson1IotAnalyticsAction(output.iotAnalytics, context)
21834
21493
  : undefined,
21835
- iotEvents: output.iotEvents !== undefined && output.iotEvents !== null
21836
- ? deserializeAws_restJson1IotEventsAction(output.iotEvents, context)
21837
- : undefined,
21838
- iotSiteWise: output.iotSiteWise !== undefined && output.iotSiteWise !== null
21839
- ? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context)
21840
- : undefined,
21841
- kafka: output.kafka !== undefined && output.kafka !== null
21842
- ? deserializeAws_restJson1KafkaAction(output.kafka, context)
21843
- : undefined,
21844
- kinesis: output.kinesis !== undefined && output.kinesis !== null
21845
- ? deserializeAws_restJson1KinesisAction(output.kinesis, context)
21846
- : undefined,
21847
- lambda: output.lambda !== undefined && output.lambda !== null
21848
- ? deserializeAws_restJson1LambdaAction(output.lambda, context)
21849
- : undefined,
21850
- openSearch: output.openSearch !== undefined && output.openSearch !== null
21851
- ? deserializeAws_restJson1OpenSearchAction(output.openSearch, context)
21852
- : undefined,
21853
- republish: output.republish !== undefined && output.republish !== null
21854
- ? deserializeAws_restJson1RepublishAction(output.republish, context)
21855
- : undefined,
21856
- s3: output.s3 !== undefined && output.s3 !== null ? deserializeAws_restJson1S3Action(output.s3, context) : undefined,
21857
- salesforce: output.salesforce !== undefined && output.salesforce !== null
21858
- ? deserializeAws_restJson1SalesforceAction(output.salesforce, context)
21859
- : undefined,
21860
- sns: output.sns !== undefined && output.sns !== null
21861
- ? deserializeAws_restJson1SnsAction(output.sns, context)
21862
- : undefined,
21863
- sqs: output.sqs !== undefined && output.sqs !== null
21864
- ? deserializeAws_restJson1SqsAction(output.sqs, context)
21865
- : undefined,
21866
- 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
21867
21506
  ? deserializeAws_restJson1StepFunctionsAction(output.stepFunctions, context)
21868
21507
  : undefined,
21869
- timestream: output.timestream !== undefined && output.timestream !== null
21870
- ? deserializeAws_restJson1TimestreamAction(output.timestream, context)
21871
- : undefined,
21508
+ timestream: output.timestream != null ? deserializeAws_restJson1TimestreamAction(output.timestream, context) : undefined,
21872
21509
  };
21873
21510
  };
21874
21511
  const deserializeAws_restJson1ActionList = (output, context) => {
@@ -21884,24 +21521,22 @@ const deserializeAws_restJson1ActionList = (output, context) => {
21884
21521
  };
21885
21522
  const deserializeAws_restJson1ActiveViolation = (output, context) => {
21886
21523
  return {
21887
- behavior: output.behavior !== undefined && output.behavior !== null
21888
- ? deserializeAws_restJson1Behavior(output.behavior, context)
21889
- : undefined,
21890
- lastViolationTime: output.lastViolationTime !== undefined && output.lastViolationTime !== null
21524
+ behavior: output.behavior != null ? deserializeAws_restJson1Behavior(output.behavior, context) : undefined,
21525
+ lastViolationTime: output.lastViolationTime != null
21891
21526
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastViolationTime)))
21892
21527
  : undefined,
21893
- lastViolationValue: output.lastViolationValue !== undefined && output.lastViolationValue !== null
21528
+ lastViolationValue: output.lastViolationValue != null
21894
21529
  ? deserializeAws_restJson1MetricValue(output.lastViolationValue, context)
21895
21530
  : undefined,
21896
21531
  securityProfileName: (0, smithy_client_1.expectString)(output.securityProfileName),
21897
21532
  thingName: (0, smithy_client_1.expectString)(output.thingName),
21898
21533
  verificationState: (0, smithy_client_1.expectString)(output.verificationState),
21899
21534
  verificationStateDescription: (0, smithy_client_1.expectString)(output.verificationStateDescription),
21900
- violationEventAdditionalInfo: output.violationEventAdditionalInfo !== undefined && output.violationEventAdditionalInfo !== null
21535
+ violationEventAdditionalInfo: output.violationEventAdditionalInfo != null
21901
21536
  ? deserializeAws_restJson1ViolationEventAdditionalInfo(output.violationEventAdditionalInfo, context)
21902
21537
  : undefined,
21903
21538
  violationId: (0, smithy_client_1.expectString)(output.violationId),
21904
- violationStartTime: output.violationStartTime !== undefined && output.violationStartTime !== null
21539
+ violationStartTime: output.violationStartTime != null
21905
21540
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.violationStartTime)))
21906
21541
  : undefined,
21907
21542
  };
@@ -21953,7 +21588,7 @@ const deserializeAws_restJson1AdditionalParameterMap = (output, context) => {
21953
21588
  const deserializeAws_restJson1AddThingsToThingGroupParams = (output, context) => {
21954
21589
  return {
21955
21590
  overrideDynamicGroups: (0, smithy_client_1.expectBoolean)(output.overrideDynamicGroups),
21956
- thingGroupNames: output.thingGroupNames !== undefined && output.thingGroupNames !== null
21591
+ thingGroupNames: output.thingGroupNames != null
21957
21592
  ? deserializeAws_restJson1ThingGroupNames(output.thingGroupNames, context)
21958
21593
  : undefined,
21959
21594
  };
@@ -21961,9 +21596,7 @@ const deserializeAws_restJson1AddThingsToThingGroupParams = (output, context) =>
21961
21596
  const deserializeAws_restJson1AggregationType = (output, context) => {
21962
21597
  return {
21963
21598
  name: (0, smithy_client_1.expectString)(output.name),
21964
- values: output.values !== undefined && output.values !== null
21965
- ? deserializeAws_restJson1AggregationTypeValues(output.values, context)
21966
- : undefined,
21599
+ values: output.values != null ? deserializeAws_restJson1AggregationTypeValues(output.values, context) : undefined,
21967
21600
  };
21968
21601
  };
21969
21602
  const deserializeAws_restJson1AggregationTypeValues = (output, context) => {
@@ -21996,9 +21629,7 @@ const deserializeAws_restJson1AlertTargets = (output, context) => {
21996
21629
  };
21997
21630
  const deserializeAws_restJson1Allowed = (output, context) => {
21998
21631
  return {
21999
- policies: output.policies !== undefined && output.policies !== null
22000
- ? deserializeAws_restJson1Policies(output.policies, context)
22001
- : undefined,
21632
+ policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
22002
21633
  };
22003
21634
  };
22004
21635
  const deserializeAws_restJson1AssetPropertyTimestamp = (output, context) => {
@@ -22010,10 +21641,8 @@ const deserializeAws_restJson1AssetPropertyTimestamp = (output, context) => {
22010
21641
  const deserializeAws_restJson1AssetPropertyValue = (output, context) => {
22011
21642
  return {
22012
21643
  quality: (0, smithy_client_1.expectString)(output.quality),
22013
- timestamp: output.timestamp !== undefined && output.timestamp !== null
22014
- ? deserializeAws_restJson1AssetPropertyTimestamp(output.timestamp, context)
22015
- : undefined,
22016
- value: output.value !== undefined && output.value !== null
21644
+ timestamp: output.timestamp != null ? deserializeAws_restJson1AssetPropertyTimestamp(output.timestamp, context) : undefined,
21645
+ value: output.value != null
22017
21646
  ? deserializeAws_restJson1AssetPropertyVariant((0, smithy_client_1.expectUnion)(output.value), context)
22018
21647
  : undefined,
22019
21648
  };
@@ -22046,9 +21675,7 @@ const deserializeAws_restJson1AssetPropertyVariant = (output, context) => {
22046
21675
  };
22047
21676
  const deserializeAws_restJson1AttributePayload = (output, context) => {
22048
21677
  return {
22049
- attributes: output.attributes !== undefined && output.attributes !== null
22050
- ? deserializeAws_restJson1Attributes(output.attributes, context)
22051
- : undefined,
21678
+ attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
22052
21679
  merge: (0, smithy_client_1.expectBoolean)(output.merge),
22053
21680
  };
22054
21681
  };
@@ -22138,21 +21765,21 @@ const deserializeAws_restJson1AuditFinding = (output, context) => {
22138
21765
  return {
22139
21766
  checkName: (0, smithy_client_1.expectString)(output.checkName),
22140
21767
  findingId: (0, smithy_client_1.expectString)(output.findingId),
22141
- findingTime: output.findingTime !== undefined && output.findingTime !== null
21768
+ findingTime: output.findingTime != null
22142
21769
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.findingTime)))
22143
21770
  : undefined,
22144
21771
  isSuppressed: (0, smithy_client_1.expectBoolean)(output.isSuppressed),
22145
- nonCompliantResource: output.nonCompliantResource !== undefined && output.nonCompliantResource !== null
21772
+ nonCompliantResource: output.nonCompliantResource != null
22146
21773
  ? deserializeAws_restJson1NonCompliantResource(output.nonCompliantResource, context)
22147
21774
  : undefined,
22148
21775
  reasonForNonCompliance: (0, smithy_client_1.expectString)(output.reasonForNonCompliance),
22149
21776
  reasonForNonComplianceCode: (0, smithy_client_1.expectString)(output.reasonForNonComplianceCode),
22150
- relatedResources: output.relatedResources !== undefined && output.relatedResources !== null
21777
+ relatedResources: output.relatedResources != null
22151
21778
  ? deserializeAws_restJson1RelatedResources(output.relatedResources, context)
22152
21779
  : undefined,
22153
21780
  severity: (0, smithy_client_1.expectString)(output.severity),
22154
21781
  taskId: (0, smithy_client_1.expectString)(output.taskId),
22155
- taskStartTime: output.taskStartTime !== undefined && output.taskStartTime !== null
21782
+ taskStartTime: output.taskStartTime != null
22156
21783
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.taskStartTime)))
22157
21784
  : undefined,
22158
21785
  };
@@ -22172,15 +21799,11 @@ const deserializeAws_restJson1AuditMitigationActionExecutionMetadata = (output,
22172
21799
  return {
22173
21800
  actionId: (0, smithy_client_1.expectString)(output.actionId),
22174
21801
  actionName: (0, smithy_client_1.expectString)(output.actionName),
22175
- endTime: output.endTime !== undefined && output.endTime !== null
22176
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
22177
- : undefined,
21802
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
22178
21803
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
22179
21804
  findingId: (0, smithy_client_1.expectString)(output.findingId),
22180
21805
  message: (0, smithy_client_1.expectString)(output.message),
22181
- startTime: output.startTime !== undefined && output.startTime !== null
22182
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
22183
- : undefined,
21806
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
22184
21807
  status: (0, smithy_client_1.expectString)(output.status),
22185
21808
  taskId: (0, smithy_client_1.expectString)(output.taskId),
22186
21809
  };
@@ -22198,9 +21821,7 @@ const deserializeAws_restJson1AuditMitigationActionExecutionMetadataList = (outp
22198
21821
  };
22199
21822
  const deserializeAws_restJson1AuditMitigationActionsTaskMetadata = (output, context) => {
22200
21823
  return {
22201
- startTime: output.startTime !== undefined && output.startTime !== null
22202
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
22203
- : undefined,
21824
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
22204
21825
  taskId: (0, smithy_client_1.expectString)(output.taskId),
22205
21826
  taskStatus: (0, smithy_client_1.expectString)(output.taskStatus),
22206
21827
  };
@@ -22229,13 +21850,11 @@ const deserializeAws_restJson1AuditMitigationActionsTaskStatistics = (output, co
22229
21850
  };
22230
21851
  const deserializeAws_restJson1AuditMitigationActionsTaskTarget = (output, context) => {
22231
21852
  return {
22232
- auditCheckToReasonCodeFilter: output.auditCheckToReasonCodeFilter !== undefined && output.auditCheckToReasonCodeFilter !== null
21853
+ auditCheckToReasonCodeFilter: output.auditCheckToReasonCodeFilter != null
22233
21854
  ? deserializeAws_restJson1AuditCheckToReasonCodeFilter(output.auditCheckToReasonCodeFilter, context)
22234
21855
  : undefined,
22235
21856
  auditTaskId: (0, smithy_client_1.expectString)(output.auditTaskId),
22236
- findingIds: output.findingIds !== undefined && output.findingIds !== null
22237
- ? deserializeAws_restJson1FindingIds(output.findingIds, context)
22238
- : undefined,
21857
+ findingIds: output.findingIds != null ? deserializeAws_restJson1FindingIds(output.findingIds, context) : undefined,
22239
21858
  };
22240
21859
  };
22241
21860
  const deserializeAws_restJson1AuditNotificationTarget = (output, context) => {
@@ -22260,10 +21879,10 @@ const deserializeAws_restJson1AuditSuppression = (output, context) => {
22260
21879
  return {
22261
21880
  checkName: (0, smithy_client_1.expectString)(output.checkName),
22262
21881
  description: (0, smithy_client_1.expectString)(output.description),
22263
- expirationDate: output.expirationDate !== undefined && output.expirationDate !== null
21882
+ expirationDate: output.expirationDate != null
22264
21883
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.expirationDate)))
22265
21884
  : undefined,
22266
- resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
21885
+ resourceIdentifier: output.resourceIdentifier != null
22267
21886
  ? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
22268
21887
  : undefined,
22269
21888
  suppressIndefinitely: (0, smithy_client_1.expectBoolean)(output.suppressIndefinitely),
@@ -22301,9 +21920,7 @@ const deserializeAws_restJson1AuditTaskMetadataList = (output, context) => {
22301
21920
  const deserializeAws_restJson1AuthInfo = (output, context) => {
22302
21921
  return {
22303
21922
  actionType: (0, smithy_client_1.expectString)(output.actionType),
22304
- resources: output.resources !== undefined && output.resources !== null
22305
- ? deserializeAws_restJson1Resources(output.resources, context)
22306
- : undefined,
21923
+ resources: output.resources != null ? deserializeAws_restJson1Resources(output.resources, context) : undefined,
22307
21924
  };
22308
21925
  };
22309
21926
  const deserializeAws_restJson1AuthorizerConfig = (output, context) => {
@@ -22317,17 +21934,17 @@ const deserializeAws_restJson1AuthorizerDescription = (output, context) => {
22317
21934
  authorizerArn: (0, smithy_client_1.expectString)(output.authorizerArn),
22318
21935
  authorizerFunctionArn: (0, smithy_client_1.expectString)(output.authorizerFunctionArn),
22319
21936
  authorizerName: (0, smithy_client_1.expectString)(output.authorizerName),
22320
- creationDate: output.creationDate !== undefined && output.creationDate !== null
21937
+ creationDate: output.creationDate != null
22321
21938
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22322
21939
  : undefined,
22323
21940
  enableCachingForHttp: (0, smithy_client_1.expectBoolean)(output.enableCachingForHttp),
22324
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
21941
+ lastModifiedDate: output.lastModifiedDate != null
22325
21942
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
22326
21943
  : undefined,
22327
21944
  signingDisabled: (0, smithy_client_1.expectBoolean)(output.signingDisabled),
22328
21945
  status: (0, smithy_client_1.expectString)(output.status),
22329
21946
  tokenKeyName: (0, smithy_client_1.expectString)(output.tokenKeyName),
22330
- tokenSigningPublicKeys: output.tokenSigningPublicKeys !== undefined && output.tokenSigningPublicKeys !== null
21947
+ tokenSigningPublicKeys: output.tokenSigningPublicKeys != null
22331
21948
  ? deserializeAws_restJson1PublicKeyMap(output.tokenSigningPublicKeys, context)
22332
21949
  : undefined,
22333
21950
  };
@@ -22351,17 +21968,11 @@ const deserializeAws_restJson1AuthorizerSummary = (output, context) => {
22351
21968
  };
22352
21969
  const deserializeAws_restJson1AuthResult = (output, context) => {
22353
21970
  return {
22354
- allowed: output.allowed !== undefined && output.allowed !== null
22355
- ? deserializeAws_restJson1Allowed(output.allowed, context)
22356
- : undefined,
21971
+ allowed: output.allowed != null ? deserializeAws_restJson1Allowed(output.allowed, context) : undefined,
22357
21972
  authDecision: (0, smithy_client_1.expectString)(output.authDecision),
22358
- authInfo: output.authInfo !== undefined && output.authInfo !== null
22359
- ? deserializeAws_restJson1AuthInfo(output.authInfo, context)
22360
- : undefined,
22361
- denied: output.denied !== undefined && output.denied !== null
22362
- ? deserializeAws_restJson1Denied(output.denied, context)
22363
- : undefined,
22364
- 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
22365
21976
  ? deserializeAws_restJson1MissingContextValues(output.missingContextValues, context)
22366
21977
  : undefined,
22367
21978
  };
@@ -22379,7 +21990,7 @@ const deserializeAws_restJson1AuthResults = (output, context) => {
22379
21990
  };
22380
21991
  const deserializeAws_restJson1AwsJobExecutionsRolloutConfig = (output, context) => {
22381
21992
  return {
22382
- exponentialRate: output.exponentialRate !== undefined && output.exponentialRate !== null
21993
+ exponentialRate: output.exponentialRate != null
22383
21994
  ? deserializeAws_restJson1AwsJobExponentialRolloutRate(output.exponentialRate, context)
22384
21995
  : undefined,
22385
21996
  maximumPerMinute: (0, smithy_client_1.expectInt32)(output.maximumPerMinute),
@@ -22389,7 +22000,7 @@ const deserializeAws_restJson1AwsJobExponentialRolloutRate = (output, context) =
22389
22000
  return {
22390
22001
  baseRatePerMinute: (0, smithy_client_1.expectInt32)(output.baseRatePerMinute),
22391
22002
  incrementFactor: (0, smithy_client_1.limitedParseDouble)(output.incrementFactor),
22392
- rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null
22003
+ rateIncreaseCriteria: output.rateIncreaseCriteria != null
22393
22004
  ? deserializeAws_restJson1AwsJobRateIncreaseCriteria(output.rateIncreaseCriteria, context)
22394
22005
  : undefined,
22395
22006
  };
@@ -22407,11 +22018,9 @@ const deserializeAws_restJson1AwsJobRateIncreaseCriteria = (output, context) =>
22407
22018
  };
22408
22019
  const deserializeAws_restJson1Behavior = (output, context) => {
22409
22020
  return {
22410
- criteria: output.criteria !== undefined && output.criteria !== null
22411
- ? deserializeAws_restJson1BehaviorCriteria(output.criteria, context)
22412
- : undefined,
22021
+ criteria: output.criteria != null ? deserializeAws_restJson1BehaviorCriteria(output.criteria, context) : undefined,
22413
22022
  metric: (0, smithy_client_1.expectString)(output.metric),
22414
- metricDimension: output.metricDimension !== undefined && output.metricDimension !== null
22023
+ metricDimension: output.metricDimension != null
22415
22024
  ? deserializeAws_restJson1MetricDimension(output.metricDimension, context)
22416
22025
  : undefined,
22417
22026
  name: (0, smithy_client_1.expectString)(output.name),
@@ -22424,15 +22033,13 @@ const deserializeAws_restJson1BehaviorCriteria = (output, context) => {
22424
22033
  consecutiveDatapointsToAlarm: (0, smithy_client_1.expectInt32)(output.consecutiveDatapointsToAlarm),
22425
22034
  consecutiveDatapointsToClear: (0, smithy_client_1.expectInt32)(output.consecutiveDatapointsToClear),
22426
22035
  durationSeconds: (0, smithy_client_1.expectInt32)(output.durationSeconds),
22427
- mlDetectionConfig: output.mlDetectionConfig !== undefined && output.mlDetectionConfig !== null
22036
+ mlDetectionConfig: output.mlDetectionConfig != null
22428
22037
  ? deserializeAws_restJson1MachineLearningDetectionConfig(output.mlDetectionConfig, context)
22429
22038
  : undefined,
22430
- statisticalThreshold: output.statisticalThreshold !== undefined && output.statisticalThreshold !== null
22039
+ statisticalThreshold: output.statisticalThreshold != null
22431
22040
  ? deserializeAws_restJson1StatisticalThreshold(output.statisticalThreshold, context)
22432
22041
  : undefined,
22433
- value: output.value !== undefined && output.value !== null
22434
- ? deserializeAws_restJson1MetricValue(output.value, context)
22435
- : undefined,
22042
+ value: output.value != null ? deserializeAws_restJson1MetricValue(output.value, context) : undefined,
22436
22043
  };
22437
22044
  };
22438
22045
  const deserializeAws_restJson1BehaviorModelTrainingSummaries = (output, context) => {
@@ -22450,12 +22057,12 @@ const deserializeAws_restJson1BehaviorModelTrainingSummary = (output, context) =
22450
22057
  return {
22451
22058
  behaviorName: (0, smithy_client_1.expectString)(output.behaviorName),
22452
22059
  datapointsCollectionPercentage: (0, smithy_client_1.limitedParseDouble)(output.datapointsCollectionPercentage),
22453
- lastModelRefreshDate: output.lastModelRefreshDate !== undefined && output.lastModelRefreshDate !== null
22060
+ lastModelRefreshDate: output.lastModelRefreshDate != null
22454
22061
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModelRefreshDate)))
22455
22062
  : undefined,
22456
22063
  modelStatus: (0, smithy_client_1.expectString)(output.modelStatus),
22457
22064
  securityProfileName: (0, smithy_client_1.expectString)(output.securityProfileName),
22458
- trainingDataCollectionStartDate: output.trainingDataCollectionStartDate !== undefined && output.trainingDataCollectionStartDate !== null
22065
+ trainingDataCollectionStartDate: output.trainingDataCollectionStartDate != null
22459
22066
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.trainingDataCollectionStartDate)))
22460
22067
  : undefined,
22461
22068
  };
@@ -22473,7 +22080,7 @@ const deserializeAws_restJson1Behaviors = (output, context) => {
22473
22080
  };
22474
22081
  const deserializeAws_restJson1BillingGroupMetadata = (output, context) => {
22475
22082
  return {
22476
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22083
+ creationDate: output.creationDate != null
22477
22084
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22478
22085
  : undefined,
22479
22086
  };
@@ -22515,7 +22122,7 @@ const deserializeAws_restJson1CACertificate = (output, context) => {
22515
22122
  return {
22516
22123
  certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
22517
22124
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
22518
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22125
+ creationDate: output.creationDate != null
22519
22126
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22520
22127
  : undefined,
22521
22128
  status: (0, smithy_client_1.expectString)(output.status),
@@ -22526,20 +22133,19 @@ const deserializeAws_restJson1CACertificateDescription = (output, context) => {
22526
22133
  autoRegistrationStatus: (0, smithy_client_1.expectString)(output.autoRegistrationStatus),
22527
22134
  certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
22528
22135
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
22136
+ certificateMode: (0, smithy_client_1.expectString)(output.certificateMode),
22529
22137
  certificatePem: (0, smithy_client_1.expectString)(output.certificatePem),
22530
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22138
+ creationDate: output.creationDate != null
22531
22139
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22532
22140
  : undefined,
22533
22141
  customerVersion: (0, smithy_client_1.expectInt32)(output.customerVersion),
22534
22142
  generationId: (0, smithy_client_1.expectString)(output.generationId),
22535
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
22143
+ lastModifiedDate: output.lastModifiedDate != null
22536
22144
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
22537
22145
  : undefined,
22538
22146
  ownedBy: (0, smithy_client_1.expectString)(output.ownedBy),
22539
22147
  status: (0, smithy_client_1.expectString)(output.status),
22540
- validity: output.validity !== undefined && output.validity !== null
22541
- ? deserializeAws_restJson1CertificateValidity(output.validity, context)
22542
- : undefined,
22148
+ validity: output.validity != null ? deserializeAws_restJson1CertificateValidity(output.validity, context) : undefined,
22543
22149
  };
22544
22150
  };
22545
22151
  const deserializeAws_restJson1CACertificates = (output, context) => {
@@ -22558,7 +22164,7 @@ const deserializeAws_restJson1Certificate = (output, context) => {
22558
22164
  certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
22559
22165
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
22560
22166
  certificateMode: (0, smithy_client_1.expectString)(output.certificateMode),
22561
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22167
+ creationDate: output.creationDate != null
22562
22168
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22563
22169
  : undefined,
22564
22170
  status: (0, smithy_client_1.expectString)(output.status),
@@ -22571,23 +22177,19 @@ const deserializeAws_restJson1CertificateDescription = (output, context) => {
22571
22177
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
22572
22178
  certificateMode: (0, smithy_client_1.expectString)(output.certificateMode),
22573
22179
  certificatePem: (0, smithy_client_1.expectString)(output.certificatePem),
22574
- creationDate: output.creationDate !== undefined && output.creationDate !== null
22180
+ creationDate: output.creationDate != null
22575
22181
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
22576
22182
  : undefined,
22577
22183
  customerVersion: (0, smithy_client_1.expectInt32)(output.customerVersion),
22578
22184
  generationId: (0, smithy_client_1.expectString)(output.generationId),
22579
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
22185
+ lastModifiedDate: output.lastModifiedDate != null
22580
22186
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
22581
22187
  : undefined,
22582
22188
  ownedBy: (0, smithy_client_1.expectString)(output.ownedBy),
22583
22189
  previousOwnedBy: (0, smithy_client_1.expectString)(output.previousOwnedBy),
22584
22190
  status: (0, smithy_client_1.expectString)(output.status),
22585
- transferData: output.transferData !== undefined && output.transferData !== null
22586
- ? deserializeAws_restJson1TransferData(output.transferData, context)
22587
- : undefined,
22588
- validity: output.validity !== undefined && output.validity !== null
22589
- ? deserializeAws_restJson1CertificateValidity(output.validity, context)
22590
- : undefined,
22191
+ transferData: output.transferData != null ? deserializeAws_restJson1TransferData(output.transferData, context) : undefined,
22192
+ validity: output.validity != null ? deserializeAws_restJson1CertificateValidity(output.validity, context) : undefined,
22591
22193
  };
22592
22194
  };
22593
22195
  const deserializeAws_restJson1Certificates = (output, context) => {
@@ -22603,12 +22205,8 @@ const deserializeAws_restJson1Certificates = (output, context) => {
22603
22205
  };
22604
22206
  const deserializeAws_restJson1CertificateValidity = (output, context) => {
22605
22207
  return {
22606
- notAfter: output.notAfter !== undefined && output.notAfter !== null
22607
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notAfter)))
22608
- : undefined,
22609
- notBefore: output.notBefore !== undefined && output.notBefore !== null
22610
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.notBefore)))
22611
- : 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,
22612
22210
  };
22613
22211
  };
22614
22212
  const deserializeAws_restJson1Cidrs = (output, context) => {
@@ -22660,10 +22258,10 @@ const deserializeAws_restJson1CloudwatchMetricAction = (output, context) => {
22660
22258
  const deserializeAws_restJson1CodeSigning = (output, context) => {
22661
22259
  return {
22662
22260
  awsSignerJobId: (0, smithy_client_1.expectString)(output.awsSignerJobId),
22663
- customCodeSigning: output.customCodeSigning !== undefined && output.customCodeSigning !== null
22261
+ customCodeSigning: output.customCodeSigning != null
22664
22262
  ? deserializeAws_restJson1CustomCodeSigning(output.customCodeSigning, context)
22665
22263
  : undefined,
22666
- startSigningJobParameter: output.startSigningJobParameter !== undefined && output.startSigningJobParameter !== null
22264
+ startSigningJobParameter: output.startSigningJobParameter != null
22667
22265
  ? deserializeAws_restJson1StartSigningJobParameter(output.startSigningJobParameter, context)
22668
22266
  : undefined,
22669
22267
  };
@@ -22676,9 +22274,7 @@ const deserializeAws_restJson1CodeSigningCertificateChain = (output, context) =>
22676
22274
  };
22677
22275
  const deserializeAws_restJson1CodeSigningSignature = (output, context) => {
22678
22276
  return {
22679
- inlineDocument: output.inlineDocument !== undefined && output.inlineDocument !== null
22680
- ? context.base64Decoder(output.inlineDocument)
22681
- : undefined,
22277
+ inlineDocument: output.inlineDocument != null ? context.base64Decoder(output.inlineDocument) : undefined,
22682
22278
  };
22683
22279
  };
22684
22280
  const deserializeAws_restJson1Configuration = (output, context) => {
@@ -22688,31 +22284,23 @@ const deserializeAws_restJson1Configuration = (output, context) => {
22688
22284
  };
22689
22285
  const deserializeAws_restJson1CustomCodeSigning = (output, context) => {
22690
22286
  return {
22691
- certificateChain: output.certificateChain !== undefined && output.certificateChain !== null
22287
+ certificateChain: output.certificateChain != null
22692
22288
  ? deserializeAws_restJson1CodeSigningCertificateChain(output.certificateChain, context)
22693
22289
  : undefined,
22694
22290
  hashAlgorithm: (0, smithy_client_1.expectString)(output.hashAlgorithm),
22695
- signature: output.signature !== undefined && output.signature !== null
22696
- ? deserializeAws_restJson1CodeSigningSignature(output.signature, context)
22697
- : undefined,
22291
+ signature: output.signature != null ? deserializeAws_restJson1CodeSigningSignature(output.signature, context) : undefined,
22698
22292
  signatureAlgorithm: (0, smithy_client_1.expectString)(output.signatureAlgorithm),
22699
22293
  };
22700
22294
  };
22701
22295
  const deserializeAws_restJson1Denied = (output, context) => {
22702
22296
  return {
22703
- explicitDeny: output.explicitDeny !== undefined && output.explicitDeny !== null
22704
- ? deserializeAws_restJson1ExplicitDeny(output.explicitDeny, context)
22705
- : undefined,
22706
- implicitDeny: output.implicitDeny !== undefined && output.implicitDeny !== null
22707
- ? deserializeAws_restJson1ImplicitDeny(output.implicitDeny, context)
22708
- : undefined,
22297
+ explicitDeny: output.explicitDeny != null ? deserializeAws_restJson1ExplicitDeny(output.explicitDeny, context) : undefined,
22298
+ implicitDeny: output.implicitDeny != null ? deserializeAws_restJson1ImplicitDeny(output.implicitDeny, context) : undefined,
22709
22299
  };
22710
22300
  };
22711
22301
  const deserializeAws_restJson1Destination = (output, context) => {
22712
22302
  return {
22713
- s3Destination: output.s3Destination !== undefined && output.s3Destination !== null
22714
- ? deserializeAws_restJson1S3Destination(output.s3Destination, context)
22715
- : undefined,
22303
+ s3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
22716
22304
  };
22717
22305
  };
22718
22306
  const deserializeAws_restJson1DetailsMap = (output, context) => {
@@ -22730,10 +22318,10 @@ const deserializeAws_restJson1DetectMitigationActionExecution = (output, context
22730
22318
  return {
22731
22319
  actionName: (0, smithy_client_1.expectString)(output.actionName),
22732
22320
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
22733
- executionEndDate: output.executionEndDate !== undefined && output.executionEndDate !== null
22321
+ executionEndDate: output.executionEndDate != null
22734
22322
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.executionEndDate)))
22735
22323
  : undefined,
22736
- executionStartDate: output.executionStartDate !== undefined && output.executionStartDate !== null
22324
+ executionStartDate: output.executionStartDate != null
22737
22325
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.executionStartDate)))
22738
22326
  : undefined,
22739
22327
  message: (0, smithy_client_1.expectString)(output.message),
@@ -22763,26 +22351,26 @@ const deserializeAws_restJson1DetectMitigationActionsTaskStatistics = (output, c
22763
22351
  };
22764
22352
  const deserializeAws_restJson1DetectMitigationActionsTaskSummary = (output, context) => {
22765
22353
  return {
22766
- actionsDefinition: output.actionsDefinition !== undefined && output.actionsDefinition !== null
22354
+ actionsDefinition: output.actionsDefinition != null
22767
22355
  ? deserializeAws_restJson1MitigationActionList(output.actionsDefinition, context)
22768
22356
  : undefined,
22769
22357
  onlyActiveViolationsIncluded: (0, smithy_client_1.expectBoolean)(output.onlyActiveViolationsIncluded),
22770
22358
  suppressedAlertsIncluded: (0, smithy_client_1.expectBoolean)(output.suppressedAlertsIncluded),
22771
- target: output.target !== undefined && output.target !== null
22359
+ target: output.target != null
22772
22360
  ? deserializeAws_restJson1DetectMitigationActionsTaskTarget(output.target, context)
22773
22361
  : undefined,
22774
- taskEndTime: output.taskEndTime !== undefined && output.taskEndTime !== null
22362
+ taskEndTime: output.taskEndTime != null
22775
22363
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.taskEndTime)))
22776
22364
  : undefined,
22777
22365
  taskId: (0, smithy_client_1.expectString)(output.taskId),
22778
- taskStartTime: output.taskStartTime !== undefined && output.taskStartTime !== null
22366
+ taskStartTime: output.taskStartTime != null
22779
22367
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.taskStartTime)))
22780
22368
  : undefined,
22781
- taskStatistics: output.taskStatistics !== undefined && output.taskStatistics !== null
22369
+ taskStatistics: output.taskStatistics != null
22782
22370
  ? deserializeAws_restJson1DetectMitigationActionsTaskStatistics(output.taskStatistics, context)
22783
22371
  : undefined,
22784
22372
  taskStatus: (0, smithy_client_1.expectString)(output.taskStatus),
22785
- violationEventOccurrenceRange: output.violationEventOccurrenceRange !== undefined && output.violationEventOccurrenceRange !== null
22373
+ violationEventOccurrenceRange: output.violationEventOccurrenceRange != null
22786
22374
  ? deserializeAws_restJson1ViolationEventOccurrenceRange(output.violationEventOccurrenceRange, context)
22787
22375
  : undefined,
22788
22376
  };
@@ -22802,7 +22390,7 @@ const deserializeAws_restJson1DetectMitigationActionsTaskTarget = (output, conte
22802
22390
  return {
22803
22391
  behaviorName: (0, smithy_client_1.expectString)(output.behaviorName),
22804
22392
  securityProfileName: (0, smithy_client_1.expectString)(output.securityProfileName),
22805
- violationIds: output.violationIds !== undefined && output.violationIds !== null
22393
+ violationIds: output.violationIds != null
22806
22394
  ? deserializeAws_restJson1TargetViolationIdsForDetectMitigationActions(output.violationIds, context)
22807
22395
  : undefined,
22808
22396
  };
@@ -22883,9 +22471,7 @@ const deserializeAws_restJson1DynamoDBAction = (output, context) => {
22883
22471
  };
22884
22472
  const deserializeAws_restJson1DynamoDBv2Action = (output, context) => {
22885
22473
  return {
22886
- putItem: output.putItem !== undefined && output.putItem !== null
22887
- ? deserializeAws_restJson1PutItemInput(output.putItem, context)
22888
- : undefined,
22474
+ putItem: output.putItem != null ? deserializeAws_restJson1PutItemInput(output.putItem, context) : undefined,
22889
22475
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
22890
22476
  };
22891
22477
  };
@@ -22952,16 +22538,14 @@ const deserializeAws_restJson1EventConfigurations = (output, context) => {
22952
22538
  };
22953
22539
  const deserializeAws_restJson1ExplicitDeny = (output, context) => {
22954
22540
  return {
22955
- policies: output.policies !== undefined && output.policies !== null
22956
- ? deserializeAws_restJson1Policies(output.policies, context)
22957
- : undefined,
22541
+ policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
22958
22542
  };
22959
22543
  };
22960
22544
  const deserializeAws_restJson1ExponentialRolloutRate = (output, context) => {
22961
22545
  return {
22962
22546
  baseRatePerMinute: (0, smithy_client_1.expectInt32)(output.baseRatePerMinute),
22963
22547
  incrementFactor: (0, smithy_client_1.limitedParseDouble)(output.incrementFactor),
22964
- rateIncreaseCriteria: output.rateIncreaseCriteria !== undefined && output.rateIncreaseCriteria !== null
22548
+ rateIncreaseCriteria: output.rateIncreaseCriteria != null
22965
22549
  ? deserializeAws_restJson1RateIncreaseCriteria(output.rateIncreaseCriteria, context)
22966
22550
  : undefined,
22967
22551
  };
@@ -22985,12 +22569,8 @@ const deserializeAws_restJson1Fields = (output, context) => {
22985
22569
  };
22986
22570
  const deserializeAws_restJson1FileLocation = (output, context) => {
22987
22571
  return {
22988
- s3Location: output.s3Location !== undefined && output.s3Location !== null
22989
- ? deserializeAws_restJson1S3Location(output.s3Location, context)
22990
- : undefined,
22991
- stream: output.stream !== undefined && output.stream !== null
22992
- ? deserializeAws_restJson1_Stream(output.stream, context)
22993
- : undefined,
22572
+ s3Location: output.s3Location != null ? deserializeAws_restJson1S3Location(output.s3Location, context) : undefined,
22573
+ stream: output.stream != null ? deserializeAws_restJson1_Stream(output.stream, context) : undefined,
22994
22574
  };
22995
22575
  };
22996
22576
  const deserializeAws_restJson1FindingIds = (output, context) => {
@@ -23048,13 +22628,9 @@ const deserializeAws_restJson1HeaderList = (output, context) => {
23048
22628
  };
23049
22629
  const deserializeAws_restJson1HttpAction = (output, context) => {
23050
22630
  return {
23051
- auth: output.auth !== undefined && output.auth !== null
23052
- ? deserializeAws_restJson1HttpAuthorization(output.auth, context)
23053
- : undefined,
22631
+ auth: output.auth != null ? deserializeAws_restJson1HttpAuthorization(output.auth, context) : undefined,
23054
22632
  confirmationUrl: (0, smithy_client_1.expectString)(output.confirmationUrl),
23055
- headers: output.headers !== undefined && output.headers !== null
23056
- ? deserializeAws_restJson1HeaderList(output.headers, context)
23057
- : undefined,
22633
+ headers: output.headers != null ? deserializeAws_restJson1HeaderList(output.headers, context) : undefined,
23058
22634
  url: (0, smithy_client_1.expectString)(output.url),
23059
22635
  };
23060
22636
  };
@@ -23066,9 +22642,7 @@ const deserializeAws_restJson1HttpActionHeader = (output, context) => {
23066
22642
  };
23067
22643
  const deserializeAws_restJson1HttpAuthorization = (output, context) => {
23068
22644
  return {
23069
- sigv4: output.sigv4 !== undefined && output.sigv4 !== null
23070
- ? deserializeAws_restJson1SigV4Authorization(output.sigv4, context)
23071
- : undefined,
22645
+ sigv4: output.sigv4 != null ? deserializeAws_restJson1SigV4Authorization(output.sigv4, context) : undefined,
23072
22646
  };
23073
22647
  };
23074
22648
  const deserializeAws_restJson1HttpUrlDestinationProperties = (output, context) => {
@@ -23083,9 +22657,7 @@ const deserializeAws_restJson1HttpUrlDestinationSummary = (output, context) => {
23083
22657
  };
23084
22658
  const deserializeAws_restJson1ImplicitDeny = (output, context) => {
23085
22659
  return {
23086
- policies: output.policies !== undefined && output.policies !== null
23087
- ? deserializeAws_restJson1Policies(output.policies, context)
23088
- : undefined,
22660
+ policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
23089
22661
  };
23090
22662
  };
23091
22663
  const deserializeAws_restJson1IndexNamesList = (output, context) => {
@@ -23117,7 +22689,7 @@ const deserializeAws_restJson1IotEventsAction = (output, context) => {
23117
22689
  };
23118
22690
  const deserializeAws_restJson1IotSiteWiseAction = (output, context) => {
23119
22691
  return {
23120
- putAssetPropertyValueEntries: output.putAssetPropertyValueEntries !== undefined && output.putAssetPropertyValueEntries !== null
22692
+ putAssetPropertyValueEntries: output.putAssetPropertyValueEntries != null
23121
22693
  ? deserializeAws_restJson1PutAssetPropertyValueEntryList(output.putAssetPropertyValueEntries, context)
23122
22694
  : undefined,
23123
22695
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -23125,50 +22697,42 @@ const deserializeAws_restJson1IotSiteWiseAction = (output, context) => {
23125
22697
  };
23126
22698
  const deserializeAws_restJson1Job = (output, context) => {
23127
22699
  return {
23128
- abortConfig: output.abortConfig !== undefined && output.abortConfig !== null
23129
- ? deserializeAws_restJson1AbortConfig(output.abortConfig, context)
23130
- : undefined,
22700
+ abortConfig: output.abortConfig != null ? deserializeAws_restJson1AbortConfig(output.abortConfig, context) : undefined,
23131
22701
  comment: (0, smithy_client_1.expectString)(output.comment),
23132
- completedAt: output.completedAt !== undefined && output.completedAt !== null
22702
+ completedAt: output.completedAt != null
23133
22703
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completedAt)))
23134
22704
  : undefined,
23135
- createdAt: output.createdAt !== undefined && output.createdAt !== null
23136
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
23137
- : undefined,
22705
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
23138
22706
  description: (0, smithy_client_1.expectString)(output.description),
23139
- documentParameters: output.documentParameters !== undefined && output.documentParameters !== null
22707
+ documentParameters: output.documentParameters != null
23140
22708
  ? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
23141
22709
  : undefined,
23142
22710
  forceCanceled: (0, smithy_client_1.expectBoolean)(output.forceCanceled),
23143
22711
  isConcurrent: (0, smithy_client_1.expectBoolean)(output.isConcurrent),
23144
22712
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
23145
- jobExecutionsRetryConfig: output.jobExecutionsRetryConfig !== undefined && output.jobExecutionsRetryConfig !== null
22713
+ jobExecutionsRetryConfig: output.jobExecutionsRetryConfig != null
23146
22714
  ? deserializeAws_restJson1JobExecutionsRetryConfig(output.jobExecutionsRetryConfig, context)
23147
22715
  : undefined,
23148
- jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig !== undefined && output.jobExecutionsRolloutConfig !== null
22716
+ jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig != null
23149
22717
  ? deserializeAws_restJson1JobExecutionsRolloutConfig(output.jobExecutionsRolloutConfig, context)
23150
22718
  : undefined,
23151
22719
  jobId: (0, smithy_client_1.expectString)(output.jobId),
23152
- jobProcessDetails: output.jobProcessDetails !== undefined && output.jobProcessDetails !== null
22720
+ jobProcessDetails: output.jobProcessDetails != null
23153
22721
  ? deserializeAws_restJson1JobProcessDetails(output.jobProcessDetails, context)
23154
22722
  : undefined,
23155
22723
  jobTemplateArn: (0, smithy_client_1.expectString)(output.jobTemplateArn),
23156
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
22724
+ lastUpdatedAt: output.lastUpdatedAt != null
23157
22725
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
23158
22726
  : undefined,
23159
22727
  namespaceId: (0, smithy_client_1.expectString)(output.namespaceId),
23160
- presignedUrlConfig: output.presignedUrlConfig !== undefined && output.presignedUrlConfig !== null
22728
+ presignedUrlConfig: output.presignedUrlConfig != null
23161
22729
  ? deserializeAws_restJson1PresignedUrlConfig(output.presignedUrlConfig, context)
23162
22730
  : undefined,
23163
22731
  reasonCode: (0, smithy_client_1.expectString)(output.reasonCode),
23164
22732
  status: (0, smithy_client_1.expectString)(output.status),
23165
22733
  targetSelection: (0, smithy_client_1.expectString)(output.targetSelection),
23166
- targets: output.targets !== undefined && output.targets !== null
23167
- ? deserializeAws_restJson1JobTargets(output.targets, context)
23168
- : undefined,
23169
- timeoutConfig: output.timeoutConfig !== undefined && output.timeoutConfig !== null
23170
- ? deserializeAws_restJson1TimeoutConfig(output.timeoutConfig, context)
23171
- : undefined,
22734
+ targets: output.targets != null ? deserializeAws_restJson1JobTargets(output.targets, context) : undefined,
22735
+ timeoutConfig: output.timeoutConfig != null ? deserializeAws_restJson1TimeoutConfig(output.timeoutConfig, context) : undefined,
23172
22736
  };
23173
22737
  };
23174
22738
  const deserializeAws_restJson1JobExecution = (output, context) => {
@@ -23177,17 +22741,13 @@ const deserializeAws_restJson1JobExecution = (output, context) => {
23177
22741
  executionNumber: (0, smithy_client_1.expectLong)(output.executionNumber),
23178
22742
  forceCanceled: (0, smithy_client_1.expectBoolean)(output.forceCanceled),
23179
22743
  jobId: (0, smithy_client_1.expectString)(output.jobId),
23180
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
22744
+ lastUpdatedAt: output.lastUpdatedAt != null
23181
22745
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
23182
22746
  : undefined,
23183
- queuedAt: output.queuedAt !== undefined && output.queuedAt !== null
23184
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.queuedAt)))
23185
- : undefined,
23186
- startedAt: output.startedAt !== undefined && output.startedAt !== null
23187
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
23188
- : 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,
23189
22749
  status: (0, smithy_client_1.expectString)(output.status),
23190
- statusDetails: output.statusDetails !== undefined && output.statusDetails !== null
22750
+ statusDetails: output.statusDetails != null
23191
22751
  ? deserializeAws_restJson1JobExecutionStatusDetails(output.statusDetails, context)
23192
22752
  : undefined,
23193
22753
  thingArn: (0, smithy_client_1.expectString)(output.thingArn),
@@ -23196,14 +22756,12 @@ const deserializeAws_restJson1JobExecution = (output, context) => {
23196
22756
  };
23197
22757
  const deserializeAws_restJson1JobExecutionsRetryConfig = (output, context) => {
23198
22758
  return {
23199
- criteriaList: output.criteriaList !== undefined && output.criteriaList !== null
23200
- ? deserializeAws_restJson1RetryCriteriaList(output.criteriaList, context)
23201
- : undefined,
22759
+ criteriaList: output.criteriaList != null ? deserializeAws_restJson1RetryCriteriaList(output.criteriaList, context) : undefined,
23202
22760
  };
23203
22761
  };
23204
22762
  const deserializeAws_restJson1JobExecutionsRolloutConfig = (output, context) => {
23205
22763
  return {
23206
- exponentialRate: output.exponentialRate !== undefined && output.exponentialRate !== null
22764
+ exponentialRate: output.exponentialRate != null
23207
22765
  ? deserializeAws_restJson1ExponentialRolloutRate(output.exponentialRate, context)
23208
22766
  : undefined,
23209
22767
  maximumPerMinute: (0, smithy_client_1.expectInt32)(output.maximumPerMinute),
@@ -23211,30 +22769,24 @@ const deserializeAws_restJson1JobExecutionsRolloutConfig = (output, context) =>
23211
22769
  };
23212
22770
  const deserializeAws_restJson1JobExecutionStatusDetails = (output, context) => {
23213
22771
  return {
23214
- detailsMap: output.detailsMap !== undefined && output.detailsMap !== null
23215
- ? deserializeAws_restJson1DetailsMap(output.detailsMap, context)
23216
- : undefined,
22772
+ detailsMap: output.detailsMap != null ? deserializeAws_restJson1DetailsMap(output.detailsMap, context) : undefined,
23217
22773
  };
23218
22774
  };
23219
22775
  const deserializeAws_restJson1JobExecutionSummary = (output, context) => {
23220
22776
  return {
23221
22777
  executionNumber: (0, smithy_client_1.expectLong)(output.executionNumber),
23222
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
22778
+ lastUpdatedAt: output.lastUpdatedAt != null
23223
22779
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
23224
22780
  : undefined,
23225
- queuedAt: output.queuedAt !== undefined && output.queuedAt !== null
23226
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.queuedAt)))
23227
- : undefined,
22781
+ queuedAt: output.queuedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.queuedAt))) : undefined,
23228
22782
  retryAttempt: (0, smithy_client_1.expectInt32)(output.retryAttempt),
23229
- startedAt: output.startedAt !== undefined && output.startedAt !== null
23230
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt)))
23231
- : undefined,
22783
+ startedAt: output.startedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startedAt))) : undefined,
23232
22784
  status: (0, smithy_client_1.expectString)(output.status),
23233
22785
  };
23234
22786
  };
23235
22787
  const deserializeAws_restJson1JobExecutionSummaryForJob = (output, context) => {
23236
22788
  return {
23237
- jobExecutionSummary: output.jobExecutionSummary !== undefined && output.jobExecutionSummary !== null
22789
+ jobExecutionSummary: output.jobExecutionSummary != null
23238
22790
  ? deserializeAws_restJson1JobExecutionSummary(output.jobExecutionSummary, context)
23239
22791
  : undefined,
23240
22792
  thingArn: (0, smithy_client_1.expectString)(output.thingArn),
@@ -23253,7 +22805,7 @@ const deserializeAws_restJson1JobExecutionSummaryForJobList = (output, context)
23253
22805
  };
23254
22806
  const deserializeAws_restJson1JobExecutionSummaryForThing = (output, context) => {
23255
22807
  return {
23256
- jobExecutionSummary: output.jobExecutionSummary !== undefined && output.jobExecutionSummary !== null
22808
+ jobExecutionSummary: output.jobExecutionSummary != null
23257
22809
  ? deserializeAws_restJson1JobExecutionSummary(output.jobExecutionSummary, context)
23258
22810
  : undefined,
23259
22811
  jobId: (0, smithy_client_1.expectString)(output.jobId),
@@ -23280,23 +22832,21 @@ const deserializeAws_restJson1JobProcessDetails = (output, context) => {
23280
22832
  numberOfRemovedThings: (0, smithy_client_1.expectInt32)(output.numberOfRemovedThings),
23281
22833
  numberOfSucceededThings: (0, smithy_client_1.expectInt32)(output.numberOfSucceededThings),
23282
22834
  numberOfTimedOutThings: (0, smithy_client_1.expectInt32)(output.numberOfTimedOutThings),
23283
- processingTargets: output.processingTargets !== undefined && output.processingTargets !== null
22835
+ processingTargets: output.processingTargets != null
23284
22836
  ? deserializeAws_restJson1ProcessingTargetNameList(output.processingTargets, context)
23285
22837
  : undefined,
23286
22838
  };
23287
22839
  };
23288
22840
  const deserializeAws_restJson1JobSummary = (output, context) => {
23289
22841
  return {
23290
- completedAt: output.completedAt !== undefined && output.completedAt !== null
22842
+ completedAt: output.completedAt != null
23291
22843
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.completedAt)))
23292
22844
  : undefined,
23293
- createdAt: output.createdAt !== undefined && output.createdAt !== null
23294
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
23295
- : undefined,
22845
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
23296
22846
  isConcurrent: (0, smithy_client_1.expectBoolean)(output.isConcurrent),
23297
22847
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
23298
22848
  jobId: (0, smithy_client_1.expectString)(output.jobId),
23299
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
22849
+ lastUpdatedAt: output.lastUpdatedAt != null
23300
22850
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
23301
22851
  : undefined,
23302
22852
  status: (0, smithy_client_1.expectString)(output.status),
@@ -23328,9 +22878,7 @@ const deserializeAws_restJson1JobTargets = (output, context) => {
23328
22878
  };
23329
22879
  const deserializeAws_restJson1JobTemplateSummary = (output, context) => {
23330
22880
  return {
23331
- createdAt: output.createdAt !== undefined && output.createdAt !== null
23332
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
23333
- : undefined,
22881
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
23334
22882
  description: (0, smithy_client_1.expectString)(output.description),
23335
22883
  jobTemplateArn: (0, smithy_client_1.expectString)(output.jobTemplateArn),
23336
22884
  jobTemplateId: (0, smithy_client_1.expectString)(output.jobTemplateId),
@@ -23349,7 +22897,7 @@ const deserializeAws_restJson1JobTemplateSummaryList = (output, context) => {
23349
22897
  };
23350
22898
  const deserializeAws_restJson1KafkaAction = (output, context) => {
23351
22899
  return {
23352
- clientProperties: output.clientProperties !== undefined && output.clientProperties !== null
22900
+ clientProperties: output.clientProperties != null
23353
22901
  ? deserializeAws_restJson1ClientProperties(output.clientProperties, context)
23354
22902
  : undefined,
23355
22903
  destinationArn: (0, smithy_client_1.expectString)(output.destinationArn),
@@ -23385,9 +22933,7 @@ const deserializeAws_restJson1LogTarget = (output, context) => {
23385
22933
  const deserializeAws_restJson1LogTargetConfiguration = (output, context) => {
23386
22934
  return {
23387
22935
  logLevel: (0, smithy_client_1.expectString)(output.logLevel),
23388
- logTarget: output.logTarget !== undefined && output.logTarget !== null
23389
- ? deserializeAws_restJson1LogTarget(output.logTarget, context)
23390
- : undefined,
22936
+ logTarget: output.logTarget != null ? deserializeAws_restJson1LogTarget(output.logTarget, context) : undefined,
23391
22937
  };
23392
22938
  };
23393
22939
  const deserializeAws_restJson1LogTargetConfigurations = (output, context) => {
@@ -23420,9 +22966,7 @@ const deserializeAws_restJson1ManagedJobTemplatesSummaryList = (output, context)
23420
22966
  const deserializeAws_restJson1ManagedJobTemplateSummary = (output, context) => {
23421
22967
  return {
23422
22968
  description: (0, smithy_client_1.expectString)(output.description),
23423
- environments: output.environments !== undefined && output.environments !== null
23424
- ? deserializeAws_restJson1Environments(output.environments, context)
23425
- : undefined,
22969
+ environments: output.environments != null ? deserializeAws_restJson1Environments(output.environments, context) : undefined,
23426
22970
  templateArn: (0, smithy_client_1.expectString)(output.templateArn),
23427
22971
  templateName: (0, smithy_client_1.expectString)(output.templateName),
23428
22972
  templateVersion: (0, smithy_client_1.expectString)(output.templateVersion),
@@ -23430,12 +22974,8 @@ const deserializeAws_restJson1ManagedJobTemplateSummary = (output, context) => {
23430
22974
  };
23431
22975
  const deserializeAws_restJson1MetricDatum = (output, context) => {
23432
22976
  return {
23433
- timestamp: output.timestamp !== undefined && output.timestamp !== null
23434
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
23435
- : undefined,
23436
- value: output.value !== undefined && output.value !== null
23437
- ? deserializeAws_restJson1MetricValue(output.value, context)
23438
- : 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,
23439
22979
  };
23440
22980
  };
23441
22981
  const deserializeAws_restJson1MetricDatumList = (output, context) => {
@@ -23469,27 +23009,19 @@ const deserializeAws_restJson1MetricNames = (output, context) => {
23469
23009
  const deserializeAws_restJson1MetricToRetain = (output, context) => {
23470
23010
  return {
23471
23011
  metric: (0, smithy_client_1.expectString)(output.metric),
23472
- metricDimension: output.metricDimension !== undefined && output.metricDimension !== null
23012
+ metricDimension: output.metricDimension != null
23473
23013
  ? deserializeAws_restJson1MetricDimension(output.metricDimension, context)
23474
23014
  : undefined,
23475
23015
  };
23476
23016
  };
23477
23017
  const deserializeAws_restJson1MetricValue = (output, context) => {
23478
23018
  return {
23479
- cidrs: output.cidrs !== undefined && output.cidrs !== null
23480
- ? deserializeAws_restJson1Cidrs(output.cidrs, context)
23481
- : undefined,
23019
+ cidrs: output.cidrs != null ? deserializeAws_restJson1Cidrs(output.cidrs, context) : undefined,
23482
23020
  count: (0, smithy_client_1.expectLong)(output.count),
23483
23021
  number: (0, smithy_client_1.limitedParseDouble)(output.number),
23484
- numbers: output.numbers !== undefined && output.numbers !== null
23485
- ? deserializeAws_restJson1NumberList(output.numbers, context)
23486
- : undefined,
23487
- ports: output.ports !== undefined && output.ports !== null
23488
- ? deserializeAws_restJson1Ports(output.ports, context)
23489
- : undefined,
23490
- strings: output.strings !== undefined && output.strings !== null
23491
- ? deserializeAws_restJson1StringList(output.strings, context)
23492
- : 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,
23493
23025
  };
23494
23026
  };
23495
23027
  const deserializeAws_restJson1MissingContextValues = (output, context) => {
@@ -23505,7 +23037,7 @@ const deserializeAws_restJson1MissingContextValues = (output, context) => {
23505
23037
  };
23506
23038
  const deserializeAws_restJson1MitigationAction = (output, context) => {
23507
23039
  return {
23508
- actionParams: output.actionParams !== undefined && output.actionParams !== null
23040
+ actionParams: output.actionParams != null
23509
23041
  ? deserializeAws_restJson1MitigationActionParams(output.actionParams, context)
23510
23042
  : undefined,
23511
23043
  id: (0, smithy_client_1.expectString)(output.id),
@@ -23517,7 +23049,7 @@ const deserializeAws_restJson1MitigationActionIdentifier = (output, context) =>
23517
23049
  return {
23518
23050
  actionArn: (0, smithy_client_1.expectString)(output.actionArn),
23519
23051
  actionName: (0, smithy_client_1.expectString)(output.actionName),
23520
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23052
+ creationDate: output.creationDate != null
23521
23053
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23522
23054
  : undefined,
23523
23055
  };
@@ -23557,32 +23089,30 @@ const deserializeAws_restJson1MitigationActionNameList = (output, context) => {
23557
23089
  };
23558
23090
  const deserializeAws_restJson1MitigationActionParams = (output, context) => {
23559
23091
  return {
23560
- addThingsToThingGroupParams: output.addThingsToThingGroupParams !== undefined && output.addThingsToThingGroupParams !== null
23092
+ addThingsToThingGroupParams: output.addThingsToThingGroupParams != null
23561
23093
  ? deserializeAws_restJson1AddThingsToThingGroupParams(output.addThingsToThingGroupParams, context)
23562
23094
  : undefined,
23563
- enableIoTLoggingParams: output.enableIoTLoggingParams !== undefined && output.enableIoTLoggingParams !== null
23095
+ enableIoTLoggingParams: output.enableIoTLoggingParams != null
23564
23096
  ? deserializeAws_restJson1EnableIoTLoggingParams(output.enableIoTLoggingParams, context)
23565
23097
  : undefined,
23566
- publishFindingToSnsParams: output.publishFindingToSnsParams !== undefined && output.publishFindingToSnsParams !== null
23098
+ publishFindingToSnsParams: output.publishFindingToSnsParams != null
23567
23099
  ? deserializeAws_restJson1PublishFindingToSnsParams(output.publishFindingToSnsParams, context)
23568
23100
  : undefined,
23569
- replaceDefaultPolicyVersionParams: output.replaceDefaultPolicyVersionParams !== undefined && output.replaceDefaultPolicyVersionParams !== null
23101
+ replaceDefaultPolicyVersionParams: output.replaceDefaultPolicyVersionParams != null
23570
23102
  ? deserializeAws_restJson1ReplaceDefaultPolicyVersionParams(output.replaceDefaultPolicyVersionParams, context)
23571
23103
  : undefined,
23572
- updateCACertificateParams: output.updateCACertificateParams !== undefined && output.updateCACertificateParams !== null
23104
+ updateCACertificateParams: output.updateCACertificateParams != null
23573
23105
  ? deserializeAws_restJson1UpdateCACertificateParams(output.updateCACertificateParams, context)
23574
23106
  : undefined,
23575
- updateDeviceCertificateParams: output.updateDeviceCertificateParams !== undefined && output.updateDeviceCertificateParams !== null
23107
+ updateDeviceCertificateParams: output.updateDeviceCertificateParams != null
23576
23108
  ? deserializeAws_restJson1UpdateDeviceCertificateParams(output.updateDeviceCertificateParams, context)
23577
23109
  : undefined,
23578
23110
  };
23579
23111
  };
23580
23112
  const deserializeAws_restJson1NonCompliantResource = (output, context) => {
23581
23113
  return {
23582
- additionalInfo: output.additionalInfo !== undefined && output.additionalInfo !== null
23583
- ? deserializeAws_restJson1StringMap(output.additionalInfo, context)
23584
- : undefined,
23585
- resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
23114
+ additionalInfo: output.additionalInfo != null ? deserializeAws_restJson1StringMap(output.additionalInfo, context) : undefined,
23115
+ resourceIdentifier: output.resourceIdentifier != null
23586
23116
  ? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
23587
23117
  : undefined,
23588
23118
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
@@ -23610,15 +23140,9 @@ const deserializeAws_restJson1OpenSearchAction = (output, context) => {
23610
23140
  };
23611
23141
  const deserializeAws_restJson1OTAUpdateFile = (output, context) => {
23612
23142
  return {
23613
- attributes: output.attributes !== undefined && output.attributes !== null
23614
- ? deserializeAws_restJson1AttributesMap(output.attributes, context)
23615
- : undefined,
23616
- codeSigning: output.codeSigning !== undefined && output.codeSigning !== null
23617
- ? deserializeAws_restJson1CodeSigning(output.codeSigning, context)
23618
- : undefined,
23619
- fileLocation: output.fileLocation !== undefined && output.fileLocation !== null
23620
- ? deserializeAws_restJson1FileLocation(output.fileLocation, context)
23621
- : 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,
23622
23146
  fileName: (0, smithy_client_1.expectString)(output.fileName),
23623
23147
  fileType: (0, smithy_client_1.expectInt32)(output.fileType),
23624
23148
  fileVersion: (0, smithy_client_1.expectString)(output.fileVersion),
@@ -23637,40 +23161,34 @@ const deserializeAws_restJson1OTAUpdateFiles = (output, context) => {
23637
23161
  };
23638
23162
  const deserializeAws_restJson1OTAUpdateInfo = (output, context) => {
23639
23163
  return {
23640
- additionalParameters: output.additionalParameters !== undefined && output.additionalParameters !== null
23164
+ additionalParameters: output.additionalParameters != null
23641
23165
  ? deserializeAws_restJson1AdditionalParameterMap(output.additionalParameters, context)
23642
23166
  : undefined,
23643
23167
  awsIotJobArn: (0, smithy_client_1.expectString)(output.awsIotJobArn),
23644
23168
  awsIotJobId: (0, smithy_client_1.expectString)(output.awsIotJobId),
23645
- awsJobExecutionsRolloutConfig: output.awsJobExecutionsRolloutConfig !== undefined && output.awsJobExecutionsRolloutConfig !== null
23169
+ awsJobExecutionsRolloutConfig: output.awsJobExecutionsRolloutConfig != null
23646
23170
  ? deserializeAws_restJson1AwsJobExecutionsRolloutConfig(output.awsJobExecutionsRolloutConfig, context)
23647
23171
  : undefined,
23648
- awsJobPresignedUrlConfig: output.awsJobPresignedUrlConfig !== undefined && output.awsJobPresignedUrlConfig !== null
23172
+ awsJobPresignedUrlConfig: output.awsJobPresignedUrlConfig != null
23649
23173
  ? deserializeAws_restJson1AwsJobPresignedUrlConfig(output.awsJobPresignedUrlConfig, context)
23650
23174
  : undefined,
23651
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23175
+ creationDate: output.creationDate != null
23652
23176
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23653
23177
  : undefined,
23654
23178
  description: (0, smithy_client_1.expectString)(output.description),
23655
- errorInfo: output.errorInfo !== undefined && output.errorInfo !== null
23656
- ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context)
23657
- : undefined,
23658
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
23179
+ errorInfo: output.errorInfo != null ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context) : undefined,
23180
+ lastModifiedDate: output.lastModifiedDate != null
23659
23181
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
23660
23182
  : undefined,
23661
23183
  otaUpdateArn: (0, smithy_client_1.expectString)(output.otaUpdateArn),
23662
- otaUpdateFiles: output.otaUpdateFiles !== undefined && output.otaUpdateFiles !== null
23184
+ otaUpdateFiles: output.otaUpdateFiles != null
23663
23185
  ? deserializeAws_restJson1OTAUpdateFiles(output.otaUpdateFiles, context)
23664
23186
  : undefined,
23665
23187
  otaUpdateId: (0, smithy_client_1.expectString)(output.otaUpdateId),
23666
23188
  otaUpdateStatus: (0, smithy_client_1.expectString)(output.otaUpdateStatus),
23667
- protocols: output.protocols !== undefined && output.protocols !== null
23668
- ? deserializeAws_restJson1Protocols(output.protocols, context)
23669
- : undefined,
23189
+ protocols: output.protocols != null ? deserializeAws_restJson1Protocols(output.protocols, context) : undefined,
23670
23190
  targetSelection: (0, smithy_client_1.expectString)(output.targetSelection),
23671
- targets: output.targets !== undefined && output.targets !== null
23672
- ? deserializeAws_restJson1Targets(output.targets, context)
23673
- : undefined,
23191
+ targets: output.targets != null ? deserializeAws_restJson1Targets(output.targets, context) : undefined,
23674
23192
  };
23675
23193
  };
23676
23194
  const deserializeAws_restJson1OTAUpdatesSummary = (output, context) => {
@@ -23686,7 +23204,7 @@ const deserializeAws_restJson1OTAUpdatesSummary = (output, context) => {
23686
23204
  };
23687
23205
  const deserializeAws_restJson1OTAUpdateSummary = (output, context) => {
23688
23206
  return {
23689
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23207
+ creationDate: output.creationDate != null
23690
23208
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23691
23209
  : undefined,
23692
23210
  otaUpdateArn: (0, smithy_client_1.expectString)(output.otaUpdateArn),
@@ -23697,10 +23215,10 @@ const deserializeAws_restJson1OutgoingCertificate = (output, context) => {
23697
23215
  return {
23698
23216
  certificateArn: (0, smithy_client_1.expectString)(output.certificateArn),
23699
23217
  certificateId: (0, smithy_client_1.expectString)(output.certificateId),
23700
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23218
+ creationDate: output.creationDate != null
23701
23219
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23702
23220
  : undefined,
23703
- transferDate: output.transferDate !== undefined && output.transferDate !== null
23221
+ transferDate: output.transferDate != null
23704
23222
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.transferDate)))
23705
23223
  : undefined,
23706
23224
  transferMessage: (0, smithy_client_1.expectString)(output.transferMessage),
@@ -23787,9 +23305,7 @@ const deserializeAws_restJson1PolicyTargets = (output, context) => {
23787
23305
  };
23788
23306
  const deserializeAws_restJson1PolicyVersion = (output, context) => {
23789
23307
  return {
23790
- createDate: output.createDate !== undefined && output.createDate !== null
23791
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createDate)))
23792
- : undefined,
23308
+ createDate: output.createDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createDate))) : undefined,
23793
23309
  isDefaultVersion: (0, smithy_client_1.expectBoolean)(output.isDefaultVersion),
23794
23310
  versionId: (0, smithy_client_1.expectString)(output.versionId),
23795
23311
  };
@@ -23880,12 +23396,12 @@ const deserializeAws_restJson1ProvisioningTemplateListing = (output, context) =>
23880
23396
  };
23881
23397
  const deserializeAws_restJson1ProvisioningTemplateSummary = (output, context) => {
23882
23398
  return {
23883
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23399
+ creationDate: output.creationDate != null
23884
23400
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23885
23401
  : undefined,
23886
23402
  description: (0, smithy_client_1.expectString)(output.description),
23887
23403
  enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
23888
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
23404
+ lastModifiedDate: output.lastModifiedDate != null
23889
23405
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
23890
23406
  : undefined,
23891
23407
  templateArn: (0, smithy_client_1.expectString)(output.templateArn),
@@ -23905,7 +23421,7 @@ const deserializeAws_restJson1ProvisioningTemplateVersionListing = (output, cont
23905
23421
  };
23906
23422
  const deserializeAws_restJson1ProvisioningTemplateVersionSummary = (output, context) => {
23907
23423
  return {
23908
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23424
+ creationDate: output.creationDate != null
23909
23425
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
23910
23426
  : undefined,
23911
23427
  isDefaultVersion: (0, smithy_client_1.expectBoolean)(output.isDefaultVersion),
@@ -23934,7 +23450,7 @@ const deserializeAws_restJson1PutAssetPropertyValueEntry = (output, context) =>
23934
23450
  entryId: (0, smithy_client_1.expectString)(output.entryId),
23935
23451
  propertyAlias: (0, smithy_client_1.expectString)(output.propertyAlias),
23936
23452
  propertyId: (0, smithy_client_1.expectString)(output.propertyId),
23937
- propertyValues: output.propertyValues !== undefined && output.propertyValues !== null
23453
+ propertyValues: output.propertyValues != null
23938
23454
  ? deserializeAws_restJson1AssetPropertyValueList(output.propertyValues, context)
23939
23455
  : undefined,
23940
23456
  };
@@ -23980,10 +23496,8 @@ const deserializeAws_restJson1RegistrationConfig = (output, context) => {
23980
23496
  };
23981
23497
  const deserializeAws_restJson1RelatedResource = (output, context) => {
23982
23498
  return {
23983
- additionalInfo: output.additionalInfo !== undefined && output.additionalInfo !== null
23984
- ? deserializeAws_restJson1StringMap(output.additionalInfo, context)
23985
- : undefined,
23986
- resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
23499
+ additionalInfo: output.additionalInfo != null ? deserializeAws_restJson1StringMap(output.additionalInfo, context) : undefined,
23500
+ resourceIdentifier: output.resourceIdentifier != null
23987
23501
  ? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
23988
23502
  : undefined,
23989
23503
  resourceType: (0, smithy_client_1.expectString)(output.resourceType),
@@ -24031,7 +23545,7 @@ const deserializeAws_restJson1ResourceIdentifier = (output, context) => {
24031
23545
  cognitoIdentityPoolId: (0, smithy_client_1.expectString)(output.cognitoIdentityPoolId),
24032
23546
  deviceCertificateId: (0, smithy_client_1.expectString)(output.deviceCertificateId),
24033
23547
  iamRoleArn: (0, smithy_client_1.expectString)(output.iamRoleArn),
24034
- policyVersionIdentifier: output.policyVersionIdentifier !== undefined && output.policyVersionIdentifier !== null
23548
+ policyVersionIdentifier: output.policyVersionIdentifier != null
24035
23549
  ? deserializeAws_restJson1PolicyVersionIdentifier(output.policyVersionIdentifier, context)
24036
23550
  : undefined,
24037
23551
  roleAliasArn: (0, smithy_client_1.expectString)(output.roleAliasArn),
@@ -24067,11 +23581,11 @@ const deserializeAws_restJson1RetryCriteriaList = (output, context) => {
24067
23581
  };
24068
23582
  const deserializeAws_restJson1RoleAliasDescription = (output, context) => {
24069
23583
  return {
24070
- creationDate: output.creationDate !== undefined && output.creationDate !== null
23584
+ creationDate: output.creationDate != null
24071
23585
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
24072
23586
  : undefined,
24073
23587
  credentialDurationSeconds: (0, smithy_client_1.expectInt32)(output.credentialDurationSeconds),
24074
- lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
23588
+ lastModifiedDate: output.lastModifiedDate != null
24075
23589
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastModifiedDate)))
24076
23590
  : undefined,
24077
23591
  owner: (0, smithy_client_1.expectString)(output.owner),
@@ -24195,12 +23709,10 @@ const deserializeAws_restJson1SecurityProfileTarget = (output, context) => {
24195
23709
  };
24196
23710
  const deserializeAws_restJson1SecurityProfileTargetMapping = (output, context) => {
24197
23711
  return {
24198
- securityProfileIdentifier: output.securityProfileIdentifier !== undefined && output.securityProfileIdentifier !== null
23712
+ securityProfileIdentifier: output.securityProfileIdentifier != null
24199
23713
  ? deserializeAws_restJson1SecurityProfileIdentifier(output.securityProfileIdentifier, context)
24200
23714
  : undefined,
24201
- target: output.target !== undefined && output.target !== null
24202
- ? deserializeAws_restJson1SecurityProfileTarget(output.target, context)
24203
- : undefined,
23715
+ target: output.target != null ? deserializeAws_restJson1SecurityProfileTarget(output.target, context) : undefined,
24204
23716
  };
24205
23717
  };
24206
23718
  const deserializeAws_restJson1SecurityProfileTargetMappings = (output, context) => {
@@ -24273,11 +23785,9 @@ const deserializeAws_restJson1SqsAction = (output, context) => {
24273
23785
  };
24274
23786
  const deserializeAws_restJson1StartSigningJobParameter = (output, context) => {
24275
23787
  return {
24276
- destination: output.destination !== undefined && output.destination !== null
24277
- ? deserializeAws_restJson1Destination(output.destination, context)
24278
- : undefined,
23788
+ destination: output.destination != null ? deserializeAws_restJson1Destination(output.destination, context) : undefined,
24279
23789
  signingProfileName: (0, smithy_client_1.expectString)(output.signingProfileName),
24280
- signingProfileParameter: output.signingProfileParameter !== undefined && output.signingProfileParameter !== null
23790
+ signingProfileParameter: output.signingProfileParameter != null
24281
23791
  ? deserializeAws_restJson1SigningProfileParameter(output.signingProfileParameter, context)
24282
23792
  : undefined,
24283
23793
  };
@@ -24315,9 +23825,7 @@ const deserializeAws_restJson1_Stream = (output, context) => {
24315
23825
  const deserializeAws_restJson1StreamFile = (output, context) => {
24316
23826
  return {
24317
23827
  fileId: (0, smithy_client_1.expectInt32)(output.fileId),
24318
- s3Location: output.s3Location !== undefined && output.s3Location !== null
24319
- ? deserializeAws_restJson1S3Location(output.s3Location, context)
24320
- : undefined,
23828
+ s3Location: output.s3Location != null ? deserializeAws_restJson1S3Location(output.s3Location, context) : undefined,
24321
23829
  };
24322
23830
  };
24323
23831
  const deserializeAws_restJson1StreamFiles = (output, context) => {
@@ -24333,14 +23841,10 @@ const deserializeAws_restJson1StreamFiles = (output, context) => {
24333
23841
  };
24334
23842
  const deserializeAws_restJson1StreamInfo = (output, context) => {
24335
23843
  return {
24336
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24337
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24338
- : undefined,
23844
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
24339
23845
  description: (0, smithy_client_1.expectString)(output.description),
24340
- files: output.files !== undefined && output.files !== null
24341
- ? deserializeAws_restJson1StreamFiles(output.files, context)
24342
- : undefined,
24343
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
23846
+ files: output.files != null ? deserializeAws_restJson1StreamFiles(output.files, context) : undefined,
23847
+ lastUpdatedAt: output.lastUpdatedAt != null
24344
23848
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
24345
23849
  : undefined,
24346
23850
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -24484,9 +23988,7 @@ const deserializeAws_restJson1TaskStatisticsForAuditCheck = (output, context) =>
24484
23988
  };
24485
23989
  const deserializeAws_restJson1ThingAttribute = (output, context) => {
24486
23990
  return {
24487
- attributes: output.attributes !== undefined && output.attributes !== null
24488
- ? deserializeAws_restJson1Attributes(output.attributes, context)
24489
- : undefined,
23991
+ attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
24490
23992
  thingArn: (0, smithy_client_1.expectString)(output.thingArn),
24491
23993
  thingName: (0, smithy_client_1.expectString)(output.thingName),
24492
23994
  thingTypeName: (0, smithy_client_1.expectString)(output.thingTypeName),
@@ -24513,15 +24015,11 @@ const deserializeAws_restJson1ThingConnectivity = (output, context) => {
24513
24015
  };
24514
24016
  const deserializeAws_restJson1ThingDocument = (output, context) => {
24515
24017
  return {
24516
- attributes: output.attributes !== undefined && output.attributes !== null
24517
- ? deserializeAws_restJson1Attributes(output.attributes, context)
24518
- : undefined,
24519
- connectivity: output.connectivity !== undefined && output.connectivity !== null
24520
- ? deserializeAws_restJson1ThingConnectivity(output.connectivity, context)
24521
- : undefined,
24018
+ attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
24019
+ connectivity: output.connectivity != null ? deserializeAws_restJson1ThingConnectivity(output.connectivity, context) : undefined,
24522
24020
  deviceDefender: (0, smithy_client_1.expectString)(output.deviceDefender),
24523
24021
  shadow: (0, smithy_client_1.expectString)(output.shadow),
24524
- thingGroupNames: output.thingGroupNames !== undefined && output.thingGroupNames !== null
24022
+ thingGroupNames: output.thingGroupNames != null
24525
24023
  ? deserializeAws_restJson1ThingGroupNameList(output.thingGroupNames, context)
24526
24024
  : undefined,
24527
24025
  thingId: (0, smithy_client_1.expectString)(output.thingId),
@@ -24542,10 +24040,8 @@ const deserializeAws_restJson1ThingDocumentList = (output, context) => {
24542
24040
  };
24543
24041
  const deserializeAws_restJson1ThingGroupDocument = (output, context) => {
24544
24042
  return {
24545
- attributes: output.attributes !== undefined && output.attributes !== null
24546
- ? deserializeAws_restJson1Attributes(output.attributes, context)
24547
- : undefined,
24548
- parentGroupNames: output.parentGroupNames !== undefined && output.parentGroupNames !== null
24043
+ attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
24044
+ parentGroupNames: output.parentGroupNames != null
24549
24045
  ? deserializeAws_restJson1ThingGroupNameList(output.parentGroupNames, context)
24550
24046
  : undefined,
24551
24047
  thingGroupDescription: (0, smithy_client_1.expectString)(output.thingGroupDescription),
@@ -24566,22 +24062,18 @@ const deserializeAws_restJson1ThingGroupDocumentList = (output, context) => {
24566
24062
  };
24567
24063
  const deserializeAws_restJson1ThingGroupIndexingConfiguration = (output, context) => {
24568
24064
  return {
24569
- customFields: output.customFields !== undefined && output.customFields !== null
24570
- ? deserializeAws_restJson1Fields(output.customFields, context)
24571
- : undefined,
24572
- managedFields: output.managedFields !== undefined && output.managedFields !== null
24573
- ? deserializeAws_restJson1Fields(output.managedFields, context)
24574
- : undefined,
24065
+ customFields: output.customFields != null ? deserializeAws_restJson1Fields(output.customFields, context) : undefined,
24066
+ managedFields: output.managedFields != null ? deserializeAws_restJson1Fields(output.managedFields, context) : undefined,
24575
24067
  thingGroupIndexingMode: (0, smithy_client_1.expectString)(output.thingGroupIndexingMode),
24576
24068
  };
24577
24069
  };
24578
24070
  const deserializeAws_restJson1ThingGroupMetadata = (output, context) => {
24579
24071
  return {
24580
- creationDate: output.creationDate !== undefined && output.creationDate !== null
24072
+ creationDate: output.creationDate != null
24581
24073
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
24582
24074
  : undefined,
24583
24075
  parentGroupName: (0, smithy_client_1.expectString)(output.parentGroupName),
24584
- rootToParentThingGroups: output.rootToParentThingGroups !== undefined && output.rootToParentThingGroups !== null
24076
+ rootToParentThingGroups: output.rootToParentThingGroups != null
24585
24077
  ? deserializeAws_restJson1ThingGroupNameAndArnList(output.rootToParentThingGroups, context)
24586
24078
  : undefined,
24587
24079
  };
@@ -24621,7 +24113,7 @@ const deserializeAws_restJson1ThingGroupNames = (output, context) => {
24621
24113
  };
24622
24114
  const deserializeAws_restJson1ThingGroupProperties = (output, context) => {
24623
24115
  return {
24624
- attributePayload: output.attributePayload !== undefined && output.attributePayload !== null
24116
+ attributePayload: output.attributePayload != null
24625
24117
  ? deserializeAws_restJson1AttributePayload(output.attributePayload, context)
24626
24118
  : undefined,
24627
24119
  thingGroupDescription: (0, smithy_client_1.expectString)(output.thingGroupDescription),
@@ -24629,13 +24121,9 @@ const deserializeAws_restJson1ThingGroupProperties = (output, context) => {
24629
24121
  };
24630
24122
  const deserializeAws_restJson1ThingIndexingConfiguration = (output, context) => {
24631
24123
  return {
24632
- customFields: output.customFields !== undefined && output.customFields !== null
24633
- ? deserializeAws_restJson1Fields(output.customFields, context)
24634
- : undefined,
24124
+ customFields: output.customFields != null ? deserializeAws_restJson1Fields(output.customFields, context) : undefined,
24635
24125
  deviceDefenderIndexingMode: (0, smithy_client_1.expectString)(output.deviceDefenderIndexingMode),
24636
- managedFields: output.managedFields !== undefined && output.managedFields !== null
24637
- ? deserializeAws_restJson1Fields(output.managedFields, context)
24638
- : undefined,
24126
+ managedFields: output.managedFields != null ? deserializeAws_restJson1Fields(output.managedFields, context) : undefined,
24639
24127
  namedShadowIndexingMode: (0, smithy_client_1.expectString)(output.namedShadowIndexingMode),
24640
24128
  thingConnectivityIndexingMode: (0, smithy_client_1.expectString)(output.thingConnectivityIndexingMode),
24641
24129
  thingIndexingMode: (0, smithy_client_1.expectString)(output.thingIndexingMode),
@@ -24655,11 +24143,11 @@ const deserializeAws_restJson1ThingNameList = (output, context) => {
24655
24143
  const deserializeAws_restJson1ThingTypeDefinition = (output, context) => {
24656
24144
  return {
24657
24145
  thingTypeArn: (0, smithy_client_1.expectString)(output.thingTypeArn),
24658
- thingTypeMetadata: output.thingTypeMetadata !== undefined && output.thingTypeMetadata !== null
24146
+ thingTypeMetadata: output.thingTypeMetadata != null
24659
24147
  ? deserializeAws_restJson1ThingTypeMetadata(output.thingTypeMetadata, context)
24660
24148
  : undefined,
24661
24149
  thingTypeName: (0, smithy_client_1.expectString)(output.thingTypeName),
24662
- thingTypeProperties: output.thingTypeProperties !== undefined && output.thingTypeProperties !== null
24150
+ thingTypeProperties: output.thingTypeProperties != null
24663
24151
  ? deserializeAws_restJson1ThingTypeProperties(output.thingTypeProperties, context)
24664
24152
  : undefined,
24665
24153
  };
@@ -24677,18 +24165,18 @@ const deserializeAws_restJson1ThingTypeList = (output, context) => {
24677
24165
  };
24678
24166
  const deserializeAws_restJson1ThingTypeMetadata = (output, context) => {
24679
24167
  return {
24680
- creationDate: output.creationDate !== undefined && output.creationDate !== null
24168
+ creationDate: output.creationDate != null
24681
24169
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDate)))
24682
24170
  : undefined,
24683
24171
  deprecated: (0, smithy_client_1.expectBoolean)(output.deprecated),
24684
- deprecationDate: output.deprecationDate !== undefined && output.deprecationDate !== null
24172
+ deprecationDate: output.deprecationDate != null
24685
24173
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.deprecationDate)))
24686
24174
  : undefined,
24687
24175
  };
24688
24176
  };
24689
24177
  const deserializeAws_restJson1ThingTypeProperties = (output, context) => {
24690
24178
  return {
24691
- searchableAttributes: output.searchableAttributes !== undefined && output.searchableAttributes !== null
24179
+ searchableAttributes: output.searchableAttributes != null
24692
24180
  ? deserializeAws_restJson1SearchableAttributes(output.searchableAttributes, context)
24693
24181
  : undefined,
24694
24182
  thingTypeDescription: (0, smithy_client_1.expectString)(output.thingTypeDescription),
@@ -24702,14 +24190,12 @@ const deserializeAws_restJson1TimeoutConfig = (output, context) => {
24702
24190
  const deserializeAws_restJson1TimestreamAction = (output, context) => {
24703
24191
  return {
24704
24192
  databaseName: (0, smithy_client_1.expectString)(output.databaseName),
24705
- dimensions: output.dimensions !== undefined && output.dimensions !== null
24193
+ dimensions: output.dimensions != null
24706
24194
  ? deserializeAws_restJson1TimestreamDimensionList(output.dimensions, context)
24707
24195
  : undefined,
24708
24196
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
24709
24197
  tableName: (0, smithy_client_1.expectString)(output.tableName),
24710
- timestamp: output.timestamp !== undefined && output.timestamp !== null
24711
- ? deserializeAws_restJson1TimestreamTimestamp(output.timestamp, context)
24712
- : undefined,
24198
+ timestamp: output.timestamp != null ? deserializeAws_restJson1TimestreamTimestamp(output.timestamp, context) : undefined,
24713
24199
  };
24714
24200
  };
24715
24201
  const deserializeAws_restJson1TimestreamDimension = (output, context) => {
@@ -24737,17 +24223,11 @@ const deserializeAws_restJson1TimestreamTimestamp = (output, context) => {
24737
24223
  };
24738
24224
  const deserializeAws_restJson1TopicRule = (output, context) => {
24739
24225
  return {
24740
- actions: output.actions !== undefined && output.actions !== null
24741
- ? deserializeAws_restJson1ActionList(output.actions, context)
24742
- : undefined,
24226
+ actions: output.actions != null ? deserializeAws_restJson1ActionList(output.actions, context) : undefined,
24743
24227
  awsIotSqlVersion: (0, smithy_client_1.expectString)(output.awsIotSqlVersion),
24744
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24745
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24746
- : undefined,
24228
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
24747
24229
  description: (0, smithy_client_1.expectString)(output.description),
24748
- errorAction: output.errorAction !== undefined && output.errorAction !== null
24749
- ? deserializeAws_restJson1Action(output.errorAction, context)
24750
- : undefined,
24230
+ errorAction: output.errorAction != null ? deserializeAws_restJson1Action(output.errorAction, context) : undefined,
24751
24231
  ruleDisabled: (0, smithy_client_1.expectBoolean)(output.ruleDisabled),
24752
24232
  ruleName: (0, smithy_client_1.expectString)(output.ruleName),
24753
24233
  sql: (0, smithy_client_1.expectString)(output.sql),
@@ -24756,18 +24236,16 @@ const deserializeAws_restJson1TopicRule = (output, context) => {
24756
24236
  const deserializeAws_restJson1TopicRuleDestination = (output, context) => {
24757
24237
  return {
24758
24238
  arn: (0, smithy_client_1.expectString)(output.arn),
24759
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24760
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24761
- : undefined,
24762
- 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
24763
24241
  ? deserializeAws_restJson1HttpUrlDestinationProperties(output.httpUrlProperties, context)
24764
24242
  : undefined,
24765
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
24243
+ lastUpdatedAt: output.lastUpdatedAt != null
24766
24244
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
24767
24245
  : undefined,
24768
24246
  status: (0, smithy_client_1.expectString)(output.status),
24769
24247
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
24770
- vpcProperties: output.vpcProperties !== undefined && output.vpcProperties !== null
24248
+ vpcProperties: output.vpcProperties != null
24771
24249
  ? deserializeAws_restJson1VpcDestinationProperties(output.vpcProperties, context)
24772
24250
  : undefined,
24773
24251
  };
@@ -24786,18 +24264,16 @@ const deserializeAws_restJson1TopicRuleDestinationSummaries = (output, context)
24786
24264
  const deserializeAws_restJson1TopicRuleDestinationSummary = (output, context) => {
24787
24265
  return {
24788
24266
  arn: (0, smithy_client_1.expectString)(output.arn),
24789
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24790
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24791
- : undefined,
24792
- 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
24793
24269
  ? deserializeAws_restJson1HttpUrlDestinationSummary(output.httpUrlSummary, context)
24794
24270
  : undefined,
24795
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
24271
+ lastUpdatedAt: output.lastUpdatedAt != null
24796
24272
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
24797
24273
  : undefined,
24798
24274
  status: (0, smithy_client_1.expectString)(output.status),
24799
24275
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
24800
- vpcDestinationSummary: output.vpcDestinationSummary !== undefined && output.vpcDestinationSummary !== null
24276
+ vpcDestinationSummary: output.vpcDestinationSummary != null
24801
24277
  ? deserializeAws_restJson1VpcDestinationSummary(output.vpcDestinationSummary, context)
24802
24278
  : undefined,
24803
24279
  };
@@ -24815,9 +24291,7 @@ const deserializeAws_restJson1TopicRuleList = (output, context) => {
24815
24291
  };
24816
24292
  const deserializeAws_restJson1TopicRuleListItem = (output, context) => {
24817
24293
  return {
24818
- createdAt: output.createdAt !== undefined && output.createdAt !== null
24819
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
24820
- : undefined,
24294
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
24821
24295
  ruleArn: (0, smithy_client_1.expectString)(output.ruleArn),
24822
24296
  ruleDisabled: (0, smithy_client_1.expectBoolean)(output.ruleDisabled),
24823
24297
  ruleName: (0, smithy_client_1.expectString)(output.ruleName),
@@ -24826,14 +24300,10 @@ const deserializeAws_restJson1TopicRuleListItem = (output, context) => {
24826
24300
  };
24827
24301
  const deserializeAws_restJson1TransferData = (output, context) => {
24828
24302
  return {
24829
- acceptDate: output.acceptDate !== undefined && output.acceptDate !== null
24830
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.acceptDate)))
24831
- : undefined,
24832
- rejectDate: output.rejectDate !== undefined && output.rejectDate !== null
24833
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.rejectDate)))
24834
- : 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,
24835
24305
  rejectReason: (0, smithy_client_1.expectString)(output.rejectReason),
24836
- transferDate: output.transferDate !== undefined && output.transferDate !== null
24306
+ transferDate: output.transferDate != null
24837
24307
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.transferDate)))
24838
24308
  : undefined,
24839
24309
  transferMessage: (0, smithy_client_1.expectString)(output.transferMessage),
@@ -24867,20 +24337,16 @@ const deserializeAws_restJson1ValidationErrors = (output, context) => {
24867
24337
  };
24868
24338
  const deserializeAws_restJson1ViolationEvent = (output, context) => {
24869
24339
  return {
24870
- behavior: output.behavior !== undefined && output.behavior !== null
24871
- ? deserializeAws_restJson1Behavior(output.behavior, context)
24872
- : undefined,
24873
- metricValue: output.metricValue !== undefined && output.metricValue !== null
24874
- ? deserializeAws_restJson1MetricValue(output.metricValue, context)
24875
- : undefined,
24340
+ behavior: output.behavior != null ? deserializeAws_restJson1Behavior(output.behavior, context) : undefined,
24341
+ metricValue: output.metricValue != null ? deserializeAws_restJson1MetricValue(output.metricValue, context) : undefined,
24876
24342
  securityProfileName: (0, smithy_client_1.expectString)(output.securityProfileName),
24877
24343
  thingName: (0, smithy_client_1.expectString)(output.thingName),
24878
24344
  verificationState: (0, smithy_client_1.expectString)(output.verificationState),
24879
24345
  verificationStateDescription: (0, smithy_client_1.expectString)(output.verificationStateDescription),
24880
- violationEventAdditionalInfo: output.violationEventAdditionalInfo !== undefined && output.violationEventAdditionalInfo !== null
24346
+ violationEventAdditionalInfo: output.violationEventAdditionalInfo != null
24881
24347
  ? deserializeAws_restJson1ViolationEventAdditionalInfo(output.violationEventAdditionalInfo, context)
24882
24348
  : undefined,
24883
- violationEventTime: output.violationEventTime !== undefined && output.violationEventTime !== null
24349
+ violationEventTime: output.violationEventTime != null
24884
24350
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.violationEventTime)))
24885
24351
  : undefined,
24886
24352
  violationEventType: (0, smithy_client_1.expectString)(output.violationEventType),
@@ -24894,12 +24360,8 @@ const deserializeAws_restJson1ViolationEventAdditionalInfo = (output, context) =
24894
24360
  };
24895
24361
  const deserializeAws_restJson1ViolationEventOccurrenceRange = (output, context) => {
24896
24362
  return {
24897
- endTime: output.endTime !== undefined && output.endTime !== null
24898
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
24899
- : undefined,
24900
- startTime: output.startTime !== undefined && output.startTime !== null
24901
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
24902
- : 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,
24903
24365
  };
24904
24366
  };
24905
24367
  const deserializeAws_restJson1ViolationEvents = (output, context) => {
@@ -24916,24 +24378,20 @@ const deserializeAws_restJson1ViolationEvents = (output, context) => {
24916
24378
  const deserializeAws_restJson1VpcDestinationProperties = (output, context) => {
24917
24379
  return {
24918
24380
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
24919
- securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
24381
+ securityGroups: output.securityGroups != null
24920
24382
  ? deserializeAws_restJson1SecurityGroupList(output.securityGroups, context)
24921
24383
  : undefined,
24922
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
24923
- ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
24924
- : undefined,
24384
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
24925
24385
  vpcId: (0, smithy_client_1.expectString)(output.vpcId),
24926
24386
  };
24927
24387
  };
24928
24388
  const deserializeAws_restJson1VpcDestinationSummary = (output, context) => {
24929
24389
  return {
24930
24390
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
24931
- securityGroups: output.securityGroups !== undefined && output.securityGroups !== null
24391
+ securityGroups: output.securityGroups != null
24932
24392
  ? deserializeAws_restJson1SecurityGroupList(output.securityGroups, context)
24933
24393
  : undefined,
24934
- subnetIds: output.subnetIds !== undefined && output.subnetIds !== null
24935
- ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
24936
- : undefined,
24394
+ subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
24937
24395
  vpcId: (0, smithy_client_1.expectString)(output.vpcId),
24938
24396
  };
24939
24397
  };