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