@aws-sdk/client-iot-events 3.306.0 → 3.309.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/dist-cjs/commands/CreateAlarmModelCommand.js +2 -2
- package/dist-cjs/commands/CreateDetectorModelCommand.js +2 -2
- package/dist-cjs/commands/CreateInputCommand.js +2 -2
- package/dist-cjs/commands/DeleteAlarmModelCommand.js +2 -2
- package/dist-cjs/commands/DeleteDetectorModelCommand.js +2 -2
- package/dist-cjs/commands/DeleteInputCommand.js +2 -2
- package/dist-cjs/commands/DescribeAlarmModelCommand.js +2 -2
- package/dist-cjs/commands/DescribeDetectorModelAnalysisCommand.js +2 -2
- package/dist-cjs/commands/DescribeDetectorModelCommand.js +2 -2
- package/dist-cjs/commands/DescribeInputCommand.js +2 -2
- package/dist-cjs/commands/DescribeLoggingOptionsCommand.js +2 -2
- package/dist-cjs/commands/GetDetectorModelAnalysisResultsCommand.js +2 -2
- package/dist-cjs/commands/ListAlarmModelVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListAlarmModelsCommand.js +2 -2
- package/dist-cjs/commands/ListDetectorModelVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListDetectorModelsCommand.js +2 -2
- package/dist-cjs/commands/ListInputRoutingsCommand.js +2 -2
- package/dist-cjs/commands/ListInputsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutLoggingOptionsCommand.js +2 -2
- package/dist-cjs/commands/StartDetectorModelAnalysisCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAlarmModelCommand.js +2 -2
- package/dist-cjs/commands/UpdateDetectorModelCommand.js +2 -2
- package/dist-cjs/commands/UpdateInputCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +643 -695
- package/dist-es/commands/CreateAlarmModelCommand.js +3 -3
- package/dist-es/commands/CreateDetectorModelCommand.js +3 -3
- package/dist-es/commands/CreateInputCommand.js +3 -3
- package/dist-es/commands/DeleteAlarmModelCommand.js +3 -3
- package/dist-es/commands/DeleteDetectorModelCommand.js +3 -3
- package/dist-es/commands/DeleteInputCommand.js +3 -3
- package/dist-es/commands/DescribeAlarmModelCommand.js +3 -3
- package/dist-es/commands/DescribeDetectorModelAnalysisCommand.js +3 -3
- package/dist-es/commands/DescribeDetectorModelCommand.js +3 -3
- package/dist-es/commands/DescribeInputCommand.js +3 -3
- package/dist-es/commands/DescribeLoggingOptionsCommand.js +3 -3
- package/dist-es/commands/GetDetectorModelAnalysisResultsCommand.js +3 -3
- package/dist-es/commands/ListAlarmModelVersionsCommand.js +3 -3
- package/dist-es/commands/ListAlarmModelsCommand.js +3 -3
- package/dist-es/commands/ListDetectorModelVersionsCommand.js +3 -3
- package/dist-es/commands/ListDetectorModelsCommand.js +3 -3
- package/dist-es/commands/ListInputRoutingsCommand.js +3 -3
- package/dist-es/commands/ListInputsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutLoggingOptionsCommand.js +3 -3
- package/dist-es/commands/StartDetectorModelAnalysisCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAlarmModelCommand.js +3 -3
- package/dist-es/commands/UpdateDetectorModelCommand.js +3 -3
- package/dist-es/commands/UpdateInputCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +589 -641
- package/dist-types/protocols/Aws_restJson1.d.ts +208 -52
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +52 -52
- package/package.json +6 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_UpdateAlarmModelCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartDetectorModelAnalysisCommand = exports.de_PutLoggingOptionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListInputsCommand = exports.de_ListInputRoutingsCommand = exports.de_ListDetectorModelVersionsCommand = exports.de_ListDetectorModelsCommand = exports.de_ListAlarmModelVersionsCommand = exports.de_ListAlarmModelsCommand = exports.de_GetDetectorModelAnalysisResultsCommand = exports.de_DescribeLoggingOptionsCommand = exports.de_DescribeInputCommand = exports.de_DescribeDetectorModelAnalysisCommand = exports.de_DescribeDetectorModelCommand = exports.de_DescribeAlarmModelCommand = exports.de_DeleteInputCommand = exports.de_DeleteDetectorModelCommand = exports.de_DeleteAlarmModelCommand = exports.de_CreateInputCommand = exports.de_CreateDetectorModelCommand = exports.de_CreateAlarmModelCommand = exports.se_UpdateInputCommand = exports.se_UpdateDetectorModelCommand = exports.se_UpdateAlarmModelCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartDetectorModelAnalysisCommand = exports.se_PutLoggingOptionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListInputsCommand = exports.se_ListInputRoutingsCommand = exports.se_ListDetectorModelVersionsCommand = exports.se_ListDetectorModelsCommand = exports.se_ListAlarmModelVersionsCommand = exports.se_ListAlarmModelsCommand = exports.se_GetDetectorModelAnalysisResultsCommand = exports.se_DescribeLoggingOptionsCommand = exports.se_DescribeInputCommand = exports.se_DescribeDetectorModelAnalysisCommand = exports.se_DescribeDetectorModelCommand = exports.se_DescribeAlarmModelCommand = exports.se_DeleteInputCommand = exports.se_DeleteDetectorModelCommand = exports.se_DeleteAlarmModelCommand = exports.se_CreateInputCommand = exports.se_CreateDetectorModelCommand = exports.se_CreateAlarmModelCommand = void 0;
|
|
4
|
+
exports.de_UpdateInputCommand = exports.de_UpdateDetectorModelCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const IoTEventsServiceException_1 = require("../models/IoTEventsServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateAlarmModelCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -15,21 +15,21 @@ const serializeAws_restJson1CreateAlarmModelCommand = async (input, context) =>
|
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
17
|
...(input.alarmCapabilities != null && {
|
|
18
|
-
alarmCapabilities:
|
|
18
|
+
alarmCapabilities: se_AlarmCapabilities(input.alarmCapabilities, context),
|
|
19
19
|
}),
|
|
20
20
|
...(input.alarmEventActions != null && {
|
|
21
|
-
alarmEventActions:
|
|
21
|
+
alarmEventActions: se_AlarmEventActions(input.alarmEventActions, context),
|
|
22
22
|
}),
|
|
23
23
|
...(input.alarmModelDescription != null && { alarmModelDescription: input.alarmModelDescription }),
|
|
24
24
|
...(input.alarmModelName != null && { alarmModelName: input.alarmModelName }),
|
|
25
25
|
...(input.alarmNotification != null && {
|
|
26
|
-
alarmNotification:
|
|
26
|
+
alarmNotification: se_AlarmNotification(input.alarmNotification, context),
|
|
27
27
|
}),
|
|
28
|
-
...(input.alarmRule != null && { alarmRule:
|
|
28
|
+
...(input.alarmRule != null && { alarmRule: se_AlarmRule(input.alarmRule, context) }),
|
|
29
29
|
...(input.key != null && { key: input.key }),
|
|
30
30
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
31
31
|
...(input.severity != null && { severity: input.severity }),
|
|
32
|
-
...(input.tags != null && { tags:
|
|
32
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
33
33
|
});
|
|
34
34
|
return new protocol_http_1.HttpRequest({
|
|
35
35
|
protocol,
|
|
@@ -41,8 +41,8 @@ const serializeAws_restJson1CreateAlarmModelCommand = async (input, context) =>
|
|
|
41
41
|
body,
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
exports.
|
|
45
|
-
const
|
|
44
|
+
exports.se_CreateAlarmModelCommand = se_CreateAlarmModelCommand;
|
|
45
|
+
const se_CreateDetectorModelCommand = async (input, context) => {
|
|
46
46
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
47
47
|
const headers = {
|
|
48
48
|
"content-type": "application/json",
|
|
@@ -51,14 +51,14 @@ const serializeAws_restJson1CreateDetectorModelCommand = async (input, context)
|
|
|
51
51
|
let body;
|
|
52
52
|
body = JSON.stringify({
|
|
53
53
|
...(input.detectorModelDefinition != null && {
|
|
54
|
-
detectorModelDefinition:
|
|
54
|
+
detectorModelDefinition: se_DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
55
55
|
}),
|
|
56
56
|
...(input.detectorModelDescription != null && { detectorModelDescription: input.detectorModelDescription }),
|
|
57
57
|
...(input.detectorModelName != null && { detectorModelName: input.detectorModelName }),
|
|
58
58
|
...(input.evaluationMethod != null && { evaluationMethod: input.evaluationMethod }),
|
|
59
59
|
...(input.key != null && { key: input.key }),
|
|
60
60
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
61
|
-
...(input.tags != null && { tags:
|
|
61
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
62
62
|
});
|
|
63
63
|
return new protocol_http_1.HttpRequest({
|
|
64
64
|
protocol,
|
|
@@ -70,8 +70,8 @@ const serializeAws_restJson1CreateDetectorModelCommand = async (input, context)
|
|
|
70
70
|
body,
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
|
-
exports.
|
|
74
|
-
const
|
|
73
|
+
exports.se_CreateDetectorModelCommand = se_CreateDetectorModelCommand;
|
|
74
|
+
const se_CreateInputCommand = async (input, context) => {
|
|
75
75
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
76
76
|
const headers = {
|
|
77
77
|
"content-type": "application/json",
|
|
@@ -79,12 +79,10 @@ const serializeAws_restJson1CreateInputCommand = async (input, context) => {
|
|
|
79
79
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs";
|
|
80
80
|
let body;
|
|
81
81
|
body = JSON.stringify({
|
|
82
|
-
...(input.inputDefinition != null && {
|
|
83
|
-
inputDefinition: serializeAws_restJson1InputDefinition(input.inputDefinition, context),
|
|
84
|
-
}),
|
|
82
|
+
...(input.inputDefinition != null && { inputDefinition: se_InputDefinition(input.inputDefinition, context) }),
|
|
85
83
|
...(input.inputDescription != null && { inputDescription: input.inputDescription }),
|
|
86
84
|
...(input.inputName != null && { inputName: input.inputName }),
|
|
87
|
-
...(input.tags != null && { tags:
|
|
85
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
88
86
|
});
|
|
89
87
|
return new protocol_http_1.HttpRequest({
|
|
90
88
|
protocol,
|
|
@@ -96,8 +94,8 @@ const serializeAws_restJson1CreateInputCommand = async (input, context) => {
|
|
|
96
94
|
body,
|
|
97
95
|
});
|
|
98
96
|
};
|
|
99
|
-
exports.
|
|
100
|
-
const
|
|
97
|
+
exports.se_CreateInputCommand = se_CreateInputCommand;
|
|
98
|
+
const se_DeleteAlarmModelCommand = async (input, context) => {
|
|
101
99
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
102
100
|
const headers = {};
|
|
103
101
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}";
|
|
@@ -113,8 +111,8 @@ const serializeAws_restJson1DeleteAlarmModelCommand = async (input, context) =>
|
|
|
113
111
|
body,
|
|
114
112
|
});
|
|
115
113
|
};
|
|
116
|
-
exports.
|
|
117
|
-
const
|
|
114
|
+
exports.se_DeleteAlarmModelCommand = se_DeleteAlarmModelCommand;
|
|
115
|
+
const se_DeleteDetectorModelCommand = async (input, context) => {
|
|
118
116
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
119
117
|
const headers = {};
|
|
120
118
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}";
|
|
@@ -130,8 +128,8 @@ const serializeAws_restJson1DeleteDetectorModelCommand = async (input, context)
|
|
|
130
128
|
body,
|
|
131
129
|
});
|
|
132
130
|
};
|
|
133
|
-
exports.
|
|
134
|
-
const
|
|
131
|
+
exports.se_DeleteDetectorModelCommand = se_DeleteDetectorModelCommand;
|
|
132
|
+
const se_DeleteInputCommand = async (input, context) => {
|
|
135
133
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
136
134
|
const headers = {};
|
|
137
135
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/{inputName}";
|
|
@@ -147,8 +145,8 @@ const serializeAws_restJson1DeleteInputCommand = async (input, context) => {
|
|
|
147
145
|
body,
|
|
148
146
|
});
|
|
149
147
|
};
|
|
150
|
-
exports.
|
|
151
|
-
const
|
|
148
|
+
exports.se_DeleteInputCommand = se_DeleteInputCommand;
|
|
149
|
+
const se_DescribeAlarmModelCommand = async (input, context) => {
|
|
152
150
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
153
151
|
const headers = {};
|
|
154
152
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}";
|
|
@@ -168,8 +166,8 @@ const serializeAws_restJson1DescribeAlarmModelCommand = async (input, context) =
|
|
|
168
166
|
body,
|
|
169
167
|
});
|
|
170
168
|
};
|
|
171
|
-
exports.
|
|
172
|
-
const
|
|
169
|
+
exports.se_DescribeAlarmModelCommand = se_DescribeAlarmModelCommand;
|
|
170
|
+
const se_DescribeDetectorModelCommand = async (input, context) => {
|
|
173
171
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
174
172
|
const headers = {};
|
|
175
173
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models/{detectorModelName}";
|
|
@@ -189,8 +187,8 @@ const serializeAws_restJson1DescribeDetectorModelCommand = async (input, context
|
|
|
189
187
|
body,
|
|
190
188
|
});
|
|
191
189
|
};
|
|
192
|
-
exports.
|
|
193
|
-
const
|
|
190
|
+
exports.se_DescribeDetectorModelCommand = se_DescribeDetectorModelCommand;
|
|
191
|
+
const se_DescribeDetectorModelAnalysisCommand = async (input, context) => {
|
|
194
192
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
195
193
|
const headers = {};
|
|
196
194
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analysis/detector-models/{analysisId}";
|
|
@@ -206,8 +204,8 @@ const serializeAws_restJson1DescribeDetectorModelAnalysisCommand = async (input,
|
|
|
206
204
|
body,
|
|
207
205
|
});
|
|
208
206
|
};
|
|
209
|
-
exports.
|
|
210
|
-
const
|
|
207
|
+
exports.se_DescribeDetectorModelAnalysisCommand = se_DescribeDetectorModelAnalysisCommand;
|
|
208
|
+
const se_DescribeInputCommand = async (input, context) => {
|
|
211
209
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
210
|
const headers = {};
|
|
213
211
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs/{inputName}";
|
|
@@ -223,8 +221,8 @@ const serializeAws_restJson1DescribeInputCommand = async (input, context) => {
|
|
|
223
221
|
body,
|
|
224
222
|
});
|
|
225
223
|
};
|
|
226
|
-
exports.
|
|
227
|
-
const
|
|
224
|
+
exports.se_DescribeInputCommand = se_DescribeInputCommand;
|
|
225
|
+
const se_DescribeLoggingOptionsCommand = async (input, context) => {
|
|
228
226
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
227
|
const headers = {
|
|
230
228
|
"content-type": "application/json",
|
|
@@ -242,8 +240,8 @@ const serializeAws_restJson1DescribeLoggingOptionsCommand = async (input, contex
|
|
|
242
240
|
body,
|
|
243
241
|
});
|
|
244
242
|
};
|
|
245
|
-
exports.
|
|
246
|
-
const
|
|
243
|
+
exports.se_DescribeLoggingOptionsCommand = se_DescribeLoggingOptionsCommand;
|
|
244
|
+
const se_GetDetectorModelAnalysisResultsCommand = async (input, context) => {
|
|
247
245
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
248
246
|
const headers = {};
|
|
249
247
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -265,8 +263,8 @@ const serializeAws_restJson1GetDetectorModelAnalysisResultsCommand = async (inpu
|
|
|
265
263
|
body,
|
|
266
264
|
});
|
|
267
265
|
};
|
|
268
|
-
exports.
|
|
269
|
-
const
|
|
266
|
+
exports.se_GetDetectorModelAnalysisResultsCommand = se_GetDetectorModelAnalysisResultsCommand;
|
|
267
|
+
const se_ListAlarmModelsCommand = async (input, context) => {
|
|
270
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
271
269
|
const headers = {};
|
|
272
270
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models";
|
|
@@ -286,8 +284,8 @@ const serializeAws_restJson1ListAlarmModelsCommand = async (input, context) => {
|
|
|
286
284
|
body,
|
|
287
285
|
});
|
|
288
286
|
};
|
|
289
|
-
exports.
|
|
290
|
-
const
|
|
287
|
+
exports.se_ListAlarmModelsCommand = se_ListAlarmModelsCommand;
|
|
288
|
+
const se_ListAlarmModelVersionsCommand = async (input, context) => {
|
|
291
289
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
292
290
|
const headers = {};
|
|
293
291
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/alarm-models/{alarmModelName}/versions";
|
|
@@ -308,8 +306,8 @@ const serializeAws_restJson1ListAlarmModelVersionsCommand = async (input, contex
|
|
|
308
306
|
body,
|
|
309
307
|
});
|
|
310
308
|
};
|
|
311
|
-
exports.
|
|
312
|
-
const
|
|
309
|
+
exports.se_ListAlarmModelVersionsCommand = se_ListAlarmModelVersionsCommand;
|
|
310
|
+
const se_ListDetectorModelsCommand = async (input, context) => {
|
|
313
311
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
314
312
|
const headers = {};
|
|
315
313
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/detector-models";
|
|
@@ -329,8 +327,8 @@ const serializeAws_restJson1ListDetectorModelsCommand = async (input, context) =
|
|
|
329
327
|
body,
|
|
330
328
|
});
|
|
331
329
|
};
|
|
332
|
-
exports.
|
|
333
|
-
const
|
|
330
|
+
exports.se_ListDetectorModelsCommand = se_ListDetectorModelsCommand;
|
|
331
|
+
const se_ListDetectorModelVersionsCommand = async (input, context) => {
|
|
334
332
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
335
333
|
const headers = {};
|
|
336
334
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -352,8 +350,8 @@ const serializeAws_restJson1ListDetectorModelVersionsCommand = async (input, con
|
|
|
352
350
|
body,
|
|
353
351
|
});
|
|
354
352
|
};
|
|
355
|
-
exports.
|
|
356
|
-
const
|
|
353
|
+
exports.se_ListDetectorModelVersionsCommand = se_ListDetectorModelVersionsCommand;
|
|
354
|
+
const se_ListInputRoutingsCommand = async (input, context) => {
|
|
357
355
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
358
356
|
const headers = {
|
|
359
357
|
"content-type": "application/json",
|
|
@@ -361,9 +359,7 @@ const serializeAws_restJson1ListInputRoutingsCommand = async (input, context) =>
|
|
|
361
359
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/input-routings";
|
|
362
360
|
let body;
|
|
363
361
|
body = JSON.stringify({
|
|
364
|
-
...(input.inputIdentifier != null && {
|
|
365
|
-
inputIdentifier: serializeAws_restJson1InputIdentifier(input.inputIdentifier, context),
|
|
366
|
-
}),
|
|
362
|
+
...(input.inputIdentifier != null && { inputIdentifier: se_InputIdentifier(input.inputIdentifier, context) }),
|
|
367
363
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
368
364
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
369
365
|
});
|
|
@@ -377,8 +373,8 @@ const serializeAws_restJson1ListInputRoutingsCommand = async (input, context) =>
|
|
|
377
373
|
body,
|
|
378
374
|
});
|
|
379
375
|
};
|
|
380
|
-
exports.
|
|
381
|
-
const
|
|
376
|
+
exports.se_ListInputRoutingsCommand = se_ListInputRoutingsCommand;
|
|
377
|
+
const se_ListInputsCommand = async (input, context) => {
|
|
382
378
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
383
379
|
const headers = {};
|
|
384
380
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/inputs";
|
|
@@ -398,8 +394,8 @@ const serializeAws_restJson1ListInputsCommand = async (input, context) => {
|
|
|
398
394
|
body,
|
|
399
395
|
});
|
|
400
396
|
};
|
|
401
|
-
exports.
|
|
402
|
-
const
|
|
397
|
+
exports.se_ListInputsCommand = se_ListInputsCommand;
|
|
398
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
403
399
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
404
400
|
const headers = {};
|
|
405
401
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
@@ -418,8 +414,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
418
414
|
body,
|
|
419
415
|
});
|
|
420
416
|
};
|
|
421
|
-
exports.
|
|
422
|
-
const
|
|
417
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
418
|
+
const se_PutLoggingOptionsCommand = async (input, context) => {
|
|
423
419
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
424
420
|
const headers = {
|
|
425
421
|
"content-type": "application/json",
|
|
@@ -427,9 +423,7 @@ const serializeAws_restJson1PutLoggingOptionsCommand = async (input, context) =>
|
|
|
427
423
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logging";
|
|
428
424
|
let body;
|
|
429
425
|
body = JSON.stringify({
|
|
430
|
-
...(input.loggingOptions != null && {
|
|
431
|
-
loggingOptions: serializeAws_restJson1LoggingOptions(input.loggingOptions, context),
|
|
432
|
-
}),
|
|
426
|
+
...(input.loggingOptions != null && { loggingOptions: se_LoggingOptions(input.loggingOptions, context) }),
|
|
433
427
|
});
|
|
434
428
|
return new protocol_http_1.HttpRequest({
|
|
435
429
|
protocol,
|
|
@@ -441,8 +435,8 @@ const serializeAws_restJson1PutLoggingOptionsCommand = async (input, context) =>
|
|
|
441
435
|
body,
|
|
442
436
|
});
|
|
443
437
|
};
|
|
444
|
-
exports.
|
|
445
|
-
const
|
|
438
|
+
exports.se_PutLoggingOptionsCommand = se_PutLoggingOptionsCommand;
|
|
439
|
+
const se_StartDetectorModelAnalysisCommand = async (input, context) => {
|
|
446
440
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
447
441
|
const headers = {
|
|
448
442
|
"content-type": "application/json",
|
|
@@ -451,7 +445,7 @@ const serializeAws_restJson1StartDetectorModelAnalysisCommand = async (input, co
|
|
|
451
445
|
let body;
|
|
452
446
|
body = JSON.stringify({
|
|
453
447
|
...(input.detectorModelDefinition != null && {
|
|
454
|
-
detectorModelDefinition:
|
|
448
|
+
detectorModelDefinition: se_DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
455
449
|
}),
|
|
456
450
|
});
|
|
457
451
|
return new protocol_http_1.HttpRequest({
|
|
@@ -464,8 +458,8 @@ const serializeAws_restJson1StartDetectorModelAnalysisCommand = async (input, co
|
|
|
464
458
|
body,
|
|
465
459
|
});
|
|
466
460
|
};
|
|
467
|
-
exports.
|
|
468
|
-
const
|
|
461
|
+
exports.se_StartDetectorModelAnalysisCommand = se_StartDetectorModelAnalysisCommand;
|
|
462
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
469
463
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
470
464
|
const headers = {
|
|
471
465
|
"content-type": "application/json",
|
|
@@ -476,7 +470,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
476
470
|
});
|
|
477
471
|
let body;
|
|
478
472
|
body = JSON.stringify({
|
|
479
|
-
...(input.tags != null && { tags:
|
|
473
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
480
474
|
});
|
|
481
475
|
return new protocol_http_1.HttpRequest({
|
|
482
476
|
protocol,
|
|
@@ -489,8 +483,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
489
483
|
body,
|
|
490
484
|
});
|
|
491
485
|
};
|
|
492
|
-
exports.
|
|
493
|
-
const
|
|
486
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
487
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
494
488
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
495
489
|
const headers = {};
|
|
496
490
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
@@ -513,8 +507,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
513
507
|
body,
|
|
514
508
|
});
|
|
515
509
|
};
|
|
516
|
-
exports.
|
|
517
|
-
const
|
|
510
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
511
|
+
const se_UpdateAlarmModelCommand = async (input, context) => {
|
|
518
512
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
519
513
|
const headers = {
|
|
520
514
|
"content-type": "application/json",
|
|
@@ -524,16 +518,16 @@ const serializeAws_restJson1UpdateAlarmModelCommand = async (input, context) =>
|
|
|
524
518
|
let body;
|
|
525
519
|
body = JSON.stringify({
|
|
526
520
|
...(input.alarmCapabilities != null && {
|
|
527
|
-
alarmCapabilities:
|
|
521
|
+
alarmCapabilities: se_AlarmCapabilities(input.alarmCapabilities, context),
|
|
528
522
|
}),
|
|
529
523
|
...(input.alarmEventActions != null && {
|
|
530
|
-
alarmEventActions:
|
|
524
|
+
alarmEventActions: se_AlarmEventActions(input.alarmEventActions, context),
|
|
531
525
|
}),
|
|
532
526
|
...(input.alarmModelDescription != null && { alarmModelDescription: input.alarmModelDescription }),
|
|
533
527
|
...(input.alarmNotification != null && {
|
|
534
|
-
alarmNotification:
|
|
528
|
+
alarmNotification: se_AlarmNotification(input.alarmNotification, context),
|
|
535
529
|
}),
|
|
536
|
-
...(input.alarmRule != null && { alarmRule:
|
|
530
|
+
...(input.alarmRule != null && { alarmRule: se_AlarmRule(input.alarmRule, context) }),
|
|
537
531
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
538
532
|
...(input.severity != null && { severity: input.severity }),
|
|
539
533
|
});
|
|
@@ -547,8 +541,8 @@ const serializeAws_restJson1UpdateAlarmModelCommand = async (input, context) =>
|
|
|
547
541
|
body,
|
|
548
542
|
});
|
|
549
543
|
};
|
|
550
|
-
exports.
|
|
551
|
-
const
|
|
544
|
+
exports.se_UpdateAlarmModelCommand = se_UpdateAlarmModelCommand;
|
|
545
|
+
const se_UpdateDetectorModelCommand = async (input, context) => {
|
|
552
546
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
553
547
|
const headers = {
|
|
554
548
|
"content-type": "application/json",
|
|
@@ -558,7 +552,7 @@ const serializeAws_restJson1UpdateDetectorModelCommand = async (input, context)
|
|
|
558
552
|
let body;
|
|
559
553
|
body = JSON.stringify({
|
|
560
554
|
...(input.detectorModelDefinition != null && {
|
|
561
|
-
detectorModelDefinition:
|
|
555
|
+
detectorModelDefinition: se_DetectorModelDefinition(input.detectorModelDefinition, context),
|
|
562
556
|
}),
|
|
563
557
|
...(input.detectorModelDescription != null && { detectorModelDescription: input.detectorModelDescription }),
|
|
564
558
|
...(input.evaluationMethod != null && { evaluationMethod: input.evaluationMethod }),
|
|
@@ -574,8 +568,8 @@ const serializeAws_restJson1UpdateDetectorModelCommand = async (input, context)
|
|
|
574
568
|
body,
|
|
575
569
|
});
|
|
576
570
|
};
|
|
577
|
-
exports.
|
|
578
|
-
const
|
|
571
|
+
exports.se_UpdateDetectorModelCommand = se_UpdateDetectorModelCommand;
|
|
572
|
+
const se_UpdateInputCommand = async (input, context) => {
|
|
579
573
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
580
574
|
const headers = {
|
|
581
575
|
"content-type": "application/json",
|
|
@@ -584,9 +578,7 @@ const serializeAws_restJson1UpdateInputCommand = async (input, context) => {
|
|
|
584
578
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "inputName", () => input.inputName, "{inputName}", false);
|
|
585
579
|
let body;
|
|
586
580
|
body = JSON.stringify({
|
|
587
|
-
...(input.inputDefinition != null && {
|
|
588
|
-
inputDefinition: serializeAws_restJson1InputDefinition(input.inputDefinition, context),
|
|
589
|
-
}),
|
|
581
|
+
...(input.inputDefinition != null && { inputDefinition: se_InputDefinition(input.inputDefinition, context) }),
|
|
590
582
|
...(input.inputDescription != null && { inputDescription: input.inputDescription }),
|
|
591
583
|
});
|
|
592
584
|
return new protocol_http_1.HttpRequest({
|
|
@@ -599,10 +591,10 @@ const serializeAws_restJson1UpdateInputCommand = async (input, context) => {
|
|
|
599
591
|
body,
|
|
600
592
|
});
|
|
601
593
|
};
|
|
602
|
-
exports.
|
|
603
|
-
const
|
|
594
|
+
exports.se_UpdateInputCommand = se_UpdateInputCommand;
|
|
595
|
+
const de_CreateAlarmModelCommand = async (output, context) => {
|
|
604
596
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
605
|
-
return
|
|
597
|
+
return de_CreateAlarmModelCommandError(output, context);
|
|
606
598
|
}
|
|
607
599
|
const contents = map({
|
|
608
600
|
$metadata: deserializeMetadata(output),
|
|
@@ -625,8 +617,8 @@ const deserializeAws_restJson1CreateAlarmModelCommand = async (output, context)
|
|
|
625
617
|
}
|
|
626
618
|
return contents;
|
|
627
619
|
};
|
|
628
|
-
exports.
|
|
629
|
-
const
|
|
620
|
+
exports.de_CreateAlarmModelCommand = de_CreateAlarmModelCommand;
|
|
621
|
+
const de_CreateAlarmModelCommandError = async (output, context) => {
|
|
630
622
|
const parsedOutput = {
|
|
631
623
|
...output,
|
|
632
624
|
body: await parseErrorBody(output.body, context),
|
|
@@ -635,25 +627,25 @@ const deserializeAws_restJson1CreateAlarmModelCommandError = async (output, cont
|
|
|
635
627
|
switch (errorCode) {
|
|
636
628
|
case "InternalFailureException":
|
|
637
629
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
638
|
-
throw await
|
|
630
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
639
631
|
case "InvalidRequestException":
|
|
640
632
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
641
|
-
throw await
|
|
633
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
642
634
|
case "LimitExceededException":
|
|
643
635
|
case "com.amazonaws.iotevents#LimitExceededException":
|
|
644
|
-
throw await
|
|
636
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
645
637
|
case "ResourceAlreadyExistsException":
|
|
646
638
|
case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
|
|
647
|
-
throw await
|
|
639
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
648
640
|
case "ResourceInUseException":
|
|
649
641
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
650
|
-
throw await
|
|
642
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
651
643
|
case "ServiceUnavailableException":
|
|
652
644
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
653
|
-
throw await
|
|
645
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
654
646
|
case "ThrottlingException":
|
|
655
647
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
656
|
-
throw await
|
|
648
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
657
649
|
default:
|
|
658
650
|
const parsedBody = parsedOutput.body;
|
|
659
651
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -664,21 +656,21 @@ const deserializeAws_restJson1CreateAlarmModelCommandError = async (output, cont
|
|
|
664
656
|
});
|
|
665
657
|
}
|
|
666
658
|
};
|
|
667
|
-
const
|
|
659
|
+
const de_CreateDetectorModelCommand = async (output, context) => {
|
|
668
660
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
669
|
-
return
|
|
661
|
+
return de_CreateDetectorModelCommandError(output, context);
|
|
670
662
|
}
|
|
671
663
|
const contents = map({
|
|
672
664
|
$metadata: deserializeMetadata(output),
|
|
673
665
|
});
|
|
674
666
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
675
667
|
if (data.detectorModelConfiguration != null) {
|
|
676
|
-
contents.detectorModelConfiguration =
|
|
668
|
+
contents.detectorModelConfiguration = de_DetectorModelConfiguration(data.detectorModelConfiguration, context);
|
|
677
669
|
}
|
|
678
670
|
return contents;
|
|
679
671
|
};
|
|
680
|
-
exports.
|
|
681
|
-
const
|
|
672
|
+
exports.de_CreateDetectorModelCommand = de_CreateDetectorModelCommand;
|
|
673
|
+
const de_CreateDetectorModelCommandError = async (output, context) => {
|
|
682
674
|
const parsedOutput = {
|
|
683
675
|
...output,
|
|
684
676
|
body: await parseErrorBody(output.body, context),
|
|
@@ -687,25 +679,25 @@ const deserializeAws_restJson1CreateDetectorModelCommandError = async (output, c
|
|
|
687
679
|
switch (errorCode) {
|
|
688
680
|
case "InternalFailureException":
|
|
689
681
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
690
|
-
throw await
|
|
682
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
691
683
|
case "InvalidRequestException":
|
|
692
684
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
693
|
-
throw await
|
|
685
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
694
686
|
case "LimitExceededException":
|
|
695
687
|
case "com.amazonaws.iotevents#LimitExceededException":
|
|
696
|
-
throw await
|
|
688
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
697
689
|
case "ResourceAlreadyExistsException":
|
|
698
690
|
case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
|
|
699
|
-
throw await
|
|
691
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
700
692
|
case "ResourceInUseException":
|
|
701
693
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
702
|
-
throw await
|
|
694
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
703
695
|
case "ServiceUnavailableException":
|
|
704
696
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
705
|
-
throw await
|
|
697
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
706
698
|
case "ThrottlingException":
|
|
707
699
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
708
|
-
throw await
|
|
700
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
709
701
|
default:
|
|
710
702
|
const parsedBody = parsedOutput.body;
|
|
711
703
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -716,21 +708,21 @@ const deserializeAws_restJson1CreateDetectorModelCommandError = async (output, c
|
|
|
716
708
|
});
|
|
717
709
|
}
|
|
718
710
|
};
|
|
719
|
-
const
|
|
711
|
+
const de_CreateInputCommand = async (output, context) => {
|
|
720
712
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
721
|
-
return
|
|
713
|
+
return de_CreateInputCommandError(output, context);
|
|
722
714
|
}
|
|
723
715
|
const contents = map({
|
|
724
716
|
$metadata: deserializeMetadata(output),
|
|
725
717
|
});
|
|
726
718
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
727
719
|
if (data.inputConfiguration != null) {
|
|
728
|
-
contents.inputConfiguration =
|
|
720
|
+
contents.inputConfiguration = de_InputConfiguration(data.inputConfiguration, context);
|
|
729
721
|
}
|
|
730
722
|
return contents;
|
|
731
723
|
};
|
|
732
|
-
exports.
|
|
733
|
-
const
|
|
724
|
+
exports.de_CreateInputCommand = de_CreateInputCommand;
|
|
725
|
+
const de_CreateInputCommandError = async (output, context) => {
|
|
734
726
|
const parsedOutput = {
|
|
735
727
|
...output,
|
|
736
728
|
body: await parseErrorBody(output.body, context),
|
|
@@ -739,19 +731,19 @@ const deserializeAws_restJson1CreateInputCommandError = async (output, context)
|
|
|
739
731
|
switch (errorCode) {
|
|
740
732
|
case "InternalFailureException":
|
|
741
733
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
742
|
-
throw await
|
|
734
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
743
735
|
case "InvalidRequestException":
|
|
744
736
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
745
|
-
throw await
|
|
737
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
746
738
|
case "ResourceAlreadyExistsException":
|
|
747
739
|
case "com.amazonaws.iotevents#ResourceAlreadyExistsException":
|
|
748
|
-
throw await
|
|
740
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
749
741
|
case "ServiceUnavailableException":
|
|
750
742
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
751
|
-
throw await
|
|
743
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
752
744
|
case "ThrottlingException":
|
|
753
745
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
754
|
-
throw await
|
|
746
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
755
747
|
default:
|
|
756
748
|
const parsedBody = parsedOutput.body;
|
|
757
749
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -762,9 +754,9 @@ const deserializeAws_restJson1CreateInputCommandError = async (output, context)
|
|
|
762
754
|
});
|
|
763
755
|
}
|
|
764
756
|
};
|
|
765
|
-
const
|
|
757
|
+
const de_DeleteAlarmModelCommand = async (output, context) => {
|
|
766
758
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
767
|
-
return
|
|
759
|
+
return de_DeleteAlarmModelCommandError(output, context);
|
|
768
760
|
}
|
|
769
761
|
const contents = map({
|
|
770
762
|
$metadata: deserializeMetadata(output),
|
|
@@ -772,8 +764,8 @@ const deserializeAws_restJson1DeleteAlarmModelCommand = async (output, context)
|
|
|
772
764
|
await collectBody(output.body, context);
|
|
773
765
|
return contents;
|
|
774
766
|
};
|
|
775
|
-
exports.
|
|
776
|
-
const
|
|
767
|
+
exports.de_DeleteAlarmModelCommand = de_DeleteAlarmModelCommand;
|
|
768
|
+
const de_DeleteAlarmModelCommandError = async (output, context) => {
|
|
777
769
|
const parsedOutput = {
|
|
778
770
|
...output,
|
|
779
771
|
body: await parseErrorBody(output.body, context),
|
|
@@ -782,22 +774,22 @@ const deserializeAws_restJson1DeleteAlarmModelCommandError = async (output, cont
|
|
|
782
774
|
switch (errorCode) {
|
|
783
775
|
case "InternalFailureException":
|
|
784
776
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
785
|
-
throw await
|
|
777
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
786
778
|
case "InvalidRequestException":
|
|
787
779
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
788
|
-
throw await
|
|
780
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
789
781
|
case "ResourceInUseException":
|
|
790
782
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
791
|
-
throw await
|
|
783
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
792
784
|
case "ResourceNotFoundException":
|
|
793
785
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
794
|
-
throw await
|
|
786
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
795
787
|
case "ServiceUnavailableException":
|
|
796
788
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
797
|
-
throw await
|
|
789
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
798
790
|
case "ThrottlingException":
|
|
799
791
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
800
|
-
throw await
|
|
792
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
801
793
|
default:
|
|
802
794
|
const parsedBody = parsedOutput.body;
|
|
803
795
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -808,9 +800,9 @@ const deserializeAws_restJson1DeleteAlarmModelCommandError = async (output, cont
|
|
|
808
800
|
});
|
|
809
801
|
}
|
|
810
802
|
};
|
|
811
|
-
const
|
|
803
|
+
const de_DeleteDetectorModelCommand = async (output, context) => {
|
|
812
804
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
813
|
-
return
|
|
805
|
+
return de_DeleteDetectorModelCommandError(output, context);
|
|
814
806
|
}
|
|
815
807
|
const contents = map({
|
|
816
808
|
$metadata: deserializeMetadata(output),
|
|
@@ -818,8 +810,8 @@ const deserializeAws_restJson1DeleteDetectorModelCommand = async (output, contex
|
|
|
818
810
|
await collectBody(output.body, context);
|
|
819
811
|
return contents;
|
|
820
812
|
};
|
|
821
|
-
exports.
|
|
822
|
-
const
|
|
813
|
+
exports.de_DeleteDetectorModelCommand = de_DeleteDetectorModelCommand;
|
|
814
|
+
const de_DeleteDetectorModelCommandError = async (output, context) => {
|
|
823
815
|
const parsedOutput = {
|
|
824
816
|
...output,
|
|
825
817
|
body: await parseErrorBody(output.body, context),
|
|
@@ -828,22 +820,22 @@ const deserializeAws_restJson1DeleteDetectorModelCommandError = async (output, c
|
|
|
828
820
|
switch (errorCode) {
|
|
829
821
|
case "InternalFailureException":
|
|
830
822
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
831
|
-
throw await
|
|
823
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
832
824
|
case "InvalidRequestException":
|
|
833
825
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
834
|
-
throw await
|
|
826
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
835
827
|
case "ResourceInUseException":
|
|
836
828
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
837
|
-
throw await
|
|
829
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
838
830
|
case "ResourceNotFoundException":
|
|
839
831
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
840
|
-
throw await
|
|
832
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
841
833
|
case "ServiceUnavailableException":
|
|
842
834
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
843
|
-
throw await
|
|
835
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
844
836
|
case "ThrottlingException":
|
|
845
837
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
846
|
-
throw await
|
|
838
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
847
839
|
default:
|
|
848
840
|
const parsedBody = parsedOutput.body;
|
|
849
841
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -854,9 +846,9 @@ const deserializeAws_restJson1DeleteDetectorModelCommandError = async (output, c
|
|
|
854
846
|
});
|
|
855
847
|
}
|
|
856
848
|
};
|
|
857
|
-
const
|
|
849
|
+
const de_DeleteInputCommand = async (output, context) => {
|
|
858
850
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
859
|
-
return
|
|
851
|
+
return de_DeleteInputCommandError(output, context);
|
|
860
852
|
}
|
|
861
853
|
const contents = map({
|
|
862
854
|
$metadata: deserializeMetadata(output),
|
|
@@ -864,8 +856,8 @@ const deserializeAws_restJson1DeleteInputCommand = async (output, context) => {
|
|
|
864
856
|
await collectBody(output.body, context);
|
|
865
857
|
return contents;
|
|
866
858
|
};
|
|
867
|
-
exports.
|
|
868
|
-
const
|
|
859
|
+
exports.de_DeleteInputCommand = de_DeleteInputCommand;
|
|
860
|
+
const de_DeleteInputCommandError = async (output, context) => {
|
|
869
861
|
const parsedOutput = {
|
|
870
862
|
...output,
|
|
871
863
|
body: await parseErrorBody(output.body, context),
|
|
@@ -874,22 +866,22 @@ const deserializeAws_restJson1DeleteInputCommandError = async (output, context)
|
|
|
874
866
|
switch (errorCode) {
|
|
875
867
|
case "InternalFailureException":
|
|
876
868
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
877
|
-
throw await
|
|
869
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
878
870
|
case "InvalidRequestException":
|
|
879
871
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
880
|
-
throw await
|
|
872
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
881
873
|
case "ResourceInUseException":
|
|
882
874
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
883
|
-
throw await
|
|
875
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
884
876
|
case "ResourceNotFoundException":
|
|
885
877
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
886
|
-
throw await
|
|
878
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
887
879
|
case "ServiceUnavailableException":
|
|
888
880
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
889
|
-
throw await
|
|
881
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
890
882
|
case "ThrottlingException":
|
|
891
883
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
892
|
-
throw await
|
|
884
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
893
885
|
default:
|
|
894
886
|
const parsedBody = parsedOutput.body;
|
|
895
887
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -900,19 +892,19 @@ const deserializeAws_restJson1DeleteInputCommandError = async (output, context)
|
|
|
900
892
|
});
|
|
901
893
|
}
|
|
902
894
|
};
|
|
903
|
-
const
|
|
895
|
+
const de_DescribeAlarmModelCommand = async (output, context) => {
|
|
904
896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
-
return
|
|
897
|
+
return de_DescribeAlarmModelCommandError(output, context);
|
|
906
898
|
}
|
|
907
899
|
const contents = map({
|
|
908
900
|
$metadata: deserializeMetadata(output),
|
|
909
901
|
});
|
|
910
902
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
911
903
|
if (data.alarmCapabilities != null) {
|
|
912
|
-
contents.alarmCapabilities =
|
|
904
|
+
contents.alarmCapabilities = de_AlarmCapabilities(data.alarmCapabilities, context);
|
|
913
905
|
}
|
|
914
906
|
if (data.alarmEventActions != null) {
|
|
915
|
-
contents.alarmEventActions =
|
|
907
|
+
contents.alarmEventActions = de_AlarmEventActions(data.alarmEventActions, context);
|
|
916
908
|
}
|
|
917
909
|
if (data.alarmModelArn != null) {
|
|
918
910
|
contents.alarmModelArn = (0, smithy_client_1.expectString)(data.alarmModelArn);
|
|
@@ -927,10 +919,10 @@ const deserializeAws_restJson1DescribeAlarmModelCommand = async (output, context
|
|
|
927
919
|
contents.alarmModelVersion = (0, smithy_client_1.expectString)(data.alarmModelVersion);
|
|
928
920
|
}
|
|
929
921
|
if (data.alarmNotification != null) {
|
|
930
|
-
contents.alarmNotification =
|
|
922
|
+
contents.alarmNotification = de_AlarmNotification(data.alarmNotification, context);
|
|
931
923
|
}
|
|
932
924
|
if (data.alarmRule != null) {
|
|
933
|
-
contents.alarmRule =
|
|
925
|
+
contents.alarmRule = de_AlarmRule(data.alarmRule, context);
|
|
934
926
|
}
|
|
935
927
|
if (data.creationTime != null) {
|
|
936
928
|
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.creationTime)));
|
|
@@ -955,8 +947,8 @@ const deserializeAws_restJson1DescribeAlarmModelCommand = async (output, context
|
|
|
955
947
|
}
|
|
956
948
|
return contents;
|
|
957
949
|
};
|
|
958
|
-
exports.
|
|
959
|
-
const
|
|
950
|
+
exports.de_DescribeAlarmModelCommand = de_DescribeAlarmModelCommand;
|
|
951
|
+
const de_DescribeAlarmModelCommandError = async (output, context) => {
|
|
960
952
|
const parsedOutput = {
|
|
961
953
|
...output,
|
|
962
954
|
body: await parseErrorBody(output.body, context),
|
|
@@ -965,19 +957,19 @@ const deserializeAws_restJson1DescribeAlarmModelCommandError = async (output, co
|
|
|
965
957
|
switch (errorCode) {
|
|
966
958
|
case "InternalFailureException":
|
|
967
959
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
968
|
-
throw await
|
|
960
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
969
961
|
case "InvalidRequestException":
|
|
970
962
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
971
|
-
throw await
|
|
963
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
972
964
|
case "ResourceNotFoundException":
|
|
973
965
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
974
|
-
throw await
|
|
966
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
975
967
|
case "ServiceUnavailableException":
|
|
976
968
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
977
|
-
throw await
|
|
969
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
978
970
|
case "ThrottlingException":
|
|
979
971
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
980
|
-
throw await
|
|
972
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
981
973
|
default:
|
|
982
974
|
const parsedBody = parsedOutput.body;
|
|
983
975
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -988,21 +980,21 @@ const deserializeAws_restJson1DescribeAlarmModelCommandError = async (output, co
|
|
|
988
980
|
});
|
|
989
981
|
}
|
|
990
982
|
};
|
|
991
|
-
const
|
|
983
|
+
const de_DescribeDetectorModelCommand = async (output, context) => {
|
|
992
984
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
993
|
-
return
|
|
985
|
+
return de_DescribeDetectorModelCommandError(output, context);
|
|
994
986
|
}
|
|
995
987
|
const contents = map({
|
|
996
988
|
$metadata: deserializeMetadata(output),
|
|
997
989
|
});
|
|
998
990
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
999
991
|
if (data.detectorModel != null) {
|
|
1000
|
-
contents.detectorModel =
|
|
992
|
+
contents.detectorModel = de_DetectorModel(data.detectorModel, context);
|
|
1001
993
|
}
|
|
1002
994
|
return contents;
|
|
1003
995
|
};
|
|
1004
|
-
exports.
|
|
1005
|
-
const
|
|
996
|
+
exports.de_DescribeDetectorModelCommand = de_DescribeDetectorModelCommand;
|
|
997
|
+
const de_DescribeDetectorModelCommandError = async (output, context) => {
|
|
1006
998
|
const parsedOutput = {
|
|
1007
999
|
...output,
|
|
1008
1000
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1011,19 +1003,19 @@ const deserializeAws_restJson1DescribeDetectorModelCommandError = async (output,
|
|
|
1011
1003
|
switch (errorCode) {
|
|
1012
1004
|
case "InternalFailureException":
|
|
1013
1005
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1014
|
-
throw await
|
|
1006
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1015
1007
|
case "InvalidRequestException":
|
|
1016
1008
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1017
|
-
throw await
|
|
1009
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1018
1010
|
case "ResourceNotFoundException":
|
|
1019
1011
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1020
|
-
throw await
|
|
1012
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1021
1013
|
case "ServiceUnavailableException":
|
|
1022
1014
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1023
|
-
throw await
|
|
1015
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1024
1016
|
case "ThrottlingException":
|
|
1025
1017
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1026
|
-
throw await
|
|
1018
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1027
1019
|
default:
|
|
1028
1020
|
const parsedBody = parsedOutput.body;
|
|
1029
1021
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1034,9 +1026,9 @@ const deserializeAws_restJson1DescribeDetectorModelCommandError = async (output,
|
|
|
1034
1026
|
});
|
|
1035
1027
|
}
|
|
1036
1028
|
};
|
|
1037
|
-
const
|
|
1029
|
+
const de_DescribeDetectorModelAnalysisCommand = async (output, context) => {
|
|
1038
1030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1039
|
-
return
|
|
1031
|
+
return de_DescribeDetectorModelAnalysisCommandError(output, context);
|
|
1040
1032
|
}
|
|
1041
1033
|
const contents = map({
|
|
1042
1034
|
$metadata: deserializeMetadata(output),
|
|
@@ -1047,8 +1039,8 @@ const deserializeAws_restJson1DescribeDetectorModelAnalysisCommand = async (outp
|
|
|
1047
1039
|
}
|
|
1048
1040
|
return contents;
|
|
1049
1041
|
};
|
|
1050
|
-
exports.
|
|
1051
|
-
const
|
|
1042
|
+
exports.de_DescribeDetectorModelAnalysisCommand = de_DescribeDetectorModelAnalysisCommand;
|
|
1043
|
+
const de_DescribeDetectorModelAnalysisCommandError = async (output, context) => {
|
|
1052
1044
|
const parsedOutput = {
|
|
1053
1045
|
...output,
|
|
1054
1046
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1057,19 +1049,19 @@ const deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = async
|
|
|
1057
1049
|
switch (errorCode) {
|
|
1058
1050
|
case "InternalFailureException":
|
|
1059
1051
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1060
|
-
throw await
|
|
1052
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1061
1053
|
case "InvalidRequestException":
|
|
1062
1054
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1063
|
-
throw await
|
|
1055
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1064
1056
|
case "ResourceNotFoundException":
|
|
1065
1057
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1066
|
-
throw await
|
|
1058
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1067
1059
|
case "ServiceUnavailableException":
|
|
1068
1060
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1069
|
-
throw await
|
|
1061
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1070
1062
|
case "ThrottlingException":
|
|
1071
1063
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1072
|
-
throw await
|
|
1064
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1073
1065
|
default:
|
|
1074
1066
|
const parsedBody = parsedOutput.body;
|
|
1075
1067
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1080,21 +1072,21 @@ const deserializeAws_restJson1DescribeDetectorModelAnalysisCommandError = async
|
|
|
1080
1072
|
});
|
|
1081
1073
|
}
|
|
1082
1074
|
};
|
|
1083
|
-
const
|
|
1075
|
+
const de_DescribeInputCommand = async (output, context) => {
|
|
1084
1076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1085
|
-
return
|
|
1077
|
+
return de_DescribeInputCommandError(output, context);
|
|
1086
1078
|
}
|
|
1087
1079
|
const contents = map({
|
|
1088
1080
|
$metadata: deserializeMetadata(output),
|
|
1089
1081
|
});
|
|
1090
1082
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1091
1083
|
if (data.input != null) {
|
|
1092
|
-
contents.input =
|
|
1084
|
+
contents.input = de_Input(data.input, context);
|
|
1093
1085
|
}
|
|
1094
1086
|
return contents;
|
|
1095
1087
|
};
|
|
1096
|
-
exports.
|
|
1097
|
-
const
|
|
1088
|
+
exports.de_DescribeInputCommand = de_DescribeInputCommand;
|
|
1089
|
+
const de_DescribeInputCommandError = async (output, context) => {
|
|
1098
1090
|
const parsedOutput = {
|
|
1099
1091
|
...output,
|
|
1100
1092
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1103,19 +1095,19 @@ const deserializeAws_restJson1DescribeInputCommandError = async (output, context
|
|
|
1103
1095
|
switch (errorCode) {
|
|
1104
1096
|
case "InternalFailureException":
|
|
1105
1097
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1106
|
-
throw await
|
|
1098
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1107
1099
|
case "InvalidRequestException":
|
|
1108
1100
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1109
|
-
throw await
|
|
1101
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1110
1102
|
case "ResourceNotFoundException":
|
|
1111
1103
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1112
|
-
throw await
|
|
1104
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1113
1105
|
case "ServiceUnavailableException":
|
|
1114
1106
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1115
|
-
throw await
|
|
1107
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1116
1108
|
case "ThrottlingException":
|
|
1117
1109
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1118
|
-
throw await
|
|
1110
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1119
1111
|
default:
|
|
1120
1112
|
const parsedBody = parsedOutput.body;
|
|
1121
1113
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1126,21 +1118,21 @@ const deserializeAws_restJson1DescribeInputCommandError = async (output, context
|
|
|
1126
1118
|
});
|
|
1127
1119
|
}
|
|
1128
1120
|
};
|
|
1129
|
-
const
|
|
1121
|
+
const de_DescribeLoggingOptionsCommand = async (output, context) => {
|
|
1130
1122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1131
|
-
return
|
|
1123
|
+
return de_DescribeLoggingOptionsCommandError(output, context);
|
|
1132
1124
|
}
|
|
1133
1125
|
const contents = map({
|
|
1134
1126
|
$metadata: deserializeMetadata(output),
|
|
1135
1127
|
});
|
|
1136
1128
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1137
1129
|
if (data.loggingOptions != null) {
|
|
1138
|
-
contents.loggingOptions =
|
|
1130
|
+
contents.loggingOptions = de_LoggingOptions(data.loggingOptions, context);
|
|
1139
1131
|
}
|
|
1140
1132
|
return contents;
|
|
1141
1133
|
};
|
|
1142
|
-
exports.
|
|
1143
|
-
const
|
|
1134
|
+
exports.de_DescribeLoggingOptionsCommand = de_DescribeLoggingOptionsCommand;
|
|
1135
|
+
const de_DescribeLoggingOptionsCommandError = async (output, context) => {
|
|
1144
1136
|
const parsedOutput = {
|
|
1145
1137
|
...output,
|
|
1146
1138
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1149,22 +1141,22 @@ const deserializeAws_restJson1DescribeLoggingOptionsCommandError = async (output
|
|
|
1149
1141
|
switch (errorCode) {
|
|
1150
1142
|
case "InternalFailureException":
|
|
1151
1143
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1152
|
-
throw await
|
|
1144
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1153
1145
|
case "InvalidRequestException":
|
|
1154
1146
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1155
|
-
throw await
|
|
1147
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1156
1148
|
case "ResourceNotFoundException":
|
|
1157
1149
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1158
|
-
throw await
|
|
1150
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1159
1151
|
case "ServiceUnavailableException":
|
|
1160
1152
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1161
|
-
throw await
|
|
1153
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1162
1154
|
case "ThrottlingException":
|
|
1163
1155
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1164
|
-
throw await
|
|
1156
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1165
1157
|
case "UnsupportedOperationException":
|
|
1166
1158
|
case "com.amazonaws.iotevents#UnsupportedOperationException":
|
|
1167
|
-
throw await
|
|
1159
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1168
1160
|
default:
|
|
1169
1161
|
const parsedBody = parsedOutput.body;
|
|
1170
1162
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1175,24 +1167,24 @@ const deserializeAws_restJson1DescribeLoggingOptionsCommandError = async (output
|
|
|
1175
1167
|
});
|
|
1176
1168
|
}
|
|
1177
1169
|
};
|
|
1178
|
-
const
|
|
1170
|
+
const de_GetDetectorModelAnalysisResultsCommand = async (output, context) => {
|
|
1179
1171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1180
|
-
return
|
|
1172
|
+
return de_GetDetectorModelAnalysisResultsCommandError(output, context);
|
|
1181
1173
|
}
|
|
1182
1174
|
const contents = map({
|
|
1183
1175
|
$metadata: deserializeMetadata(output),
|
|
1184
1176
|
});
|
|
1185
1177
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1186
1178
|
if (data.analysisResults != null) {
|
|
1187
|
-
contents.analysisResults =
|
|
1179
|
+
contents.analysisResults = de_AnalysisResults(data.analysisResults, context);
|
|
1188
1180
|
}
|
|
1189
1181
|
if (data.nextToken != null) {
|
|
1190
1182
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1191
1183
|
}
|
|
1192
1184
|
return contents;
|
|
1193
1185
|
};
|
|
1194
|
-
exports.
|
|
1195
|
-
const
|
|
1186
|
+
exports.de_GetDetectorModelAnalysisResultsCommand = de_GetDetectorModelAnalysisResultsCommand;
|
|
1187
|
+
const de_GetDetectorModelAnalysisResultsCommandError = async (output, context) => {
|
|
1196
1188
|
const parsedOutput = {
|
|
1197
1189
|
...output,
|
|
1198
1190
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1201,19 +1193,19 @@ const deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = asyn
|
|
|
1201
1193
|
switch (errorCode) {
|
|
1202
1194
|
case "InternalFailureException":
|
|
1203
1195
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1204
|
-
throw await
|
|
1196
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1205
1197
|
case "InvalidRequestException":
|
|
1206
1198
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1207
|
-
throw await
|
|
1199
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1208
1200
|
case "ResourceNotFoundException":
|
|
1209
1201
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1210
|
-
throw await
|
|
1202
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1211
1203
|
case "ServiceUnavailableException":
|
|
1212
1204
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1213
|
-
throw await
|
|
1205
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1214
1206
|
case "ThrottlingException":
|
|
1215
1207
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1216
|
-
throw await
|
|
1208
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1217
1209
|
default:
|
|
1218
1210
|
const parsedBody = parsedOutput.body;
|
|
1219
1211
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1224,24 +1216,24 @@ const deserializeAws_restJson1GetDetectorModelAnalysisResultsCommandError = asyn
|
|
|
1224
1216
|
});
|
|
1225
1217
|
}
|
|
1226
1218
|
};
|
|
1227
|
-
const
|
|
1219
|
+
const de_ListAlarmModelsCommand = async (output, context) => {
|
|
1228
1220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1229
|
-
return
|
|
1221
|
+
return de_ListAlarmModelsCommandError(output, context);
|
|
1230
1222
|
}
|
|
1231
1223
|
const contents = map({
|
|
1232
1224
|
$metadata: deserializeMetadata(output),
|
|
1233
1225
|
});
|
|
1234
1226
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1235
1227
|
if (data.alarmModelSummaries != null) {
|
|
1236
|
-
contents.alarmModelSummaries =
|
|
1228
|
+
contents.alarmModelSummaries = de_AlarmModelSummaries(data.alarmModelSummaries, context);
|
|
1237
1229
|
}
|
|
1238
1230
|
if (data.nextToken != null) {
|
|
1239
1231
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1240
1232
|
}
|
|
1241
1233
|
return contents;
|
|
1242
1234
|
};
|
|
1243
|
-
exports.
|
|
1244
|
-
const
|
|
1235
|
+
exports.de_ListAlarmModelsCommand = de_ListAlarmModelsCommand;
|
|
1236
|
+
const de_ListAlarmModelsCommandError = async (output, context) => {
|
|
1245
1237
|
const parsedOutput = {
|
|
1246
1238
|
...output,
|
|
1247
1239
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1250,16 +1242,16 @@ const deserializeAws_restJson1ListAlarmModelsCommandError = async (output, conte
|
|
|
1250
1242
|
switch (errorCode) {
|
|
1251
1243
|
case "InternalFailureException":
|
|
1252
1244
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1253
|
-
throw await
|
|
1245
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1254
1246
|
case "InvalidRequestException":
|
|
1255
1247
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1256
|
-
throw await
|
|
1248
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1257
1249
|
case "ServiceUnavailableException":
|
|
1258
1250
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1259
|
-
throw await
|
|
1251
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1260
1252
|
case "ThrottlingException":
|
|
1261
1253
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1262
|
-
throw await
|
|
1254
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1263
1255
|
default:
|
|
1264
1256
|
const parsedBody = parsedOutput.body;
|
|
1265
1257
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1270,24 +1262,24 @@ const deserializeAws_restJson1ListAlarmModelsCommandError = async (output, conte
|
|
|
1270
1262
|
});
|
|
1271
1263
|
}
|
|
1272
1264
|
};
|
|
1273
|
-
const
|
|
1265
|
+
const de_ListAlarmModelVersionsCommand = async (output, context) => {
|
|
1274
1266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1275
|
-
return
|
|
1267
|
+
return de_ListAlarmModelVersionsCommandError(output, context);
|
|
1276
1268
|
}
|
|
1277
1269
|
const contents = map({
|
|
1278
1270
|
$metadata: deserializeMetadata(output),
|
|
1279
1271
|
});
|
|
1280
1272
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1281
1273
|
if (data.alarmModelVersionSummaries != null) {
|
|
1282
|
-
contents.alarmModelVersionSummaries =
|
|
1274
|
+
contents.alarmModelVersionSummaries = de_AlarmModelVersionSummaries(data.alarmModelVersionSummaries, context);
|
|
1283
1275
|
}
|
|
1284
1276
|
if (data.nextToken != null) {
|
|
1285
1277
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1286
1278
|
}
|
|
1287
1279
|
return contents;
|
|
1288
1280
|
};
|
|
1289
|
-
exports.
|
|
1290
|
-
const
|
|
1281
|
+
exports.de_ListAlarmModelVersionsCommand = de_ListAlarmModelVersionsCommand;
|
|
1282
|
+
const de_ListAlarmModelVersionsCommandError = async (output, context) => {
|
|
1291
1283
|
const parsedOutput = {
|
|
1292
1284
|
...output,
|
|
1293
1285
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1296,19 +1288,19 @@ const deserializeAws_restJson1ListAlarmModelVersionsCommandError = async (output
|
|
|
1296
1288
|
switch (errorCode) {
|
|
1297
1289
|
case "InternalFailureException":
|
|
1298
1290
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1299
|
-
throw await
|
|
1291
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1300
1292
|
case "InvalidRequestException":
|
|
1301
1293
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1302
|
-
throw await
|
|
1294
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1303
1295
|
case "ResourceNotFoundException":
|
|
1304
1296
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1305
|
-
throw await
|
|
1297
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1306
1298
|
case "ServiceUnavailableException":
|
|
1307
1299
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1308
|
-
throw await
|
|
1300
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1309
1301
|
case "ThrottlingException":
|
|
1310
1302
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1311
|
-
throw await
|
|
1303
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1312
1304
|
default:
|
|
1313
1305
|
const parsedBody = parsedOutput.body;
|
|
1314
1306
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1319,24 +1311,24 @@ const deserializeAws_restJson1ListAlarmModelVersionsCommandError = async (output
|
|
|
1319
1311
|
});
|
|
1320
1312
|
}
|
|
1321
1313
|
};
|
|
1322
|
-
const
|
|
1314
|
+
const de_ListDetectorModelsCommand = async (output, context) => {
|
|
1323
1315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1324
|
-
return
|
|
1316
|
+
return de_ListDetectorModelsCommandError(output, context);
|
|
1325
1317
|
}
|
|
1326
1318
|
const contents = map({
|
|
1327
1319
|
$metadata: deserializeMetadata(output),
|
|
1328
1320
|
});
|
|
1329
1321
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1330
1322
|
if (data.detectorModelSummaries != null) {
|
|
1331
|
-
contents.detectorModelSummaries =
|
|
1323
|
+
contents.detectorModelSummaries = de_DetectorModelSummaries(data.detectorModelSummaries, context);
|
|
1332
1324
|
}
|
|
1333
1325
|
if (data.nextToken != null) {
|
|
1334
1326
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1335
1327
|
}
|
|
1336
1328
|
return contents;
|
|
1337
1329
|
};
|
|
1338
|
-
exports.
|
|
1339
|
-
const
|
|
1330
|
+
exports.de_ListDetectorModelsCommand = de_ListDetectorModelsCommand;
|
|
1331
|
+
const de_ListDetectorModelsCommandError = async (output, context) => {
|
|
1340
1332
|
const parsedOutput = {
|
|
1341
1333
|
...output,
|
|
1342
1334
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1345,16 +1337,16 @@ const deserializeAws_restJson1ListDetectorModelsCommandError = async (output, co
|
|
|
1345
1337
|
switch (errorCode) {
|
|
1346
1338
|
case "InternalFailureException":
|
|
1347
1339
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1348
|
-
throw await
|
|
1340
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1349
1341
|
case "InvalidRequestException":
|
|
1350
1342
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1351
|
-
throw await
|
|
1343
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1352
1344
|
case "ServiceUnavailableException":
|
|
1353
1345
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1354
|
-
throw await
|
|
1346
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1355
1347
|
case "ThrottlingException":
|
|
1356
1348
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1357
|
-
throw await
|
|
1349
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1358
1350
|
default:
|
|
1359
1351
|
const parsedBody = parsedOutput.body;
|
|
1360
1352
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1365,24 +1357,24 @@ const deserializeAws_restJson1ListDetectorModelsCommandError = async (output, co
|
|
|
1365
1357
|
});
|
|
1366
1358
|
}
|
|
1367
1359
|
};
|
|
1368
|
-
const
|
|
1360
|
+
const de_ListDetectorModelVersionsCommand = async (output, context) => {
|
|
1369
1361
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1370
|
-
return
|
|
1362
|
+
return de_ListDetectorModelVersionsCommandError(output, context);
|
|
1371
1363
|
}
|
|
1372
1364
|
const contents = map({
|
|
1373
1365
|
$metadata: deserializeMetadata(output),
|
|
1374
1366
|
});
|
|
1375
1367
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1376
1368
|
if (data.detectorModelVersionSummaries != null) {
|
|
1377
|
-
contents.detectorModelVersionSummaries =
|
|
1369
|
+
contents.detectorModelVersionSummaries = de_DetectorModelVersionSummaries(data.detectorModelVersionSummaries, context);
|
|
1378
1370
|
}
|
|
1379
1371
|
if (data.nextToken != null) {
|
|
1380
1372
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1381
1373
|
}
|
|
1382
1374
|
return contents;
|
|
1383
1375
|
};
|
|
1384
|
-
exports.
|
|
1385
|
-
const
|
|
1376
|
+
exports.de_ListDetectorModelVersionsCommand = de_ListDetectorModelVersionsCommand;
|
|
1377
|
+
const de_ListDetectorModelVersionsCommandError = async (output, context) => {
|
|
1386
1378
|
const parsedOutput = {
|
|
1387
1379
|
...output,
|
|
1388
1380
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1391,19 +1383,19 @@ const deserializeAws_restJson1ListDetectorModelVersionsCommandError = async (out
|
|
|
1391
1383
|
switch (errorCode) {
|
|
1392
1384
|
case "InternalFailureException":
|
|
1393
1385
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1394
|
-
throw await
|
|
1386
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1395
1387
|
case "InvalidRequestException":
|
|
1396
1388
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1397
|
-
throw await
|
|
1389
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1398
1390
|
case "ResourceNotFoundException":
|
|
1399
1391
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1400
|
-
throw await
|
|
1392
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1401
1393
|
case "ServiceUnavailableException":
|
|
1402
1394
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1403
|
-
throw await
|
|
1395
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1404
1396
|
case "ThrottlingException":
|
|
1405
1397
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1406
|
-
throw await
|
|
1398
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1407
1399
|
default:
|
|
1408
1400
|
const parsedBody = parsedOutput.body;
|
|
1409
1401
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1414,9 +1406,9 @@ const deserializeAws_restJson1ListDetectorModelVersionsCommandError = async (out
|
|
|
1414
1406
|
});
|
|
1415
1407
|
}
|
|
1416
1408
|
};
|
|
1417
|
-
const
|
|
1409
|
+
const de_ListInputRoutingsCommand = async (output, context) => {
|
|
1418
1410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1419
|
-
return
|
|
1411
|
+
return de_ListInputRoutingsCommandError(output, context);
|
|
1420
1412
|
}
|
|
1421
1413
|
const contents = map({
|
|
1422
1414
|
$metadata: deserializeMetadata(output),
|
|
@@ -1426,12 +1418,12 @@ const deserializeAws_restJson1ListInputRoutingsCommand = async (output, context)
|
|
|
1426
1418
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1427
1419
|
}
|
|
1428
1420
|
if (data.routedResources != null) {
|
|
1429
|
-
contents.routedResources =
|
|
1421
|
+
contents.routedResources = de_RoutedResources(data.routedResources, context);
|
|
1430
1422
|
}
|
|
1431
1423
|
return contents;
|
|
1432
1424
|
};
|
|
1433
|
-
exports.
|
|
1434
|
-
const
|
|
1425
|
+
exports.de_ListInputRoutingsCommand = de_ListInputRoutingsCommand;
|
|
1426
|
+
const de_ListInputRoutingsCommandError = async (output, context) => {
|
|
1435
1427
|
const parsedOutput = {
|
|
1436
1428
|
...output,
|
|
1437
1429
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1440,19 +1432,19 @@ const deserializeAws_restJson1ListInputRoutingsCommandError = async (output, con
|
|
|
1440
1432
|
switch (errorCode) {
|
|
1441
1433
|
case "InternalFailureException":
|
|
1442
1434
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1443
|
-
throw await
|
|
1435
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1444
1436
|
case "InvalidRequestException":
|
|
1445
1437
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1446
|
-
throw await
|
|
1438
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1447
1439
|
case "ResourceNotFoundException":
|
|
1448
1440
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1449
|
-
throw await
|
|
1441
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1450
1442
|
case "ServiceUnavailableException":
|
|
1451
1443
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1452
|
-
throw await
|
|
1444
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1453
1445
|
case "ThrottlingException":
|
|
1454
1446
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1455
|
-
throw await
|
|
1447
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1456
1448
|
default:
|
|
1457
1449
|
const parsedBody = parsedOutput.body;
|
|
1458
1450
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1463,24 +1455,24 @@ const deserializeAws_restJson1ListInputRoutingsCommandError = async (output, con
|
|
|
1463
1455
|
});
|
|
1464
1456
|
}
|
|
1465
1457
|
};
|
|
1466
|
-
const
|
|
1458
|
+
const de_ListInputsCommand = async (output, context) => {
|
|
1467
1459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1468
|
-
return
|
|
1460
|
+
return de_ListInputsCommandError(output, context);
|
|
1469
1461
|
}
|
|
1470
1462
|
const contents = map({
|
|
1471
1463
|
$metadata: deserializeMetadata(output),
|
|
1472
1464
|
});
|
|
1473
1465
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1474
1466
|
if (data.inputSummaries != null) {
|
|
1475
|
-
contents.inputSummaries =
|
|
1467
|
+
contents.inputSummaries = de_InputSummaries(data.inputSummaries, context);
|
|
1476
1468
|
}
|
|
1477
1469
|
if (data.nextToken != null) {
|
|
1478
1470
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1479
1471
|
}
|
|
1480
1472
|
return contents;
|
|
1481
1473
|
};
|
|
1482
|
-
exports.
|
|
1483
|
-
const
|
|
1474
|
+
exports.de_ListInputsCommand = de_ListInputsCommand;
|
|
1475
|
+
const de_ListInputsCommandError = async (output, context) => {
|
|
1484
1476
|
const parsedOutput = {
|
|
1485
1477
|
...output,
|
|
1486
1478
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1489,16 +1481,16 @@ const deserializeAws_restJson1ListInputsCommandError = async (output, context) =
|
|
|
1489
1481
|
switch (errorCode) {
|
|
1490
1482
|
case "InternalFailureException":
|
|
1491
1483
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1492
|
-
throw await
|
|
1484
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1493
1485
|
case "InvalidRequestException":
|
|
1494
1486
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1495
|
-
throw await
|
|
1487
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1496
1488
|
case "ServiceUnavailableException":
|
|
1497
1489
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1498
|
-
throw await
|
|
1490
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1499
1491
|
case "ThrottlingException":
|
|
1500
1492
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1501
|
-
throw await
|
|
1493
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1502
1494
|
default:
|
|
1503
1495
|
const parsedBody = parsedOutput.body;
|
|
1504
1496
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1509,21 +1501,21 @@ const deserializeAws_restJson1ListInputsCommandError = async (output, context) =
|
|
|
1509
1501
|
});
|
|
1510
1502
|
}
|
|
1511
1503
|
};
|
|
1512
|
-
const
|
|
1504
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1513
1505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1514
|
-
return
|
|
1506
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1515
1507
|
}
|
|
1516
1508
|
const contents = map({
|
|
1517
1509
|
$metadata: deserializeMetadata(output),
|
|
1518
1510
|
});
|
|
1519
1511
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1520
1512
|
if (data.tags != null) {
|
|
1521
|
-
contents.tags =
|
|
1513
|
+
contents.tags = de_Tags(data.tags, context);
|
|
1522
1514
|
}
|
|
1523
1515
|
return contents;
|
|
1524
1516
|
};
|
|
1525
|
-
exports.
|
|
1526
|
-
const
|
|
1517
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1518
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1527
1519
|
const parsedOutput = {
|
|
1528
1520
|
...output,
|
|
1529
1521
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1532,19 +1524,19 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1532
1524
|
switch (errorCode) {
|
|
1533
1525
|
case "InternalFailureException":
|
|
1534
1526
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1535
|
-
throw await
|
|
1527
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1536
1528
|
case "InvalidRequestException":
|
|
1537
1529
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1538
|
-
throw await
|
|
1530
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1539
1531
|
case "ResourceInUseException":
|
|
1540
1532
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1541
|
-
throw await
|
|
1533
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1542
1534
|
case "ResourceNotFoundException":
|
|
1543
1535
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1544
|
-
throw await
|
|
1536
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1545
1537
|
case "ThrottlingException":
|
|
1546
1538
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1547
|
-
throw await
|
|
1539
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1548
1540
|
default:
|
|
1549
1541
|
const parsedBody = parsedOutput.body;
|
|
1550
1542
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1555,9 +1547,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1555
1547
|
});
|
|
1556
1548
|
}
|
|
1557
1549
|
};
|
|
1558
|
-
const
|
|
1550
|
+
const de_PutLoggingOptionsCommand = async (output, context) => {
|
|
1559
1551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1560
|
-
return
|
|
1552
|
+
return de_PutLoggingOptionsCommandError(output, context);
|
|
1561
1553
|
}
|
|
1562
1554
|
const contents = map({
|
|
1563
1555
|
$metadata: deserializeMetadata(output),
|
|
@@ -1565,8 +1557,8 @@ const deserializeAws_restJson1PutLoggingOptionsCommand = async (output, context)
|
|
|
1565
1557
|
await collectBody(output.body, context);
|
|
1566
1558
|
return contents;
|
|
1567
1559
|
};
|
|
1568
|
-
exports.
|
|
1569
|
-
const
|
|
1560
|
+
exports.de_PutLoggingOptionsCommand = de_PutLoggingOptionsCommand;
|
|
1561
|
+
const de_PutLoggingOptionsCommandError = async (output, context) => {
|
|
1570
1562
|
const parsedOutput = {
|
|
1571
1563
|
...output,
|
|
1572
1564
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1575,22 +1567,22 @@ const deserializeAws_restJson1PutLoggingOptionsCommandError = async (output, con
|
|
|
1575
1567
|
switch (errorCode) {
|
|
1576
1568
|
case "InternalFailureException":
|
|
1577
1569
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1578
|
-
throw await
|
|
1570
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1579
1571
|
case "InvalidRequestException":
|
|
1580
1572
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1581
|
-
throw await
|
|
1573
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1582
1574
|
case "ResourceInUseException":
|
|
1583
1575
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1584
|
-
throw await
|
|
1576
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1585
1577
|
case "ServiceUnavailableException":
|
|
1586
1578
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1587
|
-
throw await
|
|
1579
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1588
1580
|
case "ThrottlingException":
|
|
1589
1581
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1590
|
-
throw await
|
|
1582
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1591
1583
|
case "UnsupportedOperationException":
|
|
1592
1584
|
case "com.amazonaws.iotevents#UnsupportedOperationException":
|
|
1593
|
-
throw await
|
|
1585
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1594
1586
|
default:
|
|
1595
1587
|
const parsedBody = parsedOutput.body;
|
|
1596
1588
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1601,9 +1593,9 @@ const deserializeAws_restJson1PutLoggingOptionsCommandError = async (output, con
|
|
|
1601
1593
|
});
|
|
1602
1594
|
}
|
|
1603
1595
|
};
|
|
1604
|
-
const
|
|
1596
|
+
const de_StartDetectorModelAnalysisCommand = async (output, context) => {
|
|
1605
1597
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1606
|
-
return
|
|
1598
|
+
return de_StartDetectorModelAnalysisCommandError(output, context);
|
|
1607
1599
|
}
|
|
1608
1600
|
const contents = map({
|
|
1609
1601
|
$metadata: deserializeMetadata(output),
|
|
@@ -1614,8 +1606,8 @@ const deserializeAws_restJson1StartDetectorModelAnalysisCommand = async (output,
|
|
|
1614
1606
|
}
|
|
1615
1607
|
return contents;
|
|
1616
1608
|
};
|
|
1617
|
-
exports.
|
|
1618
|
-
const
|
|
1609
|
+
exports.de_StartDetectorModelAnalysisCommand = de_StartDetectorModelAnalysisCommand;
|
|
1610
|
+
const de_StartDetectorModelAnalysisCommandError = async (output, context) => {
|
|
1619
1611
|
const parsedOutput = {
|
|
1620
1612
|
...output,
|
|
1621
1613
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1624,19 +1616,19 @@ const deserializeAws_restJson1StartDetectorModelAnalysisCommandError = async (ou
|
|
|
1624
1616
|
switch (errorCode) {
|
|
1625
1617
|
case "InternalFailureException":
|
|
1626
1618
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1627
|
-
throw await
|
|
1619
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1628
1620
|
case "InvalidRequestException":
|
|
1629
1621
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1630
|
-
throw await
|
|
1622
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1631
1623
|
case "LimitExceededException":
|
|
1632
1624
|
case "com.amazonaws.iotevents#LimitExceededException":
|
|
1633
|
-
throw await
|
|
1625
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1634
1626
|
case "ServiceUnavailableException":
|
|
1635
1627
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1636
|
-
throw await
|
|
1628
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1637
1629
|
case "ThrottlingException":
|
|
1638
1630
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1639
|
-
throw await
|
|
1631
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1640
1632
|
default:
|
|
1641
1633
|
const parsedBody = parsedOutput.body;
|
|
1642
1634
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1647,9 +1639,9 @@ const deserializeAws_restJson1StartDetectorModelAnalysisCommandError = async (ou
|
|
|
1647
1639
|
});
|
|
1648
1640
|
}
|
|
1649
1641
|
};
|
|
1650
|
-
const
|
|
1642
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1651
1643
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1652
|
-
return
|
|
1644
|
+
return de_TagResourceCommandError(output, context);
|
|
1653
1645
|
}
|
|
1654
1646
|
const contents = map({
|
|
1655
1647
|
$metadata: deserializeMetadata(output),
|
|
@@ -1657,8 +1649,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
1657
1649
|
await collectBody(output.body, context);
|
|
1658
1650
|
return contents;
|
|
1659
1651
|
};
|
|
1660
|
-
exports.
|
|
1661
|
-
const
|
|
1652
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1653
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
1662
1654
|
const parsedOutput = {
|
|
1663
1655
|
...output,
|
|
1664
1656
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1667,22 +1659,22 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1667
1659
|
switch (errorCode) {
|
|
1668
1660
|
case "InternalFailureException":
|
|
1669
1661
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1670
|
-
throw await
|
|
1662
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1671
1663
|
case "InvalidRequestException":
|
|
1672
1664
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1673
|
-
throw await
|
|
1665
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1674
1666
|
case "LimitExceededException":
|
|
1675
1667
|
case "com.amazonaws.iotevents#LimitExceededException":
|
|
1676
|
-
throw await
|
|
1668
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1677
1669
|
case "ResourceInUseException":
|
|
1678
1670
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1679
|
-
throw await
|
|
1671
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1680
1672
|
case "ResourceNotFoundException":
|
|
1681
1673
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1682
|
-
throw await
|
|
1674
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1683
1675
|
case "ThrottlingException":
|
|
1684
1676
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1685
|
-
throw await
|
|
1677
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1686
1678
|
default:
|
|
1687
1679
|
const parsedBody = parsedOutput.body;
|
|
1688
1680
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1693,9 +1685,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1693
1685
|
});
|
|
1694
1686
|
}
|
|
1695
1687
|
};
|
|
1696
|
-
const
|
|
1688
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1697
1689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1698
|
-
return
|
|
1690
|
+
return de_UntagResourceCommandError(output, context);
|
|
1699
1691
|
}
|
|
1700
1692
|
const contents = map({
|
|
1701
1693
|
$metadata: deserializeMetadata(output),
|
|
@@ -1703,8 +1695,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
1703
1695
|
await collectBody(output.body, context);
|
|
1704
1696
|
return contents;
|
|
1705
1697
|
};
|
|
1706
|
-
exports.
|
|
1707
|
-
const
|
|
1698
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1699
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
1708
1700
|
const parsedOutput = {
|
|
1709
1701
|
...output,
|
|
1710
1702
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1713,19 +1705,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1713
1705
|
switch (errorCode) {
|
|
1714
1706
|
case "InternalFailureException":
|
|
1715
1707
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1716
|
-
throw await
|
|
1708
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1717
1709
|
case "InvalidRequestException":
|
|
1718
1710
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1719
|
-
throw await
|
|
1711
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1720
1712
|
case "ResourceInUseException":
|
|
1721
1713
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1722
|
-
throw await
|
|
1714
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1723
1715
|
case "ResourceNotFoundException":
|
|
1724
1716
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1725
|
-
throw await
|
|
1717
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1726
1718
|
case "ThrottlingException":
|
|
1727
1719
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1728
|
-
throw await
|
|
1720
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1729
1721
|
default:
|
|
1730
1722
|
const parsedBody = parsedOutput.body;
|
|
1731
1723
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1736,9 +1728,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1736
1728
|
});
|
|
1737
1729
|
}
|
|
1738
1730
|
};
|
|
1739
|
-
const
|
|
1731
|
+
const de_UpdateAlarmModelCommand = async (output, context) => {
|
|
1740
1732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
|
-
return
|
|
1733
|
+
return de_UpdateAlarmModelCommandError(output, context);
|
|
1742
1734
|
}
|
|
1743
1735
|
const contents = map({
|
|
1744
1736
|
$metadata: deserializeMetadata(output),
|
|
@@ -1761,8 +1753,8 @@ const deserializeAws_restJson1UpdateAlarmModelCommand = async (output, context)
|
|
|
1761
1753
|
}
|
|
1762
1754
|
return contents;
|
|
1763
1755
|
};
|
|
1764
|
-
exports.
|
|
1765
|
-
const
|
|
1756
|
+
exports.de_UpdateAlarmModelCommand = de_UpdateAlarmModelCommand;
|
|
1757
|
+
const de_UpdateAlarmModelCommandError = async (output, context) => {
|
|
1766
1758
|
const parsedOutput = {
|
|
1767
1759
|
...output,
|
|
1768
1760
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1771,22 +1763,22 @@ const deserializeAws_restJson1UpdateAlarmModelCommandError = async (output, cont
|
|
|
1771
1763
|
switch (errorCode) {
|
|
1772
1764
|
case "InternalFailureException":
|
|
1773
1765
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1774
|
-
throw await
|
|
1766
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1775
1767
|
case "InvalidRequestException":
|
|
1776
1768
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1777
|
-
throw await
|
|
1769
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1778
1770
|
case "ResourceInUseException":
|
|
1779
1771
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1780
|
-
throw await
|
|
1772
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1781
1773
|
case "ResourceNotFoundException":
|
|
1782
1774
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1783
|
-
throw await
|
|
1775
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1784
1776
|
case "ServiceUnavailableException":
|
|
1785
1777
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1786
|
-
throw await
|
|
1778
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1787
1779
|
case "ThrottlingException":
|
|
1788
1780
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1789
|
-
throw await
|
|
1781
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1790
1782
|
default:
|
|
1791
1783
|
const parsedBody = parsedOutput.body;
|
|
1792
1784
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1797,21 +1789,21 @@ const deserializeAws_restJson1UpdateAlarmModelCommandError = async (output, cont
|
|
|
1797
1789
|
});
|
|
1798
1790
|
}
|
|
1799
1791
|
};
|
|
1800
|
-
const
|
|
1792
|
+
const de_UpdateDetectorModelCommand = async (output, context) => {
|
|
1801
1793
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1802
|
-
return
|
|
1794
|
+
return de_UpdateDetectorModelCommandError(output, context);
|
|
1803
1795
|
}
|
|
1804
1796
|
const contents = map({
|
|
1805
1797
|
$metadata: deserializeMetadata(output),
|
|
1806
1798
|
});
|
|
1807
1799
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1808
1800
|
if (data.detectorModelConfiguration != null) {
|
|
1809
|
-
contents.detectorModelConfiguration =
|
|
1801
|
+
contents.detectorModelConfiguration = de_DetectorModelConfiguration(data.detectorModelConfiguration, context);
|
|
1810
1802
|
}
|
|
1811
1803
|
return contents;
|
|
1812
1804
|
};
|
|
1813
|
-
exports.
|
|
1814
|
-
const
|
|
1805
|
+
exports.de_UpdateDetectorModelCommand = de_UpdateDetectorModelCommand;
|
|
1806
|
+
const de_UpdateDetectorModelCommandError = async (output, context) => {
|
|
1815
1807
|
const parsedOutput = {
|
|
1816
1808
|
...output,
|
|
1817
1809
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1820,22 +1812,22 @@ const deserializeAws_restJson1UpdateDetectorModelCommandError = async (output, c
|
|
|
1820
1812
|
switch (errorCode) {
|
|
1821
1813
|
case "InternalFailureException":
|
|
1822
1814
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1823
|
-
throw await
|
|
1815
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1824
1816
|
case "InvalidRequestException":
|
|
1825
1817
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1826
|
-
throw await
|
|
1818
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1827
1819
|
case "ResourceInUseException":
|
|
1828
1820
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1829
|
-
throw await
|
|
1821
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1830
1822
|
case "ResourceNotFoundException":
|
|
1831
1823
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1832
|
-
throw await
|
|
1824
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1833
1825
|
case "ServiceUnavailableException":
|
|
1834
1826
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1835
|
-
throw await
|
|
1827
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1836
1828
|
case "ThrottlingException":
|
|
1837
1829
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1838
|
-
throw await
|
|
1830
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1839
1831
|
default:
|
|
1840
1832
|
const parsedBody = parsedOutput.body;
|
|
1841
1833
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1846,21 +1838,21 @@ const deserializeAws_restJson1UpdateDetectorModelCommandError = async (output, c
|
|
|
1846
1838
|
});
|
|
1847
1839
|
}
|
|
1848
1840
|
};
|
|
1849
|
-
const
|
|
1841
|
+
const de_UpdateInputCommand = async (output, context) => {
|
|
1850
1842
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1851
|
-
return
|
|
1843
|
+
return de_UpdateInputCommandError(output, context);
|
|
1852
1844
|
}
|
|
1853
1845
|
const contents = map({
|
|
1854
1846
|
$metadata: deserializeMetadata(output),
|
|
1855
1847
|
});
|
|
1856
1848
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1857
1849
|
if (data.inputConfiguration != null) {
|
|
1858
|
-
contents.inputConfiguration =
|
|
1850
|
+
contents.inputConfiguration = de_InputConfiguration(data.inputConfiguration, context);
|
|
1859
1851
|
}
|
|
1860
1852
|
return contents;
|
|
1861
1853
|
};
|
|
1862
|
-
exports.
|
|
1863
|
-
const
|
|
1854
|
+
exports.de_UpdateInputCommand = de_UpdateInputCommand;
|
|
1855
|
+
const de_UpdateInputCommandError = async (output, context) => {
|
|
1864
1856
|
const parsedOutput = {
|
|
1865
1857
|
...output,
|
|
1866
1858
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1869,22 +1861,22 @@ const deserializeAws_restJson1UpdateInputCommandError = async (output, context)
|
|
|
1869
1861
|
switch (errorCode) {
|
|
1870
1862
|
case "InternalFailureException":
|
|
1871
1863
|
case "com.amazonaws.iotevents#InternalFailureException":
|
|
1872
|
-
throw await
|
|
1864
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1873
1865
|
case "InvalidRequestException":
|
|
1874
1866
|
case "com.amazonaws.iotevents#InvalidRequestException":
|
|
1875
|
-
throw await
|
|
1867
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1876
1868
|
case "ResourceInUseException":
|
|
1877
1869
|
case "com.amazonaws.iotevents#ResourceInUseException":
|
|
1878
|
-
throw await
|
|
1870
|
+
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1879
1871
|
case "ResourceNotFoundException":
|
|
1880
1872
|
case "com.amazonaws.iotevents#ResourceNotFoundException":
|
|
1881
|
-
throw await
|
|
1873
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1882
1874
|
case "ServiceUnavailableException":
|
|
1883
1875
|
case "com.amazonaws.iotevents#ServiceUnavailableException":
|
|
1884
|
-
throw await
|
|
1876
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1885
1877
|
case "ThrottlingException":
|
|
1886
1878
|
case "com.amazonaws.iotevents#ThrottlingException":
|
|
1887
|
-
throw await
|
|
1879
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1888
1880
|
default:
|
|
1889
1881
|
const parsedBody = parsedOutput.body;
|
|
1890
1882
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1896,7 +1888,7 @@ const deserializeAws_restJson1UpdateInputCommandError = async (output, context)
|
|
|
1896
1888
|
}
|
|
1897
1889
|
};
|
|
1898
1890
|
const map = smithy_client_1.map;
|
|
1899
|
-
const
|
|
1891
|
+
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1900
1892
|
const contents = map({});
|
|
1901
1893
|
const data = parsedOutput.body;
|
|
1902
1894
|
if (data.message != null) {
|
|
@@ -1908,7 +1900,7 @@ const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOu
|
|
|
1908
1900
|
});
|
|
1909
1901
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1910
1902
|
};
|
|
1911
|
-
const
|
|
1903
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1912
1904
|
const contents = map({});
|
|
1913
1905
|
const data = parsedOutput.body;
|
|
1914
1906
|
if (data.message != null) {
|
|
@@ -1920,7 +1912,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
1920
1912
|
});
|
|
1921
1913
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1922
1914
|
};
|
|
1923
|
-
const
|
|
1915
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1924
1916
|
const contents = map({});
|
|
1925
1917
|
const data = parsedOutput.body;
|
|
1926
1918
|
if (data.message != null) {
|
|
@@ -1932,7 +1924,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
1932
1924
|
});
|
|
1933
1925
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1934
1926
|
};
|
|
1935
|
-
const
|
|
1927
|
+
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1936
1928
|
const contents = map({});
|
|
1937
1929
|
const data = parsedOutput.body;
|
|
1938
1930
|
if (data.message != null) {
|
|
@@ -1950,7 +1942,7 @@ const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (pa
|
|
|
1950
1942
|
});
|
|
1951
1943
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1952
1944
|
};
|
|
1953
|
-
const
|
|
1945
|
+
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1954
1946
|
const contents = map({});
|
|
1955
1947
|
const data = parsedOutput.body;
|
|
1956
1948
|
if (data.message != null) {
|
|
@@ -1962,7 +1954,7 @@ const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutp
|
|
|
1962
1954
|
});
|
|
1963
1955
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1964
1956
|
};
|
|
1965
|
-
const
|
|
1957
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1966
1958
|
const contents = map({});
|
|
1967
1959
|
const data = parsedOutput.body;
|
|
1968
1960
|
if (data.message != null) {
|
|
@@ -1974,7 +1966,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1974
1966
|
});
|
|
1975
1967
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1976
1968
|
};
|
|
1977
|
-
const
|
|
1969
|
+
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1978
1970
|
const contents = map({});
|
|
1979
1971
|
const data = parsedOutput.body;
|
|
1980
1972
|
if (data.message != null) {
|
|
@@ -1986,7 +1978,7 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
1986
1978
|
});
|
|
1987
1979
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1988
1980
|
};
|
|
1989
|
-
const
|
|
1981
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1990
1982
|
const contents = map({});
|
|
1991
1983
|
const data = parsedOutput.body;
|
|
1992
1984
|
if (data.message != null) {
|
|
@@ -1998,7 +1990,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1998
1990
|
});
|
|
1999
1991
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2000
1992
|
};
|
|
2001
|
-
const
|
|
1993
|
+
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
2002
1994
|
const contents = map({});
|
|
2003
1995
|
const data = parsedOutput.body;
|
|
2004
1996
|
if (data.message != null) {
|
|
@@ -2010,110 +2002,94 @@ const deserializeAws_restJson1UnsupportedOperationExceptionResponse = async (par
|
|
|
2010
2002
|
});
|
|
2011
2003
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2012
2004
|
};
|
|
2013
|
-
const
|
|
2005
|
+
const se_AcknowledgeFlow = (input, context) => {
|
|
2014
2006
|
return {
|
|
2015
2007
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
2016
2008
|
};
|
|
2017
2009
|
};
|
|
2018
|
-
const
|
|
2010
|
+
const se_Action = (input, context) => {
|
|
2019
2011
|
return {
|
|
2020
|
-
...(input.clearTimer != null && { clearTimer:
|
|
2021
|
-
...(input.dynamoDB != null && { dynamoDB:
|
|
2022
|
-
...(input.dynamoDBv2 != null && { dynamoDBv2:
|
|
2023
|
-
...(input.firehose != null && { firehose:
|
|
2024
|
-
...(input.iotEvents != null && { iotEvents:
|
|
2025
|
-
...(input.iotSiteWise != null && {
|
|
2026
|
-
|
|
2027
|
-
}),
|
|
2028
|
-
...(input.
|
|
2029
|
-
|
|
2030
|
-
}),
|
|
2031
|
-
...(input.
|
|
2032
|
-
...(input.
|
|
2033
|
-
...(input.setTimer != null && { setTimer: serializeAws_restJson1SetTimerAction(input.setTimer, context) }),
|
|
2034
|
-
...(input.setVariable != null && {
|
|
2035
|
-
setVariable: serializeAws_restJson1SetVariableAction(input.setVariable, context),
|
|
2036
|
-
}),
|
|
2037
|
-
...(input.sns != null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) }),
|
|
2038
|
-
...(input.sqs != null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }),
|
|
2012
|
+
...(input.clearTimer != null && { clearTimer: se_ClearTimerAction(input.clearTimer, context) }),
|
|
2013
|
+
...(input.dynamoDB != null && { dynamoDB: se_DynamoDBAction(input.dynamoDB, context) }),
|
|
2014
|
+
...(input.dynamoDBv2 != null && { dynamoDBv2: se_DynamoDBv2Action(input.dynamoDBv2, context) }),
|
|
2015
|
+
...(input.firehose != null && { firehose: se_FirehoseAction(input.firehose, context) }),
|
|
2016
|
+
...(input.iotEvents != null && { iotEvents: se_IotEventsAction(input.iotEvents, context) }),
|
|
2017
|
+
...(input.iotSiteWise != null && { iotSiteWise: se_IotSiteWiseAction(input.iotSiteWise, context) }),
|
|
2018
|
+
...(input.iotTopicPublish != null && { iotTopicPublish: se_IotTopicPublishAction(input.iotTopicPublish, context) }),
|
|
2019
|
+
...(input.lambda != null && { lambda: se_LambdaAction(input.lambda, context) }),
|
|
2020
|
+
...(input.resetTimer != null && { resetTimer: se_ResetTimerAction(input.resetTimer, context) }),
|
|
2021
|
+
...(input.setTimer != null && { setTimer: se_SetTimerAction(input.setTimer, context) }),
|
|
2022
|
+
...(input.setVariable != null && { setVariable: se_SetVariableAction(input.setVariable, context) }),
|
|
2023
|
+
...(input.sns != null && { sns: se_SNSTopicPublishAction(input.sns, context) }),
|
|
2024
|
+
...(input.sqs != null && { sqs: se_SqsAction(input.sqs, context) }),
|
|
2039
2025
|
};
|
|
2040
2026
|
};
|
|
2041
|
-
const
|
|
2027
|
+
const se_Actions = (input, context) => {
|
|
2042
2028
|
return input
|
|
2043
2029
|
.filter((e) => e != null)
|
|
2044
2030
|
.map((entry) => {
|
|
2045
|
-
return
|
|
2031
|
+
return se_Action(entry, context);
|
|
2046
2032
|
});
|
|
2047
2033
|
};
|
|
2048
|
-
const
|
|
2034
|
+
const se_AlarmAction = (input, context) => {
|
|
2049
2035
|
return {
|
|
2050
|
-
...(input.dynamoDB != null && { dynamoDB:
|
|
2051
|
-
...(input.dynamoDBv2 != null && { dynamoDBv2:
|
|
2052
|
-
...(input.firehose != null && { firehose:
|
|
2053
|
-
...(input.iotEvents != null && { iotEvents:
|
|
2054
|
-
...(input.iotSiteWise != null && {
|
|
2055
|
-
|
|
2056
|
-
}),
|
|
2057
|
-
...(input.
|
|
2058
|
-
|
|
2059
|
-
}),
|
|
2060
|
-
...(input.lambda != null && { lambda: serializeAws_restJson1LambdaAction(input.lambda, context) }),
|
|
2061
|
-
...(input.sns != null && { sns: serializeAws_restJson1SNSTopicPublishAction(input.sns, context) }),
|
|
2062
|
-
...(input.sqs != null && { sqs: serializeAws_restJson1SqsAction(input.sqs, context) }),
|
|
2036
|
+
...(input.dynamoDB != null && { dynamoDB: se_DynamoDBAction(input.dynamoDB, context) }),
|
|
2037
|
+
...(input.dynamoDBv2 != null && { dynamoDBv2: se_DynamoDBv2Action(input.dynamoDBv2, context) }),
|
|
2038
|
+
...(input.firehose != null && { firehose: se_FirehoseAction(input.firehose, context) }),
|
|
2039
|
+
...(input.iotEvents != null && { iotEvents: se_IotEventsAction(input.iotEvents, context) }),
|
|
2040
|
+
...(input.iotSiteWise != null && { iotSiteWise: se_IotSiteWiseAction(input.iotSiteWise, context) }),
|
|
2041
|
+
...(input.iotTopicPublish != null && { iotTopicPublish: se_IotTopicPublishAction(input.iotTopicPublish, context) }),
|
|
2042
|
+
...(input.lambda != null && { lambda: se_LambdaAction(input.lambda, context) }),
|
|
2043
|
+
...(input.sns != null && { sns: se_SNSTopicPublishAction(input.sns, context) }),
|
|
2044
|
+
...(input.sqs != null && { sqs: se_SqsAction(input.sqs, context) }),
|
|
2063
2045
|
};
|
|
2064
2046
|
};
|
|
2065
|
-
const
|
|
2047
|
+
const se_AlarmActions = (input, context) => {
|
|
2066
2048
|
return input
|
|
2067
2049
|
.filter((e) => e != null)
|
|
2068
2050
|
.map((entry) => {
|
|
2069
|
-
return
|
|
2051
|
+
return se_AlarmAction(entry, context);
|
|
2070
2052
|
});
|
|
2071
2053
|
};
|
|
2072
|
-
const
|
|
2054
|
+
const se_AlarmCapabilities = (input, context) => {
|
|
2073
2055
|
return {
|
|
2074
|
-
...(input.acknowledgeFlow != null && {
|
|
2075
|
-
acknowledgeFlow: serializeAws_restJson1AcknowledgeFlow(input.acknowledgeFlow, context),
|
|
2076
|
-
}),
|
|
2056
|
+
...(input.acknowledgeFlow != null && { acknowledgeFlow: se_AcknowledgeFlow(input.acknowledgeFlow, context) }),
|
|
2077
2057
|
...(input.initializationConfiguration != null && {
|
|
2078
|
-
initializationConfiguration:
|
|
2058
|
+
initializationConfiguration: se_InitializationConfiguration(input.initializationConfiguration, context),
|
|
2079
2059
|
}),
|
|
2080
2060
|
};
|
|
2081
2061
|
};
|
|
2082
|
-
const
|
|
2062
|
+
const se_AlarmEventActions = (input, context) => {
|
|
2083
2063
|
return {
|
|
2084
|
-
...(input.alarmActions != null && {
|
|
2085
|
-
alarmActions: serializeAws_restJson1AlarmActions(input.alarmActions, context),
|
|
2086
|
-
}),
|
|
2064
|
+
...(input.alarmActions != null && { alarmActions: se_AlarmActions(input.alarmActions, context) }),
|
|
2087
2065
|
};
|
|
2088
2066
|
};
|
|
2089
|
-
const
|
|
2067
|
+
const se_AlarmNotification = (input, context) => {
|
|
2090
2068
|
return {
|
|
2091
2069
|
...(input.notificationActions != null && {
|
|
2092
|
-
notificationActions:
|
|
2070
|
+
notificationActions: se_NotificationActions(input.notificationActions, context),
|
|
2093
2071
|
}),
|
|
2094
2072
|
};
|
|
2095
2073
|
};
|
|
2096
|
-
const
|
|
2074
|
+
const se_AlarmRule = (input, context) => {
|
|
2097
2075
|
return {
|
|
2098
|
-
...(input.simpleRule != null && { simpleRule:
|
|
2076
|
+
...(input.simpleRule != null && { simpleRule: se_SimpleRule(input.simpleRule, context) }),
|
|
2099
2077
|
};
|
|
2100
2078
|
};
|
|
2101
|
-
const
|
|
2079
|
+
const se_AssetPropertyTimestamp = (input, context) => {
|
|
2102
2080
|
return {
|
|
2103
2081
|
...(input.offsetInNanos != null && { offsetInNanos: input.offsetInNanos }),
|
|
2104
2082
|
...(input.timeInSeconds != null && { timeInSeconds: input.timeInSeconds }),
|
|
2105
2083
|
};
|
|
2106
2084
|
};
|
|
2107
|
-
const
|
|
2085
|
+
const se_AssetPropertyValue = (input, context) => {
|
|
2108
2086
|
return {
|
|
2109
2087
|
...(input.quality != null && { quality: input.quality }),
|
|
2110
|
-
...(input.timestamp != null && {
|
|
2111
|
-
|
|
2112
|
-
}),
|
|
2113
|
-
...(input.value != null && { value: serializeAws_restJson1AssetPropertyVariant(input.value, context) }),
|
|
2088
|
+
...(input.timestamp != null && { timestamp: se_AssetPropertyTimestamp(input.timestamp, context) }),
|
|
2089
|
+
...(input.value != null && { value: se_AssetPropertyVariant(input.value, context) }),
|
|
2114
2090
|
};
|
|
2115
2091
|
};
|
|
2116
|
-
const
|
|
2092
|
+
const se_AssetPropertyVariant = (input, context) => {
|
|
2117
2093
|
return {
|
|
2118
2094
|
...(input.booleanValue != null && { booleanValue: input.booleanValue }),
|
|
2119
2095
|
...(input.doubleValue != null && { doubleValue: input.doubleValue }),
|
|
@@ -2121,49 +2097,49 @@ const serializeAws_restJson1AssetPropertyVariant = (input, context) => {
|
|
|
2121
2097
|
...(input.stringValue != null && { stringValue: input.stringValue }),
|
|
2122
2098
|
};
|
|
2123
2099
|
};
|
|
2124
|
-
const
|
|
2100
|
+
const se_Attribute = (input, context) => {
|
|
2125
2101
|
return {
|
|
2126
2102
|
...(input.jsonPath != null && { jsonPath: input.jsonPath }),
|
|
2127
2103
|
};
|
|
2128
2104
|
};
|
|
2129
|
-
const
|
|
2105
|
+
const se_Attributes = (input, context) => {
|
|
2130
2106
|
return input
|
|
2131
2107
|
.filter((e) => e != null)
|
|
2132
2108
|
.map((entry) => {
|
|
2133
|
-
return
|
|
2109
|
+
return se_Attribute(entry, context);
|
|
2134
2110
|
});
|
|
2135
2111
|
};
|
|
2136
|
-
const
|
|
2112
|
+
const se_ClearTimerAction = (input, context) => {
|
|
2137
2113
|
return {
|
|
2138
2114
|
...(input.timerName != null && { timerName: input.timerName }),
|
|
2139
2115
|
};
|
|
2140
2116
|
};
|
|
2141
|
-
const
|
|
2117
|
+
const se_DetectorDebugOption = (input, context) => {
|
|
2142
2118
|
return {
|
|
2143
2119
|
...(input.detectorModelName != null && { detectorModelName: input.detectorModelName }),
|
|
2144
2120
|
...(input.keyValue != null && { keyValue: input.keyValue }),
|
|
2145
2121
|
};
|
|
2146
2122
|
};
|
|
2147
|
-
const
|
|
2123
|
+
const se_DetectorDebugOptions = (input, context) => {
|
|
2148
2124
|
return input
|
|
2149
2125
|
.filter((e) => e != null)
|
|
2150
2126
|
.map((entry) => {
|
|
2151
|
-
return
|
|
2127
|
+
return se_DetectorDebugOption(entry, context);
|
|
2152
2128
|
});
|
|
2153
2129
|
};
|
|
2154
|
-
const
|
|
2130
|
+
const se_DetectorModelDefinition = (input, context) => {
|
|
2155
2131
|
return {
|
|
2156
2132
|
...(input.initialStateName != null && { initialStateName: input.initialStateName }),
|
|
2157
|
-
...(input.states != null && { states:
|
|
2133
|
+
...(input.states != null && { states: se_States(input.states, context) }),
|
|
2158
2134
|
};
|
|
2159
2135
|
};
|
|
2160
|
-
const
|
|
2136
|
+
const se_DynamoDBAction = (input, context) => {
|
|
2161
2137
|
return {
|
|
2162
2138
|
...(input.hashKeyField != null && { hashKeyField: input.hashKeyField }),
|
|
2163
2139
|
...(input.hashKeyType != null && { hashKeyType: input.hashKeyType }),
|
|
2164
2140
|
...(input.hashKeyValue != null && { hashKeyValue: input.hashKeyValue }),
|
|
2165
2141
|
...(input.operation != null && { operation: input.operation }),
|
|
2166
|
-
...(input.payload != null && { payload:
|
|
2142
|
+
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2167
2143
|
...(input.payloadField != null && { payloadField: input.payloadField }),
|
|
2168
2144
|
...(input.rangeKeyField != null && { rangeKeyField: input.rangeKeyField }),
|
|
2169
2145
|
...(input.rangeKeyType != null && { rangeKeyType: input.rangeKeyType }),
|
|
@@ -2171,385 +2147,373 @@ const serializeAws_restJson1DynamoDBAction = (input, context) => {
|
|
|
2171
2147
|
...(input.tableName != null && { tableName: input.tableName }),
|
|
2172
2148
|
};
|
|
2173
2149
|
};
|
|
2174
|
-
const
|
|
2150
|
+
const se_DynamoDBv2Action = (input, context) => {
|
|
2175
2151
|
return {
|
|
2176
|
-
...(input.payload != null && { payload:
|
|
2152
|
+
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2177
2153
|
...(input.tableName != null && { tableName: input.tableName }),
|
|
2178
2154
|
};
|
|
2179
2155
|
};
|
|
2180
|
-
const
|
|
2156
|
+
const se_EmailConfiguration = (input, context) => {
|
|
2181
2157
|
return {
|
|
2182
|
-
...(input.content != null && { content:
|
|
2158
|
+
...(input.content != null && { content: se_EmailContent(input.content, context) }),
|
|
2183
2159
|
...(input.from != null && { from: input.from }),
|
|
2184
|
-
...(input.recipients != null && { recipients:
|
|
2160
|
+
...(input.recipients != null && { recipients: se_EmailRecipients(input.recipients, context) }),
|
|
2185
2161
|
};
|
|
2186
2162
|
};
|
|
2187
|
-
const
|
|
2163
|
+
const se_EmailConfigurations = (input, context) => {
|
|
2188
2164
|
return input
|
|
2189
2165
|
.filter((e) => e != null)
|
|
2190
2166
|
.map((entry) => {
|
|
2191
|
-
return
|
|
2167
|
+
return se_EmailConfiguration(entry, context);
|
|
2192
2168
|
});
|
|
2193
2169
|
};
|
|
2194
|
-
const
|
|
2170
|
+
const se_EmailContent = (input, context) => {
|
|
2195
2171
|
return {
|
|
2196
2172
|
...(input.additionalMessage != null && { additionalMessage: input.additionalMessage }),
|
|
2197
2173
|
...(input.subject != null && { subject: input.subject }),
|
|
2198
2174
|
};
|
|
2199
2175
|
};
|
|
2200
|
-
const
|
|
2176
|
+
const se_EmailRecipients = (input, context) => {
|
|
2201
2177
|
return {
|
|
2202
|
-
...(input.to != null && { to:
|
|
2178
|
+
...(input.to != null && { to: se_RecipientDetails(input.to, context) }),
|
|
2203
2179
|
};
|
|
2204
2180
|
};
|
|
2205
|
-
const
|
|
2181
|
+
const se_Event = (input, context) => {
|
|
2206
2182
|
return {
|
|
2207
|
-
...(input.actions != null && { actions:
|
|
2183
|
+
...(input.actions != null && { actions: se_Actions(input.actions, context) }),
|
|
2208
2184
|
...(input.condition != null && { condition: input.condition }),
|
|
2209
2185
|
...(input.eventName != null && { eventName: input.eventName }),
|
|
2210
2186
|
};
|
|
2211
2187
|
};
|
|
2212
|
-
const
|
|
2188
|
+
const se_Events = (input, context) => {
|
|
2213
2189
|
return input
|
|
2214
2190
|
.filter((e) => e != null)
|
|
2215
2191
|
.map((entry) => {
|
|
2216
|
-
return
|
|
2192
|
+
return se_Event(entry, context);
|
|
2217
2193
|
});
|
|
2218
2194
|
};
|
|
2219
|
-
const
|
|
2195
|
+
const se_FirehoseAction = (input, context) => {
|
|
2220
2196
|
return {
|
|
2221
2197
|
...(input.deliveryStreamName != null && { deliveryStreamName: input.deliveryStreamName }),
|
|
2222
|
-
...(input.payload != null && { payload:
|
|
2198
|
+
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2223
2199
|
...(input.separator != null && { separator: input.separator }),
|
|
2224
2200
|
};
|
|
2225
2201
|
};
|
|
2226
|
-
const
|
|
2202
|
+
const se_InitializationConfiguration = (input, context) => {
|
|
2227
2203
|
return {
|
|
2228
2204
|
...(input.disabledOnInitialization != null && { disabledOnInitialization: input.disabledOnInitialization }),
|
|
2229
2205
|
};
|
|
2230
2206
|
};
|
|
2231
|
-
const
|
|
2207
|
+
const se_InputDefinition = (input, context) => {
|
|
2232
2208
|
return {
|
|
2233
|
-
...(input.attributes != null && { attributes:
|
|
2209
|
+
...(input.attributes != null && { attributes: se_Attributes(input.attributes, context) }),
|
|
2234
2210
|
};
|
|
2235
2211
|
};
|
|
2236
|
-
const
|
|
2212
|
+
const se_InputIdentifier = (input, context) => {
|
|
2237
2213
|
return {
|
|
2238
2214
|
...(input.iotEventsInputIdentifier != null && {
|
|
2239
|
-
iotEventsInputIdentifier:
|
|
2215
|
+
iotEventsInputIdentifier: se_IotEventsInputIdentifier(input.iotEventsInputIdentifier, context),
|
|
2240
2216
|
}),
|
|
2241
2217
|
...(input.iotSiteWiseInputIdentifier != null && {
|
|
2242
|
-
iotSiteWiseInputIdentifier:
|
|
2218
|
+
iotSiteWiseInputIdentifier: se_IotSiteWiseInputIdentifier(input.iotSiteWiseInputIdentifier, context),
|
|
2243
2219
|
}),
|
|
2244
2220
|
};
|
|
2245
2221
|
};
|
|
2246
|
-
const
|
|
2222
|
+
const se_IotEventsAction = (input, context) => {
|
|
2247
2223
|
return {
|
|
2248
2224
|
...(input.inputName != null && { inputName: input.inputName }),
|
|
2249
|
-
...(input.payload != null && { payload:
|
|
2225
|
+
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2250
2226
|
};
|
|
2251
2227
|
};
|
|
2252
|
-
const
|
|
2228
|
+
const se_IotEventsInputIdentifier = (input, context) => {
|
|
2253
2229
|
return {
|
|
2254
2230
|
...(input.inputName != null && { inputName: input.inputName }),
|
|
2255
2231
|
};
|
|
2256
2232
|
};
|
|
2257
|
-
const
|
|
2233
|
+
const se_IotSiteWiseAction = (input, context) => {
|
|
2258
2234
|
return {
|
|
2259
2235
|
...(input.assetId != null && { assetId: input.assetId }),
|
|
2260
2236
|
...(input.entryId != null && { entryId: input.entryId }),
|
|
2261
2237
|
...(input.propertyAlias != null && { propertyAlias: input.propertyAlias }),
|
|
2262
2238
|
...(input.propertyId != null && { propertyId: input.propertyId }),
|
|
2263
|
-
...(input.propertyValue != null && {
|
|
2264
|
-
propertyValue: serializeAws_restJson1AssetPropertyValue(input.propertyValue, context),
|
|
2265
|
-
}),
|
|
2239
|
+
...(input.propertyValue != null && { propertyValue: se_AssetPropertyValue(input.propertyValue, context) }),
|
|
2266
2240
|
};
|
|
2267
2241
|
};
|
|
2268
|
-
const
|
|
2242
|
+
const se_IotSiteWiseAssetModelPropertyIdentifier = (input, context) => {
|
|
2269
2243
|
return {
|
|
2270
2244
|
...(input.assetModelId != null && { assetModelId: input.assetModelId }),
|
|
2271
2245
|
...(input.propertyId != null && { propertyId: input.propertyId }),
|
|
2272
2246
|
};
|
|
2273
2247
|
};
|
|
2274
|
-
const
|
|
2248
|
+
const se_IotSiteWiseInputIdentifier = (input, context) => {
|
|
2275
2249
|
return {
|
|
2276
2250
|
...(input.iotSiteWiseAssetModelPropertyIdentifier != null && {
|
|
2277
|
-
iotSiteWiseAssetModelPropertyIdentifier:
|
|
2251
|
+
iotSiteWiseAssetModelPropertyIdentifier: se_IotSiteWiseAssetModelPropertyIdentifier(input.iotSiteWiseAssetModelPropertyIdentifier, context),
|
|
2278
2252
|
}),
|
|
2279
2253
|
};
|
|
2280
2254
|
};
|
|
2281
|
-
const
|
|
2255
|
+
const se_IotTopicPublishAction = (input, context) => {
|
|
2282
2256
|
return {
|
|
2283
2257
|
...(input.mqttTopic != null && { mqttTopic: input.mqttTopic }),
|
|
2284
|
-
...(input.payload != null && { payload:
|
|
2258
|
+
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2285
2259
|
};
|
|
2286
2260
|
};
|
|
2287
|
-
const
|
|
2261
|
+
const se_LambdaAction = (input, context) => {
|
|
2288
2262
|
return {
|
|
2289
2263
|
...(input.functionArn != null && { functionArn: input.functionArn }),
|
|
2290
|
-
...(input.payload != null && { payload:
|
|
2264
|
+
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2291
2265
|
};
|
|
2292
2266
|
};
|
|
2293
|
-
const
|
|
2267
|
+
const se_LoggingOptions = (input, context) => {
|
|
2294
2268
|
return {
|
|
2295
2269
|
...(input.detectorDebugOptions != null && {
|
|
2296
|
-
detectorDebugOptions:
|
|
2270
|
+
detectorDebugOptions: se_DetectorDebugOptions(input.detectorDebugOptions, context),
|
|
2297
2271
|
}),
|
|
2298
2272
|
...(input.enabled != null && { enabled: input.enabled }),
|
|
2299
2273
|
...(input.level != null && { level: input.level }),
|
|
2300
2274
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2301
2275
|
};
|
|
2302
2276
|
};
|
|
2303
|
-
const
|
|
2277
|
+
const se_NotificationAction = (input, context) => {
|
|
2304
2278
|
return {
|
|
2305
|
-
...(input.action != null && { action:
|
|
2279
|
+
...(input.action != null && { action: se_NotificationTargetActions(input.action, context) }),
|
|
2306
2280
|
...(input.emailConfigurations != null && {
|
|
2307
|
-
emailConfigurations:
|
|
2281
|
+
emailConfigurations: se_EmailConfigurations(input.emailConfigurations, context),
|
|
2308
2282
|
}),
|
|
2309
2283
|
...(input.smsConfigurations != null && {
|
|
2310
|
-
smsConfigurations:
|
|
2284
|
+
smsConfigurations: se_SMSConfigurations(input.smsConfigurations, context),
|
|
2311
2285
|
}),
|
|
2312
2286
|
};
|
|
2313
2287
|
};
|
|
2314
|
-
const
|
|
2288
|
+
const se_NotificationActions = (input, context) => {
|
|
2315
2289
|
return input
|
|
2316
2290
|
.filter((e) => e != null)
|
|
2317
2291
|
.map((entry) => {
|
|
2318
|
-
return
|
|
2292
|
+
return se_NotificationAction(entry, context);
|
|
2319
2293
|
});
|
|
2320
2294
|
};
|
|
2321
|
-
const
|
|
2295
|
+
const se_NotificationTargetActions = (input, context) => {
|
|
2322
2296
|
return {
|
|
2323
|
-
...(input.lambdaAction != null && {
|
|
2324
|
-
lambdaAction: serializeAws_restJson1LambdaAction(input.lambdaAction, context),
|
|
2325
|
-
}),
|
|
2297
|
+
...(input.lambdaAction != null && { lambdaAction: se_LambdaAction(input.lambdaAction, context) }),
|
|
2326
2298
|
};
|
|
2327
2299
|
};
|
|
2328
|
-
const
|
|
2300
|
+
const se_OnEnterLifecycle = (input, context) => {
|
|
2329
2301
|
return {
|
|
2330
|
-
...(input.events != null && { events:
|
|
2302
|
+
...(input.events != null && { events: se_Events(input.events, context) }),
|
|
2331
2303
|
};
|
|
2332
2304
|
};
|
|
2333
|
-
const
|
|
2305
|
+
const se_OnExitLifecycle = (input, context) => {
|
|
2334
2306
|
return {
|
|
2335
|
-
...(input.events != null && { events:
|
|
2307
|
+
...(input.events != null && { events: se_Events(input.events, context) }),
|
|
2336
2308
|
};
|
|
2337
2309
|
};
|
|
2338
|
-
const
|
|
2310
|
+
const se_OnInputLifecycle = (input, context) => {
|
|
2339
2311
|
return {
|
|
2340
|
-
...(input.events != null && { events:
|
|
2341
|
-
...(input.transitionEvents != null && {
|
|
2342
|
-
transitionEvents: serializeAws_restJson1TransitionEvents(input.transitionEvents, context),
|
|
2343
|
-
}),
|
|
2312
|
+
...(input.events != null && { events: se_Events(input.events, context) }),
|
|
2313
|
+
...(input.transitionEvents != null && { transitionEvents: se_TransitionEvents(input.transitionEvents, context) }),
|
|
2344
2314
|
};
|
|
2345
2315
|
};
|
|
2346
|
-
const
|
|
2316
|
+
const se_Payload = (input, context) => {
|
|
2347
2317
|
return {
|
|
2348
2318
|
...(input.contentExpression != null && { contentExpression: input.contentExpression }),
|
|
2349
2319
|
...(input.type != null && { type: input.type }),
|
|
2350
2320
|
};
|
|
2351
2321
|
};
|
|
2352
|
-
const
|
|
2322
|
+
const se_RecipientDetail = (input, context) => {
|
|
2353
2323
|
return {
|
|
2354
|
-
...(input.ssoIdentity != null && { ssoIdentity:
|
|
2324
|
+
...(input.ssoIdentity != null && { ssoIdentity: se_SSOIdentity(input.ssoIdentity, context) }),
|
|
2355
2325
|
};
|
|
2356
2326
|
};
|
|
2357
|
-
const
|
|
2327
|
+
const se_RecipientDetails = (input, context) => {
|
|
2358
2328
|
return input
|
|
2359
2329
|
.filter((e) => e != null)
|
|
2360
2330
|
.map((entry) => {
|
|
2361
|
-
return
|
|
2331
|
+
return se_RecipientDetail(entry, context);
|
|
2362
2332
|
});
|
|
2363
2333
|
};
|
|
2364
|
-
const
|
|
2334
|
+
const se_ResetTimerAction = (input, context) => {
|
|
2365
2335
|
return {
|
|
2366
2336
|
...(input.timerName != null && { timerName: input.timerName }),
|
|
2367
2337
|
};
|
|
2368
2338
|
};
|
|
2369
|
-
const
|
|
2339
|
+
const se_SetTimerAction = (input, context) => {
|
|
2370
2340
|
return {
|
|
2371
2341
|
...(input.durationExpression != null && { durationExpression: input.durationExpression }),
|
|
2372
2342
|
...(input.seconds != null && { seconds: input.seconds }),
|
|
2373
2343
|
...(input.timerName != null && { timerName: input.timerName }),
|
|
2374
2344
|
};
|
|
2375
2345
|
};
|
|
2376
|
-
const
|
|
2346
|
+
const se_SetVariableAction = (input, context) => {
|
|
2377
2347
|
return {
|
|
2378
2348
|
...(input.value != null && { value: input.value }),
|
|
2379
2349
|
...(input.variableName != null && { variableName: input.variableName }),
|
|
2380
2350
|
};
|
|
2381
2351
|
};
|
|
2382
|
-
const
|
|
2352
|
+
const se_SimpleRule = (input, context) => {
|
|
2383
2353
|
return {
|
|
2384
2354
|
...(input.comparisonOperator != null && { comparisonOperator: input.comparisonOperator }),
|
|
2385
2355
|
...(input.inputProperty != null && { inputProperty: input.inputProperty }),
|
|
2386
2356
|
...(input.threshold != null && { threshold: input.threshold }),
|
|
2387
2357
|
};
|
|
2388
2358
|
};
|
|
2389
|
-
const
|
|
2359
|
+
const se_SMSConfiguration = (input, context) => {
|
|
2390
2360
|
return {
|
|
2391
2361
|
...(input.additionalMessage != null && { additionalMessage: input.additionalMessage }),
|
|
2392
|
-
...(input.recipients != null && { recipients:
|
|
2362
|
+
...(input.recipients != null && { recipients: se_RecipientDetails(input.recipients, context) }),
|
|
2393
2363
|
...(input.senderId != null && { senderId: input.senderId }),
|
|
2394
2364
|
};
|
|
2395
2365
|
};
|
|
2396
|
-
const
|
|
2366
|
+
const se_SMSConfigurations = (input, context) => {
|
|
2397
2367
|
return input
|
|
2398
2368
|
.filter((e) => e != null)
|
|
2399
2369
|
.map((entry) => {
|
|
2400
|
-
return
|
|
2370
|
+
return se_SMSConfiguration(entry, context);
|
|
2401
2371
|
});
|
|
2402
2372
|
};
|
|
2403
|
-
const
|
|
2373
|
+
const se_SNSTopicPublishAction = (input, context) => {
|
|
2404
2374
|
return {
|
|
2405
|
-
...(input.payload != null && { payload:
|
|
2375
|
+
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2406
2376
|
...(input.targetArn != null && { targetArn: input.targetArn }),
|
|
2407
2377
|
};
|
|
2408
2378
|
};
|
|
2409
|
-
const
|
|
2379
|
+
const se_SqsAction = (input, context) => {
|
|
2410
2380
|
return {
|
|
2411
|
-
...(input.payload != null && { payload:
|
|
2381
|
+
...(input.payload != null && { payload: se_Payload(input.payload, context) }),
|
|
2412
2382
|
...(input.queueUrl != null && { queueUrl: input.queueUrl }),
|
|
2413
2383
|
...(input.useBase64 != null && { useBase64: input.useBase64 }),
|
|
2414
2384
|
};
|
|
2415
2385
|
};
|
|
2416
|
-
const
|
|
2386
|
+
const se_SSOIdentity = (input, context) => {
|
|
2417
2387
|
return {
|
|
2418
2388
|
...(input.identityStoreId != null && { identityStoreId: input.identityStoreId }),
|
|
2419
2389
|
...(input.userId != null && { userId: input.userId }),
|
|
2420
2390
|
};
|
|
2421
2391
|
};
|
|
2422
|
-
const
|
|
2392
|
+
const se_State = (input, context) => {
|
|
2423
2393
|
return {
|
|
2424
|
-
...(input.onEnter != null && { onEnter:
|
|
2425
|
-
...(input.onExit != null && { onExit:
|
|
2426
|
-
...(input.onInput != null && { onInput:
|
|
2394
|
+
...(input.onEnter != null && { onEnter: se_OnEnterLifecycle(input.onEnter, context) }),
|
|
2395
|
+
...(input.onExit != null && { onExit: se_OnExitLifecycle(input.onExit, context) }),
|
|
2396
|
+
...(input.onInput != null && { onInput: se_OnInputLifecycle(input.onInput, context) }),
|
|
2427
2397
|
...(input.stateName != null && { stateName: input.stateName }),
|
|
2428
2398
|
};
|
|
2429
2399
|
};
|
|
2430
|
-
const
|
|
2400
|
+
const se_States = (input, context) => {
|
|
2431
2401
|
return input
|
|
2432
2402
|
.filter((e) => e != null)
|
|
2433
2403
|
.map((entry) => {
|
|
2434
|
-
return
|
|
2404
|
+
return se_State(entry, context);
|
|
2435
2405
|
});
|
|
2436
2406
|
};
|
|
2437
|
-
const
|
|
2407
|
+
const se_Tag = (input, context) => {
|
|
2438
2408
|
return {
|
|
2439
2409
|
...(input.key != null && { key: input.key }),
|
|
2440
2410
|
...(input.value != null && { value: input.value }),
|
|
2441
2411
|
};
|
|
2442
2412
|
};
|
|
2443
|
-
const
|
|
2413
|
+
const se_Tags = (input, context) => {
|
|
2444
2414
|
return input
|
|
2445
2415
|
.filter((e) => e != null)
|
|
2446
2416
|
.map((entry) => {
|
|
2447
|
-
return
|
|
2417
|
+
return se_Tag(entry, context);
|
|
2448
2418
|
});
|
|
2449
2419
|
};
|
|
2450
|
-
const
|
|
2420
|
+
const se_TransitionEvent = (input, context) => {
|
|
2451
2421
|
return {
|
|
2452
|
-
...(input.actions != null && { actions:
|
|
2422
|
+
...(input.actions != null && { actions: se_Actions(input.actions, context) }),
|
|
2453
2423
|
...(input.condition != null && { condition: input.condition }),
|
|
2454
2424
|
...(input.eventName != null && { eventName: input.eventName }),
|
|
2455
2425
|
...(input.nextState != null && { nextState: input.nextState }),
|
|
2456
2426
|
};
|
|
2457
2427
|
};
|
|
2458
|
-
const
|
|
2428
|
+
const se_TransitionEvents = (input, context) => {
|
|
2459
2429
|
return input
|
|
2460
2430
|
.filter((e) => e != null)
|
|
2461
2431
|
.map((entry) => {
|
|
2462
|
-
return
|
|
2432
|
+
return se_TransitionEvent(entry, context);
|
|
2463
2433
|
});
|
|
2464
2434
|
};
|
|
2465
|
-
const
|
|
2435
|
+
const de_AcknowledgeFlow = (output, context) => {
|
|
2466
2436
|
return {
|
|
2467
2437
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2468
2438
|
};
|
|
2469
2439
|
};
|
|
2470
|
-
const
|
|
2440
|
+
const de_Action = (output, context) => {
|
|
2471
2441
|
return {
|
|
2472
|
-
clearTimer: output.clearTimer != null ?
|
|
2473
|
-
dynamoDB: output.dynamoDB != null ?
|
|
2474
|
-
dynamoDBv2: output.dynamoDBv2 != null ?
|
|
2475
|
-
firehose: output.firehose != null ?
|
|
2476
|
-
iotEvents: output.iotEvents != null ?
|
|
2477
|
-
iotSiteWise: output.iotSiteWise != null ?
|
|
2478
|
-
iotTopicPublish: output.iotTopicPublish != null
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
sns: output.sns != null ? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context) : undefined,
|
|
2486
|
-
sqs: output.sqs != null ? deserializeAws_restJson1SqsAction(output.sqs, context) : undefined,
|
|
2442
|
+
clearTimer: output.clearTimer != null ? de_ClearTimerAction(output.clearTimer, context) : undefined,
|
|
2443
|
+
dynamoDB: output.dynamoDB != null ? de_DynamoDBAction(output.dynamoDB, context) : undefined,
|
|
2444
|
+
dynamoDBv2: output.dynamoDBv2 != null ? de_DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
|
|
2445
|
+
firehose: output.firehose != null ? de_FirehoseAction(output.firehose, context) : undefined,
|
|
2446
|
+
iotEvents: output.iotEvents != null ? de_IotEventsAction(output.iotEvents, context) : undefined,
|
|
2447
|
+
iotSiteWise: output.iotSiteWise != null ? de_IotSiteWiseAction(output.iotSiteWise, context) : undefined,
|
|
2448
|
+
iotTopicPublish: output.iotTopicPublish != null ? de_IotTopicPublishAction(output.iotTopicPublish, context) : undefined,
|
|
2449
|
+
lambda: output.lambda != null ? de_LambdaAction(output.lambda, context) : undefined,
|
|
2450
|
+
resetTimer: output.resetTimer != null ? de_ResetTimerAction(output.resetTimer, context) : undefined,
|
|
2451
|
+
setTimer: output.setTimer != null ? de_SetTimerAction(output.setTimer, context) : undefined,
|
|
2452
|
+
setVariable: output.setVariable != null ? de_SetVariableAction(output.setVariable, context) : undefined,
|
|
2453
|
+
sns: output.sns != null ? de_SNSTopicPublishAction(output.sns, context) : undefined,
|
|
2454
|
+
sqs: output.sqs != null ? de_SqsAction(output.sqs, context) : undefined,
|
|
2487
2455
|
};
|
|
2488
2456
|
};
|
|
2489
|
-
const
|
|
2457
|
+
const de_Actions = (output, context) => {
|
|
2490
2458
|
const retVal = (output || [])
|
|
2491
2459
|
.filter((e) => e != null)
|
|
2492
2460
|
.map((entry) => {
|
|
2493
2461
|
if (entry === null) {
|
|
2494
2462
|
return null;
|
|
2495
2463
|
}
|
|
2496
|
-
return
|
|
2464
|
+
return de_Action(entry, context);
|
|
2497
2465
|
});
|
|
2498
2466
|
return retVal;
|
|
2499
2467
|
};
|
|
2500
|
-
const
|
|
2468
|
+
const de_AlarmAction = (output, context) => {
|
|
2501
2469
|
return {
|
|
2502
|
-
dynamoDB: output.dynamoDB != null ?
|
|
2503
|
-
dynamoDBv2: output.dynamoDBv2 != null ?
|
|
2504
|
-
firehose: output.firehose != null ?
|
|
2505
|
-
iotEvents: output.iotEvents != null ?
|
|
2506
|
-
iotSiteWise: output.iotSiteWise != null ?
|
|
2507
|
-
iotTopicPublish: output.iotTopicPublish != null
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
sns: output.sns != null ? deserializeAws_restJson1SNSTopicPublishAction(output.sns, context) : undefined,
|
|
2512
|
-
sqs: output.sqs != null ? deserializeAws_restJson1SqsAction(output.sqs, context) : undefined,
|
|
2470
|
+
dynamoDB: output.dynamoDB != null ? de_DynamoDBAction(output.dynamoDB, context) : undefined,
|
|
2471
|
+
dynamoDBv2: output.dynamoDBv2 != null ? de_DynamoDBv2Action(output.dynamoDBv2, context) : undefined,
|
|
2472
|
+
firehose: output.firehose != null ? de_FirehoseAction(output.firehose, context) : undefined,
|
|
2473
|
+
iotEvents: output.iotEvents != null ? de_IotEventsAction(output.iotEvents, context) : undefined,
|
|
2474
|
+
iotSiteWise: output.iotSiteWise != null ? de_IotSiteWiseAction(output.iotSiteWise, context) : undefined,
|
|
2475
|
+
iotTopicPublish: output.iotTopicPublish != null ? de_IotTopicPublishAction(output.iotTopicPublish, context) : undefined,
|
|
2476
|
+
lambda: output.lambda != null ? de_LambdaAction(output.lambda, context) : undefined,
|
|
2477
|
+
sns: output.sns != null ? de_SNSTopicPublishAction(output.sns, context) : undefined,
|
|
2478
|
+
sqs: output.sqs != null ? de_SqsAction(output.sqs, context) : undefined,
|
|
2513
2479
|
};
|
|
2514
2480
|
};
|
|
2515
|
-
const
|
|
2481
|
+
const de_AlarmActions = (output, context) => {
|
|
2516
2482
|
const retVal = (output || [])
|
|
2517
2483
|
.filter((e) => e != null)
|
|
2518
2484
|
.map((entry) => {
|
|
2519
2485
|
if (entry === null) {
|
|
2520
2486
|
return null;
|
|
2521
2487
|
}
|
|
2522
|
-
return
|
|
2488
|
+
return de_AlarmAction(entry, context);
|
|
2523
2489
|
});
|
|
2524
2490
|
return retVal;
|
|
2525
2491
|
};
|
|
2526
|
-
const
|
|
2492
|
+
const de_AlarmCapabilities = (output, context) => {
|
|
2527
2493
|
return {
|
|
2528
|
-
acknowledgeFlow: output.acknowledgeFlow != null
|
|
2529
|
-
? deserializeAws_restJson1AcknowledgeFlow(output.acknowledgeFlow, context)
|
|
2530
|
-
: undefined,
|
|
2494
|
+
acknowledgeFlow: output.acknowledgeFlow != null ? de_AcknowledgeFlow(output.acknowledgeFlow, context) : undefined,
|
|
2531
2495
|
initializationConfiguration: output.initializationConfiguration != null
|
|
2532
|
-
?
|
|
2496
|
+
? de_InitializationConfiguration(output.initializationConfiguration, context)
|
|
2533
2497
|
: undefined,
|
|
2534
2498
|
};
|
|
2535
2499
|
};
|
|
2536
|
-
const
|
|
2500
|
+
const de_AlarmEventActions = (output, context) => {
|
|
2537
2501
|
return {
|
|
2538
|
-
alarmActions: output.alarmActions != null ?
|
|
2502
|
+
alarmActions: output.alarmActions != null ? de_AlarmActions(output.alarmActions, context) : undefined,
|
|
2539
2503
|
};
|
|
2540
2504
|
};
|
|
2541
|
-
const
|
|
2505
|
+
const de_AlarmModelSummaries = (output, context) => {
|
|
2542
2506
|
const retVal = (output || [])
|
|
2543
2507
|
.filter((e) => e != null)
|
|
2544
2508
|
.map((entry) => {
|
|
2545
2509
|
if (entry === null) {
|
|
2546
2510
|
return null;
|
|
2547
2511
|
}
|
|
2548
|
-
return
|
|
2512
|
+
return de_AlarmModelSummary(entry, context);
|
|
2549
2513
|
});
|
|
2550
2514
|
return retVal;
|
|
2551
2515
|
};
|
|
2552
|
-
const
|
|
2516
|
+
const de_AlarmModelSummary = (output, context) => {
|
|
2553
2517
|
return {
|
|
2554
2518
|
alarmModelDescription: (0, smithy_client_1.expectString)(output.alarmModelDescription),
|
|
2555
2519
|
alarmModelName: (0, smithy_client_1.expectString)(output.alarmModelName),
|
|
@@ -2558,18 +2522,18 @@ const deserializeAws_restJson1AlarmModelSummary = (output, context) => {
|
|
|
2558
2522
|
: undefined,
|
|
2559
2523
|
};
|
|
2560
2524
|
};
|
|
2561
|
-
const
|
|
2525
|
+
const de_AlarmModelVersionSummaries = (output, context) => {
|
|
2562
2526
|
const retVal = (output || [])
|
|
2563
2527
|
.filter((e) => e != null)
|
|
2564
2528
|
.map((entry) => {
|
|
2565
2529
|
if (entry === null) {
|
|
2566
2530
|
return null;
|
|
2567
2531
|
}
|
|
2568
|
-
return
|
|
2532
|
+
return de_AlarmModelVersionSummary(entry, context);
|
|
2569
2533
|
});
|
|
2570
2534
|
return retVal;
|
|
2571
2535
|
};
|
|
2572
|
-
const
|
|
2536
|
+
const de_AlarmModelVersionSummary = (output, context) => {
|
|
2573
2537
|
return {
|
|
2574
2538
|
alarmModelArn: (0, smithy_client_1.expectString)(output.alarmModelArn),
|
|
2575
2539
|
alarmModelName: (0, smithy_client_1.expectString)(output.alarmModelName),
|
|
@@ -2585,67 +2549,65 @@ const deserializeAws_restJson1AlarmModelVersionSummary = (output, context) => {
|
|
|
2585
2549
|
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
2586
2550
|
};
|
|
2587
2551
|
};
|
|
2588
|
-
const
|
|
2552
|
+
const de_AlarmNotification = (output, context) => {
|
|
2589
2553
|
return {
|
|
2590
|
-
notificationActions: output.notificationActions != null
|
|
2591
|
-
? deserializeAws_restJson1NotificationActions(output.notificationActions, context)
|
|
2592
|
-
: undefined,
|
|
2554
|
+
notificationActions: output.notificationActions != null ? de_NotificationActions(output.notificationActions, context) : undefined,
|
|
2593
2555
|
};
|
|
2594
2556
|
};
|
|
2595
|
-
const
|
|
2557
|
+
const de_AlarmRule = (output, context) => {
|
|
2596
2558
|
return {
|
|
2597
|
-
simpleRule: output.simpleRule != null ?
|
|
2559
|
+
simpleRule: output.simpleRule != null ? de_SimpleRule(output.simpleRule, context) : undefined,
|
|
2598
2560
|
};
|
|
2599
2561
|
};
|
|
2600
|
-
const
|
|
2562
|
+
const de_AnalysisResult = (output, context) => {
|
|
2601
2563
|
return {
|
|
2602
2564
|
level: (0, smithy_client_1.expectString)(output.level),
|
|
2603
|
-
locations: output.locations != null ?
|
|
2565
|
+
locations: output.locations != null ? de_AnalysisResultLocations(output.locations, context) : undefined,
|
|
2604
2566
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
2605
2567
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2606
2568
|
};
|
|
2607
2569
|
};
|
|
2608
|
-
const
|
|
2570
|
+
const de_AnalysisResultLocation = (output, context) => {
|
|
2609
2571
|
return {
|
|
2610
2572
|
path: (0, smithy_client_1.expectString)(output.path),
|
|
2611
2573
|
};
|
|
2612
2574
|
};
|
|
2613
|
-
const
|
|
2575
|
+
const de_AnalysisResultLocations = (output, context) => {
|
|
2614
2576
|
const retVal = (output || [])
|
|
2615
2577
|
.filter((e) => e != null)
|
|
2616
2578
|
.map((entry) => {
|
|
2617
2579
|
if (entry === null) {
|
|
2618
2580
|
return null;
|
|
2619
2581
|
}
|
|
2620
|
-
return
|
|
2582
|
+
return de_AnalysisResultLocation(entry, context);
|
|
2621
2583
|
});
|
|
2622
2584
|
return retVal;
|
|
2623
2585
|
};
|
|
2624
|
-
const
|
|
2586
|
+
const de_AnalysisResults = (output, context) => {
|
|
2625
2587
|
const retVal = (output || [])
|
|
2626
2588
|
.filter((e) => e != null)
|
|
2627
2589
|
.map((entry) => {
|
|
2628
2590
|
if (entry === null) {
|
|
2629
2591
|
return null;
|
|
2630
2592
|
}
|
|
2631
|
-
return
|
|
2593
|
+
return de_AnalysisResult(entry, context);
|
|
2632
2594
|
});
|
|
2633
2595
|
return retVal;
|
|
2634
2596
|
};
|
|
2635
|
-
const
|
|
2597
|
+
const de_AssetPropertyTimestamp = (output, context) => {
|
|
2636
2598
|
return {
|
|
2637
2599
|
offsetInNanos: (0, smithy_client_1.expectString)(output.offsetInNanos),
|
|
2638
2600
|
timeInSeconds: (0, smithy_client_1.expectString)(output.timeInSeconds),
|
|
2639
2601
|
};
|
|
2640
2602
|
};
|
|
2641
|
-
const
|
|
2603
|
+
const de_AssetPropertyValue = (output, context) => {
|
|
2642
2604
|
return {
|
|
2643
2605
|
quality: (0, smithy_client_1.expectString)(output.quality),
|
|
2644
|
-
timestamp: output.timestamp != null ?
|
|
2645
|
-
value: output.value != null ?
|
|
2606
|
+
timestamp: output.timestamp != null ? de_AssetPropertyTimestamp(output.timestamp, context) : undefined,
|
|
2607
|
+
value: output.value != null ? de_AssetPropertyVariant(output.value, context) : undefined,
|
|
2646
2608
|
};
|
|
2647
2609
|
};
|
|
2648
|
-
const
|
|
2610
|
+
const de_AssetPropertyVariant = (output, context) => {
|
|
2649
2611
|
return {
|
|
2650
2612
|
booleanValue: (0, smithy_client_1.expectString)(output.booleanValue),
|
|
2651
2613
|
doubleValue: (0, smithy_client_1.expectString)(output.doubleValue),
|
|
@@ -2653,55 +2615,55 @@ const deserializeAws_restJson1AssetPropertyVariant = (output, context) => {
|
|
|
2653
2615
|
stringValue: (0, smithy_client_1.expectString)(output.stringValue),
|
|
2654
2616
|
};
|
|
2655
2617
|
};
|
|
2656
|
-
const
|
|
2618
|
+
const de_Attribute = (output, context) => {
|
|
2657
2619
|
return {
|
|
2658
2620
|
jsonPath: (0, smithy_client_1.expectString)(output.jsonPath),
|
|
2659
2621
|
};
|
|
2660
2622
|
};
|
|
2661
|
-
const
|
|
2623
|
+
const de_Attributes = (output, context) => {
|
|
2662
2624
|
const retVal = (output || [])
|
|
2663
2625
|
.filter((e) => e != null)
|
|
2664
2626
|
.map((entry) => {
|
|
2665
2627
|
if (entry === null) {
|
|
2666
2628
|
return null;
|
|
2667
2629
|
}
|
|
2668
|
-
return
|
|
2630
|
+
return de_Attribute(entry, context);
|
|
2669
2631
|
});
|
|
2670
2632
|
return retVal;
|
|
2671
2633
|
};
|
|
2672
|
-
const
|
|
2634
|
+
const de_ClearTimerAction = (output, context) => {
|
|
2673
2635
|
return {
|
|
2674
2636
|
timerName: (0, smithy_client_1.expectString)(output.timerName),
|
|
2675
2637
|
};
|
|
2676
2638
|
};
|
|
2677
|
-
const
|
|
2639
|
+
const de_DetectorDebugOption = (output, context) => {
|
|
2678
2640
|
return {
|
|
2679
2641
|
detectorModelName: (0, smithy_client_1.expectString)(output.detectorModelName),
|
|
2680
2642
|
keyValue: (0, smithy_client_1.expectString)(output.keyValue),
|
|
2681
2643
|
};
|
|
2682
2644
|
};
|
|
2683
|
-
const
|
|
2645
|
+
const de_DetectorDebugOptions = (output, context) => {
|
|
2684
2646
|
const retVal = (output || [])
|
|
2685
2647
|
.filter((e) => e != null)
|
|
2686
2648
|
.map((entry) => {
|
|
2687
2649
|
if (entry === null) {
|
|
2688
2650
|
return null;
|
|
2689
2651
|
}
|
|
2690
|
-
return
|
|
2652
|
+
return de_DetectorDebugOption(entry, context);
|
|
2691
2653
|
});
|
|
2692
2654
|
return retVal;
|
|
2693
2655
|
};
|
|
2694
|
-
const
|
|
2656
|
+
const de_DetectorModel = (output, context) => {
|
|
2695
2657
|
return {
|
|
2696
2658
|
detectorModelConfiguration: output.detectorModelConfiguration != null
|
|
2697
|
-
?
|
|
2659
|
+
? de_DetectorModelConfiguration(output.detectorModelConfiguration, context)
|
|
2698
2660
|
: undefined,
|
|
2699
2661
|
detectorModelDefinition: output.detectorModelDefinition != null
|
|
2700
|
-
?
|
|
2662
|
+
? de_DetectorModelDefinition(output.detectorModelDefinition, context)
|
|
2701
2663
|
: undefined,
|
|
2702
2664
|
};
|
|
2703
2665
|
};
|
|
2704
|
-
const
|
|
2666
|
+
const de_DetectorModelConfiguration = (output, context) => {
|
|
2705
2667
|
return {
|
|
2706
2668
|
creationTime: output.creationTime != null
|
|
2707
2669
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
@@ -2719,24 +2681,24 @@ const deserializeAws_restJson1DetectorModelConfiguration = (output, context) =>
|
|
|
2719
2681
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2720
2682
|
};
|
|
2721
2683
|
};
|
|
2722
|
-
const
|
|
2684
|
+
const de_DetectorModelDefinition = (output, context) => {
|
|
2723
2685
|
return {
|
|
2724
2686
|
initialStateName: (0, smithy_client_1.expectString)(output.initialStateName),
|
|
2725
|
-
states: output.states != null ?
|
|
2687
|
+
states: output.states != null ? de_States(output.states, context) : undefined,
|
|
2726
2688
|
};
|
|
2727
2689
|
};
|
|
2728
|
-
const
|
|
2690
|
+
const de_DetectorModelSummaries = (output, context) => {
|
|
2729
2691
|
const retVal = (output || [])
|
|
2730
2692
|
.filter((e) => e != null)
|
|
2731
2693
|
.map((entry) => {
|
|
2732
2694
|
if (entry === null) {
|
|
2733
2695
|
return null;
|
|
2734
2696
|
}
|
|
2735
|
-
return
|
|
2697
|
+
return de_DetectorModelSummary(entry, context);
|
|
2736
2698
|
});
|
|
2737
2699
|
return retVal;
|
|
2738
2700
|
};
|
|
2739
|
-
const
|
|
2701
|
+
const de_DetectorModelSummary = (output, context) => {
|
|
2740
2702
|
return {
|
|
2741
2703
|
creationTime: output.creationTime != null
|
|
2742
2704
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
@@ -2745,18 +2707,18 @@ const deserializeAws_restJson1DetectorModelSummary = (output, context) => {
|
|
|
2745
2707
|
detectorModelName: (0, smithy_client_1.expectString)(output.detectorModelName),
|
|
2746
2708
|
};
|
|
2747
2709
|
};
|
|
2748
|
-
const
|
|
2710
|
+
const de_DetectorModelVersionSummaries = (output, context) => {
|
|
2749
2711
|
const retVal = (output || [])
|
|
2750
2712
|
.filter((e) => e != null)
|
|
2751
2713
|
.map((entry) => {
|
|
2752
2714
|
if (entry === null) {
|
|
2753
2715
|
return null;
|
|
2754
2716
|
}
|
|
2755
|
-
return
|
|
2717
|
+
return de_DetectorModelVersionSummary(entry, context);
|
|
2756
2718
|
});
|
|
2757
2719
|
return retVal;
|
|
2758
2720
|
};
|
|
2759
|
-
const
|
|
2721
|
+
const de_DetectorModelVersionSummary = (output, context) => {
|
|
2760
2722
|
return {
|
|
2761
2723
|
creationTime: output.creationTime != null
|
|
2762
2724
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
@@ -2772,13 +2734,13 @@ const deserializeAws_restJson1DetectorModelVersionSummary = (output, context) =>
|
|
|
2772
2734
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2773
2735
|
};
|
|
2774
2736
|
};
|
|
2775
|
-
const
|
|
2737
|
+
const de_DynamoDBAction = (output, context) => {
|
|
2776
2738
|
return {
|
|
2777
2739
|
hashKeyField: (0, smithy_client_1.expectString)(output.hashKeyField),
|
|
2778
2740
|
hashKeyType: (0, smithy_client_1.expectString)(output.hashKeyType),
|
|
2779
2741
|
hashKeyValue: (0, smithy_client_1.expectString)(output.hashKeyValue),
|
|
2780
2742
|
operation: (0, smithy_client_1.expectString)(output.operation),
|
|
2781
|
-
payload: output.payload != null ?
|
|
2743
|
+
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2782
2744
|
payloadField: (0, smithy_client_1.expectString)(output.payloadField),
|
|
2783
2745
|
rangeKeyField: (0, smithy_client_1.expectString)(output.rangeKeyField),
|
|
2784
2746
|
rangeKeyType: (0, smithy_client_1.expectString)(output.rangeKeyType),
|
|
@@ -2786,82 +2748,78 @@ const deserializeAws_restJson1DynamoDBAction = (output, context) => {
|
|
|
2786
2748
|
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
2787
2749
|
};
|
|
2788
2750
|
};
|
|
2789
|
-
const
|
|
2751
|
+
const de_DynamoDBv2Action = (output, context) => {
|
|
2790
2752
|
return {
|
|
2791
|
-
payload: output.payload != null ?
|
|
2753
|
+
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2792
2754
|
tableName: (0, smithy_client_1.expectString)(output.tableName),
|
|
2793
2755
|
};
|
|
2794
2756
|
};
|
|
2795
|
-
const
|
|
2757
|
+
const de_EmailConfiguration = (output, context) => {
|
|
2796
2758
|
return {
|
|
2797
|
-
content: output.content != null ?
|
|
2759
|
+
content: output.content != null ? de_EmailContent(output.content, context) : undefined,
|
|
2798
2760
|
from: (0, smithy_client_1.expectString)(output.from),
|
|
2799
|
-
recipients: output.recipients != null ?
|
|
2761
|
+
recipients: output.recipients != null ? de_EmailRecipients(output.recipients, context) : undefined,
|
|
2800
2762
|
};
|
|
2801
2763
|
};
|
|
2802
|
-
const
|
|
2764
|
+
const de_EmailConfigurations = (output, context) => {
|
|
2803
2765
|
const retVal = (output || [])
|
|
2804
2766
|
.filter((e) => e != null)
|
|
2805
2767
|
.map((entry) => {
|
|
2806
2768
|
if (entry === null) {
|
|
2807
2769
|
return null;
|
|
2808
2770
|
}
|
|
2809
|
-
return
|
|
2771
|
+
return de_EmailConfiguration(entry, context);
|
|
2810
2772
|
});
|
|
2811
2773
|
return retVal;
|
|
2812
2774
|
};
|
|
2813
|
-
const
|
|
2775
|
+
const de_EmailContent = (output, context) => {
|
|
2814
2776
|
return {
|
|
2815
2777
|
additionalMessage: (0, smithy_client_1.expectString)(output.additionalMessage),
|
|
2816
2778
|
subject: (0, smithy_client_1.expectString)(output.subject),
|
|
2817
2779
|
};
|
|
2818
2780
|
};
|
|
2819
|
-
const
|
|
2781
|
+
const de_EmailRecipients = (output, context) => {
|
|
2820
2782
|
return {
|
|
2821
|
-
to: output.to != null ?
|
|
2783
|
+
to: output.to != null ? de_RecipientDetails(output.to, context) : undefined,
|
|
2822
2784
|
};
|
|
2823
2785
|
};
|
|
2824
|
-
const
|
|
2786
|
+
const de_Event = (output, context) => {
|
|
2825
2787
|
return {
|
|
2826
|
-
actions: output.actions != null ?
|
|
2788
|
+
actions: output.actions != null ? de_Actions(output.actions, context) : undefined,
|
|
2827
2789
|
condition: (0, smithy_client_1.expectString)(output.condition),
|
|
2828
2790
|
eventName: (0, smithy_client_1.expectString)(output.eventName),
|
|
2829
2791
|
};
|
|
2830
2792
|
};
|
|
2831
|
-
const
|
|
2793
|
+
const de_Events = (output, context) => {
|
|
2832
2794
|
const retVal = (output || [])
|
|
2833
2795
|
.filter((e) => e != null)
|
|
2834
2796
|
.map((entry) => {
|
|
2835
2797
|
if (entry === null) {
|
|
2836
2798
|
return null;
|
|
2837
2799
|
}
|
|
2838
|
-
return
|
|
2800
|
+
return de_Event(entry, context);
|
|
2839
2801
|
});
|
|
2840
2802
|
return retVal;
|
|
2841
2803
|
};
|
|
2842
|
-
const
|
|
2804
|
+
const de_FirehoseAction = (output, context) => {
|
|
2843
2805
|
return {
|
|
2844
2806
|
deliveryStreamName: (0, smithy_client_1.expectString)(output.deliveryStreamName),
|
|
2845
|
-
payload: output.payload != null ?
|
|
2807
|
+
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2846
2808
|
separator: (0, smithy_client_1.expectString)(output.separator),
|
|
2847
2809
|
};
|
|
2848
2810
|
};
|
|
2849
|
-
const
|
|
2811
|
+
const de_InitializationConfiguration = (output, context) => {
|
|
2850
2812
|
return {
|
|
2851
2813
|
disabledOnInitialization: (0, smithy_client_1.expectBoolean)(output.disabledOnInitialization),
|
|
2852
2814
|
};
|
|
2853
2815
|
};
|
|
2854
|
-
const
|
|
2816
|
+
const de_Input = (output, context) => {
|
|
2855
2817
|
return {
|
|
2856
|
-
inputConfiguration: output.inputConfiguration != null
|
|
2857
|
-
|
|
2858
|
-
: undefined,
|
|
2859
|
-
inputDefinition: output.inputDefinition != null
|
|
2860
|
-
? deserializeAws_restJson1InputDefinition(output.inputDefinition, context)
|
|
2861
|
-
: undefined,
|
|
2818
|
+
inputConfiguration: output.inputConfiguration != null ? de_InputConfiguration(output.inputConfiguration, context) : undefined,
|
|
2819
|
+
inputDefinition: output.inputDefinition != null ? de_InputDefinition(output.inputDefinition, context) : undefined,
|
|
2862
2820
|
};
|
|
2863
2821
|
};
|
|
2864
|
-
const
|
|
2822
|
+
const de_InputConfiguration = (output, context) => {
|
|
2865
2823
|
return {
|
|
2866
2824
|
creationTime: output.creationTime != null
|
|
2867
2825
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
@@ -2875,23 +2833,23 @@ const deserializeAws_restJson1InputConfiguration = (output, context) => {
|
|
|
2875
2833
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2876
2834
|
};
|
|
2877
2835
|
};
|
|
2878
|
-
const
|
|
2836
|
+
const de_InputDefinition = (output, context) => {
|
|
2879
2837
|
return {
|
|
2880
|
-
attributes: output.attributes != null ?
|
|
2838
|
+
attributes: output.attributes != null ? de_Attributes(output.attributes, context) : undefined,
|
|
2881
2839
|
};
|
|
2882
2840
|
};
|
|
2883
|
-
const
|
|
2841
|
+
const de_InputSummaries = (output, context) => {
|
|
2884
2842
|
const retVal = (output || [])
|
|
2885
2843
|
.filter((e) => e != null)
|
|
2886
2844
|
.map((entry) => {
|
|
2887
2845
|
if (entry === null) {
|
|
2888
2846
|
return null;
|
|
2889
2847
|
}
|
|
2890
|
-
return
|
|
2848
|
+
return de_InputSummary(entry, context);
|
|
2891
2849
|
});
|
|
2892
2850
|
return retVal;
|
|
2893
2851
|
};
|
|
2894
|
-
const
|
|
2852
|
+
const de_InputSummary = (output, context) => {
|
|
2895
2853
|
return {
|
|
2896
2854
|
creationTime: output.creationTime != null
|
|
2897
2855
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
@@ -2905,243 +2863,233 @@ const deserializeAws_restJson1InputSummary = (output, context) => {
|
|
|
2905
2863
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2906
2864
|
};
|
|
2907
2865
|
};
|
|
2908
|
-
const
|
|
2866
|
+
const de_IotEventsAction = (output, context) => {
|
|
2909
2867
|
return {
|
|
2910
2868
|
inputName: (0, smithy_client_1.expectString)(output.inputName),
|
|
2911
|
-
payload: output.payload != null ?
|
|
2869
|
+
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2912
2870
|
};
|
|
2913
2871
|
};
|
|
2914
|
-
const
|
|
2872
|
+
const de_IotSiteWiseAction = (output, context) => {
|
|
2915
2873
|
return {
|
|
2916
2874
|
assetId: (0, smithy_client_1.expectString)(output.assetId),
|
|
2917
2875
|
entryId: (0, smithy_client_1.expectString)(output.entryId),
|
|
2918
2876
|
propertyAlias: (0, smithy_client_1.expectString)(output.propertyAlias),
|
|
2919
2877
|
propertyId: (0, smithy_client_1.expectString)(output.propertyId),
|
|
2920
|
-
propertyValue: output.propertyValue != null
|
|
2921
|
-
? deserializeAws_restJson1AssetPropertyValue(output.propertyValue, context)
|
|
2922
|
-
: undefined,
|
|
2878
|
+
propertyValue: output.propertyValue != null ? de_AssetPropertyValue(output.propertyValue, context) : undefined,
|
|
2923
2879
|
};
|
|
2924
2880
|
};
|
|
2925
|
-
const
|
|
2881
|
+
const de_IotTopicPublishAction = (output, context) => {
|
|
2926
2882
|
return {
|
|
2927
2883
|
mqttTopic: (0, smithy_client_1.expectString)(output.mqttTopic),
|
|
2928
|
-
payload: output.payload != null ?
|
|
2884
|
+
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2929
2885
|
};
|
|
2930
2886
|
};
|
|
2931
|
-
const
|
|
2887
|
+
const de_LambdaAction = (output, context) => {
|
|
2932
2888
|
return {
|
|
2933
2889
|
functionArn: (0, smithy_client_1.expectString)(output.functionArn),
|
|
2934
|
-
payload: output.payload != null ?
|
|
2890
|
+
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
2935
2891
|
};
|
|
2936
2892
|
};
|
|
2937
|
-
const
|
|
2893
|
+
const de_LoggingOptions = (output, context) => {
|
|
2938
2894
|
return {
|
|
2939
|
-
detectorDebugOptions: output.detectorDebugOptions != null
|
|
2940
|
-
? deserializeAws_restJson1DetectorDebugOptions(output.detectorDebugOptions, context)
|
|
2941
|
-
: undefined,
|
|
2895
|
+
detectorDebugOptions: output.detectorDebugOptions != null ? de_DetectorDebugOptions(output.detectorDebugOptions, context) : undefined,
|
|
2942
2896
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2943
2897
|
level: (0, smithy_client_1.expectString)(output.level),
|
|
2944
2898
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
2945
2899
|
};
|
|
2946
2900
|
};
|
|
2947
|
-
const
|
|
2901
|
+
const de_NotificationAction = (output, context) => {
|
|
2948
2902
|
return {
|
|
2949
|
-
action: output.action != null ?
|
|
2950
|
-
emailConfigurations: output.emailConfigurations != null
|
|
2951
|
-
|
|
2952
|
-
: undefined,
|
|
2953
|
-
smsConfigurations: output.smsConfigurations != null
|
|
2954
|
-
? deserializeAws_restJson1SMSConfigurations(output.smsConfigurations, context)
|
|
2955
|
-
: undefined,
|
|
2903
|
+
action: output.action != null ? de_NotificationTargetActions(output.action, context) : undefined,
|
|
2904
|
+
emailConfigurations: output.emailConfigurations != null ? de_EmailConfigurations(output.emailConfigurations, context) : undefined,
|
|
2905
|
+
smsConfigurations: output.smsConfigurations != null ? de_SMSConfigurations(output.smsConfigurations, context) : undefined,
|
|
2956
2906
|
};
|
|
2957
2907
|
};
|
|
2958
|
-
const
|
|
2908
|
+
const de_NotificationActions = (output, context) => {
|
|
2959
2909
|
const retVal = (output || [])
|
|
2960
2910
|
.filter((e) => e != null)
|
|
2961
2911
|
.map((entry) => {
|
|
2962
2912
|
if (entry === null) {
|
|
2963
2913
|
return null;
|
|
2964
2914
|
}
|
|
2965
|
-
return
|
|
2915
|
+
return de_NotificationAction(entry, context);
|
|
2966
2916
|
});
|
|
2967
2917
|
return retVal;
|
|
2968
2918
|
};
|
|
2969
|
-
const
|
|
2919
|
+
const de_NotificationTargetActions = (output, context) => {
|
|
2970
2920
|
return {
|
|
2971
|
-
lambdaAction: output.lambdaAction != null ?
|
|
2921
|
+
lambdaAction: output.lambdaAction != null ? de_LambdaAction(output.lambdaAction, context) : undefined,
|
|
2972
2922
|
};
|
|
2973
2923
|
};
|
|
2974
|
-
const
|
|
2924
|
+
const de_OnEnterLifecycle = (output, context) => {
|
|
2975
2925
|
return {
|
|
2976
|
-
events: output.events != null ?
|
|
2926
|
+
events: output.events != null ? de_Events(output.events, context) : undefined,
|
|
2977
2927
|
};
|
|
2978
2928
|
};
|
|
2979
|
-
const
|
|
2929
|
+
const de_OnExitLifecycle = (output, context) => {
|
|
2980
2930
|
return {
|
|
2981
|
-
events: output.events != null ?
|
|
2931
|
+
events: output.events != null ? de_Events(output.events, context) : undefined,
|
|
2982
2932
|
};
|
|
2983
2933
|
};
|
|
2984
|
-
const
|
|
2934
|
+
const de_OnInputLifecycle = (output, context) => {
|
|
2985
2935
|
return {
|
|
2986
|
-
events: output.events != null ?
|
|
2987
|
-
transitionEvents: output.transitionEvents != null
|
|
2988
|
-
? deserializeAws_restJson1TransitionEvents(output.transitionEvents, context)
|
|
2989
|
-
: undefined,
|
|
2936
|
+
events: output.events != null ? de_Events(output.events, context) : undefined,
|
|
2937
|
+
transitionEvents: output.transitionEvents != null ? de_TransitionEvents(output.transitionEvents, context) : undefined,
|
|
2990
2938
|
};
|
|
2991
2939
|
};
|
|
2992
|
-
const
|
|
2940
|
+
const de_Payload = (output, context) => {
|
|
2993
2941
|
return {
|
|
2994
2942
|
contentExpression: (0, smithy_client_1.expectString)(output.contentExpression),
|
|
2995
2943
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2996
2944
|
};
|
|
2997
2945
|
};
|
|
2998
|
-
const
|
|
2946
|
+
const de_RecipientDetail = (output, context) => {
|
|
2999
2947
|
return {
|
|
3000
|
-
ssoIdentity: output.ssoIdentity != null ?
|
|
2948
|
+
ssoIdentity: output.ssoIdentity != null ? de_SSOIdentity(output.ssoIdentity, context) : undefined,
|
|
3001
2949
|
};
|
|
3002
2950
|
};
|
|
3003
|
-
const
|
|
2951
|
+
const de_RecipientDetails = (output, context) => {
|
|
3004
2952
|
const retVal = (output || [])
|
|
3005
2953
|
.filter((e) => e != null)
|
|
3006
2954
|
.map((entry) => {
|
|
3007
2955
|
if (entry === null) {
|
|
3008
2956
|
return null;
|
|
3009
2957
|
}
|
|
3010
|
-
return
|
|
2958
|
+
return de_RecipientDetail(entry, context);
|
|
3011
2959
|
});
|
|
3012
2960
|
return retVal;
|
|
3013
2961
|
};
|
|
3014
|
-
const
|
|
2962
|
+
const de_ResetTimerAction = (output, context) => {
|
|
3015
2963
|
return {
|
|
3016
2964
|
timerName: (0, smithy_client_1.expectString)(output.timerName),
|
|
3017
2965
|
};
|
|
3018
2966
|
};
|
|
3019
|
-
const
|
|
2967
|
+
const de_RoutedResource = (output, context) => {
|
|
3020
2968
|
return {
|
|
3021
2969
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3022
2970
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
3023
2971
|
};
|
|
3024
2972
|
};
|
|
3025
|
-
const
|
|
2973
|
+
const de_RoutedResources = (output, context) => {
|
|
3026
2974
|
const retVal = (output || [])
|
|
3027
2975
|
.filter((e) => e != null)
|
|
3028
2976
|
.map((entry) => {
|
|
3029
2977
|
if (entry === null) {
|
|
3030
2978
|
return null;
|
|
3031
2979
|
}
|
|
3032
|
-
return
|
|
2980
|
+
return de_RoutedResource(entry, context);
|
|
3033
2981
|
});
|
|
3034
2982
|
return retVal;
|
|
3035
2983
|
};
|
|
3036
|
-
const
|
|
2984
|
+
const de_SetTimerAction = (output, context) => {
|
|
3037
2985
|
return {
|
|
3038
2986
|
durationExpression: (0, smithy_client_1.expectString)(output.durationExpression),
|
|
3039
2987
|
seconds: (0, smithy_client_1.expectInt32)(output.seconds),
|
|
3040
2988
|
timerName: (0, smithy_client_1.expectString)(output.timerName),
|
|
3041
2989
|
};
|
|
3042
2990
|
};
|
|
3043
|
-
const
|
|
2991
|
+
const de_SetVariableAction = (output, context) => {
|
|
3044
2992
|
return {
|
|
3045
2993
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
3046
2994
|
variableName: (0, smithy_client_1.expectString)(output.variableName),
|
|
3047
2995
|
};
|
|
3048
2996
|
};
|
|
3049
|
-
const
|
|
2997
|
+
const de_SimpleRule = (output, context) => {
|
|
3050
2998
|
return {
|
|
3051
2999
|
comparisonOperator: (0, smithy_client_1.expectString)(output.comparisonOperator),
|
|
3052
3000
|
inputProperty: (0, smithy_client_1.expectString)(output.inputProperty),
|
|
3053
3001
|
threshold: (0, smithy_client_1.expectString)(output.threshold),
|
|
3054
3002
|
};
|
|
3055
3003
|
};
|
|
3056
|
-
const
|
|
3004
|
+
const de_SMSConfiguration = (output, context) => {
|
|
3057
3005
|
return {
|
|
3058
3006
|
additionalMessage: (0, smithy_client_1.expectString)(output.additionalMessage),
|
|
3059
|
-
recipients: output.recipients != null ?
|
|
3007
|
+
recipients: output.recipients != null ? de_RecipientDetails(output.recipients, context) : undefined,
|
|
3060
3008
|
senderId: (0, smithy_client_1.expectString)(output.senderId),
|
|
3061
3009
|
};
|
|
3062
3010
|
};
|
|
3063
|
-
const
|
|
3011
|
+
const de_SMSConfigurations = (output, context) => {
|
|
3064
3012
|
const retVal = (output || [])
|
|
3065
3013
|
.filter((e) => e != null)
|
|
3066
3014
|
.map((entry) => {
|
|
3067
3015
|
if (entry === null) {
|
|
3068
3016
|
return null;
|
|
3069
3017
|
}
|
|
3070
|
-
return
|
|
3018
|
+
return de_SMSConfiguration(entry, context);
|
|
3071
3019
|
});
|
|
3072
3020
|
return retVal;
|
|
3073
3021
|
};
|
|
3074
|
-
const
|
|
3022
|
+
const de_SNSTopicPublishAction = (output, context) => {
|
|
3075
3023
|
return {
|
|
3076
|
-
payload: output.payload != null ?
|
|
3024
|
+
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
3077
3025
|
targetArn: (0, smithy_client_1.expectString)(output.targetArn),
|
|
3078
3026
|
};
|
|
3079
3027
|
};
|
|
3080
|
-
const
|
|
3028
|
+
const de_SqsAction = (output, context) => {
|
|
3081
3029
|
return {
|
|
3082
|
-
payload: output.payload != null ?
|
|
3030
|
+
payload: output.payload != null ? de_Payload(output.payload, context) : undefined,
|
|
3083
3031
|
queueUrl: (0, smithy_client_1.expectString)(output.queueUrl),
|
|
3084
3032
|
useBase64: (0, smithy_client_1.expectBoolean)(output.useBase64),
|
|
3085
3033
|
};
|
|
3086
3034
|
};
|
|
3087
|
-
const
|
|
3035
|
+
const de_SSOIdentity = (output, context) => {
|
|
3088
3036
|
return {
|
|
3089
3037
|
identityStoreId: (0, smithy_client_1.expectString)(output.identityStoreId),
|
|
3090
3038
|
userId: (0, smithy_client_1.expectString)(output.userId),
|
|
3091
3039
|
};
|
|
3092
3040
|
};
|
|
3093
|
-
const
|
|
3041
|
+
const de_State = (output, context) => {
|
|
3094
3042
|
return {
|
|
3095
|
-
onEnter: output.onEnter != null ?
|
|
3096
|
-
onExit: output.onExit != null ?
|
|
3097
|
-
onInput: output.onInput != null ?
|
|
3043
|
+
onEnter: output.onEnter != null ? de_OnEnterLifecycle(output.onEnter, context) : undefined,
|
|
3044
|
+
onExit: output.onExit != null ? de_OnExitLifecycle(output.onExit, context) : undefined,
|
|
3045
|
+
onInput: output.onInput != null ? de_OnInputLifecycle(output.onInput, context) : undefined,
|
|
3098
3046
|
stateName: (0, smithy_client_1.expectString)(output.stateName),
|
|
3099
3047
|
};
|
|
3100
3048
|
};
|
|
3101
|
-
const
|
|
3049
|
+
const de_States = (output, context) => {
|
|
3102
3050
|
const retVal = (output || [])
|
|
3103
3051
|
.filter((e) => e != null)
|
|
3104
3052
|
.map((entry) => {
|
|
3105
3053
|
if (entry === null) {
|
|
3106
3054
|
return null;
|
|
3107
3055
|
}
|
|
3108
|
-
return
|
|
3056
|
+
return de_State(entry, context);
|
|
3109
3057
|
});
|
|
3110
3058
|
return retVal;
|
|
3111
3059
|
};
|
|
3112
|
-
const
|
|
3060
|
+
const de_Tag = (output, context) => {
|
|
3113
3061
|
return {
|
|
3114
3062
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
3115
3063
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
3116
3064
|
};
|
|
3117
3065
|
};
|
|
3118
|
-
const
|
|
3066
|
+
const de_Tags = (output, context) => {
|
|
3119
3067
|
const retVal = (output || [])
|
|
3120
3068
|
.filter((e) => e != null)
|
|
3121
3069
|
.map((entry) => {
|
|
3122
3070
|
if (entry === null) {
|
|
3123
3071
|
return null;
|
|
3124
3072
|
}
|
|
3125
|
-
return
|
|
3073
|
+
return de_Tag(entry, context);
|
|
3126
3074
|
});
|
|
3127
3075
|
return retVal;
|
|
3128
3076
|
};
|
|
3129
|
-
const
|
|
3077
|
+
const de_TransitionEvent = (output, context) => {
|
|
3130
3078
|
return {
|
|
3131
|
-
actions: output.actions != null ?
|
|
3079
|
+
actions: output.actions != null ? de_Actions(output.actions, context) : undefined,
|
|
3132
3080
|
condition: (0, smithy_client_1.expectString)(output.condition),
|
|
3133
3081
|
eventName: (0, smithy_client_1.expectString)(output.eventName),
|
|
3134
3082
|
nextState: (0, smithy_client_1.expectString)(output.nextState),
|
|
3135
3083
|
};
|
|
3136
3084
|
};
|
|
3137
|
-
const
|
|
3085
|
+
const de_TransitionEvents = (output, context) => {
|
|
3138
3086
|
const retVal = (output || [])
|
|
3139
3087
|
.filter((e) => e != null)
|
|
3140
3088
|
.map((entry) => {
|
|
3141
3089
|
if (entry === null) {
|
|
3142
3090
|
return null;
|
|
3143
3091
|
}
|
|
3144
|
-
return
|
|
3092
|
+
return de_TransitionEvent(entry, context);
|
|
3145
3093
|
});
|
|
3146
3094
|
return retVal;
|
|
3147
3095
|
};
|