@aws-sdk/client-iotthingsgraph 3.312.0 → 3.316.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/IoTThingsGraph.js +39 -490
- package/dist-cjs/protocols/Aws_json1_1.js +269 -839
- package/dist-es/IoTThingsGraph.js +39 -490
- package/dist-es/protocols/Aws_json1_1.js +270 -840
- package/dist-types/IoTThingsGraph.d.ts +48 -227
- package/dist-types/ts3.4/IoTThingsGraph.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,149 +1,149 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { IoTThingsGraphServiceException as __BaseException } from "../models/IoTThingsGraphServiceException";
|
|
4
4
|
import { InternalFailureException, InvalidRequestException, LimitExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
export const se_AssociateEntityToThingCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("AssociateEntityToThing");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_CreateFlowTemplateCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("CreateFlowTemplate");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_CreateSystemInstanceCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("CreateSystemInstance");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_CreateSystemTemplateCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateSystemTemplate");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_DeleteFlowTemplateCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DeleteFlowTemplate");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_DeleteNamespaceCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("DeleteNamespace");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DeleteSystemInstanceCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("DeleteSystemInstance");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_DeleteSystemTemplateCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("DeleteSystemTemplate");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_DeploySystemInstanceCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("DeploySystemInstance");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_DeprecateFlowTemplateCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DeprecateFlowTemplate");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_DeprecateSystemTemplateCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DeprecateSystemTemplate");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_DescribeNamespaceCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("DescribeNamespace");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_DissociateEntityFromThingCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("DissociateEntityFromThing");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_GetEntitiesCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("GetEntities");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_GetFlowTemplateCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("GetFlowTemplate");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_GetFlowTemplateRevisionsCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("GetFlowTemplateRevisions");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_GetNamespaceDeletionStatusCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("GetNamespaceDeletionStatus");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const se_GetSystemInstanceCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("GetSystemInstance");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
export const se_GetSystemTemplateCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("GetSystemTemplate");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const se_GetSystemTemplateRevisionsCommand = async (input, context) => {
|
|
120
120
|
const headers = sharedHeaders("GetSystemTemplateRevisions");
|
|
121
121
|
let body;
|
|
122
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
123
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
124
|
};
|
|
125
125
|
export const se_GetUploadStatusCommand = async (input, context) => {
|
|
126
126
|
const headers = sharedHeaders("GetUploadStatus");
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
131
|
export const se_ListFlowExecutionMessagesCommand = async (input, context) => {
|
|
132
132
|
const headers = sharedHeaders("ListFlowExecutionMessages");
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
137
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
138
138
|
const headers = sharedHeaders("ListTagsForResource");
|
|
139
139
|
let body;
|
|
140
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify(_json(input));
|
|
141
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
142
|
};
|
|
143
143
|
export const se_SearchEntitiesCommand = async (input, context) => {
|
|
144
144
|
const headers = sharedHeaders("SearchEntities");
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
149
|
export const se_SearchFlowExecutionsCommand = async (input, context) => {
|
|
@@ -155,61 +155,61 @@ export const se_SearchFlowExecutionsCommand = async (input, context) => {
|
|
|
155
155
|
export const se_SearchFlowTemplatesCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("SearchFlowTemplates");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
export const se_SearchSystemInstancesCommand = async (input, context) => {
|
|
162
162
|
const headers = sharedHeaders("SearchSystemInstances");
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
167
|
export const se_SearchSystemTemplatesCommand = async (input, context) => {
|
|
168
168
|
const headers = sharedHeaders("SearchSystemTemplates");
|
|
169
169
|
let body;
|
|
170
|
-
body = JSON.stringify(
|
|
170
|
+
body = JSON.stringify(_json(input));
|
|
171
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
172
|
};
|
|
173
173
|
export const se_SearchThingsCommand = async (input, context) => {
|
|
174
174
|
const headers = sharedHeaders("SearchThings");
|
|
175
175
|
let body;
|
|
176
|
-
body = JSON.stringify(
|
|
176
|
+
body = JSON.stringify(_json(input));
|
|
177
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
178
|
};
|
|
179
179
|
export const se_TagResourceCommand = async (input, context) => {
|
|
180
180
|
const headers = sharedHeaders("TagResource");
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(_json(input));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
185
|
export const se_UndeploySystemInstanceCommand = async (input, context) => {
|
|
186
186
|
const headers = sharedHeaders("UndeploySystemInstance");
|
|
187
187
|
let body;
|
|
188
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify(_json(input));
|
|
189
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
190
|
};
|
|
191
191
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
192
192
|
const headers = sharedHeaders("UntagResource");
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(_json(input));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
197
|
export const se_UpdateFlowTemplateCommand = async (input, context) => {
|
|
198
198
|
const headers = sharedHeaders("UpdateFlowTemplate");
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(_json(input));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
203
|
export const se_UpdateSystemTemplateCommand = async (input, context) => {
|
|
204
204
|
const headers = sharedHeaders("UpdateSystemTemplate");
|
|
205
205
|
let body;
|
|
206
|
-
body = JSON.stringify(
|
|
206
|
+
body = JSON.stringify(_json(input));
|
|
207
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
208
|
};
|
|
209
209
|
export const se_UploadEntityDefinitionsCommand = async (input, context) => {
|
|
210
210
|
const headers = sharedHeaders("UploadEntityDefinitions");
|
|
211
211
|
let body;
|
|
212
|
-
body = JSON.stringify(
|
|
212
|
+
body = JSON.stringify(_json(input));
|
|
213
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
214
|
};
|
|
215
215
|
export const de_AssociateEntityToThingCommand = async (output, context) => {
|
|
@@ -218,12 +218,12 @@ export const de_AssociateEntityToThingCommand = async (output, context) => {
|
|
|
218
218
|
}
|
|
219
219
|
const data = await parseBody(output.body, context);
|
|
220
220
|
let contents = {};
|
|
221
|
-
contents =
|
|
221
|
+
contents = _json(data);
|
|
222
222
|
const response = {
|
|
223
223
|
$metadata: deserializeMetadata(output),
|
|
224
224
|
...contents,
|
|
225
225
|
};
|
|
226
|
-
return
|
|
226
|
+
return response;
|
|
227
227
|
};
|
|
228
228
|
const de_AssociateEntityToThingCommandError = async (output, context) => {
|
|
229
229
|
const parsedOutput = {
|
|
@@ -246,10 +246,9 @@ const de_AssociateEntityToThingCommandError = async (output, context) => {
|
|
|
246
246
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
247
247
|
default:
|
|
248
248
|
const parsedBody = parsedOutput.body;
|
|
249
|
-
throwDefaultError({
|
|
249
|
+
return throwDefaultError({
|
|
250
250
|
output,
|
|
251
251
|
parsedBody,
|
|
252
|
-
exceptionCtor: __BaseException,
|
|
253
252
|
errorCode,
|
|
254
253
|
});
|
|
255
254
|
}
|
|
@@ -265,7 +264,7 @@ export const de_CreateFlowTemplateCommand = async (output, context) => {
|
|
|
265
264
|
$metadata: deserializeMetadata(output),
|
|
266
265
|
...contents,
|
|
267
266
|
};
|
|
268
|
-
return
|
|
267
|
+
return response;
|
|
269
268
|
};
|
|
270
269
|
const de_CreateFlowTemplateCommandError = async (output, context) => {
|
|
271
270
|
const parsedOutput = {
|
|
@@ -291,10 +290,9 @@ const de_CreateFlowTemplateCommandError = async (output, context) => {
|
|
|
291
290
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
292
291
|
default:
|
|
293
292
|
const parsedBody = parsedOutput.body;
|
|
294
|
-
throwDefaultError({
|
|
293
|
+
return throwDefaultError({
|
|
295
294
|
output,
|
|
296
295
|
parsedBody,
|
|
297
|
-
exceptionCtor: __BaseException,
|
|
298
296
|
errorCode,
|
|
299
297
|
});
|
|
300
298
|
}
|
|
@@ -310,7 +308,7 @@ export const de_CreateSystemInstanceCommand = async (output, context) => {
|
|
|
310
308
|
$metadata: deserializeMetadata(output),
|
|
311
309
|
...contents,
|
|
312
310
|
};
|
|
313
|
-
return
|
|
311
|
+
return response;
|
|
314
312
|
};
|
|
315
313
|
const de_CreateSystemInstanceCommandError = async (output, context) => {
|
|
316
314
|
const parsedOutput = {
|
|
@@ -336,10 +334,9 @@ const de_CreateSystemInstanceCommandError = async (output, context) => {
|
|
|
336
334
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
337
335
|
default:
|
|
338
336
|
const parsedBody = parsedOutput.body;
|
|
339
|
-
throwDefaultError({
|
|
337
|
+
return throwDefaultError({
|
|
340
338
|
output,
|
|
341
339
|
parsedBody,
|
|
342
|
-
exceptionCtor: __BaseException,
|
|
343
340
|
errorCode,
|
|
344
341
|
});
|
|
345
342
|
}
|
|
@@ -355,7 +352,7 @@ export const de_CreateSystemTemplateCommand = async (output, context) => {
|
|
|
355
352
|
$metadata: deserializeMetadata(output),
|
|
356
353
|
...contents,
|
|
357
354
|
};
|
|
358
|
-
return
|
|
355
|
+
return response;
|
|
359
356
|
};
|
|
360
357
|
const de_CreateSystemTemplateCommandError = async (output, context) => {
|
|
361
358
|
const parsedOutput = {
|
|
@@ -378,10 +375,9 @@ const de_CreateSystemTemplateCommandError = async (output, context) => {
|
|
|
378
375
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
379
376
|
default:
|
|
380
377
|
const parsedBody = parsedOutput.body;
|
|
381
|
-
throwDefaultError({
|
|
378
|
+
return throwDefaultError({
|
|
382
379
|
output,
|
|
383
380
|
parsedBody,
|
|
384
|
-
exceptionCtor: __BaseException,
|
|
385
381
|
errorCode,
|
|
386
382
|
});
|
|
387
383
|
}
|
|
@@ -392,12 +388,12 @@ export const de_DeleteFlowTemplateCommand = async (output, context) => {
|
|
|
392
388
|
}
|
|
393
389
|
const data = await parseBody(output.body, context);
|
|
394
390
|
let contents = {};
|
|
395
|
-
contents =
|
|
391
|
+
contents = _json(data);
|
|
396
392
|
const response = {
|
|
397
393
|
$metadata: deserializeMetadata(output),
|
|
398
394
|
...contents,
|
|
399
395
|
};
|
|
400
|
-
return
|
|
396
|
+
return response;
|
|
401
397
|
};
|
|
402
398
|
const de_DeleteFlowTemplateCommandError = async (output, context) => {
|
|
403
399
|
const parsedOutput = {
|
|
@@ -420,10 +416,9 @@ const de_DeleteFlowTemplateCommandError = async (output, context) => {
|
|
|
420
416
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
421
417
|
default:
|
|
422
418
|
const parsedBody = parsedOutput.body;
|
|
423
|
-
throwDefaultError({
|
|
419
|
+
return throwDefaultError({
|
|
424
420
|
output,
|
|
425
421
|
parsedBody,
|
|
426
|
-
exceptionCtor: __BaseException,
|
|
427
422
|
errorCode,
|
|
428
423
|
});
|
|
429
424
|
}
|
|
@@ -434,12 +429,12 @@ export const de_DeleteNamespaceCommand = async (output, context) => {
|
|
|
434
429
|
}
|
|
435
430
|
const data = await parseBody(output.body, context);
|
|
436
431
|
let contents = {};
|
|
437
|
-
contents =
|
|
432
|
+
contents = _json(data);
|
|
438
433
|
const response = {
|
|
439
434
|
$metadata: deserializeMetadata(output),
|
|
440
435
|
...contents,
|
|
441
436
|
};
|
|
442
|
-
return
|
|
437
|
+
return response;
|
|
443
438
|
};
|
|
444
439
|
const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
445
440
|
const parsedOutput = {
|
|
@@ -456,10 +451,9 @@ const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
|
456
451
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
457
452
|
default:
|
|
458
453
|
const parsedBody = parsedOutput.body;
|
|
459
|
-
throwDefaultError({
|
|
454
|
+
return throwDefaultError({
|
|
460
455
|
output,
|
|
461
456
|
parsedBody,
|
|
462
|
-
exceptionCtor: __BaseException,
|
|
463
457
|
errorCode,
|
|
464
458
|
});
|
|
465
459
|
}
|
|
@@ -470,12 +464,12 @@ export const de_DeleteSystemInstanceCommand = async (output, context) => {
|
|
|
470
464
|
}
|
|
471
465
|
const data = await parseBody(output.body, context);
|
|
472
466
|
let contents = {};
|
|
473
|
-
contents =
|
|
467
|
+
contents = _json(data);
|
|
474
468
|
const response = {
|
|
475
469
|
$metadata: deserializeMetadata(output),
|
|
476
470
|
...contents,
|
|
477
471
|
};
|
|
478
|
-
return
|
|
472
|
+
return response;
|
|
479
473
|
};
|
|
480
474
|
const de_DeleteSystemInstanceCommandError = async (output, context) => {
|
|
481
475
|
const parsedOutput = {
|
|
@@ -498,10 +492,9 @@ const de_DeleteSystemInstanceCommandError = async (output, context) => {
|
|
|
498
492
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
499
493
|
default:
|
|
500
494
|
const parsedBody = parsedOutput.body;
|
|
501
|
-
throwDefaultError({
|
|
495
|
+
return throwDefaultError({
|
|
502
496
|
output,
|
|
503
497
|
parsedBody,
|
|
504
|
-
exceptionCtor: __BaseException,
|
|
505
498
|
errorCode,
|
|
506
499
|
});
|
|
507
500
|
}
|
|
@@ -512,12 +505,12 @@ export const de_DeleteSystemTemplateCommand = async (output, context) => {
|
|
|
512
505
|
}
|
|
513
506
|
const data = await parseBody(output.body, context);
|
|
514
507
|
let contents = {};
|
|
515
|
-
contents =
|
|
508
|
+
contents = _json(data);
|
|
516
509
|
const response = {
|
|
517
510
|
$metadata: deserializeMetadata(output),
|
|
518
511
|
...contents,
|
|
519
512
|
};
|
|
520
|
-
return
|
|
513
|
+
return response;
|
|
521
514
|
};
|
|
522
515
|
const de_DeleteSystemTemplateCommandError = async (output, context) => {
|
|
523
516
|
const parsedOutput = {
|
|
@@ -540,10 +533,9 @@ const de_DeleteSystemTemplateCommandError = async (output, context) => {
|
|
|
540
533
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
541
534
|
default:
|
|
542
535
|
const parsedBody = parsedOutput.body;
|
|
543
|
-
throwDefaultError({
|
|
536
|
+
return throwDefaultError({
|
|
544
537
|
output,
|
|
545
538
|
parsedBody,
|
|
546
|
-
exceptionCtor: __BaseException,
|
|
547
539
|
errorCode,
|
|
548
540
|
});
|
|
549
541
|
}
|
|
@@ -559,7 +551,7 @@ export const de_DeploySystemInstanceCommand = async (output, context) => {
|
|
|
559
551
|
$metadata: deserializeMetadata(output),
|
|
560
552
|
...contents,
|
|
561
553
|
};
|
|
562
|
-
return
|
|
554
|
+
return response;
|
|
563
555
|
};
|
|
564
556
|
const de_DeploySystemInstanceCommandError = async (output, context) => {
|
|
565
557
|
const parsedOutput = {
|
|
@@ -585,10 +577,9 @@ const de_DeploySystemInstanceCommandError = async (output, context) => {
|
|
|
585
577
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
586
578
|
default:
|
|
587
579
|
const parsedBody = parsedOutput.body;
|
|
588
|
-
throwDefaultError({
|
|
580
|
+
return throwDefaultError({
|
|
589
581
|
output,
|
|
590
582
|
parsedBody,
|
|
591
|
-
exceptionCtor: __BaseException,
|
|
592
583
|
errorCode,
|
|
593
584
|
});
|
|
594
585
|
}
|
|
@@ -599,12 +590,12 @@ export const de_DeprecateFlowTemplateCommand = async (output, context) => {
|
|
|
599
590
|
}
|
|
600
591
|
const data = await parseBody(output.body, context);
|
|
601
592
|
let contents = {};
|
|
602
|
-
contents =
|
|
593
|
+
contents = _json(data);
|
|
603
594
|
const response = {
|
|
604
595
|
$metadata: deserializeMetadata(output),
|
|
605
596
|
...contents,
|
|
606
597
|
};
|
|
607
|
-
return
|
|
598
|
+
return response;
|
|
608
599
|
};
|
|
609
600
|
const de_DeprecateFlowTemplateCommandError = async (output, context) => {
|
|
610
601
|
const parsedOutput = {
|
|
@@ -627,10 +618,9 @@ const de_DeprecateFlowTemplateCommandError = async (output, context) => {
|
|
|
627
618
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
628
619
|
default:
|
|
629
620
|
const parsedBody = parsedOutput.body;
|
|
630
|
-
throwDefaultError({
|
|
621
|
+
return throwDefaultError({
|
|
631
622
|
output,
|
|
632
623
|
parsedBody,
|
|
633
|
-
exceptionCtor: __BaseException,
|
|
634
624
|
errorCode,
|
|
635
625
|
});
|
|
636
626
|
}
|
|
@@ -641,12 +631,12 @@ export const de_DeprecateSystemTemplateCommand = async (output, context) => {
|
|
|
641
631
|
}
|
|
642
632
|
const data = await parseBody(output.body, context);
|
|
643
633
|
let contents = {};
|
|
644
|
-
contents =
|
|
634
|
+
contents = _json(data);
|
|
645
635
|
const response = {
|
|
646
636
|
$metadata: deserializeMetadata(output),
|
|
647
637
|
...contents,
|
|
648
638
|
};
|
|
649
|
-
return
|
|
639
|
+
return response;
|
|
650
640
|
};
|
|
651
641
|
const de_DeprecateSystemTemplateCommandError = async (output, context) => {
|
|
652
642
|
const parsedOutput = {
|
|
@@ -669,10 +659,9 @@ const de_DeprecateSystemTemplateCommandError = async (output, context) => {
|
|
|
669
659
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
670
660
|
default:
|
|
671
661
|
const parsedBody = parsedOutput.body;
|
|
672
|
-
throwDefaultError({
|
|
662
|
+
return throwDefaultError({
|
|
673
663
|
output,
|
|
674
664
|
parsedBody,
|
|
675
|
-
exceptionCtor: __BaseException,
|
|
676
665
|
errorCode,
|
|
677
666
|
});
|
|
678
667
|
}
|
|
@@ -683,12 +672,12 @@ export const de_DescribeNamespaceCommand = async (output, context) => {
|
|
|
683
672
|
}
|
|
684
673
|
const data = await parseBody(output.body, context);
|
|
685
674
|
let contents = {};
|
|
686
|
-
contents =
|
|
675
|
+
contents = _json(data);
|
|
687
676
|
const response = {
|
|
688
677
|
$metadata: deserializeMetadata(output),
|
|
689
678
|
...contents,
|
|
690
679
|
};
|
|
691
|
-
return
|
|
680
|
+
return response;
|
|
692
681
|
};
|
|
693
682
|
const de_DescribeNamespaceCommandError = async (output, context) => {
|
|
694
683
|
const parsedOutput = {
|
|
@@ -711,10 +700,9 @@ const de_DescribeNamespaceCommandError = async (output, context) => {
|
|
|
711
700
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
712
701
|
default:
|
|
713
702
|
const parsedBody = parsedOutput.body;
|
|
714
|
-
throwDefaultError({
|
|
703
|
+
return throwDefaultError({
|
|
715
704
|
output,
|
|
716
705
|
parsedBody,
|
|
717
|
-
exceptionCtor: __BaseException,
|
|
718
706
|
errorCode,
|
|
719
707
|
});
|
|
720
708
|
}
|
|
@@ -725,12 +713,12 @@ export const de_DissociateEntityFromThingCommand = async (output, context) => {
|
|
|
725
713
|
}
|
|
726
714
|
const data = await parseBody(output.body, context);
|
|
727
715
|
let contents = {};
|
|
728
|
-
contents =
|
|
716
|
+
contents = _json(data);
|
|
729
717
|
const response = {
|
|
730
718
|
$metadata: deserializeMetadata(output),
|
|
731
719
|
...contents,
|
|
732
720
|
};
|
|
733
|
-
return
|
|
721
|
+
return response;
|
|
734
722
|
};
|
|
735
723
|
const de_DissociateEntityFromThingCommandError = async (output, context) => {
|
|
736
724
|
const parsedOutput = {
|
|
@@ -753,10 +741,9 @@ const de_DissociateEntityFromThingCommandError = async (output, context) => {
|
|
|
753
741
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
754
742
|
default:
|
|
755
743
|
const parsedBody = parsedOutput.body;
|
|
756
|
-
throwDefaultError({
|
|
744
|
+
return throwDefaultError({
|
|
757
745
|
output,
|
|
758
746
|
parsedBody,
|
|
759
|
-
exceptionCtor: __BaseException,
|
|
760
747
|
errorCode,
|
|
761
748
|
});
|
|
762
749
|
}
|
|
@@ -772,7 +759,7 @@ export const de_GetEntitiesCommand = async (output, context) => {
|
|
|
772
759
|
$metadata: deserializeMetadata(output),
|
|
773
760
|
...contents,
|
|
774
761
|
};
|
|
775
|
-
return
|
|
762
|
+
return response;
|
|
776
763
|
};
|
|
777
764
|
const de_GetEntitiesCommandError = async (output, context) => {
|
|
778
765
|
const parsedOutput = {
|
|
@@ -795,10 +782,9 @@ const de_GetEntitiesCommandError = async (output, context) => {
|
|
|
795
782
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
796
783
|
default:
|
|
797
784
|
const parsedBody = parsedOutput.body;
|
|
798
|
-
throwDefaultError({
|
|
785
|
+
return throwDefaultError({
|
|
799
786
|
output,
|
|
800
787
|
parsedBody,
|
|
801
|
-
exceptionCtor: __BaseException,
|
|
802
788
|
errorCode,
|
|
803
789
|
});
|
|
804
790
|
}
|
|
@@ -814,7 +800,7 @@ export const de_GetFlowTemplateCommand = async (output, context) => {
|
|
|
814
800
|
$metadata: deserializeMetadata(output),
|
|
815
801
|
...contents,
|
|
816
802
|
};
|
|
817
|
-
return
|
|
803
|
+
return response;
|
|
818
804
|
};
|
|
819
805
|
const de_GetFlowTemplateCommandError = async (output, context) => {
|
|
820
806
|
const parsedOutput = {
|
|
@@ -837,10 +823,9 @@ const de_GetFlowTemplateCommandError = async (output, context) => {
|
|
|
837
823
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
838
824
|
default:
|
|
839
825
|
const parsedBody = parsedOutput.body;
|
|
840
|
-
throwDefaultError({
|
|
826
|
+
return throwDefaultError({
|
|
841
827
|
output,
|
|
842
828
|
parsedBody,
|
|
843
|
-
exceptionCtor: __BaseException,
|
|
844
829
|
errorCode,
|
|
845
830
|
});
|
|
846
831
|
}
|
|
@@ -856,7 +841,7 @@ export const de_GetFlowTemplateRevisionsCommand = async (output, context) => {
|
|
|
856
841
|
$metadata: deserializeMetadata(output),
|
|
857
842
|
...contents,
|
|
858
843
|
};
|
|
859
|
-
return
|
|
844
|
+
return response;
|
|
860
845
|
};
|
|
861
846
|
const de_GetFlowTemplateRevisionsCommandError = async (output, context) => {
|
|
862
847
|
const parsedOutput = {
|
|
@@ -879,10 +864,9 @@ const de_GetFlowTemplateRevisionsCommandError = async (output, context) => {
|
|
|
879
864
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
880
865
|
default:
|
|
881
866
|
const parsedBody = parsedOutput.body;
|
|
882
|
-
throwDefaultError({
|
|
867
|
+
return throwDefaultError({
|
|
883
868
|
output,
|
|
884
869
|
parsedBody,
|
|
885
|
-
exceptionCtor: __BaseException,
|
|
886
870
|
errorCode,
|
|
887
871
|
});
|
|
888
872
|
}
|
|
@@ -893,12 +877,12 @@ export const de_GetNamespaceDeletionStatusCommand = async (output, context) => {
|
|
|
893
877
|
}
|
|
894
878
|
const data = await parseBody(output.body, context);
|
|
895
879
|
let contents = {};
|
|
896
|
-
contents =
|
|
880
|
+
contents = _json(data);
|
|
897
881
|
const response = {
|
|
898
882
|
$metadata: deserializeMetadata(output),
|
|
899
883
|
...contents,
|
|
900
884
|
};
|
|
901
|
-
return
|
|
885
|
+
return response;
|
|
902
886
|
};
|
|
903
887
|
const de_GetNamespaceDeletionStatusCommandError = async (output, context) => {
|
|
904
888
|
const parsedOutput = {
|
|
@@ -918,10 +902,9 @@ const de_GetNamespaceDeletionStatusCommandError = async (output, context) => {
|
|
|
918
902
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
919
903
|
default:
|
|
920
904
|
const parsedBody = parsedOutput.body;
|
|
921
|
-
throwDefaultError({
|
|
905
|
+
return throwDefaultError({
|
|
922
906
|
output,
|
|
923
907
|
parsedBody,
|
|
924
|
-
exceptionCtor: __BaseException,
|
|
925
908
|
errorCode,
|
|
926
909
|
});
|
|
927
910
|
}
|
|
@@ -937,7 +920,7 @@ export const de_GetSystemInstanceCommand = async (output, context) => {
|
|
|
937
920
|
$metadata: deserializeMetadata(output),
|
|
938
921
|
...contents,
|
|
939
922
|
};
|
|
940
|
-
return
|
|
923
|
+
return response;
|
|
941
924
|
};
|
|
942
925
|
const de_GetSystemInstanceCommandError = async (output, context) => {
|
|
943
926
|
const parsedOutput = {
|
|
@@ -960,10 +943,9 @@ const de_GetSystemInstanceCommandError = async (output, context) => {
|
|
|
960
943
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
961
944
|
default:
|
|
962
945
|
const parsedBody = parsedOutput.body;
|
|
963
|
-
throwDefaultError({
|
|
946
|
+
return throwDefaultError({
|
|
964
947
|
output,
|
|
965
948
|
parsedBody,
|
|
966
|
-
exceptionCtor: __BaseException,
|
|
967
949
|
errorCode,
|
|
968
950
|
});
|
|
969
951
|
}
|
|
@@ -979,7 +961,7 @@ export const de_GetSystemTemplateCommand = async (output, context) => {
|
|
|
979
961
|
$metadata: deserializeMetadata(output),
|
|
980
962
|
...contents,
|
|
981
963
|
};
|
|
982
|
-
return
|
|
964
|
+
return response;
|
|
983
965
|
};
|
|
984
966
|
const de_GetSystemTemplateCommandError = async (output, context) => {
|
|
985
967
|
const parsedOutput = {
|
|
@@ -1002,10 +984,9 @@ const de_GetSystemTemplateCommandError = async (output, context) => {
|
|
|
1002
984
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1003
985
|
default:
|
|
1004
986
|
const parsedBody = parsedOutput.body;
|
|
1005
|
-
throwDefaultError({
|
|
987
|
+
return throwDefaultError({
|
|
1006
988
|
output,
|
|
1007
989
|
parsedBody,
|
|
1008
|
-
exceptionCtor: __BaseException,
|
|
1009
990
|
errorCode,
|
|
1010
991
|
});
|
|
1011
992
|
}
|
|
@@ -1021,7 +1002,7 @@ export const de_GetSystemTemplateRevisionsCommand = async (output, context) => {
|
|
|
1021
1002
|
$metadata: deserializeMetadata(output),
|
|
1022
1003
|
...contents,
|
|
1023
1004
|
};
|
|
1024
|
-
return
|
|
1005
|
+
return response;
|
|
1025
1006
|
};
|
|
1026
1007
|
const de_GetSystemTemplateRevisionsCommandError = async (output, context) => {
|
|
1027
1008
|
const parsedOutput = {
|
|
@@ -1044,10 +1025,9 @@ const de_GetSystemTemplateRevisionsCommandError = async (output, context) => {
|
|
|
1044
1025
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1045
1026
|
default:
|
|
1046
1027
|
const parsedBody = parsedOutput.body;
|
|
1047
|
-
throwDefaultError({
|
|
1028
|
+
return throwDefaultError({
|
|
1048
1029
|
output,
|
|
1049
1030
|
parsedBody,
|
|
1050
|
-
exceptionCtor: __BaseException,
|
|
1051
1031
|
errorCode,
|
|
1052
1032
|
});
|
|
1053
1033
|
}
|
|
@@ -1063,7 +1043,7 @@ export const de_GetUploadStatusCommand = async (output, context) => {
|
|
|
1063
1043
|
$metadata: deserializeMetadata(output),
|
|
1064
1044
|
...contents,
|
|
1065
1045
|
};
|
|
1066
|
-
return
|
|
1046
|
+
return response;
|
|
1067
1047
|
};
|
|
1068
1048
|
const de_GetUploadStatusCommandError = async (output, context) => {
|
|
1069
1049
|
const parsedOutput = {
|
|
@@ -1086,10 +1066,9 @@ const de_GetUploadStatusCommandError = async (output, context) => {
|
|
|
1086
1066
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1087
1067
|
default:
|
|
1088
1068
|
const parsedBody = parsedOutput.body;
|
|
1089
|
-
throwDefaultError({
|
|
1069
|
+
return throwDefaultError({
|
|
1090
1070
|
output,
|
|
1091
1071
|
parsedBody,
|
|
1092
|
-
exceptionCtor: __BaseException,
|
|
1093
1072
|
errorCode,
|
|
1094
1073
|
});
|
|
1095
1074
|
}
|
|
@@ -1105,7 +1084,7 @@ export const de_ListFlowExecutionMessagesCommand = async (output, context) => {
|
|
|
1105
1084
|
$metadata: deserializeMetadata(output),
|
|
1106
1085
|
...contents,
|
|
1107
1086
|
};
|
|
1108
|
-
return
|
|
1087
|
+
return response;
|
|
1109
1088
|
};
|
|
1110
1089
|
const de_ListFlowExecutionMessagesCommandError = async (output, context) => {
|
|
1111
1090
|
const parsedOutput = {
|
|
@@ -1128,10 +1107,9 @@ const de_ListFlowExecutionMessagesCommandError = async (output, context) => {
|
|
|
1128
1107
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1129
1108
|
default:
|
|
1130
1109
|
const parsedBody = parsedOutput.body;
|
|
1131
|
-
throwDefaultError({
|
|
1110
|
+
return throwDefaultError({
|
|
1132
1111
|
output,
|
|
1133
1112
|
parsedBody,
|
|
1134
|
-
exceptionCtor: __BaseException,
|
|
1135
1113
|
errorCode,
|
|
1136
1114
|
});
|
|
1137
1115
|
}
|
|
@@ -1142,12 +1120,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1142
1120
|
}
|
|
1143
1121
|
const data = await parseBody(output.body, context);
|
|
1144
1122
|
let contents = {};
|
|
1145
|
-
contents =
|
|
1123
|
+
contents = _json(data);
|
|
1146
1124
|
const response = {
|
|
1147
1125
|
$metadata: deserializeMetadata(output),
|
|
1148
1126
|
...contents,
|
|
1149
1127
|
};
|
|
1150
|
-
return
|
|
1128
|
+
return response;
|
|
1151
1129
|
};
|
|
1152
1130
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1153
1131
|
const parsedOutput = {
|
|
@@ -1170,10 +1148,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1170
1148
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1171
1149
|
default:
|
|
1172
1150
|
const parsedBody = parsedOutput.body;
|
|
1173
|
-
throwDefaultError({
|
|
1151
|
+
return throwDefaultError({
|
|
1174
1152
|
output,
|
|
1175
1153
|
parsedBody,
|
|
1176
|
-
exceptionCtor: __BaseException,
|
|
1177
1154
|
errorCode,
|
|
1178
1155
|
});
|
|
1179
1156
|
}
|
|
@@ -1189,7 +1166,7 @@ export const de_SearchEntitiesCommand = async (output, context) => {
|
|
|
1189
1166
|
$metadata: deserializeMetadata(output),
|
|
1190
1167
|
...contents,
|
|
1191
1168
|
};
|
|
1192
|
-
return
|
|
1169
|
+
return response;
|
|
1193
1170
|
};
|
|
1194
1171
|
const de_SearchEntitiesCommandError = async (output, context) => {
|
|
1195
1172
|
const parsedOutput = {
|
|
@@ -1209,10 +1186,9 @@ const de_SearchEntitiesCommandError = async (output, context) => {
|
|
|
1209
1186
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1210
1187
|
default:
|
|
1211
1188
|
const parsedBody = parsedOutput.body;
|
|
1212
|
-
throwDefaultError({
|
|
1189
|
+
return throwDefaultError({
|
|
1213
1190
|
output,
|
|
1214
1191
|
parsedBody,
|
|
1215
|
-
exceptionCtor: __BaseException,
|
|
1216
1192
|
errorCode,
|
|
1217
1193
|
});
|
|
1218
1194
|
}
|
|
@@ -1228,7 +1204,7 @@ export const de_SearchFlowExecutionsCommand = async (output, context) => {
|
|
|
1228
1204
|
$metadata: deserializeMetadata(output),
|
|
1229
1205
|
...contents,
|
|
1230
1206
|
};
|
|
1231
|
-
return
|
|
1207
|
+
return response;
|
|
1232
1208
|
};
|
|
1233
1209
|
const de_SearchFlowExecutionsCommandError = async (output, context) => {
|
|
1234
1210
|
const parsedOutput = {
|
|
@@ -1251,10 +1227,9 @@ const de_SearchFlowExecutionsCommandError = async (output, context) => {
|
|
|
1251
1227
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1252
1228
|
default:
|
|
1253
1229
|
const parsedBody = parsedOutput.body;
|
|
1254
|
-
throwDefaultError({
|
|
1230
|
+
return throwDefaultError({
|
|
1255
1231
|
output,
|
|
1256
1232
|
parsedBody,
|
|
1257
|
-
exceptionCtor: __BaseException,
|
|
1258
1233
|
errorCode,
|
|
1259
1234
|
});
|
|
1260
1235
|
}
|
|
@@ -1270,7 +1245,7 @@ export const de_SearchFlowTemplatesCommand = async (output, context) => {
|
|
|
1270
1245
|
$metadata: deserializeMetadata(output),
|
|
1271
1246
|
...contents,
|
|
1272
1247
|
};
|
|
1273
|
-
return
|
|
1248
|
+
return response;
|
|
1274
1249
|
};
|
|
1275
1250
|
const de_SearchFlowTemplatesCommandError = async (output, context) => {
|
|
1276
1251
|
const parsedOutput = {
|
|
@@ -1290,10 +1265,9 @@ const de_SearchFlowTemplatesCommandError = async (output, context) => {
|
|
|
1290
1265
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1291
1266
|
default:
|
|
1292
1267
|
const parsedBody = parsedOutput.body;
|
|
1293
|
-
throwDefaultError({
|
|
1268
|
+
return throwDefaultError({
|
|
1294
1269
|
output,
|
|
1295
1270
|
parsedBody,
|
|
1296
|
-
exceptionCtor: __BaseException,
|
|
1297
1271
|
errorCode,
|
|
1298
1272
|
});
|
|
1299
1273
|
}
|
|
@@ -1309,7 +1283,7 @@ export const de_SearchSystemInstancesCommand = async (output, context) => {
|
|
|
1309
1283
|
$metadata: deserializeMetadata(output),
|
|
1310
1284
|
...contents,
|
|
1311
1285
|
};
|
|
1312
|
-
return
|
|
1286
|
+
return response;
|
|
1313
1287
|
};
|
|
1314
1288
|
const de_SearchSystemInstancesCommandError = async (output, context) => {
|
|
1315
1289
|
const parsedOutput = {
|
|
@@ -1329,10 +1303,9 @@ const de_SearchSystemInstancesCommandError = async (output, context) => {
|
|
|
1329
1303
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1330
1304
|
default:
|
|
1331
1305
|
const parsedBody = parsedOutput.body;
|
|
1332
|
-
throwDefaultError({
|
|
1306
|
+
return throwDefaultError({
|
|
1333
1307
|
output,
|
|
1334
1308
|
parsedBody,
|
|
1335
|
-
exceptionCtor: __BaseException,
|
|
1336
1309
|
errorCode,
|
|
1337
1310
|
});
|
|
1338
1311
|
}
|
|
@@ -1348,7 +1321,7 @@ export const de_SearchSystemTemplatesCommand = async (output, context) => {
|
|
|
1348
1321
|
$metadata: deserializeMetadata(output),
|
|
1349
1322
|
...contents,
|
|
1350
1323
|
};
|
|
1351
|
-
return
|
|
1324
|
+
return response;
|
|
1352
1325
|
};
|
|
1353
1326
|
const de_SearchSystemTemplatesCommandError = async (output, context) => {
|
|
1354
1327
|
const parsedOutput = {
|
|
@@ -1368,10 +1341,9 @@ const de_SearchSystemTemplatesCommandError = async (output, context) => {
|
|
|
1368
1341
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1369
1342
|
default:
|
|
1370
1343
|
const parsedBody = parsedOutput.body;
|
|
1371
|
-
throwDefaultError({
|
|
1344
|
+
return throwDefaultError({
|
|
1372
1345
|
output,
|
|
1373
1346
|
parsedBody,
|
|
1374
|
-
exceptionCtor: __BaseException,
|
|
1375
1347
|
errorCode,
|
|
1376
1348
|
});
|
|
1377
1349
|
}
|
|
@@ -1382,12 +1354,12 @@ export const de_SearchThingsCommand = async (output, context) => {
|
|
|
1382
1354
|
}
|
|
1383
1355
|
const data = await parseBody(output.body, context);
|
|
1384
1356
|
let contents = {};
|
|
1385
|
-
contents =
|
|
1357
|
+
contents = _json(data);
|
|
1386
1358
|
const response = {
|
|
1387
1359
|
$metadata: deserializeMetadata(output),
|
|
1388
1360
|
...contents,
|
|
1389
1361
|
};
|
|
1390
|
-
return
|
|
1362
|
+
return response;
|
|
1391
1363
|
};
|
|
1392
1364
|
const de_SearchThingsCommandError = async (output, context) => {
|
|
1393
1365
|
const parsedOutput = {
|
|
@@ -1410,10 +1382,9 @@ const de_SearchThingsCommandError = async (output, context) => {
|
|
|
1410
1382
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1411
1383
|
default:
|
|
1412
1384
|
const parsedBody = parsedOutput.body;
|
|
1413
|
-
throwDefaultError({
|
|
1385
|
+
return throwDefaultError({
|
|
1414
1386
|
output,
|
|
1415
1387
|
parsedBody,
|
|
1416
|
-
exceptionCtor: __BaseException,
|
|
1417
1388
|
errorCode,
|
|
1418
1389
|
});
|
|
1419
1390
|
}
|
|
@@ -1424,12 +1395,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1424
1395
|
}
|
|
1425
1396
|
const data = await parseBody(output.body, context);
|
|
1426
1397
|
let contents = {};
|
|
1427
|
-
contents =
|
|
1398
|
+
contents = _json(data);
|
|
1428
1399
|
const response = {
|
|
1429
1400
|
$metadata: deserializeMetadata(output),
|
|
1430
1401
|
...contents,
|
|
1431
1402
|
};
|
|
1432
|
-
return
|
|
1403
|
+
return response;
|
|
1433
1404
|
};
|
|
1434
1405
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1435
1406
|
const parsedOutput = {
|
|
@@ -1452,10 +1423,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1452
1423
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1453
1424
|
default:
|
|
1454
1425
|
const parsedBody = parsedOutput.body;
|
|
1455
|
-
throwDefaultError({
|
|
1426
|
+
return throwDefaultError({
|
|
1456
1427
|
output,
|
|
1457
1428
|
parsedBody,
|
|
1458
|
-
exceptionCtor: __BaseException,
|
|
1459
1429
|
errorCode,
|
|
1460
1430
|
});
|
|
1461
1431
|
}
|
|
@@ -1471,7 +1441,7 @@ export const de_UndeploySystemInstanceCommand = async (output, context) => {
|
|
|
1471
1441
|
$metadata: deserializeMetadata(output),
|
|
1472
1442
|
...contents,
|
|
1473
1443
|
};
|
|
1474
|
-
return
|
|
1444
|
+
return response;
|
|
1475
1445
|
};
|
|
1476
1446
|
const de_UndeploySystemInstanceCommandError = async (output, context) => {
|
|
1477
1447
|
const parsedOutput = {
|
|
@@ -1497,10 +1467,9 @@ const de_UndeploySystemInstanceCommandError = async (output, context) => {
|
|
|
1497
1467
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1498
1468
|
default:
|
|
1499
1469
|
const parsedBody = parsedOutput.body;
|
|
1500
|
-
throwDefaultError({
|
|
1470
|
+
return throwDefaultError({
|
|
1501
1471
|
output,
|
|
1502
1472
|
parsedBody,
|
|
1503
|
-
exceptionCtor: __BaseException,
|
|
1504
1473
|
errorCode,
|
|
1505
1474
|
});
|
|
1506
1475
|
}
|
|
@@ -1511,12 +1480,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1511
1480
|
}
|
|
1512
1481
|
const data = await parseBody(output.body, context);
|
|
1513
1482
|
let contents = {};
|
|
1514
|
-
contents =
|
|
1483
|
+
contents = _json(data);
|
|
1515
1484
|
const response = {
|
|
1516
1485
|
$metadata: deserializeMetadata(output),
|
|
1517
1486
|
...contents,
|
|
1518
1487
|
};
|
|
1519
|
-
return
|
|
1488
|
+
return response;
|
|
1520
1489
|
};
|
|
1521
1490
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1522
1491
|
const parsedOutput = {
|
|
@@ -1539,10 +1508,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1539
1508
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1540
1509
|
default:
|
|
1541
1510
|
const parsedBody = parsedOutput.body;
|
|
1542
|
-
throwDefaultError({
|
|
1511
|
+
return throwDefaultError({
|
|
1543
1512
|
output,
|
|
1544
1513
|
parsedBody,
|
|
1545
|
-
exceptionCtor: __BaseException,
|
|
1546
1514
|
errorCode,
|
|
1547
1515
|
});
|
|
1548
1516
|
}
|
|
@@ -1558,7 +1526,7 @@ export const de_UpdateFlowTemplateCommand = async (output, context) => {
|
|
|
1558
1526
|
$metadata: deserializeMetadata(output),
|
|
1559
1527
|
...contents,
|
|
1560
1528
|
};
|
|
1561
|
-
return
|
|
1529
|
+
return response;
|
|
1562
1530
|
};
|
|
1563
1531
|
const de_UpdateFlowTemplateCommandError = async (output, context) => {
|
|
1564
1532
|
const parsedOutput = {
|
|
@@ -1581,10 +1549,9 @@ const de_UpdateFlowTemplateCommandError = async (output, context) => {
|
|
|
1581
1549
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1582
1550
|
default:
|
|
1583
1551
|
const parsedBody = parsedOutput.body;
|
|
1584
|
-
throwDefaultError({
|
|
1552
|
+
return throwDefaultError({
|
|
1585
1553
|
output,
|
|
1586
1554
|
parsedBody,
|
|
1587
|
-
exceptionCtor: __BaseException,
|
|
1588
1555
|
errorCode,
|
|
1589
1556
|
});
|
|
1590
1557
|
}
|
|
@@ -1600,7 +1567,7 @@ export const de_UpdateSystemTemplateCommand = async (output, context) => {
|
|
|
1600
1567
|
$metadata: deserializeMetadata(output),
|
|
1601
1568
|
...contents,
|
|
1602
1569
|
};
|
|
1603
|
-
return
|
|
1570
|
+
return response;
|
|
1604
1571
|
};
|
|
1605
1572
|
const de_UpdateSystemTemplateCommandError = async (output, context) => {
|
|
1606
1573
|
const parsedOutput = {
|
|
@@ -1623,10 +1590,9 @@ const de_UpdateSystemTemplateCommandError = async (output, context) => {
|
|
|
1623
1590
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1624
1591
|
default:
|
|
1625
1592
|
const parsedBody = parsedOutput.body;
|
|
1626
|
-
throwDefaultError({
|
|
1593
|
+
return throwDefaultError({
|
|
1627
1594
|
output,
|
|
1628
1595
|
parsedBody,
|
|
1629
|
-
exceptionCtor: __BaseException,
|
|
1630
1596
|
errorCode,
|
|
1631
1597
|
});
|
|
1632
1598
|
}
|
|
@@ -1637,12 +1603,12 @@ export const de_UploadEntityDefinitionsCommand = async (output, context) => {
|
|
|
1637
1603
|
}
|
|
1638
1604
|
const data = await parseBody(output.body, context);
|
|
1639
1605
|
let contents = {};
|
|
1640
|
-
contents =
|
|
1606
|
+
contents = _json(data);
|
|
1641
1607
|
const response = {
|
|
1642
1608
|
$metadata: deserializeMetadata(output),
|
|
1643
1609
|
...contents,
|
|
1644
1610
|
};
|
|
1645
|
-
return
|
|
1611
|
+
return response;
|
|
1646
1612
|
};
|
|
1647
1613
|
const de_UploadEntityDefinitionsCommandError = async (output, context) => {
|
|
1648
1614
|
const parsedOutput = {
|
|
@@ -1662,17 +1628,16 @@ const de_UploadEntityDefinitionsCommandError = async (output, context) => {
|
|
|
1662
1628
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1663
1629
|
default:
|
|
1664
1630
|
const parsedBody = parsedOutput.body;
|
|
1665
|
-
throwDefaultError({
|
|
1631
|
+
return throwDefaultError({
|
|
1666
1632
|
output,
|
|
1667
1633
|
parsedBody,
|
|
1668
|
-
exceptionCtor: __BaseException,
|
|
1669
1634
|
errorCode,
|
|
1670
1635
|
});
|
|
1671
1636
|
}
|
|
1672
1637
|
};
|
|
1673
1638
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1674
1639
|
const body = parsedOutput.body;
|
|
1675
|
-
const deserialized =
|
|
1640
|
+
const deserialized = _json(body);
|
|
1676
1641
|
const exception = new InternalFailureException({
|
|
1677
1642
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1678
1643
|
...deserialized,
|
|
@@ -1681,7 +1646,7 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
1681
1646
|
};
|
|
1682
1647
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1683
1648
|
const body = parsedOutput.body;
|
|
1684
|
-
const deserialized =
|
|
1649
|
+
const deserialized = _json(body);
|
|
1685
1650
|
const exception = new InvalidRequestException({
|
|
1686
1651
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1687
1652
|
...deserialized,
|
|
@@ -1690,7 +1655,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1690
1655
|
};
|
|
1691
1656
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1692
1657
|
const body = parsedOutput.body;
|
|
1693
|
-
const deserialized =
|
|
1658
|
+
const deserialized = _json(body);
|
|
1694
1659
|
const exception = new LimitExceededException({
|
|
1695
1660
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1696
1661
|
...deserialized,
|
|
@@ -1699,7 +1664,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1699
1664
|
};
|
|
1700
1665
|
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1701
1666
|
const body = parsedOutput.body;
|
|
1702
|
-
const deserialized =
|
|
1667
|
+
const deserialized = _json(body);
|
|
1703
1668
|
const exception = new ResourceAlreadyExistsException({
|
|
1704
1669
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1705
1670
|
...deserialized,
|
|
@@ -1708,7 +1673,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1708
1673
|
};
|
|
1709
1674
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1710
1675
|
const body = parsedOutput.body;
|
|
1711
|
-
const deserialized =
|
|
1676
|
+
const deserialized = _json(body);
|
|
1712
1677
|
const exception = new ResourceInUseException({
|
|
1713
1678
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1714
1679
|
...deserialized,
|
|
@@ -1717,7 +1682,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
1717
1682
|
};
|
|
1718
1683
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1719
1684
|
const body = parsedOutput.body;
|
|
1720
|
-
const deserialized =
|
|
1685
|
+
const deserialized = _json(body);
|
|
1721
1686
|
const exception = new ResourceNotFoundException({
|
|
1722
1687
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1723
1688
|
...deserialized,
|
|
@@ -1726,475 +1691,73 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1726
1691
|
};
|
|
1727
1692
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1728
1693
|
const body = parsedOutput.body;
|
|
1729
|
-
const deserialized =
|
|
1694
|
+
const deserialized = _json(body);
|
|
1730
1695
|
const exception = new ThrottlingException({
|
|
1731
1696
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1732
1697
|
...deserialized,
|
|
1733
1698
|
});
|
|
1734
1699
|
return __decorateServiceException(exception, body);
|
|
1735
1700
|
};
|
|
1736
|
-
const se_AssociateEntityToThingRequest = (input, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
...(input.entityId != null && { entityId: input.entityId }),
|
|
1739
|
-
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
1740
|
-
...(input.thingName != null && { thingName: input.thingName }),
|
|
1741
|
-
};
|
|
1742
|
-
};
|
|
1743
|
-
const se_CreateFlowTemplateRequest = (input, context) => {
|
|
1744
|
-
return {
|
|
1745
|
-
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
1746
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
1747
|
-
};
|
|
1748
|
-
};
|
|
1749
|
-
const se_CreateSystemInstanceRequest = (input, context) => {
|
|
1750
|
-
return {
|
|
1751
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
1752
|
-
...(input.flowActionsRoleArn != null && { flowActionsRoleArn: input.flowActionsRoleArn }),
|
|
1753
|
-
...(input.greengrassGroupName != null && { greengrassGroupName: input.greengrassGroupName }),
|
|
1754
|
-
...(input.metricsConfiguration != null && {
|
|
1755
|
-
metricsConfiguration: se_MetricsConfiguration(input.metricsConfiguration, context),
|
|
1756
|
-
}),
|
|
1757
|
-
...(input.s3BucketName != null && { s3BucketName: input.s3BucketName }),
|
|
1758
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1759
|
-
...(input.target != null && { target: input.target }),
|
|
1760
|
-
};
|
|
1761
|
-
};
|
|
1762
|
-
const se_CreateSystemTemplateRequest = (input, context) => {
|
|
1763
|
-
return {
|
|
1764
|
-
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
1765
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
1766
|
-
};
|
|
1767
|
-
};
|
|
1768
|
-
const se_DefinitionDocument = (input, context) => {
|
|
1769
|
-
return {
|
|
1770
|
-
...(input.language != null && { language: input.language }),
|
|
1771
|
-
...(input.text != null && { text: input.text }),
|
|
1772
|
-
};
|
|
1773
|
-
};
|
|
1774
|
-
const se_DeleteFlowTemplateRequest = (input, context) => {
|
|
1775
|
-
return {
|
|
1776
|
-
...(input.id != null && { id: input.id }),
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
|
-
const se_DeleteNamespaceRequest = (input, context) => {
|
|
1780
|
-
return {};
|
|
1781
|
-
};
|
|
1782
|
-
const se_DeleteSystemInstanceRequest = (input, context) => {
|
|
1783
|
-
return {
|
|
1784
|
-
...(input.id != null && { id: input.id }),
|
|
1785
|
-
};
|
|
1786
|
-
};
|
|
1787
|
-
const se_DeleteSystemTemplateRequest = (input, context) => {
|
|
1788
|
-
return {
|
|
1789
|
-
...(input.id != null && { id: input.id }),
|
|
1790
|
-
};
|
|
1791
|
-
};
|
|
1792
|
-
const se_DeploySystemInstanceRequest = (input, context) => {
|
|
1793
|
-
return {
|
|
1794
|
-
...(input.id != null && { id: input.id }),
|
|
1795
|
-
};
|
|
1796
|
-
};
|
|
1797
|
-
const se_DeprecateFlowTemplateRequest = (input, context) => {
|
|
1798
|
-
return {
|
|
1799
|
-
...(input.id != null && { id: input.id }),
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
const se_DeprecateSystemTemplateRequest = (input, context) => {
|
|
1803
|
-
return {
|
|
1804
|
-
...(input.id != null && { id: input.id }),
|
|
1805
|
-
};
|
|
1806
|
-
};
|
|
1807
|
-
const se_DescribeNamespaceRequest = (input, context) => {
|
|
1808
|
-
return {
|
|
1809
|
-
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
1810
|
-
};
|
|
1811
|
-
};
|
|
1812
|
-
const se_DissociateEntityFromThingRequest = (input, context) => {
|
|
1813
|
-
return {
|
|
1814
|
-
...(input.entityType != null && { entityType: input.entityType }),
|
|
1815
|
-
...(input.thingName != null && { thingName: input.thingName }),
|
|
1816
|
-
};
|
|
1817
|
-
};
|
|
1818
|
-
const se_EntityFilter = (input, context) => {
|
|
1819
|
-
return {
|
|
1820
|
-
...(input.name != null && { name: input.name }),
|
|
1821
|
-
...(input.value != null && { value: se_EntityFilterValues(input.value, context) }),
|
|
1822
|
-
};
|
|
1823
|
-
};
|
|
1824
|
-
const se_EntityFilters = (input, context) => {
|
|
1825
|
-
return input
|
|
1826
|
-
.filter((e) => e != null)
|
|
1827
|
-
.map((entry) => {
|
|
1828
|
-
return se_EntityFilter(entry, context);
|
|
1829
|
-
});
|
|
1830
|
-
};
|
|
1831
|
-
const se_EntityFilterValues = (input, context) => {
|
|
1832
|
-
return input
|
|
1833
|
-
.filter((e) => e != null)
|
|
1834
|
-
.map((entry) => {
|
|
1835
|
-
return entry;
|
|
1836
|
-
});
|
|
1837
|
-
};
|
|
1838
|
-
const se_EntityTypes = (input, context) => {
|
|
1839
|
-
return input
|
|
1840
|
-
.filter((e) => e != null)
|
|
1841
|
-
.map((entry) => {
|
|
1842
|
-
return entry;
|
|
1843
|
-
});
|
|
1844
|
-
};
|
|
1845
|
-
const se_FlowTemplateFilter = (input, context) => {
|
|
1846
|
-
return {
|
|
1847
|
-
...(input.name != null && { name: input.name }),
|
|
1848
|
-
...(input.value != null && { value: se_FlowTemplateFilterValues(input.value, context) }),
|
|
1849
|
-
};
|
|
1850
|
-
};
|
|
1851
|
-
const se_FlowTemplateFilters = (input, context) => {
|
|
1852
|
-
return input
|
|
1853
|
-
.filter((e) => e != null)
|
|
1854
|
-
.map((entry) => {
|
|
1855
|
-
return se_FlowTemplateFilter(entry, context);
|
|
1856
|
-
});
|
|
1857
|
-
};
|
|
1858
|
-
const se_FlowTemplateFilterValues = (input, context) => {
|
|
1859
|
-
return input
|
|
1860
|
-
.filter((e) => e != null)
|
|
1861
|
-
.map((entry) => {
|
|
1862
|
-
return entry;
|
|
1863
|
-
});
|
|
1864
|
-
};
|
|
1865
|
-
const se_GetEntitiesRequest = (input, context) => {
|
|
1866
|
-
return {
|
|
1867
|
-
...(input.ids != null && { ids: se_Urns(input.ids, context) }),
|
|
1868
|
-
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
1869
|
-
};
|
|
1870
|
-
};
|
|
1871
|
-
const se_GetFlowTemplateRequest = (input, context) => {
|
|
1872
|
-
return {
|
|
1873
|
-
...(input.id != null && { id: input.id }),
|
|
1874
|
-
...(input.revisionNumber != null && { revisionNumber: input.revisionNumber }),
|
|
1875
|
-
};
|
|
1876
|
-
};
|
|
1877
|
-
const se_GetFlowTemplateRevisionsRequest = (input, context) => {
|
|
1878
|
-
return {
|
|
1879
|
-
...(input.id != null && { id: input.id }),
|
|
1880
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1881
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1882
|
-
};
|
|
1883
|
-
};
|
|
1884
|
-
const se_GetNamespaceDeletionStatusRequest = (input, context) => {
|
|
1885
|
-
return {};
|
|
1886
|
-
};
|
|
1887
|
-
const se_GetSystemInstanceRequest = (input, context) => {
|
|
1888
|
-
return {
|
|
1889
|
-
...(input.id != null && { id: input.id }),
|
|
1890
|
-
};
|
|
1891
|
-
};
|
|
1892
|
-
const se_GetSystemTemplateRequest = (input, context) => {
|
|
1893
|
-
return {
|
|
1894
|
-
...(input.id != null && { id: input.id }),
|
|
1895
|
-
...(input.revisionNumber != null && { revisionNumber: input.revisionNumber }),
|
|
1896
|
-
};
|
|
1897
|
-
};
|
|
1898
|
-
const se_GetSystemTemplateRevisionsRequest = (input, context) => {
|
|
1899
|
-
return {
|
|
1900
|
-
...(input.id != null && { id: input.id }),
|
|
1901
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1902
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1903
|
-
};
|
|
1904
|
-
};
|
|
1905
|
-
const se_GetUploadStatusRequest = (input, context) => {
|
|
1906
|
-
return {
|
|
1907
|
-
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
1908
|
-
};
|
|
1909
|
-
};
|
|
1910
|
-
const se_ListFlowExecutionMessagesRequest = (input, context) => {
|
|
1911
|
-
return {
|
|
1912
|
-
...(input.flowExecutionId != null && { flowExecutionId: input.flowExecutionId }),
|
|
1913
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1914
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1915
|
-
};
|
|
1916
|
-
};
|
|
1917
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1918
|
-
return {
|
|
1919
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1920
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1921
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1922
|
-
};
|
|
1923
|
-
};
|
|
1924
|
-
const se_MetricsConfiguration = (input, context) => {
|
|
1925
|
-
return {
|
|
1926
|
-
...(input.cloudMetricEnabled != null && { cloudMetricEnabled: input.cloudMetricEnabled }),
|
|
1927
|
-
...(input.metricRuleRoleArn != null && { metricRuleRoleArn: input.metricRuleRoleArn }),
|
|
1928
|
-
};
|
|
1929
|
-
};
|
|
1930
|
-
const se_SearchEntitiesRequest = (input, context) => {
|
|
1931
|
-
return {
|
|
1932
|
-
...(input.entityTypes != null && { entityTypes: se_EntityTypes(input.entityTypes, context) }),
|
|
1933
|
-
...(input.filters != null && { filters: se_EntityFilters(input.filters, context) }),
|
|
1934
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1935
|
-
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
1936
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1937
|
-
};
|
|
1938
|
-
};
|
|
1939
1701
|
const se_SearchFlowExecutionsRequest = (input, context) => {
|
|
1940
|
-
return {
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
};
|
|
1948
|
-
};
|
|
1949
|
-
const se_SearchFlowTemplatesRequest = (input, context) => {
|
|
1950
|
-
return {
|
|
1951
|
-
...(input.filters != null && { filters: se_FlowTemplateFilters(input.filters, context) }),
|
|
1952
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1953
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1954
|
-
};
|
|
1955
|
-
};
|
|
1956
|
-
const se_SearchSystemInstancesRequest = (input, context) => {
|
|
1957
|
-
return {
|
|
1958
|
-
...(input.filters != null && { filters: se_SystemInstanceFilters(input.filters, context) }),
|
|
1959
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1960
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1961
|
-
};
|
|
1962
|
-
};
|
|
1963
|
-
const se_SearchSystemTemplatesRequest = (input, context) => {
|
|
1964
|
-
return {
|
|
1965
|
-
...(input.filters != null && { filters: se_SystemTemplateFilters(input.filters, context) }),
|
|
1966
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1967
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
const se_SearchThingsRequest = (input, context) => {
|
|
1971
|
-
return {
|
|
1972
|
-
...(input.entityId != null && { entityId: input.entityId }),
|
|
1973
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1974
|
-
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
1975
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1976
|
-
};
|
|
1977
|
-
};
|
|
1978
|
-
const se_SystemInstanceFilter = (input, context) => {
|
|
1979
|
-
return {
|
|
1980
|
-
...(input.name != null && { name: input.name }),
|
|
1981
|
-
...(input.value != null && { value: se_SystemInstanceFilterValues(input.value, context) }),
|
|
1982
|
-
};
|
|
1983
|
-
};
|
|
1984
|
-
const se_SystemInstanceFilters = (input, context) => {
|
|
1985
|
-
return input
|
|
1986
|
-
.filter((e) => e != null)
|
|
1987
|
-
.map((entry) => {
|
|
1988
|
-
return se_SystemInstanceFilter(entry, context);
|
|
1989
|
-
});
|
|
1990
|
-
};
|
|
1991
|
-
const se_SystemInstanceFilterValues = (input, context) => {
|
|
1992
|
-
return input
|
|
1993
|
-
.filter((e) => e != null)
|
|
1994
|
-
.map((entry) => {
|
|
1995
|
-
return entry;
|
|
1996
|
-
});
|
|
1997
|
-
};
|
|
1998
|
-
const se_SystemTemplateFilter = (input, context) => {
|
|
1999
|
-
return {
|
|
2000
|
-
...(input.name != null && { name: input.name }),
|
|
2001
|
-
...(input.value != null && { value: se_SystemTemplateFilterValues(input.value, context) }),
|
|
2002
|
-
};
|
|
2003
|
-
};
|
|
2004
|
-
const se_SystemTemplateFilters = (input, context) => {
|
|
2005
|
-
return input
|
|
2006
|
-
.filter((e) => e != null)
|
|
2007
|
-
.map((entry) => {
|
|
2008
|
-
return se_SystemTemplateFilter(entry, context);
|
|
2009
|
-
});
|
|
2010
|
-
};
|
|
2011
|
-
const se_SystemTemplateFilterValues = (input, context) => {
|
|
2012
|
-
return input
|
|
2013
|
-
.filter((e) => e != null)
|
|
2014
|
-
.map((entry) => {
|
|
2015
|
-
return entry;
|
|
2016
|
-
});
|
|
2017
|
-
};
|
|
2018
|
-
const se_Tag = (input, context) => {
|
|
2019
|
-
return {
|
|
2020
|
-
...(input.key != null && { key: input.key }),
|
|
2021
|
-
...(input.value != null && { value: input.value }),
|
|
2022
|
-
};
|
|
2023
|
-
};
|
|
2024
|
-
const se_TagKeyList = (input, context) => {
|
|
2025
|
-
return input
|
|
2026
|
-
.filter((e) => e != null)
|
|
2027
|
-
.map((entry) => {
|
|
2028
|
-
return entry;
|
|
2029
|
-
});
|
|
2030
|
-
};
|
|
2031
|
-
const se_TagList = (input, context) => {
|
|
2032
|
-
return input
|
|
2033
|
-
.filter((e) => e != null)
|
|
2034
|
-
.map((entry) => {
|
|
2035
|
-
return se_Tag(entry, context);
|
|
2036
|
-
});
|
|
2037
|
-
};
|
|
2038
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2039
|
-
return {
|
|
2040
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2041
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2042
|
-
};
|
|
2043
|
-
};
|
|
2044
|
-
const se_UndeploySystemInstanceRequest = (input, context) => {
|
|
2045
|
-
return {
|
|
2046
|
-
...(input.id != null && { id: input.id }),
|
|
2047
|
-
};
|
|
2048
|
-
};
|
|
2049
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2050
|
-
return {
|
|
2051
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2052
|
-
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
2053
|
-
};
|
|
2054
|
-
};
|
|
2055
|
-
const se_UpdateFlowTemplateRequest = (input, context) => {
|
|
2056
|
-
return {
|
|
2057
|
-
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2058
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
2059
|
-
...(input.id != null && { id: input.id }),
|
|
2060
|
-
};
|
|
2061
|
-
};
|
|
2062
|
-
const se_UpdateSystemTemplateRequest = (input, context) => {
|
|
2063
|
-
return {
|
|
2064
|
-
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2065
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
2066
|
-
...(input.id != null && { id: input.id }),
|
|
2067
|
-
};
|
|
2068
|
-
};
|
|
2069
|
-
const se_UploadEntityDefinitionsRequest = (input, context) => {
|
|
2070
|
-
return {
|
|
2071
|
-
...(input.deprecateExistingEntities != null && { deprecateExistingEntities: input.deprecateExistingEntities }),
|
|
2072
|
-
...(input.document != null && { document: se_DefinitionDocument(input.document, context) }),
|
|
2073
|
-
...(input.syncWithPublicNamespace != null && { syncWithPublicNamespace: input.syncWithPublicNamespace }),
|
|
2074
|
-
};
|
|
2075
|
-
};
|
|
2076
|
-
const se_Urns = (input, context) => {
|
|
2077
|
-
return input
|
|
2078
|
-
.filter((e) => e != null)
|
|
2079
|
-
.map((entry) => {
|
|
2080
|
-
return entry;
|
|
1702
|
+
return take(input, {
|
|
1703
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
1704
|
+
flowExecutionId: [],
|
|
1705
|
+
maxResults: [],
|
|
1706
|
+
nextToken: [],
|
|
1707
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
1708
|
+
systemInstanceId: [],
|
|
2081
1709
|
});
|
|
2082
1710
|
};
|
|
2083
|
-
const de_AssociateEntityToThingResponse = (output, context) => {
|
|
2084
|
-
return {};
|
|
2085
|
-
};
|
|
2086
1711
|
const de_CreateFlowTemplateResponse = (output, context) => {
|
|
2087
|
-
return {
|
|
2088
|
-
summary:
|
|
2089
|
-
};
|
|
1712
|
+
return take(output, {
|
|
1713
|
+
summary: (_) => de_FlowTemplateSummary(_, context),
|
|
1714
|
+
});
|
|
2090
1715
|
};
|
|
2091
1716
|
const de_CreateSystemInstanceResponse = (output, context) => {
|
|
2092
|
-
return {
|
|
2093
|
-
summary:
|
|
2094
|
-
};
|
|
1717
|
+
return take(output, {
|
|
1718
|
+
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
1719
|
+
});
|
|
2095
1720
|
};
|
|
2096
1721
|
const de_CreateSystemTemplateResponse = (output, context) => {
|
|
2097
|
-
return {
|
|
2098
|
-
summary:
|
|
2099
|
-
};
|
|
2100
|
-
};
|
|
2101
|
-
const de_DefinitionDocument = (output, context) => {
|
|
2102
|
-
return {
|
|
2103
|
-
language: __expectString(output.language),
|
|
2104
|
-
text: __expectString(output.text),
|
|
2105
|
-
};
|
|
2106
|
-
};
|
|
2107
|
-
const de_DeleteFlowTemplateResponse = (output, context) => {
|
|
2108
|
-
return {};
|
|
2109
|
-
};
|
|
2110
|
-
const de_DeleteNamespaceResponse = (output, context) => {
|
|
2111
|
-
return {
|
|
2112
|
-
namespaceArn: __expectString(output.namespaceArn),
|
|
2113
|
-
namespaceName: __expectString(output.namespaceName),
|
|
2114
|
-
};
|
|
2115
|
-
};
|
|
2116
|
-
const de_DeleteSystemInstanceResponse = (output, context) => {
|
|
2117
|
-
return {};
|
|
2118
|
-
};
|
|
2119
|
-
const de_DeleteSystemTemplateResponse = (output, context) => {
|
|
2120
|
-
return {};
|
|
2121
|
-
};
|
|
2122
|
-
const de_DependencyRevision = (output, context) => {
|
|
2123
|
-
return {
|
|
2124
|
-
id: __expectString(output.id),
|
|
2125
|
-
revisionNumber: __expectLong(output.revisionNumber),
|
|
2126
|
-
};
|
|
2127
|
-
};
|
|
2128
|
-
const de_DependencyRevisions = (output, context) => {
|
|
2129
|
-
const retVal = (output || [])
|
|
2130
|
-
.filter((e) => e != null)
|
|
2131
|
-
.map((entry) => {
|
|
2132
|
-
if (entry === null) {
|
|
2133
|
-
return null;
|
|
2134
|
-
}
|
|
2135
|
-
return de_DependencyRevision(entry, context);
|
|
1722
|
+
return take(output, {
|
|
1723
|
+
summary: (_) => de_SystemTemplateSummary(_, context),
|
|
2136
1724
|
});
|
|
2137
|
-
return retVal;
|
|
2138
1725
|
};
|
|
2139
1726
|
const de_DeploySystemInstanceResponse = (output, context) => {
|
|
2140
|
-
return {
|
|
2141
|
-
greengrassDeploymentId: __expectString
|
|
2142
|
-
summary:
|
|
2143
|
-
};
|
|
2144
|
-
};
|
|
2145
|
-
const de_DeprecateFlowTemplateResponse = (output, context) => {
|
|
2146
|
-
return {};
|
|
2147
|
-
};
|
|
2148
|
-
const de_DeprecateSystemTemplateResponse = (output, context) => {
|
|
2149
|
-
return {};
|
|
2150
|
-
};
|
|
2151
|
-
const de_DescribeNamespaceResponse = (output, context) => {
|
|
2152
|
-
return {
|
|
2153
|
-
namespaceArn: __expectString(output.namespaceArn),
|
|
2154
|
-
namespaceName: __expectString(output.namespaceName),
|
|
2155
|
-
namespaceVersion: __expectLong(output.namespaceVersion),
|
|
2156
|
-
trackingNamespaceName: __expectString(output.trackingNamespaceName),
|
|
2157
|
-
trackingNamespaceVersion: __expectLong(output.trackingNamespaceVersion),
|
|
2158
|
-
};
|
|
2159
|
-
};
|
|
2160
|
-
const de_DissociateEntityFromThingResponse = (output, context) => {
|
|
2161
|
-
return {};
|
|
1727
|
+
return take(output, {
|
|
1728
|
+
greengrassDeploymentId: __expectString,
|
|
1729
|
+
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
1730
|
+
});
|
|
2162
1731
|
};
|
|
2163
1732
|
const de_EntityDescription = (output, context) => {
|
|
2164
|
-
return {
|
|
2165
|
-
arn: __expectString
|
|
2166
|
-
createdAt:
|
|
2167
|
-
definition:
|
|
2168
|
-
id: __expectString
|
|
2169
|
-
type: __expectString
|
|
2170
|
-
};
|
|
1733
|
+
return take(output, {
|
|
1734
|
+
arn: __expectString,
|
|
1735
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1736
|
+
definition: _json,
|
|
1737
|
+
id: __expectString,
|
|
1738
|
+
type: __expectString,
|
|
1739
|
+
});
|
|
2171
1740
|
};
|
|
2172
1741
|
const de_EntityDescriptions = (output, context) => {
|
|
2173
1742
|
const retVal = (output || [])
|
|
2174
1743
|
.filter((e) => e != null)
|
|
2175
1744
|
.map((entry) => {
|
|
2176
|
-
if (entry === null) {
|
|
2177
|
-
return null;
|
|
2178
|
-
}
|
|
2179
1745
|
return de_EntityDescription(entry, context);
|
|
2180
1746
|
});
|
|
2181
1747
|
return retVal;
|
|
2182
1748
|
};
|
|
2183
1749
|
const de_FlowExecutionMessage = (output, context) => {
|
|
2184
|
-
return {
|
|
2185
|
-
eventType: __expectString
|
|
2186
|
-
messageId: __expectString
|
|
2187
|
-
payload: __expectString
|
|
2188
|
-
timestamp:
|
|
2189
|
-
};
|
|
1750
|
+
return take(output, {
|
|
1751
|
+
eventType: __expectString,
|
|
1752
|
+
messageId: __expectString,
|
|
1753
|
+
payload: __expectString,
|
|
1754
|
+
timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1755
|
+
});
|
|
2190
1756
|
};
|
|
2191
1757
|
const de_FlowExecutionMessages = (output, context) => {
|
|
2192
1758
|
const retVal = (output || [])
|
|
2193
1759
|
.filter((e) => e != null)
|
|
2194
1760
|
.map((entry) => {
|
|
2195
|
-
if (entry === null) {
|
|
2196
|
-
return null;
|
|
2197
|
-
}
|
|
2198
1761
|
return de_FlowExecutionMessage(entry, context);
|
|
2199
1762
|
});
|
|
2200
1763
|
return retVal;
|
|
@@ -2203,325 +1766,191 @@ const de_FlowExecutionSummaries = (output, context) => {
|
|
|
2203
1766
|
const retVal = (output || [])
|
|
2204
1767
|
.filter((e) => e != null)
|
|
2205
1768
|
.map((entry) => {
|
|
2206
|
-
if (entry === null) {
|
|
2207
|
-
return null;
|
|
2208
|
-
}
|
|
2209
1769
|
return de_FlowExecutionSummary(entry, context);
|
|
2210
1770
|
});
|
|
2211
1771
|
return retVal;
|
|
2212
1772
|
};
|
|
2213
1773
|
const de_FlowExecutionSummary = (output, context) => {
|
|
2214
|
-
return {
|
|
2215
|
-
createdAt:
|
|
2216
|
-
flowExecutionId: __expectString
|
|
2217
|
-
flowTemplateId: __expectString
|
|
2218
|
-
status: __expectString
|
|
2219
|
-
systemInstanceId: __expectString
|
|
2220
|
-
updatedAt:
|
|
2221
|
-
};
|
|
1774
|
+
return take(output, {
|
|
1775
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1776
|
+
flowExecutionId: __expectString,
|
|
1777
|
+
flowTemplateId: __expectString,
|
|
1778
|
+
status: __expectString,
|
|
1779
|
+
systemInstanceId: __expectString,
|
|
1780
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1781
|
+
});
|
|
2222
1782
|
};
|
|
2223
1783
|
const de_FlowTemplateDescription = (output, context) => {
|
|
2224
|
-
return {
|
|
2225
|
-
definition:
|
|
2226
|
-
summary:
|
|
2227
|
-
validatedNamespaceVersion: __expectLong
|
|
2228
|
-
};
|
|
1784
|
+
return take(output, {
|
|
1785
|
+
definition: _json,
|
|
1786
|
+
summary: (_) => de_FlowTemplateSummary(_, context),
|
|
1787
|
+
validatedNamespaceVersion: __expectLong,
|
|
1788
|
+
});
|
|
2229
1789
|
};
|
|
2230
1790
|
const de_FlowTemplateSummaries = (output, context) => {
|
|
2231
1791
|
const retVal = (output || [])
|
|
2232
1792
|
.filter((e) => e != null)
|
|
2233
1793
|
.map((entry) => {
|
|
2234
|
-
if (entry === null) {
|
|
2235
|
-
return null;
|
|
2236
|
-
}
|
|
2237
1794
|
return de_FlowTemplateSummary(entry, context);
|
|
2238
1795
|
});
|
|
2239
1796
|
return retVal;
|
|
2240
1797
|
};
|
|
2241
1798
|
const de_FlowTemplateSummary = (output, context) => {
|
|
2242
|
-
return {
|
|
2243
|
-
arn: __expectString
|
|
2244
|
-
createdAt:
|
|
2245
|
-
id: __expectString
|
|
2246
|
-
revisionNumber: __expectLong
|
|
2247
|
-
};
|
|
1799
|
+
return take(output, {
|
|
1800
|
+
arn: __expectString,
|
|
1801
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1802
|
+
id: __expectString,
|
|
1803
|
+
revisionNumber: __expectLong,
|
|
1804
|
+
});
|
|
2248
1805
|
};
|
|
2249
1806
|
const de_GetEntitiesResponse = (output, context) => {
|
|
2250
|
-
return {
|
|
2251
|
-
descriptions:
|
|
2252
|
-
};
|
|
1807
|
+
return take(output, {
|
|
1808
|
+
descriptions: (_) => de_EntityDescriptions(_, context),
|
|
1809
|
+
});
|
|
2253
1810
|
};
|
|
2254
1811
|
const de_GetFlowTemplateResponse = (output, context) => {
|
|
2255
|
-
return {
|
|
2256
|
-
description:
|
|
2257
|
-
};
|
|
1812
|
+
return take(output, {
|
|
1813
|
+
description: (_) => de_FlowTemplateDescription(_, context),
|
|
1814
|
+
});
|
|
2258
1815
|
};
|
|
2259
1816
|
const de_GetFlowTemplateRevisionsResponse = (output, context) => {
|
|
2260
|
-
return {
|
|
2261
|
-
nextToken: __expectString
|
|
2262
|
-
summaries:
|
|
2263
|
-
};
|
|
2264
|
-
};
|
|
2265
|
-
const de_GetNamespaceDeletionStatusResponse = (output, context) => {
|
|
2266
|
-
return {
|
|
2267
|
-
errorCode: __expectString(output.errorCode),
|
|
2268
|
-
errorMessage: __expectString(output.errorMessage),
|
|
2269
|
-
namespaceArn: __expectString(output.namespaceArn),
|
|
2270
|
-
namespaceName: __expectString(output.namespaceName),
|
|
2271
|
-
status: __expectString(output.status),
|
|
2272
|
-
};
|
|
1817
|
+
return take(output, {
|
|
1818
|
+
nextToken: __expectString,
|
|
1819
|
+
summaries: (_) => de_FlowTemplateSummaries(_, context),
|
|
1820
|
+
});
|
|
2273
1821
|
};
|
|
2274
1822
|
const de_GetSystemInstanceResponse = (output, context) => {
|
|
2275
|
-
return {
|
|
2276
|
-
description:
|
|
2277
|
-
};
|
|
1823
|
+
return take(output, {
|
|
1824
|
+
description: (_) => de_SystemInstanceDescription(_, context),
|
|
1825
|
+
});
|
|
2278
1826
|
};
|
|
2279
1827
|
const de_GetSystemTemplateResponse = (output, context) => {
|
|
2280
|
-
return {
|
|
2281
|
-
description:
|
|
2282
|
-
};
|
|
1828
|
+
return take(output, {
|
|
1829
|
+
description: (_) => de_SystemTemplateDescription(_, context),
|
|
1830
|
+
});
|
|
2283
1831
|
};
|
|
2284
1832
|
const de_GetSystemTemplateRevisionsResponse = (output, context) => {
|
|
2285
|
-
return {
|
|
2286
|
-
nextToken: __expectString
|
|
2287
|
-
summaries:
|
|
2288
|
-
};
|
|
1833
|
+
return take(output, {
|
|
1834
|
+
nextToken: __expectString,
|
|
1835
|
+
summaries: (_) => de_SystemTemplateSummaries(_, context),
|
|
1836
|
+
});
|
|
2289
1837
|
};
|
|
2290
1838
|
const de_GetUploadStatusResponse = (output, context) => {
|
|
2291
|
-
return {
|
|
2292
|
-
createdDate:
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
uploadStatus: __expectString(output.uploadStatus),
|
|
2301
|
-
};
|
|
2302
|
-
};
|
|
2303
|
-
const de_InternalFailureException = (output, context) => {
|
|
2304
|
-
return {
|
|
2305
|
-
message: __expectString(output.message),
|
|
2306
|
-
};
|
|
2307
|
-
};
|
|
2308
|
-
const de_InvalidRequestException = (output, context) => {
|
|
2309
|
-
return {
|
|
2310
|
-
message: __expectString(output.message),
|
|
2311
|
-
};
|
|
2312
|
-
};
|
|
2313
|
-
const de_LimitExceededException = (output, context) => {
|
|
2314
|
-
return {
|
|
2315
|
-
message: __expectString(output.message),
|
|
2316
|
-
};
|
|
1839
|
+
return take(output, {
|
|
1840
|
+
createdDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1841
|
+
failureReason: _json,
|
|
1842
|
+
namespaceArn: __expectString,
|
|
1843
|
+
namespaceName: __expectString,
|
|
1844
|
+
namespaceVersion: __expectLong,
|
|
1845
|
+
uploadId: __expectString,
|
|
1846
|
+
uploadStatus: __expectString,
|
|
1847
|
+
});
|
|
2317
1848
|
};
|
|
2318
1849
|
const de_ListFlowExecutionMessagesResponse = (output, context) => {
|
|
2319
|
-
return {
|
|
2320
|
-
messages:
|
|
2321
|
-
nextToken: __expectString
|
|
2322
|
-
};
|
|
2323
|
-
};
|
|
2324
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2325
|
-
return {
|
|
2326
|
-
nextToken: __expectString(output.nextToken),
|
|
2327
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
2328
|
-
};
|
|
2329
|
-
};
|
|
2330
|
-
const de_MetricsConfiguration = (output, context) => {
|
|
2331
|
-
return {
|
|
2332
|
-
cloudMetricEnabled: __expectBoolean(output.cloudMetricEnabled),
|
|
2333
|
-
metricRuleRoleArn: __expectString(output.metricRuleRoleArn),
|
|
2334
|
-
};
|
|
2335
|
-
};
|
|
2336
|
-
const de_ResourceAlreadyExistsException = (output, context) => {
|
|
2337
|
-
return {
|
|
2338
|
-
message: __expectString(output.message),
|
|
2339
|
-
};
|
|
2340
|
-
};
|
|
2341
|
-
const de_ResourceInUseException = (output, context) => {
|
|
2342
|
-
return {
|
|
2343
|
-
message: __expectString(output.message),
|
|
2344
|
-
};
|
|
2345
|
-
};
|
|
2346
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2347
|
-
return {
|
|
2348
|
-
message: __expectString(output.message),
|
|
2349
|
-
};
|
|
1850
|
+
return take(output, {
|
|
1851
|
+
messages: (_) => de_FlowExecutionMessages(_, context),
|
|
1852
|
+
nextToken: __expectString,
|
|
1853
|
+
});
|
|
2350
1854
|
};
|
|
2351
1855
|
const de_SearchEntitiesResponse = (output, context) => {
|
|
2352
|
-
return {
|
|
2353
|
-
descriptions:
|
|
2354
|
-
nextToken: __expectString
|
|
2355
|
-
};
|
|
1856
|
+
return take(output, {
|
|
1857
|
+
descriptions: (_) => de_EntityDescriptions(_, context),
|
|
1858
|
+
nextToken: __expectString,
|
|
1859
|
+
});
|
|
2356
1860
|
};
|
|
2357
1861
|
const de_SearchFlowExecutionsResponse = (output, context) => {
|
|
2358
|
-
return {
|
|
2359
|
-
nextToken: __expectString
|
|
2360
|
-
summaries:
|
|
2361
|
-
};
|
|
1862
|
+
return take(output, {
|
|
1863
|
+
nextToken: __expectString,
|
|
1864
|
+
summaries: (_) => de_FlowExecutionSummaries(_, context),
|
|
1865
|
+
});
|
|
2362
1866
|
};
|
|
2363
1867
|
const de_SearchFlowTemplatesResponse = (output, context) => {
|
|
2364
|
-
return {
|
|
2365
|
-
nextToken: __expectString
|
|
2366
|
-
summaries:
|
|
2367
|
-
};
|
|
1868
|
+
return take(output, {
|
|
1869
|
+
nextToken: __expectString,
|
|
1870
|
+
summaries: (_) => de_FlowTemplateSummaries(_, context),
|
|
1871
|
+
});
|
|
2368
1872
|
};
|
|
2369
1873
|
const de_SearchSystemInstancesResponse = (output, context) => {
|
|
2370
|
-
return {
|
|
2371
|
-
nextToken: __expectString
|
|
2372
|
-
summaries:
|
|
2373
|
-
};
|
|
1874
|
+
return take(output, {
|
|
1875
|
+
nextToken: __expectString,
|
|
1876
|
+
summaries: (_) => de_SystemInstanceSummaries(_, context),
|
|
1877
|
+
});
|
|
2374
1878
|
};
|
|
2375
1879
|
const de_SearchSystemTemplatesResponse = (output, context) => {
|
|
2376
|
-
return {
|
|
2377
|
-
nextToken: __expectString
|
|
2378
|
-
summaries:
|
|
2379
|
-
};
|
|
2380
|
-
};
|
|
2381
|
-
const de_SearchThingsResponse = (output, context) => {
|
|
2382
|
-
return {
|
|
2383
|
-
nextToken: __expectString(output.nextToken),
|
|
2384
|
-
things: output.things != null ? de_Things(output.things, context) : undefined,
|
|
2385
|
-
};
|
|
2386
|
-
};
|
|
2387
|
-
const de_StringList = (output, context) => {
|
|
2388
|
-
const retVal = (output || [])
|
|
2389
|
-
.filter((e) => e != null)
|
|
2390
|
-
.map((entry) => {
|
|
2391
|
-
if (entry === null) {
|
|
2392
|
-
return null;
|
|
2393
|
-
}
|
|
2394
|
-
return __expectString(entry);
|
|
1880
|
+
return take(output, {
|
|
1881
|
+
nextToken: __expectString,
|
|
1882
|
+
summaries: (_) => de_SystemTemplateSummaries(_, context),
|
|
2395
1883
|
});
|
|
2396
|
-
return retVal;
|
|
2397
1884
|
};
|
|
2398
1885
|
const de_SystemInstanceDescription = (output, context) => {
|
|
2399
|
-
return {
|
|
2400
|
-
definition:
|
|
2401
|
-
flowActionsRoleArn: __expectString
|
|
2402
|
-
metricsConfiguration:
|
|
2403
|
-
s3BucketName: __expectString
|
|
2404
|
-
summary:
|
|
2405
|
-
validatedDependencyRevisions:
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
validatedNamespaceVersion: __expectLong(output.validatedNamespaceVersion),
|
|
2409
|
-
};
|
|
1886
|
+
return take(output, {
|
|
1887
|
+
definition: _json,
|
|
1888
|
+
flowActionsRoleArn: __expectString,
|
|
1889
|
+
metricsConfiguration: _json,
|
|
1890
|
+
s3BucketName: __expectString,
|
|
1891
|
+
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
1892
|
+
validatedDependencyRevisions: _json,
|
|
1893
|
+
validatedNamespaceVersion: __expectLong,
|
|
1894
|
+
});
|
|
2410
1895
|
};
|
|
2411
1896
|
const de_SystemInstanceSummaries = (output, context) => {
|
|
2412
1897
|
const retVal = (output || [])
|
|
2413
1898
|
.filter((e) => e != null)
|
|
2414
1899
|
.map((entry) => {
|
|
2415
|
-
if (entry === null) {
|
|
2416
|
-
return null;
|
|
2417
|
-
}
|
|
2418
1900
|
return de_SystemInstanceSummary(entry, context);
|
|
2419
1901
|
});
|
|
2420
1902
|
return retVal;
|
|
2421
1903
|
};
|
|
2422
1904
|
const de_SystemInstanceSummary = (output, context) => {
|
|
2423
|
-
return {
|
|
2424
|
-
arn: __expectString
|
|
2425
|
-
createdAt:
|
|
2426
|
-
greengrassGroupId: __expectString
|
|
2427
|
-
greengrassGroupName: __expectString
|
|
2428
|
-
greengrassGroupVersionId: __expectString
|
|
2429
|
-
id: __expectString
|
|
2430
|
-
status: __expectString
|
|
2431
|
-
target: __expectString
|
|
2432
|
-
updatedAt:
|
|
2433
|
-
};
|
|
1905
|
+
return take(output, {
|
|
1906
|
+
arn: __expectString,
|
|
1907
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1908
|
+
greengrassGroupId: __expectString,
|
|
1909
|
+
greengrassGroupName: __expectString,
|
|
1910
|
+
greengrassGroupVersionId: __expectString,
|
|
1911
|
+
id: __expectString,
|
|
1912
|
+
status: __expectString,
|
|
1913
|
+
target: __expectString,
|
|
1914
|
+
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1915
|
+
});
|
|
2434
1916
|
};
|
|
2435
1917
|
const de_SystemTemplateDescription = (output, context) => {
|
|
2436
|
-
return {
|
|
2437
|
-
definition:
|
|
2438
|
-
summary:
|
|
2439
|
-
validatedNamespaceVersion: __expectLong
|
|
2440
|
-
};
|
|
1918
|
+
return take(output, {
|
|
1919
|
+
definition: _json,
|
|
1920
|
+
summary: (_) => de_SystemTemplateSummary(_, context),
|
|
1921
|
+
validatedNamespaceVersion: __expectLong,
|
|
1922
|
+
});
|
|
2441
1923
|
};
|
|
2442
1924
|
const de_SystemTemplateSummaries = (output, context) => {
|
|
2443
1925
|
const retVal = (output || [])
|
|
2444
1926
|
.filter((e) => e != null)
|
|
2445
1927
|
.map((entry) => {
|
|
2446
|
-
if (entry === null) {
|
|
2447
|
-
return null;
|
|
2448
|
-
}
|
|
2449
1928
|
return de_SystemTemplateSummary(entry, context);
|
|
2450
1929
|
});
|
|
2451
1930
|
return retVal;
|
|
2452
1931
|
};
|
|
2453
1932
|
const de_SystemTemplateSummary = (output, context) => {
|
|
2454
|
-
return {
|
|
2455
|
-
arn: __expectString
|
|
2456
|
-
createdAt:
|
|
2457
|
-
id: __expectString
|
|
2458
|
-
revisionNumber: __expectLong
|
|
2459
|
-
};
|
|
2460
|
-
};
|
|
2461
|
-
const de_Tag = (output, context) => {
|
|
2462
|
-
return {
|
|
2463
|
-
key: __expectString(output.key),
|
|
2464
|
-
value: __expectString(output.value),
|
|
2465
|
-
};
|
|
2466
|
-
};
|
|
2467
|
-
const de_TagList = (output, context) => {
|
|
2468
|
-
const retVal = (output || [])
|
|
2469
|
-
.filter((e) => e != null)
|
|
2470
|
-
.map((entry) => {
|
|
2471
|
-
if (entry === null) {
|
|
2472
|
-
return null;
|
|
2473
|
-
}
|
|
2474
|
-
return de_Tag(entry, context);
|
|
2475
|
-
});
|
|
2476
|
-
return retVal;
|
|
2477
|
-
};
|
|
2478
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2479
|
-
return {};
|
|
2480
|
-
};
|
|
2481
|
-
const de_Thing = (output, context) => {
|
|
2482
|
-
return {
|
|
2483
|
-
thingArn: __expectString(output.thingArn),
|
|
2484
|
-
thingName: __expectString(output.thingName),
|
|
2485
|
-
};
|
|
2486
|
-
};
|
|
2487
|
-
const de_Things = (output, context) => {
|
|
2488
|
-
const retVal = (output || [])
|
|
2489
|
-
.filter((e) => e != null)
|
|
2490
|
-
.map((entry) => {
|
|
2491
|
-
if (entry === null) {
|
|
2492
|
-
return null;
|
|
2493
|
-
}
|
|
2494
|
-
return de_Thing(entry, context);
|
|
1933
|
+
return take(output, {
|
|
1934
|
+
arn: __expectString,
|
|
1935
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1936
|
+
id: __expectString,
|
|
1937
|
+
revisionNumber: __expectLong,
|
|
2495
1938
|
});
|
|
2496
|
-
return retVal;
|
|
2497
|
-
};
|
|
2498
|
-
const de_ThrottlingException = (output, context) => {
|
|
2499
|
-
return {
|
|
2500
|
-
message: __expectString(output.message),
|
|
2501
|
-
};
|
|
2502
1939
|
};
|
|
2503
1940
|
const de_UndeploySystemInstanceResponse = (output, context) => {
|
|
2504
|
-
return {
|
|
2505
|
-
summary:
|
|
2506
|
-
};
|
|
2507
|
-
};
|
|
2508
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2509
|
-
return {};
|
|
1941
|
+
return take(output, {
|
|
1942
|
+
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
1943
|
+
});
|
|
2510
1944
|
};
|
|
2511
1945
|
const de_UpdateFlowTemplateResponse = (output, context) => {
|
|
2512
|
-
return {
|
|
2513
|
-
summary:
|
|
2514
|
-
};
|
|
1946
|
+
return take(output, {
|
|
1947
|
+
summary: (_) => de_FlowTemplateSummary(_, context),
|
|
1948
|
+
});
|
|
2515
1949
|
};
|
|
2516
1950
|
const de_UpdateSystemTemplateResponse = (output, context) => {
|
|
2517
|
-
return {
|
|
2518
|
-
summary:
|
|
2519
|
-
};
|
|
2520
|
-
};
|
|
2521
|
-
const de_UploadEntityDefinitionsResponse = (output, context) => {
|
|
2522
|
-
return {
|
|
2523
|
-
uploadId: __expectString(output.uploadId),
|
|
2524
|
-
};
|
|
1951
|
+
return take(output, {
|
|
1952
|
+
summary: (_) => de_SystemTemplateSummary(_, context),
|
|
1953
|
+
});
|
|
2525
1954
|
};
|
|
2526
1955
|
const deserializeMetadata = (output) => ({
|
|
2527
1956
|
httpStatusCode: output.statusCode,
|
|
@@ -2536,6 +1965,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2536
1965
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2537
1966
|
};
|
|
2538
1967
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1968
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2539
1969
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2540
1970
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2541
1971
|
const contents = {
|