@aws-sdk/client-iot 3.121.0 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/models/models_1.js +6 -6
- package/dist-cjs/protocols/Aws_restJson1.js +864 -1406
- package/dist-es/models/models_1.js +5 -5
- package/dist-es/protocols/Aws_restJson1.js +513 -1056
- package/dist-types/IoT.d.ts +6 -9
- package/dist-types/commands/RegisterCACertificateCommand.d.ts +3 -6
- package/dist-types/commands/RegisterCertificateCommand.d.ts +3 -3
- package/dist-types/models/models_0.d.ts +4 -0
- package/dist-types/models/models_1.d.ts +41 -4
- package/dist-types/models/models_2.d.ts +20 -4
- package/dist-types/ts3.4/models/models_1.d.ts +8 -4
- package/dist-types/ts3.4/models/models_2.d.ts +4 -2
- 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,12 +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({}, (input.caCertificate
|
|
5769
|
-
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 && {
|
|
5770
5668
|
registrationConfig: serializeAws_restJson1RegistrationConfig(input.registrationConfig, context),
|
|
5771
|
-
})), (input.tags
|
|
5772
|
-
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.verificationCertificate !== undefined &&
|
|
5773
|
-
input.verificationCertificate !== null && { verificationCertificate: input.verificationCertificate })));
|
|
5669
|
+
})), (input.tags != null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.verificationCertificate != null && { verificationCertificate: input.verificationCertificate })));
|
|
5774
5670
|
return [2, new __HttpRequest({
|
|
5775
5671
|
protocol: protocol,
|
|
5776
5672
|
hostname: hostname,
|
|
@@ -5796,9 +5692,7 @@ export var serializeAws_restJson1RegisterCertificateCommand = function (input, c
|
|
|
5796
5692
|
};
|
|
5797
5693
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificate/register";
|
|
5798
5694
|
query = __assign({}, (input.setAsActive !== undefined && { setAsActive: input.setAsActive.toString() }));
|
|
5799
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.caCertificatePem
|
|
5800
|
-
input.caCertificatePem !== null && { caCertificatePem: input.caCertificatePem })), (input.certificatePem !== undefined &&
|
|
5801
|
-
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 })));
|
|
5802
5696
|
return [2, new __HttpRequest({
|
|
5803
5697
|
protocol: protocol,
|
|
5804
5698
|
hostname: hostname,
|
|
@@ -5823,8 +5717,7 @@ export var serializeAws_restJson1RegisterCertificateWithoutCACommand = function
|
|
|
5823
5717
|
"content-type": "application/json",
|
|
5824
5718
|
};
|
|
5825
5719
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/certificate/register-no-ca";
|
|
5826
|
-
body = JSON.stringify(__assign(__assign({}, (input.certificatePem
|
|
5827
|
-
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 })));
|
|
5828
5721
|
return [2, new __HttpRequest({
|
|
5829
5722
|
protocol: protocol,
|
|
5830
5723
|
hostname: hostname,
|
|
@@ -5848,8 +5741,7 @@ export var serializeAws_restJson1RegisterThingCommand = function (input, context
|
|
|
5848
5741
|
"content-type": "application/json",
|
|
5849
5742
|
};
|
|
5850
5743
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things";
|
|
5851
|
-
body = JSON.stringify(__assign(__assign({}, (input.parameters
|
|
5852
|
-
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 })));
|
|
5853
5745
|
return [2, new __HttpRequest({
|
|
5854
5746
|
protocol: protocol,
|
|
5855
5747
|
hostname: hostname,
|
|
@@ -5884,7 +5776,7 @@ export var serializeAws_restJson1RejectCertificateTransferCommand = function (in
|
|
|
5884
5776
|
else {
|
|
5885
5777
|
throw new Error("No value provided for input HTTP label: certificateId.");
|
|
5886
5778
|
}
|
|
5887
|
-
body = JSON.stringify(__assign({}, (input.rejectReason
|
|
5779
|
+
body = JSON.stringify(__assign({}, (input.rejectReason != null && { rejectReason: input.rejectReason })));
|
|
5888
5780
|
return [2, new __HttpRequest({
|
|
5889
5781
|
protocol: protocol,
|
|
5890
5782
|
hostname: hostname,
|
|
@@ -5909,9 +5801,7 @@ export var serializeAws_restJson1RemoveThingFromBillingGroupCommand = function (
|
|
|
5909
5801
|
};
|
|
5910
5802
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
5911
5803
|
"/billing-groups/removeThingFromBillingGroup";
|
|
5912
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.billingGroupArn
|
|
5913
|
-
input.billingGroupArn !== null && { billingGroupArn: input.billingGroupArn })), (input.billingGroupName !== undefined &&
|
|
5914
|
-
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 })));
|
|
5915
5805
|
return [2, new __HttpRequest({
|
|
5916
5806
|
protocol: protocol,
|
|
5917
5807
|
hostname: hostname,
|
|
@@ -5935,8 +5825,7 @@ export var serializeAws_restJson1RemoveThingFromThingGroupCommand = function (in
|
|
|
5935
5825
|
"content-type": "application/json",
|
|
5936
5826
|
};
|
|
5937
5827
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/removeThingFromThingGroup";
|
|
5938
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.thingArn
|
|
5939
|
-
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 })));
|
|
5940
5829
|
return [2, new __HttpRequest({
|
|
5941
5830
|
protocol: protocol,
|
|
5942
5831
|
hostname: hostname,
|
|
@@ -6000,7 +5889,7 @@ export var serializeAws_restJson1SearchIndexCommand = function (input, context)
|
|
|
6000
5889
|
"content-type": "application/json",
|
|
6001
5890
|
};
|
|
6002
5891
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indices/search";
|
|
6003
|
-
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 })));
|
|
6004
5893
|
return [2, new __HttpRequest({
|
|
6005
5894
|
protocol: protocol,
|
|
6006
5895
|
hostname: hostname,
|
|
@@ -6024,8 +5913,7 @@ export var serializeAws_restJson1SetDefaultAuthorizerCommand = function (input,
|
|
|
6024
5913
|
"content-type": "application/json",
|
|
6025
5914
|
};
|
|
6026
5915
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/default-authorizer";
|
|
6027
|
-
body = JSON.stringify(__assign({}, (input.authorizerName
|
|
6028
|
-
input.authorizerName !== null && { authorizerName: input.authorizerName })));
|
|
5916
|
+
body = JSON.stringify(__assign({}, (input.authorizerName != null && { authorizerName: input.authorizerName })));
|
|
6029
5917
|
return [2, new __HttpRequest({
|
|
6030
5918
|
protocol: protocol,
|
|
6031
5919
|
hostname: hostname,
|
|
@@ -6121,8 +6009,7 @@ export var serializeAws_restJson1SetV2LoggingLevelCommand = function (input, con
|
|
|
6121
6009
|
"content-type": "application/json",
|
|
6122
6010
|
};
|
|
6123
6011
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2LoggingLevel";
|
|
6124
|
-
body = JSON.stringify(__assign(__assign({}, (input.logLevel
|
|
6125
|
-
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) })));
|
|
6126
6013
|
return [2, new __HttpRequest({
|
|
6127
6014
|
protocol: protocol,
|
|
6128
6015
|
hostname: hostname,
|
|
@@ -6146,9 +6033,7 @@ export var serializeAws_restJson1SetV2LoggingOptionsCommand = function (input, c
|
|
|
6146
6033
|
"content-type": "application/json",
|
|
6147
6034
|
};
|
|
6148
6035
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v2LoggingOptions";
|
|
6149
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.defaultLogLevel
|
|
6150
|
-
input.defaultLogLevel !== null && { defaultLogLevel: input.defaultLogLevel })), (input.disableAllLogs !== undefined &&
|
|
6151
|
-
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 })));
|
|
6152
6037
|
return [2, new __HttpRequest({
|
|
6153
6038
|
protocol: protocol,
|
|
6154
6039
|
hostname: hostname,
|
|
@@ -6183,11 +6068,9 @@ export var serializeAws_restJson1StartAuditMitigationActionsTaskCommand = functi
|
|
|
6183
6068
|
else {
|
|
6184
6069
|
throw new Error("No value provided for input HTTP label: taskId.");
|
|
6185
6070
|
}
|
|
6186
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.auditCheckToActionsMapping
|
|
6187
|
-
input.auditCheckToActionsMapping !== null && {
|
|
6071
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.auditCheckToActionsMapping != null && {
|
|
6188
6072
|
auditCheckToActionsMapping: serializeAws_restJson1AuditCheckToActionsMapping(input.auditCheckToActionsMapping, context),
|
|
6189
|
-
})), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.target
|
|
6190
|
-
input.target !== null && {
|
|
6073
|
+
})), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.target != null && {
|
|
6191
6074
|
target: serializeAws_restJson1AuditMitigationActionsTaskTarget(input.target, context),
|
|
6192
6075
|
})));
|
|
6193
6076
|
return [2, new __HttpRequest({
|
|
@@ -6224,16 +6107,13 @@ export var serializeAws_restJson1StartDetectMitigationActionsTaskCommand = funct
|
|
|
6224
6107
|
else {
|
|
6225
6108
|
throw new Error("No value provided for input HTTP label: taskId.");
|
|
6226
6109
|
}
|
|
6227
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions
|
|
6228
|
-
input.actions !== null && {
|
|
6110
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions != null && {
|
|
6229
6111
|
actions: serializeAws_restJson1DetectMitigationActionsToExecuteList(input.actions, context),
|
|
6230
|
-
})), { clientRequestToken: (_c = input.clientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.includeOnlyActiveViolations
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
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 && {
|
|
6234
6115
|
target: serializeAws_restJson1DetectMitigationActionsTaskTarget(input.target, context),
|
|
6235
|
-
})), (input.violationEventOccurrenceRange
|
|
6236
|
-
input.violationEventOccurrenceRange !== null && {
|
|
6116
|
+
})), (input.violationEventOccurrenceRange != null && {
|
|
6237
6117
|
violationEventOccurrenceRange: serializeAws_restJson1ViolationEventOccurrenceRange(input.violationEventOccurrenceRange, context),
|
|
6238
6118
|
})));
|
|
6239
6119
|
return [2, new __HttpRequest({
|
|
@@ -6259,8 +6139,7 @@ export var serializeAws_restJson1StartOnDemandAuditTaskCommand = function (input
|
|
|
6259
6139
|
"content-type": "application/json",
|
|
6260
6140
|
};
|
|
6261
6141
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/tasks";
|
|
6262
|
-
body = JSON.stringify(__assign({}, (input.targetCheckNames
|
|
6263
|
-
input.targetCheckNames !== null && {
|
|
6142
|
+
body = JSON.stringify(__assign({}, (input.targetCheckNames != null && {
|
|
6264
6143
|
targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
|
|
6265
6144
|
})));
|
|
6266
6145
|
return [2, new __HttpRequest({
|
|
@@ -6286,8 +6165,7 @@ export var serializeAws_restJson1StartThingRegistrationTaskCommand = function (i
|
|
|
6286
6165
|
"content-type": "application/json",
|
|
6287
6166
|
};
|
|
6288
6167
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-registration-tasks";
|
|
6289
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.inputFileBucket
|
|
6290
|
-
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 })));
|
|
6291
6169
|
return [2, new __HttpRequest({
|
|
6292
6170
|
protocol: protocol,
|
|
6293
6171
|
hostname: hostname,
|
|
@@ -6342,8 +6220,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
6342
6220
|
"content-type": "application/json",
|
|
6343
6221
|
};
|
|
6344
6222
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
6345
|
-
body = JSON.stringify(__assign(__assign({}, (input.resourceArn
|
|
6346
|
-
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) })));
|
|
6347
6224
|
return [2, new __HttpRequest({
|
|
6348
6225
|
protocol: protocol,
|
|
6349
6226
|
hostname: hostname,
|
|
@@ -6368,15 +6245,11 @@ export var serializeAws_restJson1TestAuthorizationCommand = function (input, con
|
|
|
6368
6245
|
};
|
|
6369
6246
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/test-authorization";
|
|
6370
6247
|
query = __assign({}, (input.clientId !== undefined && { clientId: input.clientId }));
|
|
6371
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.authInfos
|
|
6372
|
-
input.authInfos !== null && { authInfos: serializeAws_restJson1AuthInfos(input.authInfos, context) })), (input.cognitoIdentityPoolId !== undefined &&
|
|
6373
|
-
input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId })), (input.policyNamesToAdd !== undefined &&
|
|
6374
|
-
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 && {
|
|
6375
6249
|
policyNamesToAdd: serializeAws_restJson1PolicyNames(input.policyNamesToAdd, context),
|
|
6376
|
-
})), (input.policyNamesToSkip
|
|
6377
|
-
input.policyNamesToSkip !== null && {
|
|
6250
|
+
})), (input.policyNamesToSkip != null && {
|
|
6378
6251
|
policyNamesToSkip: serializeAws_restJson1PolicyNames(input.policyNamesToSkip, context),
|
|
6379
|
-
})), (input.principal
|
|
6252
|
+
})), (input.principal != null && { principal: input.principal })));
|
|
6380
6253
|
return [2, new __HttpRequest({
|
|
6381
6254
|
protocol: protocol,
|
|
6382
6255
|
hostname: hostname,
|
|
@@ -6411,11 +6284,7 @@ export var serializeAws_restJson1TestInvokeAuthorizerCommand = function (input,
|
|
|
6411
6284
|
else {
|
|
6412
6285
|
throw new Error("No value provided for input HTTP label: authorizerName.");
|
|
6413
6286
|
}
|
|
6414
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.httpContext
|
|
6415
|
-
input.httpContext !== null && { httpContext: serializeAws_restJson1HttpContext(input.httpContext, context) })), (input.mqttContext !== undefined &&
|
|
6416
|
-
input.mqttContext !== null && { mqttContext: serializeAws_restJson1MqttContext(input.mqttContext, context) })), (input.tlsContext !== undefined &&
|
|
6417
|
-
input.tlsContext !== null && { tlsContext: serializeAws_restJson1TlsContext(input.tlsContext, context) })), (input.token !== undefined && input.token !== null && { token: input.token })), (input.tokenSignature !== undefined &&
|
|
6418
|
-
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 })));
|
|
6419
6288
|
return [2, new __HttpRequest({
|
|
6420
6289
|
protocol: protocol,
|
|
6421
6290
|
hostname: hostname,
|
|
@@ -6450,8 +6319,7 @@ export var serializeAws_restJson1TransferCertificateCommand = function (input, c
|
|
|
6450
6319
|
throw new Error("No value provided for input HTTP label: certificateId.");
|
|
6451
6320
|
}
|
|
6452
6321
|
query = __assign({}, (input.targetAwsAccount !== undefined && { targetAwsAccount: input.targetAwsAccount }));
|
|
6453
|
-
body = JSON.stringify(__assign({}, (input.transferMessage
|
|
6454
|
-
input.transferMessage !== null && { transferMessage: input.transferMessage })));
|
|
6322
|
+
body = JSON.stringify(__assign({}, (input.transferMessage != null && { transferMessage: input.transferMessage })));
|
|
6455
6323
|
return [2, new __HttpRequest({
|
|
6456
6324
|
protocol: protocol,
|
|
6457
6325
|
hostname: hostname,
|
|
@@ -6476,8 +6344,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
6476
6344
|
"content-type": "application/json",
|
|
6477
6345
|
};
|
|
6478
6346
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/untag";
|
|
6479
|
-
body = JSON.stringify(__assign(__assign({}, (input.resourceArn
|
|
6480
|
-
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) })));
|
|
6481
6348
|
return [2, new __HttpRequest({
|
|
6482
6349
|
protocol: protocol,
|
|
6483
6350
|
hostname: hostname,
|
|
@@ -6501,13 +6368,11 @@ export var serializeAws_restJson1UpdateAccountAuditConfigurationCommand = functi
|
|
|
6501
6368
|
"content-type": "application/json",
|
|
6502
6369
|
};
|
|
6503
6370
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/configuration";
|
|
6504
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.auditCheckConfigurations
|
|
6505
|
-
input.auditCheckConfigurations !== null && {
|
|
6371
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.auditCheckConfigurations != null && {
|
|
6506
6372
|
auditCheckConfigurations: serializeAws_restJson1AuditCheckConfigurations(input.auditCheckConfigurations, context),
|
|
6507
|
-
})), (input.auditNotificationTargetConfigurations
|
|
6508
|
-
input.auditNotificationTargetConfigurations !== null && {
|
|
6373
|
+
})), (input.auditNotificationTargetConfigurations != null && {
|
|
6509
6374
|
auditNotificationTargetConfigurations: serializeAws_restJson1AuditNotificationTargetConfigurations(input.auditNotificationTargetConfigurations, context),
|
|
6510
|
-
})), (input.roleArn
|
|
6375
|
+
})), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
6511
6376
|
return [2, new __HttpRequest({
|
|
6512
6377
|
protocol: protocol,
|
|
6513
6378
|
hostname: hostname,
|
|
@@ -6531,12 +6396,9 @@ export var serializeAws_restJson1UpdateAuditSuppressionCommand = function (input
|
|
|
6531
6396
|
"content-type": "application/json",
|
|
6532
6397
|
};
|
|
6533
6398
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/audit/suppressions/update";
|
|
6534
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.checkName
|
|
6535
|
-
input.expirationDate !== null && { expirationDate: Math.round(input.expirationDate.getTime() / 1000) })), (input.resourceIdentifier !== undefined &&
|
|
6536
|
-
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 && {
|
|
6537
6400
|
resourceIdentifier: serializeAws_restJson1ResourceIdentifier(input.resourceIdentifier, context),
|
|
6538
|
-
})), (input.suppressIndefinitely
|
|
6539
|
-
input.suppressIndefinitely !== null && { suppressIndefinitely: input.suppressIndefinitely })));
|
|
6401
|
+
})), (input.suppressIndefinitely != null && { suppressIndefinitely: input.suppressIndefinitely })));
|
|
6540
6402
|
return [2, new __HttpRequest({
|
|
6541
6403
|
protocol: protocol,
|
|
6542
6404
|
hostname: hostname,
|
|
@@ -6570,10 +6432,7 @@ export var serializeAws_restJson1UpdateAuthorizerCommand = function (input, cont
|
|
|
6570
6432
|
else {
|
|
6571
6433
|
throw new Error("No value provided for input HTTP label: authorizerName.");
|
|
6572
6434
|
}
|
|
6573
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn
|
|
6574
|
-
input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.enableCachingForHttp !== undefined &&
|
|
6575
|
-
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 &&
|
|
6576
|
-
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 && {
|
|
6577
6436
|
tokenSigningPublicKeys: serializeAws_restJson1PublicKeyMap(input.tokenSigningPublicKeys, context),
|
|
6578
6437
|
})));
|
|
6579
6438
|
return [2, new __HttpRequest({
|
|
@@ -6609,11 +6468,9 @@ export var serializeAws_restJson1UpdateBillingGroupCommand = function (input, co
|
|
|
6609
6468
|
else {
|
|
6610
6469
|
throw new Error("No value provided for input HTTP label: billingGroupName.");
|
|
6611
6470
|
}
|
|
6612
|
-
body = JSON.stringify(__assign(__assign({}, (input.billingGroupProperties
|
|
6613
|
-
input.billingGroupProperties !== null && {
|
|
6471
|
+
body = JSON.stringify(__assign(__assign({}, (input.billingGroupProperties != null && {
|
|
6614
6472
|
billingGroupProperties: serializeAws_restJson1BillingGroupProperties(input.billingGroupProperties, context),
|
|
6615
|
-
})), (input.expectedVersion
|
|
6616
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })));
|
|
6473
|
+
})), (input.expectedVersion != null && { expectedVersion: input.expectedVersion })));
|
|
6617
6474
|
return [2, new __HttpRequest({
|
|
6618
6475
|
protocol: protocol,
|
|
6619
6476
|
hostname: hostname,
|
|
@@ -6650,11 +6507,9 @@ export var serializeAws_restJson1UpdateCACertificateCommand = function (input, c
|
|
|
6650
6507
|
query = __assign(__assign({}, (input.newStatus !== undefined && { newStatus: input.newStatus })), (input.newAutoRegistrationStatus !== undefined && {
|
|
6651
6508
|
newAutoRegistrationStatus: input.newAutoRegistrationStatus,
|
|
6652
6509
|
}));
|
|
6653
|
-
body = JSON.stringify(__assign(__assign({}, (input.registrationConfig
|
|
6654
|
-
input.registrationConfig !== null && {
|
|
6510
|
+
body = JSON.stringify(__assign(__assign({}, (input.registrationConfig != null && {
|
|
6655
6511
|
registrationConfig: serializeAws_restJson1RegistrationConfig(input.registrationConfig, context),
|
|
6656
|
-
})), (input.removeAutoRegistration
|
|
6657
|
-
input.removeAutoRegistration !== null && { removeAutoRegistration: input.removeAutoRegistration })));
|
|
6512
|
+
})), (input.removeAutoRegistration != null && { removeAutoRegistration: input.removeAutoRegistration })));
|
|
6658
6513
|
return [2, new __HttpRequest({
|
|
6659
6514
|
protocol: protocol,
|
|
6660
6515
|
hostname: hostname,
|
|
@@ -6722,7 +6577,7 @@ export var serializeAws_restJson1UpdateCustomMetricCommand = function (input, co
|
|
|
6722
6577
|
else {
|
|
6723
6578
|
throw new Error("No value provided for input HTTP label: metricName.");
|
|
6724
6579
|
}
|
|
6725
|
-
body = JSON.stringify(__assign({}, (input.displayName
|
|
6580
|
+
body = JSON.stringify(__assign({}, (input.displayName != null && { displayName: input.displayName })));
|
|
6726
6581
|
return [2, new __HttpRequest({
|
|
6727
6582
|
protocol: protocol,
|
|
6728
6583
|
hostname: hostname,
|
|
@@ -6756,8 +6611,7 @@ export var serializeAws_restJson1UpdateDimensionCommand = function (input, conte
|
|
|
6756
6611
|
else {
|
|
6757
6612
|
throw new Error("No value provided for input HTTP label: name.");
|
|
6758
6613
|
}
|
|
6759
|
-
body = JSON.stringify(__assign({}, (input.stringValues
|
|
6760
|
-
input.stringValues !== null && {
|
|
6614
|
+
body = JSON.stringify(__assign({}, (input.stringValues != null && {
|
|
6761
6615
|
stringValues: serializeAws_restJson1DimensionStringValues(input.stringValues, context),
|
|
6762
6616
|
})));
|
|
6763
6617
|
return [2, new __HttpRequest({
|
|
@@ -6794,12 +6648,9 @@ export var serializeAws_restJson1UpdateDomainConfigurationCommand = function (in
|
|
|
6794
6648
|
else {
|
|
6795
6649
|
throw new Error("No value provided for input HTTP label: domainConfigurationName.");
|
|
6796
6650
|
}
|
|
6797
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.authorizerConfig
|
|
6798
|
-
input.authorizerConfig !== null && {
|
|
6651
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.authorizerConfig != null && {
|
|
6799
6652
|
authorizerConfig: serializeAws_restJson1AuthorizerConfig(input.authorizerConfig, context),
|
|
6800
|
-
})), (input.domainConfigurationStatus
|
|
6801
|
-
input.domainConfigurationStatus !== null && { domainConfigurationStatus: input.domainConfigurationStatus })), (input.removeAuthorizerConfig !== undefined &&
|
|
6802
|
-
input.removeAuthorizerConfig !== null && { removeAuthorizerConfig: input.removeAuthorizerConfig })));
|
|
6653
|
+
})), (input.domainConfigurationStatus != null && { domainConfigurationStatus: input.domainConfigurationStatus })), (input.removeAuthorizerConfig != null && { removeAuthorizerConfig: input.removeAuthorizerConfig })));
|
|
6803
6654
|
return [2, new __HttpRequest({
|
|
6804
6655
|
protocol: protocol,
|
|
6805
6656
|
hostname: hostname,
|
|
@@ -6833,9 +6684,7 @@ export var serializeAws_restJson1UpdateDynamicThingGroupCommand = function (inpu
|
|
|
6833
6684
|
else {
|
|
6834
6685
|
throw new Error("No value provided for input HTTP label: thingGroupName.");
|
|
6835
6686
|
}
|
|
6836
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.expectedVersion
|
|
6837
|
-
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 &&
|
|
6838
|
-
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 && {
|
|
6839
6688
|
thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
|
|
6840
6689
|
})));
|
|
6841
6690
|
return [2, new __HttpRequest({
|
|
@@ -6861,8 +6710,7 @@ export var serializeAws_restJson1UpdateEventConfigurationsCommand = function (in
|
|
|
6861
6710
|
"content-type": "application/json",
|
|
6862
6711
|
};
|
|
6863
6712
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/event-configurations";
|
|
6864
|
-
body = JSON.stringify(__assign({}, (input.eventConfigurations
|
|
6865
|
-
input.eventConfigurations !== null && {
|
|
6713
|
+
body = JSON.stringify(__assign({}, (input.eventConfigurations != null && {
|
|
6866
6714
|
eventConfigurations: serializeAws_restJson1EventConfigurations(input.eventConfigurations, context),
|
|
6867
6715
|
})));
|
|
6868
6716
|
return [2, new __HttpRequest({
|
|
@@ -6898,12 +6746,9 @@ export var serializeAws_restJson1UpdateFleetMetricCommand = function (input, con
|
|
|
6898
6746
|
else {
|
|
6899
6747
|
throw new Error("No value provided for input HTTP label: metricName.");
|
|
6900
6748
|
}
|
|
6901
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.aggregationField
|
|
6902
|
-
input.aggregationField !== null && { aggregationField: input.aggregationField })), (input.aggregationType !== undefined &&
|
|
6903
|
-
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 && {
|
|
6904
6750
|
aggregationType: serializeAws_restJson1AggregationType(input.aggregationType, context),
|
|
6905
|
-
})), (input.description
|
|
6906
|
-
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 })));
|
|
6907
6752
|
return [2, new __HttpRequest({
|
|
6908
6753
|
protocol: protocol,
|
|
6909
6754
|
hostname: hostname,
|
|
@@ -6927,11 +6772,9 @@ export var serializeAws_restJson1UpdateIndexingConfigurationCommand = function (
|
|
|
6927
6772
|
"content-type": "application/json",
|
|
6928
6773
|
};
|
|
6929
6774
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/indexing/config";
|
|
6930
|
-
body = JSON.stringify(__assign(__assign({}, (input.thingGroupIndexingConfiguration
|
|
6931
|
-
input.thingGroupIndexingConfiguration !== null && {
|
|
6775
|
+
body = JSON.stringify(__assign(__assign({}, (input.thingGroupIndexingConfiguration != null && {
|
|
6932
6776
|
thingGroupIndexingConfiguration: serializeAws_restJson1ThingGroupIndexingConfiguration(input.thingGroupIndexingConfiguration, context),
|
|
6933
|
-
})), (input.thingIndexingConfiguration
|
|
6934
|
-
input.thingIndexingConfiguration !== null && {
|
|
6777
|
+
})), (input.thingIndexingConfiguration != null && {
|
|
6935
6778
|
thingIndexingConfiguration: serializeAws_restJson1ThingIndexingConfiguration(input.thingIndexingConfiguration, context),
|
|
6936
6779
|
})));
|
|
6937
6780
|
return [2, new __HttpRequest({
|
|
@@ -6968,18 +6811,13 @@ export var serializeAws_restJson1UpdateJobCommand = function (input, context) {
|
|
|
6968
6811
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
6969
6812
|
}
|
|
6970
6813
|
query = __assign({}, (input.namespaceId !== undefined && { namespaceId: input.namespaceId }));
|
|
6971
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.abortConfig
|
|
6972
|
-
input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.jobExecutionsRetryConfig !== undefined &&
|
|
6973
|
-
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 && {
|
|
6974
6815
|
jobExecutionsRetryConfig: serializeAws_restJson1JobExecutionsRetryConfig(input.jobExecutionsRetryConfig, context),
|
|
6975
|
-
})), (input.jobExecutionsRolloutConfig
|
|
6976
|
-
input.jobExecutionsRolloutConfig !== null && {
|
|
6816
|
+
})), (input.jobExecutionsRolloutConfig != null && {
|
|
6977
6817
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
6978
|
-
})), (input.presignedUrlConfig
|
|
6979
|
-
input.presignedUrlConfig !== null && {
|
|
6818
|
+
})), (input.presignedUrlConfig != null && {
|
|
6980
6819
|
presignedUrlConfig: serializeAws_restJson1PresignedUrlConfig(input.presignedUrlConfig, context),
|
|
6981
|
-
})), (input.timeoutConfig
|
|
6982
|
-
input.timeoutConfig !== null && {
|
|
6820
|
+
})), (input.timeoutConfig != null && {
|
|
6983
6821
|
timeoutConfig: serializeAws_restJson1TimeoutConfig(input.timeoutConfig, context),
|
|
6984
6822
|
})));
|
|
6985
6823
|
return [2, new __HttpRequest({
|
|
@@ -7016,10 +6854,9 @@ export var serializeAws_restJson1UpdateMitigationActionCommand = function (input
|
|
|
7016
6854
|
else {
|
|
7017
6855
|
throw new Error("No value provided for input HTTP label: actionName.");
|
|
7018
6856
|
}
|
|
7019
|
-
body = JSON.stringify(__assign(__assign({}, (input.actionParams
|
|
7020
|
-
input.actionParams !== null && {
|
|
6857
|
+
body = JSON.stringify(__assign(__assign({}, (input.actionParams != null && {
|
|
7021
6858
|
actionParams: serializeAws_restJson1MitigationActionParams(input.actionParams, context),
|
|
7022
|
-
})), (input.roleArn
|
|
6859
|
+
})), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
7023
6860
|
return [2, new __HttpRequest({
|
|
7024
6861
|
protocol: protocol,
|
|
7025
6862
|
hostname: hostname,
|
|
@@ -7053,13 +6890,9 @@ export var serializeAws_restJson1UpdateProvisioningTemplateCommand = function (i
|
|
|
7053
6890
|
else {
|
|
7054
6891
|
throw new Error("No value provided for input HTTP label: templateName.");
|
|
7055
6892
|
}
|
|
7056
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.defaultVersionId
|
|
7057
|
-
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 &&
|
|
7058
|
-
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 && {
|
|
7059
6894
|
preProvisioningHook: serializeAws_restJson1ProvisioningHook(input.preProvisioningHook, context),
|
|
7060
|
-
})), (input.provisioningRoleArn
|
|
7061
|
-
input.provisioningRoleArn !== null && { provisioningRoleArn: input.provisioningRoleArn })), (input.removePreProvisioningHook !== undefined &&
|
|
7062
|
-
input.removePreProvisioningHook !== null && { removePreProvisioningHook: input.removePreProvisioningHook })));
|
|
6895
|
+
})), (input.provisioningRoleArn != null && { provisioningRoleArn: input.provisioningRoleArn })), (input.removePreProvisioningHook != null && { removePreProvisioningHook: input.removePreProvisioningHook })));
|
|
7063
6896
|
return [2, new __HttpRequest({
|
|
7064
6897
|
protocol: protocol,
|
|
7065
6898
|
hostname: hostname,
|
|
@@ -7093,8 +6926,7 @@ export var serializeAws_restJson1UpdateRoleAliasCommand = function (input, conte
|
|
|
7093
6926
|
else {
|
|
7094
6927
|
throw new Error("No value provided for input HTTP label: roleAlias.");
|
|
7095
6928
|
}
|
|
7096
|
-
body = JSON.stringify(__assign(__assign({}, (input.credentialDurationSeconds
|
|
7097
|
-
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 })));
|
|
7098
6930
|
return [2, new __HttpRequest({
|
|
7099
6931
|
protocol: protocol,
|
|
7100
6932
|
hostname: hostname,
|
|
@@ -7129,8 +6961,7 @@ export var serializeAws_restJson1UpdateScheduledAuditCommand = function (input,
|
|
|
7129
6961
|
else {
|
|
7130
6962
|
throw new Error("No value provided for input HTTP label: scheduledAuditName.");
|
|
7131
6963
|
}
|
|
7132
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.dayOfMonth
|
|
7133
|
-
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 && {
|
|
7134
6965
|
targetCheckNames: serializeAws_restJson1TargetAuditCheckNames(input.targetCheckNames, context),
|
|
7135
6966
|
})));
|
|
7136
6967
|
return [2, new __HttpRequest({
|
|
@@ -7167,21 +6998,15 @@ export var serializeAws_restJson1UpdateSecurityProfileCommand = function (input,
|
|
|
7167
6998
|
throw new Error("No value provided for input HTTP label: securityProfileName.");
|
|
7168
6999
|
}
|
|
7169
7000
|
query = __assign({}, (input.expectedVersion !== undefined && { expectedVersion: input.expectedVersion.toString() }));
|
|
7170
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalMetricsToRetain
|
|
7171
|
-
input.additionalMetricsToRetain !== null && {
|
|
7001
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalMetricsToRetain != null && {
|
|
7172
7002
|
additionalMetricsToRetain: serializeAws_restJson1AdditionalMetricsToRetainList(input.additionalMetricsToRetain, context),
|
|
7173
|
-
})), (input.additionalMetricsToRetainV2
|
|
7174
|
-
input.additionalMetricsToRetainV2 !== null && {
|
|
7003
|
+
})), (input.additionalMetricsToRetainV2 != null && {
|
|
7175
7004
|
additionalMetricsToRetainV2: serializeAws_restJson1AdditionalMetricsToRetainV2List(input.additionalMetricsToRetainV2, context),
|
|
7176
|
-
})), (input.alertTargets
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
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 && {
|
|
7180
7008
|
deleteAdditionalMetricsToRetain: input.deleteAdditionalMetricsToRetain,
|
|
7181
|
-
})), (input.deleteAlertTargets
|
|
7182
|
-
input.deleteAlertTargets !== null && { deleteAlertTargets: input.deleteAlertTargets })), (input.deleteBehaviors !== undefined &&
|
|
7183
|
-
input.deleteBehaviors !== null && { deleteBehaviors: input.deleteBehaviors })), (input.securityProfileDescription !== undefined &&
|
|
7184
|
-
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 })));
|
|
7185
7010
|
return [2, new __HttpRequest({
|
|
7186
7011
|
protocol: protocol,
|
|
7187
7012
|
hostname: hostname,
|
|
@@ -7216,8 +7041,7 @@ export var serializeAws_restJson1UpdateStreamCommand = function (input, context)
|
|
|
7216
7041
|
else {
|
|
7217
7042
|
throw new Error("No value provided for input HTTP label: streamId.");
|
|
7218
7043
|
}
|
|
7219
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.description
|
|
7220
|
-
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 })));
|
|
7221
7045
|
return [2, new __HttpRequest({
|
|
7222
7046
|
protocol: protocol,
|
|
7223
7047
|
hostname: hostname,
|
|
@@ -7251,12 +7075,9 @@ export var serializeAws_restJson1UpdateThingCommand = function (input, context)
|
|
|
7251
7075
|
else {
|
|
7252
7076
|
throw new Error("No value provided for input HTTP label: thingName.");
|
|
7253
7077
|
}
|
|
7254
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.attributePayload
|
|
7255
|
-
input.attributePayload !== null && {
|
|
7078
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.attributePayload != null && {
|
|
7256
7079
|
attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
|
|
7257
|
-
})), (input.expectedVersion
|
|
7258
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })), (input.removeThingType !== undefined &&
|
|
7259
|
-
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 })));
|
|
7260
7081
|
return [2, new __HttpRequest({
|
|
7261
7082
|
protocol: protocol,
|
|
7262
7083
|
hostname: hostname,
|
|
@@ -7290,9 +7111,7 @@ export var serializeAws_restJson1UpdateThingGroupCommand = function (input, cont
|
|
|
7290
7111
|
else {
|
|
7291
7112
|
throw new Error("No value provided for input HTTP label: thingGroupName.");
|
|
7292
7113
|
}
|
|
7293
|
-
body = JSON.stringify(__assign(__assign({}, (input.expectedVersion
|
|
7294
|
-
input.expectedVersion !== null && { expectedVersion: input.expectedVersion })), (input.thingGroupProperties !== undefined &&
|
|
7295
|
-
input.thingGroupProperties !== null && {
|
|
7114
|
+
body = JSON.stringify(__assign(__assign({}, (input.expectedVersion != null && { expectedVersion: input.expectedVersion })), (input.thingGroupProperties != null && {
|
|
7296
7115
|
thingGroupProperties: serializeAws_restJson1ThingGroupProperties(input.thingGroupProperties, context),
|
|
7297
7116
|
})));
|
|
7298
7117
|
return [2, new __HttpRequest({
|
|
@@ -7318,14 +7137,11 @@ export var serializeAws_restJson1UpdateThingGroupsForThingCommand = function (in
|
|
|
7318
7137
|
"content-type": "application/json",
|
|
7319
7138
|
};
|
|
7320
7139
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/thing-groups/updateThingGroupsForThing";
|
|
7321
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.overrideDynamicGroups
|
|
7322
|
-
input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingGroupsToAdd !== undefined &&
|
|
7323
|
-
input.thingGroupsToAdd !== null && {
|
|
7140
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingGroupsToAdd != null && {
|
|
7324
7141
|
thingGroupsToAdd: serializeAws_restJson1ThingGroupList(input.thingGroupsToAdd, context),
|
|
7325
|
-
})), (input.thingGroupsToRemove
|
|
7326
|
-
input.thingGroupsToRemove !== null && {
|
|
7142
|
+
})), (input.thingGroupsToRemove != null && {
|
|
7327
7143
|
thingGroupsToRemove: serializeAws_restJson1ThingGroupList(input.thingGroupsToRemove, context),
|
|
7328
|
-
})), (input.thingName
|
|
7144
|
+
})), (input.thingName != null && { thingName: input.thingName })));
|
|
7329
7145
|
return [2, new __HttpRequest({
|
|
7330
7146
|
protocol: protocol,
|
|
7331
7147
|
hostname: hostname,
|
|
@@ -7349,7 +7165,7 @@ export var serializeAws_restJson1UpdateTopicRuleDestinationCommand = function (i
|
|
|
7349
7165
|
"content-type": "application/json",
|
|
7350
7166
|
};
|
|
7351
7167
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/destinations";
|
|
7352
|
-
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 })));
|
|
7353
7169
|
return [2, new __HttpRequest({
|
|
7354
7170
|
protocol: protocol,
|
|
7355
7171
|
hostname: hostname,
|
|
@@ -7373,8 +7189,7 @@ export var serializeAws_restJson1ValidateSecurityProfileBehaviorsCommand = funct
|
|
|
7373
7189
|
"content-type": "application/json",
|
|
7374
7190
|
};
|
|
7375
7191
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/security-profile-behaviors/validate";
|
|
7376
|
-
body = JSON.stringify(__assign({}, (input.behaviors
|
|
7377
|
-
input.behaviors !== null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) })));
|
|
7192
|
+
body = JSON.stringify(__assign({}, (input.behaviors != null && { behaviors: serializeAws_restJson1Behaviors(input.behaviors, context) })));
|
|
7378
7193
|
return [2, new __HttpRequest({
|
|
7379
7194
|
protocol: protocol,
|
|
7380
7195
|
hostname: hostname,
|
|
@@ -25971,15 +25786,12 @@ var deserializeAws_restJson1VersionsLimitExceededExceptionResponse = function (p
|
|
|
25971
25786
|
});
|
|
25972
25787
|
}); };
|
|
25973
25788
|
var serializeAws_restJson1AbortConfig = function (input, context) {
|
|
25974
|
-
return __assign({}, (input.criteriaList
|
|
25975
|
-
input.criteriaList !== null && {
|
|
25789
|
+
return __assign({}, (input.criteriaList != null && {
|
|
25976
25790
|
criteriaList: serializeAws_restJson1AbortCriteriaList(input.criteriaList, context),
|
|
25977
25791
|
}));
|
|
25978
25792
|
};
|
|
25979
25793
|
var serializeAws_restJson1AbortCriteria = function (input, context) {
|
|
25980
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
25981
|
-
input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings })), (input.thresholdPercentage !== undefined &&
|
|
25982
|
-
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) }));
|
|
25983
25795
|
};
|
|
25984
25796
|
var serializeAws_restJson1AbortCriteriaList = function (input, context) {
|
|
25985
25797
|
return input
|
|
@@ -25992,40 +25804,21 @@ var serializeAws_restJson1AbortCriteriaList = function (input, context) {
|
|
|
25992
25804
|
});
|
|
25993
25805
|
};
|
|
25994
25806
|
var serializeAws_restJson1Action = function (input, context) {
|
|
25995
|
-
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
|
|
25996
|
-
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 && {
|
|
25997
25808
|
cloudwatchAlarm: serializeAws_restJson1CloudwatchAlarmAction(input.cloudwatchAlarm, context),
|
|
25998
|
-
})), (input.cloudwatchLogs
|
|
25999
|
-
input.cloudwatchLogs !== null && {
|
|
25809
|
+
})), (input.cloudwatchLogs != null && {
|
|
26000
25810
|
cloudwatchLogs: serializeAws_restJson1CloudwatchLogsAction(input.cloudwatchLogs, context),
|
|
26001
|
-
})), (input.cloudwatchMetric
|
|
26002
|
-
input.cloudwatchMetric !== null && {
|
|
25811
|
+
})), (input.cloudwatchMetric != null && {
|
|
26003
25812
|
cloudwatchMetric: serializeAws_restJson1CloudwatchMetricAction(input.cloudwatchMetric, context),
|
|
26004
|
-
})), (input.dynamoDB
|
|
26005
|
-
input.dynamoDB !== null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 !== undefined &&
|
|
26006
|
-
input.dynamoDBv2 !== null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.elasticsearch !== undefined &&
|
|
26007
|
-
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 && {
|
|
26008
25814
|
elasticsearch: serializeAws_restJson1ElasticsearchAction(input.elasticsearch, context),
|
|
26009
|
-
})), (input.firehose
|
|
26010
|
-
input.firehose !== null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.http !== undefined &&
|
|
26011
|
-
input.http !== null && { http: serializeAws_restJson1HttpAction(input.http, context) })), (input.iotAnalytics !== undefined &&
|
|
26012
|
-
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 && {
|
|
26013
25816
|
iotAnalytics: serializeAws_restJson1IotAnalyticsAction(input.iotAnalytics, context),
|
|
26014
|
-
})), (input.iotEvents
|
|
26015
|
-
input.iotEvents !== null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise !== undefined &&
|
|
26016
|
-
input.iotSiteWise !== null && {
|
|
25817
|
+
})), (input.iotEvents != null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise != null && {
|
|
26017
25818
|
iotSiteWise: serializeAws_restJson1IotSiteWiseAction(input.iotSiteWise, context),
|
|
26018
|
-
})), (input.kafka
|
|
26019
|
-
input.kafka !== null && { kafka: serializeAws_restJson1KafkaAction(input.kafka, context) })), (input.kinesis !== undefined &&
|
|
26020
|
-
input.kinesis !== null && { kinesis: serializeAws_restJson1KinesisAction(input.kinesis, context) })), (input.lambda !== undefined &&
|
|
26021
|
-
input.lambda !== null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.openSearch !== undefined &&
|
|
26022
|
-
input.openSearch !== null && { openSearch: serializeAws_restJson1OpenSearchAction(input.openSearch, context) })), (input.republish !== undefined &&
|
|
26023
|
-
input.republish !== null && { republish: serializeAws_restJson1RepublishAction(input.republish, context) })), (input.s3 !== undefined && input.s3 !== null && { s3: serializeAws_restJson1S3Action(input.s3, context) })), (input.salesforce !== undefined &&
|
|
26024
|
-
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 &&
|
|
26025
|
-
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 && {
|
|
26026
25820
|
stepFunctions: serializeAws_restJson1StepFunctionsAction(input.stepFunctions, context),
|
|
26027
|
-
})), (input.timestream
|
|
26028
|
-
input.timestream !== null && { timestream: serializeAws_restJson1TimestreamAction(input.timestream, context) }));
|
|
25821
|
+
})), (input.timestream != null && { timestream: serializeAws_restJson1TimestreamAction(input.timestream, context) }));
|
|
26029
25822
|
};
|
|
26030
25823
|
var serializeAws_restJson1ActionList = function (input, context) {
|
|
26031
25824
|
return input
|
|
@@ -26068,15 +25861,12 @@ var serializeAws_restJson1AdditionalParameterMap = function (input, context) {
|
|
|
26068
25861
|
}, {});
|
|
26069
25862
|
};
|
|
26070
25863
|
var serializeAws_restJson1AddThingsToThingGroupParams = function (input, context) {
|
|
26071
|
-
return __assign(__assign({}, (input.overrideDynamicGroups
|
|
26072
|
-
input.overrideDynamicGroups !== null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingGroupNames !== undefined &&
|
|
26073
|
-
input.thingGroupNames !== null && {
|
|
25864
|
+
return __assign(__assign({}, (input.overrideDynamicGroups != null && { overrideDynamicGroups: input.overrideDynamicGroups })), (input.thingGroupNames != null && {
|
|
26074
25865
|
thingGroupNames: serializeAws_restJson1ThingGroupNames(input.thingGroupNames, context),
|
|
26075
25866
|
}));
|
|
26076
25867
|
};
|
|
26077
25868
|
var serializeAws_restJson1AggregationType = function (input, context) {
|
|
26078
|
-
return __assign(__assign({}, (input.name
|
|
26079
|
-
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) }));
|
|
26080
25870
|
};
|
|
26081
25871
|
var serializeAws_restJson1AggregationTypeValues = function (input, context) {
|
|
26082
25872
|
return input
|
|
@@ -26089,8 +25879,7 @@ var serializeAws_restJson1AggregationTypeValues = function (input, context) {
|
|
|
26089
25879
|
});
|
|
26090
25880
|
};
|
|
26091
25881
|
var serializeAws_restJson1AlertTarget = function (input, context) {
|
|
26092
|
-
return __assign(__assign({}, (input.alertTargetArn
|
|
26093
|
-
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 }));
|
|
26094
25883
|
};
|
|
26095
25884
|
var serializeAws_restJson1AlertTargets = function (input, context) {
|
|
26096
25885
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26103,14 +25892,12 @@ var serializeAws_restJson1AlertTargets = function (input, context) {
|
|
|
26103
25892
|
}, {});
|
|
26104
25893
|
};
|
|
26105
25894
|
var serializeAws_restJson1AssetPropertyTimestamp = function (input, context) {
|
|
26106
|
-
return __assign(__assign({}, (input.offsetInNanos
|
|
25895
|
+
return __assign(__assign({}, (input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos })), (input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }));
|
|
26107
25896
|
};
|
|
26108
25897
|
var serializeAws_restJson1AssetPropertyValue = function (input, context) {
|
|
26109
|
-
return __assign(__assign(__assign({}, (input.quality
|
|
26110
|
-
input.timestamp !== null && {
|
|
25898
|
+
return __assign(__assign(__assign({}, (input.quality != null && { quality: input.quality })), (input.timestamp != null && {
|
|
26111
25899
|
timestamp: serializeAws_restJson1AssetPropertyTimestamp(input.timestamp, context),
|
|
26112
|
-
})), (input.value
|
|
26113
|
-
input.value !== null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }));
|
|
25900
|
+
})), (input.value != null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }));
|
|
26114
25901
|
};
|
|
26115
25902
|
var serializeAws_restJson1AssetPropertyValueList = function (input, context) {
|
|
26116
25903
|
return input
|
|
@@ -26132,8 +25919,7 @@ var serializeAws_restJson1AssetPropertyVariant = function (input, context) {
|
|
|
26132
25919
|
});
|
|
26133
25920
|
};
|
|
26134
25921
|
var serializeAws_restJson1AttributePayload = function (input, context) {
|
|
26135
|
-
return __assign(__assign({}, (input.attributes
|
|
26136
|
-
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 }));
|
|
26137
25923
|
};
|
|
26138
25924
|
var serializeAws_restJson1Attributes = function (input, context) {
|
|
26139
25925
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26156,7 +25942,7 @@ var serializeAws_restJson1AttributesMap = function (input, context) {
|
|
|
26156
25942
|
}, {});
|
|
26157
25943
|
};
|
|
26158
25944
|
var serializeAws_restJson1AuditCheckConfiguration = function (input, context) {
|
|
26159
|
-
return __assign({}, (input.enabled
|
|
25945
|
+
return __assign({}, (input.enabled != null && { enabled: input.enabled }));
|
|
26160
25946
|
};
|
|
26161
25947
|
var serializeAws_restJson1AuditCheckConfigurations = function (input, context) {
|
|
26162
25948
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26189,14 +25975,12 @@ var serializeAws_restJson1AuditCheckToReasonCodeFilter = function (input, contex
|
|
|
26189
25975
|
}, {});
|
|
26190
25976
|
};
|
|
26191
25977
|
var serializeAws_restJson1AuditMitigationActionsTaskTarget = function (input, context) {
|
|
26192
|
-
return __assign(__assign(__assign({}, (input.auditCheckToReasonCodeFilter
|
|
26193
|
-
input.auditCheckToReasonCodeFilter !== null && {
|
|
25978
|
+
return __assign(__assign(__assign({}, (input.auditCheckToReasonCodeFilter != null && {
|
|
26194
25979
|
auditCheckToReasonCodeFilter: serializeAws_restJson1AuditCheckToReasonCodeFilter(input.auditCheckToReasonCodeFilter, context),
|
|
26195
|
-
})), (input.auditTaskId
|
|
26196
|
-
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) }));
|
|
26197
25981
|
};
|
|
26198
25982
|
var serializeAws_restJson1AuditNotificationTarget = function (input, context) {
|
|
26199
|
-
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 }));
|
|
26200
25984
|
};
|
|
26201
25985
|
var serializeAws_restJson1AuditNotificationTargetConfigurations = function (input, context) {
|
|
26202
25986
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26209,8 +25993,7 @@ var serializeAws_restJson1AuditNotificationTargetConfigurations = function (inpu
|
|
|
26209
25993
|
}, {});
|
|
26210
25994
|
};
|
|
26211
25995
|
var serializeAws_restJson1AuthInfo = function (input, context) {
|
|
26212
|
-
return __assign(__assign({}, (input.actionType
|
|
26213
|
-
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) }));
|
|
26214
25997
|
};
|
|
26215
25998
|
var serializeAws_restJson1AuthInfos = function (input, context) {
|
|
26216
25999
|
return input
|
|
@@ -26223,20 +26006,15 @@ var serializeAws_restJson1AuthInfos = function (input, context) {
|
|
|
26223
26006
|
});
|
|
26224
26007
|
};
|
|
26225
26008
|
var serializeAws_restJson1AuthorizerConfig = function (input, context) {
|
|
26226
|
-
return __assign(__assign({}, (input.allowAuthorizerOverride
|
|
26227
|
-
input.allowAuthorizerOverride !== null && { allowAuthorizerOverride: input.allowAuthorizerOverride })), (input.defaultAuthorizerName !== undefined &&
|
|
26228
|
-
input.defaultAuthorizerName !== null && { defaultAuthorizerName: input.defaultAuthorizerName }));
|
|
26009
|
+
return __assign(__assign({}, (input.allowAuthorizerOverride != null && { allowAuthorizerOverride: input.allowAuthorizerOverride })), (input.defaultAuthorizerName != null && { defaultAuthorizerName: input.defaultAuthorizerName }));
|
|
26229
26010
|
};
|
|
26230
26011
|
var serializeAws_restJson1AwsJobAbortConfig = function (input, context) {
|
|
26231
|
-
return __assign({}, (input.abortCriteriaList
|
|
26232
|
-
input.abortCriteriaList !== null && {
|
|
26012
|
+
return __assign({}, (input.abortCriteriaList != null && {
|
|
26233
26013
|
abortCriteriaList: serializeAws_restJson1AwsJobAbortCriteriaList(input.abortCriteriaList, context),
|
|
26234
26014
|
}));
|
|
26235
26015
|
};
|
|
26236
26016
|
var serializeAws_restJson1AwsJobAbortCriteria = function (input, context) {
|
|
26237
|
-
return __assign(__assign(__assign(__assign({}, (input.action
|
|
26238
|
-
input.minNumberOfExecutedThings !== null && { minNumberOfExecutedThings: input.minNumberOfExecutedThings })), (input.thresholdPercentage !== undefined &&
|
|
26239
|
-
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) }));
|
|
26240
26018
|
};
|
|
26241
26019
|
var serializeAws_restJson1AwsJobAbortCriteriaList = function (input, context) {
|
|
26242
26020
|
return input
|
|
@@ -26249,57 +26027,39 @@ var serializeAws_restJson1AwsJobAbortCriteriaList = function (input, context) {
|
|
|
26249
26027
|
});
|
|
26250
26028
|
};
|
|
26251
26029
|
var serializeAws_restJson1AwsJobExecutionsRolloutConfig = function (input, context) {
|
|
26252
|
-
return __assign(__assign({}, (input.exponentialRate
|
|
26253
|
-
input.exponentialRate !== null && {
|
|
26030
|
+
return __assign(__assign({}, (input.exponentialRate != null && {
|
|
26254
26031
|
exponentialRate: serializeAws_restJson1AwsJobExponentialRolloutRate(input.exponentialRate, context),
|
|
26255
|
-
})), (input.maximumPerMinute
|
|
26256
|
-
input.maximumPerMinute !== null && { maximumPerMinute: input.maximumPerMinute }));
|
|
26032
|
+
})), (input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }));
|
|
26257
26033
|
};
|
|
26258
26034
|
var serializeAws_restJson1AwsJobExponentialRolloutRate = function (input, context) {
|
|
26259
|
-
return __assign(__assign(__assign({}, (input.baseRatePerMinute
|
|
26260
|
-
input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute })), (input.incrementFactor !== undefined &&
|
|
26261
|
-
input.incrementFactor !== null && { incrementFactor: __serializeFloat(input.incrementFactor) })), (input.rateIncreaseCriteria !== undefined &&
|
|
26262
|
-
input.rateIncreaseCriteria !== null && {
|
|
26035
|
+
return __assign(__assign(__assign({}, (input.baseRatePerMinute != null && { baseRatePerMinute: input.baseRatePerMinute })), (input.incrementFactor != null && { incrementFactor: __serializeFloat(input.incrementFactor) })), (input.rateIncreaseCriteria != null && {
|
|
26263
26036
|
rateIncreaseCriteria: serializeAws_restJson1AwsJobRateIncreaseCriteria(input.rateIncreaseCriteria, context),
|
|
26264
26037
|
}));
|
|
26265
26038
|
};
|
|
26266
26039
|
var serializeAws_restJson1AwsJobPresignedUrlConfig = function (input, context) {
|
|
26267
|
-
return __assign({}, (input.expiresInSec
|
|
26040
|
+
return __assign({}, (input.expiresInSec != null && { expiresInSec: input.expiresInSec }));
|
|
26268
26041
|
};
|
|
26269
26042
|
var serializeAws_restJson1AwsJobRateIncreaseCriteria = function (input, context) {
|
|
26270
|
-
return __assign(__assign({}, (input.numberOfNotifiedThings
|
|
26271
|
-
input.numberOfNotifiedThings !== null && { numberOfNotifiedThings: input.numberOfNotifiedThings })), (input.numberOfSucceededThings !== undefined &&
|
|
26272
|
-
input.numberOfSucceededThings !== null && { numberOfSucceededThings: input.numberOfSucceededThings }));
|
|
26043
|
+
return __assign(__assign({}, (input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings })), (input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }));
|
|
26273
26044
|
};
|
|
26274
26045
|
var serializeAws_restJson1AwsJobTimeoutConfig = function (input, context) {
|
|
26275
|
-
return __assign({}, (input.inProgressTimeoutInMinutes
|
|
26276
|
-
input.inProgressTimeoutInMinutes !== null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }));
|
|
26046
|
+
return __assign({}, (input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }));
|
|
26277
26047
|
};
|
|
26278
26048
|
var serializeAws_restJson1Behavior = function (input, context) {
|
|
26279
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.criteria
|
|
26280
|
-
input.criteria !== null && { criteria: serializeAws_restJson1BehaviorCriteria(input.criteria, context) })), (input.metric !== undefined && input.metric !== null && { metric: input.metric })), (input.metricDimension !== undefined &&
|
|
26281
|
-
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 && {
|
|
26282
26050
|
metricDimension: serializeAws_restJson1MetricDimension(input.metricDimension, context),
|
|
26283
|
-
})), (input.name
|
|
26284
|
-
input.suppressAlerts !== null && { suppressAlerts: input.suppressAlerts }));
|
|
26051
|
+
})), (input.name != null && { name: input.name })), (input.suppressAlerts != null && { suppressAlerts: input.suppressAlerts }));
|
|
26285
26052
|
};
|
|
26286
26053
|
var serializeAws_restJson1BehaviorCriteria = function (input, context) {
|
|
26287
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.comparisonOperator
|
|
26288
|
-
input.comparisonOperator !== null && { comparisonOperator: input.comparisonOperator })), (input.consecutiveDatapointsToAlarm !== undefined &&
|
|
26289
|
-
input.consecutiveDatapointsToAlarm !== null && {
|
|
26054
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.comparisonOperator != null && { comparisonOperator: input.comparisonOperator })), (input.consecutiveDatapointsToAlarm != null && {
|
|
26290
26055
|
consecutiveDatapointsToAlarm: input.consecutiveDatapointsToAlarm,
|
|
26291
|
-
})), (input.consecutiveDatapointsToClear
|
|
26292
|
-
input.consecutiveDatapointsToClear !== null && {
|
|
26056
|
+
})), (input.consecutiveDatapointsToClear != null && {
|
|
26293
26057
|
consecutiveDatapointsToClear: input.consecutiveDatapointsToClear,
|
|
26294
|
-
})), (input.durationSeconds
|
|
26295
|
-
input.durationSeconds !== null && { durationSeconds: input.durationSeconds })), (input.mlDetectionConfig !== undefined &&
|
|
26296
|
-
input.mlDetectionConfig !== null && {
|
|
26058
|
+
})), (input.durationSeconds != null && { durationSeconds: input.durationSeconds })), (input.mlDetectionConfig != null && {
|
|
26297
26059
|
mlDetectionConfig: serializeAws_restJson1MachineLearningDetectionConfig(input.mlDetectionConfig, context),
|
|
26298
|
-
})), (input.statisticalThreshold
|
|
26299
|
-
input.statisticalThreshold !== null && {
|
|
26060
|
+
})), (input.statisticalThreshold != null && {
|
|
26300
26061
|
statisticalThreshold: serializeAws_restJson1StatisticalThreshold(input.statisticalThreshold, context),
|
|
26301
|
-
})), (input.value
|
|
26302
|
-
input.value !== null && { value: serializeAws_restJson1MetricValue(input.value, context) }));
|
|
26062
|
+
})), (input.value != null && { value: serializeAws_restJson1MetricValue(input.value, context) }));
|
|
26303
26063
|
};
|
|
26304
26064
|
var serializeAws_restJson1Behaviors = function (input, context) {
|
|
26305
26065
|
return input
|
|
@@ -26312,12 +26072,10 @@ var serializeAws_restJson1Behaviors = function (input, context) {
|
|
|
26312
26072
|
});
|
|
26313
26073
|
};
|
|
26314
26074
|
var serializeAws_restJson1BillingGroupProperties = function (input, context) {
|
|
26315
|
-
return __assign({}, (input.billingGroupDescription
|
|
26316
|
-
input.billingGroupDescription !== null && { billingGroupDescription: input.billingGroupDescription }));
|
|
26075
|
+
return __assign({}, (input.billingGroupDescription != null && { billingGroupDescription: input.billingGroupDescription }));
|
|
26317
26076
|
};
|
|
26318
26077
|
var serializeAws_restJson1BucketsAggregationType = function (input, context) {
|
|
26319
|
-
return __assign({}, (input.termsAggregation
|
|
26320
|
-
input.termsAggregation !== null && {
|
|
26078
|
+
return __assign({}, (input.termsAggregation != null && {
|
|
26321
26079
|
termsAggregation: serializeAws_restJson1TermsAggregation(input.termsAggregation, context),
|
|
26322
26080
|
}));
|
|
26323
26081
|
};
|
|
@@ -26342,49 +26100,37 @@ var serializeAws_restJson1ClientProperties = function (input, context) {
|
|
|
26342
26100
|
}, {});
|
|
26343
26101
|
};
|
|
26344
26102
|
var serializeAws_restJson1CloudwatchAlarmAction = function (input, context) {
|
|
26345
|
-
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 }));
|
|
26346
26104
|
};
|
|
26347
26105
|
var serializeAws_restJson1CloudwatchLogsAction = function (input, context) {
|
|
26348
|
-
return __assign(__assign({}, (input.logGroupName
|
|
26106
|
+
return __assign(__assign({}, (input.logGroupName != null && { logGroupName: input.logGroupName })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26349
26107
|
};
|
|
26350
26108
|
var serializeAws_restJson1CloudwatchMetricAction = function (input, context) {
|
|
26351
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.metricName
|
|
26352
|
-
input.metricNamespace !== null && { metricNamespace: input.metricNamespace })), (input.metricTimestamp !== undefined &&
|
|
26353
|
-
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 }));
|
|
26354
26110
|
};
|
|
26355
26111
|
var serializeAws_restJson1CodeSigning = function (input, context) {
|
|
26356
|
-
return __assign(__assign(__assign({}, (input.awsSignerJobId
|
|
26357
|
-
input.awsSignerJobId !== null && { awsSignerJobId: input.awsSignerJobId })), (input.customCodeSigning !== undefined &&
|
|
26358
|
-
input.customCodeSigning !== null && {
|
|
26112
|
+
return __assign(__assign(__assign({}, (input.awsSignerJobId != null && { awsSignerJobId: input.awsSignerJobId })), (input.customCodeSigning != null && {
|
|
26359
26113
|
customCodeSigning: serializeAws_restJson1CustomCodeSigning(input.customCodeSigning, context),
|
|
26360
|
-
})), (input.startSigningJobParameter
|
|
26361
|
-
input.startSigningJobParameter !== null && {
|
|
26114
|
+
})), (input.startSigningJobParameter != null && {
|
|
26362
26115
|
startSigningJobParameter: serializeAws_restJson1StartSigningJobParameter(input.startSigningJobParameter, context),
|
|
26363
26116
|
}));
|
|
26364
26117
|
};
|
|
26365
26118
|
var serializeAws_restJson1CodeSigningCertificateChain = function (input, context) {
|
|
26366
|
-
return __assign(__assign({}, (input.certificateName
|
|
26367
|
-
input.certificateName !== null && { certificateName: input.certificateName })), (input.inlineDocument !== undefined &&
|
|
26368
|
-
input.inlineDocument !== null && { inlineDocument: input.inlineDocument }));
|
|
26119
|
+
return __assign(__assign({}, (input.certificateName != null && { certificateName: input.certificateName })), (input.inlineDocument != null && { inlineDocument: input.inlineDocument }));
|
|
26369
26120
|
};
|
|
26370
26121
|
var serializeAws_restJson1CodeSigningSignature = function (input, context) {
|
|
26371
|
-
return __assign({}, (input.inlineDocument
|
|
26372
|
-
input.inlineDocument !== null && { inlineDocument: context.base64Encoder(input.inlineDocument) }));
|
|
26122
|
+
return __assign({}, (input.inlineDocument != null && { inlineDocument: context.base64Encoder(input.inlineDocument) }));
|
|
26373
26123
|
};
|
|
26374
26124
|
var serializeAws_restJson1Configuration = function (input, context) {
|
|
26375
|
-
return __assign({}, (input.Enabled
|
|
26125
|
+
return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
|
|
26376
26126
|
};
|
|
26377
26127
|
var serializeAws_restJson1CustomCodeSigning = function (input, context) {
|
|
26378
|
-
return __assign(__assign(__assign(__assign({}, (input.certificateChain
|
|
26379
|
-
input.certificateChain !== null && {
|
|
26128
|
+
return __assign(__assign(__assign(__assign({}, (input.certificateChain != null && {
|
|
26380
26129
|
certificateChain: serializeAws_restJson1CodeSigningCertificateChain(input.certificateChain, context),
|
|
26381
|
-
})), (input.hashAlgorithm
|
|
26382
|
-
input.signature !== null && { signature: serializeAws_restJson1CodeSigningSignature(input.signature, context) })), (input.signatureAlgorithm !== undefined &&
|
|
26383
|
-
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 }));
|
|
26384
26131
|
};
|
|
26385
26132
|
var serializeAws_restJson1Destination = function (input, context) {
|
|
26386
|
-
return __assign({}, (input.s3Destination
|
|
26387
|
-
input.s3Destination !== null && {
|
|
26133
|
+
return __assign({}, (input.s3Destination != null && {
|
|
26388
26134
|
s3Destination: serializeAws_restJson1S3Destination(input.s3Destination, context),
|
|
26389
26135
|
}));
|
|
26390
26136
|
};
|
|
@@ -26399,9 +26145,7 @@ var serializeAws_restJson1DetailsMap = function (input, context) {
|
|
|
26399
26145
|
}, {});
|
|
26400
26146
|
};
|
|
26401
26147
|
var serializeAws_restJson1DetectMitigationActionsTaskTarget = function (input, context) {
|
|
26402
|
-
return __assign(__assign(__assign({}, (input.behaviorName
|
|
26403
|
-
input.securityProfileName !== null && { securityProfileName: input.securityProfileName })), (input.violationIds !== undefined &&
|
|
26404
|
-
input.violationIds !== null && {
|
|
26148
|
+
return __assign(__assign(__assign({}, (input.behaviorName != null && { behaviorName: input.behaviorName })), (input.securityProfileName != null && { securityProfileName: input.securityProfileName })), (input.violationIds != null && {
|
|
26405
26149
|
violationIds: serializeAws_restJson1TargetViolationIdsForDetectMitigationActions(input.violationIds, context),
|
|
26406
26150
|
}));
|
|
26407
26151
|
};
|
|
@@ -26426,18 +26170,16 @@ var serializeAws_restJson1DimensionStringValues = function (input, context) {
|
|
|
26426
26170
|
});
|
|
26427
26171
|
};
|
|
26428
26172
|
var serializeAws_restJson1DynamoDBAction = function (input, context) {
|
|
26429
|
-
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 }));
|
|
26430
26174
|
};
|
|
26431
26175
|
var serializeAws_restJson1DynamoDBv2Action = function (input, context) {
|
|
26432
|
-
return __assign(__assign({}, (input.putItem
|
|
26433
|
-
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 }));
|
|
26434
26177
|
};
|
|
26435
26178
|
var serializeAws_restJson1ElasticsearchAction = function (input, context) {
|
|
26436
|
-
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 }));
|
|
26437
26180
|
};
|
|
26438
26181
|
var serializeAws_restJson1EnableIoTLoggingParams = function (input, context) {
|
|
26439
|
-
return __assign(__assign({}, (input.logLevel
|
|
26440
|
-
input.roleArnForLogging !== null && { roleArnForLogging: input.roleArnForLogging }));
|
|
26182
|
+
return __assign(__assign({}, (input.logLevel != null && { logLevel: input.logLevel })), (input.roleArnForLogging != null && { roleArnForLogging: input.roleArnForLogging }));
|
|
26441
26183
|
};
|
|
26442
26184
|
var serializeAws_restJson1EventConfigurations = function (input, context) {
|
|
26443
26185
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26450,15 +26192,12 @@ var serializeAws_restJson1EventConfigurations = function (input, context) {
|
|
|
26450
26192
|
}, {});
|
|
26451
26193
|
};
|
|
26452
26194
|
var serializeAws_restJson1ExponentialRolloutRate = function (input, context) {
|
|
26453
|
-
return __assign(__assign(__assign({}, (input.baseRatePerMinute
|
|
26454
|
-
input.baseRatePerMinute !== null && { baseRatePerMinute: input.baseRatePerMinute })), (input.incrementFactor !== undefined &&
|
|
26455
|
-
input.incrementFactor !== null && { incrementFactor: __serializeFloat(input.incrementFactor) })), (input.rateIncreaseCriteria !== undefined &&
|
|
26456
|
-
input.rateIncreaseCriteria !== null && {
|
|
26195
|
+
return __assign(__assign(__assign({}, (input.baseRatePerMinute != null && { baseRatePerMinute: input.baseRatePerMinute })), (input.incrementFactor != null && { incrementFactor: __serializeFloat(input.incrementFactor) })), (input.rateIncreaseCriteria != null && {
|
|
26457
26196
|
rateIncreaseCriteria: serializeAws_restJson1RateIncreaseCriteria(input.rateIncreaseCriteria, context),
|
|
26458
26197
|
}));
|
|
26459
26198
|
};
|
|
26460
26199
|
var serializeAws_restJson1Field = function (input, context) {
|
|
26461
|
-
return __assign(__assign({}, (input.name
|
|
26200
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.type != null && { type: input.type }));
|
|
26462
26201
|
};
|
|
26463
26202
|
var serializeAws_restJson1Fields = function (input, context) {
|
|
26464
26203
|
return input
|
|
@@ -26471,9 +26210,7 @@ var serializeAws_restJson1Fields = function (input, context) {
|
|
|
26471
26210
|
});
|
|
26472
26211
|
};
|
|
26473
26212
|
var serializeAws_restJson1FileLocation = function (input, context) {
|
|
26474
|
-
return __assign(__assign({}, (input.s3Location
|
|
26475
|
-
input.s3Location !== null && { s3Location: serializeAws_restJson1S3Location(input.s3Location, context) })), (input.stream !== undefined &&
|
|
26476
|
-
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) }));
|
|
26477
26214
|
};
|
|
26478
26215
|
var serializeAws_restJson1FindingIds = function (input, context) {
|
|
26479
26216
|
return input
|
|
@@ -26486,8 +26223,7 @@ var serializeAws_restJson1FindingIds = function (input, context) {
|
|
|
26486
26223
|
});
|
|
26487
26224
|
};
|
|
26488
26225
|
var serializeAws_restJson1FirehoseAction = function (input, context) {
|
|
26489
|
-
return __assign(__assign(__assign(__assign({}, (input.batchMode
|
|
26490
|
-
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 }));
|
|
26491
26227
|
};
|
|
26492
26228
|
var serializeAws_restJson1HeaderList = function (input, context) {
|
|
26493
26229
|
return input
|
|
@@ -26500,21 +26236,16 @@ var serializeAws_restJson1HeaderList = function (input, context) {
|
|
|
26500
26236
|
});
|
|
26501
26237
|
};
|
|
26502
26238
|
var serializeAws_restJson1HttpAction = function (input, context) {
|
|
26503
|
-
return __assign(__assign(__assign(__assign({}, (input.auth
|
|
26504
|
-
input.auth !== null && { auth: serializeAws_restJson1HttpAuthorization(input.auth, context) })), (input.confirmationUrl !== undefined &&
|
|
26505
|
-
input.confirmationUrl !== null && { confirmationUrl: input.confirmationUrl })), (input.headers !== undefined &&
|
|
26506
|
-
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 }));
|
|
26507
26240
|
};
|
|
26508
26241
|
var serializeAws_restJson1HttpActionHeader = function (input, context) {
|
|
26509
|
-
return __assign(__assign({}, (input.key
|
|
26242
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
26510
26243
|
};
|
|
26511
26244
|
var serializeAws_restJson1HttpAuthorization = function (input, context) {
|
|
26512
|
-
return __assign({}, (input.sigv4
|
|
26513
|
-
input.sigv4 !== null && { sigv4: serializeAws_restJson1SigV4Authorization(input.sigv4, context) }));
|
|
26245
|
+
return __assign({}, (input.sigv4 != null && { sigv4: serializeAws_restJson1SigV4Authorization(input.sigv4, context) }));
|
|
26514
26246
|
};
|
|
26515
26247
|
var serializeAws_restJson1HttpContext = function (input, context) {
|
|
26516
|
-
return __assign(__assign({}, (input.headers
|
|
26517
|
-
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 }));
|
|
26518
26249
|
};
|
|
26519
26250
|
var serializeAws_restJson1HttpHeaders = function (input, context) {
|
|
26520
26251
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26527,33 +26258,28 @@ var serializeAws_restJson1HttpHeaders = function (input, context) {
|
|
|
26527
26258
|
}, {});
|
|
26528
26259
|
};
|
|
26529
26260
|
var serializeAws_restJson1HttpUrlDestinationConfiguration = function (input, context) {
|
|
26530
|
-
return __assign({}, (input.confirmationUrl
|
|
26531
|
-
input.confirmationUrl !== null && { confirmationUrl: input.confirmationUrl }));
|
|
26261
|
+
return __assign({}, (input.confirmationUrl != null && { confirmationUrl: input.confirmationUrl }));
|
|
26532
26262
|
};
|
|
26533
26263
|
var serializeAws_restJson1IotAnalyticsAction = function (input, context) {
|
|
26534
|
-
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 }));
|
|
26535
26265
|
};
|
|
26536
26266
|
var serializeAws_restJson1IotEventsAction = function (input, context) {
|
|
26537
|
-
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 }));
|
|
26538
26268
|
};
|
|
26539
26269
|
var serializeAws_restJson1IotSiteWiseAction = function (input, context) {
|
|
26540
|
-
return __assign(__assign({}, (input.putAssetPropertyValueEntries
|
|
26541
|
-
input.putAssetPropertyValueEntries !== null && {
|
|
26270
|
+
return __assign(__assign({}, (input.putAssetPropertyValueEntries != null && {
|
|
26542
26271
|
putAssetPropertyValueEntries: serializeAws_restJson1PutAssetPropertyValueEntryList(input.putAssetPropertyValueEntries, context),
|
|
26543
|
-
})), (input.roleArn
|
|
26272
|
+
})), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26544
26273
|
};
|
|
26545
26274
|
var serializeAws_restJson1JobExecutionsRetryConfig = function (input, context) {
|
|
26546
|
-
return __assign({}, (input.criteriaList
|
|
26547
|
-
input.criteriaList !== null && {
|
|
26275
|
+
return __assign({}, (input.criteriaList != null && {
|
|
26548
26276
|
criteriaList: serializeAws_restJson1RetryCriteriaList(input.criteriaList, context),
|
|
26549
26277
|
}));
|
|
26550
26278
|
};
|
|
26551
26279
|
var serializeAws_restJson1JobExecutionsRolloutConfig = function (input, context) {
|
|
26552
|
-
return __assign(__assign({}, (input.exponentialRate
|
|
26553
|
-
input.exponentialRate !== null && {
|
|
26280
|
+
return __assign(__assign({}, (input.exponentialRate != null && {
|
|
26554
26281
|
exponentialRate: serializeAws_restJson1ExponentialRolloutRate(input.exponentialRate, context),
|
|
26555
|
-
})), (input.maximumPerMinute
|
|
26556
|
-
input.maximumPerMinute !== null && { maximumPerMinute: input.maximumPerMinute }));
|
|
26282
|
+
})), (input.maximumPerMinute != null && { maximumPerMinute: input.maximumPerMinute }));
|
|
26557
26283
|
};
|
|
26558
26284
|
var serializeAws_restJson1JobTargets = function (input, context) {
|
|
26559
26285
|
return input
|
|
@@ -26566,43 +26292,35 @@ var serializeAws_restJson1JobTargets = function (input, context) {
|
|
|
26566
26292
|
});
|
|
26567
26293
|
};
|
|
26568
26294
|
var serializeAws_restJson1KafkaAction = function (input, context) {
|
|
26569
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.clientProperties
|
|
26570
|
-
input.clientProperties !== null && {
|
|
26295
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.clientProperties != null && {
|
|
26571
26296
|
clientProperties: serializeAws_restJson1ClientProperties(input.clientProperties, context),
|
|
26572
|
-
})), (input.destinationArn
|
|
26573
|
-
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 }));
|
|
26574
26298
|
};
|
|
26575
26299
|
var serializeAws_restJson1KinesisAction = function (input, context) {
|
|
26576
|
-
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 }));
|
|
26577
26301
|
};
|
|
26578
26302
|
var serializeAws_restJson1LambdaAction = function (input, context) {
|
|
26579
|
-
return __assign({}, (input.functionArn
|
|
26303
|
+
return __assign({}, (input.functionArn != null && { functionArn: input.functionArn }));
|
|
26580
26304
|
};
|
|
26581
26305
|
var serializeAws_restJson1LoggingOptionsPayload = function (input, context) {
|
|
26582
|
-
return __assign(__assign({}, (input.logLevel
|
|
26306
|
+
return __assign(__assign({}, (input.logLevel != null && { logLevel: input.logLevel })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26583
26307
|
};
|
|
26584
26308
|
var serializeAws_restJson1LogTarget = function (input, context) {
|
|
26585
|
-
return __assign(__assign({}, (input.targetName
|
|
26309
|
+
return __assign(__assign({}, (input.targetName != null && { targetName: input.targetName })), (input.targetType != null && { targetType: input.targetType }));
|
|
26586
26310
|
};
|
|
26587
26311
|
var serializeAws_restJson1MachineLearningDetectionConfig = function (input, context) {
|
|
26588
|
-
return __assign({}, (input.confidenceLevel
|
|
26589
|
-
input.confidenceLevel !== null && { confidenceLevel: input.confidenceLevel }));
|
|
26312
|
+
return __assign({}, (input.confidenceLevel != null && { confidenceLevel: input.confidenceLevel }));
|
|
26590
26313
|
};
|
|
26591
26314
|
var serializeAws_restJson1MetricDimension = function (input, context) {
|
|
26592
|
-
return __assign(__assign({}, (input.dimensionName
|
|
26315
|
+
return __assign(__assign({}, (input.dimensionName != null && { dimensionName: input.dimensionName })), (input.operator != null && { operator: input.operator }));
|
|
26593
26316
|
};
|
|
26594
26317
|
var serializeAws_restJson1MetricToRetain = function (input, context) {
|
|
26595
|
-
return __assign(__assign({}, (input.metric
|
|
26596
|
-
input.metricDimension !== null && {
|
|
26318
|
+
return __assign(__assign({}, (input.metric != null && { metric: input.metric })), (input.metricDimension != null && {
|
|
26597
26319
|
metricDimension: serializeAws_restJson1MetricDimension(input.metricDimension, context),
|
|
26598
26320
|
}));
|
|
26599
26321
|
};
|
|
26600
26322
|
var serializeAws_restJson1MetricValue = function (input, context) {
|
|
26601
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.cidrs
|
|
26602
|
-
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 &&
|
|
26603
|
-
input.numbers !== null && { numbers: serializeAws_restJson1NumberList(input.numbers, context) })), (input.ports !== undefined &&
|
|
26604
|
-
input.ports !== null && { ports: serializeAws_restJson1Ports(input.ports, context) })), (input.strings !== undefined &&
|
|
26605
|
-
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) }));
|
|
26606
26324
|
};
|
|
26607
26325
|
var serializeAws_restJson1MitigationActionNameList = function (input, context) {
|
|
26608
26326
|
return input
|
|
@@ -26615,28 +26333,22 @@ var serializeAws_restJson1MitigationActionNameList = function (input, context) {
|
|
|
26615
26333
|
});
|
|
26616
26334
|
};
|
|
26617
26335
|
var serializeAws_restJson1MitigationActionParams = function (input, context) {
|
|
26618
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.addThingsToThingGroupParams
|
|
26619
|
-
input.addThingsToThingGroupParams !== null && {
|
|
26336
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.addThingsToThingGroupParams != null && {
|
|
26620
26337
|
addThingsToThingGroupParams: serializeAws_restJson1AddThingsToThingGroupParams(input.addThingsToThingGroupParams, context),
|
|
26621
|
-
})), (input.enableIoTLoggingParams
|
|
26622
|
-
input.enableIoTLoggingParams !== null && {
|
|
26338
|
+
})), (input.enableIoTLoggingParams != null && {
|
|
26623
26339
|
enableIoTLoggingParams: serializeAws_restJson1EnableIoTLoggingParams(input.enableIoTLoggingParams, context),
|
|
26624
|
-
})), (input.publishFindingToSnsParams
|
|
26625
|
-
input.publishFindingToSnsParams !== null && {
|
|
26340
|
+
})), (input.publishFindingToSnsParams != null && {
|
|
26626
26341
|
publishFindingToSnsParams: serializeAws_restJson1PublishFindingToSnsParams(input.publishFindingToSnsParams, context),
|
|
26627
|
-
})), (input.replaceDefaultPolicyVersionParams
|
|
26628
|
-
input.replaceDefaultPolicyVersionParams !== null && {
|
|
26342
|
+
})), (input.replaceDefaultPolicyVersionParams != null && {
|
|
26629
26343
|
replaceDefaultPolicyVersionParams: serializeAws_restJson1ReplaceDefaultPolicyVersionParams(input.replaceDefaultPolicyVersionParams, context),
|
|
26630
|
-
})), (input.updateCACertificateParams
|
|
26631
|
-
input.updateCACertificateParams !== null && {
|
|
26344
|
+
})), (input.updateCACertificateParams != null && {
|
|
26632
26345
|
updateCACertificateParams: serializeAws_restJson1UpdateCACertificateParams(input.updateCACertificateParams, context),
|
|
26633
|
-
})), (input.updateDeviceCertificateParams
|
|
26634
|
-
input.updateDeviceCertificateParams !== null && {
|
|
26346
|
+
})), (input.updateDeviceCertificateParams != null && {
|
|
26635
26347
|
updateDeviceCertificateParams: serializeAws_restJson1UpdateDeviceCertificateParams(input.updateDeviceCertificateParams, context),
|
|
26636
26348
|
}));
|
|
26637
26349
|
};
|
|
26638
26350
|
var serializeAws_restJson1MqttContext = function (input, context) {
|
|
26639
|
-
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 }));
|
|
26640
26352
|
};
|
|
26641
26353
|
var serializeAws_restJson1NumberList = function (input, context) {
|
|
26642
26354
|
return input
|
|
@@ -26649,13 +26361,12 @@ var serializeAws_restJson1NumberList = function (input, context) {
|
|
|
26649
26361
|
});
|
|
26650
26362
|
};
|
|
26651
26363
|
var serializeAws_restJson1OpenSearchAction = function (input, context) {
|
|
26652
|
-
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 }));
|
|
26653
26365
|
};
|
|
26654
26366
|
var serializeAws_restJson1OTAUpdateFile = function (input, context) {
|
|
26655
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.attributes
|
|
26656
|
-
|
|
26657
|
-
|
|
26658
|
-
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 }));
|
|
26659
26370
|
};
|
|
26660
26371
|
var serializeAws_restJson1OTAUpdateFiles = function (input, context) {
|
|
26661
26372
|
return input
|
|
@@ -26708,8 +26419,7 @@ var serializeAws_restJson1PolicyNames = function (input, context) {
|
|
|
26708
26419
|
});
|
|
26709
26420
|
};
|
|
26710
26421
|
var serializeAws_restJson1PolicyVersionIdentifier = function (input, context) {
|
|
26711
|
-
return __assign(__assign({}, (input.policyName
|
|
26712
|
-
input.policyVersionId !== null && { policyVersionId: input.policyVersionId }));
|
|
26422
|
+
return __assign(__assign({}, (input.policyName != null && { policyName: input.policyName })), (input.policyVersionId != null && { policyVersionId: input.policyVersionId }));
|
|
26713
26423
|
};
|
|
26714
26424
|
var serializeAws_restJson1Ports = function (input, context) {
|
|
26715
26425
|
return input
|
|
@@ -26722,7 +26432,7 @@ var serializeAws_restJson1Ports = function (input, context) {
|
|
|
26722
26432
|
});
|
|
26723
26433
|
};
|
|
26724
26434
|
var serializeAws_restJson1PresignedUrlConfig = function (input, context) {
|
|
26725
|
-
return __assign(__assign({}, (input.expiresInSec
|
|
26435
|
+
return __assign(__assign({}, (input.expiresInSec != null && { expiresInSec: input.expiresInSec })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
26726
26436
|
};
|
|
26727
26437
|
var serializeAws_restJson1Protocols = function (input, context) {
|
|
26728
26438
|
return input
|
|
@@ -26735,8 +26445,7 @@ var serializeAws_restJson1Protocols = function (input, context) {
|
|
|
26735
26445
|
});
|
|
26736
26446
|
};
|
|
26737
26447
|
var serializeAws_restJson1ProvisioningHook = function (input, context) {
|
|
26738
|
-
return __assign(__assign({}, (input.payloadVersion
|
|
26739
|
-
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 }));
|
|
26740
26449
|
};
|
|
26741
26450
|
var serializeAws_restJson1PublicKeyMap = function (input, context) {
|
|
26742
26451
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -26749,11 +26458,10 @@ var serializeAws_restJson1PublicKeyMap = function (input, context) {
|
|
|
26749
26458
|
}, {});
|
|
26750
26459
|
};
|
|
26751
26460
|
var serializeAws_restJson1PublishFindingToSnsParams = function (input, context) {
|
|
26752
|
-
return __assign({}, (input.topicArn
|
|
26461
|
+
return __assign({}, (input.topicArn != null && { topicArn: input.topicArn }));
|
|
26753
26462
|
};
|
|
26754
26463
|
var serializeAws_restJson1PutAssetPropertyValueEntry = function (input, context) {
|
|
26755
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.assetId
|
|
26756
|
-
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 && {
|
|
26757
26465
|
propertyValues: serializeAws_restJson1AssetPropertyValueList(input.propertyValues, context),
|
|
26758
26466
|
}));
|
|
26759
26467
|
};
|
|
@@ -26768,12 +26476,10 @@ var serializeAws_restJson1PutAssetPropertyValueEntryList = function (input, cont
|
|
|
26768
26476
|
});
|
|
26769
26477
|
};
|
|
26770
26478
|
var serializeAws_restJson1PutItemInput = function (input, context) {
|
|
26771
|
-
return __assign({}, (input.tableName
|
|
26479
|
+
return __assign({}, (input.tableName != null && { tableName: input.tableName }));
|
|
26772
26480
|
};
|
|
26773
26481
|
var serializeAws_restJson1RateIncreaseCriteria = function (input, context) {
|
|
26774
|
-
return __assign(__assign({}, (input.numberOfNotifiedThings
|
|
26775
|
-
input.numberOfNotifiedThings !== null && { numberOfNotifiedThings: input.numberOfNotifiedThings })), (input.numberOfSucceededThings !== undefined &&
|
|
26776
|
-
input.numberOfSucceededThings !== null && { numberOfSucceededThings: input.numberOfSucceededThings }));
|
|
26482
|
+
return __assign(__assign({}, (input.numberOfNotifiedThings != null && { numberOfNotifiedThings: input.numberOfNotifiedThings })), (input.numberOfSucceededThings != null && { numberOfSucceededThings: input.numberOfSucceededThings }));
|
|
26777
26483
|
};
|
|
26778
26484
|
var serializeAws_restJson1ReasonForNonComplianceCodes = function (input, context) {
|
|
26779
26485
|
return input
|
|
@@ -26786,22 +26492,18 @@ var serializeAws_restJson1ReasonForNonComplianceCodes = function (input, context
|
|
|
26786
26492
|
});
|
|
26787
26493
|
};
|
|
26788
26494
|
var serializeAws_restJson1RegistrationConfig = function (input, context) {
|
|
26789
|
-
return __assign(__assign({}, (input.roleArn
|
|
26495
|
+
return __assign(__assign({}, (input.roleArn != null && { roleArn: input.roleArn })), (input.templateBody != null && { templateBody: input.templateBody }));
|
|
26790
26496
|
};
|
|
26791
26497
|
var serializeAws_restJson1ReplaceDefaultPolicyVersionParams = function (input, context) {
|
|
26792
|
-
return __assign({}, (input.templateName
|
|
26498
|
+
return __assign({}, (input.templateName != null && { templateName: input.templateName }));
|
|
26793
26499
|
};
|
|
26794
26500
|
var serializeAws_restJson1RepublishAction = function (input, context) {
|
|
26795
|
-
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 }));
|
|
26796
26502
|
};
|
|
26797
26503
|
var serializeAws_restJson1ResourceIdentifier = function (input, context) {
|
|
26798
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.account
|
|
26799
|
-
input.caCertificateId !== null && { caCertificateId: input.caCertificateId })), (input.clientId !== undefined && input.clientId !== null && { clientId: input.clientId })), (input.cognitoIdentityPoolId !== undefined &&
|
|
26800
|
-
input.cognitoIdentityPoolId !== null && { cognitoIdentityPoolId: input.cognitoIdentityPoolId })), (input.deviceCertificateId !== undefined &&
|
|
26801
|
-
input.deviceCertificateId !== null && { deviceCertificateId: input.deviceCertificateId })), (input.iamRoleArn !== undefined && input.iamRoleArn !== null && { iamRoleArn: input.iamRoleArn })), (input.policyVersionIdentifier !== undefined &&
|
|
26802
|
-
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 && {
|
|
26803
26505
|
policyVersionIdentifier: serializeAws_restJson1PolicyVersionIdentifier(input.policyVersionIdentifier, context),
|
|
26804
|
-
})), (input.roleAliasArn
|
|
26506
|
+
})), (input.roleAliasArn != null && { roleAliasArn: input.roleAliasArn }));
|
|
26805
26507
|
};
|
|
26806
26508
|
var serializeAws_restJson1Resources = function (input, context) {
|
|
26807
26509
|
return input
|
|
@@ -26814,8 +26516,7 @@ var serializeAws_restJson1Resources = function (input, context) {
|
|
|
26814
26516
|
});
|
|
26815
26517
|
};
|
|
26816
26518
|
var serializeAws_restJson1RetryCriteria = function (input, context) {
|
|
26817
|
-
return __assign(__assign({}, (input.failureType
|
|
26818
|
-
input.numberOfRetries !== null && { numberOfRetries: input.numberOfRetries }));
|
|
26519
|
+
return __assign(__assign({}, (input.failureType != null && { failureType: input.failureType })), (input.numberOfRetries != null && { numberOfRetries: input.numberOfRetries }));
|
|
26819
26520
|
};
|
|
26820
26521
|
var serializeAws_restJson1RetryCriteriaList = function (input, context) {
|
|
26821
26522
|
return input
|
|
@@ -26828,16 +26529,16 @@ var serializeAws_restJson1RetryCriteriaList = function (input, context) {
|
|
|
26828
26529
|
});
|
|
26829
26530
|
};
|
|
26830
26531
|
var serializeAws_restJson1S3Action = function (input, context) {
|
|
26831
|
-
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 }));
|
|
26832
26533
|
};
|
|
26833
26534
|
var serializeAws_restJson1S3Destination = function (input, context) {
|
|
26834
|
-
return __assign(__assign({}, (input.bucket
|
|
26535
|
+
return __assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.prefix != null && { prefix: input.prefix }));
|
|
26835
26536
|
};
|
|
26836
26537
|
var serializeAws_restJson1S3Location = function (input, context) {
|
|
26837
|
-
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 }));
|
|
26838
26539
|
};
|
|
26839
26540
|
var serializeAws_restJson1SalesforceAction = function (input, context) {
|
|
26840
|
-
return __assign(__assign({}, (input.token
|
|
26541
|
+
return __assign(__assign({}, (input.token != null && { token: input.token })), (input.url != null && { url: input.url }));
|
|
26841
26542
|
};
|
|
26842
26543
|
var serializeAws_restJson1SearchableAttributes = function (input, context) {
|
|
26843
26544
|
return input
|
|
@@ -26870,41 +26571,33 @@ var serializeAws_restJson1ServerCertificateArns = function (input, context) {
|
|
|
26870
26571
|
});
|
|
26871
26572
|
};
|
|
26872
26573
|
var serializeAws_restJson1SigningProfileParameter = function (input, context) {
|
|
26873
|
-
return __assign(__assign(__assign({}, (input.certificateArn
|
|
26874
|
-
input.certificateArn !== null && { certificateArn: input.certificateArn })), (input.certificatePathOnDevice !== undefined &&
|
|
26875
|
-
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 }));
|
|
26876
26575
|
};
|
|
26877
26576
|
var serializeAws_restJson1SigV4Authorization = function (input, context) {
|
|
26878
|
-
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 }));
|
|
26879
26578
|
};
|
|
26880
26579
|
var serializeAws_restJson1SnsAction = function (input, context) {
|
|
26881
|
-
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 }));
|
|
26882
26581
|
};
|
|
26883
26582
|
var serializeAws_restJson1SqsAction = function (input, context) {
|
|
26884
|
-
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 }));
|
|
26885
26584
|
};
|
|
26886
26585
|
var serializeAws_restJson1StartSigningJobParameter = function (input, context) {
|
|
26887
|
-
return __assign(__assign(__assign({}, (input.destination
|
|
26888
|
-
input.destination !== null && { destination: serializeAws_restJson1Destination(input.destination, context) })), (input.signingProfileName !== undefined &&
|
|
26889
|
-
input.signingProfileName !== null && { signingProfileName: input.signingProfileName })), (input.signingProfileParameter !== undefined &&
|
|
26890
|
-
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 && {
|
|
26891
26587
|
signingProfileParameter: serializeAws_restJson1SigningProfileParameter(input.signingProfileParameter, context),
|
|
26892
26588
|
}));
|
|
26893
26589
|
};
|
|
26894
26590
|
var serializeAws_restJson1StatisticalThreshold = function (input, context) {
|
|
26895
|
-
return __assign({}, (input.statistic
|
|
26591
|
+
return __assign({}, (input.statistic != null && { statistic: input.statistic }));
|
|
26896
26592
|
};
|
|
26897
26593
|
var serializeAws_restJson1StepFunctionsAction = function (input, context) {
|
|
26898
|
-
return __assign(__assign(__assign({}, (input.executionNamePrefix
|
|
26899
|
-
input.executionNamePrefix !== null && { executionNamePrefix: input.executionNamePrefix })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.stateMachineName !== undefined &&
|
|
26900
|
-
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 }));
|
|
26901
26595
|
};
|
|
26902
26596
|
var serializeAws_restJson1_Stream = function (input, context) {
|
|
26903
|
-
return __assign(__assign({}, (input.fileId
|
|
26597
|
+
return __assign(__assign({}, (input.fileId != null && { fileId: input.fileId })), (input.streamId != null && { streamId: input.streamId }));
|
|
26904
26598
|
};
|
|
26905
26599
|
var serializeAws_restJson1StreamFile = function (input, context) {
|
|
26906
|
-
return __assign(__assign({}, (input.fileId
|
|
26907
|
-
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) }));
|
|
26908
26601
|
};
|
|
26909
26602
|
var serializeAws_restJson1StreamFiles = function (input, context) {
|
|
26910
26603
|
return input
|
|
@@ -26937,7 +26630,7 @@ var serializeAws_restJson1SubnetIdList = function (input, context) {
|
|
|
26937
26630
|
});
|
|
26938
26631
|
};
|
|
26939
26632
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
26940
|
-
return __assign(__assign({}, (input.Key
|
|
26633
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
26941
26634
|
};
|
|
26942
26635
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
26943
26636
|
return input
|
|
@@ -26990,13 +26683,10 @@ var serializeAws_restJson1TargetViolationIdsForDetectMitigationActions = functio
|
|
|
26990
26683
|
});
|
|
26991
26684
|
};
|
|
26992
26685
|
var serializeAws_restJson1TermsAggregation = function (input, context) {
|
|
26993
|
-
return __assign({}, (input.maxBuckets
|
|
26686
|
+
return __assign({}, (input.maxBuckets != null && { maxBuckets: input.maxBuckets }));
|
|
26994
26687
|
};
|
|
26995
26688
|
var serializeAws_restJson1ThingGroupIndexingConfiguration = function (input, context) {
|
|
26996
|
-
return __assign(__assign(__assign({}, (input.customFields
|
|
26997
|
-
input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) })), (input.managedFields !== undefined &&
|
|
26998
|
-
input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) })), (input.thingGroupIndexingMode !== undefined &&
|
|
26999
|
-
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 }));
|
|
27000
26690
|
};
|
|
27001
26691
|
var serializeAws_restJson1ThingGroupList = function (input, context) {
|
|
27002
26692
|
return input
|
|
@@ -27019,43 +26709,30 @@ var serializeAws_restJson1ThingGroupNames = function (input, context) {
|
|
|
27019
26709
|
});
|
|
27020
26710
|
};
|
|
27021
26711
|
var serializeAws_restJson1ThingGroupProperties = function (input, context) {
|
|
27022
|
-
return __assign(__assign({}, (input.attributePayload
|
|
27023
|
-
input.attributePayload !== null && {
|
|
26712
|
+
return __assign(__assign({}, (input.attributePayload != null && {
|
|
27024
26713
|
attributePayload: serializeAws_restJson1AttributePayload(input.attributePayload, context),
|
|
27025
|
-
})), (input.thingGroupDescription
|
|
27026
|
-
input.thingGroupDescription !== null && { thingGroupDescription: input.thingGroupDescription }));
|
|
26714
|
+
})), (input.thingGroupDescription != null && { thingGroupDescription: input.thingGroupDescription }));
|
|
27027
26715
|
};
|
|
27028
26716
|
var serializeAws_restJson1ThingIndexingConfiguration = function (input, context) {
|
|
27029
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.customFields
|
|
27030
|
-
input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) })), (input.deviceDefenderIndexingMode !== undefined &&
|
|
27031
|
-
input.deviceDefenderIndexingMode !== null && { deviceDefenderIndexingMode: input.deviceDefenderIndexingMode })), (input.managedFields !== undefined &&
|
|
27032
|
-
input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) })), (input.namedShadowIndexingMode !== undefined &&
|
|
27033
|
-
input.namedShadowIndexingMode !== null && { namedShadowIndexingMode: input.namedShadowIndexingMode })), (input.thingConnectivityIndexingMode !== undefined &&
|
|
27034
|
-
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 && {
|
|
27035
26718
|
thingConnectivityIndexingMode: input.thingConnectivityIndexingMode,
|
|
27036
|
-
})), (input.thingIndexingMode
|
|
27037
|
-
input.thingIndexingMode !== null && { thingIndexingMode: input.thingIndexingMode }));
|
|
26719
|
+
})), (input.thingIndexingMode != null && { thingIndexingMode: input.thingIndexingMode }));
|
|
27038
26720
|
};
|
|
27039
26721
|
var serializeAws_restJson1ThingTypeProperties = function (input, context) {
|
|
27040
|
-
return __assign(__assign({}, (input.searchableAttributes
|
|
27041
|
-
input.searchableAttributes !== null && {
|
|
26722
|
+
return __assign(__assign({}, (input.searchableAttributes != null && {
|
|
27042
26723
|
searchableAttributes: serializeAws_restJson1SearchableAttributes(input.searchableAttributes, context),
|
|
27043
|
-
})), (input.thingTypeDescription
|
|
27044
|
-
input.thingTypeDescription !== null && { thingTypeDescription: input.thingTypeDescription }));
|
|
26724
|
+
})), (input.thingTypeDescription != null && { thingTypeDescription: input.thingTypeDescription }));
|
|
27045
26725
|
};
|
|
27046
26726
|
var serializeAws_restJson1TimeoutConfig = function (input, context) {
|
|
27047
|
-
return __assign({}, (input.inProgressTimeoutInMinutes
|
|
27048
|
-
input.inProgressTimeoutInMinutes !== null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }));
|
|
26727
|
+
return __assign({}, (input.inProgressTimeoutInMinutes != null && { inProgressTimeoutInMinutes: input.inProgressTimeoutInMinutes }));
|
|
27049
26728
|
};
|
|
27050
26729
|
var serializeAws_restJson1TimestreamAction = function (input, context) {
|
|
27051
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.databaseName
|
|
27052
|
-
input.dimensions !== null && {
|
|
26730
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.databaseName != null && { databaseName: input.databaseName })), (input.dimensions != null && {
|
|
27053
26731
|
dimensions: serializeAws_restJson1TimestreamDimensionList(input.dimensions, context),
|
|
27054
|
-
})), (input.roleArn
|
|
27055
|
-
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) }));
|
|
27056
26733
|
};
|
|
27057
26734
|
var serializeAws_restJson1TimestreamDimension = function (input, context) {
|
|
27058
|
-
return __assign(__assign({}, (input.name
|
|
26735
|
+
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: input.value }));
|
|
27059
26736
|
};
|
|
27060
26737
|
var serializeAws_restJson1TimestreamDimensionList = function (input, context) {
|
|
27061
26738
|
return input
|
|
@@ -27068,49 +26745,38 @@ var serializeAws_restJson1TimestreamDimensionList = function (input, context) {
|
|
|
27068
26745
|
});
|
|
27069
26746
|
};
|
|
27070
26747
|
var serializeAws_restJson1TimestreamTimestamp = function (input, context) {
|
|
27071
|
-
return __assign(__assign({}, (input.unit
|
|
26748
|
+
return __assign(__assign({}, (input.unit != null && { unit: input.unit })), (input.value != null && { value: input.value }));
|
|
27072
26749
|
};
|
|
27073
26750
|
var serializeAws_restJson1TlsContext = function (input, context) {
|
|
27074
|
-
return __assign({}, (input.serverName
|
|
26751
|
+
return __assign({}, (input.serverName != null && { serverName: input.serverName }));
|
|
27075
26752
|
};
|
|
27076
26753
|
var serializeAws_restJson1TopicRuleDestinationConfiguration = function (input, context) {
|
|
27077
|
-
return __assign(__assign({}, (input.httpUrlConfiguration
|
|
27078
|
-
input.httpUrlConfiguration !== null && {
|
|
26754
|
+
return __assign(__assign({}, (input.httpUrlConfiguration != null && {
|
|
27079
26755
|
httpUrlConfiguration: serializeAws_restJson1HttpUrlDestinationConfiguration(input.httpUrlConfiguration, context),
|
|
27080
|
-
})), (input.vpcConfiguration
|
|
27081
|
-
input.vpcConfiguration !== null && {
|
|
26756
|
+
})), (input.vpcConfiguration != null && {
|
|
27082
26757
|
vpcConfiguration: serializeAws_restJson1VpcDestinationConfiguration(input.vpcConfiguration, context),
|
|
27083
26758
|
}));
|
|
27084
26759
|
};
|
|
27085
26760
|
var serializeAws_restJson1TopicRulePayload = function (input, context) {
|
|
27086
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.actions
|
|
27087
|
-
input.actions !== null && { actions: serializeAws_restJson1ActionList(input.actions, context) })), (input.awsIotSqlVersion !== undefined &&
|
|
27088
|
-
input.awsIotSqlVersion !== null && { awsIotSqlVersion: input.awsIotSqlVersion })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.errorAction !== undefined &&
|
|
27089
|
-
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 }));
|
|
27090
26762
|
};
|
|
27091
26763
|
var serializeAws_restJson1UpdateCACertificateParams = function (input, context) {
|
|
27092
|
-
return __assign({}, (input.action
|
|
26764
|
+
return __assign({}, (input.action != null && { action: input.action }));
|
|
27093
26765
|
};
|
|
27094
26766
|
var serializeAws_restJson1UpdateDeviceCertificateParams = function (input, context) {
|
|
27095
|
-
return __assign({}, (input.action
|
|
26767
|
+
return __assign({}, (input.action != null && { action: input.action }));
|
|
27096
26768
|
};
|
|
27097
26769
|
var serializeAws_restJson1ViolationEventOccurrenceRange = function (input, context) {
|
|
27098
|
-
return __assign(__assign({}, (input.endTime
|
|
27099
|
-
input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.startTime !== undefined &&
|
|
27100
|
-
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) }));
|
|
27101
26771
|
};
|
|
27102
26772
|
var serializeAws_restJson1VpcDestinationConfiguration = function (input, context) {
|
|
27103
|
-
return __assign(__assign(__assign(__assign({}, (input.roleArn
|
|
27104
|
-
input.securityGroups !== null && {
|
|
26773
|
+
return __assign(__assign(__assign(__assign({}, (input.roleArn != null && { roleArn: input.roleArn })), (input.securityGroups != null && {
|
|
27105
26774
|
securityGroups: serializeAws_restJson1SecurityGroupList(input.securityGroups, context),
|
|
27106
|
-
})), (input.subnetIds
|
|
27107
|
-
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 }));
|
|
27108
26776
|
};
|
|
27109
26777
|
var deserializeAws_restJson1AbortConfig = function (output, context) {
|
|
27110
26778
|
return {
|
|
27111
|
-
criteriaList: output.criteriaList
|
|
27112
|
-
? deserializeAws_restJson1AbortCriteriaList(output.criteriaList, context)
|
|
27113
|
-
: undefined,
|
|
26779
|
+
criteriaList: output.criteriaList != null ? deserializeAws_restJson1AbortCriteriaList(output.criteriaList, context) : undefined,
|
|
27114
26780
|
};
|
|
27115
26781
|
};
|
|
27116
26782
|
var deserializeAws_restJson1AbortCriteria = function (output, context) {
|
|
@@ -27134,70 +26800,40 @@ var deserializeAws_restJson1AbortCriteriaList = function (output, context) {
|
|
|
27134
26800
|
};
|
|
27135
26801
|
var deserializeAws_restJson1Action = function (output, context) {
|
|
27136
26802
|
return {
|
|
27137
|
-
cloudwatchAlarm: output.cloudwatchAlarm
|
|
26803
|
+
cloudwatchAlarm: output.cloudwatchAlarm != null
|
|
27138
26804
|
? deserializeAws_restJson1CloudwatchAlarmAction(output.cloudwatchAlarm, context)
|
|
27139
26805
|
: undefined,
|
|
27140
|
-
cloudwatchLogs: output.cloudwatchLogs
|
|
26806
|
+
cloudwatchLogs: output.cloudwatchLogs != null
|
|
27141
26807
|
? deserializeAws_restJson1CloudwatchLogsAction(output.cloudwatchLogs, context)
|
|
27142
26808
|
: undefined,
|
|
27143
|
-
cloudwatchMetric: output.cloudwatchMetric
|
|
26809
|
+
cloudwatchMetric: output.cloudwatchMetric != null
|
|
27144
26810
|
? deserializeAws_restJson1CloudwatchMetricAction(output.cloudwatchMetric, context)
|
|
27145
26811
|
: undefined,
|
|
27146
|
-
dynamoDB: output.dynamoDB
|
|
27147
|
-
|
|
27148
|
-
|
|
27149
|
-
dynamoDBv2: output.dynamoDBv2 !== undefined && output.dynamoDBv2 !== null
|
|
27150
|
-
? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context)
|
|
27151
|
-
: undefined,
|
|
27152
|
-
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
|
|
27153
26815
|
? deserializeAws_restJson1ElasticsearchAction(output.elasticsearch, context)
|
|
27154
26816
|
: undefined,
|
|
27155
|
-
firehose: output.firehose
|
|
27156
|
-
|
|
27157
|
-
|
|
27158
|
-
http: output.http !== undefined && output.http !== null
|
|
27159
|
-
? deserializeAws_restJson1HttpAction(output.http, context)
|
|
27160
|
-
: undefined,
|
|
27161
|
-
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
|
|
27162
26820
|
? deserializeAws_restJson1IotAnalyticsAction(output.iotAnalytics, context)
|
|
27163
26821
|
: undefined,
|
|
27164
|
-
iotEvents: output.iotEvents
|
|
27165
|
-
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
|
|
27170
|
-
|
|
27171
|
-
|
|
27172
|
-
|
|
27173
|
-
|
|
27174
|
-
|
|
27175
|
-
|
|
27176
|
-
lambda: output.lambda !== undefined && output.lambda !== null
|
|
27177
|
-
? deserializeAws_restJson1LambdaAction(output.lambda, context)
|
|
27178
|
-
: undefined,
|
|
27179
|
-
openSearch: output.openSearch !== undefined && output.openSearch !== null
|
|
27180
|
-
? deserializeAws_restJson1OpenSearchAction(output.openSearch, context)
|
|
27181
|
-
: undefined,
|
|
27182
|
-
republish: output.republish !== undefined && output.republish !== null
|
|
27183
|
-
? deserializeAws_restJson1RepublishAction(output.republish, context)
|
|
27184
|
-
: undefined,
|
|
27185
|
-
s3: output.s3 !== undefined && output.s3 !== null ? deserializeAws_restJson1S3Action(output.s3, context) : undefined,
|
|
27186
|
-
salesforce: output.salesforce !== undefined && output.salesforce !== null
|
|
27187
|
-
? deserializeAws_restJson1SalesforceAction(output.salesforce, context)
|
|
27188
|
-
: undefined,
|
|
27189
|
-
sns: output.sns !== undefined && output.sns !== null
|
|
27190
|
-
? deserializeAws_restJson1SnsAction(output.sns, context)
|
|
27191
|
-
: undefined,
|
|
27192
|
-
sqs: output.sqs !== undefined && output.sqs !== null
|
|
27193
|
-
? deserializeAws_restJson1SqsAction(output.sqs, context)
|
|
27194
|
-
: undefined,
|
|
27195
|
-
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
|
|
27196
26834
|
? deserializeAws_restJson1StepFunctionsAction(output.stepFunctions, context)
|
|
27197
26835
|
: undefined,
|
|
27198
|
-
timestream: output.timestream
|
|
27199
|
-
? deserializeAws_restJson1TimestreamAction(output.timestream, context)
|
|
27200
|
-
: undefined,
|
|
26836
|
+
timestream: output.timestream != null ? deserializeAws_restJson1TimestreamAction(output.timestream, context) : undefined,
|
|
27201
26837
|
};
|
|
27202
26838
|
};
|
|
27203
26839
|
var deserializeAws_restJson1ActionList = function (output, context) {
|
|
@@ -27213,24 +26849,22 @@ var deserializeAws_restJson1ActionList = function (output, context) {
|
|
|
27213
26849
|
};
|
|
27214
26850
|
var deserializeAws_restJson1ActiveViolation = function (output, context) {
|
|
27215
26851
|
return {
|
|
27216
|
-
behavior: output.behavior
|
|
27217
|
-
|
|
27218
|
-
: undefined,
|
|
27219
|
-
lastViolationTime: output.lastViolationTime !== undefined && output.lastViolationTime !== null
|
|
26852
|
+
behavior: output.behavior != null ? deserializeAws_restJson1Behavior(output.behavior, context) : undefined,
|
|
26853
|
+
lastViolationTime: output.lastViolationTime != null
|
|
27220
26854
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastViolationTime)))
|
|
27221
26855
|
: undefined,
|
|
27222
|
-
lastViolationValue: output.lastViolationValue
|
|
26856
|
+
lastViolationValue: output.lastViolationValue != null
|
|
27223
26857
|
? deserializeAws_restJson1MetricValue(output.lastViolationValue, context)
|
|
27224
26858
|
: undefined,
|
|
27225
26859
|
securityProfileName: __expectString(output.securityProfileName),
|
|
27226
26860
|
thingName: __expectString(output.thingName),
|
|
27227
26861
|
verificationState: __expectString(output.verificationState),
|
|
27228
26862
|
verificationStateDescription: __expectString(output.verificationStateDescription),
|
|
27229
|
-
violationEventAdditionalInfo: output.violationEventAdditionalInfo
|
|
26863
|
+
violationEventAdditionalInfo: output.violationEventAdditionalInfo != null
|
|
27230
26864
|
? deserializeAws_restJson1ViolationEventAdditionalInfo(output.violationEventAdditionalInfo, context)
|
|
27231
26865
|
: undefined,
|
|
27232
26866
|
violationId: __expectString(output.violationId),
|
|
27233
|
-
violationStartTime: output.violationStartTime
|
|
26867
|
+
violationStartTime: output.violationStartTime != null
|
|
27234
26868
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.violationStartTime)))
|
|
27235
26869
|
: undefined,
|
|
27236
26870
|
};
|
|
@@ -27281,7 +26915,7 @@ var deserializeAws_restJson1AdditionalParameterMap = function (output, context)
|
|
|
27281
26915
|
var deserializeAws_restJson1AddThingsToThingGroupParams = function (output, context) {
|
|
27282
26916
|
return {
|
|
27283
26917
|
overrideDynamicGroups: __expectBoolean(output.overrideDynamicGroups),
|
|
27284
|
-
thingGroupNames: output.thingGroupNames
|
|
26918
|
+
thingGroupNames: output.thingGroupNames != null
|
|
27285
26919
|
? deserializeAws_restJson1ThingGroupNames(output.thingGroupNames, context)
|
|
27286
26920
|
: undefined,
|
|
27287
26921
|
};
|
|
@@ -27289,9 +26923,7 @@ var deserializeAws_restJson1AddThingsToThingGroupParams = function (output, cont
|
|
|
27289
26923
|
var deserializeAws_restJson1AggregationType = function (output, context) {
|
|
27290
26924
|
return {
|
|
27291
26925
|
name: __expectString(output.name),
|
|
27292
|
-
values: output.values
|
|
27293
|
-
? deserializeAws_restJson1AggregationTypeValues(output.values, context)
|
|
27294
|
-
: undefined,
|
|
26926
|
+
values: output.values != null ? deserializeAws_restJson1AggregationTypeValues(output.values, context) : undefined,
|
|
27295
26927
|
};
|
|
27296
26928
|
};
|
|
27297
26929
|
var deserializeAws_restJson1AggregationTypeValues = function (output, context) {
|
|
@@ -27323,9 +26955,7 @@ var deserializeAws_restJson1AlertTargets = function (output, context) {
|
|
|
27323
26955
|
};
|
|
27324
26956
|
var deserializeAws_restJson1Allowed = function (output, context) {
|
|
27325
26957
|
return {
|
|
27326
|
-
policies: output.policies
|
|
27327
|
-
? deserializeAws_restJson1Policies(output.policies, context)
|
|
27328
|
-
: undefined,
|
|
26958
|
+
policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
|
|
27329
26959
|
};
|
|
27330
26960
|
};
|
|
27331
26961
|
var deserializeAws_restJson1AssetPropertyTimestamp = function (output, context) {
|
|
@@ -27337,10 +26967,8 @@ var deserializeAws_restJson1AssetPropertyTimestamp = function (output, context)
|
|
|
27337
26967
|
var deserializeAws_restJson1AssetPropertyValue = function (output, context) {
|
|
27338
26968
|
return {
|
|
27339
26969
|
quality: __expectString(output.quality),
|
|
27340
|
-
timestamp: output.timestamp
|
|
27341
|
-
|
|
27342
|
-
: undefined,
|
|
27343
|
-
value: output.value !== undefined && output.value !== null
|
|
26970
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1AssetPropertyTimestamp(output.timestamp, context) : undefined,
|
|
26971
|
+
value: output.value != null
|
|
27344
26972
|
? deserializeAws_restJson1AssetPropertyVariant(__expectUnion(output.value), context)
|
|
27345
26973
|
: undefined,
|
|
27346
26974
|
};
|
|
@@ -27373,9 +27001,7 @@ var deserializeAws_restJson1AssetPropertyVariant = function (output, context) {
|
|
|
27373
27001
|
};
|
|
27374
27002
|
var deserializeAws_restJson1AttributePayload = function (output, context) {
|
|
27375
27003
|
return {
|
|
27376
|
-
attributes: output.attributes
|
|
27377
|
-
? deserializeAws_restJson1Attributes(output.attributes, context)
|
|
27378
|
-
: undefined,
|
|
27004
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
27379
27005
|
merge: __expectBoolean(output.merge),
|
|
27380
27006
|
};
|
|
27381
27007
|
};
|
|
@@ -27459,21 +27085,21 @@ var deserializeAws_restJson1AuditFinding = function (output, context) {
|
|
|
27459
27085
|
return {
|
|
27460
27086
|
checkName: __expectString(output.checkName),
|
|
27461
27087
|
findingId: __expectString(output.findingId),
|
|
27462
|
-
findingTime: output.findingTime
|
|
27088
|
+
findingTime: output.findingTime != null
|
|
27463
27089
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.findingTime)))
|
|
27464
27090
|
: undefined,
|
|
27465
27091
|
isSuppressed: __expectBoolean(output.isSuppressed),
|
|
27466
|
-
nonCompliantResource: output.nonCompliantResource
|
|
27092
|
+
nonCompliantResource: output.nonCompliantResource != null
|
|
27467
27093
|
? deserializeAws_restJson1NonCompliantResource(output.nonCompliantResource, context)
|
|
27468
27094
|
: undefined,
|
|
27469
27095
|
reasonForNonCompliance: __expectString(output.reasonForNonCompliance),
|
|
27470
27096
|
reasonForNonComplianceCode: __expectString(output.reasonForNonComplianceCode),
|
|
27471
|
-
relatedResources: output.relatedResources
|
|
27097
|
+
relatedResources: output.relatedResources != null
|
|
27472
27098
|
? deserializeAws_restJson1RelatedResources(output.relatedResources, context)
|
|
27473
27099
|
: undefined,
|
|
27474
27100
|
severity: __expectString(output.severity),
|
|
27475
27101
|
taskId: __expectString(output.taskId),
|
|
27476
|
-
taskStartTime: output.taskStartTime
|
|
27102
|
+
taskStartTime: output.taskStartTime != null
|
|
27477
27103
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.taskStartTime)))
|
|
27478
27104
|
: undefined,
|
|
27479
27105
|
};
|
|
@@ -27493,15 +27119,11 @@ var deserializeAws_restJson1AuditMitigationActionExecutionMetadata = function (o
|
|
|
27493
27119
|
return {
|
|
27494
27120
|
actionId: __expectString(output.actionId),
|
|
27495
27121
|
actionName: __expectString(output.actionName),
|
|
27496
|
-
endTime: output.endTime
|
|
27497
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime)))
|
|
27498
|
-
: undefined,
|
|
27122
|
+
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
27499
27123
|
errorCode: __expectString(output.errorCode),
|
|
27500
27124
|
findingId: __expectString(output.findingId),
|
|
27501
27125
|
message: __expectString(output.message),
|
|
27502
|
-
startTime: output.startTime
|
|
27503
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
27504
|
-
: undefined,
|
|
27126
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
27505
27127
|
status: __expectString(output.status),
|
|
27506
27128
|
taskId: __expectString(output.taskId),
|
|
27507
27129
|
};
|
|
@@ -27519,9 +27141,7 @@ var deserializeAws_restJson1AuditMitigationActionExecutionMetadataList = functio
|
|
|
27519
27141
|
};
|
|
27520
27142
|
var deserializeAws_restJson1AuditMitigationActionsTaskMetadata = function (output, context) {
|
|
27521
27143
|
return {
|
|
27522
|
-
startTime: output.startTime
|
|
27523
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
27524
|
-
: undefined,
|
|
27144
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
27525
27145
|
taskId: __expectString(output.taskId),
|
|
27526
27146
|
taskStatus: __expectString(output.taskStatus),
|
|
27527
27147
|
};
|
|
@@ -27549,13 +27169,11 @@ var deserializeAws_restJson1AuditMitigationActionsTaskStatistics = function (out
|
|
|
27549
27169
|
};
|
|
27550
27170
|
var deserializeAws_restJson1AuditMitigationActionsTaskTarget = function (output, context) {
|
|
27551
27171
|
return {
|
|
27552
|
-
auditCheckToReasonCodeFilter: output.auditCheckToReasonCodeFilter
|
|
27172
|
+
auditCheckToReasonCodeFilter: output.auditCheckToReasonCodeFilter != null
|
|
27553
27173
|
? deserializeAws_restJson1AuditCheckToReasonCodeFilter(output.auditCheckToReasonCodeFilter, context)
|
|
27554
27174
|
: undefined,
|
|
27555
27175
|
auditTaskId: __expectString(output.auditTaskId),
|
|
27556
|
-
findingIds: output.findingIds
|
|
27557
|
-
? deserializeAws_restJson1FindingIds(output.findingIds, context)
|
|
27558
|
-
: undefined,
|
|
27176
|
+
findingIds: output.findingIds != null ? deserializeAws_restJson1FindingIds(output.findingIds, context) : undefined,
|
|
27559
27177
|
};
|
|
27560
27178
|
};
|
|
27561
27179
|
var deserializeAws_restJson1AuditNotificationTarget = function (output, context) {
|
|
@@ -27579,10 +27197,10 @@ var deserializeAws_restJson1AuditSuppression = function (output, context) {
|
|
|
27579
27197
|
return {
|
|
27580
27198
|
checkName: __expectString(output.checkName),
|
|
27581
27199
|
description: __expectString(output.description),
|
|
27582
|
-
expirationDate: output.expirationDate
|
|
27200
|
+
expirationDate: output.expirationDate != null
|
|
27583
27201
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expirationDate)))
|
|
27584
27202
|
: undefined,
|
|
27585
|
-
resourceIdentifier: output.resourceIdentifier
|
|
27203
|
+
resourceIdentifier: output.resourceIdentifier != null
|
|
27586
27204
|
? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
|
|
27587
27205
|
: undefined,
|
|
27588
27206
|
suppressIndefinitely: __expectBoolean(output.suppressIndefinitely),
|
|
@@ -27620,9 +27238,7 @@ var deserializeAws_restJson1AuditTaskMetadataList = function (output, context) {
|
|
|
27620
27238
|
var deserializeAws_restJson1AuthInfo = function (output, context) {
|
|
27621
27239
|
return {
|
|
27622
27240
|
actionType: __expectString(output.actionType),
|
|
27623
|
-
resources: output.resources
|
|
27624
|
-
? deserializeAws_restJson1Resources(output.resources, context)
|
|
27625
|
-
: undefined,
|
|
27241
|
+
resources: output.resources != null ? deserializeAws_restJson1Resources(output.resources, context) : undefined,
|
|
27626
27242
|
};
|
|
27627
27243
|
};
|
|
27628
27244
|
var deserializeAws_restJson1AuthorizerConfig = function (output, context) {
|
|
@@ -27636,17 +27252,17 @@ var deserializeAws_restJson1AuthorizerDescription = function (output, context) {
|
|
|
27636
27252
|
authorizerArn: __expectString(output.authorizerArn),
|
|
27637
27253
|
authorizerFunctionArn: __expectString(output.authorizerFunctionArn),
|
|
27638
27254
|
authorizerName: __expectString(output.authorizerName),
|
|
27639
|
-
creationDate: output.creationDate
|
|
27255
|
+
creationDate: output.creationDate != null
|
|
27640
27256
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27641
27257
|
: undefined,
|
|
27642
27258
|
enableCachingForHttp: __expectBoolean(output.enableCachingForHttp),
|
|
27643
|
-
lastModifiedDate: output.lastModifiedDate
|
|
27259
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
27644
27260
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
27645
27261
|
: undefined,
|
|
27646
27262
|
signingDisabled: __expectBoolean(output.signingDisabled),
|
|
27647
27263
|
status: __expectString(output.status),
|
|
27648
27264
|
tokenKeyName: __expectString(output.tokenKeyName),
|
|
27649
|
-
tokenSigningPublicKeys: output.tokenSigningPublicKeys
|
|
27265
|
+
tokenSigningPublicKeys: output.tokenSigningPublicKeys != null
|
|
27650
27266
|
? deserializeAws_restJson1PublicKeyMap(output.tokenSigningPublicKeys, context)
|
|
27651
27267
|
: undefined,
|
|
27652
27268
|
};
|
|
@@ -27670,17 +27286,11 @@ var deserializeAws_restJson1AuthorizerSummary = function (output, context) {
|
|
|
27670
27286
|
};
|
|
27671
27287
|
var deserializeAws_restJson1AuthResult = function (output, context) {
|
|
27672
27288
|
return {
|
|
27673
|
-
allowed: output.allowed
|
|
27674
|
-
? deserializeAws_restJson1Allowed(output.allowed, context)
|
|
27675
|
-
: undefined,
|
|
27289
|
+
allowed: output.allowed != null ? deserializeAws_restJson1Allowed(output.allowed, context) : undefined,
|
|
27676
27290
|
authDecision: __expectString(output.authDecision),
|
|
27677
|
-
authInfo: output.authInfo
|
|
27678
|
-
|
|
27679
|
-
|
|
27680
|
-
denied: output.denied !== undefined && output.denied !== null
|
|
27681
|
-
? deserializeAws_restJson1Denied(output.denied, context)
|
|
27682
|
-
: undefined,
|
|
27683
|
-
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
|
|
27684
27294
|
? deserializeAws_restJson1MissingContextValues(output.missingContextValues, context)
|
|
27685
27295
|
: undefined,
|
|
27686
27296
|
};
|
|
@@ -27698,7 +27308,7 @@ var deserializeAws_restJson1AuthResults = function (output, context) {
|
|
|
27698
27308
|
};
|
|
27699
27309
|
var deserializeAws_restJson1AwsJobExecutionsRolloutConfig = function (output, context) {
|
|
27700
27310
|
return {
|
|
27701
|
-
exponentialRate: output.exponentialRate
|
|
27311
|
+
exponentialRate: output.exponentialRate != null
|
|
27702
27312
|
? deserializeAws_restJson1AwsJobExponentialRolloutRate(output.exponentialRate, context)
|
|
27703
27313
|
: undefined,
|
|
27704
27314
|
maximumPerMinute: __expectInt32(output.maximumPerMinute),
|
|
@@ -27708,7 +27318,7 @@ var deserializeAws_restJson1AwsJobExponentialRolloutRate = function (output, con
|
|
|
27708
27318
|
return {
|
|
27709
27319
|
baseRatePerMinute: __expectInt32(output.baseRatePerMinute),
|
|
27710
27320
|
incrementFactor: __limitedParseDouble(output.incrementFactor),
|
|
27711
|
-
rateIncreaseCriteria: output.rateIncreaseCriteria
|
|
27321
|
+
rateIncreaseCriteria: output.rateIncreaseCriteria != null
|
|
27712
27322
|
? deserializeAws_restJson1AwsJobRateIncreaseCriteria(output.rateIncreaseCriteria, context)
|
|
27713
27323
|
: undefined,
|
|
27714
27324
|
};
|
|
@@ -27726,11 +27336,9 @@ var deserializeAws_restJson1AwsJobRateIncreaseCriteria = function (output, conte
|
|
|
27726
27336
|
};
|
|
27727
27337
|
var deserializeAws_restJson1Behavior = function (output, context) {
|
|
27728
27338
|
return {
|
|
27729
|
-
criteria: output.criteria
|
|
27730
|
-
? deserializeAws_restJson1BehaviorCriteria(output.criteria, context)
|
|
27731
|
-
: undefined,
|
|
27339
|
+
criteria: output.criteria != null ? deserializeAws_restJson1BehaviorCriteria(output.criteria, context) : undefined,
|
|
27732
27340
|
metric: __expectString(output.metric),
|
|
27733
|
-
metricDimension: output.metricDimension
|
|
27341
|
+
metricDimension: output.metricDimension != null
|
|
27734
27342
|
? deserializeAws_restJson1MetricDimension(output.metricDimension, context)
|
|
27735
27343
|
: undefined,
|
|
27736
27344
|
name: __expectString(output.name),
|
|
@@ -27743,15 +27351,13 @@ var deserializeAws_restJson1BehaviorCriteria = function (output, context) {
|
|
|
27743
27351
|
consecutiveDatapointsToAlarm: __expectInt32(output.consecutiveDatapointsToAlarm),
|
|
27744
27352
|
consecutiveDatapointsToClear: __expectInt32(output.consecutiveDatapointsToClear),
|
|
27745
27353
|
durationSeconds: __expectInt32(output.durationSeconds),
|
|
27746
|
-
mlDetectionConfig: output.mlDetectionConfig
|
|
27354
|
+
mlDetectionConfig: output.mlDetectionConfig != null
|
|
27747
27355
|
? deserializeAws_restJson1MachineLearningDetectionConfig(output.mlDetectionConfig, context)
|
|
27748
27356
|
: undefined,
|
|
27749
|
-
statisticalThreshold: output.statisticalThreshold
|
|
27357
|
+
statisticalThreshold: output.statisticalThreshold != null
|
|
27750
27358
|
? deserializeAws_restJson1StatisticalThreshold(output.statisticalThreshold, context)
|
|
27751
27359
|
: undefined,
|
|
27752
|
-
value: output.value
|
|
27753
|
-
? deserializeAws_restJson1MetricValue(output.value, context)
|
|
27754
|
-
: undefined,
|
|
27360
|
+
value: output.value != null ? deserializeAws_restJson1MetricValue(output.value, context) : undefined,
|
|
27755
27361
|
};
|
|
27756
27362
|
};
|
|
27757
27363
|
var deserializeAws_restJson1BehaviorModelTrainingSummaries = function (output, context) {
|
|
@@ -27769,12 +27375,12 @@ var deserializeAws_restJson1BehaviorModelTrainingSummary = function (output, con
|
|
|
27769
27375
|
return {
|
|
27770
27376
|
behaviorName: __expectString(output.behaviorName),
|
|
27771
27377
|
datapointsCollectionPercentage: __limitedParseDouble(output.datapointsCollectionPercentage),
|
|
27772
|
-
lastModelRefreshDate: output.lastModelRefreshDate
|
|
27378
|
+
lastModelRefreshDate: output.lastModelRefreshDate != null
|
|
27773
27379
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModelRefreshDate)))
|
|
27774
27380
|
: undefined,
|
|
27775
27381
|
modelStatus: __expectString(output.modelStatus),
|
|
27776
27382
|
securityProfileName: __expectString(output.securityProfileName),
|
|
27777
|
-
trainingDataCollectionStartDate: output.trainingDataCollectionStartDate
|
|
27383
|
+
trainingDataCollectionStartDate: output.trainingDataCollectionStartDate != null
|
|
27778
27384
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.trainingDataCollectionStartDate)))
|
|
27779
27385
|
: undefined,
|
|
27780
27386
|
};
|
|
@@ -27792,7 +27398,7 @@ var deserializeAws_restJson1Behaviors = function (output, context) {
|
|
|
27792
27398
|
};
|
|
27793
27399
|
var deserializeAws_restJson1BillingGroupMetadata = function (output, context) {
|
|
27794
27400
|
return {
|
|
27795
|
-
creationDate: output.creationDate
|
|
27401
|
+
creationDate: output.creationDate != null
|
|
27796
27402
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27797
27403
|
: undefined,
|
|
27798
27404
|
};
|
|
@@ -27834,7 +27440,7 @@ var deserializeAws_restJson1CACertificate = function (output, context) {
|
|
|
27834
27440
|
return {
|
|
27835
27441
|
certificateArn: __expectString(output.certificateArn),
|
|
27836
27442
|
certificateId: __expectString(output.certificateId),
|
|
27837
|
-
creationDate: output.creationDate
|
|
27443
|
+
creationDate: output.creationDate != null
|
|
27838
27444
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27839
27445
|
: undefined,
|
|
27840
27446
|
status: __expectString(output.status),
|
|
@@ -27845,20 +27451,19 @@ var deserializeAws_restJson1CACertificateDescription = function (output, context
|
|
|
27845
27451
|
autoRegistrationStatus: __expectString(output.autoRegistrationStatus),
|
|
27846
27452
|
certificateArn: __expectString(output.certificateArn),
|
|
27847
27453
|
certificateId: __expectString(output.certificateId),
|
|
27454
|
+
certificateMode: __expectString(output.certificateMode),
|
|
27848
27455
|
certificatePem: __expectString(output.certificatePem),
|
|
27849
|
-
creationDate: output.creationDate
|
|
27456
|
+
creationDate: output.creationDate != null
|
|
27850
27457
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27851
27458
|
: undefined,
|
|
27852
27459
|
customerVersion: __expectInt32(output.customerVersion),
|
|
27853
27460
|
generationId: __expectString(output.generationId),
|
|
27854
|
-
lastModifiedDate: output.lastModifiedDate
|
|
27461
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
27855
27462
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
27856
27463
|
: undefined,
|
|
27857
27464
|
ownedBy: __expectString(output.ownedBy),
|
|
27858
27465
|
status: __expectString(output.status),
|
|
27859
|
-
validity: output.validity
|
|
27860
|
-
? deserializeAws_restJson1CertificateValidity(output.validity, context)
|
|
27861
|
-
: undefined,
|
|
27466
|
+
validity: output.validity != null ? deserializeAws_restJson1CertificateValidity(output.validity, context) : undefined,
|
|
27862
27467
|
};
|
|
27863
27468
|
};
|
|
27864
27469
|
var deserializeAws_restJson1CACertificates = function (output, context) {
|
|
@@ -27877,7 +27482,7 @@ var deserializeAws_restJson1Certificate = function (output, context) {
|
|
|
27877
27482
|
certificateArn: __expectString(output.certificateArn),
|
|
27878
27483
|
certificateId: __expectString(output.certificateId),
|
|
27879
27484
|
certificateMode: __expectString(output.certificateMode),
|
|
27880
|
-
creationDate: output.creationDate
|
|
27485
|
+
creationDate: output.creationDate != null
|
|
27881
27486
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27882
27487
|
: undefined,
|
|
27883
27488
|
status: __expectString(output.status),
|
|
@@ -27890,23 +27495,19 @@ var deserializeAws_restJson1CertificateDescription = function (output, context)
|
|
|
27890
27495
|
certificateId: __expectString(output.certificateId),
|
|
27891
27496
|
certificateMode: __expectString(output.certificateMode),
|
|
27892
27497
|
certificatePem: __expectString(output.certificatePem),
|
|
27893
|
-
creationDate: output.creationDate
|
|
27498
|
+
creationDate: output.creationDate != null
|
|
27894
27499
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
27895
27500
|
: undefined,
|
|
27896
27501
|
customerVersion: __expectInt32(output.customerVersion),
|
|
27897
27502
|
generationId: __expectString(output.generationId),
|
|
27898
|
-
lastModifiedDate: output.lastModifiedDate
|
|
27503
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
27899
27504
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
27900
27505
|
: undefined,
|
|
27901
27506
|
ownedBy: __expectString(output.ownedBy),
|
|
27902
27507
|
previousOwnedBy: __expectString(output.previousOwnedBy),
|
|
27903
27508
|
status: __expectString(output.status),
|
|
27904
|
-
transferData: output.transferData
|
|
27905
|
-
|
|
27906
|
-
: undefined,
|
|
27907
|
-
validity: output.validity !== undefined && output.validity !== null
|
|
27908
|
-
? deserializeAws_restJson1CertificateValidity(output.validity, context)
|
|
27909
|
-
: undefined,
|
|
27509
|
+
transferData: output.transferData != null ? deserializeAws_restJson1TransferData(output.transferData, context) : undefined,
|
|
27510
|
+
validity: output.validity != null ? deserializeAws_restJson1CertificateValidity(output.validity, context) : undefined,
|
|
27910
27511
|
};
|
|
27911
27512
|
};
|
|
27912
27513
|
var deserializeAws_restJson1Certificates = function (output, context) {
|
|
@@ -27922,12 +27523,8 @@ var deserializeAws_restJson1Certificates = function (output, context) {
|
|
|
27922
27523
|
};
|
|
27923
27524
|
var deserializeAws_restJson1CertificateValidity = function (output, context) {
|
|
27924
27525
|
return {
|
|
27925
|
-
notAfter: output.notAfter
|
|
27926
|
-
|
|
27927
|
-
: undefined,
|
|
27928
|
-
notBefore: output.notBefore !== undefined && output.notBefore !== null
|
|
27929
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.notBefore)))
|
|
27930
|
-
: undefined,
|
|
27526
|
+
notAfter: output.notAfter != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.notAfter))) : undefined,
|
|
27527
|
+
notBefore: output.notBefore != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.notBefore))) : undefined,
|
|
27931
27528
|
};
|
|
27932
27529
|
};
|
|
27933
27530
|
var deserializeAws_restJson1Cidrs = function (output, context) {
|
|
@@ -27978,10 +27575,10 @@ var deserializeAws_restJson1CloudwatchMetricAction = function (output, context)
|
|
|
27978
27575
|
var deserializeAws_restJson1CodeSigning = function (output, context) {
|
|
27979
27576
|
return {
|
|
27980
27577
|
awsSignerJobId: __expectString(output.awsSignerJobId),
|
|
27981
|
-
customCodeSigning: output.customCodeSigning
|
|
27578
|
+
customCodeSigning: output.customCodeSigning != null
|
|
27982
27579
|
? deserializeAws_restJson1CustomCodeSigning(output.customCodeSigning, context)
|
|
27983
27580
|
: undefined,
|
|
27984
|
-
startSigningJobParameter: output.startSigningJobParameter
|
|
27581
|
+
startSigningJobParameter: output.startSigningJobParameter != null
|
|
27985
27582
|
? deserializeAws_restJson1StartSigningJobParameter(output.startSigningJobParameter, context)
|
|
27986
27583
|
: undefined,
|
|
27987
27584
|
};
|
|
@@ -27994,9 +27591,7 @@ var deserializeAws_restJson1CodeSigningCertificateChain = function (output, cont
|
|
|
27994
27591
|
};
|
|
27995
27592
|
var deserializeAws_restJson1CodeSigningSignature = function (output, context) {
|
|
27996
27593
|
return {
|
|
27997
|
-
inlineDocument: output.inlineDocument
|
|
27998
|
-
? context.base64Decoder(output.inlineDocument)
|
|
27999
|
-
: undefined,
|
|
27594
|
+
inlineDocument: output.inlineDocument != null ? context.base64Decoder(output.inlineDocument) : undefined,
|
|
28000
27595
|
};
|
|
28001
27596
|
};
|
|
28002
27597
|
var deserializeAws_restJson1Configuration = function (output, context) {
|
|
@@ -28006,31 +27601,23 @@ var deserializeAws_restJson1Configuration = function (output, context) {
|
|
|
28006
27601
|
};
|
|
28007
27602
|
var deserializeAws_restJson1CustomCodeSigning = function (output, context) {
|
|
28008
27603
|
return {
|
|
28009
|
-
certificateChain: output.certificateChain
|
|
27604
|
+
certificateChain: output.certificateChain != null
|
|
28010
27605
|
? deserializeAws_restJson1CodeSigningCertificateChain(output.certificateChain, context)
|
|
28011
27606
|
: undefined,
|
|
28012
27607
|
hashAlgorithm: __expectString(output.hashAlgorithm),
|
|
28013
|
-
signature: output.signature
|
|
28014
|
-
? deserializeAws_restJson1CodeSigningSignature(output.signature, context)
|
|
28015
|
-
: undefined,
|
|
27608
|
+
signature: output.signature != null ? deserializeAws_restJson1CodeSigningSignature(output.signature, context) : undefined,
|
|
28016
27609
|
signatureAlgorithm: __expectString(output.signatureAlgorithm),
|
|
28017
27610
|
};
|
|
28018
27611
|
};
|
|
28019
27612
|
var deserializeAws_restJson1Denied = function (output, context) {
|
|
28020
27613
|
return {
|
|
28021
|
-
explicitDeny: output.explicitDeny
|
|
28022
|
-
|
|
28023
|
-
: undefined,
|
|
28024
|
-
implicitDeny: output.implicitDeny !== undefined && output.implicitDeny !== null
|
|
28025
|
-
? deserializeAws_restJson1ImplicitDeny(output.implicitDeny, context)
|
|
28026
|
-
: undefined,
|
|
27614
|
+
explicitDeny: output.explicitDeny != null ? deserializeAws_restJson1ExplicitDeny(output.explicitDeny, context) : undefined,
|
|
27615
|
+
implicitDeny: output.implicitDeny != null ? deserializeAws_restJson1ImplicitDeny(output.implicitDeny, context) : undefined,
|
|
28027
27616
|
};
|
|
28028
27617
|
};
|
|
28029
27618
|
var deserializeAws_restJson1Destination = function (output, context) {
|
|
28030
27619
|
return {
|
|
28031
|
-
s3Destination: output.s3Destination
|
|
28032
|
-
? deserializeAws_restJson1S3Destination(output.s3Destination, context)
|
|
28033
|
-
: undefined,
|
|
27620
|
+
s3Destination: output.s3Destination != null ? deserializeAws_restJson1S3Destination(output.s3Destination, context) : undefined,
|
|
28034
27621
|
};
|
|
28035
27622
|
};
|
|
28036
27623
|
var deserializeAws_restJson1DetailsMap = function (output, context) {
|
|
@@ -28047,10 +27634,10 @@ var deserializeAws_restJson1DetectMitigationActionExecution = function (output,
|
|
|
28047
27634
|
return {
|
|
28048
27635
|
actionName: __expectString(output.actionName),
|
|
28049
27636
|
errorCode: __expectString(output.errorCode),
|
|
28050
|
-
executionEndDate: output.executionEndDate
|
|
27637
|
+
executionEndDate: output.executionEndDate != null
|
|
28051
27638
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.executionEndDate)))
|
|
28052
27639
|
: undefined,
|
|
28053
|
-
executionStartDate: output.executionStartDate
|
|
27640
|
+
executionStartDate: output.executionStartDate != null
|
|
28054
27641
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.executionStartDate)))
|
|
28055
27642
|
: undefined,
|
|
28056
27643
|
message: __expectString(output.message),
|
|
@@ -28080,26 +27667,26 @@ var deserializeAws_restJson1DetectMitigationActionsTaskStatistics = function (ou
|
|
|
28080
27667
|
};
|
|
28081
27668
|
var deserializeAws_restJson1DetectMitigationActionsTaskSummary = function (output, context) {
|
|
28082
27669
|
return {
|
|
28083
|
-
actionsDefinition: output.actionsDefinition
|
|
27670
|
+
actionsDefinition: output.actionsDefinition != null
|
|
28084
27671
|
? deserializeAws_restJson1MitigationActionList(output.actionsDefinition, context)
|
|
28085
27672
|
: undefined,
|
|
28086
27673
|
onlyActiveViolationsIncluded: __expectBoolean(output.onlyActiveViolationsIncluded),
|
|
28087
27674
|
suppressedAlertsIncluded: __expectBoolean(output.suppressedAlertsIncluded),
|
|
28088
|
-
target: output.target
|
|
27675
|
+
target: output.target != null
|
|
28089
27676
|
? deserializeAws_restJson1DetectMitigationActionsTaskTarget(output.target, context)
|
|
28090
27677
|
: undefined,
|
|
28091
|
-
taskEndTime: output.taskEndTime
|
|
27678
|
+
taskEndTime: output.taskEndTime != null
|
|
28092
27679
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.taskEndTime)))
|
|
28093
27680
|
: undefined,
|
|
28094
27681
|
taskId: __expectString(output.taskId),
|
|
28095
|
-
taskStartTime: output.taskStartTime
|
|
27682
|
+
taskStartTime: output.taskStartTime != null
|
|
28096
27683
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.taskStartTime)))
|
|
28097
27684
|
: undefined,
|
|
28098
|
-
taskStatistics: output.taskStatistics
|
|
27685
|
+
taskStatistics: output.taskStatistics != null
|
|
28099
27686
|
? deserializeAws_restJson1DetectMitigationActionsTaskStatistics(output.taskStatistics, context)
|
|
28100
27687
|
: undefined,
|
|
28101
27688
|
taskStatus: __expectString(output.taskStatus),
|
|
28102
|
-
violationEventOccurrenceRange: output.violationEventOccurrenceRange
|
|
27689
|
+
violationEventOccurrenceRange: output.violationEventOccurrenceRange != null
|
|
28103
27690
|
? deserializeAws_restJson1ViolationEventOccurrenceRange(output.violationEventOccurrenceRange, context)
|
|
28104
27691
|
: undefined,
|
|
28105
27692
|
};
|
|
@@ -28119,7 +27706,7 @@ var deserializeAws_restJson1DetectMitigationActionsTaskTarget = function (output
|
|
|
28119
27706
|
return {
|
|
28120
27707
|
behaviorName: __expectString(output.behaviorName),
|
|
28121
27708
|
securityProfileName: __expectString(output.securityProfileName),
|
|
28122
|
-
violationIds: output.violationIds
|
|
27709
|
+
violationIds: output.violationIds != null
|
|
28123
27710
|
? deserializeAws_restJson1TargetViolationIdsForDetectMitigationActions(output.violationIds, context)
|
|
28124
27711
|
: undefined,
|
|
28125
27712
|
};
|
|
@@ -28200,9 +27787,7 @@ var deserializeAws_restJson1DynamoDBAction = function (output, context) {
|
|
|
28200
27787
|
};
|
|
28201
27788
|
var deserializeAws_restJson1DynamoDBv2Action = function (output, context) {
|
|
28202
27789
|
return {
|
|
28203
|
-
putItem: output.putItem
|
|
28204
|
-
? deserializeAws_restJson1PutItemInput(output.putItem, context)
|
|
28205
|
-
: undefined,
|
|
27790
|
+
putItem: output.putItem != null ? deserializeAws_restJson1PutItemInput(output.putItem, context) : undefined,
|
|
28206
27791
|
roleArn: __expectString(output.roleArn),
|
|
28207
27792
|
};
|
|
28208
27793
|
};
|
|
@@ -28268,16 +27853,14 @@ var deserializeAws_restJson1EventConfigurations = function (output, context) {
|
|
|
28268
27853
|
};
|
|
28269
27854
|
var deserializeAws_restJson1ExplicitDeny = function (output, context) {
|
|
28270
27855
|
return {
|
|
28271
|
-
policies: output.policies
|
|
28272
|
-
? deserializeAws_restJson1Policies(output.policies, context)
|
|
28273
|
-
: undefined,
|
|
27856
|
+
policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
|
|
28274
27857
|
};
|
|
28275
27858
|
};
|
|
28276
27859
|
var deserializeAws_restJson1ExponentialRolloutRate = function (output, context) {
|
|
28277
27860
|
return {
|
|
28278
27861
|
baseRatePerMinute: __expectInt32(output.baseRatePerMinute),
|
|
28279
27862
|
incrementFactor: __limitedParseDouble(output.incrementFactor),
|
|
28280
|
-
rateIncreaseCriteria: output.rateIncreaseCriteria
|
|
27863
|
+
rateIncreaseCriteria: output.rateIncreaseCriteria != null
|
|
28281
27864
|
? deserializeAws_restJson1RateIncreaseCriteria(output.rateIncreaseCriteria, context)
|
|
28282
27865
|
: undefined,
|
|
28283
27866
|
};
|
|
@@ -28301,12 +27884,8 @@ var deserializeAws_restJson1Fields = function (output, context) {
|
|
|
28301
27884
|
};
|
|
28302
27885
|
var deserializeAws_restJson1FileLocation = function (output, context) {
|
|
28303
27886
|
return {
|
|
28304
|
-
s3Location: output.s3Location
|
|
28305
|
-
|
|
28306
|
-
: undefined,
|
|
28307
|
-
stream: output.stream !== undefined && output.stream !== null
|
|
28308
|
-
? deserializeAws_restJson1_Stream(output.stream, context)
|
|
28309
|
-
: undefined,
|
|
27887
|
+
s3Location: output.s3Location != null ? deserializeAws_restJson1S3Location(output.s3Location, context) : undefined,
|
|
27888
|
+
stream: output.stream != null ? deserializeAws_restJson1_Stream(output.stream, context) : undefined,
|
|
28310
27889
|
};
|
|
28311
27890
|
};
|
|
28312
27891
|
var deserializeAws_restJson1FindingIds = function (output, context) {
|
|
@@ -28364,13 +27943,9 @@ var deserializeAws_restJson1HeaderList = function (output, context) {
|
|
|
28364
27943
|
};
|
|
28365
27944
|
var deserializeAws_restJson1HttpAction = function (output, context) {
|
|
28366
27945
|
return {
|
|
28367
|
-
auth: output.auth
|
|
28368
|
-
? deserializeAws_restJson1HttpAuthorization(output.auth, context)
|
|
28369
|
-
: undefined,
|
|
27946
|
+
auth: output.auth != null ? deserializeAws_restJson1HttpAuthorization(output.auth, context) : undefined,
|
|
28370
27947
|
confirmationUrl: __expectString(output.confirmationUrl),
|
|
28371
|
-
headers: output.headers
|
|
28372
|
-
? deserializeAws_restJson1HeaderList(output.headers, context)
|
|
28373
|
-
: undefined,
|
|
27948
|
+
headers: output.headers != null ? deserializeAws_restJson1HeaderList(output.headers, context) : undefined,
|
|
28374
27949
|
url: __expectString(output.url),
|
|
28375
27950
|
};
|
|
28376
27951
|
};
|
|
@@ -28382,9 +27957,7 @@ var deserializeAws_restJson1HttpActionHeader = function (output, context) {
|
|
|
28382
27957
|
};
|
|
28383
27958
|
var deserializeAws_restJson1HttpAuthorization = function (output, context) {
|
|
28384
27959
|
return {
|
|
28385
|
-
sigv4: output.sigv4
|
|
28386
|
-
? deserializeAws_restJson1SigV4Authorization(output.sigv4, context)
|
|
28387
|
-
: undefined,
|
|
27960
|
+
sigv4: output.sigv4 != null ? deserializeAws_restJson1SigV4Authorization(output.sigv4, context) : undefined,
|
|
28388
27961
|
};
|
|
28389
27962
|
};
|
|
28390
27963
|
var deserializeAws_restJson1HttpUrlDestinationProperties = function (output, context) {
|
|
@@ -28399,9 +27972,7 @@ var deserializeAws_restJson1HttpUrlDestinationSummary = function (output, contex
|
|
|
28399
27972
|
};
|
|
28400
27973
|
var deserializeAws_restJson1ImplicitDeny = function (output, context) {
|
|
28401
27974
|
return {
|
|
28402
|
-
policies: output.policies
|
|
28403
|
-
? deserializeAws_restJson1Policies(output.policies, context)
|
|
28404
|
-
: undefined,
|
|
27975
|
+
policies: output.policies != null ? deserializeAws_restJson1Policies(output.policies, context) : undefined,
|
|
28405
27976
|
};
|
|
28406
27977
|
};
|
|
28407
27978
|
var deserializeAws_restJson1IndexNamesList = function (output, context) {
|
|
@@ -28433,7 +28004,7 @@ var deserializeAws_restJson1IotEventsAction = function (output, context) {
|
|
|
28433
28004
|
};
|
|
28434
28005
|
var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
28435
28006
|
return {
|
|
28436
|
-
putAssetPropertyValueEntries: output.putAssetPropertyValueEntries
|
|
28007
|
+
putAssetPropertyValueEntries: output.putAssetPropertyValueEntries != null
|
|
28437
28008
|
? deserializeAws_restJson1PutAssetPropertyValueEntryList(output.putAssetPropertyValueEntries, context)
|
|
28438
28009
|
: undefined,
|
|
28439
28010
|
roleArn: __expectString(output.roleArn),
|
|
@@ -28441,50 +28012,42 @@ var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
|
28441
28012
|
};
|
|
28442
28013
|
var deserializeAws_restJson1Job = function (output, context) {
|
|
28443
28014
|
return {
|
|
28444
|
-
abortConfig: output.abortConfig
|
|
28445
|
-
? deserializeAws_restJson1AbortConfig(output.abortConfig, context)
|
|
28446
|
-
: undefined,
|
|
28015
|
+
abortConfig: output.abortConfig != null ? deserializeAws_restJson1AbortConfig(output.abortConfig, context) : undefined,
|
|
28447
28016
|
comment: __expectString(output.comment),
|
|
28448
|
-
completedAt: output.completedAt
|
|
28017
|
+
completedAt: output.completedAt != null
|
|
28449
28018
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completedAt)))
|
|
28450
28019
|
: undefined,
|
|
28451
|
-
createdAt: output.createdAt
|
|
28452
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
28453
|
-
: undefined,
|
|
28020
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
28454
28021
|
description: __expectString(output.description),
|
|
28455
|
-
documentParameters: output.documentParameters
|
|
28022
|
+
documentParameters: output.documentParameters != null
|
|
28456
28023
|
? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
|
|
28457
28024
|
: undefined,
|
|
28458
28025
|
forceCanceled: __expectBoolean(output.forceCanceled),
|
|
28459
28026
|
isConcurrent: __expectBoolean(output.isConcurrent),
|
|
28460
28027
|
jobArn: __expectString(output.jobArn),
|
|
28461
|
-
jobExecutionsRetryConfig: output.jobExecutionsRetryConfig
|
|
28028
|
+
jobExecutionsRetryConfig: output.jobExecutionsRetryConfig != null
|
|
28462
28029
|
? deserializeAws_restJson1JobExecutionsRetryConfig(output.jobExecutionsRetryConfig, context)
|
|
28463
28030
|
: undefined,
|
|
28464
|
-
jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig
|
|
28031
|
+
jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig != null
|
|
28465
28032
|
? deserializeAws_restJson1JobExecutionsRolloutConfig(output.jobExecutionsRolloutConfig, context)
|
|
28466
28033
|
: undefined,
|
|
28467
28034
|
jobId: __expectString(output.jobId),
|
|
28468
|
-
jobProcessDetails: output.jobProcessDetails
|
|
28035
|
+
jobProcessDetails: output.jobProcessDetails != null
|
|
28469
28036
|
? deserializeAws_restJson1JobProcessDetails(output.jobProcessDetails, context)
|
|
28470
28037
|
: undefined,
|
|
28471
28038
|
jobTemplateArn: __expectString(output.jobTemplateArn),
|
|
28472
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
28039
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
28473
28040
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
28474
28041
|
: undefined,
|
|
28475
28042
|
namespaceId: __expectString(output.namespaceId),
|
|
28476
|
-
presignedUrlConfig: output.presignedUrlConfig
|
|
28043
|
+
presignedUrlConfig: output.presignedUrlConfig != null
|
|
28477
28044
|
? deserializeAws_restJson1PresignedUrlConfig(output.presignedUrlConfig, context)
|
|
28478
28045
|
: undefined,
|
|
28479
28046
|
reasonCode: __expectString(output.reasonCode),
|
|
28480
28047
|
status: __expectString(output.status),
|
|
28481
28048
|
targetSelection: __expectString(output.targetSelection),
|
|
28482
|
-
targets: output.targets
|
|
28483
|
-
|
|
28484
|
-
: undefined,
|
|
28485
|
-
timeoutConfig: output.timeoutConfig !== undefined && output.timeoutConfig !== null
|
|
28486
|
-
? deserializeAws_restJson1TimeoutConfig(output.timeoutConfig, context)
|
|
28487
|
-
: undefined,
|
|
28049
|
+
targets: output.targets != null ? deserializeAws_restJson1JobTargets(output.targets, context) : undefined,
|
|
28050
|
+
timeoutConfig: output.timeoutConfig != null ? deserializeAws_restJson1TimeoutConfig(output.timeoutConfig, context) : undefined,
|
|
28488
28051
|
};
|
|
28489
28052
|
};
|
|
28490
28053
|
var deserializeAws_restJson1JobExecution = function (output, context) {
|
|
@@ -28493,17 +28056,13 @@ var deserializeAws_restJson1JobExecution = function (output, context) {
|
|
|
28493
28056
|
executionNumber: __expectLong(output.executionNumber),
|
|
28494
28057
|
forceCanceled: __expectBoolean(output.forceCanceled),
|
|
28495
28058
|
jobId: __expectString(output.jobId),
|
|
28496
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
28059
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
28497
28060
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
28498
28061
|
: undefined,
|
|
28499
|
-
queuedAt: output.queuedAt
|
|
28500
|
-
|
|
28501
|
-
: undefined,
|
|
28502
|
-
startedAt: output.startedAt !== undefined && output.startedAt !== null
|
|
28503
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt)))
|
|
28504
|
-
: undefined,
|
|
28062
|
+
queuedAt: output.queuedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.queuedAt))) : undefined,
|
|
28063
|
+
startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
|
|
28505
28064
|
status: __expectString(output.status),
|
|
28506
|
-
statusDetails: output.statusDetails
|
|
28065
|
+
statusDetails: output.statusDetails != null
|
|
28507
28066
|
? deserializeAws_restJson1JobExecutionStatusDetails(output.statusDetails, context)
|
|
28508
28067
|
: undefined,
|
|
28509
28068
|
thingArn: __expectString(output.thingArn),
|
|
@@ -28512,14 +28071,12 @@ var deserializeAws_restJson1JobExecution = function (output, context) {
|
|
|
28512
28071
|
};
|
|
28513
28072
|
var deserializeAws_restJson1JobExecutionsRetryConfig = function (output, context) {
|
|
28514
28073
|
return {
|
|
28515
|
-
criteriaList: output.criteriaList
|
|
28516
|
-
? deserializeAws_restJson1RetryCriteriaList(output.criteriaList, context)
|
|
28517
|
-
: undefined,
|
|
28074
|
+
criteriaList: output.criteriaList != null ? deserializeAws_restJson1RetryCriteriaList(output.criteriaList, context) : undefined,
|
|
28518
28075
|
};
|
|
28519
28076
|
};
|
|
28520
28077
|
var deserializeAws_restJson1JobExecutionsRolloutConfig = function (output, context) {
|
|
28521
28078
|
return {
|
|
28522
|
-
exponentialRate: output.exponentialRate
|
|
28079
|
+
exponentialRate: output.exponentialRate != null
|
|
28523
28080
|
? deserializeAws_restJson1ExponentialRolloutRate(output.exponentialRate, context)
|
|
28524
28081
|
: undefined,
|
|
28525
28082
|
maximumPerMinute: __expectInt32(output.maximumPerMinute),
|
|
@@ -28527,30 +28084,24 @@ var deserializeAws_restJson1JobExecutionsRolloutConfig = function (output, conte
|
|
|
28527
28084
|
};
|
|
28528
28085
|
var deserializeAws_restJson1JobExecutionStatusDetails = function (output, context) {
|
|
28529
28086
|
return {
|
|
28530
|
-
detailsMap: output.detailsMap
|
|
28531
|
-
? deserializeAws_restJson1DetailsMap(output.detailsMap, context)
|
|
28532
|
-
: undefined,
|
|
28087
|
+
detailsMap: output.detailsMap != null ? deserializeAws_restJson1DetailsMap(output.detailsMap, context) : undefined,
|
|
28533
28088
|
};
|
|
28534
28089
|
};
|
|
28535
28090
|
var deserializeAws_restJson1JobExecutionSummary = function (output, context) {
|
|
28536
28091
|
return {
|
|
28537
28092
|
executionNumber: __expectLong(output.executionNumber),
|
|
28538
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
28093
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
28539
28094
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
28540
28095
|
: undefined,
|
|
28541
|
-
queuedAt: output.queuedAt
|
|
28542
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.queuedAt)))
|
|
28543
|
-
: undefined,
|
|
28096
|
+
queuedAt: output.queuedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.queuedAt))) : undefined,
|
|
28544
28097
|
retryAttempt: __expectInt32(output.retryAttempt),
|
|
28545
|
-
startedAt: output.startedAt
|
|
28546
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt)))
|
|
28547
|
-
: undefined,
|
|
28098
|
+
startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
|
|
28548
28099
|
status: __expectString(output.status),
|
|
28549
28100
|
};
|
|
28550
28101
|
};
|
|
28551
28102
|
var deserializeAws_restJson1JobExecutionSummaryForJob = function (output, context) {
|
|
28552
28103
|
return {
|
|
28553
|
-
jobExecutionSummary: output.jobExecutionSummary
|
|
28104
|
+
jobExecutionSummary: output.jobExecutionSummary != null
|
|
28554
28105
|
? deserializeAws_restJson1JobExecutionSummary(output.jobExecutionSummary, context)
|
|
28555
28106
|
: undefined,
|
|
28556
28107
|
thingArn: __expectString(output.thingArn),
|
|
@@ -28569,7 +28120,7 @@ var deserializeAws_restJson1JobExecutionSummaryForJobList = function (output, co
|
|
|
28569
28120
|
};
|
|
28570
28121
|
var deserializeAws_restJson1JobExecutionSummaryForThing = function (output, context) {
|
|
28571
28122
|
return {
|
|
28572
|
-
jobExecutionSummary: output.jobExecutionSummary
|
|
28123
|
+
jobExecutionSummary: output.jobExecutionSummary != null
|
|
28573
28124
|
? deserializeAws_restJson1JobExecutionSummary(output.jobExecutionSummary, context)
|
|
28574
28125
|
: undefined,
|
|
28575
28126
|
jobId: __expectString(output.jobId),
|
|
@@ -28596,23 +28147,21 @@ var deserializeAws_restJson1JobProcessDetails = function (output, context) {
|
|
|
28596
28147
|
numberOfRemovedThings: __expectInt32(output.numberOfRemovedThings),
|
|
28597
28148
|
numberOfSucceededThings: __expectInt32(output.numberOfSucceededThings),
|
|
28598
28149
|
numberOfTimedOutThings: __expectInt32(output.numberOfTimedOutThings),
|
|
28599
|
-
processingTargets: output.processingTargets
|
|
28150
|
+
processingTargets: output.processingTargets != null
|
|
28600
28151
|
? deserializeAws_restJson1ProcessingTargetNameList(output.processingTargets, context)
|
|
28601
28152
|
: undefined,
|
|
28602
28153
|
};
|
|
28603
28154
|
};
|
|
28604
28155
|
var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
28605
28156
|
return {
|
|
28606
|
-
completedAt: output.completedAt
|
|
28157
|
+
completedAt: output.completedAt != null
|
|
28607
28158
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.completedAt)))
|
|
28608
28159
|
: undefined,
|
|
28609
|
-
createdAt: output.createdAt
|
|
28610
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
28611
|
-
: undefined,
|
|
28160
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
28612
28161
|
isConcurrent: __expectBoolean(output.isConcurrent),
|
|
28613
28162
|
jobArn: __expectString(output.jobArn),
|
|
28614
28163
|
jobId: __expectString(output.jobId),
|
|
28615
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
28164
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
28616
28165
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
28617
28166
|
: undefined,
|
|
28618
28167
|
status: __expectString(output.status),
|
|
@@ -28644,9 +28193,7 @@ var deserializeAws_restJson1JobTargets = function (output, context) {
|
|
|
28644
28193
|
};
|
|
28645
28194
|
var deserializeAws_restJson1JobTemplateSummary = function (output, context) {
|
|
28646
28195
|
return {
|
|
28647
|
-
createdAt: output.createdAt
|
|
28648
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
28649
|
-
: undefined,
|
|
28196
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
28650
28197
|
description: __expectString(output.description),
|
|
28651
28198
|
jobTemplateArn: __expectString(output.jobTemplateArn),
|
|
28652
28199
|
jobTemplateId: __expectString(output.jobTemplateId),
|
|
@@ -28665,7 +28212,7 @@ var deserializeAws_restJson1JobTemplateSummaryList = function (output, context)
|
|
|
28665
28212
|
};
|
|
28666
28213
|
var deserializeAws_restJson1KafkaAction = function (output, context) {
|
|
28667
28214
|
return {
|
|
28668
|
-
clientProperties: output.clientProperties
|
|
28215
|
+
clientProperties: output.clientProperties != null
|
|
28669
28216
|
? deserializeAws_restJson1ClientProperties(output.clientProperties, context)
|
|
28670
28217
|
: undefined,
|
|
28671
28218
|
destinationArn: __expectString(output.destinationArn),
|
|
@@ -28701,9 +28248,7 @@ var deserializeAws_restJson1LogTarget = function (output, context) {
|
|
|
28701
28248
|
var deserializeAws_restJson1LogTargetConfiguration = function (output, context) {
|
|
28702
28249
|
return {
|
|
28703
28250
|
logLevel: __expectString(output.logLevel),
|
|
28704
|
-
logTarget: output.logTarget
|
|
28705
|
-
? deserializeAws_restJson1LogTarget(output.logTarget, context)
|
|
28706
|
-
: undefined,
|
|
28251
|
+
logTarget: output.logTarget != null ? deserializeAws_restJson1LogTarget(output.logTarget, context) : undefined,
|
|
28707
28252
|
};
|
|
28708
28253
|
};
|
|
28709
28254
|
var deserializeAws_restJson1LogTargetConfigurations = function (output, context) {
|
|
@@ -28736,9 +28281,7 @@ var deserializeAws_restJson1ManagedJobTemplatesSummaryList = function (output, c
|
|
|
28736
28281
|
var deserializeAws_restJson1ManagedJobTemplateSummary = function (output, context) {
|
|
28737
28282
|
return {
|
|
28738
28283
|
description: __expectString(output.description),
|
|
28739
|
-
environments: output.environments
|
|
28740
|
-
? deserializeAws_restJson1Environments(output.environments, context)
|
|
28741
|
-
: undefined,
|
|
28284
|
+
environments: output.environments != null ? deserializeAws_restJson1Environments(output.environments, context) : undefined,
|
|
28742
28285
|
templateArn: __expectString(output.templateArn),
|
|
28743
28286
|
templateName: __expectString(output.templateName),
|
|
28744
28287
|
templateVersion: __expectString(output.templateVersion),
|
|
@@ -28746,12 +28289,8 @@ var deserializeAws_restJson1ManagedJobTemplateSummary = function (output, contex
|
|
|
28746
28289
|
};
|
|
28747
28290
|
var deserializeAws_restJson1MetricDatum = function (output, context) {
|
|
28748
28291
|
return {
|
|
28749
|
-
timestamp: output.timestamp
|
|
28750
|
-
|
|
28751
|
-
: undefined,
|
|
28752
|
-
value: output.value !== undefined && output.value !== null
|
|
28753
|
-
? deserializeAws_restJson1MetricValue(output.value, context)
|
|
28754
|
-
: undefined,
|
|
28292
|
+
timestamp: output.timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.timestamp))) : undefined,
|
|
28293
|
+
value: output.value != null ? deserializeAws_restJson1MetricValue(output.value, context) : undefined,
|
|
28755
28294
|
};
|
|
28756
28295
|
};
|
|
28757
28296
|
var deserializeAws_restJson1MetricDatumList = function (output, context) {
|
|
@@ -28785,27 +28324,19 @@ var deserializeAws_restJson1MetricNames = function (output, context) {
|
|
|
28785
28324
|
var deserializeAws_restJson1MetricToRetain = function (output, context) {
|
|
28786
28325
|
return {
|
|
28787
28326
|
metric: __expectString(output.metric),
|
|
28788
|
-
metricDimension: output.metricDimension
|
|
28327
|
+
metricDimension: output.metricDimension != null
|
|
28789
28328
|
? deserializeAws_restJson1MetricDimension(output.metricDimension, context)
|
|
28790
28329
|
: undefined,
|
|
28791
28330
|
};
|
|
28792
28331
|
};
|
|
28793
28332
|
var deserializeAws_restJson1MetricValue = function (output, context) {
|
|
28794
28333
|
return {
|
|
28795
|
-
cidrs: output.cidrs
|
|
28796
|
-
? deserializeAws_restJson1Cidrs(output.cidrs, context)
|
|
28797
|
-
: undefined,
|
|
28334
|
+
cidrs: output.cidrs != null ? deserializeAws_restJson1Cidrs(output.cidrs, context) : undefined,
|
|
28798
28335
|
count: __expectLong(output.count),
|
|
28799
28336
|
number: __limitedParseDouble(output.number),
|
|
28800
|
-
numbers: output.numbers
|
|
28801
|
-
|
|
28802
|
-
|
|
28803
|
-
ports: output.ports !== undefined && output.ports !== null
|
|
28804
|
-
? deserializeAws_restJson1Ports(output.ports, context)
|
|
28805
|
-
: undefined,
|
|
28806
|
-
strings: output.strings !== undefined && output.strings !== null
|
|
28807
|
-
? deserializeAws_restJson1StringList(output.strings, context)
|
|
28808
|
-
: 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,
|
|
28809
28340
|
};
|
|
28810
28341
|
};
|
|
28811
28342
|
var deserializeAws_restJson1MissingContextValues = function (output, context) {
|
|
@@ -28821,7 +28352,7 @@ var deserializeAws_restJson1MissingContextValues = function (output, context) {
|
|
|
28821
28352
|
};
|
|
28822
28353
|
var deserializeAws_restJson1MitigationAction = function (output, context) {
|
|
28823
28354
|
return {
|
|
28824
|
-
actionParams: output.actionParams
|
|
28355
|
+
actionParams: output.actionParams != null
|
|
28825
28356
|
? deserializeAws_restJson1MitigationActionParams(output.actionParams, context)
|
|
28826
28357
|
: undefined,
|
|
28827
28358
|
id: __expectString(output.id),
|
|
@@ -28833,7 +28364,7 @@ var deserializeAws_restJson1MitigationActionIdentifier = function (output, conte
|
|
|
28833
28364
|
return {
|
|
28834
28365
|
actionArn: __expectString(output.actionArn),
|
|
28835
28366
|
actionName: __expectString(output.actionName),
|
|
28836
|
-
creationDate: output.creationDate
|
|
28367
|
+
creationDate: output.creationDate != null
|
|
28837
28368
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
28838
28369
|
: undefined,
|
|
28839
28370
|
};
|
|
@@ -28873,32 +28404,30 @@ var deserializeAws_restJson1MitigationActionNameList = function (output, context
|
|
|
28873
28404
|
};
|
|
28874
28405
|
var deserializeAws_restJson1MitigationActionParams = function (output, context) {
|
|
28875
28406
|
return {
|
|
28876
|
-
addThingsToThingGroupParams: output.addThingsToThingGroupParams
|
|
28407
|
+
addThingsToThingGroupParams: output.addThingsToThingGroupParams != null
|
|
28877
28408
|
? deserializeAws_restJson1AddThingsToThingGroupParams(output.addThingsToThingGroupParams, context)
|
|
28878
28409
|
: undefined,
|
|
28879
|
-
enableIoTLoggingParams: output.enableIoTLoggingParams
|
|
28410
|
+
enableIoTLoggingParams: output.enableIoTLoggingParams != null
|
|
28880
28411
|
? deserializeAws_restJson1EnableIoTLoggingParams(output.enableIoTLoggingParams, context)
|
|
28881
28412
|
: undefined,
|
|
28882
|
-
publishFindingToSnsParams: output.publishFindingToSnsParams
|
|
28413
|
+
publishFindingToSnsParams: output.publishFindingToSnsParams != null
|
|
28883
28414
|
? deserializeAws_restJson1PublishFindingToSnsParams(output.publishFindingToSnsParams, context)
|
|
28884
28415
|
: undefined,
|
|
28885
|
-
replaceDefaultPolicyVersionParams: output.replaceDefaultPolicyVersionParams
|
|
28416
|
+
replaceDefaultPolicyVersionParams: output.replaceDefaultPolicyVersionParams != null
|
|
28886
28417
|
? deserializeAws_restJson1ReplaceDefaultPolicyVersionParams(output.replaceDefaultPolicyVersionParams, context)
|
|
28887
28418
|
: undefined,
|
|
28888
|
-
updateCACertificateParams: output.updateCACertificateParams
|
|
28419
|
+
updateCACertificateParams: output.updateCACertificateParams != null
|
|
28889
28420
|
? deserializeAws_restJson1UpdateCACertificateParams(output.updateCACertificateParams, context)
|
|
28890
28421
|
: undefined,
|
|
28891
|
-
updateDeviceCertificateParams: output.updateDeviceCertificateParams
|
|
28422
|
+
updateDeviceCertificateParams: output.updateDeviceCertificateParams != null
|
|
28892
28423
|
? deserializeAws_restJson1UpdateDeviceCertificateParams(output.updateDeviceCertificateParams, context)
|
|
28893
28424
|
: undefined,
|
|
28894
28425
|
};
|
|
28895
28426
|
};
|
|
28896
28427
|
var deserializeAws_restJson1NonCompliantResource = function (output, context) {
|
|
28897
28428
|
return {
|
|
28898
|
-
additionalInfo: output.additionalInfo
|
|
28899
|
-
|
|
28900
|
-
: undefined,
|
|
28901
|
-
resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
|
|
28429
|
+
additionalInfo: output.additionalInfo != null ? deserializeAws_restJson1StringMap(output.additionalInfo, context) : undefined,
|
|
28430
|
+
resourceIdentifier: output.resourceIdentifier != null
|
|
28902
28431
|
? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
|
|
28903
28432
|
: undefined,
|
|
28904
28433
|
resourceType: __expectString(output.resourceType),
|
|
@@ -28926,15 +28455,9 @@ var deserializeAws_restJson1OpenSearchAction = function (output, context) {
|
|
|
28926
28455
|
};
|
|
28927
28456
|
var deserializeAws_restJson1OTAUpdateFile = function (output, context) {
|
|
28928
28457
|
return {
|
|
28929
|
-
attributes: output.attributes
|
|
28930
|
-
|
|
28931
|
-
|
|
28932
|
-
codeSigning: output.codeSigning !== undefined && output.codeSigning !== null
|
|
28933
|
-
? deserializeAws_restJson1CodeSigning(output.codeSigning, context)
|
|
28934
|
-
: undefined,
|
|
28935
|
-
fileLocation: output.fileLocation !== undefined && output.fileLocation !== null
|
|
28936
|
-
? deserializeAws_restJson1FileLocation(output.fileLocation, context)
|
|
28937
|
-
: 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,
|
|
28938
28461
|
fileName: __expectString(output.fileName),
|
|
28939
28462
|
fileType: __expectInt32(output.fileType),
|
|
28940
28463
|
fileVersion: __expectString(output.fileVersion),
|
|
@@ -28953,40 +28476,34 @@ var deserializeAws_restJson1OTAUpdateFiles = function (output, context) {
|
|
|
28953
28476
|
};
|
|
28954
28477
|
var deserializeAws_restJson1OTAUpdateInfo = function (output, context) {
|
|
28955
28478
|
return {
|
|
28956
|
-
additionalParameters: output.additionalParameters
|
|
28479
|
+
additionalParameters: output.additionalParameters != null
|
|
28957
28480
|
? deserializeAws_restJson1AdditionalParameterMap(output.additionalParameters, context)
|
|
28958
28481
|
: undefined,
|
|
28959
28482
|
awsIotJobArn: __expectString(output.awsIotJobArn),
|
|
28960
28483
|
awsIotJobId: __expectString(output.awsIotJobId),
|
|
28961
|
-
awsJobExecutionsRolloutConfig: output.awsJobExecutionsRolloutConfig
|
|
28484
|
+
awsJobExecutionsRolloutConfig: output.awsJobExecutionsRolloutConfig != null
|
|
28962
28485
|
? deserializeAws_restJson1AwsJobExecutionsRolloutConfig(output.awsJobExecutionsRolloutConfig, context)
|
|
28963
28486
|
: undefined,
|
|
28964
|
-
awsJobPresignedUrlConfig: output.awsJobPresignedUrlConfig
|
|
28487
|
+
awsJobPresignedUrlConfig: output.awsJobPresignedUrlConfig != null
|
|
28965
28488
|
? deserializeAws_restJson1AwsJobPresignedUrlConfig(output.awsJobPresignedUrlConfig, context)
|
|
28966
28489
|
: undefined,
|
|
28967
|
-
creationDate: output.creationDate
|
|
28490
|
+
creationDate: output.creationDate != null
|
|
28968
28491
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
28969
28492
|
: undefined,
|
|
28970
28493
|
description: __expectString(output.description),
|
|
28971
|
-
errorInfo: output.errorInfo
|
|
28972
|
-
|
|
28973
|
-
: undefined,
|
|
28974
|
-
lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
|
|
28494
|
+
errorInfo: output.errorInfo != null ? deserializeAws_restJson1ErrorInfo(output.errorInfo, context) : undefined,
|
|
28495
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
28975
28496
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
28976
28497
|
: undefined,
|
|
28977
28498
|
otaUpdateArn: __expectString(output.otaUpdateArn),
|
|
28978
|
-
otaUpdateFiles: output.otaUpdateFiles
|
|
28499
|
+
otaUpdateFiles: output.otaUpdateFiles != null
|
|
28979
28500
|
? deserializeAws_restJson1OTAUpdateFiles(output.otaUpdateFiles, context)
|
|
28980
28501
|
: undefined,
|
|
28981
28502
|
otaUpdateId: __expectString(output.otaUpdateId),
|
|
28982
28503
|
otaUpdateStatus: __expectString(output.otaUpdateStatus),
|
|
28983
|
-
protocols: output.protocols
|
|
28984
|
-
? deserializeAws_restJson1Protocols(output.protocols, context)
|
|
28985
|
-
: undefined,
|
|
28504
|
+
protocols: output.protocols != null ? deserializeAws_restJson1Protocols(output.protocols, context) : undefined,
|
|
28986
28505
|
targetSelection: __expectString(output.targetSelection),
|
|
28987
|
-
targets: output.targets
|
|
28988
|
-
? deserializeAws_restJson1Targets(output.targets, context)
|
|
28989
|
-
: undefined,
|
|
28506
|
+
targets: output.targets != null ? deserializeAws_restJson1Targets(output.targets, context) : undefined,
|
|
28990
28507
|
};
|
|
28991
28508
|
};
|
|
28992
28509
|
var deserializeAws_restJson1OTAUpdatesSummary = function (output, context) {
|
|
@@ -29002,7 +28519,7 @@ var deserializeAws_restJson1OTAUpdatesSummary = function (output, context) {
|
|
|
29002
28519
|
};
|
|
29003
28520
|
var deserializeAws_restJson1OTAUpdateSummary = function (output, context) {
|
|
29004
28521
|
return {
|
|
29005
|
-
creationDate: output.creationDate
|
|
28522
|
+
creationDate: output.creationDate != null
|
|
29006
28523
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29007
28524
|
: undefined,
|
|
29008
28525
|
otaUpdateArn: __expectString(output.otaUpdateArn),
|
|
@@ -29013,10 +28530,10 @@ var deserializeAws_restJson1OutgoingCertificate = function (output, context) {
|
|
|
29013
28530
|
return {
|
|
29014
28531
|
certificateArn: __expectString(output.certificateArn),
|
|
29015
28532
|
certificateId: __expectString(output.certificateId),
|
|
29016
|
-
creationDate: output.creationDate
|
|
28533
|
+
creationDate: output.creationDate != null
|
|
29017
28534
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29018
28535
|
: undefined,
|
|
29019
|
-
transferDate: output.transferDate
|
|
28536
|
+
transferDate: output.transferDate != null
|
|
29020
28537
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.transferDate)))
|
|
29021
28538
|
: undefined,
|
|
29022
28539
|
transferMessage: __expectString(output.transferMessage),
|
|
@@ -29102,9 +28619,7 @@ var deserializeAws_restJson1PolicyTargets = function (output, context) {
|
|
|
29102
28619
|
};
|
|
29103
28620
|
var deserializeAws_restJson1PolicyVersion = function (output, context) {
|
|
29104
28621
|
return {
|
|
29105
|
-
createDate: output.createDate
|
|
29106
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createDate)))
|
|
29107
|
-
: undefined,
|
|
28622
|
+
createDate: output.createDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createDate))) : undefined,
|
|
29108
28623
|
isDefaultVersion: __expectBoolean(output.isDefaultVersion),
|
|
29109
28624
|
versionId: __expectString(output.versionId),
|
|
29110
28625
|
};
|
|
@@ -29195,12 +28710,12 @@ var deserializeAws_restJson1ProvisioningTemplateListing = function (output, cont
|
|
|
29195
28710
|
};
|
|
29196
28711
|
var deserializeAws_restJson1ProvisioningTemplateSummary = function (output, context) {
|
|
29197
28712
|
return {
|
|
29198
|
-
creationDate: output.creationDate
|
|
28713
|
+
creationDate: output.creationDate != null
|
|
29199
28714
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29200
28715
|
: undefined,
|
|
29201
28716
|
description: __expectString(output.description),
|
|
29202
28717
|
enabled: __expectBoolean(output.enabled),
|
|
29203
|
-
lastModifiedDate: output.lastModifiedDate
|
|
28718
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
29204
28719
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
29205
28720
|
: undefined,
|
|
29206
28721
|
templateArn: __expectString(output.templateArn),
|
|
@@ -29220,7 +28735,7 @@ var deserializeAws_restJson1ProvisioningTemplateVersionListing = function (outpu
|
|
|
29220
28735
|
};
|
|
29221
28736
|
var deserializeAws_restJson1ProvisioningTemplateVersionSummary = function (output, context) {
|
|
29222
28737
|
return {
|
|
29223
|
-
creationDate: output.creationDate
|
|
28738
|
+
creationDate: output.creationDate != null
|
|
29224
28739
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29225
28740
|
: undefined,
|
|
29226
28741
|
isDefaultVersion: __expectBoolean(output.isDefaultVersion),
|
|
@@ -29248,7 +28763,7 @@ var deserializeAws_restJson1PutAssetPropertyValueEntry = function (output, conte
|
|
|
29248
28763
|
entryId: __expectString(output.entryId),
|
|
29249
28764
|
propertyAlias: __expectString(output.propertyAlias),
|
|
29250
28765
|
propertyId: __expectString(output.propertyId),
|
|
29251
|
-
propertyValues: output.propertyValues
|
|
28766
|
+
propertyValues: output.propertyValues != null
|
|
29252
28767
|
? deserializeAws_restJson1AssetPropertyValueList(output.propertyValues, context)
|
|
29253
28768
|
: undefined,
|
|
29254
28769
|
};
|
|
@@ -29294,10 +28809,8 @@ var deserializeAws_restJson1RegistrationConfig = function (output, context) {
|
|
|
29294
28809
|
};
|
|
29295
28810
|
var deserializeAws_restJson1RelatedResource = function (output, context) {
|
|
29296
28811
|
return {
|
|
29297
|
-
additionalInfo: output.additionalInfo
|
|
29298
|
-
|
|
29299
|
-
: undefined,
|
|
29300
|
-
resourceIdentifier: output.resourceIdentifier !== undefined && output.resourceIdentifier !== null
|
|
28812
|
+
additionalInfo: output.additionalInfo != null ? deserializeAws_restJson1StringMap(output.additionalInfo, context) : undefined,
|
|
28813
|
+
resourceIdentifier: output.resourceIdentifier != null
|
|
29301
28814
|
? deserializeAws_restJson1ResourceIdentifier(output.resourceIdentifier, context)
|
|
29302
28815
|
: undefined,
|
|
29303
28816
|
resourceType: __expectString(output.resourceType),
|
|
@@ -29344,7 +28857,7 @@ var deserializeAws_restJson1ResourceIdentifier = function (output, context) {
|
|
|
29344
28857
|
cognitoIdentityPoolId: __expectString(output.cognitoIdentityPoolId),
|
|
29345
28858
|
deviceCertificateId: __expectString(output.deviceCertificateId),
|
|
29346
28859
|
iamRoleArn: __expectString(output.iamRoleArn),
|
|
29347
|
-
policyVersionIdentifier: output.policyVersionIdentifier
|
|
28860
|
+
policyVersionIdentifier: output.policyVersionIdentifier != null
|
|
29348
28861
|
? deserializeAws_restJson1PolicyVersionIdentifier(output.policyVersionIdentifier, context)
|
|
29349
28862
|
: undefined,
|
|
29350
28863
|
roleAliasArn: __expectString(output.roleAliasArn),
|
|
@@ -29380,11 +28893,11 @@ var deserializeAws_restJson1RetryCriteriaList = function (output, context) {
|
|
|
29380
28893
|
};
|
|
29381
28894
|
var deserializeAws_restJson1RoleAliasDescription = function (output, context) {
|
|
29382
28895
|
return {
|
|
29383
|
-
creationDate: output.creationDate
|
|
28896
|
+
creationDate: output.creationDate != null
|
|
29384
28897
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29385
28898
|
: undefined,
|
|
29386
28899
|
credentialDurationSeconds: __expectInt32(output.credentialDurationSeconds),
|
|
29387
|
-
lastModifiedDate: output.lastModifiedDate
|
|
28900
|
+
lastModifiedDate: output.lastModifiedDate != null
|
|
29388
28901
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
29389
28902
|
: undefined,
|
|
29390
28903
|
owner: __expectString(output.owner),
|
|
@@ -29508,12 +29021,10 @@ var deserializeAws_restJson1SecurityProfileTarget = function (output, context) {
|
|
|
29508
29021
|
};
|
|
29509
29022
|
var deserializeAws_restJson1SecurityProfileTargetMapping = function (output, context) {
|
|
29510
29023
|
return {
|
|
29511
|
-
securityProfileIdentifier: output.securityProfileIdentifier
|
|
29024
|
+
securityProfileIdentifier: output.securityProfileIdentifier != null
|
|
29512
29025
|
? deserializeAws_restJson1SecurityProfileIdentifier(output.securityProfileIdentifier, context)
|
|
29513
29026
|
: undefined,
|
|
29514
|
-
target: output.target
|
|
29515
|
-
? deserializeAws_restJson1SecurityProfileTarget(output.target, context)
|
|
29516
|
-
: undefined,
|
|
29027
|
+
target: output.target != null ? deserializeAws_restJson1SecurityProfileTarget(output.target, context) : undefined,
|
|
29517
29028
|
};
|
|
29518
29029
|
};
|
|
29519
29030
|
var deserializeAws_restJson1SecurityProfileTargetMappings = function (output, context) {
|
|
@@ -29586,11 +29097,9 @@ var deserializeAws_restJson1SqsAction = function (output, context) {
|
|
|
29586
29097
|
};
|
|
29587
29098
|
var deserializeAws_restJson1StartSigningJobParameter = function (output, context) {
|
|
29588
29099
|
return {
|
|
29589
|
-
destination: output.destination
|
|
29590
|
-
? deserializeAws_restJson1Destination(output.destination, context)
|
|
29591
|
-
: undefined,
|
|
29100
|
+
destination: output.destination != null ? deserializeAws_restJson1Destination(output.destination, context) : undefined,
|
|
29592
29101
|
signingProfileName: __expectString(output.signingProfileName),
|
|
29593
|
-
signingProfileParameter: output.signingProfileParameter
|
|
29102
|
+
signingProfileParameter: output.signingProfileParameter != null
|
|
29594
29103
|
? deserializeAws_restJson1SigningProfileParameter(output.signingProfileParameter, context)
|
|
29595
29104
|
: undefined,
|
|
29596
29105
|
};
|
|
@@ -29628,9 +29137,7 @@ var deserializeAws_restJson1_Stream = function (output, context) {
|
|
|
29628
29137
|
var deserializeAws_restJson1StreamFile = function (output, context) {
|
|
29629
29138
|
return {
|
|
29630
29139
|
fileId: __expectInt32(output.fileId),
|
|
29631
|
-
s3Location: output.s3Location
|
|
29632
|
-
? deserializeAws_restJson1S3Location(output.s3Location, context)
|
|
29633
|
-
: undefined,
|
|
29140
|
+
s3Location: output.s3Location != null ? deserializeAws_restJson1S3Location(output.s3Location, context) : undefined,
|
|
29634
29141
|
};
|
|
29635
29142
|
};
|
|
29636
29143
|
var deserializeAws_restJson1StreamFiles = function (output, context) {
|
|
@@ -29646,14 +29153,10 @@ var deserializeAws_restJson1StreamFiles = function (output, context) {
|
|
|
29646
29153
|
};
|
|
29647
29154
|
var deserializeAws_restJson1StreamInfo = function (output, context) {
|
|
29648
29155
|
return {
|
|
29649
|
-
createdAt: output.createdAt
|
|
29650
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
29651
|
-
: undefined,
|
|
29156
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
29652
29157
|
description: __expectString(output.description),
|
|
29653
|
-
files: output.files
|
|
29654
|
-
|
|
29655
|
-
: undefined,
|
|
29656
|
-
lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
|
|
29158
|
+
files: output.files != null ? deserializeAws_restJson1StreamFiles(output.files, context) : undefined,
|
|
29159
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
29657
29160
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
29658
29161
|
: undefined,
|
|
29659
29162
|
roleArn: __expectString(output.roleArn),
|
|
@@ -29796,9 +29299,7 @@ var deserializeAws_restJson1TaskStatisticsForAuditCheck = function (output, cont
|
|
|
29796
29299
|
};
|
|
29797
29300
|
var deserializeAws_restJson1ThingAttribute = function (output, context) {
|
|
29798
29301
|
return {
|
|
29799
|
-
attributes: output.attributes
|
|
29800
|
-
? deserializeAws_restJson1Attributes(output.attributes, context)
|
|
29801
|
-
: undefined,
|
|
29302
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
29802
29303
|
thingArn: __expectString(output.thingArn),
|
|
29803
29304
|
thingName: __expectString(output.thingName),
|
|
29804
29305
|
thingTypeName: __expectString(output.thingTypeName),
|
|
@@ -29825,15 +29326,11 @@ var deserializeAws_restJson1ThingConnectivity = function (output, context) {
|
|
|
29825
29326
|
};
|
|
29826
29327
|
var deserializeAws_restJson1ThingDocument = function (output, context) {
|
|
29827
29328
|
return {
|
|
29828
|
-
attributes: output.attributes
|
|
29829
|
-
|
|
29830
|
-
: undefined,
|
|
29831
|
-
connectivity: output.connectivity !== undefined && output.connectivity !== null
|
|
29832
|
-
? deserializeAws_restJson1ThingConnectivity(output.connectivity, context)
|
|
29833
|
-
: undefined,
|
|
29329
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
29330
|
+
connectivity: output.connectivity != null ? deserializeAws_restJson1ThingConnectivity(output.connectivity, context) : undefined,
|
|
29834
29331
|
deviceDefender: __expectString(output.deviceDefender),
|
|
29835
29332
|
shadow: __expectString(output.shadow),
|
|
29836
|
-
thingGroupNames: output.thingGroupNames
|
|
29333
|
+
thingGroupNames: output.thingGroupNames != null
|
|
29837
29334
|
? deserializeAws_restJson1ThingGroupNameList(output.thingGroupNames, context)
|
|
29838
29335
|
: undefined,
|
|
29839
29336
|
thingId: __expectString(output.thingId),
|
|
@@ -29854,10 +29351,8 @@ var deserializeAws_restJson1ThingDocumentList = function (output, context) {
|
|
|
29854
29351
|
};
|
|
29855
29352
|
var deserializeAws_restJson1ThingGroupDocument = function (output, context) {
|
|
29856
29353
|
return {
|
|
29857
|
-
attributes: output.attributes
|
|
29858
|
-
|
|
29859
|
-
: undefined,
|
|
29860
|
-
parentGroupNames: output.parentGroupNames !== undefined && output.parentGroupNames !== null
|
|
29354
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
29355
|
+
parentGroupNames: output.parentGroupNames != null
|
|
29861
29356
|
? deserializeAws_restJson1ThingGroupNameList(output.parentGroupNames, context)
|
|
29862
29357
|
: undefined,
|
|
29863
29358
|
thingGroupDescription: __expectString(output.thingGroupDescription),
|
|
@@ -29878,22 +29373,18 @@ var deserializeAws_restJson1ThingGroupDocumentList = function (output, context)
|
|
|
29878
29373
|
};
|
|
29879
29374
|
var deserializeAws_restJson1ThingGroupIndexingConfiguration = function (output, context) {
|
|
29880
29375
|
return {
|
|
29881
|
-
customFields: output.customFields
|
|
29882
|
-
|
|
29883
|
-
: undefined,
|
|
29884
|
-
managedFields: output.managedFields !== undefined && output.managedFields !== null
|
|
29885
|
-
? deserializeAws_restJson1Fields(output.managedFields, context)
|
|
29886
|
-
: undefined,
|
|
29376
|
+
customFields: output.customFields != null ? deserializeAws_restJson1Fields(output.customFields, context) : undefined,
|
|
29377
|
+
managedFields: output.managedFields != null ? deserializeAws_restJson1Fields(output.managedFields, context) : undefined,
|
|
29887
29378
|
thingGroupIndexingMode: __expectString(output.thingGroupIndexingMode),
|
|
29888
29379
|
};
|
|
29889
29380
|
};
|
|
29890
29381
|
var deserializeAws_restJson1ThingGroupMetadata = function (output, context) {
|
|
29891
29382
|
return {
|
|
29892
|
-
creationDate: output.creationDate
|
|
29383
|
+
creationDate: output.creationDate != null
|
|
29893
29384
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29894
29385
|
: undefined,
|
|
29895
29386
|
parentGroupName: __expectString(output.parentGroupName),
|
|
29896
|
-
rootToParentThingGroups: output.rootToParentThingGroups
|
|
29387
|
+
rootToParentThingGroups: output.rootToParentThingGroups != null
|
|
29897
29388
|
? deserializeAws_restJson1ThingGroupNameAndArnList(output.rootToParentThingGroups, context)
|
|
29898
29389
|
: undefined,
|
|
29899
29390
|
};
|
|
@@ -29933,7 +29424,7 @@ var deserializeAws_restJson1ThingGroupNames = function (output, context) {
|
|
|
29933
29424
|
};
|
|
29934
29425
|
var deserializeAws_restJson1ThingGroupProperties = function (output, context) {
|
|
29935
29426
|
return {
|
|
29936
|
-
attributePayload: output.attributePayload
|
|
29427
|
+
attributePayload: output.attributePayload != null
|
|
29937
29428
|
? deserializeAws_restJson1AttributePayload(output.attributePayload, context)
|
|
29938
29429
|
: undefined,
|
|
29939
29430
|
thingGroupDescription: __expectString(output.thingGroupDescription),
|
|
@@ -29941,13 +29432,9 @@ var deserializeAws_restJson1ThingGroupProperties = function (output, context) {
|
|
|
29941
29432
|
};
|
|
29942
29433
|
var deserializeAws_restJson1ThingIndexingConfiguration = function (output, context) {
|
|
29943
29434
|
return {
|
|
29944
|
-
customFields: output.customFields
|
|
29945
|
-
? deserializeAws_restJson1Fields(output.customFields, context)
|
|
29946
|
-
: undefined,
|
|
29435
|
+
customFields: output.customFields != null ? deserializeAws_restJson1Fields(output.customFields, context) : undefined,
|
|
29947
29436
|
deviceDefenderIndexingMode: __expectString(output.deviceDefenderIndexingMode),
|
|
29948
|
-
managedFields: output.managedFields
|
|
29949
|
-
? deserializeAws_restJson1Fields(output.managedFields, context)
|
|
29950
|
-
: undefined,
|
|
29437
|
+
managedFields: output.managedFields != null ? deserializeAws_restJson1Fields(output.managedFields, context) : undefined,
|
|
29951
29438
|
namedShadowIndexingMode: __expectString(output.namedShadowIndexingMode),
|
|
29952
29439
|
thingConnectivityIndexingMode: __expectString(output.thingConnectivityIndexingMode),
|
|
29953
29440
|
thingIndexingMode: __expectString(output.thingIndexingMode),
|
|
@@ -29967,11 +29454,11 @@ var deserializeAws_restJson1ThingNameList = function (output, context) {
|
|
|
29967
29454
|
var deserializeAws_restJson1ThingTypeDefinition = function (output, context) {
|
|
29968
29455
|
return {
|
|
29969
29456
|
thingTypeArn: __expectString(output.thingTypeArn),
|
|
29970
|
-
thingTypeMetadata: output.thingTypeMetadata
|
|
29457
|
+
thingTypeMetadata: output.thingTypeMetadata != null
|
|
29971
29458
|
? deserializeAws_restJson1ThingTypeMetadata(output.thingTypeMetadata, context)
|
|
29972
29459
|
: undefined,
|
|
29973
29460
|
thingTypeName: __expectString(output.thingTypeName),
|
|
29974
|
-
thingTypeProperties: output.thingTypeProperties
|
|
29461
|
+
thingTypeProperties: output.thingTypeProperties != null
|
|
29975
29462
|
? deserializeAws_restJson1ThingTypeProperties(output.thingTypeProperties, context)
|
|
29976
29463
|
: undefined,
|
|
29977
29464
|
};
|
|
@@ -29989,18 +29476,18 @@ var deserializeAws_restJson1ThingTypeList = function (output, context) {
|
|
|
29989
29476
|
};
|
|
29990
29477
|
var deserializeAws_restJson1ThingTypeMetadata = function (output, context) {
|
|
29991
29478
|
return {
|
|
29992
|
-
creationDate: output.creationDate
|
|
29479
|
+
creationDate: output.creationDate != null
|
|
29993
29480
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
29994
29481
|
: undefined,
|
|
29995
29482
|
deprecated: __expectBoolean(output.deprecated),
|
|
29996
|
-
deprecationDate: output.deprecationDate
|
|
29483
|
+
deprecationDate: output.deprecationDate != null
|
|
29997
29484
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.deprecationDate)))
|
|
29998
29485
|
: undefined,
|
|
29999
29486
|
};
|
|
30000
29487
|
};
|
|
30001
29488
|
var deserializeAws_restJson1ThingTypeProperties = function (output, context) {
|
|
30002
29489
|
return {
|
|
30003
|
-
searchableAttributes: output.searchableAttributes
|
|
29490
|
+
searchableAttributes: output.searchableAttributes != null
|
|
30004
29491
|
? deserializeAws_restJson1SearchableAttributes(output.searchableAttributes, context)
|
|
30005
29492
|
: undefined,
|
|
30006
29493
|
thingTypeDescription: __expectString(output.thingTypeDescription),
|
|
@@ -30014,14 +29501,12 @@ var deserializeAws_restJson1TimeoutConfig = function (output, context) {
|
|
|
30014
29501
|
var deserializeAws_restJson1TimestreamAction = function (output, context) {
|
|
30015
29502
|
return {
|
|
30016
29503
|
databaseName: __expectString(output.databaseName),
|
|
30017
|
-
dimensions: output.dimensions
|
|
29504
|
+
dimensions: output.dimensions != null
|
|
30018
29505
|
? deserializeAws_restJson1TimestreamDimensionList(output.dimensions, context)
|
|
30019
29506
|
: undefined,
|
|
30020
29507
|
roleArn: __expectString(output.roleArn),
|
|
30021
29508
|
tableName: __expectString(output.tableName),
|
|
30022
|
-
timestamp: output.timestamp
|
|
30023
|
-
? deserializeAws_restJson1TimestreamTimestamp(output.timestamp, context)
|
|
30024
|
-
: undefined,
|
|
29509
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1TimestreamTimestamp(output.timestamp, context) : undefined,
|
|
30025
29510
|
};
|
|
30026
29511
|
};
|
|
30027
29512
|
var deserializeAws_restJson1TimestreamDimension = function (output, context) {
|
|
@@ -30049,17 +29534,11 @@ var deserializeAws_restJson1TimestreamTimestamp = function (output, context) {
|
|
|
30049
29534
|
};
|
|
30050
29535
|
var deserializeAws_restJson1TopicRule = function (output, context) {
|
|
30051
29536
|
return {
|
|
30052
|
-
actions: output.actions
|
|
30053
|
-
? deserializeAws_restJson1ActionList(output.actions, context)
|
|
30054
|
-
: undefined,
|
|
29537
|
+
actions: output.actions != null ? deserializeAws_restJson1ActionList(output.actions, context) : undefined,
|
|
30055
29538
|
awsIotSqlVersion: __expectString(output.awsIotSqlVersion),
|
|
30056
|
-
createdAt: output.createdAt
|
|
30057
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
30058
|
-
: undefined,
|
|
29539
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
30059
29540
|
description: __expectString(output.description),
|
|
30060
|
-
errorAction: output.errorAction
|
|
30061
|
-
? deserializeAws_restJson1Action(output.errorAction, context)
|
|
30062
|
-
: undefined,
|
|
29541
|
+
errorAction: output.errorAction != null ? deserializeAws_restJson1Action(output.errorAction, context) : undefined,
|
|
30063
29542
|
ruleDisabled: __expectBoolean(output.ruleDisabled),
|
|
30064
29543
|
ruleName: __expectString(output.ruleName),
|
|
30065
29544
|
sql: __expectString(output.sql),
|
|
@@ -30068,18 +29547,16 @@ var deserializeAws_restJson1TopicRule = function (output, context) {
|
|
|
30068
29547
|
var deserializeAws_restJson1TopicRuleDestination = function (output, context) {
|
|
30069
29548
|
return {
|
|
30070
29549
|
arn: __expectString(output.arn),
|
|
30071
|
-
createdAt: output.createdAt
|
|
30072
|
-
|
|
30073
|
-
: undefined,
|
|
30074
|
-
httpUrlProperties: output.httpUrlProperties !== undefined && output.httpUrlProperties !== null
|
|
29550
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
29551
|
+
httpUrlProperties: output.httpUrlProperties != null
|
|
30075
29552
|
? deserializeAws_restJson1HttpUrlDestinationProperties(output.httpUrlProperties, context)
|
|
30076
29553
|
: undefined,
|
|
30077
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
29554
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
30078
29555
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
30079
29556
|
: undefined,
|
|
30080
29557
|
status: __expectString(output.status),
|
|
30081
29558
|
statusReason: __expectString(output.statusReason),
|
|
30082
|
-
vpcProperties: output.vpcProperties
|
|
29559
|
+
vpcProperties: output.vpcProperties != null
|
|
30083
29560
|
? deserializeAws_restJson1VpcDestinationProperties(output.vpcProperties, context)
|
|
30084
29561
|
: undefined,
|
|
30085
29562
|
};
|
|
@@ -30098,18 +29575,16 @@ var deserializeAws_restJson1TopicRuleDestinationSummaries = function (output, co
|
|
|
30098
29575
|
var deserializeAws_restJson1TopicRuleDestinationSummary = function (output, context) {
|
|
30099
29576
|
return {
|
|
30100
29577
|
arn: __expectString(output.arn),
|
|
30101
|
-
createdAt: output.createdAt
|
|
30102
|
-
|
|
30103
|
-
: undefined,
|
|
30104
|
-
httpUrlSummary: output.httpUrlSummary !== undefined && output.httpUrlSummary !== null
|
|
29578
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
29579
|
+
httpUrlSummary: output.httpUrlSummary != null
|
|
30105
29580
|
? deserializeAws_restJson1HttpUrlDestinationSummary(output.httpUrlSummary, context)
|
|
30106
29581
|
: undefined,
|
|
30107
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
29582
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
30108
29583
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
30109
29584
|
: undefined,
|
|
30110
29585
|
status: __expectString(output.status),
|
|
30111
29586
|
statusReason: __expectString(output.statusReason),
|
|
30112
|
-
vpcDestinationSummary: output.vpcDestinationSummary
|
|
29587
|
+
vpcDestinationSummary: output.vpcDestinationSummary != null
|
|
30113
29588
|
? deserializeAws_restJson1VpcDestinationSummary(output.vpcDestinationSummary, context)
|
|
30114
29589
|
: undefined,
|
|
30115
29590
|
};
|
|
@@ -30127,9 +29602,7 @@ var deserializeAws_restJson1TopicRuleList = function (output, context) {
|
|
|
30127
29602
|
};
|
|
30128
29603
|
var deserializeAws_restJson1TopicRuleListItem = function (output, context) {
|
|
30129
29604
|
return {
|
|
30130
|
-
createdAt: output.createdAt
|
|
30131
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
30132
|
-
: undefined,
|
|
29605
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
30133
29606
|
ruleArn: __expectString(output.ruleArn),
|
|
30134
29607
|
ruleDisabled: __expectBoolean(output.ruleDisabled),
|
|
30135
29608
|
ruleName: __expectString(output.ruleName),
|
|
@@ -30138,14 +29611,10 @@ var deserializeAws_restJson1TopicRuleListItem = function (output, context) {
|
|
|
30138
29611
|
};
|
|
30139
29612
|
var deserializeAws_restJson1TransferData = function (output, context) {
|
|
30140
29613
|
return {
|
|
30141
|
-
acceptDate: output.acceptDate
|
|
30142
|
-
|
|
30143
|
-
: undefined,
|
|
30144
|
-
rejectDate: output.rejectDate !== undefined && output.rejectDate !== null
|
|
30145
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.rejectDate)))
|
|
30146
|
-
: undefined,
|
|
29614
|
+
acceptDate: output.acceptDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.acceptDate))) : undefined,
|
|
29615
|
+
rejectDate: output.rejectDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.rejectDate))) : undefined,
|
|
30147
29616
|
rejectReason: __expectString(output.rejectReason),
|
|
30148
|
-
transferDate: output.transferDate
|
|
29617
|
+
transferDate: output.transferDate != null
|
|
30149
29618
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.transferDate)))
|
|
30150
29619
|
: undefined,
|
|
30151
29620
|
transferMessage: __expectString(output.transferMessage),
|
|
@@ -30179,20 +29648,16 @@ var deserializeAws_restJson1ValidationErrors = function (output, context) {
|
|
|
30179
29648
|
};
|
|
30180
29649
|
var deserializeAws_restJson1ViolationEvent = function (output, context) {
|
|
30181
29650
|
return {
|
|
30182
|
-
behavior: output.behavior
|
|
30183
|
-
|
|
30184
|
-
: undefined,
|
|
30185
|
-
metricValue: output.metricValue !== undefined && output.metricValue !== null
|
|
30186
|
-
? deserializeAws_restJson1MetricValue(output.metricValue, context)
|
|
30187
|
-
: undefined,
|
|
29651
|
+
behavior: output.behavior != null ? deserializeAws_restJson1Behavior(output.behavior, context) : undefined,
|
|
29652
|
+
metricValue: output.metricValue != null ? deserializeAws_restJson1MetricValue(output.metricValue, context) : undefined,
|
|
30188
29653
|
securityProfileName: __expectString(output.securityProfileName),
|
|
30189
29654
|
thingName: __expectString(output.thingName),
|
|
30190
29655
|
verificationState: __expectString(output.verificationState),
|
|
30191
29656
|
verificationStateDescription: __expectString(output.verificationStateDescription),
|
|
30192
|
-
violationEventAdditionalInfo: output.violationEventAdditionalInfo
|
|
29657
|
+
violationEventAdditionalInfo: output.violationEventAdditionalInfo != null
|
|
30193
29658
|
? deserializeAws_restJson1ViolationEventAdditionalInfo(output.violationEventAdditionalInfo, context)
|
|
30194
29659
|
: undefined,
|
|
30195
|
-
violationEventTime: output.violationEventTime
|
|
29660
|
+
violationEventTime: output.violationEventTime != null
|
|
30196
29661
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.violationEventTime)))
|
|
30197
29662
|
: undefined,
|
|
30198
29663
|
violationEventType: __expectString(output.violationEventType),
|
|
@@ -30206,12 +29671,8 @@ var deserializeAws_restJson1ViolationEventAdditionalInfo = function (output, con
|
|
|
30206
29671
|
};
|
|
30207
29672
|
var deserializeAws_restJson1ViolationEventOccurrenceRange = function (output, context) {
|
|
30208
29673
|
return {
|
|
30209
|
-
endTime: output.endTime
|
|
30210
|
-
|
|
30211
|
-
: undefined,
|
|
30212
|
-
startTime: output.startTime !== undefined && output.startTime !== null
|
|
30213
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime)))
|
|
30214
|
-
: undefined,
|
|
29674
|
+
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
29675
|
+
startTime: output.startTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startTime))) : undefined,
|
|
30215
29676
|
};
|
|
30216
29677
|
};
|
|
30217
29678
|
var deserializeAws_restJson1ViolationEvents = function (output, context) {
|
|
@@ -30228,24 +29689,20 @@ var deserializeAws_restJson1ViolationEvents = function (output, context) {
|
|
|
30228
29689
|
var deserializeAws_restJson1VpcDestinationProperties = function (output, context) {
|
|
30229
29690
|
return {
|
|
30230
29691
|
roleArn: __expectString(output.roleArn),
|
|
30231
|
-
securityGroups: output.securityGroups
|
|
29692
|
+
securityGroups: output.securityGroups != null
|
|
30232
29693
|
? deserializeAws_restJson1SecurityGroupList(output.securityGroups, context)
|
|
30233
29694
|
: undefined,
|
|
30234
|
-
subnetIds: output.subnetIds
|
|
30235
|
-
? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
|
|
30236
|
-
: undefined,
|
|
29695
|
+
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
30237
29696
|
vpcId: __expectString(output.vpcId),
|
|
30238
29697
|
};
|
|
30239
29698
|
};
|
|
30240
29699
|
var deserializeAws_restJson1VpcDestinationSummary = function (output, context) {
|
|
30241
29700
|
return {
|
|
30242
29701
|
roleArn: __expectString(output.roleArn),
|
|
30243
|
-
securityGroups: output.securityGroups
|
|
29702
|
+
securityGroups: output.securityGroups != null
|
|
30244
29703
|
? deserializeAws_restJson1SecurityGroupList(output.securityGroups, context)
|
|
30245
29704
|
: undefined,
|
|
30246
|
-
subnetIds: output.subnetIds
|
|
30247
|
-
? deserializeAws_restJson1SubnetIdList(output.subnetIds, context)
|
|
30248
|
-
: undefined,
|
|
29705
|
+
subnetIds: output.subnetIds != null ? deserializeAws_restJson1SubnetIdList(output.subnetIds, context) : undefined,
|
|
30249
29706
|
vpcId: __expectString(output.vpcId),
|
|
30250
29707
|
};
|
|
30251
29708
|
};
|