@aws-sdk/client-iot 3.125.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +866 -1408
- package/dist-es/protocols/Aws_restJson1.js +515 -1057
- package/package.json +26 -26
|
@@ -51,9 +51,7 @@ export var serializeAws_restJson1AddThingToBillingGroupCommand = function (input
|
|
|
51
51
|
"content-type": "application/json",
|
|
52
52
|
};
|
|
53
53
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/billing-groups/addThingToBillingGroup";
|
|
54
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.billingGroupArn
|
|
55
|
-
input.billingGroupArn !== null && { billingGroupArn: input.billingGroupArn })), (input.billingGroupName !== undefined &&
|
|
56
|
-
input.billingGroupName !== null && { billingGroupName: input.billingGroupName })), (input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName })));
|
|
54
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.billingGroupArn != null && { billingGroupArn: input.billingGroupArn })), (input.billingGroupName != null && { billingGroupName: input.billingGroupName })), (input.thingArn != null && { thingArn: input.thingArn })), (input.thingName != null && { thingName: input.thingName })));
|
|
57
55
|
return [2, new __HttpRequest({
|
|
58
56
|
protocol: protocol,
|
|
59
57
|
hostname: hostname,
|
|
@@ -77,9 +75,7 @@ export var serializeAws_restJson1AddThingToThingGroupCommand = function (input,
|
|
|
77
75
|
"content-type": "application/json",
|
|
78
76
|
};
|
|
79
77
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/addThingToThingGroup";
|
|
80
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.overrideDynamicGroups
|
|
81
|
-
input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn })), (input.thingGroupArn !== undefined && input.thingGroupArn !== null && { thingGroupArn: input.thingGroupArn })), (input.thingGroupName !== undefined &&
|
|
82
|
-
input.thingGroupName !== null && { thingGroupName: input.thingGroupName })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName })));
|
|
78
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingArn != null && { thingArn: input.thingArn })), (input.thingGroupArn != null && { thingGroupArn: input.thingGroupArn })), (input.thingGroupName != null && { thingGroupName: input.thingGroupName })), (input.thingName != null && { thingName: input.thingName })));
|
|
83
79
|
return [2, new __HttpRequest({
|
|
84
80
|
protocol: protocol,
|
|
85
81
|
hostname: hostname,
|
|
@@ -114,8 +110,7 @@ export var serializeAws_restJson1AssociateTargetsWithJobCommand = function (inpu
|
|
|
114
110
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
115
111
|
}
|
|
116
112
|
query = __assign({}, (input.namespaceId !== undefined && { namespaceId: input.namespaceId }));
|
|
117
|
-
body = JSON.stringify(__assign(__assign({}, (input.comment
|
|
118
|
-
input.targets !== null && { targets: serializeAws_restJson1JobTargets(input.targets, context) })));
|
|
113
|
+
body = JSON.stringify(__assign(__assign({}, (input.comment != null && { comment: input.comment })), (input.targets != null && { targets: serializeAws_restJson1JobTargets(input.targets, context) })));
|
|
119
114
|
return [2, new __HttpRequest({
|
|
120
115
|
protocol: protocol,
|
|
121
116
|
hostname: hostname,
|
|
@@ -150,7 +145,7 @@ export var serializeAws_restJson1AttachPolicyCommand = function (input, context)
|
|
|
150
145
|
else {
|
|
151
146
|
throw new Error("No value provided for input HTTP label: policyName.");
|
|
152
147
|
}
|
|
153
|
-
body = JSON.stringify(__assign({}, (input.target
|
|
148
|
+
body = JSON.stringify(__assign({}, (input.target != null && { target: input.target })));
|
|
154
149
|
return [2, new __HttpRequest({
|
|
155
150
|
protocol: protocol,
|
|
156
151
|
hostname: hostname,
|
|
@@ -408,7 +403,7 @@ export var serializeAws_restJson1CancelJobCommand = function (input, context) {
|
|
|
408
403
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
409
404
|
}
|
|
410
405
|
query = __assign({}, (input.force !== undefined && { force: input.force.toString() }));
|
|
411
|
-
body = JSON.stringify(__assign(__assign({}, (input.comment
|
|
406
|
+
body = JSON.stringify(__assign(__assign({}, (input.comment != null && { comment: input.comment })), (input.reasonCode != null && { reasonCode: input.reasonCode })));
|
|
412
407
|
return [2, new __HttpRequest({
|
|
413
408
|
protocol: protocol,
|
|
414
409
|
hostname: hostname,
|
|
@@ -454,9 +449,7 @@ export var serializeAws_restJson1CancelJobExecutionCommand = function (input, co
|
|
|
454
449
|
throw new Error("No value provided for input HTTP label: thingName.");
|
|
455
450
|
}
|
|
456
451
|
query = __assign({}, (input.force !== undefined && { force: input.force.toString() }));
|
|
457
|
-
body = JSON.stringify(__assign(__assign({}, (input.expectedVersion
|
|
458
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })), (input.statusDetails !== undefined &&
|
|
459
|
-
input.statusDetails !== null && {
|
|
452
|
+
body = JSON.stringify(__assign(__assign({}, (input.expectedVersion != null && { expectedVersion: input.expectedVersion })), (input.statusDetails != null && {
|
|
460
453
|
statusDetails: serializeAws_restJson1DetailsMap(input.statusDetails, context),
|
|
461
454
|
})));
|
|
462
455
|
return [2, new __HttpRequest({
|
|
@@ -542,12 +535,9 @@ export var serializeAws_restJson1CreateAuditSuppressionCommand = function (input
|
|
|
542
535
|
"content-type": "application/json",
|
|
543
536
|
};
|
|
544
537
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/create";
|
|
545
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.checkName
|
|
546
|
-
input.expirationDate !== null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) })), (input.resourceIdentifier !== undefined &&
|
|
547
|
-
input.resourceIdentifier !== null && {
|
|
538
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.checkName != null && { checkName: input.checkName })), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description != null && { description: input.description })), (input.expirationDate != null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) })), (input.resourceIdentifier != null && {
|
|
548
539
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
549
|
-
})), (input.suppressIndefinitely
|
|
550
|
-
input.suppressIndefinitely !== null && { suppressIndefinitely: input.suppressIndefinitely })));
|
|
540
|
+
})), (input.suppressIndefinitely != null && { suppressIndefinitely: input.suppressIndefinitely })));
|
|
551
541
|
return [2, new __HttpRequest({
|
|
552
542
|
protocol: protocol,
|
|
553
543
|
hostname: hostname,
|
|
@@ -581,12 +571,7 @@ export var serializeAws_restJson1CreateAuthorizerCommand = function (input, cont
|
|
|
581
571
|
else {
|
|
582
572
|
throw new Error("No value provided for input HTTP label: authorizerName.");
|
|
583
573
|
}
|
|
584
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn
|
|
585
|
-
input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.enableCachingForHttp !== undefined &&
|
|
586
|
-
input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp })), (input.signingDisabled !== undefined &&
|
|
587
|
-
input.signingDisabled !== null && { signingDisabled: input.signingDisabled })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.tags !== undefined &&
|
|
588
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName })), (input.tokenSigningPublicKeys !== undefined &&
|
|
589
|
-
input.tokenSigningPublicKeys !== null && {
|
|
574
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn != null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.enableCachingForHttp != null && { enableCachingForHttp: input.enableCachingForHttp })), (input.signingDisabled != null && { signingDisabled: input.signingDisabled })), (input.status != null && { status: input.status })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.tokenKeyName != null && { tokenKeyName: input.tokenKeyName })), (input.tokenSigningPublicKeys != null && {
|
|
590
575
|
tokenSigningPublicKeys: serializeAws_restJson1PublicKeyMap(input.tokenSigningPublicKeys, context),
|
|
591
576
|
})));
|
|
592
577
|
return [2, new __HttpRequest({
|
|
@@ -622,11 +607,9 @@ export var serializeAws_restJson1CreateBillingGroupCommand = function (input, co
|
|
|
622
607
|
else {
|
|
623
608
|
throw new Error("No value provided for input HTTP label: billingGroupName.");
|
|
624
609
|
}
|
|
625
|
-
body = JSON.stringify(__assign(__assign({}, (input.billingGroupProperties
|
|
626
|
-
input.billingGroupProperties !== null && {
|
|
610
|
+
body = JSON.stringify(__assign(__assign({}, (input.billingGroupProperties != null && {
|
|
627
611
|
billingGroupProperties: serializeAws_restJson1BillingGroupProperties(input.billingGroupProperties, context),
|
|
628
|
-
})), (input.tags
|
|
629
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
612
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
630
613
|
return [2, new __HttpRequest({
|
|
631
614
|
protocol: protocol,
|
|
632
615
|
hostname: hostname,
|
|
@@ -651,8 +634,7 @@ export var serializeAws_restJson1CreateCertificateFromCsrCommand = function (inp
|
|
|
651
634
|
};
|
|
652
635
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificates";
|
|
653
636
|
query = __assign({}, (input.setAsActive !== undefined && { setAsActive: input.setAsActive.toString() }));
|
|
654
|
-
body = JSON.stringify(__assign({}, (input.certificateSigningRequest
|
|
655
|
-
input.certificateSigningRequest !== null && { certificateSigningRequest: input.certificateSigningRequest })));
|
|
637
|
+
body = JSON.stringify(__assign({}, (input.certificateSigningRequest != null && { certificateSigningRequest: input.certificateSigningRequest })));
|
|
656
638
|
return [2, new __HttpRequest({
|
|
657
639
|
protocol: protocol,
|
|
658
640
|
hostname: hostname,
|
|
@@ -688,8 +670,7 @@ export var serializeAws_restJson1CreateCustomMetricCommand = function (input, co
|
|
|
688
670
|
else {
|
|
689
671
|
throw new Error("No value provided for input HTTP label: metricName.");
|
|
690
672
|
}
|
|
691
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.displayName
|
|
692
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
673
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.displayName != null && { displayName: input.displayName })), (input.metricType != null && { metricType: input.metricType })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
693
674
|
return [2, new __HttpRequest({
|
|
694
675
|
protocol: protocol,
|
|
695
676
|
hostname: hostname,
|
|
@@ -724,11 +705,9 @@ export var serializeAws_restJson1CreateDimensionCommand = function (input, conte
|
|
|
724
705
|
else {
|
|
725
706
|
throw new Error("No value provided for input HTTP label: name.");
|
|
726
707
|
}
|
|
727
|
-
body = JSON.stringify(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.stringValues
|
|
728
|
-
input.stringValues !== null && {
|
|
708
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.stringValues != null && {
|
|
729
709
|
stringValues: serializeAws_restJson1DimensionStringValues(input.stringValues, context),
|
|
730
|
-
})), (input.tags
|
|
731
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })));
|
|
710
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.type != null && { type: input.type })));
|
|
732
711
|
return [2, new __HttpRequest({
|
|
733
712
|
protocol: protocol,
|
|
734
713
|
hostname: hostname,
|
|
@@ -763,15 +742,11 @@ export var serializeAws_restJson1CreateDomainConfigurationCommand = function (in
|
|
|
763
742
|
else {
|
|
764
743
|
throw new Error("No value provided for input HTTP label: domainConfigurationName.");
|
|
765
744
|
}
|
|
766
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerConfig
|
|
767
|
-
input.authorizerConfig !== null && {
|
|
745
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerConfig != null && {
|
|
768
746
|
authorizerConfig: serializeAws_restJson1AuthorizerConfig(input.authorizerConfig, context),
|
|
769
|
-
})), (input.domainName
|
|
770
|
-
input.serverCertificateArns !== null && {
|
|
747
|
+
})), (input.domainName != null && { domainName: input.domainName })), (input.serverCertificateArns != null && {
|
|
771
748
|
serverCertificateArns: serializeAws_restJson1ServerCertificateArns(input.serverCertificateArns, context),
|
|
772
|
-
})), (input.serviceType
|
|
773
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.validationCertificateArn !== undefined &&
|
|
774
|
-
input.validationCertificateArn !== null && { validationCertificateArn: input.validationCertificateArn })));
|
|
749
|
+
})), (input.serviceType != null && { serviceType: input.serviceType })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.validationCertificateArn != null && { validationCertificateArn: input.validationCertificateArn })));
|
|
775
750
|
return [2, new __HttpRequest({
|
|
776
751
|
protocol: protocol,
|
|
777
752
|
hostname: hostname,
|
|
@@ -805,9 +780,7 @@ export var serializeAws_restJson1CreateDynamicThingGroupCommand = function (inpu
|
|
|
805
780
|
else {
|
|
806
781
|
throw new Error("No value provided for input HTTP label: thingGroupName.");
|
|
807
782
|
}
|
|
808
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.indexName
|
|
809
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.thingGroupProperties !== undefined &&
|
|
810
|
-
input.thingGroupProperties !== null && {
|
|
783
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.indexName != null && { indexName: input.indexName })), (input.queryString != null && { queryString: input.queryString })), (input.queryVersion != null && { queryVersion: input.queryVersion })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.thingGroupProperties != null && {
|
|
811
784
|
thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
|
|
812
785
|
})));
|
|
813
786
|
return [2, new __HttpRequest({
|
|
@@ -843,12 +816,9 @@ export var serializeAws_restJson1CreateFleetMetricCommand = function (input, con
|
|
|
843
816
|
else {
|
|
844
817
|
throw new Error("No value provided for input HTTP label: metricName.");
|
|
845
818
|
}
|
|
846
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField
|
|
847
|
-
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.aggregationType !== undefined &&
|
|
848
|
-
input.aggregationType !== null && {
|
|
819
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField != null && { aggregationField: input.aggregationField })), (input.aggregationType != null && {
|
|
849
820
|
aggregationType: serializeAws_restJson1AggregationType(input.aggregationType, context),
|
|
850
|
-
})), (input.description
|
|
851
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.unit !== undefined && input.unit !== null && { unit: input.unit })));
|
|
821
|
+
})), (input.description != null && { description: input.description })), (input.indexName != null && { indexName: input.indexName })), (input.period != null && { period: input.period })), (input.queryString != null && { queryString: input.queryString })), (input.queryVersion != null && { queryVersion: input.queryVersion })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.unit != null && { unit: input.unit })));
|
|
852
822
|
return [2, new __HttpRequest({
|
|
853
823
|
protocol: protocol,
|
|
854
824
|
hostname: hostname,
|
|
@@ -882,26 +852,15 @@ export var serializeAws_restJson1CreateJobCommand = function (input, context) {
|
|
|
882
852
|
else {
|
|
883
853
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
884
854
|
}
|
|
885
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.abortConfig
|
|
886
|
-
input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.document !== undefined && input.document !== null && { document: input.document })), (input.documentParameters !== undefined &&
|
|
887
|
-
input.documentParameters !== null && {
|
|
855
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.abortConfig != null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) })), (input.description != null && { description: input.description })), (input.document != null && { document: input.document })), (input.documentParameters != null && {
|
|
888
856
|
documentParameters: serializeAws_restJson1ParameterMap(input.documentParameters, context),
|
|
889
|
-
})), (input.documentSource
|
|
890
|
-
input.documentSource !== null && { documentSource: input.documentSource })), (input.jobExecutionsRetryConfig !== undefined &&
|
|
891
|
-
input.jobExecutionsRetryConfig !== null && {
|
|
857
|
+
})), (input.documentSource != null && { documentSource: input.documentSource })), (input.jobExecutionsRetryConfig != null && {
|
|
892
858
|
jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
|
|
893
|
-
})), (input.jobExecutionsRolloutConfig
|
|
894
|
-
input.jobExecutionsRolloutConfig !== null && {
|
|
859
|
+
})), (input.jobExecutionsRolloutConfig != null && {
|
|
895
860
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
896
|
-
})), (input.jobTemplateArn
|
|
897
|
-
input.jobTemplateArn !== null && { jobTemplateArn: input.jobTemplateArn })), (input.namespaceId !== undefined && input.namespaceId !== null && { namespaceId: input.namespaceId })), (input.presignedUrlConfig !== undefined &&
|
|
898
|
-
input.presignedUrlConfig !== null && {
|
|
861
|
+
})), (input.jobTemplateArn != null && { jobTemplateArn: input.jobTemplateArn })), (input.namespaceId != null && { namespaceId: input.namespaceId })), (input.presignedUrlConfig != null && {
|
|
899
862
|
presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
|
|
900
|
-
})), (input.tags
|
|
901
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.targetSelection !== undefined &&
|
|
902
|
-
input.targetSelection !== null && { targetSelection: input.targetSelection })), (input.targets !== undefined &&
|
|
903
|
-
input.targets !== null && { targets: serializeAws_restJson1JobTargets(input.targets, context) })), (input.timeoutConfig !== undefined &&
|
|
904
|
-
input.timeoutConfig !== null && {
|
|
863
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.targetSelection != null && { targetSelection: input.targetSelection })), (input.targets != null && { targets: serializeAws_restJson1JobTargets(input.targets, context) })), (input.timeoutConfig != null && {
|
|
905
864
|
timeoutConfig: serializeAws_restJson1TimeoutConfig(input.timeoutConfig, context),
|
|
906
865
|
})));
|
|
907
866
|
return [2, new __HttpRequest({
|
|
@@ -937,20 +896,13 @@ export var serializeAws_restJson1CreateJobTemplateCommand = function (input, con
|
|
|
937
896
|
else {
|
|
938
897
|
throw new Error("No value provided for input HTTP label: jobTemplateId.");
|
|
939
898
|
}
|
|
940
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.abortConfig
|
|
941
|
-
input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.document !== undefined && input.document !== null && { document: input.document })), (input.documentSource !== undefined &&
|
|
942
|
-
input.documentSource !== null && { documentSource: input.documentSource })), (input.jobArn !== undefined && input.jobArn !== null && { jobArn: input.jobArn })), (input.jobExecutionsRetryConfig !== undefined &&
|
|
943
|
-
input.jobExecutionsRetryConfig !== null && {
|
|
899
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.abortConfig != null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) })), (input.description != null && { description: input.description })), (input.document != null && { document: input.document })), (input.documentSource != null && { documentSource: input.documentSource })), (input.jobArn != null && { jobArn: input.jobArn })), (input.jobExecutionsRetryConfig != null && {
|
|
944
900
|
jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
|
|
945
|
-
})), (input.jobExecutionsRolloutConfig
|
|
946
|
-
input.jobExecutionsRolloutConfig !== null && {
|
|
901
|
+
})), (input.jobExecutionsRolloutConfig != null && {
|
|
947
902
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
948
|
-
})), (input.presignedUrlConfig
|
|
949
|
-
input.presignedUrlConfig !== null && {
|
|
903
|
+
})), (input.presignedUrlConfig != null && {
|
|
950
904
|
presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
|
|
951
|
-
})), (input.tags
|
|
952
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.timeoutConfig !== undefined &&
|
|
953
|
-
input.timeoutConfig !== null && {
|
|
905
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.timeoutConfig != null && {
|
|
954
906
|
timeoutConfig: serializeAws_restJson1TimeoutConfig(input.timeoutConfig, context),
|
|
955
907
|
})));
|
|
956
908
|
return [2, new __HttpRequest({
|
|
@@ -1009,11 +961,9 @@ export var serializeAws_restJson1CreateMitigationActionCommand = function (input
|
|
|
1009
961
|
else {
|
|
1010
962
|
throw new Error("No value provided for input HTTP label: actionName.");
|
|
1011
963
|
}
|
|
1012
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.actionParams
|
|
1013
|
-
input.actionParams !== null && {
|
|
964
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.actionParams != null && {
|
|
1014
965
|
actionParams: serializeAws_restJson1MitigationActionParams(input.actionParams, context),
|
|
1015
|
-
})), (input.roleArn
|
|
1016
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
966
|
+
})), (input.roleArn != null && { roleArn: input.roleArn })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1017
967
|
return [2, new __HttpRequest({
|
|
1018
968
|
protocol: protocol,
|
|
1019
969
|
hostname: hostname,
|
|
@@ -1047,27 +997,17 @@ export var serializeAws_restJson1CreateOTAUpdateCommand = function (input, conte
|
|
|
1047
997
|
else {
|
|
1048
998
|
throw new Error("No value provided for input HTTP label: otaUpdateId.");
|
|
1049
999
|
}
|
|
1050
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalParameters
|
|
1051
|
-
input.additionalParameters !== null && {
|
|
1000
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalParameters != null && {
|
|
1052
1001
|
additionalParameters: serializeAws_restJson1AdditionalParameterMap(input.additionalParameters, context),
|
|
1053
|
-
})), (input.awsJobAbortConfig
|
|
1054
|
-
input.awsJobAbortConfig !== null && {
|
|
1002
|
+
})), (input.awsJobAbortConfig != null && {
|
|
1055
1003
|
awsJobAbortConfig: serializeAws_restJson1AwsJobAbortConfig(input.awsJobAbortConfig, context),
|
|
1056
|
-
})), (input.awsJobExecutionsRolloutConfig
|
|
1057
|
-
input.awsJobExecutionsRolloutConfig !== null && {
|
|
1004
|
+
})), (input.awsJobExecutionsRolloutConfig != null && {
|
|
1058
1005
|
awsJobExecutionsRolloutConfig: serializeAws_restJson1AwsJobExecutionsRolloutConfig(input.awsJobExecutionsRolloutConfig, context),
|
|
1059
|
-
})), (input.awsJobPresignedUrlConfig
|
|
1060
|
-
input.awsJobPresignedUrlConfig !== null && {
|
|
1006
|
+
})), (input.awsJobPresignedUrlConfig != null && {
|
|
1061
1007
|
awsJobPresignedUrlConfig: serializeAws_restJson1AwsJobPresignedUrlConfig(input.awsJobPresignedUrlConfig, context),
|
|
1062
|
-
})), (input.awsJobTimeoutConfig
|
|
1063
|
-
input.awsJobTimeoutConfig !== null && {
|
|
1008
|
+
})), (input.awsJobTimeoutConfig != null && {
|
|
1064
1009
|
awsJobTimeoutConfig: serializeAws_restJson1AwsJobTimeoutConfig(input.awsJobTimeoutConfig, context),
|
|
1065
|
-
})), (input.description
|
|
1066
|
-
input.files !== null && { files: serializeAws_restJson1OTAUpdateFiles(input.files, context) })), (input.protocols !== undefined &&
|
|
1067
|
-
input.protocols !== null && { protocols: serializeAws_restJson1Protocols(input.protocols, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.tags !== undefined &&
|
|
1068
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.targetSelection !== undefined &&
|
|
1069
|
-
input.targetSelection !== null && { targetSelection: input.targetSelection })), (input.targets !== undefined &&
|
|
1070
|
-
input.targets !== null && { targets: serializeAws_restJson1Targets(input.targets, context) })));
|
|
1010
|
+
})), (input.description != null && { description: input.description })), (input.files != null && { files: serializeAws_restJson1OTAUpdateFiles(input.files, context) })), (input.protocols != null && { protocols: serializeAws_restJson1Protocols(input.protocols, context) })), (input.roleArn != null && { roleArn: input.roleArn })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.targetSelection != null && { targetSelection: input.targetSelection })), (input.targets != null && { targets: serializeAws_restJson1Targets(input.targets, context) })));
|
|
1071
1011
|
return [2, new __HttpRequest({
|
|
1072
1012
|
protocol: protocol,
|
|
1073
1013
|
hostname: hostname,
|
|
@@ -1101,9 +1041,7 @@ export var serializeAws_restJson1CreatePolicyCommand = function (input, context)
|
|
|
1101
1041
|
else {
|
|
1102
1042
|
throw new Error("No value provided for input HTTP label: policyName.");
|
|
1103
1043
|
}
|
|
1104
|
-
body = JSON.stringify(__assign(__assign({}, (input.policyDocument
|
|
1105
|
-
input.policyDocument !== null && { policyDocument: input.policyDocument })), (input.tags !== undefined &&
|
|
1106
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1044
|
+
body = JSON.stringify(__assign(__assign({}, (input.policyDocument != null && { policyDocument: input.policyDocument })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1107
1045
|
return [2, new __HttpRequest({
|
|
1108
1046
|
protocol: protocol,
|
|
1109
1047
|
hostname: hostname,
|
|
@@ -1138,8 +1076,7 @@ export var serializeAws_restJson1CreatePolicyVersionCommand = function (input, c
|
|
|
1138
1076
|
throw new Error("No value provided for input HTTP label: policyName.");
|
|
1139
1077
|
}
|
|
1140
1078
|
query = __assign({}, (input.setAsDefault !== undefined && { setAsDefault: input.setAsDefault.toString() }));
|
|
1141
|
-
body = JSON.stringify(__assign({}, (input.policyDocument
|
|
1142
|
-
input.policyDocument !== null && { policyDocument: input.policyDocument })));
|
|
1079
|
+
body = JSON.stringify(__assign({}, (input.policyDocument != null && { policyDocument: input.policyDocument })));
|
|
1143
1080
|
return [2, new __HttpRequest({
|
|
1144
1081
|
protocol: protocol,
|
|
1145
1082
|
hostname: hostname,
|
|
@@ -1196,12 +1133,9 @@ export var serializeAws_restJson1CreateProvisioningTemplateCommand = function (i
|
|
|
1196
1133
|
"content-type": "application/json",
|
|
1197
1134
|
};
|
|
1198
1135
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/provisioning-templates";
|
|
1199
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description
|
|
1200
|
-
input.preProvisioningHook !== null && {
|
|
1136
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.enabled != null && { enabled: input.enabled })), (input.preProvisioningHook != null && {
|
|
1201
1137
|
preProvisioningHook: serializeAws_restJson1ProvisioningHook(input.preProvisioningHook, context),
|
|
1202
|
-
})), (input.provisioningRoleArn
|
|
1203
|
-
input.provisioningRoleArn !== null && { provisioningRoleArn: input.provisioningRoleArn })), (input.tags !== undefined &&
|
|
1204
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName })));
|
|
1138
|
+
})), (input.provisioningRoleArn != null && { provisioningRoleArn: input.provisioningRoleArn })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.templateBody != null && { templateBody: input.templateBody })), (input.templateName != null && { templateName: input.templateName })));
|
|
1205
1139
|
return [2, new __HttpRequest({
|
|
1206
1140
|
protocol: protocol,
|
|
1207
1141
|
hostname: hostname,
|
|
@@ -1237,7 +1171,7 @@ export var serializeAws_restJson1CreateProvisioningTemplateVersionCommand = func
|
|
|
1237
1171
|
throw new Error("No value provided for input HTTP label: templateName.");
|
|
1238
1172
|
}
|
|
1239
1173
|
query = __assign({}, (input.setAsDefault !== undefined && { setAsDefault: input.setAsDefault.toString() }));
|
|
1240
|
-
body = JSON.stringify(__assign({}, (input.templateBody
|
|
1174
|
+
body = JSON.stringify(__assign({}, (input.templateBody != null && { templateBody: input.templateBody })));
|
|
1241
1175
|
return [2, new __HttpRequest({
|
|
1242
1176
|
protocol: protocol,
|
|
1243
1177
|
hostname: hostname,
|
|
@@ -1272,9 +1206,7 @@ export var serializeAws_restJson1CreateRoleAliasCommand = function (input, conte
|
|
|
1272
1206
|
else {
|
|
1273
1207
|
throw new Error("No value provided for input HTTP label: roleAlias.");
|
|
1274
1208
|
}
|
|
1275
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.credentialDurationSeconds
|
|
1276
|
-
input.credentialDurationSeconds !== null && { credentialDurationSeconds: input.credentialDurationSeconds })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.tags !== undefined &&
|
|
1277
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1209
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.credentialDurationSeconds != null && { credentialDurationSeconds: input.credentialDurationSeconds })), (input.roleArn != null && { roleArn: input.roleArn })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1278
1210
|
return [2, new __HttpRequest({
|
|
1279
1211
|
protocol: protocol,
|
|
1280
1212
|
hostname: hostname,
|
|
@@ -1309,9 +1241,7 @@ export var serializeAws_restJson1CreateScheduledAuditCommand = function (input,
|
|
|
1309
1241
|
else {
|
|
1310
1242
|
throw new Error("No value provided for input HTTP label: scheduledAuditName.");
|
|
1311
1243
|
}
|
|
1312
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.dayOfMonth
|
|
1313
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.targetCheckNames !== undefined &&
|
|
1314
|
-
input.targetCheckNames !== null && {
|
|
1244
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth })), (input.dayOfWeek != null && { dayOfWeek: input.dayOfWeek })), (input.frequency != null && { frequency: input.frequency })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.targetCheckNames != null && {
|
|
1315
1245
|
targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
|
|
1316
1246
|
})));
|
|
1317
1247
|
return [2, new __HttpRequest({
|
|
@@ -1347,17 +1277,13 @@ export var serializeAws_restJson1CreateSecurityProfileCommand = function (input,
|
|
|
1347
1277
|
else {
|
|
1348
1278
|
throw new Error("No value provided for input HTTP label: securityProfileName.");
|
|
1349
1279
|
}
|
|
1350
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalMetricsToRetain
|
|
1351
|
-
input.additionalMetricsToRetain !== null && {
|
|
1280
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalMetricsToRetain != null && {
|
|
1352
1281
|
additionalMetricsToRetain: serializeAws_restJson1AdditionalMetricsToRetainList(input.additionalMetricsToRetain, context),
|
|
1353
|
-
})), (input.additionalMetricsToRetainV2
|
|
1354
|
-
input.additionalMetricsToRetainV2 !== null && {
|
|
1282
|
+
})), (input.additionalMetricsToRetainV2 != null && {
|
|
1355
1283
|
additionalMetricsToRetainV2: serializeAws_restJson1AdditionalMetricsToRetainV2List(input.additionalMetricsToRetainV2, context),
|
|
1356
|
-
})), (input.alertTargets
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
input.securityProfileDescription !== null && { securityProfileDescription: input.securityProfileDescription })), (input.tags !== undefined &&
|
|
1360
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1284
|
+
})), (input.alertTargets != null && {
|
|
1285
|
+
alertTargets: serializeAws_restJson1AlertTargets(input.alertTargets, context),
|
|
1286
|
+
})), (input.behaviors != null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) })), (input.securityProfileDescription != null && { securityProfileDescription: input.securityProfileDescription })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1361
1287
|
return [2, new __HttpRequest({
|
|
1362
1288
|
protocol: protocol,
|
|
1363
1289
|
hostname: hostname,
|
|
@@ -1391,9 +1317,7 @@ export var serializeAws_restJson1CreateStreamCommand = function (input, context)
|
|
|
1391
1317
|
else {
|
|
1392
1318
|
throw new Error("No value provided for input HTTP label: streamId.");
|
|
1393
1319
|
}
|
|
1394
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description
|
|
1395
|
-
input.files !== null && { files: serializeAws_restJson1StreamFiles(input.files, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.tags !== undefined &&
|
|
1396
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1320
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.files != null && { files: serializeAws_restJson1StreamFiles(input.files, context) })), (input.roleArn != null && { roleArn: input.roleArn })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
1397
1321
|
return [2, new __HttpRequest({
|
|
1398
1322
|
protocol: protocol,
|
|
1399
1323
|
hostname: hostname,
|
|
@@ -1427,11 +1351,9 @@ export var serializeAws_restJson1CreateThingCommand = function (input, context)
|
|
|
1427
1351
|
else {
|
|
1428
1352
|
throw new Error("No value provided for input HTTP label: thingName.");
|
|
1429
1353
|
}
|
|
1430
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.attributePayload
|
|
1431
|
-
input.attributePayload !== null && {
|
|
1354
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.attributePayload != null && {
|
|
1432
1355
|
attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
|
|
1433
|
-
})), (input.billingGroupName
|
|
1434
|
-
input.billingGroupName !== null && { billingGroupName: input.billingGroupName })), (input.thingTypeName !== undefined && input.thingTypeName !== null && { thingTypeName: input.thingTypeName })));
|
|
1356
|
+
})), (input.billingGroupName != null && { billingGroupName: input.billingGroupName })), (input.thingTypeName != null && { thingTypeName: input.thingTypeName })));
|
|
1435
1357
|
return [2, new __HttpRequest({
|
|
1436
1358
|
protocol: protocol,
|
|
1437
1359
|
hostname: hostname,
|
|
@@ -1465,10 +1387,7 @@ export var serializeAws_restJson1CreateThingGroupCommand = function (input, cont
|
|
|
1465
1387
|
else {
|
|
1466
1388
|
throw new Error("No value provided for input HTTP label: thingGroupName.");
|
|
1467
1389
|
}
|
|
1468
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.parentGroupName
|
|
1469
|
-
input.parentGroupName !== null && { parentGroupName: input.parentGroupName })), (input.tags !== undefined &&
|
|
1470
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.thingGroupProperties !== undefined &&
|
|
1471
|
-
input.thingGroupProperties !== null && {
|
|
1390
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.parentGroupName != null && { parentGroupName: input.parentGroupName })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.thingGroupProperties != null && {
|
|
1472
1391
|
thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
|
|
1473
1392
|
})));
|
|
1474
1393
|
return [2, new __HttpRequest({
|
|
@@ -1504,9 +1423,7 @@ export var serializeAws_restJson1CreateThingTypeCommand = function (input, conte
|
|
|
1504
1423
|
else {
|
|
1505
1424
|
throw new Error("No value provided for input HTTP label: thingTypeName.");
|
|
1506
1425
|
}
|
|
1507
|
-
body = JSON.stringify(__assign(__assign({}, (input.tags
|
|
1508
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.thingTypeProperties !== undefined &&
|
|
1509
|
-
input.thingTypeProperties !== null && {
|
|
1426
|
+
body = JSON.stringify(__assign(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.thingTypeProperties != null && {
|
|
1510
1427
|
thingTypeProperties: serializeAws_restJson1ThingTypeProperties(input.thingTypeProperties, context),
|
|
1511
1428
|
})));
|
|
1512
1429
|
return [2, new __HttpRequest({
|
|
@@ -1570,8 +1487,7 @@ export var serializeAws_restJson1CreateTopicRuleDestinationCommand = function (i
|
|
|
1570
1487
|
"content-type": "application/json",
|
|
1571
1488
|
};
|
|
1572
1489
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations";
|
|
1573
|
-
body = JSON.stringify(__assign({}, (input.destinationConfiguration
|
|
1574
|
-
input.destinationConfiguration !== null && {
|
|
1490
|
+
body = JSON.stringify(__assign({}, (input.destinationConfiguration != null && {
|
|
1575
1491
|
destinationConfiguration: serializeAws_restJson1TopicRuleDestinationConfiguration(input.destinationConfiguration, context),
|
|
1576
1492
|
})));
|
|
1577
1493
|
return [2, new __HttpRequest({
|
|
@@ -1620,8 +1536,7 @@ export var serializeAws_restJson1DeleteAuditSuppressionCommand = function (input
|
|
|
1620
1536
|
"content-type": "application/json",
|
|
1621
1537
|
};
|
|
1622
1538
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/delete";
|
|
1623
|
-
body = JSON.stringify(__assign(__assign({}, (input.checkName
|
|
1624
|
-
input.resourceIdentifier !== null && {
|
|
1539
|
+
body = JSON.stringify(__assign(__assign({}, (input.checkName != null && { checkName: input.checkName })), (input.resourceIdentifier != null && {
|
|
1625
1540
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
1626
1541
|
})));
|
|
1627
1542
|
return [2, new __HttpRequest({
|
|
@@ -2609,7 +2524,7 @@ export var serializeAws_restJson1DeprecateThingTypeCommand = function (input, co
|
|
|
2609
2524
|
else {
|
|
2610
2525
|
throw new Error("No value provided for input HTTP label: thingTypeName.");
|
|
2611
2526
|
}
|
|
2612
|
-
body = JSON.stringify(__assign({}, (input.undoDeprecate
|
|
2527
|
+
body = JSON.stringify(__assign({}, (input.undoDeprecate != null && { undoDeprecate: input.undoDeprecate })));
|
|
2613
2528
|
return [2, new __HttpRequest({
|
|
2614
2529
|
protocol: protocol,
|
|
2615
2530
|
hostname: hostname,
|
|
@@ -2719,8 +2634,7 @@ export var serializeAws_restJson1DescribeAuditSuppressionCommand = function (inp
|
|
|
2719
2634
|
"content-type": "application/json",
|
|
2720
2635
|
};
|
|
2721
2636
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/describe";
|
|
2722
|
-
body = JSON.stringify(__assign(__assign({}, (input.checkName
|
|
2723
|
-
input.resourceIdentifier !== null && {
|
|
2637
|
+
body = JSON.stringify(__assign(__assign({}, (input.checkName != null && { checkName: input.checkName })), (input.resourceIdentifier != null && {
|
|
2724
2638
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
2725
2639
|
})));
|
|
2726
2640
|
return [2, new __HttpRequest({
|
|
@@ -3660,7 +3574,7 @@ export var serializeAws_restJson1DetachPolicyCommand = function (input, context)
|
|
|
3660
3574
|
else {
|
|
3661
3575
|
throw new Error("No value provided for input HTTP label: policyName.");
|
|
3662
3576
|
}
|
|
3663
|
-
body = JSON.stringify(__assign({}, (input.target
|
|
3577
|
+
body = JSON.stringify(__assign({}, (input.target != null && { target: input.target })));
|
|
3664
3578
|
return [2, new __HttpRequest({
|
|
3665
3579
|
protocol: protocol,
|
|
3666
3580
|
hostname: hostname,
|
|
@@ -3865,11 +3779,9 @@ export var serializeAws_restJson1GetBucketsAggregationCommand = function (input,
|
|
|
3865
3779
|
"content-type": "application/json",
|
|
3866
3780
|
};
|
|
3867
3781
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/buckets";
|
|
3868
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField
|
|
3869
|
-
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.bucketsAggregationType !== undefined &&
|
|
3870
|
-
input.bucketsAggregationType !== null && {
|
|
3782
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField != null && { aggregationField: input.aggregationField })), (input.bucketsAggregationType != null && {
|
|
3871
3783
|
bucketsAggregationType: serializeAws_restJson1BucketsAggregationType(input.bucketsAggregationType, context),
|
|
3872
|
-
})), (input.indexName
|
|
3784
|
+
})), (input.indexName != null && { indexName: input.indexName })), (input.queryString != null && { queryString: input.queryString })), (input.queryVersion != null && { queryVersion: input.queryVersion })));
|
|
3873
3785
|
return [2, new __HttpRequest({
|
|
3874
3786
|
protocol: protocol,
|
|
3875
3787
|
hostname: hostname,
|
|
@@ -3893,8 +3805,7 @@ export var serializeAws_restJson1GetCardinalityCommand = function (input, contex
|
|
|
3893
3805
|
"content-type": "application/json",
|
|
3894
3806
|
};
|
|
3895
3807
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/cardinality";
|
|
3896
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.aggregationField
|
|
3897
|
-
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion })));
|
|
3808
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.aggregationField != null && { aggregationField: input.aggregationField })), (input.indexName != null && { indexName: input.indexName })), (input.queryString != null && { queryString: input.queryString })), (input.queryVersion != null && { queryVersion: input.queryVersion })));
|
|
3898
3809
|
return [2, new __HttpRequest({
|
|
3899
3810
|
protocol: protocol,
|
|
3900
3811
|
hostname: hostname,
|
|
@@ -3919,8 +3830,7 @@ export var serializeAws_restJson1GetEffectivePoliciesCommand = function (input,
|
|
|
3919
3830
|
};
|
|
3920
3831
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/effective-policies";
|
|
3921
3832
|
query = __assign({}, (input.thingName !== undefined && { thingName: input.thingName }));
|
|
3922
|
-
body = JSON.stringify(__assign(__assign({}, (input.cognitoIdentityPoolId
|
|
3923
|
-
input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId })), (input.principal !== undefined && input.principal !== null && { principal: input.principal })));
|
|
3833
|
+
body = JSON.stringify(__assign(__assign({}, (input.cognitoIdentityPoolId != null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId })), (input.principal != null && { principal: input.principal })));
|
|
3924
3834
|
return [2, new __HttpRequest({
|
|
3925
3835
|
protocol: protocol,
|
|
3926
3836
|
hostname: hostname,
|
|
@@ -4055,9 +3965,7 @@ export var serializeAws_restJson1GetPercentilesCommand = function (input, contex
|
|
|
4055
3965
|
"content-type": "application/json",
|
|
4056
3966
|
};
|
|
4057
3967
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/percentiles";
|
|
4058
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField
|
|
4059
|
-
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName })), (input.percents !== undefined &&
|
|
4060
|
-
input.percents !== null && { percents: serializeAws_restJson1PercentList(input.percents, context) })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion })));
|
|
3968
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField != null && { aggregationField: input.aggregationField })), (input.indexName != null && { indexName: input.indexName })), (input.percents != null && { percents: serializeAws_restJson1PercentList(input.percents, context) })), (input.queryString != null && { queryString: input.queryString })), (input.queryVersion != null && { queryVersion: input.queryVersion })));
|
|
4061
3969
|
return [2, new __HttpRequest({
|
|
4062
3970
|
protocol: protocol,
|
|
4063
3971
|
hostname: hostname,
|
|
@@ -4178,8 +4086,7 @@ export var serializeAws_restJson1GetStatisticsCommand = function (input, context
|
|
|
4178
4086
|
"content-type": "application/json",
|
|
4179
4087
|
};
|
|
4180
4088
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/statistics";
|
|
4181
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.aggregationField
|
|
4182
|
-
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion })));
|
|
4089
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.aggregationField != null && { aggregationField: input.aggregationField })), (input.indexName != null && { indexName: input.indexName })), (input.queryString != null && { queryString: input.queryString })), (input.queryVersion != null && { queryVersion: input.queryVersion })));
|
|
4183
4090
|
return [2, new __HttpRequest({
|
|
4184
4091
|
protocol: protocol,
|
|
4185
4092
|
hostname: hostname,
|
|
@@ -4348,13 +4255,9 @@ export var serializeAws_restJson1ListAuditFindingsCommand = function (input, con
|
|
|
4348
4255
|
"content-type": "application/json",
|
|
4349
4256
|
};
|
|
4350
4257
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/findings";
|
|
4351
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.checkName
|
|
4352
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.listSuppressedFindings !== undefined &&
|
|
4353
|
-
input.listSuppressedFindings !== null && { listSuppressedFindings: input.listSuppressedFindings })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceIdentifier !== undefined &&
|
|
4354
|
-
input.resourceIdentifier !== null && {
|
|
4258
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.checkName != null && { checkName: input.checkName })), (input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.listSuppressedFindings != null && { listSuppressedFindings: input.listSuppressedFindings })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceIdentifier != null && {
|
|
4355
4259
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
4356
|
-
})), (input.startTime
|
|
4357
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.taskId !== undefined && input.taskId !== null && { taskId: input.taskId })));
|
|
4260
|
+
})), (input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) })), (input.taskId != null && { taskId: input.taskId })));
|
|
4358
4261
|
return [2, new __HttpRequest({
|
|
4359
4262
|
protocol: protocol,
|
|
4360
4263
|
hostname: hostname,
|
|
@@ -4424,9 +4327,7 @@ export var serializeAws_restJson1ListAuditSuppressionsCommand = function (input,
|
|
|
4424
4327
|
"content-type": "application/json",
|
|
4425
4328
|
};
|
|
4426
4329
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/list";
|
|
4427
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ascendingOrder
|
|
4428
|
-
input.ascendingOrder !== null && { ascendingOrder: input.ascendingOrder })), (input.checkName !== undefined && input.checkName !== null && { checkName: input.checkName })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceIdentifier !== undefined &&
|
|
4429
|
-
input.resourceIdentifier !== null && {
|
|
4330
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ascendingOrder != null && { ascendingOrder: input.ascendingOrder })), (input.checkName != null && { checkName: input.checkName })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.resourceIdentifier != null && {
|
|
4430
4331
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
4431
4332
|
})));
|
|
4432
4333
|
return [2, new __HttpRequest({
|
|
@@ -5736,9 +5637,7 @@ export var serializeAws_restJson1PutVerificationStateOnViolationCommand = functi
|
|
|
5736
5637
|
else {
|
|
5737
5638
|
throw new Error("No value provided for input HTTP label: violationId.");
|
|
5738
5639
|
}
|
|
5739
|
-
body = JSON.stringify(__assign(__assign({}, (input.verificationState
|
|
5740
|
-
input.verificationState !== null && { verificationState: input.verificationState })), (input.verificationStateDescription !== undefined &&
|
|
5741
|
-
input.verificationStateDescription !== null && {
|
|
5640
|
+
body = JSON.stringify(__assign(__assign({}, (input.verificationState != null && { verificationState: input.verificationState })), (input.verificationStateDescription != null && {
|
|
5742
5641
|
verificationStateDescription: input.verificationStateDescription,
|
|
5743
5642
|
})));
|
|
5744
5643
|
return [2, new __HttpRequest({
|
|
@@ -5765,13 +5664,9 @@ export var serializeAws_restJson1RegisterCACertificateCommand = function (input,
|
|
|
5765
5664
|
};
|
|
5766
5665
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/cacertificate";
|
|
5767
5666
|
query = __assign(__assign({}, (input.setAsActive !== undefined && { setAsActive: input.setAsActive.toString() })), (input.allowAutoRegistration !== undefined && { allowAutoRegistration: input.allowAutoRegistration.toString() }));
|
|
5768
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.caCertificate
|
|
5769
|
-
input.certificateMode !== null && { certificateMode: input.certificateMode })), (input.registrationConfig !== undefined &&
|
|
5770
|
-
input.registrationConfig !== null && {
|
|
5667
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.caCertificate != null && { caCertificate: input.caCertificate })), (input.certificateMode != null && { certificateMode: input.certificateMode })), (input.registrationConfig != null && {
|
|
5771
5668
|
registrationConfig: serializeAws_restJson1RegistrationConfig(input.registrationConfig, context),
|
|
5772
|
-
})), (input.tags
|
|
5773
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.verificationCertificate !== undefined &&
|
|
5774
|
-
input.verificationCertificate !== null && { verificationCertificate: input.verificationCertificate })));
|
|
5669
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.verificationCertificate != null && { verificationCertificate: input.verificationCertificate })));
|
|
5775
5670
|
return [2, new __HttpRequest({
|
|
5776
5671
|
protocol: protocol,
|
|
5777
5672
|
hostname: hostname,
|
|
@@ -5797,9 +5692,7 @@ export var serializeAws_restJson1RegisterCertificateCommand = function (input, c
|
|
|
5797
5692
|
};
|
|
5798
5693
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificate/register";
|
|
5799
5694
|
query = __assign({}, (input.setAsActive !== undefined && { setAsActive: input.setAsActive.toString() }));
|
|
5800
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.caCertificatePem
|
|
5801
|
-
input.caCertificatePem !== null && { caCertificatePem: input.caCertificatePem })), (input.certificatePem !== undefined &&
|
|
5802
|
-
input.certificatePem !== null && { certificatePem: input.certificatePem })), (input.status !== undefined && input.status !== null && { status: input.status })));
|
|
5695
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.caCertificatePem != null && { caCertificatePem: input.caCertificatePem })), (input.certificatePem != null && { certificatePem: input.certificatePem })), (input.status != null && { status: input.status })));
|
|
5803
5696
|
return [2, new __HttpRequest({
|
|
5804
5697
|
protocol: protocol,
|
|
5805
5698
|
hostname: hostname,
|
|
@@ -5824,8 +5717,7 @@ export var serializeAws_restJson1RegisterCertificateWithoutCACommand = function
|
|
|
5824
5717
|
"content-type": "application/json",
|
|
5825
5718
|
};
|
|
5826
5719
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificate/register-no-ca";
|
|
5827
|
-
body = JSON.stringify(__assign(__assign({}, (input.certificatePem
|
|
5828
|
-
input.certificatePem !== null && { certificatePem: input.certificatePem })), (input.status !== undefined && input.status !== null && { status: input.status })));
|
|
5720
|
+
body = JSON.stringify(__assign(__assign({}, (input.certificatePem != null && { certificatePem: input.certificatePem })), (input.status != null && { status: input.status })));
|
|
5829
5721
|
return [2, new __HttpRequest({
|
|
5830
5722
|
protocol: protocol,
|
|
5831
5723
|
hostname: hostname,
|
|
@@ -5849,8 +5741,7 @@ export var serializeAws_restJson1RegisterThingCommand = function (input, context
|
|
|
5849
5741
|
"content-type": "application/json",
|
|
5850
5742
|
};
|
|
5851
5743
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things";
|
|
5852
|
-
body = JSON.stringify(__assign(__assign({}, (input.parameters
|
|
5853
|
-
input.parameters !== null && { parameters: serializeAws_restJson1Parameters(input.parameters, context) })), (input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody })));
|
|
5744
|
+
body = JSON.stringify(__assign(__assign({}, (input.parameters != null && { parameters: serializeAws_restJson1Parameters(input.parameters, context) })), (input.templateBody != null && { templateBody: input.templateBody })));
|
|
5854
5745
|
return [2, new __HttpRequest({
|
|
5855
5746
|
protocol: protocol,
|
|
5856
5747
|
hostname: hostname,
|
|
@@ -5885,7 +5776,7 @@ export var serializeAws_restJson1RejectCertificateTransferCommand = function (in
|
|
|
5885
5776
|
else {
|
|
5886
5777
|
throw new Error("No value provided for input HTTP label: certificateId.");
|
|
5887
5778
|
}
|
|
5888
|
-
body = JSON.stringify(__assign({}, (input.rejectReason
|
|
5779
|
+
body = JSON.stringify(__assign({}, (input.rejectReason != null && { rejectReason: input.rejectReason })));
|
|
5889
5780
|
return [2, new __HttpRequest({
|
|
5890
5781
|
protocol: protocol,
|
|
5891
5782
|
hostname: hostname,
|
|
@@ -5910,9 +5801,7 @@ export var serializeAws_restJson1RemoveThingFromBillingGroupCommand = function (
|
|
|
5910
5801
|
};
|
|
5911
5802
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
5912
5803
|
"/billing-groups/removeThingFromBillingGroup";
|
|
5913
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.billingGroupArn
|
|
5914
|
-
input.billingGroupArn !== null && { billingGroupArn: input.billingGroupArn })), (input.billingGroupName !== undefined &&
|
|
5915
|
-
input.billingGroupName !== null && { billingGroupName: input.billingGroupName })), (input.thingArn !== undefined && input.thingArn !== null && { thingArn: input.thingArn })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName })));
|
|
5804
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.billingGroupArn != null && { billingGroupArn: input.billingGroupArn })), (input.billingGroupName != null && { billingGroupName: input.billingGroupName })), (input.thingArn != null && { thingArn: input.thingArn })), (input.thingName != null && { thingName: input.thingName })));
|
|
5916
5805
|
return [2, new __HttpRequest({
|
|
5917
5806
|
protocol: protocol,
|
|
5918
5807
|
hostname: hostname,
|
|
@@ -5936,8 +5825,7 @@ export var serializeAws_restJson1RemoveThingFromThingGroupCommand = function (in
|
|
|
5936
5825
|
"content-type": "application/json",
|
|
5937
5826
|
};
|
|
5938
5827
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/removeThingFromThingGroup";
|
|
5939
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.thingArn
|
|
5940
|
-
input.thingGroupName !== null && { thingGroupName: input.thingGroupName })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName })));
|
|
5828
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.thingArn != null && { thingArn: input.thingArn })), (input.thingGroupArn != null && { thingGroupArn: input.thingGroupArn })), (input.thingGroupName != null && { thingGroupName: input.thingGroupName })), (input.thingName != null && { thingName: input.thingName })));
|
|
5941
5829
|
return [2, new __HttpRequest({
|
|
5942
5830
|
protocol: protocol,
|
|
5943
5831
|
hostname: hostname,
|
|
@@ -6001,7 +5889,7 @@ export var serializeAws_restJson1SearchIndexCommand = function (input, context)
|
|
|
6001
5889
|
"content-type": "application/json",
|
|
6002
5890
|
};
|
|
6003
5891
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/search";
|
|
6004
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.indexName
|
|
5892
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.indexName != null && { indexName: input.indexName })), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.queryString != null && { queryString: input.queryString })), (input.queryVersion != null && { queryVersion: input.queryVersion })));
|
|
6005
5893
|
return [2, new __HttpRequest({
|
|
6006
5894
|
protocol: protocol,
|
|
6007
5895
|
hostname: hostname,
|
|
@@ -6025,8 +5913,7 @@ export var serializeAws_restJson1SetDefaultAuthorizerCommand = function (input,
|
|
|
6025
5913
|
"content-type": "application/json",
|
|
6026
5914
|
};
|
|
6027
5915
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/default-authorizer";
|
|
6028
|
-
body = JSON.stringify(__assign({}, (input.authorizerName
|
|
6029
|
-
input.authorizerName !== null && { authorizerName: input.authorizerName })));
|
|
5916
|
+
body = JSON.stringify(__assign({}, (input.authorizerName != null && { authorizerName: input.authorizerName })));
|
|
6030
5917
|
return [2, new __HttpRequest({
|
|
6031
5918
|
protocol: protocol,
|
|
6032
5919
|
hostname: hostname,
|
|
@@ -6122,8 +6009,7 @@ export var serializeAws_restJson1SetV2LoggingLevelCommand = function (input, con
|
|
|
6122
6009
|
"content-type": "application/json",
|
|
6123
6010
|
};
|
|
6124
6011
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2LoggingLevel";
|
|
6125
|
-
body = JSON.stringify(__assign(__assign({}, (input.logLevel
|
|
6126
|
-
input.logTarget !== null && { logTarget: serializeAws_restJson1LogTarget(input.logTarget, context) })));
|
|
6012
|
+
body = JSON.stringify(__assign(__assign({}, (input.logLevel != null && { logLevel: input.logLevel })), (input.logTarget != null && { logTarget: serializeAws_restJson1LogTarget(input.logTarget, context) })));
|
|
6127
6013
|
return [2, new __HttpRequest({
|
|
6128
6014
|
protocol: protocol,
|
|
6129
6015
|
hostname: hostname,
|
|
@@ -6147,9 +6033,7 @@ export var serializeAws_restJson1SetV2LoggingOptionsCommand = function (input, c
|
|
|
6147
6033
|
"content-type": "application/json",
|
|
6148
6034
|
};
|
|
6149
6035
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2LoggingOptions";
|
|
6150
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.defaultLogLevel
|
|
6151
|
-
input.defaultLogLevel !== null && { defaultLogLevel: input.defaultLogLevel })), (input.disableAllLogs !== undefined &&
|
|
6152
|
-
input.disableAllLogs !== null && { disableAllLogs: input.disableAllLogs })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })));
|
|
6036
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.defaultLogLevel != null && { defaultLogLevel: input.defaultLogLevel })), (input.disableAllLogs != null && { disableAllLogs: input.disableAllLogs })), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
6153
6037
|
return [2, new __HttpRequest({
|
|
6154
6038
|
protocol: protocol,
|
|
6155
6039
|
hostname: hostname,
|
|
@@ -6184,11 +6068,9 @@ export var serializeAws_restJson1StartAuditMitigationActionsTaskCommand = functi
|
|
|
6184
6068
|
else {
|
|
6185
6069
|
throw new Error("No value provided for input HTTP label: taskId.");
|
|
6186
6070
|
}
|
|
6187
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.auditCheckToActionsMapping
|
|
6188
|
-
input.auditCheckToActionsMapping !== null && {
|
|
6071
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.auditCheckToActionsMapping != null && {
|
|
6189
6072
|
auditCheckToActionsMapping: serializeAws_restJson1AuditCheckToActionsMapping(input.auditCheckToActionsMapping, context),
|
|
6190
|
-
})), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.target
|
|
6191
|
-
input.target !== null && {
|
|
6073
|
+
})), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.target != null && {
|
|
6192
6074
|
target: serializeAws_restJson1AuditMitigationActionsTaskTarget(input.target, context),
|
|
6193
6075
|
})));
|
|
6194
6076
|
return [2, new __HttpRequest({
|
|
@@ -6225,16 +6107,13 @@ export var serializeAws_restJson1StartDetectMitigationActionsTaskCommand = funct
|
|
|
6225
6107
|
else {
|
|
6226
6108
|
throw new Error("No value provided for input HTTP label: taskId.");
|
|
6227
6109
|
}
|
|
6228
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions
|
|
6229
|
-
input.actions !== null && {
|
|
6110
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions != null && {
|
|
6230
6111
|
actions: serializeAws_restJson1DetectMitigationActionsToExecuteList(input.actions, context),
|
|
6231
|
-
})), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.includeOnlyActiveViolations
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
input.target !== null && {
|
|
6112
|
+
})), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.includeOnlyActiveViolations != null && {
|
|
6113
|
+
includeOnlyActiveViolations: input.includeOnlyActiveViolations,
|
|
6114
|
+
})), (input.includeSuppressedAlerts != null && { includeSuppressedAlerts: input.includeSuppressedAlerts })), (input.target != null && {
|
|
6235
6115
|
target: serializeAws_restJson1DetectMitigationActionsTaskTarget(input.target, context),
|
|
6236
|
-
})), (input.violationEventOccurrenceRange
|
|
6237
|
-
input.violationEventOccurrenceRange !== null && {
|
|
6116
|
+
})), (input.violationEventOccurrenceRange != null && {
|
|
6238
6117
|
violationEventOccurrenceRange: serializeAws_restJson1ViolationEventOccurrenceRange(input.violationEventOccurrenceRange, context),
|
|
6239
6118
|
})));
|
|
6240
6119
|
return [2, new __HttpRequest({
|
|
@@ -6260,8 +6139,7 @@ export var serializeAws_restJson1StartOnDemandAuditTaskCommand = function (input
|
|
|
6260
6139
|
"content-type": "application/json",
|
|
6261
6140
|
};
|
|
6262
6141
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/tasks";
|
|
6263
|
-
body = JSON.stringify(__assign({}, (input.targetCheckNames
|
|
6264
|
-
input.targetCheckNames !== null && {
|
|
6142
|
+
body = JSON.stringify(__assign({}, (input.targetCheckNames != null && {
|
|
6265
6143
|
targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
|
|
6266
6144
|
})));
|
|
6267
6145
|
return [2, new __HttpRequest({
|
|
@@ -6287,8 +6165,7 @@ export var serializeAws_restJson1StartThingRegistrationTaskCommand = function (i
|
|
|
6287
6165
|
"content-type": "application/json",
|
|
6288
6166
|
};
|
|
6289
6167
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-registration-tasks";
|
|
6290
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.inputFileBucket
|
|
6291
|
-
input.inputFileBucket !== null && { inputFileBucket: input.inputFileBucket })), (input.inputFileKey !== undefined && input.inputFileKey !== null && { inputFileKey: input.inputFileKey })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.templateBody !== undefined && input.templateBody !== null && { templateBody: input.templateBody })));
|
|
6168
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.inputFileBucket != null && { inputFileBucket: input.inputFileBucket })), (input.inputFileKey != null && { inputFileKey: input.inputFileKey })), (input.roleArn != null && { roleArn: input.roleArn })), (input.templateBody != null && { templateBody: input.templateBody })));
|
|
6292
6169
|
return [2, new __HttpRequest({
|
|
6293
6170
|
protocol: protocol,
|
|
6294
6171
|
hostname: hostname,
|
|
@@ -6343,8 +6220,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
6343
6220
|
"content-type": "application/json",
|
|
6344
6221
|
};
|
|
6345
6222
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
6346
|
-
body = JSON.stringify(__assign(__assign({}, (input.resourceArn
|
|
6347
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
6223
|
+
body = JSON.stringify(__assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })));
|
|
6348
6224
|
return [2, new __HttpRequest({
|
|
6349
6225
|
protocol: protocol,
|
|
6350
6226
|
hostname: hostname,
|
|
@@ -6369,15 +6245,11 @@ export var serializeAws_restJson1TestAuthorizationCommand = function (input, con
|
|
|
6369
6245
|
};
|
|
6370
6246
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/test-authorization";
|
|
6371
6247
|
query = __assign({}, (input.clientId !== undefined && { clientId: input.clientId }));
|
|
6372
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.authInfos
|
|
6373
|
-
input.authInfos !== null && { authInfos: serializeAws_restJson1AuthInfos(input.authInfos, context) })), (input.cognitoIdentityPoolId !== undefined &&
|
|
6374
|
-
input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId })), (input.policyNamesToAdd !== undefined &&
|
|
6375
|
-
input.policyNamesToAdd !== null && {
|
|
6248
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.authInfos != null && { authInfos: serializeAws_restJson1AuthInfos(input.authInfos, context) })), (input.cognitoIdentityPoolId != null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId })), (input.policyNamesToAdd != null && {
|
|
6376
6249
|
policyNamesToAdd: serializeAws_restJson1PolicyNames(input.policyNamesToAdd, context),
|
|
6377
|
-
})), (input.policyNamesToSkip
|
|
6378
|
-
input.policyNamesToSkip !== null && {
|
|
6250
|
+
})), (input.policyNamesToSkip != null && {
|
|
6379
6251
|
policyNamesToSkip: serializeAws_restJson1PolicyNames(input.policyNamesToSkip, context),
|
|
6380
|
-
})), (input.principal
|
|
6252
|
+
})), (input.principal != null && { principal: input.principal })));
|
|
6381
6253
|
return [2, new __HttpRequest({
|
|
6382
6254
|
protocol: protocol,
|
|
6383
6255
|
hostname: hostname,
|
|
@@ -6412,11 +6284,7 @@ export var serializeAws_restJson1TestInvokeAuthorizerCommand = function (input,
|
|
|
6412
6284
|
else {
|
|
6413
6285
|
throw new Error("No value provided for input HTTP label: authorizerName.");
|
|
6414
6286
|
}
|
|
6415
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.httpContext
|
|
6416
|
-
input.httpContext !== null && { httpContext: serializeAws_restJson1HttpContext(input.httpContext, context) })), (input.mqttContext !== undefined &&
|
|
6417
|
-
input.mqttContext !== null && { mqttContext: serializeAws_restJson1MqttContext(input.mqttContext, context) })), (input.tlsContext !== undefined &&
|
|
6418
|
-
input.tlsContext !== null && { tlsContext: serializeAws_restJson1TlsContext(input.tlsContext, context) })), (input.token !== undefined && input.token !== null && { token: input.token })), (input.tokenSignature !== undefined &&
|
|
6419
|
-
input.tokenSignature !== null && { tokenSignature: input.tokenSignature })));
|
|
6287
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.httpContext != null && { httpContext: serializeAws_restJson1HttpContext(input.httpContext, context) })), (input.mqttContext != null && { mqttContext: serializeAws_restJson1MqttContext(input.mqttContext, context) })), (input.tlsContext != null && { tlsContext: serializeAws_restJson1TlsContext(input.tlsContext, context) })), (input.token != null && { token: input.token })), (input.tokenSignature != null && { tokenSignature: input.tokenSignature })));
|
|
6420
6288
|
return [2, new __HttpRequest({
|
|
6421
6289
|
protocol: protocol,
|
|
6422
6290
|
hostname: hostname,
|
|
@@ -6451,8 +6319,7 @@ export var serializeAws_restJson1TransferCertificateCommand = function (input, c
|
|
|
6451
6319
|
throw new Error("No value provided for input HTTP label: certificateId.");
|
|
6452
6320
|
}
|
|
6453
6321
|
query = __assign({}, (input.targetAwsAccount !== undefined && { targetAwsAccount: input.targetAwsAccount }));
|
|
6454
|
-
body = JSON.stringify(__assign({}, (input.transferMessage
|
|
6455
|
-
input.transferMessage !== null && { transferMessage: input.transferMessage })));
|
|
6322
|
+
body = JSON.stringify(__assign({}, (input.transferMessage != null && { transferMessage: input.transferMessage })));
|
|
6456
6323
|
return [2, new __HttpRequest({
|
|
6457
6324
|
protocol: protocol,
|
|
6458
6325
|
hostname: hostname,
|
|
@@ -6477,8 +6344,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
6477
6344
|
"content-type": "application/json",
|
|
6478
6345
|
};
|
|
6479
6346
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/untag";
|
|
6480
|
-
body = JSON.stringify(__assign(__assign({}, (input.resourceArn
|
|
6481
|
-
input.tagKeys !== null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
6347
|
+
body = JSON.stringify(__assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_restJson1TagKeyList(input.tagKeys, context) })));
|
|
6482
6348
|
return [2, new __HttpRequest({
|
|
6483
6349
|
protocol: protocol,
|
|
6484
6350
|
hostname: hostname,
|
|
@@ -6502,13 +6368,11 @@ export var serializeAws_restJson1UpdateAccountAuditConfigurationCommand = functi
|
|
|
6502
6368
|
"content-type": "application/json",
|
|
6503
6369
|
};
|
|
6504
6370
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/configuration";
|
|
6505
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.auditCheckConfigurations
|
|
6506
|
-
input.auditCheckConfigurations !== null && {
|
|
6371
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.auditCheckConfigurations != null && {
|
|
6507
6372
|
auditCheckConfigurations: serializeAws_restJson1AuditCheckConfigurations(input.auditCheckConfigurations, context),
|
|
6508
|
-
})), (input.auditNotificationTargetConfigurations
|
|
6509
|
-
input.auditNotificationTargetConfigurations !== null && {
|
|
6373
|
+
})), (input.auditNotificationTargetConfigurations != null && {
|
|
6510
6374
|
auditNotificationTargetConfigurations: serializeAws_restJson1AuditNotificationTargetConfigurations(input.auditNotificationTargetConfigurations, context),
|
|
6511
|
-
})), (input.roleArn
|
|
6375
|
+
})), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
6512
6376
|
return [2, new __HttpRequest({
|
|
6513
6377
|
protocol: protocol,
|
|
6514
6378
|
hostname: hostname,
|
|
@@ -6532,12 +6396,9 @@ export var serializeAws_restJson1UpdateAuditSuppressionCommand = function (input
|
|
|
6532
6396
|
"content-type": "application/json",
|
|
6533
6397
|
};
|
|
6534
6398
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/update";
|
|
6535
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.checkName
|
|
6536
|
-
input.expirationDate !== null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) })), (input.resourceIdentifier !== undefined &&
|
|
6537
|
-
input.resourceIdentifier !== null && {
|
|
6399
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.checkName != null && { checkName: input.checkName })), (input.description != null && { description: input.description })), (input.expirationDate != null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) })), (input.resourceIdentifier != null && {
|
|
6538
6400
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
6539
|
-
})), (input.suppressIndefinitely
|
|
6540
|
-
input.suppressIndefinitely !== null && { suppressIndefinitely: input.suppressIndefinitely })));
|
|
6401
|
+
})), (input.suppressIndefinitely != null && { suppressIndefinitely: input.suppressIndefinitely })));
|
|
6541
6402
|
return [2, new __HttpRequest({
|
|
6542
6403
|
protocol: protocol,
|
|
6543
6404
|
hostname: hostname,
|
|
@@ -6571,10 +6432,7 @@ export var serializeAws_restJson1UpdateAuthorizerCommand = function (input, cont
|
|
|
6571
6432
|
else {
|
|
6572
6433
|
throw new Error("No value provided for input HTTP label: authorizerName.");
|
|
6573
6434
|
}
|
|
6574
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn
|
|
6575
|
-
input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.enableCachingForHttp !== undefined &&
|
|
6576
|
-
input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName })), (input.tokenSigningPublicKeys !== undefined &&
|
|
6577
|
-
input.tokenSigningPublicKeys !== null && {
|
|
6435
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn != null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.enableCachingForHttp != null && { enableCachingForHttp: input.enableCachingForHttp })), (input.status != null && { status: input.status })), (input.tokenKeyName != null && { tokenKeyName: input.tokenKeyName })), (input.tokenSigningPublicKeys != null && {
|
|
6578
6436
|
tokenSigningPublicKeys: serializeAws_restJson1PublicKeyMap(input.tokenSigningPublicKeys, context),
|
|
6579
6437
|
})));
|
|
6580
6438
|
return [2, new __HttpRequest({
|
|
@@ -6610,11 +6468,9 @@ export var serializeAws_restJson1UpdateBillingGroupCommand = function (input, co
|
|
|
6610
6468
|
else {
|
|
6611
6469
|
throw new Error("No value provided for input HTTP label: billingGroupName.");
|
|
6612
6470
|
}
|
|
6613
|
-
body = JSON.stringify(__assign(__assign({}, (input.billingGroupProperties
|
|
6614
|
-
input.billingGroupProperties !== null && {
|
|
6471
|
+
body = JSON.stringify(__assign(__assign({}, (input.billingGroupProperties != null && {
|
|
6615
6472
|
billingGroupProperties: serializeAws_restJson1BillingGroupProperties(input.billingGroupProperties, context),
|
|
6616
|
-
})), (input.expectedVersion
|
|
6617
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })));
|
|
6473
|
+
})), (input.expectedVersion != null && { expectedVersion: input.expectedVersion })));
|
|
6618
6474
|
return [2, new __HttpRequest({
|
|
6619
6475
|
protocol: protocol,
|
|
6620
6476
|
hostname: hostname,
|
|
@@ -6651,11 +6507,9 @@ export var serializeAws_restJson1UpdateCACertificateCommand = function (input, c
|
|
|
6651
6507
|
query = __assign(__assign({}, (input.newStatus !== undefined && { newStatus: input.newStatus })), (input.newAutoRegistrationStatus !== undefined && {
|
|
6652
6508
|
newAutoRegistrationStatus: input.newAutoRegistrationStatus,
|
|
6653
6509
|
}));
|
|
6654
|
-
body = JSON.stringify(__assign(__assign({}, (input.registrationConfig
|
|
6655
|
-
input.registrationConfig !== null && {
|
|
6510
|
+
body = JSON.stringify(__assign(__assign({}, (input.registrationConfig != null && {
|
|
6656
6511
|
registrationConfig: serializeAws_restJson1RegistrationConfig(input.registrationConfig, context),
|
|
6657
|
-
})), (input.removeAutoRegistration
|
|
6658
|
-
input.removeAutoRegistration !== null && { removeAutoRegistration: input.removeAutoRegistration })));
|
|
6512
|
+
})), (input.removeAutoRegistration != null && { removeAutoRegistration: input.removeAutoRegistration })));
|
|
6659
6513
|
return [2, new __HttpRequest({
|
|
6660
6514
|
protocol: protocol,
|
|
6661
6515
|
hostname: hostname,
|
|
@@ -6723,7 +6577,7 @@ export var serializeAws_restJson1UpdateCustomMetricCommand = function (input, co
|
|
|
6723
6577
|
else {
|
|
6724
6578
|
throw new Error("No value provided for input HTTP label: metricName.");
|
|
6725
6579
|
}
|
|
6726
|
-
body = JSON.stringify(__assign({}, (input.displayName
|
|
6580
|
+
body = JSON.stringify(__assign({}, (input.displayName != null && { displayName: input.displayName })));
|
|
6727
6581
|
return [2, new __HttpRequest({
|
|
6728
6582
|
protocol: protocol,
|
|
6729
6583
|
hostname: hostname,
|
|
@@ -6757,8 +6611,7 @@ export var serializeAws_restJson1UpdateDimensionCommand = function (input, conte
|
|
|
6757
6611
|
else {
|
|
6758
6612
|
throw new Error("No value provided for input HTTP label: name.");
|
|
6759
6613
|
}
|
|
6760
|
-
body = JSON.stringify(__assign({}, (input.stringValues
|
|
6761
|
-
input.stringValues !== null && {
|
|
6614
|
+
body = JSON.stringify(__assign({}, (input.stringValues != null && {
|
|
6762
6615
|
stringValues: serializeAws_restJson1DimensionStringValues(input.stringValues, context),
|
|
6763
6616
|
})));
|
|
6764
6617
|
return [2, new __HttpRequest({
|
|
@@ -6795,12 +6648,9 @@ export var serializeAws_restJson1UpdateDomainConfigurationCommand = function (in
|
|
|
6795
6648
|
else {
|
|
6796
6649
|
throw new Error("No value provided for input HTTP label: domainConfigurationName.");
|
|
6797
6650
|
}
|
|
6798
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.authorizerConfig
|
|
6799
|
-
input.authorizerConfig !== null && {
|
|
6651
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.authorizerConfig != null && {
|
|
6800
6652
|
authorizerConfig: serializeAws_restJson1AuthorizerConfig(input.authorizerConfig, context),
|
|
6801
|
-
})), (input.domainConfigurationStatus
|
|
6802
|
-
input.domainConfigurationStatus !== null && { domainConfigurationStatus: input.domainConfigurationStatus })), (input.removeAuthorizerConfig !== undefined &&
|
|
6803
|
-
input.removeAuthorizerConfig !== null && { removeAuthorizerConfig: input.removeAuthorizerConfig })));
|
|
6653
|
+
})), (input.domainConfigurationStatus != null && { domainConfigurationStatus: input.domainConfigurationStatus })), (input.removeAuthorizerConfig != null && { removeAuthorizerConfig: input.removeAuthorizerConfig })));
|
|
6804
6654
|
return [2, new __HttpRequest({
|
|
6805
6655
|
protocol: protocol,
|
|
6806
6656
|
hostname: hostname,
|
|
@@ -6834,9 +6684,7 @@ export var serializeAws_restJson1UpdateDynamicThingGroupCommand = function (inpu
|
|
|
6834
6684
|
else {
|
|
6835
6685
|
throw new Error("No value provided for input HTTP label: thingGroupName.");
|
|
6836
6686
|
}
|
|
6837
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.expectedVersion
|
|
6838
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })), (input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion })), (input.thingGroupProperties !== undefined &&
|
|
6839
|
-
input.thingGroupProperties !== null && {
|
|
6687
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.expectedVersion != null && { expectedVersion: input.expectedVersion })), (input.indexName != null && { indexName: input.indexName })), (input.queryString != null && { queryString: input.queryString })), (input.queryVersion != null && { queryVersion: input.queryVersion })), (input.thingGroupProperties != null && {
|
|
6840
6688
|
thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
|
|
6841
6689
|
})));
|
|
6842
6690
|
return [2, new __HttpRequest({
|
|
@@ -6862,8 +6710,7 @@ export var serializeAws_restJson1UpdateEventConfigurationsCommand = function (in
|
|
|
6862
6710
|
"content-type": "application/json",
|
|
6863
6711
|
};
|
|
6864
6712
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-configurations";
|
|
6865
|
-
body = JSON.stringify(__assign({}, (input.eventConfigurations
|
|
6866
|
-
input.eventConfigurations !== null && {
|
|
6713
|
+
body = JSON.stringify(__assign({}, (input.eventConfigurations != null && {
|
|
6867
6714
|
eventConfigurations: serializeAws_restJson1EventConfigurations(input.eventConfigurations, context),
|
|
6868
6715
|
})));
|
|
6869
6716
|
return [2, new __HttpRequest({
|
|
@@ -6899,12 +6746,9 @@ export var serializeAws_restJson1UpdateFleetMetricCommand = function (input, con
|
|
|
6899
6746
|
else {
|
|
6900
6747
|
throw new Error("No value provided for input HTTP label: metricName.");
|
|
6901
6748
|
}
|
|
6902
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField
|
|
6903
|
-
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.aggregationType !== undefined &&
|
|
6904
|
-
input.aggregationType !== null && {
|
|
6749
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField != null && { aggregationField: input.aggregationField })), (input.aggregationType != null && {
|
|
6905
6750
|
aggregationType: serializeAws_restJson1AggregationType(input.aggregationType, context),
|
|
6906
|
-
})), (input.description
|
|
6907
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })), (input.indexName !== undefined && input.indexName !== null && { indexName: input.indexName })), (input.period !== undefined && input.period !== null && { period: input.period })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString })), (input.queryVersion !== undefined && input.queryVersion !== null && { queryVersion: input.queryVersion })), (input.unit !== undefined && input.unit !== null && { unit: input.unit })));
|
|
6751
|
+
})), (input.description != null && { description: input.description })), (input.expectedVersion != null && { expectedVersion: input.expectedVersion })), (input.indexName != null && { indexName: input.indexName })), (input.period != null && { period: input.period })), (input.queryString != null && { queryString: input.queryString })), (input.queryVersion != null && { queryVersion: input.queryVersion })), (input.unit != null && { unit: input.unit })));
|
|
6908
6752
|
return [2, new __HttpRequest({
|
|
6909
6753
|
protocol: protocol,
|
|
6910
6754
|
hostname: hostname,
|
|
@@ -6928,11 +6772,9 @@ export var serializeAws_restJson1UpdateIndexingConfigurationCommand = function (
|
|
|
6928
6772
|
"content-type": "application/json",
|
|
6929
6773
|
};
|
|
6930
6774
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indexing/config";
|
|
6931
|
-
body = JSON.stringify(__assign(__assign({}, (input.thingGroupIndexingConfiguration
|
|
6932
|
-
input.thingGroupIndexingConfiguration !== null && {
|
|
6775
|
+
body = JSON.stringify(__assign(__assign({}, (input.thingGroupIndexingConfiguration != null && {
|
|
6933
6776
|
thingGroupIndexingConfiguration: serializeAws_restJson1ThingGroupIndexingConfiguration(input.thingGroupIndexingConfiguration, context),
|
|
6934
|
-
})), (input.thingIndexingConfiguration
|
|
6935
|
-
input.thingIndexingConfiguration !== null && {
|
|
6777
|
+
})), (input.thingIndexingConfiguration != null && {
|
|
6936
6778
|
thingIndexingConfiguration: serializeAws_restJson1ThingIndexingConfiguration(input.thingIndexingConfiguration, context),
|
|
6937
6779
|
})));
|
|
6938
6780
|
return [2, new __HttpRequest({
|
|
@@ -6969,18 +6811,13 @@ export var serializeAws_restJson1UpdateJobCommand = function (input, context) {
|
|
|
6969
6811
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
6970
6812
|
}
|
|
6971
6813
|
query = __assign({}, (input.namespaceId !== undefined && { namespaceId: input.namespaceId }));
|
|
6972
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.abortConfig
|
|
6973
|
-
input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.jobExecutionsRetryConfig !== undefined &&
|
|
6974
|
-
input.jobExecutionsRetryConfig !== null && {
|
|
6814
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.abortConfig != null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) })), (input.description != null && { description: input.description })), (input.jobExecutionsRetryConfig != null && {
|
|
6975
6815
|
jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
|
|
6976
|
-
})), (input.jobExecutionsRolloutConfig
|
|
6977
|
-
input.jobExecutionsRolloutConfig !== null && {
|
|
6816
|
+
})), (input.jobExecutionsRolloutConfig != null && {
|
|
6978
6817
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
6979
|
-
})), (input.presignedUrlConfig
|
|
6980
|
-
input.presignedUrlConfig !== null && {
|
|
6818
|
+
})), (input.presignedUrlConfig != null && {
|
|
6981
6819
|
presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
|
|
6982
|
-
})), (input.timeoutConfig
|
|
6983
|
-
input.timeoutConfig !== null && {
|
|
6820
|
+
})), (input.timeoutConfig != null && {
|
|
6984
6821
|
timeoutConfig: serializeAws_restJson1TimeoutConfig(input.timeoutConfig, context),
|
|
6985
6822
|
})));
|
|
6986
6823
|
return [2, new __HttpRequest({
|
|
@@ -7017,10 +6854,9 @@ export var serializeAws_restJson1UpdateMitigationActionCommand = function (input
|
|
|
7017
6854
|
else {
|
|
7018
6855
|
throw new Error("No value provided for input HTTP label: actionName.");
|
|
7019
6856
|
}
|
|
7020
|
-
body = JSON.stringify(__assign(__assign({}, (input.actionParams
|
|
7021
|
-
input.actionParams !== null && {
|
|
6857
|
+
body = JSON.stringify(__assign(__assign({}, (input.actionParams != null && {
|
|
7022
6858
|
actionParams: serializeAws_restJson1MitigationActionParams(input.actionParams, context),
|
|
7023
|
-
})), (input.roleArn
|
|
6859
|
+
})), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
7024
6860
|
return [2, new __HttpRequest({
|
|
7025
6861
|
protocol: protocol,
|
|
7026
6862
|
hostname: hostname,
|
|
@@ -7054,13 +6890,9 @@ export var serializeAws_restJson1UpdateProvisioningTemplateCommand = function (i
|
|
|
7054
6890
|
else {
|
|
7055
6891
|
throw new Error("No value provided for input HTTP label: templateName.");
|
|
7056
6892
|
}
|
|
7057
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.defaultVersionId
|
|
7058
|
-
input.defaultVersionId !== null && { defaultVersionId: input.defaultVersionId })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled })), (input.preProvisioningHook !== undefined &&
|
|
7059
|
-
input.preProvisioningHook !== null && {
|
|
6893
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.defaultVersionId != null && { defaultVersionId: input.defaultVersionId })), (input.description != null && { description: input.description })), (input.enabled != null && { enabled: input.enabled })), (input.preProvisioningHook != null && {
|
|
7060
6894
|
preProvisioningHook: serializeAws_restJson1ProvisioningHook(input.preProvisioningHook, context),
|
|
7061
|
-
})), (input.provisioningRoleArn
|
|
7062
|
-
input.provisioningRoleArn !== null && { provisioningRoleArn: input.provisioningRoleArn })), (input.removePreProvisioningHook !== undefined &&
|
|
7063
|
-
input.removePreProvisioningHook !== null && { removePreProvisioningHook: input.removePreProvisioningHook })));
|
|
6895
|
+
})), (input.provisioningRoleArn != null && { provisioningRoleArn: input.provisioningRoleArn })), (input.removePreProvisioningHook != null && { removePreProvisioningHook: input.removePreProvisioningHook })));
|
|
7064
6896
|
return [2, new __HttpRequest({
|
|
7065
6897
|
protocol: protocol,
|
|
7066
6898
|
hostname: hostname,
|
|
@@ -7094,8 +6926,7 @@ export var serializeAws_restJson1UpdateRoleAliasCommand = function (input, conte
|
|
|
7094
6926
|
else {
|
|
7095
6927
|
throw new Error("No value provided for input HTTP label: roleAlias.");
|
|
7096
6928
|
}
|
|
7097
|
-
body = JSON.stringify(__assign(__assign({}, (input.credentialDurationSeconds
|
|
7098
|
-
input.credentialDurationSeconds !== null && { credentialDurationSeconds: input.credentialDurationSeconds })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })));
|
|
6929
|
+
body = JSON.stringify(__assign(__assign({}, (input.credentialDurationSeconds != null && { credentialDurationSeconds: input.credentialDurationSeconds })), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
7099
6930
|
return [2, new __HttpRequest({
|
|
7100
6931
|
protocol: protocol,
|
|
7101
6932
|
hostname: hostname,
|
|
@@ -7130,8 +6961,7 @@ export var serializeAws_restJson1UpdateScheduledAuditCommand = function (input,
|
|
|
7130
6961
|
else {
|
|
7131
6962
|
throw new Error("No value provided for input HTTP label: scheduledAuditName.");
|
|
7132
6963
|
}
|
|
7133
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.dayOfMonth
|
|
7134
|
-
input.targetCheckNames !== null && {
|
|
6964
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.dayOfMonth != null && { dayOfMonth: input.dayOfMonth })), (input.dayOfWeek != null && { dayOfWeek: input.dayOfWeek })), (input.frequency != null && { frequency: input.frequency })), (input.targetCheckNames != null && {
|
|
7135
6965
|
targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
|
|
7136
6966
|
})));
|
|
7137
6967
|
return [2, new __HttpRequest({
|
|
@@ -7168,21 +6998,15 @@ export var serializeAws_restJson1UpdateSecurityProfileCommand = function (input,
|
|
|
7168
6998
|
throw new Error("No value provided for input HTTP label: securityProfileName.");
|
|
7169
6999
|
}
|
|
7170
7000
|
query = __assign({}, (input.expectedVersion !== undefined && { expectedVersion: input.expectedVersion.toString() }));
|
|
7171
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalMetricsToRetain
|
|
7172
|
-
input.additionalMetricsToRetain !== null && {
|
|
7001
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalMetricsToRetain != null && {
|
|
7173
7002
|
additionalMetricsToRetain: serializeAws_restJson1AdditionalMetricsToRetainList(input.additionalMetricsToRetain, context),
|
|
7174
|
-
})), (input.additionalMetricsToRetainV2
|
|
7175
|
-
input.additionalMetricsToRetainV2 !== null && {
|
|
7003
|
+
})), (input.additionalMetricsToRetainV2 != null && {
|
|
7176
7004
|
additionalMetricsToRetainV2: serializeAws_restJson1AdditionalMetricsToRetainV2List(input.additionalMetricsToRetainV2, context),
|
|
7177
|
-
})), (input.alertTargets
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
input.deleteAdditionalMetricsToRetain !== null && {
|
|
7005
|
+
})), (input.alertTargets != null && {
|
|
7006
|
+
alertTargets: serializeAws_restJson1AlertTargets(input.alertTargets, context),
|
|
7007
|
+
})), (input.behaviors != null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) })), (input.deleteAdditionalMetricsToRetain != null && {
|
|
7181
7008
|
deleteAdditionalMetricsToRetain: input.deleteAdditionalMetricsToRetain,
|
|
7182
|
-
})), (input.deleteAlertTargets
|
|
7183
|
-
input.deleteAlertTargets !== null && { deleteAlertTargets: input.deleteAlertTargets })), (input.deleteBehaviors !== undefined &&
|
|
7184
|
-
input.deleteBehaviors !== null && { deleteBehaviors: input.deleteBehaviors })), (input.securityProfileDescription !== undefined &&
|
|
7185
|
-
input.securityProfileDescription !== null && { securityProfileDescription: input.securityProfileDescription })));
|
|
7009
|
+
})), (input.deleteAlertTargets != null && { deleteAlertTargets: input.deleteAlertTargets })), (input.deleteBehaviors != null && { deleteBehaviors: input.deleteBehaviors })), (input.securityProfileDescription != null && { securityProfileDescription: input.securityProfileDescription })));
|
|
7186
7010
|
return [2, new __HttpRequest({
|
|
7187
7011
|
protocol: protocol,
|
|
7188
7012
|
hostname: hostname,
|
|
@@ -7217,8 +7041,7 @@ export var serializeAws_restJson1UpdateStreamCommand = function (input, context)
|
|
|
7217
7041
|
else {
|
|
7218
7042
|
throw new Error("No value provided for input HTTP label: streamId.");
|
|
7219
7043
|
}
|
|
7220
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.description
|
|
7221
|
-
input.files !== null && { files: serializeAws_restJson1StreamFiles(input.files, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })));
|
|
7044
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.files != null && { files: serializeAws_restJson1StreamFiles(input.files, context) })), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
7222
7045
|
return [2, new __HttpRequest({
|
|
7223
7046
|
protocol: protocol,
|
|
7224
7047
|
hostname: hostname,
|
|
@@ -7252,12 +7075,9 @@ export var serializeAws_restJson1UpdateThingCommand = function (input, context)
|
|
|
7252
7075
|
else {
|
|
7253
7076
|
throw new Error("No value provided for input HTTP label: thingName.");
|
|
7254
7077
|
}
|
|
7255
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.attributePayload
|
|
7256
|
-
input.attributePayload !== null && {
|
|
7078
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.attributePayload != null && {
|
|
7257
7079
|
attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
|
|
7258
|
-
})), (input.expectedVersion
|
|
7259
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })), (input.removeThingType !== undefined &&
|
|
7260
|
-
input.removeThingType !== null && { removeThingType: input.removeThingType })), (input.thingTypeName !== undefined && input.thingTypeName !== null && { thingTypeName: input.thingTypeName })));
|
|
7080
|
+
})), (input.expectedVersion != null && { expectedVersion: input.expectedVersion })), (input.removeThingType != null && { removeThingType: input.removeThingType })), (input.thingTypeName != null && { thingTypeName: input.thingTypeName })));
|
|
7261
7081
|
return [2, new __HttpRequest({
|
|
7262
7082
|
protocol: protocol,
|
|
7263
7083
|
hostname: hostname,
|
|
@@ -7291,9 +7111,7 @@ export var serializeAws_restJson1UpdateThingGroupCommand = function (input, cont
|
|
|
7291
7111
|
else {
|
|
7292
7112
|
throw new Error("No value provided for input HTTP label: thingGroupName.");
|
|
7293
7113
|
}
|
|
7294
|
-
body = JSON.stringify(__assign(__assign({}, (input.expectedVersion
|
|
7295
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })), (input.thingGroupProperties !== undefined &&
|
|
7296
|
-
input.thingGroupProperties !== null && {
|
|
7114
|
+
body = JSON.stringify(__assign(__assign({}, (input.expectedVersion != null && { expectedVersion: input.expectedVersion })), (input.thingGroupProperties != null && {
|
|
7297
7115
|
thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
|
|
7298
7116
|
})));
|
|
7299
7117
|
return [2, new __HttpRequest({
|
|
@@ -7319,14 +7137,11 @@ export var serializeAws_restJson1UpdateThingGroupsForThingCommand = function (in
|
|
|
7319
7137
|
"content-type": "application/json",
|
|
7320
7138
|
};
|
|
7321
7139
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/updateThingGroupsForThing";
|
|
7322
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.overrideDynamicGroups
|
|
7323
|
-
input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingGroupsToAdd !== undefined &&
|
|
7324
|
-
input.thingGroupsToAdd !== null && {
|
|
7140
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingGroupsToAdd != null && {
|
|
7325
7141
|
thingGroupsToAdd: serializeAws_restJson1ThingGroupList(input.thingGroupsToAdd, context),
|
|
7326
|
-
})), (input.thingGroupsToRemove
|
|
7327
|
-
input.thingGroupsToRemove !== null && {
|
|
7142
|
+
})), (input.thingGroupsToRemove != null && {
|
|
7328
7143
|
thingGroupsToRemove: serializeAws_restJson1ThingGroupList(input.thingGroupsToRemove, context),
|
|
7329
|
-
})), (input.thingName
|
|
7144
|
+
})), (input.thingName != null && { thingName: input.thingName })));
|
|
7330
7145
|
return [2, new __HttpRequest({
|
|
7331
7146
|
protocol: protocol,
|
|
7332
7147
|
hostname: hostname,
|
|
@@ -7350,7 +7165,7 @@ export var serializeAws_restJson1UpdateTopicRuleDestinationCommand = function (i
|
|
|
7350
7165
|
"content-type": "application/json",
|
|
7351
7166
|
};
|
|
7352
7167
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations";
|
|
7353
|
-
body = JSON.stringify(__assign(__assign({}, (input.arn
|
|
7168
|
+
body = JSON.stringify(__assign(__assign({}, (input.arn != null && { arn: input.arn })), (input.status != null && { status: input.status })));
|
|
7354
7169
|
return [2, new __HttpRequest({
|
|
7355
7170
|
protocol: protocol,
|
|
7356
7171
|
hostname: hostname,
|
|
@@ -7374,8 +7189,7 @@ export var serializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = funct
|
|
|
7374
7189
|
"content-type": "application/json",
|
|
7375
7190
|
};
|
|
7376
7191
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/security-profile-behaviors/validate";
|
|
7377
|
-
body = JSON.stringify(__assign({}, (input.behaviors
|
|
7378
|
-
input.behaviors !== null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) })));
|
|
7192
|
+
body = JSON.stringify(__assign({}, (input.behaviors != null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) })));
|
|
7379
7193
|
return [2, new __HttpRequest({
|
|
7380
7194
|
protocol: protocol,
|
|
7381
7195
|
hostname: hostname,
|
|
@@ -25972,15 +25786,12 @@ var deserializeAws_restJson1VersionsLimitExceededExceptionResponse = function (p
|
|
|
25972
25786
|
});
|
|
25973
25787
|
}); };
|
|
25974
25788
|
var serializeAws_restJson1AbortConfig = function (input, context) {
|
|
25975
|
-
return __assign({}, (input.criteriaList
|
|
25976
|
-
input.criteriaList !== null && {
|
|
25789
|
+
return __assign({}, (input.criteriaList != null && {
|
|
25977
25790
|
criteriaList: serializeAws_restJson1AbortCriteriaList(input.criteriaList, context),
|
|
25978
25791
|
}));
|
|
25979
25792
|
};
|
|
25980
25793
|
var serializeAws_restJson1AbortCriteria = function (input, context) {
|
|
25981
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
25982
|
-
input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings })), (input.thresholdPercentage !== undefined &&
|
|
25983
|
-
input.thresholdPercentage !== null && { thresholdPercentage: __serializeFloat(input.thresholdPercentage) }));
|
|
25794
|
+
return __assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.failureType != null && { failureType: input.failureType })), (input.minNumberOfExecutedThings != null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings })), (input.thresholdPercentage != null && { thresholdPercentage: __serializeFloat(input.thresholdPercentage) }));
|
|
25984
25795
|
};
|
|
25985
25796
|
var serializeAws_restJson1AbortCriteriaList = function (input, context) {
|
|
25986
25797
|
return input
|
|
@@ -25993,40 +25804,21 @@ var serializeAws_restJson1AbortCriteriaList = function (input, context) {
|
|
|
25993
25804
|
});
|
|
25994
25805
|
};
|
|
25995
25806
|
var serializeAws_restJson1Action = function (input, context) {
|
|
25996
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cloudwatchAlarm
|
|
25997
|
-
input.cloudwatchAlarm !== null && {
|
|
25807
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cloudwatchAlarm != null && {
|
|
25998
25808
|
cloudwatchAlarm: serializeAws_restJson1CloudwatchAlarmAction(input.cloudwatchAlarm, context),
|
|
25999
|
-
})), (input.cloudwatchLogs
|
|
26000
|
-
input.cloudwatchLogs !== null && {
|
|
25809
|
+
})), (input.cloudwatchLogs != null && {
|
|
26001
25810
|
cloudwatchLogs: serializeAws_restJson1CloudwatchLogsAction(input.cloudwatchLogs, context),
|
|
26002
|
-
})), (input.cloudwatchMetric
|
|
26003
|
-
input.cloudwatchMetric !== null && {
|
|
25811
|
+
})), (input.cloudwatchMetric != null && {
|
|
26004
25812
|
cloudwatchMetric: serializeAws_restJson1CloudwatchMetricAction(input.cloudwatchMetric, context),
|
|
26005
|
-
})), (input.dynamoDB
|
|
26006
|
-
input.dynamoDB !== null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 !== undefined &&
|
|
26007
|
-
input.dynamoDBv2 !== null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.elasticsearch !== undefined &&
|
|
26008
|
-
input.elasticsearch !== null && {
|
|
25813
|
+
})), (input.dynamoDB != null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 != null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.elasticsearch != null && {
|
|
26009
25814
|
elasticsearch: serializeAws_restJson1ElasticsearchAction(input.elasticsearch, context),
|
|
26010
|
-
})), (input.firehose
|
|
26011
|
-
input.firehose !== null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.http !== undefined &&
|
|
26012
|
-
input.http !== null && { http: serializeAws_restJson1HttpAction(input.http, context) })), (input.iotAnalytics !== undefined &&
|
|
26013
|
-
input.iotAnalytics !== null && {
|
|
25815
|
+
})), (input.firehose != null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.http != null && { http: serializeAws_restJson1HttpAction(input.http, context) })), (input.iotAnalytics != null && {
|
|
26014
25816
|
iotAnalytics: serializeAws_restJson1IotAnalyticsAction(input.iotAnalytics, context),
|
|
26015
|
-
})), (input.iotEvents
|
|
26016
|
-
input.iotEvents !== null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise !== undefined &&
|
|
26017
|
-
input.iotSiteWise !== null && {
|
|
25817
|
+
})), (input.iotEvents != null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise != null && {
|
|
26018
25818
|
iotSiteWise: serializeAws_restJson1IotSiteWiseAction(input.iotSiteWise, context),
|
|
26019
|
-
})), (input.kafka
|
|
26020
|
-
input.kafka !== null && { kafka: serializeAws_restJson1KafkaAction(input.kafka, context) })), (input.kinesis !== undefined &&
|
|
26021
|
-
input.kinesis !== null && { kinesis: serializeAws_restJson1KinesisAction(input.kinesis, context) })), (input.lambda !== undefined &&
|
|
26022
|
-
input.lambda !== null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.openSearch !== undefined &&
|
|
26023
|
-
input.openSearch !== null && { openSearch: serializeAws_restJson1OpenSearchAction(input.openSearch, context) })), (input.republish !== undefined &&
|
|
26024
|
-
input.republish !== null && { republish: serializeAws_restJson1RepublishAction(input.republish, context) })), (input.s3 !== undefined && input.s3 !== null && { s3: serializeAws_restJson1S3Action(input.s3, context) })), (input.salesforce !== undefined &&
|
|
26025
|
-
input.salesforce !== null && { salesforce: serializeAws_restJson1SalesforceAction(input.salesforce, context) })), (input.sns !== undefined && input.sns !== null && { sns: serializeAws_restJson1SnsAction(input.sns, context) })), (input.sqs !== undefined && input.sqs !== null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) })), (input.stepFunctions !== undefined &&
|
|
26026
|
-
input.stepFunctions !== null && {
|
|
25819
|
+
})), (input.kafka != null && { kafka: serializeAws_restJson1KafkaAction(input.kafka, context) })), (input.kinesis != null && { kinesis: serializeAws_restJson1KinesisAction(input.kinesis, context) })), (input.lambda != null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.openSearch != null && { openSearch: serializeAws_restJson1OpenSearchAction(input.openSearch, context) })), (input.republish != null && { republish: serializeAws_restJson1RepublishAction(input.republish, context) })), (input.s3 != null && { s3: serializeAws_restJson1S3Action(input.s3, context) })), (input.salesforce != null && { salesforce: serializeAws_restJson1SalesforceAction(input.salesforce, context) })), (input.sns != null && { sns: serializeAws_restJson1SnsAction(input.sns, context) })), (input.sqs != null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) })), (input.stepFunctions != null && {
|
|
26027
25820
|
stepFunctions: serializeAws_restJson1StepFunctionsAction(input.stepFunctions, context),
|
|
26028
|
-
})), (input.timestream
|
|
26029
|
-
input.timestream !== null && { timestream: serializeAws_restJson1TimestreamAction(input.timestream, context) }));
|
|
25821
|
+
})), (input.timestream != null && { timestream: serializeAws_restJson1TimestreamAction(input.timestream, context) }));
|
|
26030
25822
|
};
|
|
26031
25823
|
var serializeAws_restJson1ActionList = function (input, context) {
|
|
26032
25824
|
return input
|
|
@@ -26069,15 +25861,12 @@ var serializeAws_restJson1AdditionalParameterMap = function (input, context) {
|
|
|
26069
25861
|
}, {});
|
|
26070
25862
|
};
|
|
26071
25863
|
var serializeAws_restJson1AddThingsToThingGroupParams = function (input, context) {
|
|
26072
|
-
return __assign(__assign({}, (input.overrideDynamicGroups
|
|
26073
|
-
input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingGroupNames !== undefined &&
|
|
26074
|
-
input.thingGroupNames !== null && {
|
|
25864
|
+
return __assign(__assign({}, (input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingGroupNames != null && {
|
|
26075
25865
|
thingGroupNames: serializeAws_restJson1ThingGroupNames(input.thingGroupNames, context),
|
|
26076
25866
|
}));
|
|
26077
25867
|
};
|
|
26078
25868
|
var serializeAws_restJson1AggregationType = function (input, context) {
|
|
26079
|
-
return __assign(__assign({}, (input.name
|
|
26080
|
-
input.values !== null && { values: serializeAws_restJson1AggregationTypeValues(input.values, context) }));
|
|
25869
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.values != null && { values: serializeAws_restJson1AggregationTypeValues(input.values, context) }));
|
|
26081
25870
|
};
|
|
26082
25871
|
var serializeAws_restJson1AggregationTypeValues = function (input, context) {
|
|
26083
25872
|
return input
|
|
@@ -26090,8 +25879,7 @@ var serializeAws_restJson1AggregationTypeValues = function (input, context) {
|
|
|
26090
25879
|
});
|
|
26091
25880
|
};
|
|
26092
25881
|
var serializeAws_restJson1AlertTarget = function (input, context) {
|
|
26093
|
-
return __assign(__assign({}, (input.alertTargetArn
|
|
26094
|
-
input.alertTargetArn !== null && { alertTargetArn: input.alertTargetArn })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
|
|
25882
|
+
return __assign(__assign({}, (input.alertTargetArn != null && { alertTargetArn: input.alertTargetArn })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26095
25883
|
};
|
|
26096
25884
|
var serializeAws_restJson1AlertTargets = function (input, context) {
|
|
26097
25885
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26104,14 +25892,12 @@ var serializeAws_restJson1AlertTargets = function (input, context) {
|
|
|
26104
25892
|
}, {});
|
|
26105
25893
|
};
|
|
26106
25894
|
var serializeAws_restJson1AssetPropertyTimestamp = function (input, context) {
|
|
26107
|
-
return __assign(__assign({}, (input.offsetInNanos
|
|
25895
|
+
return __assign(__assign({}, (input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos })), (input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }));
|
|
26108
25896
|
};
|
|
26109
25897
|
var serializeAws_restJson1AssetPropertyValue = function (input, context) {
|
|
26110
|
-
return __assign(__assign(__assign({}, (input.quality
|
|
26111
|
-
input.timestamp !== null && {
|
|
25898
|
+
return __assign(__assign(__assign({}, (input.quality != null && { quality: input.quality })), (input.timestamp != null && {
|
|
26112
25899
|
timestamp: serializeAws_restJson1AssetPropertyTimestamp(input.timestamp, context),
|
|
26113
|
-
})), (input.value
|
|
26114
|
-
input.value !== null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }));
|
|
25900
|
+
})), (input.value != null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }));
|
|
26115
25901
|
};
|
|
26116
25902
|
var serializeAws_restJson1AssetPropertyValueList = function (input, context) {
|
|
26117
25903
|
return input
|
|
@@ -26133,8 +25919,7 @@ var serializeAws_restJson1AssetPropertyVariant = function (input, context) {
|
|
|
26133
25919
|
});
|
|
26134
25920
|
};
|
|
26135
25921
|
var serializeAws_restJson1AttributePayload = function (input, context) {
|
|
26136
|
-
return __assign(__assign({}, (input.attributes
|
|
26137
|
-
input.attributes !== null && { attributes: serializeAws_restJson1Attributes(input.attributes, context) })), (input.merge !== undefined && input.merge !== null && { merge: input.merge }));
|
|
25922
|
+
return __assign(__assign({}, (input.attributes != null && { attributes: serializeAws_restJson1Attributes(input.attributes, context) })), (input.merge != null && { merge: input.merge }));
|
|
26138
25923
|
};
|
|
26139
25924
|
var serializeAws_restJson1Attributes = function (input, context) {
|
|
26140
25925
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26157,7 +25942,7 @@ var serializeAws_restJson1AttributesMap = function (input, context) {
|
|
|
26157
25942
|
}, {});
|
|
26158
25943
|
};
|
|
26159
25944
|
var serializeAws_restJson1AuditCheckConfiguration = function (input, context) {
|
|
26160
|
-
return __assign({}, (input.enabled
|
|
25945
|
+
return __assign({}, (input.enabled != null && { enabled: input.enabled }));
|
|
26161
25946
|
};
|
|
26162
25947
|
var serializeAws_restJson1AuditCheckConfigurations = function (input, context) {
|
|
26163
25948
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26190,14 +25975,12 @@ var serializeAws_restJson1AuditCheckToReasonCodeFilter = function (input, contex
|
|
|
26190
25975
|
}, {});
|
|
26191
25976
|
};
|
|
26192
25977
|
var serializeAws_restJson1AuditMitigationActionsTaskTarget = function (input, context) {
|
|
26193
|
-
return __assign(__assign(__assign({}, (input.auditCheckToReasonCodeFilter
|
|
26194
|
-
input.auditCheckToReasonCodeFilter !== null && {
|
|
25978
|
+
return __assign(__assign(__assign({}, (input.auditCheckToReasonCodeFilter != null && {
|
|
26195
25979
|
auditCheckToReasonCodeFilter: serializeAws_restJson1AuditCheckToReasonCodeFilter(input.auditCheckToReasonCodeFilter, context),
|
|
26196
|
-
})), (input.auditTaskId
|
|
26197
|
-
input.findingIds !== null && { findingIds: serializeAws_restJson1FindingIds(input.findingIds, context) }));
|
|
25980
|
+
})), (input.auditTaskId != null && { auditTaskId: input.auditTaskId })), (input.findingIds != null && { findingIds: serializeAws_restJson1FindingIds(input.findingIds, context) }));
|
|
26198
25981
|
};
|
|
26199
25982
|
var serializeAws_restJson1AuditNotificationTarget = function (input, context) {
|
|
26200
|
-
return __assign(__assign(__assign({}, (input.enabled
|
|
25983
|
+
return __assign(__assign(__assign({}, (input.enabled != null && { enabled: input.enabled })), (input.roleArn != null && { roleArn: input.roleArn })), (input.targetArn != null && { targetArn: input.targetArn }));
|
|
26201
25984
|
};
|
|
26202
25985
|
var serializeAws_restJson1AuditNotificationTargetConfigurations = function (input, context) {
|
|
26203
25986
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26210,8 +25993,7 @@ var serializeAws_restJson1AuditNotificationTargetConfigurations = function (inpu
|
|
|
26210
25993
|
}, {});
|
|
26211
25994
|
};
|
|
26212
25995
|
var serializeAws_restJson1AuthInfo = function (input, context) {
|
|
26213
|
-
return __assign(__assign({}, (input.actionType
|
|
26214
|
-
input.resources !== null && { resources: serializeAws_restJson1Resources(input.resources, context) }));
|
|
25996
|
+
return __assign(__assign({}, (input.actionType != null && { actionType: input.actionType })), (input.resources != null && { resources: serializeAws_restJson1Resources(input.resources, context) }));
|
|
26215
25997
|
};
|
|
26216
25998
|
var serializeAws_restJson1AuthInfos = function (input, context) {
|
|
26217
25999
|
return input
|
|
@@ -26224,20 +26006,15 @@ var serializeAws_restJson1AuthInfos = function (input, context) {
|
|
|
26224
26006
|
});
|
|
26225
26007
|
};
|
|
26226
26008
|
var serializeAws_restJson1AuthorizerConfig = function (input, context) {
|
|
26227
|
-
return __assign(__assign({}, (input.allowAuthorizerOverride
|
|
26228
|
-
input.allowAuthorizerOverride !== null && { allowAuthorizerOverride: input.allowAuthorizerOverride })), (input.defaultAuthorizerName !== undefined &&
|
|
26229
|
-
input.defaultAuthorizerName !== null && { defaultAuthorizerName: input.defaultAuthorizerName }));
|
|
26009
|
+
return __assign(__assign({}, (input.allowAuthorizerOverride != null && { allowAuthorizerOverride: input.allowAuthorizerOverride })), (input.defaultAuthorizerName != null && { defaultAuthorizerName: input.defaultAuthorizerName }));
|
|
26230
26010
|
};
|
|
26231
26011
|
var serializeAws_restJson1AwsJobAbortConfig = function (input, context) {
|
|
26232
|
-
return __assign({}, (input.abortCriteriaList
|
|
26233
|
-
input.abortCriteriaList !== null && {
|
|
26012
|
+
return __assign({}, (input.abortCriteriaList != null && {
|
|
26234
26013
|
abortCriteriaList: serializeAws_restJson1AwsJobAbortCriteriaList(input.abortCriteriaList, context),
|
|
26235
26014
|
}));
|
|
26236
26015
|
};
|
|
26237
26016
|
var serializeAws_restJson1AwsJobAbortCriteria = function (input, context) {
|
|
26238
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
26239
|
-
input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings })), (input.thresholdPercentage !== undefined &&
|
|
26240
|
-
input.thresholdPercentage !== null && { thresholdPercentage: __serializeFloat(input.thresholdPercentage) }));
|
|
26017
|
+
return __assign(__assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.failureType != null && { failureType: input.failureType })), (input.minNumberOfExecutedThings != null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings })), (input.thresholdPercentage != null && { thresholdPercentage: __serializeFloat(input.thresholdPercentage) }));
|
|
26241
26018
|
};
|
|
26242
26019
|
var serializeAws_restJson1AwsJobAbortCriteriaList = function (input, context) {
|
|
26243
26020
|
return input
|
|
@@ -26250,57 +26027,39 @@ var serializeAws_restJson1AwsJobAbortCriteriaList = function (input, context) {
|
|
|
26250
26027
|
});
|
|
26251
26028
|
};
|
|
26252
26029
|
var serializeAws_restJson1AwsJobExecutionsRolloutConfig = function (input, context) {
|
|
26253
|
-
return __assign(__assign({}, (input.exponentialRate
|
|
26254
|
-
input.exponentialRate !== null && {
|
|
26030
|
+
return __assign(__assign({}, (input.exponentialRate != null && {
|
|
26255
26031
|
exponentialRate: serializeAws_restJson1AwsJobExponentialRolloutRate(input.exponentialRate, context),
|
|
26256
|
-
})), (input.maximumPerMinute
|
|
26257
|
-
input.maximumPerMinute !== null && { maximumPerMinute: input.maximumPerMinute }));
|
|
26032
|
+
})), (input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }));
|
|
26258
26033
|
};
|
|
26259
26034
|
var serializeAws_restJson1AwsJobExponentialRolloutRate = function (input, context) {
|
|
26260
|
-
return __assign(__assign(__assign({}, (input.baseRatePerMinute
|
|
26261
|
-
input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute })), (input.incrementFactor !== undefined &&
|
|
26262
|
-
input.incrementFactor !== null && { incrementFactor: __serializeFloat(input.incrementFactor) })), (input.rateIncreaseCriteria !== undefined &&
|
|
26263
|
-
input.rateIncreaseCriteria !== null && {
|
|
26035
|
+
return __assign(__assign(__assign({}, (input.baseRatePerMinute != null && { baseRatePerMinute: input.baseRatePerMinute })), (input.incrementFactor != null && { incrementFactor: __serializeFloat(input.incrementFactor) })), (input.rateIncreaseCriteria != null && {
|
|
26264
26036
|
rateIncreaseCriteria: serializeAws_restJson1AwsJobRateIncreaseCriteria(input.rateIncreaseCriteria, context),
|
|
26265
26037
|
}));
|
|
26266
26038
|
};
|
|
26267
26039
|
var serializeAws_restJson1AwsJobPresignedUrlConfig = function (input, context) {
|
|
26268
|
-
return __assign({}, (input.expiresInSec
|
|
26040
|
+
return __assign({}, (input.expiresInSec != null && { expiresInSec: input.expiresInSec }));
|
|
26269
26041
|
};
|
|
26270
26042
|
var serializeAws_restJson1AwsJobRateIncreaseCriteria = function (input, context) {
|
|
26271
|
-
return __assign(__assign({}, (input.numberOfNotifiedThings
|
|
26272
|
-
input.numberOfNotifiedThings !== null && { numberOfNotifiedThings: input.numberOfNotifiedThings })), (input.numberOfSucceededThings !== undefined &&
|
|
26273
|
-
input.numberOfSucceededThings !== null && { numberOfSucceededThings: input.numberOfSucceededThings }));
|
|
26043
|
+
return __assign(__assign({}, (input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings })), (input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }));
|
|
26274
26044
|
};
|
|
26275
26045
|
var serializeAws_restJson1AwsJobTimeoutConfig = function (input, context) {
|
|
26276
|
-
return __assign({}, (input.inProgressTimeoutInMinutes
|
|
26277
|
-
input.inProgressTimeoutInMinutes !== null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }));
|
|
26046
|
+
return __assign({}, (input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }));
|
|
26278
26047
|
};
|
|
26279
26048
|
var serializeAws_restJson1Behavior = function (input, context) {
|
|
26280
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.criteria
|
|
26281
|
-
input.criteria !== null && { criteria: serializeAws_restJson1BehaviorCriteria(input.criteria, context) })), (input.metric !== undefined && input.metric !== null && { metric: input.metric })), (input.metricDimension !== undefined &&
|
|
26282
|
-
input.metricDimension !== null && {
|
|
26049
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.criteria != null && { criteria: serializeAws_restJson1BehaviorCriteria(input.criteria, context) })), (input.metric != null && { metric: input.metric })), (input.metricDimension != null && {
|
|
26283
26050
|
metricDimension: serializeAws_restJson1MetricDimension(input.metricDimension, context),
|
|
26284
|
-
})), (input.name
|
|
26285
|
-
input.suppressAlerts !== null && { suppressAlerts: input.suppressAlerts }));
|
|
26051
|
+
})), (input.name != null && { name: input.name })), (input.suppressAlerts != null && { suppressAlerts: input.suppressAlerts }));
|
|
26286
26052
|
};
|
|
26287
26053
|
var serializeAws_restJson1BehaviorCriteria = function (input, context) {
|
|
26288
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.comparisonOperator
|
|
26289
|
-
input.comparisonOperator !== null && { comparisonOperator: input.comparisonOperator })), (input.consecutiveDatapointsToAlarm !== undefined &&
|
|
26290
|
-
input.consecutiveDatapointsToAlarm !== null && {
|
|
26054
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.comparisonOperator != null && { comparisonOperator: input.comparisonOperator })), (input.consecutiveDatapointsToAlarm != null && {
|
|
26291
26055
|
consecutiveDatapointsToAlarm: input.consecutiveDatapointsToAlarm,
|
|
26292
|
-
})), (input.consecutiveDatapointsToClear
|
|
26293
|
-
input.consecutiveDatapointsToClear !== null && {
|
|
26056
|
+
})), (input.consecutiveDatapointsToClear != null && {
|
|
26294
26057
|
consecutiveDatapointsToClear: input.consecutiveDatapointsToClear,
|
|
26295
|
-
})), (input.durationSeconds
|
|
26296
|
-
input.durationSeconds !== null && { durationSeconds: input.durationSeconds })), (input.mlDetectionConfig !== undefined &&
|
|
26297
|
-
input.mlDetectionConfig !== null && {
|
|
26058
|
+
})), (input.durationSeconds != null && { durationSeconds: input.durationSeconds })), (input.mlDetectionConfig != null && {
|
|
26298
26059
|
mlDetectionConfig: serializeAws_restJson1MachineLearningDetectionConfig(input.mlDetectionConfig, context),
|
|
26299
|
-
})), (input.statisticalThreshold
|
|
26300
|
-
input.statisticalThreshold !== null && {
|
|
26060
|
+
})), (input.statisticalThreshold != null && {
|
|
26301
26061
|
statisticalThreshold: serializeAws_restJson1StatisticalThreshold(input.statisticalThreshold, context),
|
|
26302
|
-
})), (input.value
|
|
26303
|
-
input.value !== null && { value: serializeAws_restJson1MetricValue(input.value, context) }));
|
|
26062
|
+
})), (input.value != null && { value: serializeAws_restJson1MetricValue(input.value, context) }));
|
|
26304
26063
|
};
|
|
26305
26064
|
var serializeAws_restJson1Behaviors = function (input, context) {
|
|
26306
26065
|
return input
|
|
@@ -26313,12 +26072,10 @@ var serializeAws_restJson1Behaviors = function (input, context) {
|
|
|
26313
26072
|
});
|
|
26314
26073
|
};
|
|
26315
26074
|
var serializeAws_restJson1BillingGroupProperties = function (input, context) {
|
|
26316
|
-
return __assign({}, (input.billingGroupDescription
|
|
26317
|
-
input.billingGroupDescription !== null && { billingGroupDescription: input.billingGroupDescription }));
|
|
26075
|
+
return __assign({}, (input.billingGroupDescription != null && { billingGroupDescription: input.billingGroupDescription }));
|
|
26318
26076
|
};
|
|
26319
26077
|
var serializeAws_restJson1BucketsAggregationType = function (input, context) {
|
|
26320
|
-
return __assign({}, (input.termsAggregation
|
|
26321
|
-
input.termsAggregation !== null && {
|
|
26078
|
+
return __assign({}, (input.termsAggregation != null && {
|
|
26322
26079
|
termsAggregation: serializeAws_restJson1TermsAggregation(input.termsAggregation, context),
|
|
26323
26080
|
}));
|
|
26324
26081
|
};
|
|
@@ -26343,49 +26100,37 @@ var serializeAws_restJson1ClientProperties = function (input, context) {
|
|
|
26343
26100
|
}, {});
|
|
26344
26101
|
};
|
|
26345
26102
|
var serializeAws_restJson1CloudwatchAlarmAction = function (input, context) {
|
|
26346
|
-
return __assign(__assign(__assign(__assign({}, (input.alarmName
|
|
26103
|
+
return __assign(__assign(__assign(__assign({}, (input.alarmName != null && { alarmName: input.alarmName })), (input.roleArn != null && { roleArn: input.roleArn })), (input.stateReason != null && { stateReason: input.stateReason })), (input.stateValue != null && { stateValue: input.stateValue }));
|
|
26347
26104
|
};
|
|
26348
26105
|
var serializeAws_restJson1CloudwatchLogsAction = function (input, context) {
|
|
26349
|
-
return __assign(__assign({}, (input.logGroupName
|
|
26106
|
+
return __assign(__assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26350
26107
|
};
|
|
26351
26108
|
var serializeAws_restJson1CloudwatchMetricAction = function (input, context) {
|
|
26352
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.metricName
|
|
26353
|
-
input.metricNamespace !== null && { metricNamespace: input.metricNamespace })), (input.metricTimestamp !== undefined &&
|
|
26354
|
-
input.metricTimestamp !== null && { metricTimestamp: input.metricTimestamp })), (input.metricUnit !== undefined && input.metricUnit !== null && { metricUnit: input.metricUnit })), (input.metricValue !== undefined && input.metricValue !== null && { metricValue: input.metricValue })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
|
|
26109
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.metricName != null && { metricName: input.metricName })), (input.metricNamespace != null && { metricNamespace: input.metricNamespace })), (input.metricTimestamp != null && { metricTimestamp: input.metricTimestamp })), (input.metricUnit != null && { metricUnit: input.metricUnit })), (input.metricValue != null && { metricValue: input.metricValue })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26355
26110
|
};
|
|
26356
26111
|
var serializeAws_restJson1CodeSigning = function (input, context) {
|
|
26357
|
-
return __assign(__assign(__assign({}, (input.awsSignerJobId
|
|
26358
|
-
input.awsSignerJobId !== null && { awsSignerJobId: input.awsSignerJobId })), (input.customCodeSigning !== undefined &&
|
|
26359
|
-
input.customCodeSigning !== null && {
|
|
26112
|
+
return __assign(__assign(__assign({}, (input.awsSignerJobId != null && { awsSignerJobId: input.awsSignerJobId })), (input.customCodeSigning != null && {
|
|
26360
26113
|
customCodeSigning: serializeAws_restJson1CustomCodeSigning(input.customCodeSigning, context),
|
|
26361
|
-
})), (input.startSigningJobParameter
|
|
26362
|
-
input.startSigningJobParameter !== null && {
|
|
26114
|
+
})), (input.startSigningJobParameter != null && {
|
|
26363
26115
|
startSigningJobParameter: serializeAws_restJson1StartSigningJobParameter(input.startSigningJobParameter, context),
|
|
26364
26116
|
}));
|
|
26365
26117
|
};
|
|
26366
26118
|
var serializeAws_restJson1CodeSigningCertificateChain = function (input, context) {
|
|
26367
|
-
return __assign(__assign({}, (input.certificateName
|
|
26368
|
-
input.certificateName !== null && { certificateName: input.certificateName })), (input.inlineDocument !== undefined &&
|
|
26369
|
-
input.inlineDocument !== null && { inlineDocument: input.inlineDocument }));
|
|
26119
|
+
return __assign(__assign({}, (input.certificateName != null && { certificateName: input.certificateName })), (input.inlineDocument != null && { inlineDocument: input.inlineDocument }));
|
|
26370
26120
|
};
|
|
26371
26121
|
var serializeAws_restJson1CodeSigningSignature = function (input, context) {
|
|
26372
|
-
return __assign({}, (input.inlineDocument
|
|
26373
|
-
input.inlineDocument !== null && { inlineDocument: context.base64Encoder(input.inlineDocument) }));
|
|
26122
|
+
return __assign({}, (input.inlineDocument != null && { inlineDocument: context.base64Encoder(input.inlineDocument) }));
|
|
26374
26123
|
};
|
|
26375
26124
|
var serializeAws_restJson1Configuration = function (input, context) {
|
|
26376
|
-
return __assign({}, (input.Enabled
|
|
26125
|
+
return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
|
|
26377
26126
|
};
|
|
26378
26127
|
var serializeAws_restJson1CustomCodeSigning = function (input, context) {
|
|
26379
|
-
return __assign(__assign(__assign(__assign({}, (input.certificateChain
|
|
26380
|
-
input.certificateChain !== null && {
|
|
26128
|
+
return __assign(__assign(__assign(__assign({}, (input.certificateChain != null && {
|
|
26381
26129
|
certificateChain: serializeAws_restJson1CodeSigningCertificateChain(input.certificateChain, context),
|
|
26382
|
-
})), (input.hashAlgorithm
|
|
26383
|
-
input.signature !== null && { signature: serializeAws_restJson1CodeSigningSignature(input.signature, context) })), (input.signatureAlgorithm !== undefined &&
|
|
26384
|
-
input.signatureAlgorithm !== null && { signatureAlgorithm: input.signatureAlgorithm }));
|
|
26130
|
+
})), (input.hashAlgorithm != null && { hashAlgorithm: input.hashAlgorithm })), (input.signature != null && { signature: serializeAws_restJson1CodeSigningSignature(input.signature, context) })), (input.signatureAlgorithm != null && { signatureAlgorithm: input.signatureAlgorithm }));
|
|
26385
26131
|
};
|
|
26386
26132
|
var serializeAws_restJson1Destination = function (input, context) {
|
|
26387
|
-
return __assign({}, (input.s3Destination
|
|
26388
|
-
input.s3Destination !== null && {
|
|
26133
|
+
return __assign({}, (input.s3Destination != null && {
|
|
26389
26134
|
s3Destination: serializeAws_restJson1S3Destination(input.s3Destination, context),
|
|
26390
26135
|
}));
|
|
26391
26136
|
};
|
|
@@ -26400,9 +26145,7 @@ var serializeAws_restJson1DetailsMap = function (input, context) {
|
|
|
26400
26145
|
}, {});
|
|
26401
26146
|
};
|
|
26402
26147
|
var serializeAws_restJson1DetectMitigationActionsTaskTarget = function (input, context) {
|
|
26403
|
-
return __assign(__assign(__assign({}, (input.behaviorName
|
|
26404
|
-
input.securityProfileName !== null && { securityProfileName: input.securityProfileName })), (input.violationIds !== undefined &&
|
|
26405
|
-
input.violationIds !== null && {
|
|
26148
|
+
return __assign(__assign(__assign({}, (input.behaviorName != null && { behaviorName: input.behaviorName })), (input.securityProfileName != null && { securityProfileName: input.securityProfileName })), (input.violationIds != null && {
|
|
26406
26149
|
violationIds: serializeAws_restJson1TargetViolationIdsForDetectMitigationActions(input.violationIds, context),
|
|
26407
26150
|
}));
|
|
26408
26151
|
};
|
|
@@ -26427,18 +26170,16 @@ var serializeAws_restJson1DimensionStringValues = function (input, context) {
|
|
|
26427
26170
|
});
|
|
26428
26171
|
};
|
|
26429
26172
|
var serializeAws_restJson1DynamoDBAction = function (input, context) {
|
|
26430
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.hashKeyField
|
|
26173
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.hashKeyField != null && { hashKeyField: input.hashKeyField })), (input.hashKeyType != null && { hashKeyType: input.hashKeyType })), (input.hashKeyValue != null && { hashKeyValue: input.hashKeyValue })), (input.operation != null && { operation: input.operation })), (input.payloadField != null && { payloadField: input.payloadField })), (input.rangeKeyField != null && { rangeKeyField: input.rangeKeyField })), (input.rangeKeyType != null && { rangeKeyType: input.rangeKeyType })), (input.rangeKeyValue != null && { rangeKeyValue: input.rangeKeyValue })), (input.roleArn != null && { roleArn: input.roleArn })), (input.tableName != null && { tableName: input.tableName }));
|
|
26431
26174
|
};
|
|
26432
26175
|
var serializeAws_restJson1DynamoDBv2Action = function (input, context) {
|
|
26433
|
-
return __assign(__assign({}, (input.putItem
|
|
26434
|
-
input.putItem !== null && { putItem: serializeAws_restJson1PutItemInput(input.putItem, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
|
|
26176
|
+
return __assign(__assign({}, (input.putItem != null && { putItem: serializeAws_restJson1PutItemInput(input.putItem, context) })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26435
26177
|
};
|
|
26436
26178
|
var serializeAws_restJson1ElasticsearchAction = function (input, context) {
|
|
26437
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.endpoint
|
|
26179
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.endpoint != null && { endpoint: input.endpoint })), (input.id != null && { id: input.id })), (input.index != null && { index: input.index })), (input.roleArn != null && { roleArn: input.roleArn })), (input.type != null && { type: input.type }));
|
|
26438
26180
|
};
|
|
26439
26181
|
var serializeAws_restJson1EnableIoTLoggingParams = function (input, context) {
|
|
26440
|
-
return __assign(__assign({}, (input.logLevel
|
|
26441
|
-
input.roleArnForLogging !== null && { roleArnForLogging: input.roleArnForLogging }));
|
|
26182
|
+
return __assign(__assign({}, (input.logLevel != null && { logLevel: input.logLevel })), (input.roleArnForLogging != null && { roleArnForLogging: input.roleArnForLogging }));
|
|
26442
26183
|
};
|
|
26443
26184
|
var serializeAws_restJson1EventConfigurations = function (input, context) {
|
|
26444
26185
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26451,15 +26192,12 @@ var serializeAws_restJson1EventConfigurations = function (input, context) {
|
|
|
26451
26192
|
}, {});
|
|
26452
26193
|
};
|
|
26453
26194
|
var serializeAws_restJson1ExponentialRolloutRate = function (input, context) {
|
|
26454
|
-
return __assign(__assign(__assign({}, (input.baseRatePerMinute
|
|
26455
|
-
input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute })), (input.incrementFactor !== undefined &&
|
|
26456
|
-
input.incrementFactor !== null && { incrementFactor: __serializeFloat(input.incrementFactor) })), (input.rateIncreaseCriteria !== undefined &&
|
|
26457
|
-
input.rateIncreaseCriteria !== null && {
|
|
26195
|
+
return __assign(__assign(__assign({}, (input.baseRatePerMinute != null && { baseRatePerMinute: input.baseRatePerMinute })), (input.incrementFactor != null && { incrementFactor: __serializeFloat(input.incrementFactor) })), (input.rateIncreaseCriteria != null && {
|
|
26458
26196
|
rateIncreaseCriteria: serializeAws_restJson1RateIncreaseCriteria(input.rateIncreaseCriteria, context),
|
|
26459
26197
|
}));
|
|
26460
26198
|
};
|
|
26461
26199
|
var serializeAws_restJson1Field = function (input, context) {
|
|
26462
|
-
return __assign(__assign({}, (input.name
|
|
26200
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.type != null && { type: input.type }));
|
|
26463
26201
|
};
|
|
26464
26202
|
var serializeAws_restJson1Fields = function (input, context) {
|
|
26465
26203
|
return input
|
|
@@ -26472,9 +26210,7 @@ var serializeAws_restJson1Fields = function (input, context) {
|
|
|
26472
26210
|
});
|
|
26473
26211
|
};
|
|
26474
26212
|
var serializeAws_restJson1FileLocation = function (input, context) {
|
|
26475
|
-
return __assign(__assign({}, (input.s3Location
|
|
26476
|
-
input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) })), (input.stream !== undefined &&
|
|
26477
|
-
input.stream !== null && { stream: serializeAws_restJson1_Stream(input.stream, context) }));
|
|
26213
|
+
return __assign(__assign({}, (input.s3Location != null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) })), (input.stream != null && { stream: serializeAws_restJson1_Stream(input.stream, context) }));
|
|
26478
26214
|
};
|
|
26479
26215
|
var serializeAws_restJson1FindingIds = function (input, context) {
|
|
26480
26216
|
return input
|
|
@@ -26487,8 +26223,7 @@ var serializeAws_restJson1FindingIds = function (input, context) {
|
|
|
26487
26223
|
});
|
|
26488
26224
|
};
|
|
26489
26225
|
var serializeAws_restJson1FirehoseAction = function (input, context) {
|
|
26490
|
-
return __assign(__assign(__assign(__assign({}, (input.batchMode
|
|
26491
|
-
input.deliveryStreamName !== null && { deliveryStreamName: input.deliveryStreamName })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.separator !== undefined && input.separator !== null && { separator: input.separator }));
|
|
26226
|
+
return __assign(__assign(__assign(__assign({}, (input.batchMode != null && { batchMode: input.batchMode })), (input.deliveryStreamName != null && { deliveryStreamName: input.deliveryStreamName })), (input.roleArn != null && { roleArn: input.roleArn })), (input.separator != null && { separator: input.separator }));
|
|
26492
26227
|
};
|
|
26493
26228
|
var serializeAws_restJson1HeaderList = function (input, context) {
|
|
26494
26229
|
return input
|
|
@@ -26501,21 +26236,16 @@ var serializeAws_restJson1HeaderList = function (input, context) {
|
|
|
26501
26236
|
});
|
|
26502
26237
|
};
|
|
26503
26238
|
var serializeAws_restJson1HttpAction = function (input, context) {
|
|
26504
|
-
return __assign(__assign(__assign(__assign({}, (input.auth
|
|
26505
|
-
input.auth !== null && { auth: serializeAws_restJson1HttpAuthorization(input.auth, context) })), (input.confirmationUrl !== undefined &&
|
|
26506
|
-
input.confirmationUrl !== null && { confirmationUrl: input.confirmationUrl })), (input.headers !== undefined &&
|
|
26507
|
-
input.headers !== null && { headers: serializeAws_restJson1HeaderList(input.headers, context) })), (input.url !== undefined && input.url !== null && { url: input.url }));
|
|
26239
|
+
return __assign(__assign(__assign(__assign({}, (input.auth != null && { auth: serializeAws_restJson1HttpAuthorization(input.auth, context) })), (input.confirmationUrl != null && { confirmationUrl: input.confirmationUrl })), (input.headers != null && { headers: serializeAws_restJson1HeaderList(input.headers, context) })), (input.url != null && { url: input.url }));
|
|
26508
26240
|
};
|
|
26509
26241
|
var serializeAws_restJson1HttpActionHeader = function (input, context) {
|
|
26510
|
-
return __assign(__assign({}, (input.key
|
|
26242
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
26511
26243
|
};
|
|
26512
26244
|
var serializeAws_restJson1HttpAuthorization = function (input, context) {
|
|
26513
|
-
return __assign({}, (input.sigv4
|
|
26514
|
-
input.sigv4 !== null && { sigv4: serializeAws_restJson1SigV4Authorization(input.sigv4, context) }));
|
|
26245
|
+
return __assign({}, (input.sigv4 != null && { sigv4: serializeAws_restJson1SigV4Authorization(input.sigv4, context) }));
|
|
26515
26246
|
};
|
|
26516
26247
|
var serializeAws_restJson1HttpContext = function (input, context) {
|
|
26517
|
-
return __assign(__assign({}, (input.headers
|
|
26518
|
-
input.headers !== null && { headers: serializeAws_restJson1HttpHeaders(input.headers, context) })), (input.queryString !== undefined && input.queryString !== null && { queryString: input.queryString }));
|
|
26248
|
+
return __assign(__assign({}, (input.headers != null && { headers: serializeAws_restJson1HttpHeaders(input.headers, context) })), (input.queryString != null && { queryString: input.queryString }));
|
|
26519
26249
|
};
|
|
26520
26250
|
var serializeAws_restJson1HttpHeaders = function (input, context) {
|
|
26521
26251
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26528,33 +26258,28 @@ var serializeAws_restJson1HttpHeaders = function (input, context) {
|
|
|
26528
26258
|
}, {});
|
|
26529
26259
|
};
|
|
26530
26260
|
var serializeAws_restJson1HttpUrlDestinationConfiguration = function (input, context) {
|
|
26531
|
-
return __assign({}, (input.confirmationUrl
|
|
26532
|
-
input.confirmationUrl !== null && { confirmationUrl: input.confirmationUrl }));
|
|
26261
|
+
return __assign({}, (input.confirmationUrl != null && { confirmationUrl: input.confirmationUrl }));
|
|
26533
26262
|
};
|
|
26534
26263
|
var serializeAws_restJson1IotAnalyticsAction = function (input, context) {
|
|
26535
|
-
return __assign(__assign(__assign(__assign({}, (input.batchMode
|
|
26264
|
+
return __assign(__assign(__assign(__assign({}, (input.batchMode != null && { batchMode: input.batchMode })), (input.channelArn != null && { channelArn: input.channelArn })), (input.channelName != null && { channelName: input.channelName })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26536
26265
|
};
|
|
26537
26266
|
var serializeAws_restJson1IotEventsAction = function (input, context) {
|
|
26538
|
-
return __assign(__assign(__assign(__assign({}, (input.batchMode
|
|
26267
|
+
return __assign(__assign(__assign(__assign({}, (input.batchMode != null && { batchMode: input.batchMode })), (input.inputName != null && { inputName: input.inputName })), (input.messageId != null && { messageId: input.messageId })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26539
26268
|
};
|
|
26540
26269
|
var serializeAws_restJson1IotSiteWiseAction = function (input, context) {
|
|
26541
|
-
return __assign(__assign({}, (input.putAssetPropertyValueEntries
|
|
26542
|
-
input.putAssetPropertyValueEntries !== null && {
|
|
26270
|
+
return __assign(__assign({}, (input.putAssetPropertyValueEntries != null && {
|
|
26543
26271
|
putAssetPropertyValueEntries: serializeAws_restJson1PutAssetPropertyValueEntryList(input.putAssetPropertyValueEntries, context),
|
|
26544
|
-
})), (input.roleArn
|
|
26272
|
+
})), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26545
26273
|
};
|
|
26546
26274
|
var serializeAws_restJson1JobExecutionsRetryConfig = function (input, context) {
|
|
26547
|
-
return __assign({}, (input.criteriaList
|
|
26548
|
-
input.criteriaList !== null && {
|
|
26275
|
+
return __assign({}, (input.criteriaList != null && {
|
|
26549
26276
|
criteriaList: serializeAws_restJson1RetryCriteriaList(input.criteriaList, context),
|
|
26550
26277
|
}));
|
|
26551
26278
|
};
|
|
26552
26279
|
var serializeAws_restJson1JobExecutionsRolloutConfig = function (input, context) {
|
|
26553
|
-
return __assign(__assign({}, (input.exponentialRate
|
|
26554
|
-
input.exponentialRate !== null && {
|
|
26280
|
+
return __assign(__assign({}, (input.exponentialRate != null && {
|
|
26555
26281
|
exponentialRate: serializeAws_restJson1ExponentialRolloutRate(input.exponentialRate, context),
|
|
26556
|
-
})), (input.maximumPerMinute
|
|
26557
|
-
input.maximumPerMinute !== null && { maximumPerMinute: input.maximumPerMinute }));
|
|
26282
|
+
})), (input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }));
|
|
26558
26283
|
};
|
|
26559
26284
|
var serializeAws_restJson1JobTargets = function (input, context) {
|
|
26560
26285
|
return input
|
|
@@ -26567,43 +26292,35 @@ var serializeAws_restJson1JobTargets = function (input, context) {
|
|
|
26567
26292
|
});
|
|
26568
26293
|
};
|
|
26569
26294
|
var serializeAws_restJson1KafkaAction = function (input, context) {
|
|
26570
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.clientProperties
|
|
26571
|
-
input.clientProperties !== null && {
|
|
26295
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.clientProperties != null && {
|
|
26572
26296
|
clientProperties: serializeAws_restJson1ClientProperties(input.clientProperties, context),
|
|
26573
|
-
})), (input.destinationArn
|
|
26574
|
-
input.destinationArn !== null && { destinationArn: input.destinationArn })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.partition !== undefined && input.partition !== null && { partition: input.partition })), (input.topic !== undefined && input.topic !== null && { topic: input.topic }));
|
|
26297
|
+
})), (input.destinationArn != null && { destinationArn: input.destinationArn })), (input.key != null && { key: input.key })), (input.partition != null && { partition: input.partition })), (input.topic != null && { topic: input.topic }));
|
|
26575
26298
|
};
|
|
26576
26299
|
var serializeAws_restJson1KinesisAction = function (input, context) {
|
|
26577
|
-
return __assign(__assign(__assign({}, (input.partitionKey
|
|
26300
|
+
return __assign(__assign(__assign({}, (input.partitionKey != null && { partitionKey: input.partitionKey })), (input.roleArn != null && { roleArn: input.roleArn })), (input.streamName != null && { streamName: input.streamName }));
|
|
26578
26301
|
};
|
|
26579
26302
|
var serializeAws_restJson1LambdaAction = function (input, context) {
|
|
26580
|
-
return __assign({}, (input.functionArn
|
|
26303
|
+
return __assign({}, (input.functionArn != null && { functionArn: input.functionArn }));
|
|
26581
26304
|
};
|
|
26582
26305
|
var serializeAws_restJson1LoggingOptionsPayload = function (input, context) {
|
|
26583
|
-
return __assign(__assign({}, (input.logLevel
|
|
26306
|
+
return __assign(__assign({}, (input.logLevel != null && { logLevel: input.logLevel })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26584
26307
|
};
|
|
26585
26308
|
var serializeAws_restJson1LogTarget = function (input, context) {
|
|
26586
|
-
return __assign(__assign({}, (input.targetName
|
|
26309
|
+
return __assign(__assign({}, (input.targetName != null && { targetName: input.targetName })), (input.targetType != null && { targetType: input.targetType }));
|
|
26587
26310
|
};
|
|
26588
26311
|
var serializeAws_restJson1MachineLearningDetectionConfig = function (input, context) {
|
|
26589
|
-
return __assign({}, (input.confidenceLevel
|
|
26590
|
-
input.confidenceLevel !== null && { confidenceLevel: input.confidenceLevel }));
|
|
26312
|
+
return __assign({}, (input.confidenceLevel != null && { confidenceLevel: input.confidenceLevel }));
|
|
26591
26313
|
};
|
|
26592
26314
|
var serializeAws_restJson1MetricDimension = function (input, context) {
|
|
26593
|
-
return __assign(__assign({}, (input.dimensionName
|
|
26315
|
+
return __assign(__assign({}, (input.dimensionName != null && { dimensionName: input.dimensionName })), (input.operator != null && { operator: input.operator }));
|
|
26594
26316
|
};
|
|
26595
26317
|
var serializeAws_restJson1MetricToRetain = function (input, context) {
|
|
26596
|
-
return __assign(__assign({}, (input.metric
|
|
26597
|
-
input.metricDimension !== null && {
|
|
26318
|
+
return __assign(__assign({}, (input.metric != null && { metric: input.metric })), (input.metricDimension != null && {
|
|
26598
26319
|
metricDimension: serializeAws_restJson1MetricDimension(input.metricDimension, context),
|
|
26599
26320
|
}));
|
|
26600
26321
|
};
|
|
26601
26322
|
var serializeAws_restJson1MetricValue = function (input, context) {
|
|
26602
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.cidrs
|
|
26603
|
-
input.cidrs !== null && { cidrs: serializeAws_restJson1Cidrs(input.cidrs, context) })), (input.count !== undefined && input.count !== null && { count: input.count })), (input.number !== undefined && input.number !== null && { number: __serializeFloat(input.number) })), (input.numbers !== undefined &&
|
|
26604
|
-
input.numbers !== null && { numbers: serializeAws_restJson1NumberList(input.numbers, context) })), (input.ports !== undefined &&
|
|
26605
|
-
input.ports !== null && { ports: serializeAws_restJson1Ports(input.ports, context) })), (input.strings !== undefined &&
|
|
26606
|
-
input.strings !== null && { strings: serializeAws_restJson1StringList(input.strings, context) }));
|
|
26323
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.cidrs != null && { cidrs: serializeAws_restJson1Cidrs(input.cidrs, context) })), (input.count != null && { count: input.count })), (input.number != null && { number: __serializeFloat(input.number) })), (input.numbers != null && { numbers: serializeAws_restJson1NumberList(input.numbers, context) })), (input.ports != null && { ports: serializeAws_restJson1Ports(input.ports, context) })), (input.strings != null && { strings: serializeAws_restJson1StringList(input.strings, context) }));
|
|
26607
26324
|
};
|
|
26608
26325
|
var serializeAws_restJson1MitigationActionNameList = function (input, context) {
|
|
26609
26326
|
return input
|
|
@@ -26616,28 +26333,22 @@ var serializeAws_restJson1MitigationActionNameList = function (input, context) {
|
|
|
26616
26333
|
});
|
|
26617
26334
|
};
|
|
26618
26335
|
var serializeAws_restJson1MitigationActionParams = function (input, context) {
|
|
26619
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.addThingsToThingGroupParams
|
|
26620
|
-
input.addThingsToThingGroupParams !== null && {
|
|
26336
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.addThingsToThingGroupParams != null && {
|
|
26621
26337
|
addThingsToThingGroupParams: serializeAws_restJson1AddThingsToThingGroupParams(input.addThingsToThingGroupParams, context),
|
|
26622
|
-
})), (input.enableIoTLoggingParams
|
|
26623
|
-
input.enableIoTLoggingParams !== null && {
|
|
26338
|
+
})), (input.enableIoTLoggingParams != null && {
|
|
26624
26339
|
enableIoTLoggingParams: serializeAws_restJson1EnableIoTLoggingParams(input.enableIoTLoggingParams, context),
|
|
26625
|
-
})), (input.publishFindingToSnsParams
|
|
26626
|
-
input.publishFindingToSnsParams !== null && {
|
|
26340
|
+
})), (input.publishFindingToSnsParams != null && {
|
|
26627
26341
|
publishFindingToSnsParams: serializeAws_restJson1PublishFindingToSnsParams(input.publishFindingToSnsParams, context),
|
|
26628
|
-
})), (input.replaceDefaultPolicyVersionParams
|
|
26629
|
-
input.replaceDefaultPolicyVersionParams !== null && {
|
|
26342
|
+
})), (input.replaceDefaultPolicyVersionParams != null && {
|
|
26630
26343
|
replaceDefaultPolicyVersionParams: serializeAws_restJson1ReplaceDefaultPolicyVersionParams(input.replaceDefaultPolicyVersionParams, context),
|
|
26631
|
-
})), (input.updateCACertificateParams
|
|
26632
|
-
input.updateCACertificateParams !== null && {
|
|
26344
|
+
})), (input.updateCACertificateParams != null && {
|
|
26633
26345
|
updateCACertificateParams: serializeAws_restJson1UpdateCACertificateParams(input.updateCACertificateParams, context),
|
|
26634
|
-
})), (input.updateDeviceCertificateParams
|
|
26635
|
-
input.updateDeviceCertificateParams !== null && {
|
|
26346
|
+
})), (input.updateDeviceCertificateParams != null && {
|
|
26636
26347
|
updateDeviceCertificateParams: serializeAws_restJson1UpdateDeviceCertificateParams(input.updateDeviceCertificateParams, context),
|
|
26637
26348
|
}));
|
|
26638
26349
|
};
|
|
26639
26350
|
var serializeAws_restJson1MqttContext = function (input, context) {
|
|
26640
|
-
return __assign(__assign(__assign({}, (input.clientId
|
|
26351
|
+
return __assign(__assign(__assign({}, (input.clientId != null && { clientId: input.clientId })), (input.password != null && { password: context.base64Encoder(input.password) })), (input.username != null && { username: input.username }));
|
|
26641
26352
|
};
|
|
26642
26353
|
var serializeAws_restJson1NumberList = function (input, context) {
|
|
26643
26354
|
return input
|
|
@@ -26650,13 +26361,12 @@ var serializeAws_restJson1NumberList = function (input, context) {
|
|
|
26650
26361
|
});
|
|
26651
26362
|
};
|
|
26652
26363
|
var serializeAws_restJson1OpenSearchAction = function (input, context) {
|
|
26653
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.endpoint
|
|
26364
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.endpoint != null && { endpoint: input.endpoint })), (input.id != null && { id: input.id })), (input.index != null && { index: input.index })), (input.roleArn != null && { roleArn: input.roleArn })), (input.type != null && { type: input.type }));
|
|
26654
26365
|
};
|
|
26655
26366
|
var serializeAws_restJson1OTAUpdateFile = function (input, context) {
|
|
26656
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.attributes
|
|
26657
|
-
|
|
26658
|
-
|
|
26659
|
-
input.fileLocation !== null && { fileLocation: serializeAws_restJson1FileLocation(input.fileLocation, context) })), (input.fileName !== undefined && input.fileName !== null && { fileName: input.fileName })), (input.fileType !== undefined && input.fileType !== null && { fileType: input.fileType })), (input.fileVersion !== undefined && input.fileVersion !== null && { fileVersion: input.fileVersion }));
|
|
26367
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.attributes != null && { attributes: serializeAws_restJson1AttributesMap(input.attributes, context) })), (input.codeSigning != null && { codeSigning: serializeAws_restJson1CodeSigning(input.codeSigning, context) })), (input.fileLocation != null && {
|
|
26368
|
+
fileLocation: serializeAws_restJson1FileLocation(input.fileLocation, context),
|
|
26369
|
+
})), (input.fileName != null && { fileName: input.fileName })), (input.fileType != null && { fileType: input.fileType })), (input.fileVersion != null && { fileVersion: input.fileVersion }));
|
|
26660
26370
|
};
|
|
26661
26371
|
var serializeAws_restJson1OTAUpdateFiles = function (input, context) {
|
|
26662
26372
|
return input
|
|
@@ -26709,8 +26419,7 @@ var serializeAws_restJson1PolicyNames = function (input, context) {
|
|
|
26709
26419
|
});
|
|
26710
26420
|
};
|
|
26711
26421
|
var serializeAws_restJson1PolicyVersionIdentifier = function (input, context) {
|
|
26712
|
-
return __assign(__assign({}, (input.policyName
|
|
26713
|
-
input.policyVersionId !== null && { policyVersionId: input.policyVersionId }));
|
|
26422
|
+
return __assign(__assign({}, (input.policyName != null && { policyName: input.policyName })), (input.policyVersionId != null && { policyVersionId: input.policyVersionId }));
|
|
26714
26423
|
};
|
|
26715
26424
|
var serializeAws_restJson1Ports = function (input, context) {
|
|
26716
26425
|
return input
|
|
@@ -26723,7 +26432,7 @@ var serializeAws_restJson1Ports = function (input, context) {
|
|
|
26723
26432
|
});
|
|
26724
26433
|
};
|
|
26725
26434
|
var serializeAws_restJson1PresignedUrlConfig = function (input, context) {
|
|
26726
|
-
return __assign(__assign({}, (input.expiresInSec
|
|
26435
|
+
return __assign(__assign({}, (input.expiresInSec != null && { expiresInSec: input.expiresInSec })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26727
26436
|
};
|
|
26728
26437
|
var serializeAws_restJson1Protocols = function (input, context) {
|
|
26729
26438
|
return input
|
|
@@ -26736,8 +26445,7 @@ var serializeAws_restJson1Protocols = function (input, context) {
|
|
|
26736
26445
|
});
|
|
26737
26446
|
};
|
|
26738
26447
|
var serializeAws_restJson1ProvisioningHook = function (input, context) {
|
|
26739
|
-
return __assign(__assign({}, (input.payloadVersion
|
|
26740
|
-
input.payloadVersion !== null && { payloadVersion: input.payloadVersion })), (input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }));
|
|
26448
|
+
return __assign(__assign({}, (input.payloadVersion != null && { payloadVersion: input.payloadVersion })), (input.targetArn != null && { targetArn: input.targetArn }));
|
|
26741
26449
|
};
|
|
26742
26450
|
var serializeAws_restJson1PublicKeyMap = function (input, context) {
|
|
26743
26451
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26750,11 +26458,10 @@ var serializeAws_restJson1PublicKeyMap = function (input, context) {
|
|
|
26750
26458
|
}, {});
|
|
26751
26459
|
};
|
|
26752
26460
|
var serializeAws_restJson1PublishFindingToSnsParams = function (input, context) {
|
|
26753
|
-
return __assign({}, (input.topicArn
|
|
26461
|
+
return __assign({}, (input.topicArn != null && { topicArn: input.topicArn }));
|
|
26754
26462
|
};
|
|
26755
26463
|
var serializeAws_restJson1PutAssetPropertyValueEntry = function (input, context) {
|
|
26756
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.assetId
|
|
26757
|
-
input.propertyValues !== null && {
|
|
26464
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.assetId != null && { assetId: input.assetId })), (input.entryId != null && { entryId: input.entryId })), (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyId != null && { propertyId: input.propertyId })), (input.propertyValues != null && {
|
|
26758
26465
|
propertyValues: serializeAws_restJson1AssetPropertyValueList(input.propertyValues, context),
|
|
26759
26466
|
}));
|
|
26760
26467
|
};
|
|
@@ -26769,12 +26476,10 @@ var serializeAws_restJson1PutAssetPropertyValueEntryList = function (input, cont
|
|
|
26769
26476
|
});
|
|
26770
26477
|
};
|
|
26771
26478
|
var serializeAws_restJson1PutItemInput = function (input, context) {
|
|
26772
|
-
return __assign({}, (input.tableName
|
|
26479
|
+
return __assign({}, (input.tableName != null && { tableName: input.tableName }));
|
|
26773
26480
|
};
|
|
26774
26481
|
var serializeAws_restJson1RateIncreaseCriteria = function (input, context) {
|
|
26775
|
-
return __assign(__assign({}, (input.numberOfNotifiedThings
|
|
26776
|
-
input.numberOfNotifiedThings !== null && { numberOfNotifiedThings: input.numberOfNotifiedThings })), (input.numberOfSucceededThings !== undefined &&
|
|
26777
|
-
input.numberOfSucceededThings !== null && { numberOfSucceededThings: input.numberOfSucceededThings }));
|
|
26482
|
+
return __assign(__assign({}, (input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings })), (input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }));
|
|
26778
26483
|
};
|
|
26779
26484
|
var serializeAws_restJson1ReasonForNonComplianceCodes = function (input, context) {
|
|
26780
26485
|
return input
|
|
@@ -26787,22 +26492,18 @@ var serializeAws_restJson1ReasonForNonComplianceCodes = function (input, context
|
|
|
26787
26492
|
});
|
|
26788
26493
|
};
|
|
26789
26494
|
var serializeAws_restJson1RegistrationConfig = function (input, context) {
|
|
26790
|
-
return __assign(__assign({}, (input.roleArn
|
|
26495
|
+
return __assign(__assign({}, (input.roleArn != null && { roleArn: input.roleArn })), (input.templateBody != null && { templateBody: input.templateBody }));
|
|
26791
26496
|
};
|
|
26792
26497
|
var serializeAws_restJson1ReplaceDefaultPolicyVersionParams = function (input, context) {
|
|
26793
|
-
return __assign({}, (input.templateName
|
|
26498
|
+
return __assign({}, (input.templateName != null && { templateName: input.templateName }));
|
|
26794
26499
|
};
|
|
26795
26500
|
var serializeAws_restJson1RepublishAction = function (input, context) {
|
|
26796
|
-
return __assign(__assign(__assign({}, (input.qos
|
|
26501
|
+
return __assign(__assign(__assign({}, (input.qos != null && { qos: input.qos })), (input.roleArn != null && { roleArn: input.roleArn })), (input.topic != null && { topic: input.topic }));
|
|
26797
26502
|
};
|
|
26798
26503
|
var serializeAws_restJson1ResourceIdentifier = function (input, context) {
|
|
26799
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.account
|
|
26800
|
-
input.caCertificateId !== null && { caCertificateId: input.caCertificateId })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.cognitoIdentityPoolId !== undefined &&
|
|
26801
|
-
input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId })), (input.deviceCertificateId !== undefined &&
|
|
26802
|
-
input.deviceCertificateId !== null && { deviceCertificateId: input.deviceCertificateId })), (input.iamRoleArn !== undefined && input.iamRoleArn !== null && { iamRoleArn: input.iamRoleArn })), (input.policyVersionIdentifier !== undefined &&
|
|
26803
|
-
input.policyVersionIdentifier !== null && {
|
|
26504
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.account != null && { account: input.account })), (input.caCertificateId != null && { caCertificateId: input.caCertificateId })), (input.clientId != null && { clientId: input.clientId })), (input.cognitoIdentityPoolId != null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId })), (input.deviceCertificateId != null && { deviceCertificateId: input.deviceCertificateId })), (input.iamRoleArn != null && { iamRoleArn: input.iamRoleArn })), (input.policyVersionIdentifier != null && {
|
|
26804
26505
|
policyVersionIdentifier: serializeAws_restJson1PolicyVersionIdentifier(input.policyVersionIdentifier, context),
|
|
26805
|
-
})), (input.roleAliasArn
|
|
26506
|
+
})), (input.roleAliasArn != null && { roleAliasArn: input.roleAliasArn }));
|
|
26806
26507
|
};
|
|
26807
26508
|
var serializeAws_restJson1Resources = function (input, context) {
|
|
26808
26509
|
return input
|
|
@@ -26815,8 +26516,7 @@ var serializeAws_restJson1Resources = function (input, context) {
|
|
|
26815
26516
|
});
|
|
26816
26517
|
};
|
|
26817
26518
|
var serializeAws_restJson1RetryCriteria = function (input, context) {
|
|
26818
|
-
return __assign(__assign({}, (input.failureType
|
|
26819
|
-
input.numberOfRetries !== null && { numberOfRetries: input.numberOfRetries }));
|
|
26519
|
+
return __assign(__assign({}, (input.failureType != null && { failureType: input.failureType })), (input.numberOfRetries != null && { numberOfRetries: input.numberOfRetries }));
|
|
26820
26520
|
};
|
|
26821
26521
|
var serializeAws_restJson1RetryCriteriaList = function (input, context) {
|
|
26822
26522
|
return input
|
|
@@ -26829,16 +26529,16 @@ var serializeAws_restJson1RetryCriteriaList = function (input, context) {
|
|
|
26829
26529
|
});
|
|
26830
26530
|
};
|
|
26831
26531
|
var serializeAws_restJson1S3Action = function (input, context) {
|
|
26832
|
-
return __assign(__assign(__assign(__assign({}, (input.bucketName
|
|
26532
|
+
return __assign(__assign(__assign(__assign({}, (input.bucketName != null && { bucketName: input.bucketName })), (input.cannedAcl != null && { cannedAcl: input.cannedAcl })), (input.key != null && { key: input.key })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26833
26533
|
};
|
|
26834
26534
|
var serializeAws_restJson1S3Destination = function (input, context) {
|
|
26835
|
-
return __assign(__assign({}, (input.bucket
|
|
26535
|
+
return __assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.prefix != null && { prefix: input.prefix }));
|
|
26836
26536
|
};
|
|
26837
26537
|
var serializeAws_restJson1S3Location = function (input, context) {
|
|
26838
|
-
return __assign(__assign(__assign({}, (input.bucket
|
|
26538
|
+
return __assign(__assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.key != null && { key: input.key })), (input.version != null && { version: input.version }));
|
|
26839
26539
|
};
|
|
26840
26540
|
var serializeAws_restJson1SalesforceAction = function (input, context) {
|
|
26841
|
-
return __assign(__assign({}, (input.token
|
|
26541
|
+
return __assign(__assign({}, (input.token != null && { token: input.token })), (input.url != null && { url: input.url }));
|
|
26842
26542
|
};
|
|
26843
26543
|
var serializeAws_restJson1SearchableAttributes = function (input, context) {
|
|
26844
26544
|
return input
|
|
@@ -26871,41 +26571,33 @@ var serializeAws_restJson1ServerCertificateArns = function (input, context) {
|
|
|
26871
26571
|
});
|
|
26872
26572
|
};
|
|
26873
26573
|
var serializeAws_restJson1SigningProfileParameter = function (input, context) {
|
|
26874
|
-
return __assign(__assign(__assign({}, (input.certificateArn
|
|
26875
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn })), (input.certificatePathOnDevice !== undefined &&
|
|
26876
|
-
input.certificatePathOnDevice !== null && { certificatePathOnDevice: input.certificatePathOnDevice })), (input.platform !== undefined && input.platform !== null && { platform: input.platform }));
|
|
26574
|
+
return __assign(__assign(__assign({}, (input.certificateArn != null && { certificateArn: input.certificateArn })), (input.certificatePathOnDevice != null && { certificatePathOnDevice: input.certificatePathOnDevice })), (input.platform != null && { platform: input.platform }));
|
|
26877
26575
|
};
|
|
26878
26576
|
var serializeAws_restJson1SigV4Authorization = function (input, context) {
|
|
26879
|
-
return __assign(__assign(__assign({}, (input.roleArn
|
|
26577
|
+
return __assign(__assign(__assign({}, (input.roleArn != null && { roleArn: input.roleArn })), (input.serviceName != null && { serviceName: input.serviceName })), (input.signingRegion != null && { signingRegion: input.signingRegion }));
|
|
26880
26578
|
};
|
|
26881
26579
|
var serializeAws_restJson1SnsAction = function (input, context) {
|
|
26882
|
-
return __assign(__assign(__assign({}, (input.messageFormat
|
|
26580
|
+
return __assign(__assign(__assign({}, (input.messageFormat != null && { messageFormat: input.messageFormat })), (input.roleArn != null && { roleArn: input.roleArn })), (input.targetArn != null && { targetArn: input.targetArn }));
|
|
26883
26581
|
};
|
|
26884
26582
|
var serializeAws_restJson1SqsAction = function (input, context) {
|
|
26885
|
-
return __assign(__assign(__assign({}, (input.queueUrl
|
|
26583
|
+
return __assign(__assign(__assign({}, (input.queueUrl != null && { queueUrl: input.queueUrl })), (input.roleArn != null && { roleArn: input.roleArn })), (input.useBase64 != null && { useBase64: input.useBase64 }));
|
|
26886
26584
|
};
|
|
26887
26585
|
var serializeAws_restJson1StartSigningJobParameter = function (input, context) {
|
|
26888
|
-
return __assign(__assign(__assign({}, (input.destination
|
|
26889
|
-
input.destination !== null && { destination: serializeAws_restJson1Destination(input.destination, context) })), (input.signingProfileName !== undefined &&
|
|
26890
|
-
input.signingProfileName !== null && { signingProfileName: input.signingProfileName })), (input.signingProfileParameter !== undefined &&
|
|
26891
|
-
input.signingProfileParameter !== null && {
|
|
26586
|
+
return __assign(__assign(__assign({}, (input.destination != null && { destination: serializeAws_restJson1Destination(input.destination, context) })), (input.signingProfileName != null && { signingProfileName: input.signingProfileName })), (input.signingProfileParameter != null && {
|
|
26892
26587
|
signingProfileParameter: serializeAws_restJson1SigningProfileParameter(input.signingProfileParameter, context),
|
|
26893
26588
|
}));
|
|
26894
26589
|
};
|
|
26895
26590
|
var serializeAws_restJson1StatisticalThreshold = function (input, context) {
|
|
26896
|
-
return __assign({}, (input.statistic
|
|
26591
|
+
return __assign({}, (input.statistic != null && { statistic: input.statistic }));
|
|
26897
26592
|
};
|
|
26898
26593
|
var serializeAws_restJson1StepFunctionsAction = function (input, context) {
|
|
26899
|
-
return __assign(__assign(__assign({}, (input.executionNamePrefix
|
|
26900
|
-
input.executionNamePrefix !== null && { executionNamePrefix: input.executionNamePrefix })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.stateMachineName !== undefined &&
|
|
26901
|
-
input.stateMachineName !== null && { stateMachineName: input.stateMachineName }));
|
|
26594
|
+
return __assign(__assign(__assign({}, (input.executionNamePrefix != null && { executionNamePrefix: input.executionNamePrefix })), (input.roleArn != null && { roleArn: input.roleArn })), (input.stateMachineName != null && { stateMachineName: input.stateMachineName }));
|
|
26902
26595
|
};
|
|
26903
26596
|
var serializeAws_restJson1_Stream = function (input, context) {
|
|
26904
|
-
return __assign(__assign({}, (input.fileId
|
|
26597
|
+
return __assign(__assign({}, (input.fileId != null && { fileId: input.fileId })), (input.streamId != null && { streamId: input.streamId }));
|
|
26905
26598
|
};
|
|
26906
26599
|
var serializeAws_restJson1StreamFile = function (input, context) {
|
|
26907
|
-
return __assign(__assign({}, (input.fileId
|
|
26908
|
-
input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }));
|
|
26600
|
+
return __assign(__assign({}, (input.fileId != null && { fileId: input.fileId })), (input.s3Location != null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) }));
|
|
26909
26601
|
};
|
|
26910
26602
|
var serializeAws_restJson1StreamFiles = function (input, context) {
|
|
26911
26603
|
return input
|
|
@@ -26938,7 +26630,7 @@ var serializeAws_restJson1SubnetIdList = function (input, context) {
|
|
|
26938
26630
|
});
|
|
26939
26631
|
};
|
|
26940
26632
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
26941
|
-
return __assign(__assign({}, (input.Key
|
|
26633
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
26942
26634
|
};
|
|
26943
26635
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
26944
26636
|
return input
|
|
@@ -26991,13 +26683,10 @@ var serializeAws_restJson1TargetViolationIdsForDetectMitigationActions = functio
|
|
|
26991
26683
|
});
|
|
26992
26684
|
};
|
|
26993
26685
|
var serializeAws_restJson1TermsAggregation = function (input, context) {
|
|
26994
|
-
return __assign({}, (input.maxBuckets
|
|
26686
|
+
return __assign({}, (input.maxBuckets != null && { maxBuckets: input.maxBuckets }));
|
|
26995
26687
|
};
|
|
26996
26688
|
var serializeAws_restJson1ThingGroupIndexingConfiguration = function (input, context) {
|
|
26997
|
-
return __assign(__assign(__assign({}, (input.customFields
|
|
26998
|
-
input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) })), (input.managedFields !== undefined &&
|
|
26999
|
-
input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) })), (input.thingGroupIndexingMode !== undefined &&
|
|
27000
|
-
input.thingGroupIndexingMode !== null && { thingGroupIndexingMode: input.thingGroupIndexingMode }));
|
|
26689
|
+
return __assign(__assign(__assign({}, (input.customFields != null && { customFields: serializeAws_restJson1Fields(input.customFields, context) })), (input.managedFields != null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) })), (input.thingGroupIndexingMode != null && { thingGroupIndexingMode: input.thingGroupIndexingMode }));
|
|
27001
26690
|
};
|
|
27002
26691
|
var serializeAws_restJson1ThingGroupList = function (input, context) {
|
|
27003
26692
|
return input
|
|
@@ -27020,43 +26709,30 @@ var serializeAws_restJson1ThingGroupNames = function (input, context) {
|
|
|
27020
26709
|
});
|
|
27021
26710
|
};
|
|
27022
26711
|
var serializeAws_restJson1ThingGroupProperties = function (input, context) {
|
|
27023
|
-
return __assign(__assign({}, (input.attributePayload
|
|
27024
|
-
input.attributePayload !== null && {
|
|
26712
|
+
return __assign(__assign({}, (input.attributePayload != null && {
|
|
27025
26713
|
attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
|
|
27026
|
-
})), (input.thingGroupDescription
|
|
27027
|
-
input.thingGroupDescription !== null && { thingGroupDescription: input.thingGroupDescription }));
|
|
26714
|
+
})), (input.thingGroupDescription != null && { thingGroupDescription: input.thingGroupDescription }));
|
|
27028
26715
|
};
|
|
27029
26716
|
var serializeAws_restJson1ThingIndexingConfiguration = function (input, context) {
|
|
27030
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.customFields
|
|
27031
|
-
input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) })), (input.deviceDefenderIndexingMode !== undefined &&
|
|
27032
|
-
input.deviceDefenderIndexingMode !== null && { deviceDefenderIndexingMode: input.deviceDefenderIndexingMode })), (input.managedFields !== undefined &&
|
|
27033
|
-
input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) })), (input.namedShadowIndexingMode !== undefined &&
|
|
27034
|
-
input.namedShadowIndexingMode !== null && { namedShadowIndexingMode: input.namedShadowIndexingMode })), (input.thingConnectivityIndexingMode !== undefined &&
|
|
27035
|
-
input.thingConnectivityIndexingMode !== null && {
|
|
26717
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.customFields != null && { customFields: serializeAws_restJson1Fields(input.customFields, context) })), (input.deviceDefenderIndexingMode != null && { deviceDefenderIndexingMode: input.deviceDefenderIndexingMode })), (input.managedFields != null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) })), (input.namedShadowIndexingMode != null && { namedShadowIndexingMode: input.namedShadowIndexingMode })), (input.thingConnectivityIndexingMode != null && {
|
|
27036
26718
|
thingConnectivityIndexingMode: input.thingConnectivityIndexingMode,
|
|
27037
|
-
})), (input.thingIndexingMode
|
|
27038
|
-
input.thingIndexingMode !== null && { thingIndexingMode: input.thingIndexingMode }));
|
|
26719
|
+
})), (input.thingIndexingMode != null && { thingIndexingMode: input.thingIndexingMode }));
|
|
27039
26720
|
};
|
|
27040
26721
|
var serializeAws_restJson1ThingTypeProperties = function (input, context) {
|
|
27041
|
-
return __assign(__assign({}, (input.searchableAttributes
|
|
27042
|
-
input.searchableAttributes !== null && {
|
|
26722
|
+
return __assign(__assign({}, (input.searchableAttributes != null && {
|
|
27043
26723
|
searchableAttributes: serializeAws_restJson1SearchableAttributes(input.searchableAttributes, context),
|
|
27044
|
-
})), (input.thingTypeDescription
|
|
27045
|
-
input.thingTypeDescription !== null && { thingTypeDescription: input.thingTypeDescription }));
|
|
26724
|
+
})), (input.thingTypeDescription != null && { thingTypeDescription: input.thingTypeDescription }));
|
|
27046
26725
|
};
|
|
27047
26726
|
var serializeAws_restJson1TimeoutConfig = function (input, context) {
|
|
27048
|
-
return __assign({}, (input.inProgressTimeoutInMinutes
|
|
27049
|
-
input.inProgressTimeoutInMinutes !== null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }));
|
|
26727
|
+
return __assign({}, (input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }));
|
|
27050
26728
|
};
|
|
27051
26729
|
var serializeAws_restJson1TimestreamAction = function (input, context) {
|
|
27052
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.databaseName
|
|
27053
|
-
input.dimensions !== null && {
|
|
26730
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.databaseName != null && { databaseName: input.databaseName })), (input.dimensions != null && {
|
|
27054
26731
|
dimensions: serializeAws_restJson1TimestreamDimensionList(input.dimensions, context),
|
|
27055
|
-
})), (input.roleArn
|
|
27056
|
-
input.timestamp !== null && { timestamp: serializeAws_restJson1TimestreamTimestamp(input.timestamp, context) }));
|
|
26732
|
+
})), (input.roleArn != null && { roleArn: input.roleArn })), (input.tableName != null && { tableName: input.tableName })), (input.timestamp != null && { timestamp: serializeAws_restJson1TimestreamTimestamp(input.timestamp, context) }));
|
|
27057
26733
|
};
|
|
27058
26734
|
var serializeAws_restJson1TimestreamDimension = function (input, context) {
|
|
27059
|
-
return __assign(__assign({}, (input.name
|
|
26735
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
|
|
27060
26736
|
};
|
|
27061
26737
|
var serializeAws_restJson1TimestreamDimensionList = function (input, context) {
|
|
27062
26738
|
return input
|
|
@@ -27069,49 +26745,38 @@ var serializeAws_restJson1TimestreamDimensionList = function (input, context) {
|
|
|
27069
26745
|
});
|
|
27070
26746
|
};
|
|
27071
26747
|
var serializeAws_restJson1TimestreamTimestamp = function (input, context) {
|
|
27072
|
-
return __assign(__assign({}, (input.unit
|
|
26748
|
+
return __assign(__assign({}, (input.unit != null && { unit: input.unit })), (input.value != null && { value: input.value }));
|
|
27073
26749
|
};
|
|
27074
26750
|
var serializeAws_restJson1TlsContext = function (input, context) {
|
|
27075
|
-
return __assign({}, (input.serverName
|
|
26751
|
+
return __assign({}, (input.serverName != null && { serverName: input.serverName }));
|
|
27076
26752
|
};
|
|
27077
26753
|
var serializeAws_restJson1TopicRuleDestinationConfiguration = function (input, context) {
|
|
27078
|
-
return __assign(__assign({}, (input.httpUrlConfiguration
|
|
27079
|
-
input.httpUrlConfiguration !== null && {
|
|
26754
|
+
return __assign(__assign({}, (input.httpUrlConfiguration != null && {
|
|
27080
26755
|
httpUrlConfiguration: serializeAws_restJson1HttpUrlDestinationConfiguration(input.httpUrlConfiguration, context),
|
|
27081
|
-
})), (input.vpcConfiguration
|
|
27082
|
-
input.vpcConfiguration !== null && {
|
|
26756
|
+
})), (input.vpcConfiguration != null && {
|
|
27083
26757
|
vpcConfiguration: serializeAws_restJson1VpcDestinationConfiguration(input.vpcConfiguration, context),
|
|
27084
26758
|
}));
|
|
27085
26759
|
};
|
|
27086
26760
|
var serializeAws_restJson1TopicRulePayload = function (input, context) {
|
|
27087
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions
|
|
27088
|
-
input.actions !== null && { actions: serializeAws_restJson1ActionList(input.actions, context) })), (input.awsIotSqlVersion !== undefined &&
|
|
27089
|
-
input.awsIotSqlVersion !== null && { awsIotSqlVersion: input.awsIotSqlVersion })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.errorAction !== undefined &&
|
|
27090
|
-
input.errorAction !== null && { errorAction: serializeAws_restJson1Action(input.errorAction, context) })), (input.ruleDisabled !== undefined && input.ruleDisabled !== null && { ruleDisabled: input.ruleDisabled })), (input.sql !== undefined && input.sql !== null && { sql: input.sql }));
|
|
26761
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1ActionList(input.actions, context) })), (input.awsIotSqlVersion != null && { awsIotSqlVersion: input.awsIotSqlVersion })), (input.description != null && { description: input.description })), (input.errorAction != null && { errorAction: serializeAws_restJson1Action(input.errorAction, context) })), (input.ruleDisabled != null && { ruleDisabled: input.ruleDisabled })), (input.sql != null && { sql: input.sql }));
|
|
27091
26762
|
};
|
|
27092
26763
|
var serializeAws_restJson1UpdateCACertificateParams = function (input, context) {
|
|
27093
|
-
return __assign({}, (input.action
|
|
26764
|
+
return __assign({}, (input.action != null && { action: input.action }));
|
|
27094
26765
|
};
|
|
27095
26766
|
var serializeAws_restJson1UpdateDeviceCertificateParams = function (input, context) {
|
|
27096
|
-
return __assign({}, (input.action
|
|
26767
|
+
return __assign({}, (input.action != null && { action: input.action }));
|
|
27097
26768
|
};
|
|
27098
26769
|
var serializeAws_restJson1ViolationEventOccurrenceRange = function (input, context) {
|
|
27099
|
-
return __assign(__assign({}, (input.endTime
|
|
27100
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.startTime !== undefined &&
|
|
27101
|
-
input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }));
|
|
26770
|
+
return __assign(__assign({}, (input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }));
|
|
27102
26771
|
};
|
|
27103
26772
|
var serializeAws_restJson1VpcDestinationConfiguration = function (input, context) {
|
|
27104
|
-
return __assign(__assign(__assign(__assign({}, (input.roleArn
|
|
27105
|
-
input.securityGroups !== null && {
|
|
26773
|
+
return __assign(__assign(__assign(__assign({}, (input.roleArn != null && { roleArn: input.roleArn })), (input.securityGroups != null && {
|
|
27106
26774
|
securityGroups: serializeAws_restJson1SecurityGroupList(input.securityGroups, context),
|
|
27107
|
-
})), (input.subnetIds
|
|
27108
|
-
input.subnetIds !== null && { subnetIds: serializeAws_restJson1SubnetIdList(input.subnetIds, context) })), (input.vpcId !== undefined && input.vpcId !== null && { vpcId: input.vpcId }));
|
|
26775
|
+
})), (input.subnetIds != null && { subnetIds: serializeAws_restJson1SubnetIdList(input.subnetIds, context) })), (input.vpcId != null && { vpcId: input.vpcId }));
|
|
27109
26776
|
};
|
|
27110
26777
|
var deserializeAws_restJson1AbortConfig = function (output, context) {
|
|
27111
26778
|
return {
|
|
27112
|
-
criteriaList: output.criteriaList
|
|
27113
|
-
? deserializeAws_restJson1AbortCriteriaList(output.criteriaList, context)
|
|
27114
|
-
: undefined,
|
|
26779
|
+
criteriaList: output.criteriaList != null ? deserializeAws_restJson1AbortCriteriaList(output.criteriaList, context) : undefined,
|
|
27115
26780
|
};
|
|
27116
26781
|
};
|
|
27117
26782
|
var deserializeAws_restJson1AbortCriteria = function (output, context) {
|
|
@@ -27135,70 +26800,40 @@ var deserializeAws_restJson1AbortCriteriaList = function (output, context) {
|
|
|
27135
26800
|
};
|
|
27136
26801
|
var deserializeAws_restJson1Action = function (output, context) {
|
|
27137
26802
|
return {
|
|
27138
|
-
cloudwatchAlarm: output.cloudwatchAlarm
|
|
26803
|
+
cloudwatchAlarm: output.cloudwatchAlarm != null
|
|
27139
26804
|
? deserializeAws_restJson1CloudwatchAlarmAction(output.cloudwatchAlarm, context)
|
|
27140
26805
|
: undefined,
|
|
27141
|
-
cloudwatchLogs: output.cloudwatchLogs
|
|
26806
|
+
cloudwatchLogs: output.cloudwatchLogs != null
|
|
27142
26807
|
? deserializeAws_restJson1CloudwatchLogsAction(output.cloudwatchLogs, context)
|
|
27143
26808
|
: undefined,
|
|
27144
|
-
cloudwatchMetric: output.cloudwatchMetric
|
|
26809
|
+
cloudwatchMetric: output.cloudwatchMetric != null
|
|
27145
26810
|
? deserializeAws_restJson1CloudwatchMetricAction(output.cloudwatchMetric, context)
|
|
27146
26811
|
: undefined,
|
|
27147
|
-
dynamoDB: output.dynamoDB
|
|
27148
|
-
|
|
27149
|
-
|
|
27150
|
-
dynamoDBv2: output.dynamoDBv2 !== undefined && output.dynamoDBv2 !== null
|
|
27151
|
-
? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context)
|
|
27152
|
-
: undefined,
|
|
27153
|
-
elasticsearch: output.elasticsearch !== undefined && output.elasticsearch !== null
|
|
26812
|
+
dynamoDB: output.dynamoDB != null ? deserializeAws_restJson1DynamoDBAction(output.dynamoDB, context) : undefined,
|
|
26813
|
+
dynamoDBv2: output.dynamoDBv2 != null ? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
|
|
26814
|
+
elasticsearch: output.elasticsearch != null
|
|
27154
26815
|
? deserializeAws_restJson1ElasticsearchAction(output.elasticsearch, context)
|
|
27155
26816
|
: undefined,
|
|
27156
|
-
firehose: output.firehose
|
|
27157
|
-
|
|
27158
|
-
|
|
27159
|
-
http: output.http !== undefined && output.http !== null
|
|
27160
|
-
? deserializeAws_restJson1HttpAction(output.http, context)
|
|
27161
|
-
: undefined,
|
|
27162
|
-
iotAnalytics: output.iotAnalytics !== undefined && output.iotAnalytics !== null
|
|
26817
|
+
firehose: output.firehose != null ? deserializeAws_restJson1FirehoseAction(output.firehose, context) : undefined,
|
|
26818
|
+
http: output.http != null ? deserializeAws_restJson1HttpAction(output.http, context) : undefined,
|
|
26819
|
+
iotAnalytics: output.iotAnalytics != null
|
|
27163
26820
|
? deserializeAws_restJson1IotAnalyticsAction(output.iotAnalytics, context)
|
|
27164
26821
|
: undefined,
|
|
27165
|
-
iotEvents: output.iotEvents
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
|
|
27170
|
-
|
|
27171
|
-
|
|
27172
|
-
|
|
27173
|
-
|
|
27174
|
-
|
|
27175
|
-
|
|
27176
|
-
|
|
27177
|
-
lambda: output.lambda !== undefined && output.lambda !== null
|
|
27178
|
-
? deserializeAws_restJson1LambdaAction(output.lambda, context)
|
|
27179
|
-
: undefined,
|
|
27180
|
-
openSearch: output.openSearch !== undefined && output.openSearch !== null
|
|
27181
|
-
? deserializeAws_restJson1OpenSearchAction(output.openSearch, context)
|
|
27182
|
-
: undefined,
|
|
27183
|
-
republish: output.republish !== undefined && output.republish !== null
|
|
27184
|
-
? deserializeAws_restJson1RepublishAction(output.republish, context)
|
|
27185
|
-
: undefined,
|
|
27186
|
-
s3: output.s3 !== undefined && output.s3 !== null ? deserializeAws_restJson1S3Action(output.s3, context) : undefined,
|
|
27187
|
-
salesforce: output.salesforce !== undefined && output.salesforce !== null
|
|
27188
|
-
? deserializeAws_restJson1SalesforceAction(output.salesforce, context)
|
|
27189
|
-
: undefined,
|
|
27190
|
-
sns: output.sns !== undefined && output.sns !== null
|
|
27191
|
-
? deserializeAws_restJson1SnsAction(output.sns, context)
|
|
27192
|
-
: undefined,
|
|
27193
|
-
sqs: output.sqs !== undefined && output.sqs !== null
|
|
27194
|
-
? deserializeAws_restJson1SqsAction(output.sqs, context)
|
|
27195
|
-
: undefined,
|
|
27196
|
-
stepFunctions: output.stepFunctions !== undefined && output.stepFunctions !== null
|
|
26822
|
+
iotEvents: output.iotEvents != null ? deserializeAws_restJson1IotEventsAction(output.iotEvents, context) : undefined,
|
|
26823
|
+
iotSiteWise: output.iotSiteWise != null ? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context) : undefined,
|
|
26824
|
+
kafka: output.kafka != null ? deserializeAws_restJson1KafkaAction(output.kafka, context) : undefined,
|
|
26825
|
+
kinesis: output.kinesis != null ? deserializeAws_restJson1KinesisAction(output.kinesis, context) : undefined,
|
|
26826
|
+
lambda: output.lambda != null ? deserializeAws_restJson1LambdaAction(output.lambda, context) : undefined,
|
|
26827
|
+
openSearch: output.openSearch != null ? deserializeAws_restJson1OpenSearchAction(output.openSearch, context) : undefined,
|
|
26828
|
+
republish: output.republish != null ? deserializeAws_restJson1RepublishAction(output.republish, context) : undefined,
|
|
26829
|
+
s3: output.s3 != null ? deserializeAws_restJson1S3Action(output.s3, context) : undefined,
|
|
26830
|
+
salesforce: output.salesforce != null ? deserializeAws_restJson1SalesforceAction(output.salesforce, context) : undefined,
|
|
26831
|
+
sns: output.sns != null ? deserializeAws_restJson1SnsAction(output.sns, context) : undefined,
|
|
26832
|
+
sqs: output.sqs != null ? deserializeAws_restJson1SqsAction(output.sqs, context) : undefined,
|
|
26833
|
+
stepFunctions: output.stepFunctions != null
|
|
27197
26834
|
? deserializeAws_restJson1StepFunctionsAction(output.stepFunctions, context)
|
|
27198
26835
|
: undefined,
|
|
27199
|
-
timestream: output.timestream
|
|
27200
|
-
? deserializeAws_restJson1TimestreamAction(output.timestream, context)
|
|
27201
|
-
: undefined,
|
|
26836
|
+
timestream: output.timestream != null ? deserializeAws_restJson1TimestreamAction(output.timestream, context) : undefined,
|
|
27202
26837
|
};
|
|
27203
26838
|
};
|
|
27204
26839
|
var deserializeAws_restJson1ActionList = function (output, context) {
|
|
@@ -27214,24 +26849,22 @@ var deserializeAws_restJson1ActionList = function (output, context) {
|
|
|
27214
26849
|
};
|
|
27215
26850
|
var deserializeAws_restJson1ActiveViolation = function (output, context) {
|
|
27216
26851
|
return {
|
|
27217
|
-
behavior: output.behavior
|
|
27218
|
-
|
|
27219
|
-
: undefined,
|
|
27220
|
-
lastViolationTime: output.lastViolationTime !== undefined && output.lastViolationTime !== null
|
|
26852
|
+
behavior: output.behavior != null ? deserializeAws_restJson1Behavior(output.behavior, context) : undefined,
|
|
26853
|
+
lastViolationTime: output.lastViolationTime != null
|
|
27221
26854
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastViolationTime)))
|
|
27222
26855
|
: undefined,
|
|
27223
|
-
lastViolationValue: output.lastViolationValue
|
|
26856
|
+
lastViolationValue: output.lastViolationValue != null
|
|
27224
26857
|
? deserializeAws_restJson1MetricValue(output.lastViolationValue, context)
|
|
27225
26858
|
: undefined,
|
|
27226
26859
|
securityProfileName: __expectString(output.securityProfileName),
|
|
27227
26860
|
thingName: __expectString(output.thingName),
|
|
27228
26861
|
verificationState: __expectString(output.verificationState),
|
|
27229
26862
|
verificationStateDescription: __expectString(output.verificationStateDescription),
|
|
27230
|
-
violationEventAdditionalInfo: output.violationEventAdditionalInfo
|
|
26863
|
+
violationEventAdditionalInfo: output.violationEventAdditionalInfo != null
|
|
27231
26864
|
? deserializeAws_restJson1ViolationEventAdditionalInfo(output.violationEventAdditionalInfo, context)
|
|
27232
26865
|
: undefined,
|
|
27233
26866
|
violationId: __expectString(output.violationId),
|
|
27234
|
-
violationStartTime: output.violationStartTime
|
|
26867
|
+
violationStartTime: output.violationStartTime != null
|
|
27235
26868
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.violationStartTime)))
|
|
27236
26869
|
: undefined,
|
|
27237
26870
|
};
|
|
@@ -27282,7 +26915,7 @@ var deserializeAws_restJson1AdditionalParameterMap = function (output, context)
|
|
|
27282
26915
|
var deserializeAws_restJson1AddThingsToThingGroupParams = function (output, context) {
|
|
27283
26916
|
return {
|
|
27284
26917
|
overrideDynamicGroups: __expectBoolean(output.overrideDynamicGroups),
|
|
27285
|
-
thingGroupNames: output.thingGroupNames
|
|
26918
|
+
thingGroupNames: output.thingGroupNames != null
|
|
27286
26919
|
? deserializeAws_restJson1ThingGroupNames(output.thingGroupNames, context)
|
|
27287
26920
|
: undefined,
|
|
27288
26921
|
};
|
|
@@ -27290,9 +26923,7 @@ var deserializeAws_restJson1AddThingsToThingGroupParams = function (output, cont
|
|
|
27290
26923
|
var deserializeAws_restJson1AggregationType = function (output, context) {
|
|
27291
26924
|
return {
|
|
27292
26925
|
name: __expectString(output.name),
|
|
27293
|
-
values: output.values
|
|
27294
|
-
? deserializeAws_restJson1AggregationTypeValues(output.values, context)
|
|
27295
|
-
: undefined,
|
|
26926
|
+
values: output.values != null ? deserializeAws_restJson1AggregationTypeValues(output.values, context) : undefined,
|
|
27296
26927
|
};
|
|
27297
26928
|
};
|
|
27298
26929
|
var deserializeAws_restJson1AggregationTypeValues = function (output, context) {
|
|
@@ -27324,9 +26955,7 @@ var deserializeAws_restJson1AlertTargets = function (output, context) {
|
|
|
27324
26955
|
};
|
|
27325
26956
|
var deserializeAws_restJson1Allowed = function (output, context) {
|
|
27326
26957
|
return {
|
|
27327
|
-
policies: output.policies
|
|
27328
|
-
? deserializeAws_restJson1Policies(output.policies, context)
|
|
27329
|
-
: undefined,
|
|
26958
|
+
policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
|
|
27330
26959
|
};
|
|
27331
26960
|
};
|
|
27332
26961
|
var deserializeAws_restJson1AssetPropertyTimestamp = function (output, context) {
|
|
@@ -27338,10 +26967,8 @@ var deserializeAws_restJson1AssetPropertyTimestamp = function (output, context)
|
|
|
27338
26967
|
var deserializeAws_restJson1AssetPropertyValue = function (output, context) {
|
|
27339
26968
|
return {
|
|
27340
26969
|
quality: __expectString(output.quality),
|
|
27341
|
-
timestamp: output.timestamp
|
|
27342
|
-
|
|
27343
|
-
: undefined,
|
|
27344
|
-
value: output.value !== undefined && output.value !== null
|
|
26970
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1AssetPropertyTimestamp(output.timestamp, context) : undefined,
|
|
26971
|
+
value: output.value != null
|
|
27345
26972
|
? deserializeAws_restJson1AssetPropertyVariant(__expectUnion(output.value), context)
|
|
27346
26973
|
: undefined,
|
|
27347
26974
|
};
|
|
@@ -27374,9 +27001,7 @@ var deserializeAws_restJson1AssetPropertyVariant = function (output, context) {
|
|
|
27374
27001
|
};
|
|
27375
27002
|
var deserializeAws_restJson1AttributePayload = function (output, context) {
|
|
27376
27003
|
return {
|
|
27377
|
-
attributes: output.attributes
|
|
27378
|
-
? deserializeAws_restJson1Attributes(output.attributes, context)
|
|
27379
|
-
: undefined,
|
|
27004
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
27380
27005
|
merge: __expectBoolean(output.merge),
|
|
27381
27006
|
};
|
|
27382
27007
|
};
|
|
@@ -27460,21 +27085,21 @@ var deserializeAws_restJson1AuditFinding = function (output, context) {
|
|
|
27460
27085
|
return {
|
|
27461
27086
|
checkName: __expectString(output.checkName),
|
|
27462
27087
|
findingId: __expectString(output.findingId),
|
|
27463
|
-
findingTime: output.findingTime
|
|
27088
|
+
findingTime: output.findingTime != null
|
|
27464
27089
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.findingTime)))
|
|
27465
27090
|
: undefined,
|
|
27466
27091
|
isSuppressed: __expectBoolean(output.isSuppressed),
|
|
27467
|
-
nonCompliantResource: output.nonCompliantResource
|
|
27092
|
+
nonCompliantResource: output.nonCompliantResource != null
|
|
27468
27093
|
? deserializeAws_restJson1NonCompliantResource(output.nonCompliantResource, context)
|
|
27469
27094
|
: undefined,
|
|
27470
27095
|
reasonForNonCompliance: __expectString(output.reasonForNonCompliance),
|
|
27471
27096
|
reasonForNonComplianceCode: __expectString(output.reasonForNonComplianceCode),
|
|
27472
|
-
relatedResources: output.relatedResources
|
|
27097
|
+
relatedResources: output.relatedResources != null
|
|
27473
27098
|
? deserializeAws_restJson1RelatedResources(output.relatedResources, context)
|
|
27474
27099
|
: undefined,
|
|
27475
27100
|
severity: __expectString(output.severity),
|
|
27476
27101
|
taskId: __expectString(output.taskId),
|
|
27477
|
-
taskStartTime: output.taskStartTime
|
|
27102
|
+
taskStartTime: output.taskStartTime != null
|
|
27478
27103
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.taskStartTime)))
|
|
27479
27104
|
: undefined,
|
|
27480
27105
|
};
|
|
@@ -27494,15 +27119,11 @@ var deserializeAws_restJson1AuditMitigationActionExecutionMetadata = function (o
|
|
|
27494
27119
|
return {
|
|
27495
27120
|
actionId: __expectString(output.actionId),
|
|
27496
27121
|
actionName: __expectString(output.actionName),
|
|
27497
|
-
endTime: output.endTime
|
|
27498
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
|
|
27499
|
-
: undefined,
|
|
27122
|
+
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
27500
27123
|
errorCode: __expectString(output.errorCode),
|
|
27501
27124
|
findingId: __expectString(output.findingId),
|
|
27502
27125
|
message: __expectString(output.message),
|
|
27503
|
-
startTime: output.startTime
|
|
27504
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
27505
|
-
: undefined,
|
|
27126
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
27506
27127
|
status: __expectString(output.status),
|
|
27507
27128
|
taskId: __expectString(output.taskId),
|
|
27508
27129
|
};
|
|
@@ -27520,9 +27141,7 @@ var deserializeAws_restJson1AuditMitigationActionExecutionMetadataList = functio
|
|
|
27520
27141
|
};
|
|
27521
27142
|
var deserializeAws_restJson1AuditMitigationActionsTaskMetadata = function (output, context) {
|
|
27522
27143
|
return {
|
|
27523
|
-
startTime: output.startTime
|
|
27524
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
27525
|
-
: undefined,
|
|
27144
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
27526
27145
|
taskId: __expectString(output.taskId),
|
|
27527
27146
|
taskStatus: __expectString(output.taskStatus),
|
|
27528
27147
|
};
|
|
@@ -27550,13 +27169,11 @@ var deserializeAws_restJson1AuditMitigationActionsTaskStatistics = function (out
|
|
|
27550
27169
|
};
|
|
27551
27170
|
var deserializeAws_restJson1AuditMitigationActionsTaskTarget = function (output, context) {
|
|
27552
27171
|
return {
|
|
27553
|
-
auditCheckToReasonCodeFilter: output.auditCheckToReasonCodeFilter
|
|
27172
|
+
auditCheckToReasonCodeFilter: output.auditCheckToReasonCodeFilter != null
|
|
27554
27173
|
? deserializeAws_restJson1AuditCheckToReasonCodeFilter(output.auditCheckToReasonCodeFilter, context)
|
|
27555
27174
|
: undefined,
|
|
27556
27175
|
auditTaskId: __expectString(output.auditTaskId),
|
|
27557
|
-
findingIds: output.findingIds
|
|
27558
|
-
? deserializeAws_restJson1FindingIds(output.findingIds, context)
|
|
27559
|
-
: undefined,
|
|
27176
|
+
findingIds: output.findingIds != null ? deserializeAws_restJson1FindingIds(output.findingIds, context) : undefined,
|
|
27560
27177
|
};
|
|
27561
27178
|
};
|
|
27562
27179
|
var deserializeAws_restJson1AuditNotificationTarget = function (output, context) {
|
|
@@ -27580,10 +27197,10 @@ var deserializeAws_restJson1AuditSuppression = function (output, context) {
|
|
|
27580
27197
|
return {
|
|
27581
27198
|
checkName: __expectString(output.checkName),
|
|
27582
27199
|
description: __expectString(output.description),
|
|
27583
|
-
expirationDate: output.expirationDate
|
|
27200
|
+
expirationDate: output.expirationDate != null
|
|
27584
27201
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expirationDate)))
|
|
27585
27202
|
: undefined,
|
|
27586
|
-
resourceIdentifier: output.resourceIdentifier
|
|
27203
|
+
resourceIdentifier: output.resourceIdentifier != null
|
|
27587
27204
|
? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
|
|
27588
27205
|
: undefined,
|
|
27589
27206
|
suppressIndefinitely: __expectBoolean(output.suppressIndefinitely),
|
|
@@ -27621,9 +27238,7 @@ var deserializeAws_restJson1AuditTaskMetadataList = function (output, context) {
|
|
|
27621
27238
|
var deserializeAws_restJson1AuthInfo = function (output, context) {
|
|
27622
27239
|
return {
|
|
27623
27240
|
actionType: __expectString(output.actionType),
|
|
27624
|
-
resources: output.resources
|
|
27625
|
-
? deserializeAws_restJson1Resources(output.resources, context)
|
|
27626
|
-
: undefined,
|
|
27241
|
+
resources: output.resources != null ? deserializeAws_restJson1Resources(output.resources, context) : undefined,
|
|
27627
27242
|
};
|
|
27628
27243
|
};
|
|
27629
27244
|
var deserializeAws_restJson1AuthorizerConfig = function (output, context) {
|
|
@@ -27637,17 +27252,17 @@ var deserializeAws_restJson1AuthorizerDescription = function (output, context) {
|
|
|
27637
27252
|
authorizerArn: __expectString(output.authorizerArn),
|
|
27638
27253
|
authorizerFunctionArn: __expectString(output.authorizerFunctionArn),
|
|
27639
27254
|
authorizerName: __expectString(output.authorizerName),
|
|
27640
|
-
creationDate: output.creationDate
|
|
27255
|
+
creationDate: output.creationDate != null
|
|
27641
27256
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27642
27257
|
: undefined,
|
|
27643
27258
|
enableCachingForHttp: __expectBoolean(output.enableCachingForHttp),
|
|
27644
|
-
lastModifiedDate: output.lastModifiedDate
|
|
27259
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
27645
27260
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
27646
27261
|
: undefined,
|
|
27647
27262
|
signingDisabled: __expectBoolean(output.signingDisabled),
|
|
27648
27263
|
status: __expectString(output.status),
|
|
27649
27264
|
tokenKeyName: __expectString(output.tokenKeyName),
|
|
27650
|
-
tokenSigningPublicKeys: output.tokenSigningPublicKeys
|
|
27265
|
+
tokenSigningPublicKeys: output.tokenSigningPublicKeys != null
|
|
27651
27266
|
? deserializeAws_restJson1PublicKeyMap(output.tokenSigningPublicKeys, context)
|
|
27652
27267
|
: undefined,
|
|
27653
27268
|
};
|
|
@@ -27671,17 +27286,11 @@ var deserializeAws_restJson1AuthorizerSummary = function (output, context) {
|
|
|
27671
27286
|
};
|
|
27672
27287
|
var deserializeAws_restJson1AuthResult = function (output, context) {
|
|
27673
27288
|
return {
|
|
27674
|
-
allowed: output.allowed
|
|
27675
|
-
? deserializeAws_restJson1Allowed(output.allowed, context)
|
|
27676
|
-
: undefined,
|
|
27289
|
+
allowed: output.allowed != null ? deserializeAws_restJson1Allowed(output.allowed, context) : undefined,
|
|
27677
27290
|
authDecision: __expectString(output.authDecision),
|
|
27678
|
-
authInfo: output.authInfo
|
|
27679
|
-
|
|
27680
|
-
|
|
27681
|
-
denied: output.denied !== undefined && output.denied !== null
|
|
27682
|
-
? deserializeAws_restJson1Denied(output.denied, context)
|
|
27683
|
-
: undefined,
|
|
27684
|
-
missingContextValues: output.missingContextValues !== undefined && output.missingContextValues !== null
|
|
27291
|
+
authInfo: output.authInfo != null ? deserializeAws_restJson1AuthInfo(output.authInfo, context) : undefined,
|
|
27292
|
+
denied: output.denied != null ? deserializeAws_restJson1Denied(output.denied, context) : undefined,
|
|
27293
|
+
missingContextValues: output.missingContextValues != null
|
|
27685
27294
|
? deserializeAws_restJson1MissingContextValues(output.missingContextValues, context)
|
|
27686
27295
|
: undefined,
|
|
27687
27296
|
};
|
|
@@ -27699,7 +27308,7 @@ var deserializeAws_restJson1AuthResults = function (output, context) {
|
|
|
27699
27308
|
};
|
|
27700
27309
|
var deserializeAws_restJson1AwsJobExecutionsRolloutConfig = function (output, context) {
|
|
27701
27310
|
return {
|
|
27702
|
-
exponentialRate: output.exponentialRate
|
|
27311
|
+
exponentialRate: output.exponentialRate != null
|
|
27703
27312
|
? deserializeAws_restJson1AwsJobExponentialRolloutRate(output.exponentialRate, context)
|
|
27704
27313
|
: undefined,
|
|
27705
27314
|
maximumPerMinute: __expectInt32(output.maximumPerMinute),
|
|
@@ -27709,7 +27318,7 @@ var deserializeAws_restJson1AwsJobExponentialRolloutRate = function (output, con
|
|
|
27709
27318
|
return {
|
|
27710
27319
|
baseRatePerMinute: __expectInt32(output.baseRatePerMinute),
|
|
27711
27320
|
incrementFactor: __limitedParseDouble(output.incrementFactor),
|
|
27712
|
-
rateIncreaseCriteria: output.rateIncreaseCriteria
|
|
27321
|
+
rateIncreaseCriteria: output.rateIncreaseCriteria != null
|
|
27713
27322
|
? deserializeAws_restJson1AwsJobRateIncreaseCriteria(output.rateIncreaseCriteria, context)
|
|
27714
27323
|
: undefined,
|
|
27715
27324
|
};
|
|
@@ -27727,11 +27336,9 @@ var deserializeAws_restJson1AwsJobRateIncreaseCriteria = function (output, conte
|
|
|
27727
27336
|
};
|
|
27728
27337
|
var deserializeAws_restJson1Behavior = function (output, context) {
|
|
27729
27338
|
return {
|
|
27730
|
-
criteria: output.criteria
|
|
27731
|
-
? deserializeAws_restJson1BehaviorCriteria(output.criteria, context)
|
|
27732
|
-
: undefined,
|
|
27339
|
+
criteria: output.criteria != null ? deserializeAws_restJson1BehaviorCriteria(output.criteria, context) : undefined,
|
|
27733
27340
|
metric: __expectString(output.metric),
|
|
27734
|
-
metricDimension: output.metricDimension
|
|
27341
|
+
metricDimension: output.metricDimension != null
|
|
27735
27342
|
? deserializeAws_restJson1MetricDimension(output.metricDimension, context)
|
|
27736
27343
|
: undefined,
|
|
27737
27344
|
name: __expectString(output.name),
|
|
@@ -27744,15 +27351,13 @@ var deserializeAws_restJson1BehaviorCriteria = function (output, context) {
|
|
|
27744
27351
|
consecutiveDatapointsToAlarm: __expectInt32(output.consecutiveDatapointsToAlarm),
|
|
27745
27352
|
consecutiveDatapointsToClear: __expectInt32(output.consecutiveDatapointsToClear),
|
|
27746
27353
|
durationSeconds: __expectInt32(output.durationSeconds),
|
|
27747
|
-
mlDetectionConfig: output.mlDetectionConfig
|
|
27354
|
+
mlDetectionConfig: output.mlDetectionConfig != null
|
|
27748
27355
|
? deserializeAws_restJson1MachineLearningDetectionConfig(output.mlDetectionConfig, context)
|
|
27749
27356
|
: undefined,
|
|
27750
|
-
statisticalThreshold: output.statisticalThreshold
|
|
27357
|
+
statisticalThreshold: output.statisticalThreshold != null
|
|
27751
27358
|
? deserializeAws_restJson1StatisticalThreshold(output.statisticalThreshold, context)
|
|
27752
27359
|
: undefined,
|
|
27753
|
-
value: output.value
|
|
27754
|
-
? deserializeAws_restJson1MetricValue(output.value, context)
|
|
27755
|
-
: undefined,
|
|
27360
|
+
value: output.value != null ? deserializeAws_restJson1MetricValue(output.value, context) : undefined,
|
|
27756
27361
|
};
|
|
27757
27362
|
};
|
|
27758
27363
|
var deserializeAws_restJson1BehaviorModelTrainingSummaries = function (output, context) {
|
|
@@ -27770,12 +27375,12 @@ var deserializeAws_restJson1BehaviorModelTrainingSummary = function (output, con
|
|
|
27770
27375
|
return {
|
|
27771
27376
|
behaviorName: __expectString(output.behaviorName),
|
|
27772
27377
|
datapointsCollectionPercentage: __limitedParseDouble(output.datapointsCollectionPercentage),
|
|
27773
|
-
lastModelRefreshDate: output.lastModelRefreshDate
|
|
27378
|
+
lastModelRefreshDate: output.lastModelRefreshDate != null
|
|
27774
27379
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModelRefreshDate)))
|
|
27775
27380
|
: undefined,
|
|
27776
27381
|
modelStatus: __expectString(output.modelStatus),
|
|
27777
27382
|
securityProfileName: __expectString(output.securityProfileName),
|
|
27778
|
-
trainingDataCollectionStartDate: output.trainingDataCollectionStartDate
|
|
27383
|
+
trainingDataCollectionStartDate: output.trainingDataCollectionStartDate != null
|
|
27779
27384
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.trainingDataCollectionStartDate)))
|
|
27780
27385
|
: undefined,
|
|
27781
27386
|
};
|
|
@@ -27793,7 +27398,7 @@ var deserializeAws_restJson1Behaviors = function (output, context) {
|
|
|
27793
27398
|
};
|
|
27794
27399
|
var deserializeAws_restJson1BillingGroupMetadata = function (output, context) {
|
|
27795
27400
|
return {
|
|
27796
|
-
creationDate: output.creationDate
|
|
27401
|
+
creationDate: output.creationDate != null
|
|
27797
27402
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27798
27403
|
: undefined,
|
|
27799
27404
|
};
|
|
@@ -27835,7 +27440,7 @@ var deserializeAws_restJson1CACertificate = function (output, context) {
|
|
|
27835
27440
|
return {
|
|
27836
27441
|
certificateArn: __expectString(output.certificateArn),
|
|
27837
27442
|
certificateId: __expectString(output.certificateId),
|
|
27838
|
-
creationDate: output.creationDate
|
|
27443
|
+
creationDate: output.creationDate != null
|
|
27839
27444
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27840
27445
|
: undefined,
|
|
27841
27446
|
status: __expectString(output.status),
|
|
@@ -27848,19 +27453,17 @@ var deserializeAws_restJson1CACertificateDescription = function (output, context
|
|
|
27848
27453
|
certificateId: __expectString(output.certificateId),
|
|
27849
27454
|
certificateMode: __expectString(output.certificateMode),
|
|
27850
27455
|
certificatePem: __expectString(output.certificatePem),
|
|
27851
|
-
creationDate: output.creationDate
|
|
27456
|
+
creationDate: output.creationDate != null
|
|
27852
27457
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27853
27458
|
: undefined,
|
|
27854
27459
|
customerVersion: __expectInt32(output.customerVersion),
|
|
27855
27460
|
generationId: __expectString(output.generationId),
|
|
27856
|
-
lastModifiedDate: output.lastModifiedDate
|
|
27461
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
27857
27462
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
27858
27463
|
: undefined,
|
|
27859
27464
|
ownedBy: __expectString(output.ownedBy),
|
|
27860
27465
|
status: __expectString(output.status),
|
|
27861
|
-
validity: output.validity
|
|
27862
|
-
? deserializeAws_restJson1CertificateValidity(output.validity, context)
|
|
27863
|
-
: undefined,
|
|
27466
|
+
validity: output.validity != null ? deserializeAws_restJson1CertificateValidity(output.validity, context) : undefined,
|
|
27864
27467
|
};
|
|
27865
27468
|
};
|
|
27866
27469
|
var deserializeAws_restJson1CACertificates = function (output, context) {
|
|
@@ -27879,7 +27482,7 @@ var deserializeAws_restJson1Certificate = function (output, context) {
|
|
|
27879
27482
|
certificateArn: __expectString(output.certificateArn),
|
|
27880
27483
|
certificateId: __expectString(output.certificateId),
|
|
27881
27484
|
certificateMode: __expectString(output.certificateMode),
|
|
27882
|
-
creationDate: output.creationDate
|
|
27485
|
+
creationDate: output.creationDate != null
|
|
27883
27486
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27884
27487
|
: undefined,
|
|
27885
27488
|
status: __expectString(output.status),
|
|
@@ -27892,23 +27495,19 @@ var deserializeAws_restJson1CertificateDescription = function (output, context)
|
|
|
27892
27495
|
certificateId: __expectString(output.certificateId),
|
|
27893
27496
|
certificateMode: __expectString(output.certificateMode),
|
|
27894
27497
|
certificatePem: __expectString(output.certificatePem),
|
|
27895
|
-
creationDate: output.creationDate
|
|
27498
|
+
creationDate: output.creationDate != null
|
|
27896
27499
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27897
27500
|
: undefined,
|
|
27898
27501
|
customerVersion: __expectInt32(output.customerVersion),
|
|
27899
27502
|
generationId: __expectString(output.generationId),
|
|
27900
|
-
lastModifiedDate: output.lastModifiedDate
|
|
27503
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
27901
27504
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
27902
27505
|
: undefined,
|
|
27903
27506
|
ownedBy: __expectString(output.ownedBy),
|
|
27904
27507
|
previousOwnedBy: __expectString(output.previousOwnedBy),
|
|
27905
27508
|
status: __expectString(output.status),
|
|
27906
|
-
transferData: output.transferData
|
|
27907
|
-
|
|
27908
|
-
: undefined,
|
|
27909
|
-
validity: output.validity !== undefined && output.validity !== null
|
|
27910
|
-
? deserializeAws_restJson1CertificateValidity(output.validity, context)
|
|
27911
|
-
: undefined,
|
|
27509
|
+
transferData: output.transferData != null ? deserializeAws_restJson1TransferData(output.transferData, context) : undefined,
|
|
27510
|
+
validity: output.validity != null ? deserializeAws_restJson1CertificateValidity(output.validity, context) : undefined,
|
|
27912
27511
|
};
|
|
27913
27512
|
};
|
|
27914
27513
|
var deserializeAws_restJson1Certificates = function (output, context) {
|
|
@@ -27924,12 +27523,8 @@ var deserializeAws_restJson1Certificates = function (output, context) {
|
|
|
27924
27523
|
};
|
|
27925
27524
|
var deserializeAws_restJson1CertificateValidity = function (output, context) {
|
|
27926
27525
|
return {
|
|
27927
|
-
notAfter: output.notAfter
|
|
27928
|
-
|
|
27929
|
-
: undefined,
|
|
27930
|
-
notBefore: output.notBefore !== undefined && output.notBefore !== null
|
|
27931
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.notBefore)))
|
|
27932
|
-
: undefined,
|
|
27526
|
+
notAfter: output.notAfter != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.notAfter))) : undefined,
|
|
27527
|
+
notBefore: output.notBefore != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.notBefore))) : undefined,
|
|
27933
27528
|
};
|
|
27934
27529
|
};
|
|
27935
27530
|
var deserializeAws_restJson1Cidrs = function (output, context) {
|
|
@@ -27980,10 +27575,10 @@ var deserializeAws_restJson1CloudwatchMetricAction = function (output, context)
|
|
|
27980
27575
|
var deserializeAws_restJson1CodeSigning = function (output, context) {
|
|
27981
27576
|
return {
|
|
27982
27577
|
awsSignerJobId: __expectString(output.awsSignerJobId),
|
|
27983
|
-
customCodeSigning: output.customCodeSigning
|
|
27578
|
+
customCodeSigning: output.customCodeSigning != null
|
|
27984
27579
|
? deserializeAws_restJson1CustomCodeSigning(output.customCodeSigning, context)
|
|
27985
27580
|
: undefined,
|
|
27986
|
-
startSigningJobParameter: output.startSigningJobParameter
|
|
27581
|
+
startSigningJobParameter: output.startSigningJobParameter != null
|
|
27987
27582
|
? deserializeAws_restJson1StartSigningJobParameter(output.startSigningJobParameter, context)
|
|
27988
27583
|
: undefined,
|
|
27989
27584
|
};
|
|
@@ -27996,9 +27591,7 @@ var deserializeAws_restJson1CodeSigningCertificateChain = function (output, cont
|
|
|
27996
27591
|
};
|
|
27997
27592
|
var deserializeAws_restJson1CodeSigningSignature = function (output, context) {
|
|
27998
27593
|
return {
|
|
27999
|
-
inlineDocument: output.inlineDocument
|
|
28000
|
-
? context.base64Decoder(output.inlineDocument)
|
|
28001
|
-
: undefined,
|
|
27594
|
+
inlineDocument: output.inlineDocument != null ? context.base64Decoder(output.inlineDocument) : undefined,
|
|
28002
27595
|
};
|
|
28003
27596
|
};
|
|
28004
27597
|
var deserializeAws_restJson1Configuration = function (output, context) {
|
|
@@ -28008,31 +27601,23 @@ var deserializeAws_restJson1Configuration = function (output, context) {
|
|
|
28008
27601
|
};
|
|
28009
27602
|
var deserializeAws_restJson1CustomCodeSigning = function (output, context) {
|
|
28010
27603
|
return {
|
|
28011
|
-
certificateChain: output.certificateChain
|
|
27604
|
+
certificateChain: output.certificateChain != null
|
|
28012
27605
|
? deserializeAws_restJson1CodeSigningCertificateChain(output.certificateChain, context)
|
|
28013
27606
|
: undefined,
|
|
28014
27607
|
hashAlgorithm: __expectString(output.hashAlgorithm),
|
|
28015
|
-
signature: output.signature
|
|
28016
|
-
? deserializeAws_restJson1CodeSigningSignature(output.signature, context)
|
|
28017
|
-
: undefined,
|
|
27608
|
+
signature: output.signature != null ? deserializeAws_restJson1CodeSigningSignature(output.signature, context) : undefined,
|
|
28018
27609
|
signatureAlgorithm: __expectString(output.signatureAlgorithm),
|
|
28019
27610
|
};
|
|
28020
27611
|
};
|
|
28021
27612
|
var deserializeAws_restJson1Denied = function (output, context) {
|
|
28022
27613
|
return {
|
|
28023
|
-
explicitDeny: output.explicitDeny
|
|
28024
|
-
|
|
28025
|
-
: undefined,
|
|
28026
|
-
implicitDeny: output.implicitDeny !== undefined && output.implicitDeny !== null
|
|
28027
|
-
? deserializeAws_restJson1ImplicitDeny(output.implicitDeny, context)
|
|
28028
|
-
: undefined,
|
|
27614
|
+
explicitDeny: output.explicitDeny != null ? deserializeAws_restJson1ExplicitDeny(output.explicitDeny, context) : undefined,
|
|
27615
|
+
implicitDeny: output.implicitDeny != null ? deserializeAws_restJson1ImplicitDeny(output.implicitDeny, context) : undefined,
|
|
28029
27616
|
};
|
|
28030
27617
|
};
|
|
28031
27618
|
var deserializeAws_restJson1Destination = function (output, context) {
|
|
28032
27619
|
return {
|
|
28033
|
-
s3Destination: output.s3Destination
|
|
28034
|
-
? deserializeAws_restJson1S3Destination(output.s3Destination, context)
|
|
28035
|
-
: undefined,
|
|
27620
|
+
s3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
|
|
28036
27621
|
};
|
|
28037
27622
|
};
|
|
28038
27623
|
var deserializeAws_restJson1DetailsMap = function (output, context) {
|
|
@@ -28049,10 +27634,10 @@ var deserializeAws_restJson1DetectMitigationActionExecution = function (output,
|
|
|
28049
27634
|
return {
|
|
28050
27635
|
actionName: __expectString(output.actionName),
|
|
28051
27636
|
errorCode: __expectString(output.errorCode),
|
|
28052
|
-
executionEndDate: output.executionEndDate
|
|
27637
|
+
executionEndDate: output.executionEndDate != null
|
|
28053
27638
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.executionEndDate)))
|
|
28054
27639
|
: undefined,
|
|
28055
|
-
executionStartDate: output.executionStartDate
|
|
27640
|
+
executionStartDate: output.executionStartDate != null
|
|
28056
27641
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.executionStartDate)))
|
|
28057
27642
|
: undefined,
|
|
28058
27643
|
message: __expectString(output.message),
|
|
@@ -28082,26 +27667,26 @@ var deserializeAws_restJson1DetectMitigationActionsTaskStatistics = function (ou
|
|
|
28082
27667
|
};
|
|
28083
27668
|
var deserializeAws_restJson1DetectMitigationActionsTaskSummary = function (output, context) {
|
|
28084
27669
|
return {
|
|
28085
|
-
actionsDefinition: output.actionsDefinition
|
|
27670
|
+
actionsDefinition: output.actionsDefinition != null
|
|
28086
27671
|
? deserializeAws_restJson1MitigationActionList(output.actionsDefinition, context)
|
|
28087
27672
|
: undefined,
|
|
28088
27673
|
onlyActiveViolationsIncluded: __expectBoolean(output.onlyActiveViolationsIncluded),
|
|
28089
27674
|
suppressedAlertsIncluded: __expectBoolean(output.suppressedAlertsIncluded),
|
|
28090
|
-
target: output.target
|
|
27675
|
+
target: output.target != null
|
|
28091
27676
|
? deserializeAws_restJson1DetectMitigationActionsTaskTarget(output.target, context)
|
|
28092
27677
|
: undefined,
|
|
28093
|
-
taskEndTime: output.taskEndTime
|
|
27678
|
+
taskEndTime: output.taskEndTime != null
|
|
28094
27679
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.taskEndTime)))
|
|
28095
27680
|
: undefined,
|
|
28096
27681
|
taskId: __expectString(output.taskId),
|
|
28097
|
-
taskStartTime: output.taskStartTime
|
|
27682
|
+
taskStartTime: output.taskStartTime != null
|
|
28098
27683
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.taskStartTime)))
|
|
28099
27684
|
: undefined,
|
|
28100
|
-
taskStatistics: output.taskStatistics
|
|
27685
|
+
taskStatistics: output.taskStatistics != null
|
|
28101
27686
|
? deserializeAws_restJson1DetectMitigationActionsTaskStatistics(output.taskStatistics, context)
|
|
28102
27687
|
: undefined,
|
|
28103
27688
|
taskStatus: __expectString(output.taskStatus),
|
|
28104
|
-
violationEventOccurrenceRange: output.violationEventOccurrenceRange
|
|
27689
|
+
violationEventOccurrenceRange: output.violationEventOccurrenceRange != null
|
|
28105
27690
|
? deserializeAws_restJson1ViolationEventOccurrenceRange(output.violationEventOccurrenceRange, context)
|
|
28106
27691
|
: undefined,
|
|
28107
27692
|
};
|
|
@@ -28121,7 +27706,7 @@ var deserializeAws_restJson1DetectMitigationActionsTaskTarget = function (output
|
|
|
28121
27706
|
return {
|
|
28122
27707
|
behaviorName: __expectString(output.behaviorName),
|
|
28123
27708
|
securityProfileName: __expectString(output.securityProfileName),
|
|
28124
|
-
violationIds: output.violationIds
|
|
27709
|
+
violationIds: output.violationIds != null
|
|
28125
27710
|
? deserializeAws_restJson1TargetViolationIdsForDetectMitigationActions(output.violationIds, context)
|
|
28126
27711
|
: undefined,
|
|
28127
27712
|
};
|
|
@@ -28202,9 +27787,7 @@ var deserializeAws_restJson1DynamoDBAction = function (output, context) {
|
|
|
28202
27787
|
};
|
|
28203
27788
|
var deserializeAws_restJson1DynamoDBv2Action = function (output, context) {
|
|
28204
27789
|
return {
|
|
28205
|
-
putItem: output.putItem
|
|
28206
|
-
? deserializeAws_restJson1PutItemInput(output.putItem, context)
|
|
28207
|
-
: undefined,
|
|
27790
|
+
putItem: output.putItem != null ? deserializeAws_restJson1PutItemInput(output.putItem, context) : undefined,
|
|
28208
27791
|
roleArn: __expectString(output.roleArn),
|
|
28209
27792
|
};
|
|
28210
27793
|
};
|
|
@@ -28270,16 +27853,14 @@ var deserializeAws_restJson1EventConfigurations = function (output, context) {
|
|
|
28270
27853
|
};
|
|
28271
27854
|
var deserializeAws_restJson1ExplicitDeny = function (output, context) {
|
|
28272
27855
|
return {
|
|
28273
|
-
policies: output.policies
|
|
28274
|
-
? deserializeAws_restJson1Policies(output.policies, context)
|
|
28275
|
-
: undefined,
|
|
27856
|
+
policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
|
|
28276
27857
|
};
|
|
28277
27858
|
};
|
|
28278
27859
|
var deserializeAws_restJson1ExponentialRolloutRate = function (output, context) {
|
|
28279
27860
|
return {
|
|
28280
27861
|
baseRatePerMinute: __expectInt32(output.baseRatePerMinute),
|
|
28281
27862
|
incrementFactor: __limitedParseDouble(output.incrementFactor),
|
|
28282
|
-
rateIncreaseCriteria: output.rateIncreaseCriteria
|
|
27863
|
+
rateIncreaseCriteria: output.rateIncreaseCriteria != null
|
|
28283
27864
|
? deserializeAws_restJson1RateIncreaseCriteria(output.rateIncreaseCriteria, context)
|
|
28284
27865
|
: undefined,
|
|
28285
27866
|
};
|
|
@@ -28303,12 +27884,8 @@ var deserializeAws_restJson1Fields = function (output, context) {
|
|
|
28303
27884
|
};
|
|
28304
27885
|
var deserializeAws_restJson1FileLocation = function (output, context) {
|
|
28305
27886
|
return {
|
|
28306
|
-
s3Location: output.s3Location
|
|
28307
|
-
|
|
28308
|
-
: undefined,
|
|
28309
|
-
stream: output.stream !== undefined && output.stream !== null
|
|
28310
|
-
? deserializeAws_restJson1_Stream(output.stream, context)
|
|
28311
|
-
: undefined,
|
|
27887
|
+
s3Location: output.s3Location != null ? deserializeAws_restJson1S3Location(output.s3Location, context) : undefined,
|
|
27888
|
+
stream: output.stream != null ? deserializeAws_restJson1_Stream(output.stream, context) : undefined,
|
|
28312
27889
|
};
|
|
28313
27890
|
};
|
|
28314
27891
|
var deserializeAws_restJson1FindingIds = function (output, context) {
|
|
@@ -28366,13 +27943,9 @@ var deserializeAws_restJson1HeaderList = function (output, context) {
|
|
|
28366
27943
|
};
|
|
28367
27944
|
var deserializeAws_restJson1HttpAction = function (output, context) {
|
|
28368
27945
|
return {
|
|
28369
|
-
auth: output.auth
|
|
28370
|
-
? deserializeAws_restJson1HttpAuthorization(output.auth, context)
|
|
28371
|
-
: undefined,
|
|
27946
|
+
auth: output.auth != null ? deserializeAws_restJson1HttpAuthorization(output.auth, context) : undefined,
|
|
28372
27947
|
confirmationUrl: __expectString(output.confirmationUrl),
|
|
28373
|
-
headers: output.headers
|
|
28374
|
-
? deserializeAws_restJson1HeaderList(output.headers, context)
|
|
28375
|
-
: undefined,
|
|
27948
|
+
headers: output.headers != null ? deserializeAws_restJson1HeaderList(output.headers, context) : undefined,
|
|
28376
27949
|
url: __expectString(output.url),
|
|
28377
27950
|
};
|
|
28378
27951
|
};
|
|
@@ -28384,9 +27957,7 @@ var deserializeAws_restJson1HttpActionHeader = function (output, context) {
|
|
|
28384
27957
|
};
|
|
28385
27958
|
var deserializeAws_restJson1HttpAuthorization = function (output, context) {
|
|
28386
27959
|
return {
|
|
28387
|
-
sigv4: output.sigv4
|
|
28388
|
-
? deserializeAws_restJson1SigV4Authorization(output.sigv4, context)
|
|
28389
|
-
: undefined,
|
|
27960
|
+
sigv4: output.sigv4 != null ? deserializeAws_restJson1SigV4Authorization(output.sigv4, context) : undefined,
|
|
28390
27961
|
};
|
|
28391
27962
|
};
|
|
28392
27963
|
var deserializeAws_restJson1HttpUrlDestinationProperties = function (output, context) {
|
|
@@ -28401,9 +27972,7 @@ var deserializeAws_restJson1HttpUrlDestinationSummary = function (output, contex
|
|
|
28401
27972
|
};
|
|
28402
27973
|
var deserializeAws_restJson1ImplicitDeny = function (output, context) {
|
|
28403
27974
|
return {
|
|
28404
|
-
policies: output.policies
|
|
28405
|
-
? deserializeAws_restJson1Policies(output.policies, context)
|
|
28406
|
-
: undefined,
|
|
27975
|
+
policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
|
|
28407
27976
|
};
|
|
28408
27977
|
};
|
|
28409
27978
|
var deserializeAws_restJson1IndexNamesList = function (output, context) {
|
|
@@ -28435,7 +28004,7 @@ var deserializeAws_restJson1IotEventsAction = function (output, context) {
|
|
|
28435
28004
|
};
|
|
28436
28005
|
var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
28437
28006
|
return {
|
|
28438
|
-
putAssetPropertyValueEntries: output.putAssetPropertyValueEntries
|
|
28007
|
+
putAssetPropertyValueEntries: output.putAssetPropertyValueEntries != null
|
|
28439
28008
|
? deserializeAws_restJson1PutAssetPropertyValueEntryList(output.putAssetPropertyValueEntries, context)
|
|
28440
28009
|
: undefined,
|
|
28441
28010
|
roleArn: __expectString(output.roleArn),
|
|
@@ -28443,50 +28012,42 @@ var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
|
28443
28012
|
};
|
|
28444
28013
|
var deserializeAws_restJson1Job = function (output, context) {
|
|
28445
28014
|
return {
|
|
28446
|
-
abortConfig: output.abortConfig
|
|
28447
|
-
? deserializeAws_restJson1AbortConfig(output.abortConfig, context)
|
|
28448
|
-
: undefined,
|
|
28015
|
+
abortConfig: output.abortConfig != null ? deserializeAws_restJson1AbortConfig(output.abortConfig, context) : undefined,
|
|
28449
28016
|
comment: __expectString(output.comment),
|
|
28450
|
-
completedAt: output.completedAt
|
|
28017
|
+
completedAt: output.completedAt != null
|
|
28451
28018
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completedAt)))
|
|
28452
28019
|
: undefined,
|
|
28453
|
-
createdAt: output.createdAt
|
|
28454
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
28455
|
-
: undefined,
|
|
28020
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
28456
28021
|
description: __expectString(output.description),
|
|
28457
|
-
documentParameters: output.documentParameters
|
|
28022
|
+
documentParameters: output.documentParameters != null
|
|
28458
28023
|
? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
|
|
28459
28024
|
: undefined,
|
|
28460
28025
|
forceCanceled: __expectBoolean(output.forceCanceled),
|
|
28461
28026
|
isConcurrent: __expectBoolean(output.isConcurrent),
|
|
28462
28027
|
jobArn: __expectString(output.jobArn),
|
|
28463
|
-
jobExecutionsRetryConfig: output.jobExecutionsRetryConfig
|
|
28028
|
+
jobExecutionsRetryConfig: output.jobExecutionsRetryConfig != null
|
|
28464
28029
|
? deserializeAws_restJson1JobExecutionsRetryConfig(output.jobExecutionsRetryConfig, context)
|
|
28465
28030
|
: undefined,
|
|
28466
|
-
jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig
|
|
28031
|
+
jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig != null
|
|
28467
28032
|
? deserializeAws_restJson1JobExecutionsRolloutConfig(output.jobExecutionsRolloutConfig, context)
|
|
28468
28033
|
: undefined,
|
|
28469
28034
|
jobId: __expectString(output.jobId),
|
|
28470
|
-
jobProcessDetails: output.jobProcessDetails
|
|
28035
|
+
jobProcessDetails: output.jobProcessDetails != null
|
|
28471
28036
|
? deserializeAws_restJson1JobProcessDetails(output.jobProcessDetails, context)
|
|
28472
28037
|
: undefined,
|
|
28473
28038
|
jobTemplateArn: __expectString(output.jobTemplateArn),
|
|
28474
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
28039
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
28475
28040
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
28476
28041
|
: undefined,
|
|
28477
28042
|
namespaceId: __expectString(output.namespaceId),
|
|
28478
|
-
presignedUrlConfig: output.presignedUrlConfig
|
|
28043
|
+
presignedUrlConfig: output.presignedUrlConfig != null
|
|
28479
28044
|
? deserializeAws_restJson1PresignedUrlConfig(output.presignedUrlConfig, context)
|
|
28480
28045
|
: undefined,
|
|
28481
28046
|
reasonCode: __expectString(output.reasonCode),
|
|
28482
28047
|
status: __expectString(output.status),
|
|
28483
28048
|
targetSelection: __expectString(output.targetSelection),
|
|
28484
|
-
targets: output.targets
|
|
28485
|
-
|
|
28486
|
-
: undefined,
|
|
28487
|
-
timeoutConfig: output.timeoutConfig !== undefined && output.timeoutConfig !== null
|
|
28488
|
-
? deserializeAws_restJson1TimeoutConfig(output.timeoutConfig, context)
|
|
28489
|
-
: undefined,
|
|
28049
|
+
targets: output.targets != null ? deserializeAws_restJson1JobTargets(output.targets, context) : undefined,
|
|
28050
|
+
timeoutConfig: output.timeoutConfig != null ? deserializeAws_restJson1TimeoutConfig(output.timeoutConfig, context) : undefined,
|
|
28490
28051
|
};
|
|
28491
28052
|
};
|
|
28492
28053
|
var deserializeAws_restJson1JobExecution = function (output, context) {
|
|
@@ -28495,17 +28056,13 @@ var deserializeAws_restJson1JobExecution = function (output, context) {
|
|
|
28495
28056
|
executionNumber: __expectLong(output.executionNumber),
|
|
28496
28057
|
forceCanceled: __expectBoolean(output.forceCanceled),
|
|
28497
28058
|
jobId: __expectString(output.jobId),
|
|
28498
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
28059
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
28499
28060
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
28500
28061
|
: undefined,
|
|
28501
|
-
queuedAt: output.queuedAt
|
|
28502
|
-
|
|
28503
|
-
: undefined,
|
|
28504
|
-
startedAt: output.startedAt !== undefined && output.startedAt !== null
|
|
28505
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt)))
|
|
28506
|
-
: undefined,
|
|
28062
|
+
queuedAt: output.queuedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.queuedAt))) : undefined,
|
|
28063
|
+
startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
|
|
28507
28064
|
status: __expectString(output.status),
|
|
28508
|
-
statusDetails: output.statusDetails
|
|
28065
|
+
statusDetails: output.statusDetails != null
|
|
28509
28066
|
? deserializeAws_restJson1JobExecutionStatusDetails(output.statusDetails, context)
|
|
28510
28067
|
: undefined,
|
|
28511
28068
|
thingArn: __expectString(output.thingArn),
|
|
@@ -28514,14 +28071,12 @@ var deserializeAws_restJson1JobExecution = function (output, context) {
|
|
|
28514
28071
|
};
|
|
28515
28072
|
var deserializeAws_restJson1JobExecutionsRetryConfig = function (output, context) {
|
|
28516
28073
|
return {
|
|
28517
|
-
criteriaList: output.criteriaList
|
|
28518
|
-
? deserializeAws_restJson1RetryCriteriaList(output.criteriaList, context)
|
|
28519
|
-
: undefined,
|
|
28074
|
+
criteriaList: output.criteriaList != null ? deserializeAws_restJson1RetryCriteriaList(output.criteriaList, context) : undefined,
|
|
28520
28075
|
};
|
|
28521
28076
|
};
|
|
28522
28077
|
var deserializeAws_restJson1JobExecutionsRolloutConfig = function (output, context) {
|
|
28523
28078
|
return {
|
|
28524
|
-
exponentialRate: output.exponentialRate
|
|
28079
|
+
exponentialRate: output.exponentialRate != null
|
|
28525
28080
|
? deserializeAws_restJson1ExponentialRolloutRate(output.exponentialRate, context)
|
|
28526
28081
|
: undefined,
|
|
28527
28082
|
maximumPerMinute: __expectInt32(output.maximumPerMinute),
|
|
@@ -28529,30 +28084,24 @@ var deserializeAws_restJson1JobExecutionsRolloutConfig = function (output, conte
|
|
|
28529
28084
|
};
|
|
28530
28085
|
var deserializeAws_restJson1JobExecutionStatusDetails = function (output, context) {
|
|
28531
28086
|
return {
|
|
28532
|
-
detailsMap: output.detailsMap
|
|
28533
|
-
? deserializeAws_restJson1DetailsMap(output.detailsMap, context)
|
|
28534
|
-
: undefined,
|
|
28087
|
+
detailsMap: output.detailsMap != null ? deserializeAws_restJson1DetailsMap(output.detailsMap, context) : undefined,
|
|
28535
28088
|
};
|
|
28536
28089
|
};
|
|
28537
28090
|
var deserializeAws_restJson1JobExecutionSummary = function (output, context) {
|
|
28538
28091
|
return {
|
|
28539
28092
|
executionNumber: __expectLong(output.executionNumber),
|
|
28540
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
28093
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
28541
28094
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
28542
28095
|
: undefined,
|
|
28543
|
-
queuedAt: output.queuedAt
|
|
28544
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.queuedAt)))
|
|
28545
|
-
: undefined,
|
|
28096
|
+
queuedAt: output.queuedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.queuedAt))) : undefined,
|
|
28546
28097
|
retryAttempt: __expectInt32(output.retryAttempt),
|
|
28547
|
-
startedAt: output.startedAt
|
|
28548
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt)))
|
|
28549
|
-
: undefined,
|
|
28098
|
+
startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
|
|
28550
28099
|
status: __expectString(output.status),
|
|
28551
28100
|
};
|
|
28552
28101
|
};
|
|
28553
28102
|
var deserializeAws_restJson1JobExecutionSummaryForJob = function (output, context) {
|
|
28554
28103
|
return {
|
|
28555
|
-
jobExecutionSummary: output.jobExecutionSummary
|
|
28104
|
+
jobExecutionSummary: output.jobExecutionSummary != null
|
|
28556
28105
|
? deserializeAws_restJson1JobExecutionSummary(output.jobExecutionSummary, context)
|
|
28557
28106
|
: undefined,
|
|
28558
28107
|
thingArn: __expectString(output.thingArn),
|
|
@@ -28571,7 +28120,7 @@ var deserializeAws_restJson1JobExecutionSummaryForJobList = function (output, co
|
|
|
28571
28120
|
};
|
|
28572
28121
|
var deserializeAws_restJson1JobExecutionSummaryForThing = function (output, context) {
|
|
28573
28122
|
return {
|
|
28574
|
-
jobExecutionSummary: output.jobExecutionSummary
|
|
28123
|
+
jobExecutionSummary: output.jobExecutionSummary != null
|
|
28575
28124
|
? deserializeAws_restJson1JobExecutionSummary(output.jobExecutionSummary, context)
|
|
28576
28125
|
: undefined,
|
|
28577
28126
|
jobId: __expectString(output.jobId),
|
|
@@ -28598,23 +28147,21 @@ var deserializeAws_restJson1JobProcessDetails = function (output, context) {
|
|
|
28598
28147
|
numberOfRemovedThings: __expectInt32(output.numberOfRemovedThings),
|
|
28599
28148
|
numberOfSucceededThings: __expectInt32(output.numberOfSucceededThings),
|
|
28600
28149
|
numberOfTimedOutThings: __expectInt32(output.numberOfTimedOutThings),
|
|
28601
|
-
processingTargets: output.processingTargets
|
|
28150
|
+
processingTargets: output.processingTargets != null
|
|
28602
28151
|
? deserializeAws_restJson1ProcessingTargetNameList(output.processingTargets, context)
|
|
28603
28152
|
: undefined,
|
|
28604
28153
|
};
|
|
28605
28154
|
};
|
|
28606
28155
|
var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
28607
28156
|
return {
|
|
28608
|
-
completedAt: output.completedAt
|
|
28157
|
+
completedAt: output.completedAt != null
|
|
28609
28158
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completedAt)))
|
|
28610
28159
|
: undefined,
|
|
28611
|
-
createdAt: output.createdAt
|
|
28612
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
28613
|
-
: undefined,
|
|
28160
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
28614
28161
|
isConcurrent: __expectBoolean(output.isConcurrent),
|
|
28615
28162
|
jobArn: __expectString(output.jobArn),
|
|
28616
28163
|
jobId: __expectString(output.jobId),
|
|
28617
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
28164
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
28618
28165
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
28619
28166
|
: undefined,
|
|
28620
28167
|
status: __expectString(output.status),
|
|
@@ -28646,9 +28193,7 @@ var deserializeAws_restJson1JobTargets = function (output, context) {
|
|
|
28646
28193
|
};
|
|
28647
28194
|
var deserializeAws_restJson1JobTemplateSummary = function (output, context) {
|
|
28648
28195
|
return {
|
|
28649
|
-
createdAt: output.createdAt
|
|
28650
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
28651
|
-
: undefined,
|
|
28196
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
28652
28197
|
description: __expectString(output.description),
|
|
28653
28198
|
jobTemplateArn: __expectString(output.jobTemplateArn),
|
|
28654
28199
|
jobTemplateId: __expectString(output.jobTemplateId),
|
|
@@ -28667,7 +28212,7 @@ var deserializeAws_restJson1JobTemplateSummaryList = function (output, context)
|
|
|
28667
28212
|
};
|
|
28668
28213
|
var deserializeAws_restJson1KafkaAction = function (output, context) {
|
|
28669
28214
|
return {
|
|
28670
|
-
clientProperties: output.clientProperties
|
|
28215
|
+
clientProperties: output.clientProperties != null
|
|
28671
28216
|
? deserializeAws_restJson1ClientProperties(output.clientProperties, context)
|
|
28672
28217
|
: undefined,
|
|
28673
28218
|
destinationArn: __expectString(output.destinationArn),
|
|
@@ -28703,9 +28248,7 @@ var deserializeAws_restJson1LogTarget = function (output, context) {
|
|
|
28703
28248
|
var deserializeAws_restJson1LogTargetConfiguration = function (output, context) {
|
|
28704
28249
|
return {
|
|
28705
28250
|
logLevel: __expectString(output.logLevel),
|
|
28706
|
-
logTarget: output.logTarget
|
|
28707
|
-
? deserializeAws_restJson1LogTarget(output.logTarget, context)
|
|
28708
|
-
: undefined,
|
|
28251
|
+
logTarget: output.logTarget != null ? deserializeAws_restJson1LogTarget(output.logTarget, context) : undefined,
|
|
28709
28252
|
};
|
|
28710
28253
|
};
|
|
28711
28254
|
var deserializeAws_restJson1LogTargetConfigurations = function (output, context) {
|
|
@@ -28738,9 +28281,7 @@ var deserializeAws_restJson1ManagedJobTemplatesSummaryList = function (output, c
|
|
|
28738
28281
|
var deserializeAws_restJson1ManagedJobTemplateSummary = function (output, context) {
|
|
28739
28282
|
return {
|
|
28740
28283
|
description: __expectString(output.description),
|
|
28741
|
-
environments: output.environments
|
|
28742
|
-
? deserializeAws_restJson1Environments(output.environments, context)
|
|
28743
|
-
: undefined,
|
|
28284
|
+
environments: output.environments != null ? deserializeAws_restJson1Environments(output.environments, context) : undefined,
|
|
28744
28285
|
templateArn: __expectString(output.templateArn),
|
|
28745
28286
|
templateName: __expectString(output.templateName),
|
|
28746
28287
|
templateVersion: __expectString(output.templateVersion),
|
|
@@ -28748,12 +28289,8 @@ var deserializeAws_restJson1ManagedJobTemplateSummary = function (output, contex
|
|
|
28748
28289
|
};
|
|
28749
28290
|
var deserializeAws_restJson1MetricDatum = function (output, context) {
|
|
28750
28291
|
return {
|
|
28751
|
-
timestamp: output.timestamp
|
|
28752
|
-
|
|
28753
|
-
: undefined,
|
|
28754
|
-
value: output.value !== undefined && output.value !== null
|
|
28755
|
-
? deserializeAws_restJson1MetricValue(output.value, context)
|
|
28756
|
-
: undefined,
|
|
28292
|
+
timestamp: output.timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp))) : undefined,
|
|
28293
|
+
value: output.value != null ? deserializeAws_restJson1MetricValue(output.value, context) : undefined,
|
|
28757
28294
|
};
|
|
28758
28295
|
};
|
|
28759
28296
|
var deserializeAws_restJson1MetricDatumList = function (output, context) {
|
|
@@ -28787,27 +28324,19 @@ var deserializeAws_restJson1MetricNames = function (output, context) {
|
|
|
28787
28324
|
var deserializeAws_restJson1MetricToRetain = function (output, context) {
|
|
28788
28325
|
return {
|
|
28789
28326
|
metric: __expectString(output.metric),
|
|
28790
|
-
metricDimension: output.metricDimension
|
|
28327
|
+
metricDimension: output.metricDimension != null
|
|
28791
28328
|
? deserializeAws_restJson1MetricDimension(output.metricDimension, context)
|
|
28792
28329
|
: undefined,
|
|
28793
28330
|
};
|
|
28794
28331
|
};
|
|
28795
28332
|
var deserializeAws_restJson1MetricValue = function (output, context) {
|
|
28796
28333
|
return {
|
|
28797
|
-
cidrs: output.cidrs
|
|
28798
|
-
? deserializeAws_restJson1Cidrs(output.cidrs, context)
|
|
28799
|
-
: undefined,
|
|
28334
|
+
cidrs: output.cidrs != null ? deserializeAws_restJson1Cidrs(output.cidrs, context) : undefined,
|
|
28800
28335
|
count: __expectLong(output.count),
|
|
28801
28336
|
number: __limitedParseDouble(output.number),
|
|
28802
|
-
numbers: output.numbers
|
|
28803
|
-
|
|
28804
|
-
|
|
28805
|
-
ports: output.ports !== undefined && output.ports !== null
|
|
28806
|
-
? deserializeAws_restJson1Ports(output.ports, context)
|
|
28807
|
-
: undefined,
|
|
28808
|
-
strings: output.strings !== undefined && output.strings !== null
|
|
28809
|
-
? deserializeAws_restJson1StringList(output.strings, context)
|
|
28810
|
-
: undefined,
|
|
28337
|
+
numbers: output.numbers != null ? deserializeAws_restJson1NumberList(output.numbers, context) : undefined,
|
|
28338
|
+
ports: output.ports != null ? deserializeAws_restJson1Ports(output.ports, context) : undefined,
|
|
28339
|
+
strings: output.strings != null ? deserializeAws_restJson1StringList(output.strings, context) : undefined,
|
|
28811
28340
|
};
|
|
28812
28341
|
};
|
|
28813
28342
|
var deserializeAws_restJson1MissingContextValues = function (output, context) {
|
|
@@ -28823,7 +28352,7 @@ var deserializeAws_restJson1MissingContextValues = function (output, context) {
|
|
|
28823
28352
|
};
|
|
28824
28353
|
var deserializeAws_restJson1MitigationAction = function (output, context) {
|
|
28825
28354
|
return {
|
|
28826
|
-
actionParams: output.actionParams
|
|
28355
|
+
actionParams: output.actionParams != null
|
|
28827
28356
|
? deserializeAws_restJson1MitigationActionParams(output.actionParams, context)
|
|
28828
28357
|
: undefined,
|
|
28829
28358
|
id: __expectString(output.id),
|
|
@@ -28835,7 +28364,7 @@ var deserializeAws_restJson1MitigationActionIdentifier = function (output, conte
|
|
|
28835
28364
|
return {
|
|
28836
28365
|
actionArn: __expectString(output.actionArn),
|
|
28837
28366
|
actionName: __expectString(output.actionName),
|
|
28838
|
-
creationDate: output.creationDate
|
|
28367
|
+
creationDate: output.creationDate != null
|
|
28839
28368
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
28840
28369
|
: undefined,
|
|
28841
28370
|
};
|
|
@@ -28875,32 +28404,30 @@ var deserializeAws_restJson1MitigationActionNameList = function (output, context
|
|
|
28875
28404
|
};
|
|
28876
28405
|
var deserializeAws_restJson1MitigationActionParams = function (output, context) {
|
|
28877
28406
|
return {
|
|
28878
|
-
addThingsToThingGroupParams: output.addThingsToThingGroupParams
|
|
28407
|
+
addThingsToThingGroupParams: output.addThingsToThingGroupParams != null
|
|
28879
28408
|
? deserializeAws_restJson1AddThingsToThingGroupParams(output.addThingsToThingGroupParams, context)
|
|
28880
28409
|
: undefined,
|
|
28881
|
-
enableIoTLoggingParams: output.enableIoTLoggingParams
|
|
28410
|
+
enableIoTLoggingParams: output.enableIoTLoggingParams != null
|
|
28882
28411
|
? deserializeAws_restJson1EnableIoTLoggingParams(output.enableIoTLoggingParams, context)
|
|
28883
28412
|
: undefined,
|
|
28884
|
-
publishFindingToSnsParams: output.publishFindingToSnsParams
|
|
28413
|
+
publishFindingToSnsParams: output.publishFindingToSnsParams != null
|
|
28885
28414
|
? deserializeAws_restJson1PublishFindingToSnsParams(output.publishFindingToSnsParams, context)
|
|
28886
28415
|
: undefined,
|
|
28887
|
-
replaceDefaultPolicyVersionParams: output.replaceDefaultPolicyVersionParams
|
|
28416
|
+
replaceDefaultPolicyVersionParams: output.replaceDefaultPolicyVersionParams != null
|
|
28888
28417
|
? deserializeAws_restJson1ReplaceDefaultPolicyVersionParams(output.replaceDefaultPolicyVersionParams, context)
|
|
28889
28418
|
: undefined,
|
|
28890
|
-
updateCACertificateParams: output.updateCACertificateParams
|
|
28419
|
+
updateCACertificateParams: output.updateCACertificateParams != null
|
|
28891
28420
|
? deserializeAws_restJson1UpdateCACertificateParams(output.updateCACertificateParams, context)
|
|
28892
28421
|
: undefined,
|
|
28893
|
-
updateDeviceCertificateParams: output.updateDeviceCertificateParams
|
|
28422
|
+
updateDeviceCertificateParams: output.updateDeviceCertificateParams != null
|
|
28894
28423
|
? deserializeAws_restJson1UpdateDeviceCertificateParams(output.updateDeviceCertificateParams, context)
|
|
28895
28424
|
: undefined,
|
|
28896
28425
|
};
|
|
28897
28426
|
};
|
|
28898
28427
|
var deserializeAws_restJson1NonCompliantResource = function (output, context) {
|
|
28899
28428
|
return {
|
|
28900
|
-
additionalInfo: output.additionalInfo
|
|
28901
|
-
|
|
28902
|
-
: undefined,
|
|
28903
|
-
resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
|
|
28429
|
+
additionalInfo: output.additionalInfo != null ? deserializeAws_restJson1StringMap(output.additionalInfo, context) : undefined,
|
|
28430
|
+
resourceIdentifier: output.resourceIdentifier != null
|
|
28904
28431
|
? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
|
|
28905
28432
|
: undefined,
|
|
28906
28433
|
resourceType: __expectString(output.resourceType),
|
|
@@ -28928,15 +28455,9 @@ var deserializeAws_restJson1OpenSearchAction = function (output, context) {
|
|
|
28928
28455
|
};
|
|
28929
28456
|
var deserializeAws_restJson1OTAUpdateFile = function (output, context) {
|
|
28930
28457
|
return {
|
|
28931
|
-
attributes: output.attributes
|
|
28932
|
-
|
|
28933
|
-
|
|
28934
|
-
codeSigning: output.codeSigning !== undefined && output.codeSigning !== null
|
|
28935
|
-
? deserializeAws_restJson1CodeSigning(output.codeSigning, context)
|
|
28936
|
-
: undefined,
|
|
28937
|
-
fileLocation: output.fileLocation !== undefined && output.fileLocation !== null
|
|
28938
|
-
? deserializeAws_restJson1FileLocation(output.fileLocation, context)
|
|
28939
|
-
: undefined,
|
|
28458
|
+
attributes: output.attributes != null ? deserializeAws_restJson1AttributesMap(output.attributes, context) : undefined,
|
|
28459
|
+
codeSigning: output.codeSigning != null ? deserializeAws_restJson1CodeSigning(output.codeSigning, context) : undefined,
|
|
28460
|
+
fileLocation: output.fileLocation != null ? deserializeAws_restJson1FileLocation(output.fileLocation, context) : undefined,
|
|
28940
28461
|
fileName: __expectString(output.fileName),
|
|
28941
28462
|
fileType: __expectInt32(output.fileType),
|
|
28942
28463
|
fileVersion: __expectString(output.fileVersion),
|
|
@@ -28955,40 +28476,34 @@ var deserializeAws_restJson1OTAUpdateFiles = function (output, context) {
|
|
|
28955
28476
|
};
|
|
28956
28477
|
var deserializeAws_restJson1OTAUpdateInfo = function (output, context) {
|
|
28957
28478
|
return {
|
|
28958
|
-
additionalParameters: output.additionalParameters
|
|
28479
|
+
additionalParameters: output.additionalParameters != null
|
|
28959
28480
|
? deserializeAws_restJson1AdditionalParameterMap(output.additionalParameters, context)
|
|
28960
28481
|
: undefined,
|
|
28961
28482
|
awsIotJobArn: __expectString(output.awsIotJobArn),
|
|
28962
28483
|
awsIotJobId: __expectString(output.awsIotJobId),
|
|
28963
|
-
awsJobExecutionsRolloutConfig: output.awsJobExecutionsRolloutConfig
|
|
28484
|
+
awsJobExecutionsRolloutConfig: output.awsJobExecutionsRolloutConfig != null
|
|
28964
28485
|
? deserializeAws_restJson1AwsJobExecutionsRolloutConfig(output.awsJobExecutionsRolloutConfig, context)
|
|
28965
28486
|
: undefined,
|
|
28966
|
-
awsJobPresignedUrlConfig: output.awsJobPresignedUrlConfig
|
|
28487
|
+
awsJobPresignedUrlConfig: output.awsJobPresignedUrlConfig != null
|
|
28967
28488
|
? deserializeAws_restJson1AwsJobPresignedUrlConfig(output.awsJobPresignedUrlConfig, context)
|
|
28968
28489
|
: undefined,
|
|
28969
|
-
creationDate: output.creationDate
|
|
28490
|
+
creationDate: output.creationDate != null
|
|
28970
28491
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
28971
28492
|
: undefined,
|
|
28972
28493
|
description: __expectString(output.description),
|
|
28973
|
-
errorInfo: output.errorInfo
|
|
28974
|
-
|
|
28975
|
-
: undefined,
|
|
28976
|
-
lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
|
|
28494
|
+
errorInfo: output.errorInfo != null ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context) : undefined,
|
|
28495
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
28977
28496
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
28978
28497
|
: undefined,
|
|
28979
28498
|
otaUpdateArn: __expectString(output.otaUpdateArn),
|
|
28980
|
-
otaUpdateFiles: output.otaUpdateFiles
|
|
28499
|
+
otaUpdateFiles: output.otaUpdateFiles != null
|
|
28981
28500
|
? deserializeAws_restJson1OTAUpdateFiles(output.otaUpdateFiles, context)
|
|
28982
28501
|
: undefined,
|
|
28983
28502
|
otaUpdateId: __expectString(output.otaUpdateId),
|
|
28984
28503
|
otaUpdateStatus: __expectString(output.otaUpdateStatus),
|
|
28985
|
-
protocols: output.protocols
|
|
28986
|
-
? deserializeAws_restJson1Protocols(output.protocols, context)
|
|
28987
|
-
: undefined,
|
|
28504
|
+
protocols: output.protocols != null ? deserializeAws_restJson1Protocols(output.protocols, context) : undefined,
|
|
28988
28505
|
targetSelection: __expectString(output.targetSelection),
|
|
28989
|
-
targets: output.targets
|
|
28990
|
-
? deserializeAws_restJson1Targets(output.targets, context)
|
|
28991
|
-
: undefined,
|
|
28506
|
+
targets: output.targets != null ? deserializeAws_restJson1Targets(output.targets, context) : undefined,
|
|
28992
28507
|
};
|
|
28993
28508
|
};
|
|
28994
28509
|
var deserializeAws_restJson1OTAUpdatesSummary = function (output, context) {
|
|
@@ -29004,7 +28519,7 @@ var deserializeAws_restJson1OTAUpdatesSummary = function (output, context) {
|
|
|
29004
28519
|
};
|
|
29005
28520
|
var deserializeAws_restJson1OTAUpdateSummary = function (output, context) {
|
|
29006
28521
|
return {
|
|
29007
|
-
creationDate: output.creationDate
|
|
28522
|
+
creationDate: output.creationDate != null
|
|
29008
28523
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29009
28524
|
: undefined,
|
|
29010
28525
|
otaUpdateArn: __expectString(output.otaUpdateArn),
|
|
@@ -29015,10 +28530,10 @@ var deserializeAws_restJson1OutgoingCertificate = function (output, context) {
|
|
|
29015
28530
|
return {
|
|
29016
28531
|
certificateArn: __expectString(output.certificateArn),
|
|
29017
28532
|
certificateId: __expectString(output.certificateId),
|
|
29018
|
-
creationDate: output.creationDate
|
|
28533
|
+
creationDate: output.creationDate != null
|
|
29019
28534
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29020
28535
|
: undefined,
|
|
29021
|
-
transferDate: output.transferDate
|
|
28536
|
+
transferDate: output.transferDate != null
|
|
29022
28537
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.transferDate)))
|
|
29023
28538
|
: undefined,
|
|
29024
28539
|
transferMessage: __expectString(output.transferMessage),
|
|
@@ -29104,9 +28619,7 @@ var deserializeAws_restJson1PolicyTargets = function (output, context) {
|
|
|
29104
28619
|
};
|
|
29105
28620
|
var deserializeAws_restJson1PolicyVersion = function (output, context) {
|
|
29106
28621
|
return {
|
|
29107
|
-
createDate: output.createDate
|
|
29108
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createDate)))
|
|
29109
|
-
: undefined,
|
|
28622
|
+
createDate: output.createDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createDate))) : undefined,
|
|
29110
28623
|
isDefaultVersion: __expectBoolean(output.isDefaultVersion),
|
|
29111
28624
|
versionId: __expectString(output.versionId),
|
|
29112
28625
|
};
|
|
@@ -29197,12 +28710,12 @@ var deserializeAws_restJson1ProvisioningTemplateListing = function (output, cont
|
|
|
29197
28710
|
};
|
|
29198
28711
|
var deserializeAws_restJson1ProvisioningTemplateSummary = function (output, context) {
|
|
29199
28712
|
return {
|
|
29200
|
-
creationDate: output.creationDate
|
|
28713
|
+
creationDate: output.creationDate != null
|
|
29201
28714
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29202
28715
|
: undefined,
|
|
29203
28716
|
description: __expectString(output.description),
|
|
29204
28717
|
enabled: __expectBoolean(output.enabled),
|
|
29205
|
-
lastModifiedDate: output.lastModifiedDate
|
|
28718
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
29206
28719
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
29207
28720
|
: undefined,
|
|
29208
28721
|
templateArn: __expectString(output.templateArn),
|
|
@@ -29222,7 +28735,7 @@ var deserializeAws_restJson1ProvisioningTemplateVersionListing = function (outpu
|
|
|
29222
28735
|
};
|
|
29223
28736
|
var deserializeAws_restJson1ProvisioningTemplateVersionSummary = function (output, context) {
|
|
29224
28737
|
return {
|
|
29225
|
-
creationDate: output.creationDate
|
|
28738
|
+
creationDate: output.creationDate != null
|
|
29226
28739
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29227
28740
|
: undefined,
|
|
29228
28741
|
isDefaultVersion: __expectBoolean(output.isDefaultVersion),
|
|
@@ -29250,7 +28763,7 @@ var deserializeAws_restJson1PutAssetPropertyValueEntry = function (output, conte
|
|
|
29250
28763
|
entryId: __expectString(output.entryId),
|
|
29251
28764
|
propertyAlias: __expectString(output.propertyAlias),
|
|
29252
28765
|
propertyId: __expectString(output.propertyId),
|
|
29253
|
-
propertyValues: output.propertyValues
|
|
28766
|
+
propertyValues: output.propertyValues != null
|
|
29254
28767
|
? deserializeAws_restJson1AssetPropertyValueList(output.propertyValues, context)
|
|
29255
28768
|
: undefined,
|
|
29256
28769
|
};
|
|
@@ -29296,10 +28809,8 @@ var deserializeAws_restJson1RegistrationConfig = function (output, context) {
|
|
|
29296
28809
|
};
|
|
29297
28810
|
var deserializeAws_restJson1RelatedResource = function (output, context) {
|
|
29298
28811
|
return {
|
|
29299
|
-
additionalInfo: output.additionalInfo
|
|
29300
|
-
|
|
29301
|
-
: undefined,
|
|
29302
|
-
resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
|
|
28812
|
+
additionalInfo: output.additionalInfo != null ? deserializeAws_restJson1StringMap(output.additionalInfo, context) : undefined,
|
|
28813
|
+
resourceIdentifier: output.resourceIdentifier != null
|
|
29303
28814
|
? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
|
|
29304
28815
|
: undefined,
|
|
29305
28816
|
resourceType: __expectString(output.resourceType),
|
|
@@ -29346,7 +28857,7 @@ var deserializeAws_restJson1ResourceIdentifier = function (output, context) {
|
|
|
29346
28857
|
cognitoIdentityPoolId: __expectString(output.cognitoIdentityPoolId),
|
|
29347
28858
|
deviceCertificateId: __expectString(output.deviceCertificateId),
|
|
29348
28859
|
iamRoleArn: __expectString(output.iamRoleArn),
|
|
29349
|
-
policyVersionIdentifier: output.policyVersionIdentifier
|
|
28860
|
+
policyVersionIdentifier: output.policyVersionIdentifier != null
|
|
29350
28861
|
? deserializeAws_restJson1PolicyVersionIdentifier(output.policyVersionIdentifier, context)
|
|
29351
28862
|
: undefined,
|
|
29352
28863
|
roleAliasArn: __expectString(output.roleAliasArn),
|
|
@@ -29382,11 +28893,11 @@ var deserializeAws_restJson1RetryCriteriaList = function (output, context) {
|
|
|
29382
28893
|
};
|
|
29383
28894
|
var deserializeAws_restJson1RoleAliasDescription = function (output, context) {
|
|
29384
28895
|
return {
|
|
29385
|
-
creationDate: output.creationDate
|
|
28896
|
+
creationDate: output.creationDate != null
|
|
29386
28897
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29387
28898
|
: undefined,
|
|
29388
28899
|
credentialDurationSeconds: __expectInt32(output.credentialDurationSeconds),
|
|
29389
|
-
lastModifiedDate: output.lastModifiedDate
|
|
28900
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
29390
28901
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
29391
28902
|
: undefined,
|
|
29392
28903
|
owner: __expectString(output.owner),
|
|
@@ -29510,12 +29021,10 @@ var deserializeAws_restJson1SecurityProfileTarget = function (output, context) {
|
|
|
29510
29021
|
};
|
|
29511
29022
|
var deserializeAws_restJson1SecurityProfileTargetMapping = function (output, context) {
|
|
29512
29023
|
return {
|
|
29513
|
-
securityProfileIdentifier: output.securityProfileIdentifier
|
|
29024
|
+
securityProfileIdentifier: output.securityProfileIdentifier != null
|
|
29514
29025
|
? deserializeAws_restJson1SecurityProfileIdentifier(output.securityProfileIdentifier, context)
|
|
29515
29026
|
: undefined,
|
|
29516
|
-
target: output.target
|
|
29517
|
-
? deserializeAws_restJson1SecurityProfileTarget(output.target, context)
|
|
29518
|
-
: undefined,
|
|
29027
|
+
target: output.target != null ? deserializeAws_restJson1SecurityProfileTarget(output.target, context) : undefined,
|
|
29519
29028
|
};
|
|
29520
29029
|
};
|
|
29521
29030
|
var deserializeAws_restJson1SecurityProfileTargetMappings = function (output, context) {
|
|
@@ -29588,11 +29097,9 @@ var deserializeAws_restJson1SqsAction = function (output, context) {
|
|
|
29588
29097
|
};
|
|
29589
29098
|
var deserializeAws_restJson1StartSigningJobParameter = function (output, context) {
|
|
29590
29099
|
return {
|
|
29591
|
-
destination: output.destination
|
|
29592
|
-
? deserializeAws_restJson1Destination(output.destination, context)
|
|
29593
|
-
: undefined,
|
|
29100
|
+
destination: output.destination != null ? deserializeAws_restJson1Destination(output.destination, context) : undefined,
|
|
29594
29101
|
signingProfileName: __expectString(output.signingProfileName),
|
|
29595
|
-
signingProfileParameter: output.signingProfileParameter
|
|
29102
|
+
signingProfileParameter: output.signingProfileParameter != null
|
|
29596
29103
|
? deserializeAws_restJson1SigningProfileParameter(output.signingProfileParameter, context)
|
|
29597
29104
|
: undefined,
|
|
29598
29105
|
};
|
|
@@ -29630,9 +29137,7 @@ var deserializeAws_restJson1_Stream = function (output, context) {
|
|
|
29630
29137
|
var deserializeAws_restJson1StreamFile = function (output, context) {
|
|
29631
29138
|
return {
|
|
29632
29139
|
fileId: __expectInt32(output.fileId),
|
|
29633
|
-
s3Location: output.s3Location
|
|
29634
|
-
? deserializeAws_restJson1S3Location(output.s3Location, context)
|
|
29635
|
-
: undefined,
|
|
29140
|
+
s3Location: output.s3Location != null ? deserializeAws_restJson1S3Location(output.s3Location, context) : undefined,
|
|
29636
29141
|
};
|
|
29637
29142
|
};
|
|
29638
29143
|
var deserializeAws_restJson1StreamFiles = function (output, context) {
|
|
@@ -29648,14 +29153,10 @@ var deserializeAws_restJson1StreamFiles = function (output, context) {
|
|
|
29648
29153
|
};
|
|
29649
29154
|
var deserializeAws_restJson1StreamInfo = function (output, context) {
|
|
29650
29155
|
return {
|
|
29651
|
-
createdAt: output.createdAt
|
|
29652
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
29653
|
-
: undefined,
|
|
29156
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
29654
29157
|
description: __expectString(output.description),
|
|
29655
|
-
files: output.files
|
|
29656
|
-
|
|
29657
|
-
: undefined,
|
|
29658
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
29158
|
+
files: output.files != null ? deserializeAws_restJson1StreamFiles(output.files, context) : undefined,
|
|
29159
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
29659
29160
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
29660
29161
|
: undefined,
|
|
29661
29162
|
roleArn: __expectString(output.roleArn),
|
|
@@ -29798,9 +29299,7 @@ var deserializeAws_restJson1TaskStatisticsForAuditCheck = function (output, cont
|
|
|
29798
29299
|
};
|
|
29799
29300
|
var deserializeAws_restJson1ThingAttribute = function (output, context) {
|
|
29800
29301
|
return {
|
|
29801
|
-
attributes: output.attributes
|
|
29802
|
-
? deserializeAws_restJson1Attributes(output.attributes, context)
|
|
29803
|
-
: undefined,
|
|
29302
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
29804
29303
|
thingArn: __expectString(output.thingArn),
|
|
29805
29304
|
thingName: __expectString(output.thingName),
|
|
29806
29305
|
thingTypeName: __expectString(output.thingTypeName),
|
|
@@ -29827,15 +29326,11 @@ var deserializeAws_restJson1ThingConnectivity = function (output, context) {
|
|
|
29827
29326
|
};
|
|
29828
29327
|
var deserializeAws_restJson1ThingDocument = function (output, context) {
|
|
29829
29328
|
return {
|
|
29830
|
-
attributes: output.attributes
|
|
29831
|
-
|
|
29832
|
-
: undefined,
|
|
29833
|
-
connectivity: output.connectivity !== undefined && output.connectivity !== null
|
|
29834
|
-
? deserializeAws_restJson1ThingConnectivity(output.connectivity, context)
|
|
29835
|
-
: undefined,
|
|
29329
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
29330
|
+
connectivity: output.connectivity != null ? deserializeAws_restJson1ThingConnectivity(output.connectivity, context) : undefined,
|
|
29836
29331
|
deviceDefender: __expectString(output.deviceDefender),
|
|
29837
29332
|
shadow: __expectString(output.shadow),
|
|
29838
|
-
thingGroupNames: output.thingGroupNames
|
|
29333
|
+
thingGroupNames: output.thingGroupNames != null
|
|
29839
29334
|
? deserializeAws_restJson1ThingGroupNameList(output.thingGroupNames, context)
|
|
29840
29335
|
: undefined,
|
|
29841
29336
|
thingId: __expectString(output.thingId),
|
|
@@ -29856,10 +29351,8 @@ var deserializeAws_restJson1ThingDocumentList = function (output, context) {
|
|
|
29856
29351
|
};
|
|
29857
29352
|
var deserializeAws_restJson1ThingGroupDocument = function (output, context) {
|
|
29858
29353
|
return {
|
|
29859
|
-
attributes: output.attributes
|
|
29860
|
-
|
|
29861
|
-
: undefined,
|
|
29862
|
-
parentGroupNames: output.parentGroupNames !== undefined && output.parentGroupNames !== null
|
|
29354
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
29355
|
+
parentGroupNames: output.parentGroupNames != null
|
|
29863
29356
|
? deserializeAws_restJson1ThingGroupNameList(output.parentGroupNames, context)
|
|
29864
29357
|
: undefined,
|
|
29865
29358
|
thingGroupDescription: __expectString(output.thingGroupDescription),
|
|
@@ -29880,22 +29373,18 @@ var deserializeAws_restJson1ThingGroupDocumentList = function (output, context)
|
|
|
29880
29373
|
};
|
|
29881
29374
|
var deserializeAws_restJson1ThingGroupIndexingConfiguration = function (output, context) {
|
|
29882
29375
|
return {
|
|
29883
|
-
customFields: output.customFields
|
|
29884
|
-
|
|
29885
|
-
: undefined,
|
|
29886
|
-
managedFields: output.managedFields !== undefined && output.managedFields !== null
|
|
29887
|
-
? deserializeAws_restJson1Fields(output.managedFields, context)
|
|
29888
|
-
: undefined,
|
|
29376
|
+
customFields: output.customFields != null ? deserializeAws_restJson1Fields(output.customFields, context) : undefined,
|
|
29377
|
+
managedFields: output.managedFields != null ? deserializeAws_restJson1Fields(output.managedFields, context) : undefined,
|
|
29889
29378
|
thingGroupIndexingMode: __expectString(output.thingGroupIndexingMode),
|
|
29890
29379
|
};
|
|
29891
29380
|
};
|
|
29892
29381
|
var deserializeAws_restJson1ThingGroupMetadata = function (output, context) {
|
|
29893
29382
|
return {
|
|
29894
|
-
creationDate: output.creationDate
|
|
29383
|
+
creationDate: output.creationDate != null
|
|
29895
29384
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29896
29385
|
: undefined,
|
|
29897
29386
|
parentGroupName: __expectString(output.parentGroupName),
|
|
29898
|
-
rootToParentThingGroups: output.rootToParentThingGroups
|
|
29387
|
+
rootToParentThingGroups: output.rootToParentThingGroups != null
|
|
29899
29388
|
? deserializeAws_restJson1ThingGroupNameAndArnList(output.rootToParentThingGroups, context)
|
|
29900
29389
|
: undefined,
|
|
29901
29390
|
};
|
|
@@ -29935,7 +29424,7 @@ var deserializeAws_restJson1ThingGroupNames = function (output, context) {
|
|
|
29935
29424
|
};
|
|
29936
29425
|
var deserializeAws_restJson1ThingGroupProperties = function (output, context) {
|
|
29937
29426
|
return {
|
|
29938
|
-
attributePayload: output.attributePayload
|
|
29427
|
+
attributePayload: output.attributePayload != null
|
|
29939
29428
|
? deserializeAws_restJson1AttributePayload(output.attributePayload, context)
|
|
29940
29429
|
: undefined,
|
|
29941
29430
|
thingGroupDescription: __expectString(output.thingGroupDescription),
|
|
@@ -29943,13 +29432,9 @@ var deserializeAws_restJson1ThingGroupProperties = function (output, context) {
|
|
|
29943
29432
|
};
|
|
29944
29433
|
var deserializeAws_restJson1ThingIndexingConfiguration = function (output, context) {
|
|
29945
29434
|
return {
|
|
29946
|
-
customFields: output.customFields
|
|
29947
|
-
? deserializeAws_restJson1Fields(output.customFields, context)
|
|
29948
|
-
: undefined,
|
|
29435
|
+
customFields: output.customFields != null ? deserializeAws_restJson1Fields(output.customFields, context) : undefined,
|
|
29949
29436
|
deviceDefenderIndexingMode: __expectString(output.deviceDefenderIndexingMode),
|
|
29950
|
-
managedFields: output.managedFields
|
|
29951
|
-
? deserializeAws_restJson1Fields(output.managedFields, context)
|
|
29952
|
-
: undefined,
|
|
29437
|
+
managedFields: output.managedFields != null ? deserializeAws_restJson1Fields(output.managedFields, context) : undefined,
|
|
29953
29438
|
namedShadowIndexingMode: __expectString(output.namedShadowIndexingMode),
|
|
29954
29439
|
thingConnectivityIndexingMode: __expectString(output.thingConnectivityIndexingMode),
|
|
29955
29440
|
thingIndexingMode: __expectString(output.thingIndexingMode),
|
|
@@ -29969,11 +29454,11 @@ var deserializeAws_restJson1ThingNameList = function (output, context) {
|
|
|
29969
29454
|
var deserializeAws_restJson1ThingTypeDefinition = function (output, context) {
|
|
29970
29455
|
return {
|
|
29971
29456
|
thingTypeArn: __expectString(output.thingTypeArn),
|
|
29972
|
-
thingTypeMetadata: output.thingTypeMetadata
|
|
29457
|
+
thingTypeMetadata: output.thingTypeMetadata != null
|
|
29973
29458
|
? deserializeAws_restJson1ThingTypeMetadata(output.thingTypeMetadata, context)
|
|
29974
29459
|
: undefined,
|
|
29975
29460
|
thingTypeName: __expectString(output.thingTypeName),
|
|
29976
|
-
thingTypeProperties: output.thingTypeProperties
|
|
29461
|
+
thingTypeProperties: output.thingTypeProperties != null
|
|
29977
29462
|
? deserializeAws_restJson1ThingTypeProperties(output.thingTypeProperties, context)
|
|
29978
29463
|
: undefined,
|
|
29979
29464
|
};
|
|
@@ -29991,18 +29476,18 @@ var deserializeAws_restJson1ThingTypeList = function (output, context) {
|
|
|
29991
29476
|
};
|
|
29992
29477
|
var deserializeAws_restJson1ThingTypeMetadata = function (output, context) {
|
|
29993
29478
|
return {
|
|
29994
|
-
creationDate: output.creationDate
|
|
29479
|
+
creationDate: output.creationDate != null
|
|
29995
29480
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29996
29481
|
: undefined,
|
|
29997
29482
|
deprecated: __expectBoolean(output.deprecated),
|
|
29998
|
-
deprecationDate: output.deprecationDate
|
|
29483
|
+
deprecationDate: output.deprecationDate != null
|
|
29999
29484
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.deprecationDate)))
|
|
30000
29485
|
: undefined,
|
|
30001
29486
|
};
|
|
30002
29487
|
};
|
|
30003
29488
|
var deserializeAws_restJson1ThingTypeProperties = function (output, context) {
|
|
30004
29489
|
return {
|
|
30005
|
-
searchableAttributes: output.searchableAttributes
|
|
29490
|
+
searchableAttributes: output.searchableAttributes != null
|
|
30006
29491
|
? deserializeAws_restJson1SearchableAttributes(output.searchableAttributes, context)
|
|
30007
29492
|
: undefined,
|
|
30008
29493
|
thingTypeDescription: __expectString(output.thingTypeDescription),
|
|
@@ -30016,14 +29501,12 @@ var deserializeAws_restJson1TimeoutConfig = function (output, context) {
|
|
|
30016
29501
|
var deserializeAws_restJson1TimestreamAction = function (output, context) {
|
|
30017
29502
|
return {
|
|
30018
29503
|
databaseName: __expectString(output.databaseName),
|
|
30019
|
-
dimensions: output.dimensions
|
|
29504
|
+
dimensions: output.dimensions != null
|
|
30020
29505
|
? deserializeAws_restJson1TimestreamDimensionList(output.dimensions, context)
|
|
30021
29506
|
: undefined,
|
|
30022
29507
|
roleArn: __expectString(output.roleArn),
|
|
30023
29508
|
tableName: __expectString(output.tableName),
|
|
30024
|
-
timestamp: output.timestamp
|
|
30025
|
-
? deserializeAws_restJson1TimestreamTimestamp(output.timestamp, context)
|
|
30026
|
-
: undefined,
|
|
29509
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1TimestreamTimestamp(output.timestamp, context) : undefined,
|
|
30027
29510
|
};
|
|
30028
29511
|
};
|
|
30029
29512
|
var deserializeAws_restJson1TimestreamDimension = function (output, context) {
|
|
@@ -30051,17 +29534,11 @@ var deserializeAws_restJson1TimestreamTimestamp = function (output, context) {
|
|
|
30051
29534
|
};
|
|
30052
29535
|
var deserializeAws_restJson1TopicRule = function (output, context) {
|
|
30053
29536
|
return {
|
|
30054
|
-
actions: output.actions
|
|
30055
|
-
? deserializeAws_restJson1ActionList(output.actions, context)
|
|
30056
|
-
: undefined,
|
|
29537
|
+
actions: output.actions != null ? deserializeAws_restJson1ActionList(output.actions, context) : undefined,
|
|
30057
29538
|
awsIotSqlVersion: __expectString(output.awsIotSqlVersion),
|
|
30058
|
-
createdAt: output.createdAt
|
|
30059
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
30060
|
-
: undefined,
|
|
29539
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
30061
29540
|
description: __expectString(output.description),
|
|
30062
|
-
errorAction: output.errorAction
|
|
30063
|
-
? deserializeAws_restJson1Action(output.errorAction, context)
|
|
30064
|
-
: undefined,
|
|
29541
|
+
errorAction: output.errorAction != null ? deserializeAws_restJson1Action(output.errorAction, context) : undefined,
|
|
30065
29542
|
ruleDisabled: __expectBoolean(output.ruleDisabled),
|
|
30066
29543
|
ruleName: __expectString(output.ruleName),
|
|
30067
29544
|
sql: __expectString(output.sql),
|
|
@@ -30070,18 +29547,16 @@ var deserializeAws_restJson1TopicRule = function (output, context) {
|
|
|
30070
29547
|
var deserializeAws_restJson1TopicRuleDestination = function (output, context) {
|
|
30071
29548
|
return {
|
|
30072
29549
|
arn: __expectString(output.arn),
|
|
30073
|
-
createdAt: output.createdAt
|
|
30074
|
-
|
|
30075
|
-
: undefined,
|
|
30076
|
-
httpUrlProperties: output.httpUrlProperties !== undefined && output.httpUrlProperties !== null
|
|
29550
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
29551
|
+
httpUrlProperties: output.httpUrlProperties != null
|
|
30077
29552
|
? deserializeAws_restJson1HttpUrlDestinationProperties(output.httpUrlProperties, context)
|
|
30078
29553
|
: undefined,
|
|
30079
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
29554
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
30080
29555
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
30081
29556
|
: undefined,
|
|
30082
29557
|
status: __expectString(output.status),
|
|
30083
29558
|
statusReason: __expectString(output.statusReason),
|
|
30084
|
-
vpcProperties: output.vpcProperties
|
|
29559
|
+
vpcProperties: output.vpcProperties != null
|
|
30085
29560
|
? deserializeAws_restJson1VpcDestinationProperties(output.vpcProperties, context)
|
|
30086
29561
|
: undefined,
|
|
30087
29562
|
};
|
|
@@ -30100,18 +29575,16 @@ var deserializeAws_restJson1TopicRuleDestinationSummaries = function (output, co
|
|
|
30100
29575
|
var deserializeAws_restJson1TopicRuleDestinationSummary = function (output, context) {
|
|
30101
29576
|
return {
|
|
30102
29577
|
arn: __expectString(output.arn),
|
|
30103
|
-
createdAt: output.createdAt
|
|
30104
|
-
|
|
30105
|
-
: undefined,
|
|
30106
|
-
httpUrlSummary: output.httpUrlSummary !== undefined && output.httpUrlSummary !== null
|
|
29578
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
29579
|
+
httpUrlSummary: output.httpUrlSummary != null
|
|
30107
29580
|
? deserializeAws_restJson1HttpUrlDestinationSummary(output.httpUrlSummary, context)
|
|
30108
29581
|
: undefined,
|
|
30109
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
29582
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
30110
29583
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
30111
29584
|
: undefined,
|
|
30112
29585
|
status: __expectString(output.status),
|
|
30113
29586
|
statusReason: __expectString(output.statusReason),
|
|
30114
|
-
vpcDestinationSummary: output.vpcDestinationSummary
|
|
29587
|
+
vpcDestinationSummary: output.vpcDestinationSummary != null
|
|
30115
29588
|
? deserializeAws_restJson1VpcDestinationSummary(output.vpcDestinationSummary, context)
|
|
30116
29589
|
: undefined,
|
|
30117
29590
|
};
|
|
@@ -30129,9 +29602,7 @@ var deserializeAws_restJson1TopicRuleList = function (output, context) {
|
|
|
30129
29602
|
};
|
|
30130
29603
|
var deserializeAws_restJson1TopicRuleListItem = function (output, context) {
|
|
30131
29604
|
return {
|
|
30132
|
-
createdAt: output.createdAt
|
|
30133
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
30134
|
-
: undefined,
|
|
29605
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
30135
29606
|
ruleArn: __expectString(output.ruleArn),
|
|
30136
29607
|
ruleDisabled: __expectBoolean(output.ruleDisabled),
|
|
30137
29608
|
ruleName: __expectString(output.ruleName),
|
|
@@ -30140,14 +29611,10 @@ var deserializeAws_restJson1TopicRuleListItem = function (output, context) {
|
|
|
30140
29611
|
};
|
|
30141
29612
|
var deserializeAws_restJson1TransferData = function (output, context) {
|
|
30142
29613
|
return {
|
|
30143
|
-
acceptDate: output.acceptDate
|
|
30144
|
-
|
|
30145
|
-
: undefined,
|
|
30146
|
-
rejectDate: output.rejectDate !== undefined && output.rejectDate !== null
|
|
30147
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.rejectDate)))
|
|
30148
|
-
: undefined,
|
|
29614
|
+
acceptDate: output.acceptDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.acceptDate))) : undefined,
|
|
29615
|
+
rejectDate: output.rejectDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.rejectDate))) : undefined,
|
|
30149
29616
|
rejectReason: __expectString(output.rejectReason),
|
|
30150
|
-
transferDate: output.transferDate
|
|
29617
|
+
transferDate: output.transferDate != null
|
|
30151
29618
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.transferDate)))
|
|
30152
29619
|
: undefined,
|
|
30153
29620
|
transferMessage: __expectString(output.transferMessage),
|
|
@@ -30181,20 +29648,16 @@ var deserializeAws_restJson1ValidationErrors = function (output, context) {
|
|
|
30181
29648
|
};
|
|
30182
29649
|
var deserializeAws_restJson1ViolationEvent = function (output, context) {
|
|
30183
29650
|
return {
|
|
30184
|
-
behavior: output.behavior
|
|
30185
|
-
|
|
30186
|
-
: undefined,
|
|
30187
|
-
metricValue: output.metricValue !== undefined && output.metricValue !== null
|
|
30188
|
-
? deserializeAws_restJson1MetricValue(output.metricValue, context)
|
|
30189
|
-
: undefined,
|
|
29651
|
+
behavior: output.behavior != null ? deserializeAws_restJson1Behavior(output.behavior, context) : undefined,
|
|
29652
|
+
metricValue: output.metricValue != null ? deserializeAws_restJson1MetricValue(output.metricValue, context) : undefined,
|
|
30190
29653
|
securityProfileName: __expectString(output.securityProfileName),
|
|
30191
29654
|
thingName: __expectString(output.thingName),
|
|
30192
29655
|
verificationState: __expectString(output.verificationState),
|
|
30193
29656
|
verificationStateDescription: __expectString(output.verificationStateDescription),
|
|
30194
|
-
violationEventAdditionalInfo: output.violationEventAdditionalInfo
|
|
29657
|
+
violationEventAdditionalInfo: output.violationEventAdditionalInfo != null
|
|
30195
29658
|
? deserializeAws_restJson1ViolationEventAdditionalInfo(output.violationEventAdditionalInfo, context)
|
|
30196
29659
|
: undefined,
|
|
30197
|
-
violationEventTime: output.violationEventTime
|
|
29660
|
+
violationEventTime: output.violationEventTime != null
|
|
30198
29661
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.violationEventTime)))
|
|
30199
29662
|
: undefined,
|
|
30200
29663
|
violationEventType: __expectString(output.violationEventType),
|
|
@@ -30208,12 +29671,8 @@ var deserializeAws_restJson1ViolationEventAdditionalInfo = function (output, con
|
|
|
30208
29671
|
};
|
|
30209
29672
|
var deserializeAws_restJson1ViolationEventOccurrenceRange = function (output, context) {
|
|
30210
29673
|
return {
|
|
30211
|
-
endTime: output.endTime
|
|
30212
|
-
|
|
30213
|
-
: undefined,
|
|
30214
|
-
startTime: output.startTime !== undefined && output.startTime !== null
|
|
30215
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
30216
|
-
: undefined,
|
|
29674
|
+
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
29675
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
30217
29676
|
};
|
|
30218
29677
|
};
|
|
30219
29678
|
var deserializeAws_restJson1ViolationEvents = function (output, context) {
|
|
@@ -30230,24 +29689,20 @@ var deserializeAws_restJson1ViolationEvents = function (output, context) {
|
|
|
30230
29689
|
var deserializeAws_restJson1VpcDestinationProperties = function (output, context) {
|
|
30231
29690
|
return {
|
|
30232
29691
|
roleArn: __expectString(output.roleArn),
|
|
30233
|
-
securityGroups: output.securityGroups
|
|
29692
|
+
securityGroups: output.securityGroups != null
|
|
30234
29693
|
? deserializeAws_restJson1SecurityGroupList(output.securityGroups, context)
|
|
30235
29694
|
: undefined,
|
|
30236
|
-
subnetIds: output.subnetIds
|
|
30237
|
-
? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
|
|
30238
|
-
: undefined,
|
|
29695
|
+
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
30239
29696
|
vpcId: __expectString(output.vpcId),
|
|
30240
29697
|
};
|
|
30241
29698
|
};
|
|
30242
29699
|
var deserializeAws_restJson1VpcDestinationSummary = function (output, context) {
|
|
30243
29700
|
return {
|
|
30244
29701
|
roleArn: __expectString(output.roleArn),
|
|
30245
|
-
securityGroups: output.securityGroups
|
|
29702
|
+
securityGroups: output.securityGroups != null
|
|
30246
29703
|
? deserializeAws_restJson1SecurityGroupList(output.securityGroups, context)
|
|
30247
29704
|
: undefined,
|
|
30248
|
-
subnetIds: output.subnetIds
|
|
30249
|
-
? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
|
|
30250
|
-
: undefined,
|
|
29705
|
+
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
30251
29706
|
vpcId: __expectString(output.vpcId),
|
|
30252
29707
|
};
|
|
30253
29708
|
};
|
|
@@ -30289,6 +29744,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
30289
29744
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
30290
29745
|
var sanitizeErrorCode = function (rawValue) {
|
|
30291
29746
|
var cleanValue = rawValue;
|
|
29747
|
+
if (typeof cleanValue === "number") {
|
|
29748
|
+
cleanValue = cleanValue.toString();
|
|
29749
|
+
}
|
|
30292
29750
|
if (cleanValue.indexOf(":") >= 0) {
|
|
30293
29751
|
cleanValue = cleanValue.split(":")[0];
|
|
30294
29752
|
}
|