@aws-sdk/client-iot-events 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +250 -441
- package/dist-es/protocols/Aws_restJson1.js +161 -352
- package/package.json +26 -26
|
@@ -14,19 +14,13 @@ export var serializeAws_restJson1CreateAlarmModelCommand = function (input, cont
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarm-models";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarmCapabilities
|
|
18
|
-
input.alarmCapabilities !== null && {
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarmCapabilities != null && {
|
|
19
18
|
alarmCapabilities: serializeAws_restJson1AlarmCapabilities(input.alarmCapabilities, context),
|
|
20
|
-
})), (input.alarmEventActions
|
|
21
|
-
input.alarmEventActions !== null && {
|
|
19
|
+
})), (input.alarmEventActions != null && {
|
|
22
20
|
alarmEventActions: serializeAws_restJson1AlarmEventActions(input.alarmEventActions, context),
|
|
23
|
-
})), (input.alarmModelDescription
|
|
24
|
-
input.alarmModelDescription !== null && { alarmModelDescription: input.alarmModelDescription })), (input.alarmModelName !== undefined &&
|
|
25
|
-
input.alarmModelName !== null && { alarmModelName: input.alarmModelName })), (input.alarmNotification !== undefined &&
|
|
26
|
-
input.alarmNotification !== null && {
|
|
21
|
+
})), (input.alarmModelDescription != null && { alarmModelDescription: input.alarmModelDescription })), (input.alarmModelName != null && { alarmModelName: input.alarmModelName })), (input.alarmNotification != null && {
|
|
27
22
|
alarmNotification: serializeAws_restJson1AlarmNotification(input.alarmNotification, context),
|
|
28
|
-
})), (input.alarmRule
|
|
29
|
-
input.alarmRule !== null && { alarmRule: serializeAws_restJson1AlarmRule(input.alarmRule, context) })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.severity !== undefined && input.severity !== null && { severity: input.severity })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
23
|
+
})), (input.alarmRule != null && { alarmRule: serializeAws_restJson1AlarmRule(input.alarmRule, context) })), (input.key != null && { key: input.key })), (input.roleArn != null && { roleArn: input.roleArn })), (input.severity != null && { severity: input.severity })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
30
24
|
return [2, new __HttpRequest({
|
|
31
25
|
protocol: protocol,
|
|
32
26
|
hostname: hostname,
|
|
@@ -50,13 +44,9 @@ export var serializeAws_restJson1CreateDetectorModelCommand = function (input, c
|
|
|
50
44
|
"content-type": "application/json",
|
|
51
45
|
};
|
|
52
46
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detector-models";
|
|
53
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorModelDefinition
|
|
54
|
-
input.detectorModelDefinition !== null && {
|
|
47
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.detectorModelDefinition != null && {
|
|
55
48
|
detectorModelDefinition: serializeAws_restJson1DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
56
|
-
})), (input.detectorModelDescription
|
|
57
|
-
input.detectorModelDescription !== null && { detectorModelDescription: input.detectorModelDescription })), (input.detectorModelName !== undefined &&
|
|
58
|
-
input.detectorModelName !== null && { detectorModelName: input.detectorModelName })), (input.evaluationMethod !== undefined &&
|
|
59
|
-
input.evaluationMethod !== null && { evaluationMethod: input.evaluationMethod })), (input.key !== undefined && input.key !== null && { key: input.key })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
49
|
+
})), (input.detectorModelDescription != null && { detectorModelDescription: input.detectorModelDescription })), (input.detectorModelName != null && { detectorModelName: input.detectorModelName })), (input.evaluationMethod != null && { evaluationMethod: input.evaluationMethod })), (input.key != null && { key: input.key })), (input.roleArn != null && { roleArn: input.roleArn })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
60
50
|
return [2, new __HttpRequest({
|
|
61
51
|
protocol: protocol,
|
|
62
52
|
hostname: hostname,
|
|
@@ -80,11 +70,9 @@ export var serializeAws_restJson1CreateInputCommand = function (input, context)
|
|
|
80
70
|
"content-type": "application/json",
|
|
81
71
|
};
|
|
82
72
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs";
|
|
83
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.inputDefinition
|
|
84
|
-
input.inputDefinition !== null && {
|
|
73
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.inputDefinition != null && {
|
|
85
74
|
inputDefinition: serializeAws_restJson1InputDefinition(input.inputDefinition, context),
|
|
86
|
-
})), (input.inputDescription
|
|
87
|
-
input.inputDescription !== null && { inputDescription: input.inputDescription })), (input.inputName !== undefined && input.inputName !== null && { inputName: input.inputName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
75
|
+
})), (input.inputDescription != null && { inputDescription: input.inputDescription })), (input.inputName != null && { inputName: input.inputName })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
88
76
|
return [2, new __HttpRequest({
|
|
89
77
|
protocol: protocol,
|
|
90
78
|
hostname: hostname,
|
|
@@ -500,10 +488,9 @@ export var serializeAws_restJson1ListInputRoutingsCommand = function (input, con
|
|
|
500
488
|
"content-type": "application/json",
|
|
501
489
|
};
|
|
502
490
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/input-routings";
|
|
503
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.inputIdentifier
|
|
504
|
-
input.inputIdentifier !== null && {
|
|
491
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.inputIdentifier != null && {
|
|
505
492
|
inputIdentifier: serializeAws_restJson1InputIdentifier(input.inputIdentifier, context),
|
|
506
|
-
})), (input.maxResults
|
|
493
|
+
})), (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })));
|
|
507
494
|
return [2, new __HttpRequest({
|
|
508
495
|
protocol: protocol,
|
|
509
496
|
hostname: hostname,
|
|
@@ -573,8 +560,7 @@ export var serializeAws_restJson1PutLoggingOptionsCommand = function (input, con
|
|
|
573
560
|
"content-type": "application/json",
|
|
574
561
|
};
|
|
575
562
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/logging";
|
|
576
|
-
body = JSON.stringify(__assign({}, (input.loggingOptions
|
|
577
|
-
input.loggingOptions !== null && {
|
|
563
|
+
body = JSON.stringify(__assign({}, (input.loggingOptions != null && {
|
|
578
564
|
loggingOptions: serializeAws_restJson1LoggingOptions(input.loggingOptions, context),
|
|
579
565
|
})));
|
|
580
566
|
return [2, new __HttpRequest({
|
|
@@ -600,8 +586,7 @@ export var serializeAws_restJson1StartDetectorModelAnalysisCommand = function (i
|
|
|
600
586
|
"content-type": "application/json",
|
|
601
587
|
};
|
|
602
588
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/analysis/detector-models";
|
|
603
|
-
body = JSON.stringify(__assign({}, (input.detectorModelDefinition
|
|
604
|
-
input.detectorModelDefinition !== null && {
|
|
589
|
+
body = JSON.stringify(__assign({}, (input.detectorModelDefinition != null && {
|
|
605
590
|
detectorModelDefinition: serializeAws_restJson1DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
606
591
|
})));
|
|
607
592
|
return [2, new __HttpRequest({
|
|
@@ -628,7 +613,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
628
613
|
};
|
|
629
614
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags";
|
|
630
615
|
query = __assign({}, (input.resourceArn !== undefined && { resourceArn: input.resourceArn }));
|
|
631
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
616
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
632
617
|
return [2, new __HttpRequest({
|
|
633
618
|
protocol: protocol,
|
|
634
619
|
hostname: hostname,
|
|
@@ -686,18 +671,13 @@ export var serializeAws_restJson1UpdateAlarmModelCommand = function (input, cont
|
|
|
686
671
|
else {
|
|
687
672
|
throw new Error("No value provided for input HTTP label: alarmModelName.");
|
|
688
673
|
}
|
|
689
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarmCapabilities
|
|
690
|
-
input.alarmCapabilities !== null && {
|
|
674
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.alarmCapabilities != null && {
|
|
691
675
|
alarmCapabilities: serializeAws_restJson1AlarmCapabilities(input.alarmCapabilities, context),
|
|
692
|
-
})), (input.alarmEventActions
|
|
693
|
-
input.alarmEventActions !== null && {
|
|
676
|
+
})), (input.alarmEventActions != null && {
|
|
694
677
|
alarmEventActions: serializeAws_restJson1AlarmEventActions(input.alarmEventActions, context),
|
|
695
|
-
})), (input.alarmModelDescription
|
|
696
|
-
input.alarmModelDescription !== null && { alarmModelDescription: input.alarmModelDescription })), (input.alarmNotification !== undefined &&
|
|
697
|
-
input.alarmNotification !== null && {
|
|
678
|
+
})), (input.alarmModelDescription != null && { alarmModelDescription: input.alarmModelDescription })), (input.alarmNotification != null && {
|
|
698
679
|
alarmNotification: serializeAws_restJson1AlarmNotification(input.alarmNotification, context),
|
|
699
|
-
})), (input.alarmRule
|
|
700
|
-
input.alarmRule !== null && { alarmRule: serializeAws_restJson1AlarmRule(input.alarmRule, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.severity !== undefined && input.severity !== null && { severity: input.severity })));
|
|
680
|
+
})), (input.alarmRule != null && { alarmRule: serializeAws_restJson1AlarmRule(input.alarmRule, context) })), (input.roleArn != null && { roleArn: input.roleArn })), (input.severity != null && { severity: input.severity })));
|
|
701
681
|
return [2, new __HttpRequest({
|
|
702
682
|
protocol: protocol,
|
|
703
683
|
hostname: hostname,
|
|
@@ -731,12 +711,9 @@ export var serializeAws_restJson1UpdateDetectorModelCommand = function (input, c
|
|
|
731
711
|
else {
|
|
732
712
|
throw new Error("No value provided for input HTTP label: detectorModelName.");
|
|
733
713
|
}
|
|
734
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.detectorModelDefinition
|
|
735
|
-
input.detectorModelDefinition !== null && {
|
|
714
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.detectorModelDefinition != null && {
|
|
736
715
|
detectorModelDefinition: serializeAws_restJson1DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
737
|
-
})), (input.detectorModelDescription
|
|
738
|
-
input.detectorModelDescription !== null && { detectorModelDescription: input.detectorModelDescription })), (input.evaluationMethod !== undefined &&
|
|
739
|
-
input.evaluationMethod !== null && { evaluationMethod: input.evaluationMethod })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })));
|
|
716
|
+
})), (input.detectorModelDescription != null && { detectorModelDescription: input.detectorModelDescription })), (input.evaluationMethod != null && { evaluationMethod: input.evaluationMethod })), (input.roleArn != null && { roleArn: input.roleArn })));
|
|
740
717
|
return [2, new __HttpRequest({
|
|
741
718
|
protocol: protocol,
|
|
742
719
|
hostname: hostname,
|
|
@@ -770,11 +747,9 @@ export var serializeAws_restJson1UpdateInputCommand = function (input, context)
|
|
|
770
747
|
else {
|
|
771
748
|
throw new Error("No value provided for input HTTP label: inputName.");
|
|
772
749
|
}
|
|
773
|
-
body = JSON.stringify(__assign(__assign({}, (input.inputDefinition
|
|
774
|
-
input.inputDefinition !== null && {
|
|
750
|
+
body = JSON.stringify(__assign(__assign({}, (input.inputDefinition != null && {
|
|
775
751
|
inputDefinition: serializeAws_restJson1InputDefinition(input.inputDefinition, context),
|
|
776
|
-
})), (input.inputDescription
|
|
777
|
-
input.inputDescription !== null && { inputDescription: input.inputDescription })));
|
|
752
|
+
})), (input.inputDescription != null && { inputDescription: input.inputDescription })));
|
|
778
753
|
return [2, new __HttpRequest({
|
|
779
754
|
protocol: protocol,
|
|
780
755
|
hostname: hostname,
|
|
@@ -2920,28 +2895,16 @@ var deserializeAws_restJson1UnsupportedOperationExceptionResponse = function (pa
|
|
|
2920
2895
|
});
|
|
2921
2896
|
}); };
|
|
2922
2897
|
var serializeAws_restJson1AcknowledgeFlow = function (input, context) {
|
|
2923
|
-
return __assign({}, (input.enabled
|
|
2898
|
+
return __assign({}, (input.enabled != null && { enabled: input.enabled }));
|
|
2924
2899
|
};
|
|
2925
2900
|
var serializeAws_restJson1Action = function (input, context) {
|
|
2926
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clearTimer
|
|
2927
|
-
input.clearTimer !== null && { clearTimer: serializeAws_restJson1ClearTimerAction(input.clearTimer, context) })), (input.dynamoDB !== undefined &&
|
|
2928
|
-
input.dynamoDB !== null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 !== undefined &&
|
|
2929
|
-
input.dynamoDBv2 !== null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.firehose !== undefined &&
|
|
2930
|
-
input.firehose !== null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.iotEvents !== undefined &&
|
|
2931
|
-
input.iotEvents !== null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise !== undefined &&
|
|
2932
|
-
input.iotSiteWise !== null && {
|
|
2901
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.clearTimer != null && { clearTimer: serializeAws_restJson1ClearTimerAction(input.clearTimer, context) })), (input.dynamoDB != null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 != null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.firehose != null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.iotEvents != null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise != null && {
|
|
2933
2902
|
iotSiteWise: serializeAws_restJson1IotSiteWiseAction(input.iotSiteWise, context),
|
|
2934
|
-
})), (input.iotTopicPublish
|
|
2935
|
-
input.iotTopicPublish !== null && {
|
|
2903
|
+
})), (input.iotTopicPublish != null && {
|
|
2936
2904
|
iotTopicPublish: serializeAws_restJson1IotTopicPublishAction(input.iotTopicPublish, context),
|
|
2937
|
-
})), (input.lambda
|
|
2938
|
-
input.lambda !== null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.resetTimer !== undefined &&
|
|
2939
|
-
input.resetTimer !== null && { resetTimer: serializeAws_restJson1ResetTimerAction(input.resetTimer, context) })), (input.setTimer !== undefined &&
|
|
2940
|
-
input.setTimer !== null && { setTimer: serializeAws_restJson1SetTimerAction(input.setTimer, context) })), (input.setVariable !== undefined &&
|
|
2941
|
-
input.setVariable !== null && {
|
|
2905
|
+
})), (input.lambda != null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.resetTimer != null && { resetTimer: serializeAws_restJson1ResetTimerAction(input.resetTimer, context) })), (input.setTimer != null && { setTimer: serializeAws_restJson1SetTimerAction(input.setTimer, context) })), (input.setVariable != null && {
|
|
2942
2906
|
setVariable: serializeAws_restJson1SetVariableAction(input.setVariable, context),
|
|
2943
|
-
})), (input.sns
|
|
2944
|
-
input.sns !== null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) })), (input.sqs !== undefined && input.sqs !== null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }));
|
|
2907
|
+
})), (input.sns != null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) })), (input.sqs != null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }));
|
|
2945
2908
|
};
|
|
2946
2909
|
var serializeAws_restJson1Actions = function (input, context) {
|
|
2947
2910
|
return input
|
|
@@ -2954,19 +2917,11 @@ var serializeAws_restJson1Actions = function (input, context) {
|
|
|
2954
2917
|
});
|
|
2955
2918
|
};
|
|
2956
2919
|
var serializeAws_restJson1AlarmAction = function (input, context) {
|
|
2957
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dynamoDB
|
|
2958
|
-
input.dynamoDB !== null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 !== undefined &&
|
|
2959
|
-
input.dynamoDBv2 !== null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.firehose !== undefined &&
|
|
2960
|
-
input.firehose !== null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.iotEvents !== undefined &&
|
|
2961
|
-
input.iotEvents !== null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise !== undefined &&
|
|
2962
|
-
input.iotSiteWise !== null && {
|
|
2920
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.dynamoDB != null && { dynamoDB: serializeAws_restJson1DynamoDBAction(input.dynamoDB, context) })), (input.dynamoDBv2 != null && { dynamoDBv2: serializeAws_restJson1DynamoDBv2Action(input.dynamoDBv2, context) })), (input.firehose != null && { firehose: serializeAws_restJson1FirehoseAction(input.firehose, context) })), (input.iotEvents != null && { iotEvents: serializeAws_restJson1IotEventsAction(input.iotEvents, context) })), (input.iotSiteWise != null && {
|
|
2963
2921
|
iotSiteWise: serializeAws_restJson1IotSiteWiseAction(input.iotSiteWise, context),
|
|
2964
|
-
})), (input.iotTopicPublish
|
|
2965
|
-
input.iotTopicPublish !== null && {
|
|
2922
|
+
})), (input.iotTopicPublish != null && {
|
|
2966
2923
|
iotTopicPublish: serializeAws_restJson1IotTopicPublishAction(input.iotTopicPublish, context),
|
|
2967
|
-
})), (input.lambda
|
|
2968
|
-
input.lambda !== null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.sns !== undefined &&
|
|
2969
|
-
input.sns !== null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) })), (input.sqs !== undefined && input.sqs !== null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }));
|
|
2924
|
+
})), (input.lambda != null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) })), (input.sns != null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) })), (input.sqs != null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }));
|
|
2970
2925
|
};
|
|
2971
2926
|
var serializeAws_restJson1AlarmActions = function (input, context) {
|
|
2972
2927
|
return input
|
|
@@ -2979,43 +2934,38 @@ var serializeAws_restJson1AlarmActions = function (input, context) {
|
|
|
2979
2934
|
});
|
|
2980
2935
|
};
|
|
2981
2936
|
var serializeAws_restJson1AlarmCapabilities = function (input, context) {
|
|
2982
|
-
return __assign(__assign({}, (input.acknowledgeFlow
|
|
2983
|
-
input.acknowledgeFlow !== null && {
|
|
2937
|
+
return __assign(__assign({}, (input.acknowledgeFlow != null && {
|
|
2984
2938
|
acknowledgeFlow: serializeAws_restJson1AcknowledgeFlow(input.acknowledgeFlow, context),
|
|
2985
|
-
})), (input.initializationConfiguration
|
|
2986
|
-
input.initializationConfiguration !== null && {
|
|
2939
|
+
})), (input.initializationConfiguration != null && {
|
|
2987
2940
|
initializationConfiguration: serializeAws_restJson1InitializationConfiguration(input.initializationConfiguration, context),
|
|
2988
2941
|
}));
|
|
2989
2942
|
};
|
|
2990
2943
|
var serializeAws_restJson1AlarmEventActions = function (input, context) {
|
|
2991
|
-
return __assign({}, (input.alarmActions
|
|
2992
|
-
|
|
2944
|
+
return __assign({}, (input.alarmActions != null && {
|
|
2945
|
+
alarmActions: serializeAws_restJson1AlarmActions(input.alarmActions, context),
|
|
2946
|
+
}));
|
|
2993
2947
|
};
|
|
2994
2948
|
var serializeAws_restJson1AlarmNotification = function (input, context) {
|
|
2995
|
-
return __assign({}, (input.notificationActions
|
|
2996
|
-
input.notificationActions !== null && {
|
|
2949
|
+
return __assign({}, (input.notificationActions != null && {
|
|
2997
2950
|
notificationActions: serializeAws_restJson1NotificationActions(input.notificationActions, context),
|
|
2998
2951
|
}));
|
|
2999
2952
|
};
|
|
3000
2953
|
var serializeAws_restJson1AlarmRule = function (input, context) {
|
|
3001
|
-
return __assign({}, (input.simpleRule
|
|
3002
|
-
input.simpleRule !== null && { simpleRule: serializeAws_restJson1SimpleRule(input.simpleRule, context) }));
|
|
2954
|
+
return __assign({}, (input.simpleRule != null && { simpleRule: serializeAws_restJson1SimpleRule(input.simpleRule, context) }));
|
|
3003
2955
|
};
|
|
3004
2956
|
var serializeAws_restJson1AssetPropertyTimestamp = function (input, context) {
|
|
3005
|
-
return __assign(__assign({}, (input.offsetInNanos
|
|
2957
|
+
return __assign(__assign({}, (input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos })), (input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }));
|
|
3006
2958
|
};
|
|
3007
2959
|
var serializeAws_restJson1AssetPropertyValue = function (input, context) {
|
|
3008
|
-
return __assign(__assign(__assign({}, (input.quality
|
|
3009
|
-
input.timestamp !== null && {
|
|
2960
|
+
return __assign(__assign(__assign({}, (input.quality != null && { quality: input.quality })), (input.timestamp != null && {
|
|
3010
2961
|
timestamp: serializeAws_restJson1AssetPropertyTimestamp(input.timestamp, context),
|
|
3011
|
-
})), (input.value
|
|
3012
|
-
input.value !== null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }));
|
|
2962
|
+
})), (input.value != null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }));
|
|
3013
2963
|
};
|
|
3014
2964
|
var serializeAws_restJson1AssetPropertyVariant = function (input, context) {
|
|
3015
|
-
return __assign(__assign(__assign(__assign({}, (input.booleanValue
|
|
2965
|
+
return __assign(__assign(__assign(__assign({}, (input.booleanValue != null && { booleanValue: input.booleanValue })), (input.doubleValue != null && { doubleValue: input.doubleValue })), (input.integerValue != null && { integerValue: input.integerValue })), (input.stringValue != null && { stringValue: input.stringValue }));
|
|
3016
2966
|
};
|
|
3017
2967
|
var serializeAws_restJson1Attribute = function (input, context) {
|
|
3018
|
-
return __assign({}, (input.jsonPath
|
|
2968
|
+
return __assign({}, (input.jsonPath != null && { jsonPath: input.jsonPath }));
|
|
3019
2969
|
};
|
|
3020
2970
|
var serializeAws_restJson1Attributes = function (input, context) {
|
|
3021
2971
|
return input
|
|
@@ -3028,11 +2978,10 @@ var serializeAws_restJson1Attributes = function (input, context) {
|
|
|
3028
2978
|
});
|
|
3029
2979
|
};
|
|
3030
2980
|
var serializeAws_restJson1ClearTimerAction = function (input, context) {
|
|
3031
|
-
return __assign({}, (input.timerName
|
|
2981
|
+
return __assign({}, (input.timerName != null && { timerName: input.timerName }));
|
|
3032
2982
|
};
|
|
3033
2983
|
var serializeAws_restJson1DetectorDebugOption = function (input, context) {
|
|
3034
|
-
return __assign(__assign({}, (input.detectorModelName
|
|
3035
|
-
input.detectorModelName !== null && { detectorModelName: input.detectorModelName })), (input.keyValue !== undefined && input.keyValue !== null && { keyValue: input.keyValue }));
|
|
2984
|
+
return __assign(__assign({}, (input.detectorModelName != null && { detectorModelName: input.detectorModelName })), (input.keyValue != null && { keyValue: input.keyValue }));
|
|
3036
2985
|
};
|
|
3037
2986
|
var serializeAws_restJson1DetectorDebugOptions = function (input, context) {
|
|
3038
2987
|
return input
|
|
@@ -3045,22 +2994,16 @@ var serializeAws_restJson1DetectorDebugOptions = function (input, context) {
|
|
|
3045
2994
|
});
|
|
3046
2995
|
};
|
|
3047
2996
|
var serializeAws_restJson1DetectorModelDefinition = function (input, context) {
|
|
3048
|
-
return __assign(__assign({}, (input.initialStateName
|
|
3049
|
-
input.initialStateName !== null && { initialStateName: input.initialStateName })), (input.states !== undefined &&
|
|
3050
|
-
input.states !== null && { states: serializeAws_restJson1States(input.states, context) }));
|
|
2997
|
+
return __assign(__assign({}, (input.initialStateName != null && { initialStateName: input.initialStateName })), (input.states != null && { states: serializeAws_restJson1States(input.states, context) }));
|
|
3051
2998
|
};
|
|
3052
2999
|
var serializeAws_restJson1DynamoDBAction = function (input, context) {
|
|
3053
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.hashKeyField
|
|
3054
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.payloadField !== undefined && input.payloadField !== null && { payloadField: input.payloadField })), (input.rangeKeyField !== undefined && input.rangeKeyField !== null && { rangeKeyField: input.rangeKeyField })), (input.rangeKeyType !== undefined && input.rangeKeyType !== null && { rangeKeyType: input.rangeKeyType })), (input.rangeKeyValue !== undefined && input.rangeKeyValue !== null && { rangeKeyValue: input.rangeKeyValue })), (input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }));
|
|
3000
|
+
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.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (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.tableName != null && { tableName: input.tableName }));
|
|
3055
3001
|
};
|
|
3056
3002
|
var serializeAws_restJson1DynamoDBv2Action = function (input, context) {
|
|
3057
|
-
return __assign(__assign({}, (input.payload
|
|
3058
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.tableName !== undefined && input.tableName !== null && { tableName: input.tableName }));
|
|
3003
|
+
return __assign(__assign({}, (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.tableName != null && { tableName: input.tableName }));
|
|
3059
3004
|
};
|
|
3060
3005
|
var serializeAws_restJson1EmailConfiguration = function (input, context) {
|
|
3061
|
-
return __assign(__assign(__assign({}, (input.content
|
|
3062
|
-
input.content !== null && { content: serializeAws_restJson1EmailContent(input.content, context) })), (input.from !== undefined && input.from !== null && { from: input.from })), (input.recipients !== undefined &&
|
|
3063
|
-
input.recipients !== null && { recipients: serializeAws_restJson1EmailRecipients(input.recipients, context) }));
|
|
3006
|
+
return __assign(__assign(__assign({}, (input.content != null && { content: serializeAws_restJson1EmailContent(input.content, context) })), (input.from != null && { from: input.from })), (input.recipients != null && { recipients: serializeAws_restJson1EmailRecipients(input.recipients, context) }));
|
|
3064
3007
|
};
|
|
3065
3008
|
var serializeAws_restJson1EmailConfigurations = function (input, context) {
|
|
3066
3009
|
return input
|
|
@@ -3073,16 +3016,13 @@ var serializeAws_restJson1EmailConfigurations = function (input, context) {
|
|
|
3073
3016
|
});
|
|
3074
3017
|
};
|
|
3075
3018
|
var serializeAws_restJson1EmailContent = function (input, context) {
|
|
3076
|
-
return __assign(__assign({}, (input.additionalMessage
|
|
3077
|
-
input.additionalMessage !== null && { additionalMessage: input.additionalMessage })), (input.subject !== undefined && input.subject !== null && { subject: input.subject }));
|
|
3019
|
+
return __assign(__assign({}, (input.additionalMessage != null && { additionalMessage: input.additionalMessage })), (input.subject != null && { subject: input.subject }));
|
|
3078
3020
|
};
|
|
3079
3021
|
var serializeAws_restJson1EmailRecipients = function (input, context) {
|
|
3080
|
-
return __assign({}, (input.to
|
|
3081
|
-
input.to !== null && { to: serializeAws_restJson1RecipientDetails(input.to, context) }));
|
|
3022
|
+
return __assign({}, (input.to != null && { to: serializeAws_restJson1RecipientDetails(input.to, context) }));
|
|
3082
3023
|
};
|
|
3083
3024
|
var serializeAws_restJson1Event = function (input, context) {
|
|
3084
|
-
return __assign(__assign(__assign({}, (input.actions
|
|
3085
|
-
input.actions !== null && { actions: serializeAws_restJson1Actions(input.actions, context) })), (input.condition !== undefined && input.condition !== null && { condition: input.condition })), (input.eventName !== undefined && input.eventName !== null && { eventName: input.eventName }));
|
|
3025
|
+
return __assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1Actions(input.actions, context) })), (input.condition != null && { condition: input.condition })), (input.eventName != null && { eventName: input.eventName }));
|
|
3086
3026
|
};
|
|
3087
3027
|
var serializeAws_restJson1Events = function (input, context) {
|
|
3088
3028
|
return input
|
|
@@ -3095,70 +3035,55 @@ var serializeAws_restJson1Events = function (input, context) {
|
|
|
3095
3035
|
});
|
|
3096
3036
|
};
|
|
3097
3037
|
var serializeAws_restJson1FirehoseAction = function (input, context) {
|
|
3098
|
-
return __assign(__assign(__assign({}, (input.deliveryStreamName
|
|
3099
|
-
input.deliveryStreamName !== null && { deliveryStreamName: input.deliveryStreamName })), (input.payload !== undefined &&
|
|
3100
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.separator !== undefined && input.separator !== null && { separator: input.separator }));
|
|
3038
|
+
return __assign(__assign(__assign({}, (input.deliveryStreamName != null && { deliveryStreamName: input.deliveryStreamName })), (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.separator != null && { separator: input.separator }));
|
|
3101
3039
|
};
|
|
3102
3040
|
var serializeAws_restJson1InitializationConfiguration = function (input, context) {
|
|
3103
|
-
return __assign({}, (input.disabledOnInitialization
|
|
3104
|
-
input.disabledOnInitialization !== null && { disabledOnInitialization: input.disabledOnInitialization }));
|
|
3041
|
+
return __assign({}, (input.disabledOnInitialization != null && { disabledOnInitialization: input.disabledOnInitialization }));
|
|
3105
3042
|
};
|
|
3106
3043
|
var serializeAws_restJson1InputDefinition = function (input, context) {
|
|
3107
|
-
return __assign({}, (input.attributes
|
|
3108
|
-
input.attributes !== null && { attributes: serializeAws_restJson1Attributes(input.attributes, context) }));
|
|
3044
|
+
return __assign({}, (input.attributes != null && { attributes: serializeAws_restJson1Attributes(input.attributes, context) }));
|
|
3109
3045
|
};
|
|
3110
3046
|
var serializeAws_restJson1InputIdentifier = function (input, context) {
|
|
3111
|
-
return __assign(__assign({}, (input.iotEventsInputIdentifier
|
|
3112
|
-
input.iotEventsInputIdentifier !== null && {
|
|
3047
|
+
return __assign(__assign({}, (input.iotEventsInputIdentifier != null && {
|
|
3113
3048
|
iotEventsInputIdentifier: serializeAws_restJson1IotEventsInputIdentifier(input.iotEventsInputIdentifier, context),
|
|
3114
|
-
})), (input.iotSiteWiseInputIdentifier
|
|
3115
|
-
input.iotSiteWiseInputIdentifier !== null && {
|
|
3049
|
+
})), (input.iotSiteWiseInputIdentifier != null && {
|
|
3116
3050
|
iotSiteWiseInputIdentifier: serializeAws_restJson1IotSiteWiseInputIdentifier(input.iotSiteWiseInputIdentifier, context),
|
|
3117
3051
|
}));
|
|
3118
3052
|
};
|
|
3119
3053
|
var serializeAws_restJson1IotEventsAction = function (input, context) {
|
|
3120
|
-
return __assign(__assign({}, (input.inputName
|
|
3121
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3054
|
+
return __assign(__assign({}, (input.inputName != null && { inputName: input.inputName })), (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3122
3055
|
};
|
|
3123
3056
|
var serializeAws_restJson1IotEventsInputIdentifier = function (input, context) {
|
|
3124
|
-
return __assign({}, (input.inputName
|
|
3057
|
+
return __assign({}, (input.inputName != null && { inputName: input.inputName }));
|
|
3125
3058
|
};
|
|
3126
3059
|
var serializeAws_restJson1IotSiteWiseAction = function (input, context) {
|
|
3127
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.assetId
|
|
3128
|
-
input.propertyValue !== null && {
|
|
3060
|
+
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.propertyValue != null && {
|
|
3129
3061
|
propertyValue: serializeAws_restJson1AssetPropertyValue(input.propertyValue, context),
|
|
3130
3062
|
}));
|
|
3131
3063
|
};
|
|
3132
3064
|
var serializeAws_restJson1IotSiteWiseAssetModelPropertyIdentifier = function (input, context) {
|
|
3133
|
-
return __assign(__assign({}, (input.assetModelId
|
|
3065
|
+
return __assign(__assign({}, (input.assetModelId != null && { assetModelId: input.assetModelId })), (input.propertyId != null && { propertyId: input.propertyId }));
|
|
3134
3066
|
};
|
|
3135
3067
|
var serializeAws_restJson1IotSiteWiseInputIdentifier = function (input, context) {
|
|
3136
|
-
return __assign({}, (input.iotSiteWiseAssetModelPropertyIdentifier
|
|
3137
|
-
input.iotSiteWiseAssetModelPropertyIdentifier !== null && {
|
|
3068
|
+
return __assign({}, (input.iotSiteWiseAssetModelPropertyIdentifier != null && {
|
|
3138
3069
|
iotSiteWiseAssetModelPropertyIdentifier: serializeAws_restJson1IotSiteWiseAssetModelPropertyIdentifier(input.iotSiteWiseAssetModelPropertyIdentifier, context),
|
|
3139
3070
|
}));
|
|
3140
3071
|
};
|
|
3141
3072
|
var serializeAws_restJson1IotTopicPublishAction = function (input, context) {
|
|
3142
|
-
return __assign(__assign({}, (input.mqttTopic
|
|
3143
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3073
|
+
return __assign(__assign({}, (input.mqttTopic != null && { mqttTopic: input.mqttTopic })), (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3144
3074
|
};
|
|
3145
3075
|
var serializeAws_restJson1LambdaAction = function (input, context) {
|
|
3146
|
-
return __assign(__assign({}, (input.functionArn
|
|
3147
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3076
|
+
return __assign(__assign({}, (input.functionArn != null && { functionArn: input.functionArn })), (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) }));
|
|
3148
3077
|
};
|
|
3149
3078
|
var serializeAws_restJson1LoggingOptions = function (input, context) {
|
|
3150
|
-
return __assign(__assign(__assign(__assign({}, (input.detectorDebugOptions
|
|
3151
|
-
input.detectorDebugOptions !== null && {
|
|
3079
|
+
return __assign(__assign(__assign(__assign({}, (input.detectorDebugOptions != null && {
|
|
3152
3080
|
detectorDebugOptions: serializeAws_restJson1DetectorDebugOptions(input.detectorDebugOptions, context),
|
|
3153
|
-
})), (input.enabled
|
|
3081
|
+
})), (input.enabled != null && { enabled: input.enabled })), (input.level != null && { level: input.level })), (input.roleArn != null && { roleArn: input.roleArn }));
|
|
3154
3082
|
};
|
|
3155
3083
|
var serializeAws_restJson1NotificationAction = function (input, context) {
|
|
3156
|
-
return __assign(__assign(__assign({}, (input.action
|
|
3157
|
-
input.action !== null && { action: serializeAws_restJson1NotificationTargetActions(input.action, context) })), (input.emailConfigurations !== undefined &&
|
|
3158
|
-
input.emailConfigurations !== null && {
|
|
3084
|
+
return __assign(__assign(__assign({}, (input.action != null && { action: serializeAws_restJson1NotificationTargetActions(input.action, context) })), (input.emailConfigurations != null && {
|
|
3159
3085
|
emailConfigurations: serializeAws_restJson1EmailConfigurations(input.emailConfigurations, context),
|
|
3160
|
-
})), (input.smsConfigurations
|
|
3161
|
-
input.smsConfigurations !== null && {
|
|
3086
|
+
})), (input.smsConfigurations != null && {
|
|
3162
3087
|
smsConfigurations: serializeAws_restJson1SMSConfigurations(input.smsConfigurations, context),
|
|
3163
3088
|
}));
|
|
3164
3089
|
};
|
|
@@ -3173,31 +3098,26 @@ var serializeAws_restJson1NotificationActions = function (input, context) {
|
|
|
3173
3098
|
});
|
|
3174
3099
|
};
|
|
3175
3100
|
var serializeAws_restJson1NotificationTargetActions = function (input, context) {
|
|
3176
|
-
return __assign({}, (input.lambdaAction
|
|
3177
|
-
|
|
3101
|
+
return __assign({}, (input.lambdaAction != null && {
|
|
3102
|
+
lambdaAction: serializeAws_restJson1LambdaAction(input.lambdaAction, context),
|
|
3103
|
+
}));
|
|
3178
3104
|
};
|
|
3179
3105
|
var serializeAws_restJson1OnEnterLifecycle = function (input, context) {
|
|
3180
|
-
return __assign({}, (input.events
|
|
3181
|
-
input.events !== null && { events: serializeAws_restJson1Events(input.events, context) }));
|
|
3106
|
+
return __assign({}, (input.events != null && { events: serializeAws_restJson1Events(input.events, context) }));
|
|
3182
3107
|
};
|
|
3183
3108
|
var serializeAws_restJson1OnExitLifecycle = function (input, context) {
|
|
3184
|
-
return __assign({}, (input.events
|
|
3185
|
-
input.events !== null && { events: serializeAws_restJson1Events(input.events, context) }));
|
|
3109
|
+
return __assign({}, (input.events != null && { events: serializeAws_restJson1Events(input.events, context) }));
|
|
3186
3110
|
};
|
|
3187
3111
|
var serializeAws_restJson1OnInputLifecycle = function (input, context) {
|
|
3188
|
-
return __assign(__assign({}, (input.events
|
|
3189
|
-
input.events !== null && { events: serializeAws_restJson1Events(input.events, context) })), (input.transitionEvents !== undefined &&
|
|
3190
|
-
input.transitionEvents !== null && {
|
|
3112
|
+
return __assign(__assign({}, (input.events != null && { events: serializeAws_restJson1Events(input.events, context) })), (input.transitionEvents != null && {
|
|
3191
3113
|
transitionEvents: serializeAws_restJson1TransitionEvents(input.transitionEvents, context),
|
|
3192
3114
|
}));
|
|
3193
3115
|
};
|
|
3194
3116
|
var serializeAws_restJson1Payload = function (input, context) {
|
|
3195
|
-
return __assign(__assign({}, (input.contentExpression
|
|
3196
|
-
input.contentExpression !== null && { contentExpression: input.contentExpression })), (input.type !== undefined && input.type !== null && { type: input.type }));
|
|
3117
|
+
return __assign(__assign({}, (input.contentExpression != null && { contentExpression: input.contentExpression })), (input.type != null && { type: input.type }));
|
|
3197
3118
|
};
|
|
3198
3119
|
var serializeAws_restJson1RecipientDetail = function (input, context) {
|
|
3199
|
-
return __assign({}, (input.ssoIdentity
|
|
3200
|
-
input.ssoIdentity !== null && { ssoIdentity: serializeAws_restJson1SSOIdentity(input.ssoIdentity, context) }));
|
|
3120
|
+
return __assign({}, (input.ssoIdentity != null && { ssoIdentity: serializeAws_restJson1SSOIdentity(input.ssoIdentity, context) }));
|
|
3201
3121
|
};
|
|
3202
3122
|
var serializeAws_restJson1RecipientDetails = function (input, context) {
|
|
3203
3123
|
return input
|
|
@@ -3210,23 +3130,19 @@ var serializeAws_restJson1RecipientDetails = function (input, context) {
|
|
|
3210
3130
|
});
|
|
3211
3131
|
};
|
|
3212
3132
|
var serializeAws_restJson1ResetTimerAction = function (input, context) {
|
|
3213
|
-
return __assign({}, (input.timerName
|
|
3133
|
+
return __assign({}, (input.timerName != null && { timerName: input.timerName }));
|
|
3214
3134
|
};
|
|
3215
3135
|
var serializeAws_restJson1SetTimerAction = function (input, context) {
|
|
3216
|
-
return __assign(__assign(__assign({}, (input.durationExpression
|
|
3217
|
-
input.durationExpression !== null && { durationExpression: input.durationExpression })), (input.seconds !== undefined && input.seconds !== null && { seconds: input.seconds })), (input.timerName !== undefined && input.timerName !== null && { timerName: input.timerName }));
|
|
3136
|
+
return __assign(__assign(__assign({}, (input.durationExpression != null && { durationExpression: input.durationExpression })), (input.seconds != null && { seconds: input.seconds })), (input.timerName != null && { timerName: input.timerName }));
|
|
3218
3137
|
};
|
|
3219
3138
|
var serializeAws_restJson1SetVariableAction = function (input, context) {
|
|
3220
|
-
return __assign(__assign({}, (input.value
|
|
3139
|
+
return __assign(__assign({}, (input.value != null && { value: input.value })), (input.variableName != null && { variableName: input.variableName }));
|
|
3221
3140
|
};
|
|
3222
3141
|
var serializeAws_restJson1SimpleRule = function (input, context) {
|
|
3223
|
-
return __assign(__assign(__assign({}, (input.comparisonOperator
|
|
3224
|
-
input.comparisonOperator !== null && { comparisonOperator: input.comparisonOperator })), (input.inputProperty !== undefined && input.inputProperty !== null && { inputProperty: input.inputProperty })), (input.threshold !== undefined && input.threshold !== null && { threshold: input.threshold }));
|
|
3142
|
+
return __assign(__assign(__assign({}, (input.comparisonOperator != null && { comparisonOperator: input.comparisonOperator })), (input.inputProperty != null && { inputProperty: input.inputProperty })), (input.threshold != null && { threshold: input.threshold }));
|
|
3225
3143
|
};
|
|
3226
3144
|
var serializeAws_restJson1SMSConfiguration = function (input, context) {
|
|
3227
|
-
return __assign(__assign(__assign({}, (input.additionalMessage
|
|
3228
|
-
input.additionalMessage !== null && { additionalMessage: input.additionalMessage })), (input.recipients !== undefined &&
|
|
3229
|
-
input.recipients !== null && { recipients: serializeAws_restJson1RecipientDetails(input.recipients, context) })), (input.senderId !== undefined && input.senderId !== null && { senderId: input.senderId }));
|
|
3145
|
+
return __assign(__assign(__assign({}, (input.additionalMessage != null && { additionalMessage: input.additionalMessage })), (input.recipients != null && { recipients: serializeAws_restJson1RecipientDetails(input.recipients, context) })), (input.senderId != null && { senderId: input.senderId }));
|
|
3230
3146
|
};
|
|
3231
3147
|
var serializeAws_restJson1SMSConfigurations = function (input, context) {
|
|
3232
3148
|
return input
|
|
@@ -3239,22 +3155,16 @@ var serializeAws_restJson1SMSConfigurations = function (input, context) {
|
|
|
3239
3155
|
});
|
|
3240
3156
|
};
|
|
3241
3157
|
var serializeAws_restJson1SNSTopicPublishAction = function (input, context) {
|
|
3242
|
-
return __assign(__assign({}, (input.payload
|
|
3243
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.targetArn !== undefined && input.targetArn !== null && { targetArn: input.targetArn }));
|
|
3158
|
+
return __assign(__assign({}, (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.targetArn != null && { targetArn: input.targetArn }));
|
|
3244
3159
|
};
|
|
3245
3160
|
var serializeAws_restJson1SqsAction = function (input, context) {
|
|
3246
|
-
return __assign(__assign(__assign({}, (input.payload
|
|
3247
|
-
input.payload !== null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.queueUrl !== undefined && input.queueUrl !== null && { queueUrl: input.queueUrl })), (input.useBase64 !== undefined && input.useBase64 !== null && { useBase64: input.useBase64 }));
|
|
3161
|
+
return __assign(__assign(__assign({}, (input.payload != null && { payload: serializeAws_restJson1Payload(input.payload, context) })), (input.queueUrl != null && { queueUrl: input.queueUrl })), (input.useBase64 != null && { useBase64: input.useBase64 }));
|
|
3248
3162
|
};
|
|
3249
3163
|
var serializeAws_restJson1SSOIdentity = function (input, context) {
|
|
3250
|
-
return __assign(__assign({}, (input.identityStoreId
|
|
3251
|
-
input.identityStoreId !== null && { identityStoreId: input.identityStoreId })), (input.userId !== undefined && input.userId !== null && { userId: input.userId }));
|
|
3164
|
+
return __assign(__assign({}, (input.identityStoreId != null && { identityStoreId: input.identityStoreId })), (input.userId != null && { userId: input.userId }));
|
|
3252
3165
|
};
|
|
3253
3166
|
var serializeAws_restJson1State = function (input, context) {
|
|
3254
|
-
return __assign(__assign(__assign(__assign({}, (input.onEnter
|
|
3255
|
-
input.onEnter !== null && { onEnter: serializeAws_restJson1OnEnterLifecycle(input.onEnter, context) })), (input.onExit !== undefined &&
|
|
3256
|
-
input.onExit !== null && { onExit: serializeAws_restJson1OnExitLifecycle(input.onExit, context) })), (input.onInput !== undefined &&
|
|
3257
|
-
input.onInput !== null && { onInput: serializeAws_restJson1OnInputLifecycle(input.onInput, context) })), (input.stateName !== undefined && input.stateName !== null && { stateName: input.stateName }));
|
|
3167
|
+
return __assign(__assign(__assign(__assign({}, (input.onEnter != null && { onEnter: serializeAws_restJson1OnEnterLifecycle(input.onEnter, context) })), (input.onExit != null && { onExit: serializeAws_restJson1OnExitLifecycle(input.onExit, context) })), (input.onInput != null && { onInput: serializeAws_restJson1OnInputLifecycle(input.onInput, context) })), (input.stateName != null && { stateName: input.stateName }));
|
|
3258
3168
|
};
|
|
3259
3169
|
var serializeAws_restJson1States = function (input, context) {
|
|
3260
3170
|
return input
|
|
@@ -3267,7 +3177,7 @@ var serializeAws_restJson1States = function (input, context) {
|
|
|
3267
3177
|
});
|
|
3268
3178
|
};
|
|
3269
3179
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
3270
|
-
return __assign(__assign({}, (input.key
|
|
3180
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
3271
3181
|
};
|
|
3272
3182
|
var serializeAws_restJson1Tags = function (input, context) {
|
|
3273
3183
|
return input
|
|
@@ -3280,8 +3190,7 @@ var serializeAws_restJson1Tags = function (input, context) {
|
|
|
3280
3190
|
});
|
|
3281
3191
|
};
|
|
3282
3192
|
var serializeAws_restJson1TransitionEvent = function (input, context) {
|
|
3283
|
-
return __assign(__assign(__assign(__assign({}, (input.actions
|
|
3284
|
-
input.actions !== null && { actions: serializeAws_restJson1Actions(input.actions, context) })), (input.condition !== undefined && input.condition !== null && { condition: input.condition })), (input.eventName !== undefined && input.eventName !== null && { eventName: input.eventName })), (input.nextState !== undefined && input.nextState !== null && { nextState: input.nextState }));
|
|
3193
|
+
return __assign(__assign(__assign(__assign({}, (input.actions != null && { actions: serializeAws_restJson1Actions(input.actions, context) })), (input.condition != null && { condition: input.condition })), (input.eventName != null && { eventName: input.eventName })), (input.nextState != null && { nextState: input.nextState }));
|
|
3285
3194
|
};
|
|
3286
3195
|
var serializeAws_restJson1TransitionEvents = function (input, context) {
|
|
3287
3196
|
return input
|
|
@@ -3300,45 +3209,21 @@ var deserializeAws_restJson1AcknowledgeFlow = function (output, context) {
|
|
|
3300
3209
|
};
|
|
3301
3210
|
var deserializeAws_restJson1Action = function (output, context) {
|
|
3302
3211
|
return {
|
|
3303
|
-
clearTimer: output.clearTimer
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context)
|
|
3311
|
-
: undefined,
|
|
3312
|
-
firehose: output.firehose !== undefined && output.firehose !== null
|
|
3313
|
-
? deserializeAws_restJson1FirehoseAction(output.firehose, context)
|
|
3314
|
-
: undefined,
|
|
3315
|
-
iotEvents: output.iotEvents !== undefined && output.iotEvents !== null
|
|
3316
|
-
? deserializeAws_restJson1IotEventsAction(output.iotEvents, context)
|
|
3317
|
-
: undefined,
|
|
3318
|
-
iotSiteWise: output.iotSiteWise !== undefined && output.iotSiteWise !== null
|
|
3319
|
-
? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context)
|
|
3320
|
-
: undefined,
|
|
3321
|
-
iotTopicPublish: output.iotTopicPublish !== undefined && output.iotTopicPublish !== null
|
|
3212
|
+
clearTimer: output.clearTimer != null ? deserializeAws_restJson1ClearTimerAction(output.clearTimer, context) : undefined,
|
|
3213
|
+
dynamoDB: output.dynamoDB != null ? deserializeAws_restJson1DynamoDBAction(output.dynamoDB, context) : undefined,
|
|
3214
|
+
dynamoDBv2: output.dynamoDBv2 != null ? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
|
|
3215
|
+
firehose: output.firehose != null ? deserializeAws_restJson1FirehoseAction(output.firehose, context) : undefined,
|
|
3216
|
+
iotEvents: output.iotEvents != null ? deserializeAws_restJson1IotEventsAction(output.iotEvents, context) : undefined,
|
|
3217
|
+
iotSiteWise: output.iotSiteWise != null ? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context) : undefined,
|
|
3218
|
+
iotTopicPublish: output.iotTopicPublish != null
|
|
3322
3219
|
? deserializeAws_restJson1IotTopicPublishAction(output.iotTopicPublish, context)
|
|
3323
3220
|
: undefined,
|
|
3324
|
-
lambda: output.lambda
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
setTimer: output.setTimer !== undefined && output.setTimer !== null
|
|
3331
|
-
? deserializeAws_restJson1SetTimerAction(output.setTimer, context)
|
|
3332
|
-
: undefined,
|
|
3333
|
-
setVariable: output.setVariable !== undefined && output.setVariable !== null
|
|
3334
|
-
? deserializeAws_restJson1SetVariableAction(output.setVariable, context)
|
|
3335
|
-
: undefined,
|
|
3336
|
-
sns: output.sns !== undefined && output.sns !== null
|
|
3337
|
-
? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context)
|
|
3338
|
-
: undefined,
|
|
3339
|
-
sqs: output.sqs !== undefined && output.sqs !== null
|
|
3340
|
-
? deserializeAws_restJson1SqsAction(output.sqs, context)
|
|
3341
|
-
: undefined,
|
|
3221
|
+
lambda: output.lambda != null ? deserializeAws_restJson1LambdaAction(output.lambda, context) : undefined,
|
|
3222
|
+
resetTimer: output.resetTimer != null ? deserializeAws_restJson1ResetTimerAction(output.resetTimer, context) : undefined,
|
|
3223
|
+
setTimer: output.setTimer != null ? deserializeAws_restJson1SetTimerAction(output.setTimer, context) : undefined,
|
|
3224
|
+
setVariable: output.setVariable != null ? deserializeAws_restJson1SetVariableAction(output.setVariable, context) : undefined,
|
|
3225
|
+
sns: output.sns != null ? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context) : undefined,
|
|
3226
|
+
sqs: output.sqs != null ? deserializeAws_restJson1SqsAction(output.sqs, context) : undefined,
|
|
3342
3227
|
};
|
|
3343
3228
|
};
|
|
3344
3229
|
var deserializeAws_restJson1Actions = function (output, context) {
|
|
@@ -3354,33 +3239,17 @@ var deserializeAws_restJson1Actions = function (output, context) {
|
|
|
3354
3239
|
};
|
|
3355
3240
|
var deserializeAws_restJson1AlarmAction = function (output, context) {
|
|
3356
3241
|
return {
|
|
3357
|
-
dynamoDB: output.dynamoDB
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
firehose: output.firehose !== undefined && output.firehose !== null
|
|
3364
|
-
? deserializeAws_restJson1FirehoseAction(output.firehose, context)
|
|
3365
|
-
: undefined,
|
|
3366
|
-
iotEvents: output.iotEvents !== undefined && output.iotEvents !== null
|
|
3367
|
-
? deserializeAws_restJson1IotEventsAction(output.iotEvents, context)
|
|
3368
|
-
: undefined,
|
|
3369
|
-
iotSiteWise: output.iotSiteWise !== undefined && output.iotSiteWise !== null
|
|
3370
|
-
? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context)
|
|
3371
|
-
: undefined,
|
|
3372
|
-
iotTopicPublish: output.iotTopicPublish !== undefined && output.iotTopicPublish !== null
|
|
3242
|
+
dynamoDB: output.dynamoDB != null ? deserializeAws_restJson1DynamoDBAction(output.dynamoDB, context) : undefined,
|
|
3243
|
+
dynamoDBv2: output.dynamoDBv2 != null ? deserializeAws_restJson1DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
|
|
3244
|
+
firehose: output.firehose != null ? deserializeAws_restJson1FirehoseAction(output.firehose, context) : undefined,
|
|
3245
|
+
iotEvents: output.iotEvents != null ? deserializeAws_restJson1IotEventsAction(output.iotEvents, context) : undefined,
|
|
3246
|
+
iotSiteWise: output.iotSiteWise != null ? deserializeAws_restJson1IotSiteWiseAction(output.iotSiteWise, context) : undefined,
|
|
3247
|
+
iotTopicPublish: output.iotTopicPublish != null
|
|
3373
3248
|
? deserializeAws_restJson1IotTopicPublishAction(output.iotTopicPublish, context)
|
|
3374
3249
|
: undefined,
|
|
3375
|
-
lambda: output.lambda
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
sns: output.sns !== undefined && output.sns !== null
|
|
3379
|
-
? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context)
|
|
3380
|
-
: undefined,
|
|
3381
|
-
sqs: output.sqs !== undefined && output.sqs !== null
|
|
3382
|
-
? deserializeAws_restJson1SqsAction(output.sqs, context)
|
|
3383
|
-
: undefined,
|
|
3250
|
+
lambda: output.lambda != null ? deserializeAws_restJson1LambdaAction(output.lambda, context) : undefined,
|
|
3251
|
+
sns: output.sns != null ? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context) : undefined,
|
|
3252
|
+
sqs: output.sqs != null ? deserializeAws_restJson1SqsAction(output.sqs, context) : undefined,
|
|
3384
3253
|
};
|
|
3385
3254
|
};
|
|
3386
3255
|
var deserializeAws_restJson1AlarmActions = function (output, context) {
|
|
@@ -3396,19 +3265,17 @@ var deserializeAws_restJson1AlarmActions = function (output, context) {
|
|
|
3396
3265
|
};
|
|
3397
3266
|
var deserializeAws_restJson1AlarmCapabilities = function (output, context) {
|
|
3398
3267
|
return {
|
|
3399
|
-
acknowledgeFlow: output.acknowledgeFlow
|
|
3268
|
+
acknowledgeFlow: output.acknowledgeFlow != null
|
|
3400
3269
|
? deserializeAws_restJson1AcknowledgeFlow(output.acknowledgeFlow, context)
|
|
3401
3270
|
: undefined,
|
|
3402
|
-
initializationConfiguration: output.initializationConfiguration
|
|
3271
|
+
initializationConfiguration: output.initializationConfiguration != null
|
|
3403
3272
|
? deserializeAws_restJson1InitializationConfiguration(output.initializationConfiguration, context)
|
|
3404
3273
|
: undefined,
|
|
3405
3274
|
};
|
|
3406
3275
|
};
|
|
3407
3276
|
var deserializeAws_restJson1AlarmEventActions = function (output, context) {
|
|
3408
3277
|
return {
|
|
3409
|
-
alarmActions: output.alarmActions
|
|
3410
|
-
? deserializeAws_restJson1AlarmActions(output.alarmActions, context)
|
|
3411
|
-
: undefined,
|
|
3278
|
+
alarmActions: output.alarmActions != null ? deserializeAws_restJson1AlarmActions(output.alarmActions, context) : undefined,
|
|
3412
3279
|
};
|
|
3413
3280
|
};
|
|
3414
3281
|
var deserializeAws_restJson1AlarmModelSummaries = function (output, context) {
|
|
@@ -3426,7 +3293,7 @@ var deserializeAws_restJson1AlarmModelSummary = function (output, context) {
|
|
|
3426
3293
|
return {
|
|
3427
3294
|
alarmModelDescription: __expectString(output.alarmModelDescription),
|
|
3428
3295
|
alarmModelName: __expectString(output.alarmModelName),
|
|
3429
|
-
creationTime: output.creationTime
|
|
3296
|
+
creationTime: output.creationTime != null
|
|
3430
3297
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3431
3298
|
: undefined,
|
|
3432
3299
|
};
|
|
@@ -3447,10 +3314,10 @@ var deserializeAws_restJson1AlarmModelVersionSummary = function (output, context
|
|
|
3447
3314
|
alarmModelArn: __expectString(output.alarmModelArn),
|
|
3448
3315
|
alarmModelName: __expectString(output.alarmModelName),
|
|
3449
3316
|
alarmModelVersion: __expectString(output.alarmModelVersion),
|
|
3450
|
-
creationTime: output.creationTime
|
|
3317
|
+
creationTime: output.creationTime != null
|
|
3451
3318
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3452
3319
|
: undefined,
|
|
3453
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3320
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3454
3321
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3455
3322
|
: undefined,
|
|
3456
3323
|
roleArn: __expectString(output.roleArn),
|
|
@@ -3460,24 +3327,20 @@ var deserializeAws_restJson1AlarmModelVersionSummary = function (output, context
|
|
|
3460
3327
|
};
|
|
3461
3328
|
var deserializeAws_restJson1AlarmNotification = function (output, context) {
|
|
3462
3329
|
return {
|
|
3463
|
-
notificationActions: output.notificationActions
|
|
3330
|
+
notificationActions: output.notificationActions != null
|
|
3464
3331
|
? deserializeAws_restJson1NotificationActions(output.notificationActions, context)
|
|
3465
3332
|
: undefined,
|
|
3466
3333
|
};
|
|
3467
3334
|
};
|
|
3468
3335
|
var deserializeAws_restJson1AlarmRule = function (output, context) {
|
|
3469
3336
|
return {
|
|
3470
|
-
simpleRule: output.simpleRule
|
|
3471
|
-
? deserializeAws_restJson1SimpleRule(output.simpleRule, context)
|
|
3472
|
-
: undefined,
|
|
3337
|
+
simpleRule: output.simpleRule != null ? deserializeAws_restJson1SimpleRule(output.simpleRule, context) : undefined,
|
|
3473
3338
|
};
|
|
3474
3339
|
};
|
|
3475
3340
|
var deserializeAws_restJson1AnalysisResult = function (output, context) {
|
|
3476
3341
|
return {
|
|
3477
3342
|
level: __expectString(output.level),
|
|
3478
|
-
locations: output.locations
|
|
3479
|
-
? deserializeAws_restJson1AnalysisResultLocations(output.locations, context)
|
|
3480
|
-
: undefined,
|
|
3343
|
+
locations: output.locations != null ? deserializeAws_restJson1AnalysisResultLocations(output.locations, context) : undefined,
|
|
3481
3344
|
message: __expectString(output.message),
|
|
3482
3345
|
type: __expectString(output.type),
|
|
3483
3346
|
};
|
|
@@ -3518,12 +3381,8 @@ var deserializeAws_restJson1AssetPropertyTimestamp = function (output, context)
|
|
|
3518
3381
|
var deserializeAws_restJson1AssetPropertyValue = function (output, context) {
|
|
3519
3382
|
return {
|
|
3520
3383
|
quality: __expectString(output.quality),
|
|
3521
|
-
timestamp: output.timestamp
|
|
3522
|
-
|
|
3523
|
-
: undefined,
|
|
3524
|
-
value: output.value !== undefined && output.value !== null
|
|
3525
|
-
? deserializeAws_restJson1AssetPropertyVariant(output.value, context)
|
|
3526
|
-
: undefined,
|
|
3384
|
+
timestamp: output.timestamp != null ? deserializeAws_restJson1AssetPropertyTimestamp(output.timestamp, context) : undefined,
|
|
3385
|
+
value: output.value != null ? deserializeAws_restJson1AssetPropertyVariant(output.value, context) : undefined,
|
|
3527
3386
|
};
|
|
3528
3387
|
};
|
|
3529
3388
|
var deserializeAws_restJson1AssetPropertyVariant = function (output, context) {
|
|
@@ -3574,17 +3433,17 @@ var deserializeAws_restJson1DetectorDebugOptions = function (output, context) {
|
|
|
3574
3433
|
};
|
|
3575
3434
|
var deserializeAws_restJson1DetectorModel = function (output, context) {
|
|
3576
3435
|
return {
|
|
3577
|
-
detectorModelConfiguration: output.detectorModelConfiguration
|
|
3436
|
+
detectorModelConfiguration: output.detectorModelConfiguration != null
|
|
3578
3437
|
? deserializeAws_restJson1DetectorModelConfiguration(output.detectorModelConfiguration, context)
|
|
3579
3438
|
: undefined,
|
|
3580
|
-
detectorModelDefinition: output.detectorModelDefinition
|
|
3439
|
+
detectorModelDefinition: output.detectorModelDefinition != null
|
|
3581
3440
|
? deserializeAws_restJson1DetectorModelDefinition(output.detectorModelDefinition, context)
|
|
3582
3441
|
: undefined,
|
|
3583
3442
|
};
|
|
3584
3443
|
};
|
|
3585
3444
|
var deserializeAws_restJson1DetectorModelConfiguration = function (output, context) {
|
|
3586
3445
|
return {
|
|
3587
|
-
creationTime: output.creationTime
|
|
3446
|
+
creationTime: output.creationTime != null
|
|
3588
3447
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3589
3448
|
: undefined,
|
|
3590
3449
|
detectorModelArn: __expectString(output.detectorModelArn),
|
|
@@ -3593,7 +3452,7 @@ var deserializeAws_restJson1DetectorModelConfiguration = function (output, conte
|
|
|
3593
3452
|
detectorModelVersion: __expectString(output.detectorModelVersion),
|
|
3594
3453
|
evaluationMethod: __expectString(output.evaluationMethod),
|
|
3595
3454
|
key: __expectString(output.key),
|
|
3596
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3455
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3597
3456
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3598
3457
|
: undefined,
|
|
3599
3458
|
roleArn: __expectString(output.roleArn),
|
|
@@ -3603,9 +3462,7 @@ var deserializeAws_restJson1DetectorModelConfiguration = function (output, conte
|
|
|
3603
3462
|
var deserializeAws_restJson1DetectorModelDefinition = function (output, context) {
|
|
3604
3463
|
return {
|
|
3605
3464
|
initialStateName: __expectString(output.initialStateName),
|
|
3606
|
-
states: output.states
|
|
3607
|
-
? deserializeAws_restJson1States(output.states, context)
|
|
3608
|
-
: undefined,
|
|
3465
|
+
states: output.states != null ? deserializeAws_restJson1States(output.states, context) : undefined,
|
|
3609
3466
|
};
|
|
3610
3467
|
};
|
|
3611
3468
|
var deserializeAws_restJson1DetectorModelSummaries = function (output, context) {
|
|
@@ -3621,7 +3478,7 @@ var deserializeAws_restJson1DetectorModelSummaries = function (output, context)
|
|
|
3621
3478
|
};
|
|
3622
3479
|
var deserializeAws_restJson1DetectorModelSummary = function (output, context) {
|
|
3623
3480
|
return {
|
|
3624
|
-
creationTime: output.creationTime
|
|
3481
|
+
creationTime: output.creationTime != null
|
|
3625
3482
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3626
3483
|
: undefined,
|
|
3627
3484
|
detectorModelDescription: __expectString(output.detectorModelDescription),
|
|
@@ -3641,14 +3498,14 @@ var deserializeAws_restJson1DetectorModelVersionSummaries = function (output, co
|
|
|
3641
3498
|
};
|
|
3642
3499
|
var deserializeAws_restJson1DetectorModelVersionSummary = function (output, context) {
|
|
3643
3500
|
return {
|
|
3644
|
-
creationTime: output.creationTime
|
|
3501
|
+
creationTime: output.creationTime != null
|
|
3645
3502
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3646
3503
|
: undefined,
|
|
3647
3504
|
detectorModelArn: __expectString(output.detectorModelArn),
|
|
3648
3505
|
detectorModelName: __expectString(output.detectorModelName),
|
|
3649
3506
|
detectorModelVersion: __expectString(output.detectorModelVersion),
|
|
3650
3507
|
evaluationMethod: __expectString(output.evaluationMethod),
|
|
3651
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3508
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3652
3509
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3653
3510
|
: undefined,
|
|
3654
3511
|
roleArn: __expectString(output.roleArn),
|
|
@@ -3661,9 +3518,7 @@ var deserializeAws_restJson1DynamoDBAction = function (output, context) {
|
|
|
3661
3518
|
hashKeyType: __expectString(output.hashKeyType),
|
|
3662
3519
|
hashKeyValue: __expectString(output.hashKeyValue),
|
|
3663
3520
|
operation: __expectString(output.operation),
|
|
3664
|
-
payload: output.payload
|
|
3665
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3666
|
-
: undefined,
|
|
3521
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3667
3522
|
payloadField: __expectString(output.payloadField),
|
|
3668
3523
|
rangeKeyField: __expectString(output.rangeKeyField),
|
|
3669
3524
|
rangeKeyType: __expectString(output.rangeKeyType),
|
|
@@ -3673,21 +3528,15 @@ var deserializeAws_restJson1DynamoDBAction = function (output, context) {
|
|
|
3673
3528
|
};
|
|
3674
3529
|
var deserializeAws_restJson1DynamoDBv2Action = function (output, context) {
|
|
3675
3530
|
return {
|
|
3676
|
-
payload: output.payload
|
|
3677
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3678
|
-
: undefined,
|
|
3531
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3679
3532
|
tableName: __expectString(output.tableName),
|
|
3680
3533
|
};
|
|
3681
3534
|
};
|
|
3682
3535
|
var deserializeAws_restJson1EmailConfiguration = function (output, context) {
|
|
3683
3536
|
return {
|
|
3684
|
-
content: output.content
|
|
3685
|
-
? deserializeAws_restJson1EmailContent(output.content, context)
|
|
3686
|
-
: undefined,
|
|
3537
|
+
content: output.content != null ? deserializeAws_restJson1EmailContent(output.content, context) : undefined,
|
|
3687
3538
|
from: __expectString(output.from),
|
|
3688
|
-
recipients: output.recipients
|
|
3689
|
-
? deserializeAws_restJson1EmailRecipients(output.recipients, context)
|
|
3690
|
-
: undefined,
|
|
3539
|
+
recipients: output.recipients != null ? deserializeAws_restJson1EmailRecipients(output.recipients, context) : undefined,
|
|
3691
3540
|
};
|
|
3692
3541
|
};
|
|
3693
3542
|
var deserializeAws_restJson1EmailConfigurations = function (output, context) {
|
|
@@ -3709,16 +3558,12 @@ var deserializeAws_restJson1EmailContent = function (output, context) {
|
|
|
3709
3558
|
};
|
|
3710
3559
|
var deserializeAws_restJson1EmailRecipients = function (output, context) {
|
|
3711
3560
|
return {
|
|
3712
|
-
to: output.to
|
|
3713
|
-
? deserializeAws_restJson1RecipientDetails(output.to, context)
|
|
3714
|
-
: undefined,
|
|
3561
|
+
to: output.to != null ? deserializeAws_restJson1RecipientDetails(output.to, context) : undefined,
|
|
3715
3562
|
};
|
|
3716
3563
|
};
|
|
3717
3564
|
var deserializeAws_restJson1Event = function (output, context) {
|
|
3718
3565
|
return {
|
|
3719
|
-
actions: output.actions
|
|
3720
|
-
? deserializeAws_restJson1Actions(output.actions, context)
|
|
3721
|
-
: undefined,
|
|
3566
|
+
actions: output.actions != null ? deserializeAws_restJson1Actions(output.actions, context) : undefined,
|
|
3722
3567
|
condition: __expectString(output.condition),
|
|
3723
3568
|
eventName: __expectString(output.eventName),
|
|
3724
3569
|
};
|
|
@@ -3737,9 +3582,7 @@ var deserializeAws_restJson1Events = function (output, context) {
|
|
|
3737
3582
|
var deserializeAws_restJson1FirehoseAction = function (output, context) {
|
|
3738
3583
|
return {
|
|
3739
3584
|
deliveryStreamName: __expectString(output.deliveryStreamName),
|
|
3740
|
-
payload: output.payload
|
|
3741
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3742
|
-
: undefined,
|
|
3585
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3743
3586
|
separator: __expectString(output.separator),
|
|
3744
3587
|
};
|
|
3745
3588
|
};
|
|
@@ -3750,23 +3593,23 @@ var deserializeAws_restJson1InitializationConfiguration = function (output, cont
|
|
|
3750
3593
|
};
|
|
3751
3594
|
var deserializeAws_restJson1Input = function (output, context) {
|
|
3752
3595
|
return {
|
|
3753
|
-
inputConfiguration: output.inputConfiguration
|
|
3596
|
+
inputConfiguration: output.inputConfiguration != null
|
|
3754
3597
|
? deserializeAws_restJson1InputConfiguration(output.inputConfiguration, context)
|
|
3755
3598
|
: undefined,
|
|
3756
|
-
inputDefinition: output.inputDefinition
|
|
3599
|
+
inputDefinition: output.inputDefinition != null
|
|
3757
3600
|
? deserializeAws_restJson1InputDefinition(output.inputDefinition, context)
|
|
3758
3601
|
: undefined,
|
|
3759
3602
|
};
|
|
3760
3603
|
};
|
|
3761
3604
|
var deserializeAws_restJson1InputConfiguration = function (output, context) {
|
|
3762
3605
|
return {
|
|
3763
|
-
creationTime: output.creationTime
|
|
3606
|
+
creationTime: output.creationTime != null
|
|
3764
3607
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3765
3608
|
: undefined,
|
|
3766
3609
|
inputArn: __expectString(output.inputArn),
|
|
3767
3610
|
inputDescription: __expectString(output.inputDescription),
|
|
3768
3611
|
inputName: __expectString(output.inputName),
|
|
3769
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3612
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3770
3613
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3771
3614
|
: undefined,
|
|
3772
3615
|
status: __expectString(output.status),
|
|
@@ -3774,9 +3617,7 @@ var deserializeAws_restJson1InputConfiguration = function (output, context) {
|
|
|
3774
3617
|
};
|
|
3775
3618
|
var deserializeAws_restJson1InputDefinition = function (output, context) {
|
|
3776
3619
|
return {
|
|
3777
|
-
attributes: output.attributes
|
|
3778
|
-
? deserializeAws_restJson1Attributes(output.attributes, context)
|
|
3779
|
-
: undefined,
|
|
3620
|
+
attributes: output.attributes != null ? deserializeAws_restJson1Attributes(output.attributes, context) : undefined,
|
|
3780
3621
|
};
|
|
3781
3622
|
};
|
|
3782
3623
|
var deserializeAws_restJson1InputSummaries = function (output, context) {
|
|
@@ -3792,13 +3633,13 @@ var deserializeAws_restJson1InputSummaries = function (output, context) {
|
|
|
3792
3633
|
};
|
|
3793
3634
|
var deserializeAws_restJson1InputSummary = function (output, context) {
|
|
3794
3635
|
return {
|
|
3795
|
-
creationTime: output.creationTime
|
|
3636
|
+
creationTime: output.creationTime != null
|
|
3796
3637
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3797
3638
|
: undefined,
|
|
3798
3639
|
inputArn: __expectString(output.inputArn),
|
|
3799
3640
|
inputDescription: __expectString(output.inputDescription),
|
|
3800
3641
|
inputName: __expectString(output.inputName),
|
|
3801
|
-
lastUpdateTime: output.lastUpdateTime
|
|
3642
|
+
lastUpdateTime: output.lastUpdateTime != null
|
|
3802
3643
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdateTime)))
|
|
3803
3644
|
: undefined,
|
|
3804
3645
|
status: __expectString(output.status),
|
|
@@ -3807,9 +3648,7 @@ var deserializeAws_restJson1InputSummary = function (output, context) {
|
|
|
3807
3648
|
var deserializeAws_restJson1IotEventsAction = function (output, context) {
|
|
3808
3649
|
return {
|
|
3809
3650
|
inputName: __expectString(output.inputName),
|
|
3810
|
-
payload: output.payload
|
|
3811
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3812
|
-
: undefined,
|
|
3651
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3813
3652
|
};
|
|
3814
3653
|
};
|
|
3815
3654
|
var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
@@ -3818,7 +3657,7 @@ var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
|
3818
3657
|
entryId: __expectString(output.entryId),
|
|
3819
3658
|
propertyAlias: __expectString(output.propertyAlias),
|
|
3820
3659
|
propertyId: __expectString(output.propertyId),
|
|
3821
|
-
propertyValue: output.propertyValue
|
|
3660
|
+
propertyValue: output.propertyValue != null
|
|
3822
3661
|
? deserializeAws_restJson1AssetPropertyValue(output.propertyValue, context)
|
|
3823
3662
|
: undefined,
|
|
3824
3663
|
};
|
|
@@ -3826,22 +3665,18 @@ var deserializeAws_restJson1IotSiteWiseAction = function (output, context) {
|
|
|
3826
3665
|
var deserializeAws_restJson1IotTopicPublishAction = function (output, context) {
|
|
3827
3666
|
return {
|
|
3828
3667
|
mqttTopic: __expectString(output.mqttTopic),
|
|
3829
|
-
payload: output.payload
|
|
3830
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3831
|
-
: undefined,
|
|
3668
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3832
3669
|
};
|
|
3833
3670
|
};
|
|
3834
3671
|
var deserializeAws_restJson1LambdaAction = function (output, context) {
|
|
3835
3672
|
return {
|
|
3836
3673
|
functionArn: __expectString(output.functionArn),
|
|
3837
|
-
payload: output.payload
|
|
3838
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3839
|
-
: undefined,
|
|
3674
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3840
3675
|
};
|
|
3841
3676
|
};
|
|
3842
3677
|
var deserializeAws_restJson1LoggingOptions = function (output, context) {
|
|
3843
3678
|
return {
|
|
3844
|
-
detectorDebugOptions: output.detectorDebugOptions
|
|
3679
|
+
detectorDebugOptions: output.detectorDebugOptions != null
|
|
3845
3680
|
? deserializeAws_restJson1DetectorDebugOptions(output.detectorDebugOptions, context)
|
|
3846
3681
|
: undefined,
|
|
3847
3682
|
enabled: __expectBoolean(output.enabled),
|
|
@@ -3851,13 +3686,11 @@ var deserializeAws_restJson1LoggingOptions = function (output, context) {
|
|
|
3851
3686
|
};
|
|
3852
3687
|
var deserializeAws_restJson1NotificationAction = function (output, context) {
|
|
3853
3688
|
return {
|
|
3854
|
-
action: output.action
|
|
3855
|
-
|
|
3856
|
-
: undefined,
|
|
3857
|
-
emailConfigurations: output.emailConfigurations !== undefined && output.emailConfigurations !== null
|
|
3689
|
+
action: output.action != null ? deserializeAws_restJson1NotificationTargetActions(output.action, context) : undefined,
|
|
3690
|
+
emailConfigurations: output.emailConfigurations != null
|
|
3858
3691
|
? deserializeAws_restJson1EmailConfigurations(output.emailConfigurations, context)
|
|
3859
3692
|
: undefined,
|
|
3860
|
-
smsConfigurations: output.smsConfigurations
|
|
3693
|
+
smsConfigurations: output.smsConfigurations != null
|
|
3861
3694
|
? deserializeAws_restJson1SMSConfigurations(output.smsConfigurations, context)
|
|
3862
3695
|
: undefined,
|
|
3863
3696
|
};
|
|
@@ -3875,31 +3708,23 @@ var deserializeAws_restJson1NotificationActions = function (output, context) {
|
|
|
3875
3708
|
};
|
|
3876
3709
|
var deserializeAws_restJson1NotificationTargetActions = function (output, context) {
|
|
3877
3710
|
return {
|
|
3878
|
-
lambdaAction: output.lambdaAction
|
|
3879
|
-
? deserializeAws_restJson1LambdaAction(output.lambdaAction, context)
|
|
3880
|
-
: undefined,
|
|
3711
|
+
lambdaAction: output.lambdaAction != null ? deserializeAws_restJson1LambdaAction(output.lambdaAction, context) : undefined,
|
|
3881
3712
|
};
|
|
3882
3713
|
};
|
|
3883
3714
|
var deserializeAws_restJson1OnEnterLifecycle = function (output, context) {
|
|
3884
3715
|
return {
|
|
3885
|
-
events: output.events
|
|
3886
|
-
? deserializeAws_restJson1Events(output.events, context)
|
|
3887
|
-
: undefined,
|
|
3716
|
+
events: output.events != null ? deserializeAws_restJson1Events(output.events, context) : undefined,
|
|
3888
3717
|
};
|
|
3889
3718
|
};
|
|
3890
3719
|
var deserializeAws_restJson1OnExitLifecycle = function (output, context) {
|
|
3891
3720
|
return {
|
|
3892
|
-
events: output.events
|
|
3893
|
-
? deserializeAws_restJson1Events(output.events, context)
|
|
3894
|
-
: undefined,
|
|
3721
|
+
events: output.events != null ? deserializeAws_restJson1Events(output.events, context) : undefined,
|
|
3895
3722
|
};
|
|
3896
3723
|
};
|
|
3897
3724
|
var deserializeAws_restJson1OnInputLifecycle = function (output, context) {
|
|
3898
3725
|
return {
|
|
3899
|
-
events: output.events
|
|
3900
|
-
|
|
3901
|
-
: undefined,
|
|
3902
|
-
transitionEvents: output.transitionEvents !== undefined && output.transitionEvents !== null
|
|
3726
|
+
events: output.events != null ? deserializeAws_restJson1Events(output.events, context) : undefined,
|
|
3727
|
+
transitionEvents: output.transitionEvents != null
|
|
3903
3728
|
? deserializeAws_restJson1TransitionEvents(output.transitionEvents, context)
|
|
3904
3729
|
: undefined,
|
|
3905
3730
|
};
|
|
@@ -3912,9 +3737,7 @@ var deserializeAws_restJson1Payload = function (output, context) {
|
|
|
3912
3737
|
};
|
|
3913
3738
|
var deserializeAws_restJson1RecipientDetail = function (output, context) {
|
|
3914
3739
|
return {
|
|
3915
|
-
ssoIdentity: output.ssoIdentity
|
|
3916
|
-
? deserializeAws_restJson1SSOIdentity(output.ssoIdentity, context)
|
|
3917
|
-
: undefined,
|
|
3740
|
+
ssoIdentity: output.ssoIdentity != null ? deserializeAws_restJson1SSOIdentity(output.ssoIdentity, context) : undefined,
|
|
3918
3741
|
};
|
|
3919
3742
|
};
|
|
3920
3743
|
var deserializeAws_restJson1RecipientDetails = function (output, context) {
|
|
@@ -3973,9 +3796,7 @@ var deserializeAws_restJson1SimpleRule = function (output, context) {
|
|
|
3973
3796
|
var deserializeAws_restJson1SMSConfiguration = function (output, context) {
|
|
3974
3797
|
return {
|
|
3975
3798
|
additionalMessage: __expectString(output.additionalMessage),
|
|
3976
|
-
recipients: output.recipients
|
|
3977
|
-
? deserializeAws_restJson1RecipientDetails(output.recipients, context)
|
|
3978
|
-
: undefined,
|
|
3799
|
+
recipients: output.recipients != null ? deserializeAws_restJson1RecipientDetails(output.recipients, context) : undefined,
|
|
3979
3800
|
senderId: __expectString(output.senderId),
|
|
3980
3801
|
};
|
|
3981
3802
|
};
|
|
@@ -3992,17 +3813,13 @@ var deserializeAws_restJson1SMSConfigurations = function (output, context) {
|
|
|
3992
3813
|
};
|
|
3993
3814
|
var deserializeAws_restJson1SNSTopicPublishAction = function (output, context) {
|
|
3994
3815
|
return {
|
|
3995
|
-
payload: output.payload
|
|
3996
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
3997
|
-
: undefined,
|
|
3816
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
3998
3817
|
targetArn: __expectString(output.targetArn),
|
|
3999
3818
|
};
|
|
4000
3819
|
};
|
|
4001
3820
|
var deserializeAws_restJson1SqsAction = function (output, context) {
|
|
4002
3821
|
return {
|
|
4003
|
-
payload: output.payload
|
|
4004
|
-
? deserializeAws_restJson1Payload(output.payload, context)
|
|
4005
|
-
: undefined,
|
|
3822
|
+
payload: output.payload != null ? deserializeAws_restJson1Payload(output.payload, context) : undefined,
|
|
4006
3823
|
queueUrl: __expectString(output.queueUrl),
|
|
4007
3824
|
useBase64: __expectBoolean(output.useBase64),
|
|
4008
3825
|
};
|
|
@@ -4015,15 +3832,9 @@ var deserializeAws_restJson1SSOIdentity = function (output, context) {
|
|
|
4015
3832
|
};
|
|
4016
3833
|
var deserializeAws_restJson1State = function (output, context) {
|
|
4017
3834
|
return {
|
|
4018
|
-
onEnter: output.onEnter
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
onExit: output.onExit !== undefined && output.onExit !== null
|
|
4022
|
-
? deserializeAws_restJson1OnExitLifecycle(output.onExit, context)
|
|
4023
|
-
: undefined,
|
|
4024
|
-
onInput: output.onInput !== undefined && output.onInput !== null
|
|
4025
|
-
? deserializeAws_restJson1OnInputLifecycle(output.onInput, context)
|
|
4026
|
-
: undefined,
|
|
3835
|
+
onEnter: output.onEnter != null ? deserializeAws_restJson1OnEnterLifecycle(output.onEnter, context) : undefined,
|
|
3836
|
+
onExit: output.onExit != null ? deserializeAws_restJson1OnExitLifecycle(output.onExit, context) : undefined,
|
|
3837
|
+
onInput: output.onInput != null ? deserializeAws_restJson1OnInputLifecycle(output.onInput, context) : undefined,
|
|
4027
3838
|
stateName: __expectString(output.stateName),
|
|
4028
3839
|
};
|
|
4029
3840
|
};
|
|
@@ -4057,9 +3868,7 @@ var deserializeAws_restJson1Tags = function (output, context) {
|
|
|
4057
3868
|
};
|
|
4058
3869
|
var deserializeAws_restJson1TransitionEvent = function (output, context) {
|
|
4059
3870
|
return {
|
|
4060
|
-
actions: output.actions
|
|
4061
|
-
? deserializeAws_restJson1Actions(output.actions, context)
|
|
4062
|
-
: undefined,
|
|
3871
|
+
actions: output.actions != null ? deserializeAws_restJson1Actions(output.actions, context) : undefined,
|
|
4063
3872
|
condition: __expectString(output.condition),
|
|
4064
3873
|
eventName: __expectString(output.eventName),
|
|
4065
3874
|
nextState: __expectString(output.nextState),
|