@aws-sdk/client-iotthingsgraph 3.926.0 → 3.928.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/index.js +1005 -1318
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/IoTThingsGraphClient.js +2 -0
- package/dist-es/commands/AssociateEntityToThingCommand.js +3 -9
- package/dist-es/commands/CreateFlowTemplateCommand.js +3 -9
- package/dist-es/commands/CreateSystemInstanceCommand.js +3 -9
- package/dist-es/commands/CreateSystemTemplateCommand.js +3 -9
- package/dist-es/commands/DeleteFlowTemplateCommand.js +3 -9
- package/dist-es/commands/DeleteNamespaceCommand.js +3 -9
- package/dist-es/commands/DeleteSystemInstanceCommand.js +3 -9
- package/dist-es/commands/DeleteSystemTemplateCommand.js +3 -9
- package/dist-es/commands/DeploySystemInstanceCommand.js +3 -9
- package/dist-es/commands/DeprecateFlowTemplateCommand.js +3 -9
- package/dist-es/commands/DeprecateSystemTemplateCommand.js +3 -9
- package/dist-es/commands/DescribeNamespaceCommand.js +3 -9
- package/dist-es/commands/DissociateEntityFromThingCommand.js +3 -9
- package/dist-es/commands/GetEntitiesCommand.js +3 -9
- package/dist-es/commands/GetFlowTemplateCommand.js +3 -9
- package/dist-es/commands/GetFlowTemplateRevisionsCommand.js +3 -9
- package/dist-es/commands/GetNamespaceDeletionStatusCommand.js +3 -9
- package/dist-es/commands/GetSystemInstanceCommand.js +3 -9
- package/dist-es/commands/GetSystemTemplateCommand.js +3 -9
- package/dist-es/commands/GetSystemTemplateRevisionsCommand.js +3 -9
- package/dist-es/commands/GetUploadStatusCommand.js +3 -9
- package/dist-es/commands/ListFlowExecutionMessagesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/SearchEntitiesCommand.js +3 -9
- package/dist-es/commands/SearchFlowExecutionsCommand.js +3 -9
- package/dist-es/commands/SearchFlowTemplatesCommand.js +3 -9
- package/dist-es/commands/SearchSystemInstancesCommand.js +3 -9
- package/dist-es/commands/SearchSystemTemplatesCommand.js +3 -9
- package/dist-es/commands/SearchThingsCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UndeploySystemInstanceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateFlowTemplateCommand.js +3 -9
- package/dist-es/commands/UpdateSystemTemplateCommand.js +3 -9
- package/dist-es/commands/UploadEntityDefinitionsCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +921 -0
- package/dist-types/IoTThingsGraphClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +154 -0
- package/dist-types/ts3.4/IoTThingsGraphClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +159 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1056
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -317
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -425
|
@@ -1,1056 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { IoTThingsGraphServiceException as __BaseException } from "../models/IoTThingsGraphServiceException";
|
|
5
|
-
import { InternalFailureException, InvalidRequestException, LimitExceededException, ResourceAlreadyExistsException, ResourceInUseException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
6
|
-
export const se_AssociateEntityToThingCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("AssociateEntityToThing");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateFlowTemplateCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateFlowTemplate");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateSystemInstanceCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateSystemInstance");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateSystemTemplateCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateSystemTemplate");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteFlowTemplateCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteFlowTemplate");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteNamespaceCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteNamespace");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DeleteSystemInstanceCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DeleteSystemInstance");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DeleteSystemTemplateCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DeleteSystemTemplate");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_DeploySystemInstanceCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("DeploySystemInstance");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_DeprecateFlowTemplateCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DeprecateFlowTemplate");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_DeprecateSystemTemplateCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("DeprecateSystemTemplate");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_DescribeNamespaceCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("DescribeNamespace");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DissociateEntityFromThingCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DissociateEntityFromThing");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_GetEntitiesCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("GetEntities");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_GetFlowTemplateCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("GetFlowTemplate");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_GetFlowTemplateRevisionsCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("GetFlowTemplateRevisions");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_GetNamespaceDeletionStatusCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("GetNamespaceDeletionStatus");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_GetSystemInstanceCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("GetSystemInstance");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_GetSystemTemplateCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("GetSystemTemplate");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_GetSystemTemplateRevisionsCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("GetSystemTemplateRevisions");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_GetUploadStatusCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("GetUploadStatus");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_ListFlowExecutionMessagesCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("ListFlowExecutionMessages");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_SearchEntitiesCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("SearchEntities");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_SearchFlowExecutionsCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("SearchFlowExecutions");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(se_SearchFlowExecutionsRequest(input, context));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_SearchFlowTemplatesCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("SearchFlowTemplates");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_SearchSystemInstancesCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("SearchSystemInstances");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_SearchSystemTemplatesCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("SearchSystemTemplates");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_SearchThingsCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("SearchThings");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("TagResource");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_UndeploySystemInstanceCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("UndeploySystemInstance");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("UntagResource");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_UpdateFlowTemplateCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("UpdateFlowTemplate");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const se_UpdateSystemTemplateCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("UpdateSystemTemplate");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(_json(input));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
export const se_UploadEntityDefinitionsCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("UploadEntityDefinitions");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(_json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const de_AssociateEntityToThingCommand = async (output, context) => {
|
|
217
|
-
if (output.statusCode >= 300) {
|
|
218
|
-
return de_CommandError(output, context);
|
|
219
|
-
}
|
|
220
|
-
const data = await parseBody(output.body, context);
|
|
221
|
-
let contents = {};
|
|
222
|
-
contents = _json(data);
|
|
223
|
-
const response = {
|
|
224
|
-
$metadata: deserializeMetadata(output),
|
|
225
|
-
...contents,
|
|
226
|
-
};
|
|
227
|
-
return response;
|
|
228
|
-
};
|
|
229
|
-
export const de_CreateFlowTemplateCommand = async (output, context) => {
|
|
230
|
-
if (output.statusCode >= 300) {
|
|
231
|
-
return de_CommandError(output, context);
|
|
232
|
-
}
|
|
233
|
-
const data = await parseBody(output.body, context);
|
|
234
|
-
let contents = {};
|
|
235
|
-
contents = de_CreateFlowTemplateResponse(data, context);
|
|
236
|
-
const response = {
|
|
237
|
-
$metadata: deserializeMetadata(output),
|
|
238
|
-
...contents,
|
|
239
|
-
};
|
|
240
|
-
return response;
|
|
241
|
-
};
|
|
242
|
-
export const de_CreateSystemInstanceCommand = async (output, context) => {
|
|
243
|
-
if (output.statusCode >= 300) {
|
|
244
|
-
return de_CommandError(output, context);
|
|
245
|
-
}
|
|
246
|
-
const data = await parseBody(output.body, context);
|
|
247
|
-
let contents = {};
|
|
248
|
-
contents = de_CreateSystemInstanceResponse(data, context);
|
|
249
|
-
const response = {
|
|
250
|
-
$metadata: deserializeMetadata(output),
|
|
251
|
-
...contents,
|
|
252
|
-
};
|
|
253
|
-
return response;
|
|
254
|
-
};
|
|
255
|
-
export const de_CreateSystemTemplateCommand = async (output, context) => {
|
|
256
|
-
if (output.statusCode >= 300) {
|
|
257
|
-
return de_CommandError(output, context);
|
|
258
|
-
}
|
|
259
|
-
const data = await parseBody(output.body, context);
|
|
260
|
-
let contents = {};
|
|
261
|
-
contents = de_CreateSystemTemplateResponse(data, context);
|
|
262
|
-
const response = {
|
|
263
|
-
$metadata: deserializeMetadata(output),
|
|
264
|
-
...contents,
|
|
265
|
-
};
|
|
266
|
-
return response;
|
|
267
|
-
};
|
|
268
|
-
export const de_DeleteFlowTemplateCommand = async (output, context) => {
|
|
269
|
-
if (output.statusCode >= 300) {
|
|
270
|
-
return de_CommandError(output, context);
|
|
271
|
-
}
|
|
272
|
-
const data = await parseBody(output.body, context);
|
|
273
|
-
let contents = {};
|
|
274
|
-
contents = _json(data);
|
|
275
|
-
const response = {
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
...contents,
|
|
278
|
-
};
|
|
279
|
-
return response;
|
|
280
|
-
};
|
|
281
|
-
export const de_DeleteNamespaceCommand = async (output, context) => {
|
|
282
|
-
if (output.statusCode >= 300) {
|
|
283
|
-
return de_CommandError(output, context);
|
|
284
|
-
}
|
|
285
|
-
const data = await parseBody(output.body, context);
|
|
286
|
-
let contents = {};
|
|
287
|
-
contents = _json(data);
|
|
288
|
-
const response = {
|
|
289
|
-
$metadata: deserializeMetadata(output),
|
|
290
|
-
...contents,
|
|
291
|
-
};
|
|
292
|
-
return response;
|
|
293
|
-
};
|
|
294
|
-
export const de_DeleteSystemInstanceCommand = async (output, context) => {
|
|
295
|
-
if (output.statusCode >= 300) {
|
|
296
|
-
return de_CommandError(output, context);
|
|
297
|
-
}
|
|
298
|
-
const data = await parseBody(output.body, context);
|
|
299
|
-
let contents = {};
|
|
300
|
-
contents = _json(data);
|
|
301
|
-
const response = {
|
|
302
|
-
$metadata: deserializeMetadata(output),
|
|
303
|
-
...contents,
|
|
304
|
-
};
|
|
305
|
-
return response;
|
|
306
|
-
};
|
|
307
|
-
export const de_DeleteSystemTemplateCommand = async (output, context) => {
|
|
308
|
-
if (output.statusCode >= 300) {
|
|
309
|
-
return de_CommandError(output, context);
|
|
310
|
-
}
|
|
311
|
-
const data = await parseBody(output.body, context);
|
|
312
|
-
let contents = {};
|
|
313
|
-
contents = _json(data);
|
|
314
|
-
const response = {
|
|
315
|
-
$metadata: deserializeMetadata(output),
|
|
316
|
-
...contents,
|
|
317
|
-
};
|
|
318
|
-
return response;
|
|
319
|
-
};
|
|
320
|
-
export const de_DeploySystemInstanceCommand = async (output, context) => {
|
|
321
|
-
if (output.statusCode >= 300) {
|
|
322
|
-
return de_CommandError(output, context);
|
|
323
|
-
}
|
|
324
|
-
const data = await parseBody(output.body, context);
|
|
325
|
-
let contents = {};
|
|
326
|
-
contents = de_DeploySystemInstanceResponse(data, context);
|
|
327
|
-
const response = {
|
|
328
|
-
$metadata: deserializeMetadata(output),
|
|
329
|
-
...contents,
|
|
330
|
-
};
|
|
331
|
-
return response;
|
|
332
|
-
};
|
|
333
|
-
export const de_DeprecateFlowTemplateCommand = async (output, context) => {
|
|
334
|
-
if (output.statusCode >= 300) {
|
|
335
|
-
return de_CommandError(output, context);
|
|
336
|
-
}
|
|
337
|
-
const data = await parseBody(output.body, context);
|
|
338
|
-
let contents = {};
|
|
339
|
-
contents = _json(data);
|
|
340
|
-
const response = {
|
|
341
|
-
$metadata: deserializeMetadata(output),
|
|
342
|
-
...contents,
|
|
343
|
-
};
|
|
344
|
-
return response;
|
|
345
|
-
};
|
|
346
|
-
export const de_DeprecateSystemTemplateCommand = async (output, context) => {
|
|
347
|
-
if (output.statusCode >= 300) {
|
|
348
|
-
return de_CommandError(output, context);
|
|
349
|
-
}
|
|
350
|
-
const data = await parseBody(output.body, context);
|
|
351
|
-
let contents = {};
|
|
352
|
-
contents = _json(data);
|
|
353
|
-
const response = {
|
|
354
|
-
$metadata: deserializeMetadata(output),
|
|
355
|
-
...contents,
|
|
356
|
-
};
|
|
357
|
-
return response;
|
|
358
|
-
};
|
|
359
|
-
export const de_DescribeNamespaceCommand = async (output, context) => {
|
|
360
|
-
if (output.statusCode >= 300) {
|
|
361
|
-
return de_CommandError(output, context);
|
|
362
|
-
}
|
|
363
|
-
const data = await parseBody(output.body, context);
|
|
364
|
-
let contents = {};
|
|
365
|
-
contents = _json(data);
|
|
366
|
-
const response = {
|
|
367
|
-
$metadata: deserializeMetadata(output),
|
|
368
|
-
...contents,
|
|
369
|
-
};
|
|
370
|
-
return response;
|
|
371
|
-
};
|
|
372
|
-
export const de_DissociateEntityFromThingCommand = async (output, context) => {
|
|
373
|
-
if (output.statusCode >= 300) {
|
|
374
|
-
return de_CommandError(output, context);
|
|
375
|
-
}
|
|
376
|
-
const data = await parseBody(output.body, context);
|
|
377
|
-
let contents = {};
|
|
378
|
-
contents = _json(data);
|
|
379
|
-
const response = {
|
|
380
|
-
$metadata: deserializeMetadata(output),
|
|
381
|
-
...contents,
|
|
382
|
-
};
|
|
383
|
-
return response;
|
|
384
|
-
};
|
|
385
|
-
export const de_GetEntitiesCommand = async (output, context) => {
|
|
386
|
-
if (output.statusCode >= 300) {
|
|
387
|
-
return de_CommandError(output, context);
|
|
388
|
-
}
|
|
389
|
-
const data = await parseBody(output.body, context);
|
|
390
|
-
let contents = {};
|
|
391
|
-
contents = de_GetEntitiesResponse(data, context);
|
|
392
|
-
const response = {
|
|
393
|
-
$metadata: deserializeMetadata(output),
|
|
394
|
-
...contents,
|
|
395
|
-
};
|
|
396
|
-
return response;
|
|
397
|
-
};
|
|
398
|
-
export const de_GetFlowTemplateCommand = async (output, context) => {
|
|
399
|
-
if (output.statusCode >= 300) {
|
|
400
|
-
return de_CommandError(output, context);
|
|
401
|
-
}
|
|
402
|
-
const data = await parseBody(output.body, context);
|
|
403
|
-
let contents = {};
|
|
404
|
-
contents = de_GetFlowTemplateResponse(data, context);
|
|
405
|
-
const response = {
|
|
406
|
-
$metadata: deserializeMetadata(output),
|
|
407
|
-
...contents,
|
|
408
|
-
};
|
|
409
|
-
return response;
|
|
410
|
-
};
|
|
411
|
-
export const de_GetFlowTemplateRevisionsCommand = async (output, context) => {
|
|
412
|
-
if (output.statusCode >= 300) {
|
|
413
|
-
return de_CommandError(output, context);
|
|
414
|
-
}
|
|
415
|
-
const data = await parseBody(output.body, context);
|
|
416
|
-
let contents = {};
|
|
417
|
-
contents = de_GetFlowTemplateRevisionsResponse(data, context);
|
|
418
|
-
const response = {
|
|
419
|
-
$metadata: deserializeMetadata(output),
|
|
420
|
-
...contents,
|
|
421
|
-
};
|
|
422
|
-
return response;
|
|
423
|
-
};
|
|
424
|
-
export const de_GetNamespaceDeletionStatusCommand = async (output, context) => {
|
|
425
|
-
if (output.statusCode >= 300) {
|
|
426
|
-
return de_CommandError(output, context);
|
|
427
|
-
}
|
|
428
|
-
const data = await parseBody(output.body, context);
|
|
429
|
-
let contents = {};
|
|
430
|
-
contents = _json(data);
|
|
431
|
-
const response = {
|
|
432
|
-
$metadata: deserializeMetadata(output),
|
|
433
|
-
...contents,
|
|
434
|
-
};
|
|
435
|
-
return response;
|
|
436
|
-
};
|
|
437
|
-
export const de_GetSystemInstanceCommand = async (output, context) => {
|
|
438
|
-
if (output.statusCode >= 300) {
|
|
439
|
-
return de_CommandError(output, context);
|
|
440
|
-
}
|
|
441
|
-
const data = await parseBody(output.body, context);
|
|
442
|
-
let contents = {};
|
|
443
|
-
contents = de_GetSystemInstanceResponse(data, context);
|
|
444
|
-
const response = {
|
|
445
|
-
$metadata: deserializeMetadata(output),
|
|
446
|
-
...contents,
|
|
447
|
-
};
|
|
448
|
-
return response;
|
|
449
|
-
};
|
|
450
|
-
export const de_GetSystemTemplateCommand = async (output, context) => {
|
|
451
|
-
if (output.statusCode >= 300) {
|
|
452
|
-
return de_CommandError(output, context);
|
|
453
|
-
}
|
|
454
|
-
const data = await parseBody(output.body, context);
|
|
455
|
-
let contents = {};
|
|
456
|
-
contents = de_GetSystemTemplateResponse(data, context);
|
|
457
|
-
const response = {
|
|
458
|
-
$metadata: deserializeMetadata(output),
|
|
459
|
-
...contents,
|
|
460
|
-
};
|
|
461
|
-
return response;
|
|
462
|
-
};
|
|
463
|
-
export const de_GetSystemTemplateRevisionsCommand = async (output, context) => {
|
|
464
|
-
if (output.statusCode >= 300) {
|
|
465
|
-
return de_CommandError(output, context);
|
|
466
|
-
}
|
|
467
|
-
const data = await parseBody(output.body, context);
|
|
468
|
-
let contents = {};
|
|
469
|
-
contents = de_GetSystemTemplateRevisionsResponse(data, context);
|
|
470
|
-
const response = {
|
|
471
|
-
$metadata: deserializeMetadata(output),
|
|
472
|
-
...contents,
|
|
473
|
-
};
|
|
474
|
-
return response;
|
|
475
|
-
};
|
|
476
|
-
export const de_GetUploadStatusCommand = async (output, context) => {
|
|
477
|
-
if (output.statusCode >= 300) {
|
|
478
|
-
return de_CommandError(output, context);
|
|
479
|
-
}
|
|
480
|
-
const data = await parseBody(output.body, context);
|
|
481
|
-
let contents = {};
|
|
482
|
-
contents = de_GetUploadStatusResponse(data, context);
|
|
483
|
-
const response = {
|
|
484
|
-
$metadata: deserializeMetadata(output),
|
|
485
|
-
...contents,
|
|
486
|
-
};
|
|
487
|
-
return response;
|
|
488
|
-
};
|
|
489
|
-
export const de_ListFlowExecutionMessagesCommand = async (output, context) => {
|
|
490
|
-
if (output.statusCode >= 300) {
|
|
491
|
-
return de_CommandError(output, context);
|
|
492
|
-
}
|
|
493
|
-
const data = await parseBody(output.body, context);
|
|
494
|
-
let contents = {};
|
|
495
|
-
contents = de_ListFlowExecutionMessagesResponse(data, context);
|
|
496
|
-
const response = {
|
|
497
|
-
$metadata: deserializeMetadata(output),
|
|
498
|
-
...contents,
|
|
499
|
-
};
|
|
500
|
-
return response;
|
|
501
|
-
};
|
|
502
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
503
|
-
if (output.statusCode >= 300) {
|
|
504
|
-
return de_CommandError(output, context);
|
|
505
|
-
}
|
|
506
|
-
const data = await parseBody(output.body, context);
|
|
507
|
-
let contents = {};
|
|
508
|
-
contents = _json(data);
|
|
509
|
-
const response = {
|
|
510
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
-
...contents,
|
|
512
|
-
};
|
|
513
|
-
return response;
|
|
514
|
-
};
|
|
515
|
-
export const de_SearchEntitiesCommand = async (output, context) => {
|
|
516
|
-
if (output.statusCode >= 300) {
|
|
517
|
-
return de_CommandError(output, context);
|
|
518
|
-
}
|
|
519
|
-
const data = await parseBody(output.body, context);
|
|
520
|
-
let contents = {};
|
|
521
|
-
contents = de_SearchEntitiesResponse(data, context);
|
|
522
|
-
const response = {
|
|
523
|
-
$metadata: deserializeMetadata(output),
|
|
524
|
-
...contents,
|
|
525
|
-
};
|
|
526
|
-
return response;
|
|
527
|
-
};
|
|
528
|
-
export const de_SearchFlowExecutionsCommand = async (output, context) => {
|
|
529
|
-
if (output.statusCode >= 300) {
|
|
530
|
-
return de_CommandError(output, context);
|
|
531
|
-
}
|
|
532
|
-
const data = await parseBody(output.body, context);
|
|
533
|
-
let contents = {};
|
|
534
|
-
contents = de_SearchFlowExecutionsResponse(data, context);
|
|
535
|
-
const response = {
|
|
536
|
-
$metadata: deserializeMetadata(output),
|
|
537
|
-
...contents,
|
|
538
|
-
};
|
|
539
|
-
return response;
|
|
540
|
-
};
|
|
541
|
-
export const de_SearchFlowTemplatesCommand = async (output, context) => {
|
|
542
|
-
if (output.statusCode >= 300) {
|
|
543
|
-
return de_CommandError(output, context);
|
|
544
|
-
}
|
|
545
|
-
const data = await parseBody(output.body, context);
|
|
546
|
-
let contents = {};
|
|
547
|
-
contents = de_SearchFlowTemplatesResponse(data, context);
|
|
548
|
-
const response = {
|
|
549
|
-
$metadata: deserializeMetadata(output),
|
|
550
|
-
...contents,
|
|
551
|
-
};
|
|
552
|
-
return response;
|
|
553
|
-
};
|
|
554
|
-
export const de_SearchSystemInstancesCommand = async (output, context) => {
|
|
555
|
-
if (output.statusCode >= 300) {
|
|
556
|
-
return de_CommandError(output, context);
|
|
557
|
-
}
|
|
558
|
-
const data = await parseBody(output.body, context);
|
|
559
|
-
let contents = {};
|
|
560
|
-
contents = de_SearchSystemInstancesResponse(data, context);
|
|
561
|
-
const response = {
|
|
562
|
-
$metadata: deserializeMetadata(output),
|
|
563
|
-
...contents,
|
|
564
|
-
};
|
|
565
|
-
return response;
|
|
566
|
-
};
|
|
567
|
-
export const de_SearchSystemTemplatesCommand = async (output, context) => {
|
|
568
|
-
if (output.statusCode >= 300) {
|
|
569
|
-
return de_CommandError(output, context);
|
|
570
|
-
}
|
|
571
|
-
const data = await parseBody(output.body, context);
|
|
572
|
-
let contents = {};
|
|
573
|
-
contents = de_SearchSystemTemplatesResponse(data, context);
|
|
574
|
-
const response = {
|
|
575
|
-
$metadata: deserializeMetadata(output),
|
|
576
|
-
...contents,
|
|
577
|
-
};
|
|
578
|
-
return response;
|
|
579
|
-
};
|
|
580
|
-
export const de_SearchThingsCommand = async (output, context) => {
|
|
581
|
-
if (output.statusCode >= 300) {
|
|
582
|
-
return de_CommandError(output, context);
|
|
583
|
-
}
|
|
584
|
-
const data = await parseBody(output.body, context);
|
|
585
|
-
let contents = {};
|
|
586
|
-
contents = _json(data);
|
|
587
|
-
const response = {
|
|
588
|
-
$metadata: deserializeMetadata(output),
|
|
589
|
-
...contents,
|
|
590
|
-
};
|
|
591
|
-
return response;
|
|
592
|
-
};
|
|
593
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
594
|
-
if (output.statusCode >= 300) {
|
|
595
|
-
return de_CommandError(output, context);
|
|
596
|
-
}
|
|
597
|
-
const data = await parseBody(output.body, context);
|
|
598
|
-
let contents = {};
|
|
599
|
-
contents = _json(data);
|
|
600
|
-
const response = {
|
|
601
|
-
$metadata: deserializeMetadata(output),
|
|
602
|
-
...contents,
|
|
603
|
-
};
|
|
604
|
-
return response;
|
|
605
|
-
};
|
|
606
|
-
export const de_UndeploySystemInstanceCommand = async (output, context) => {
|
|
607
|
-
if (output.statusCode >= 300) {
|
|
608
|
-
return de_CommandError(output, context);
|
|
609
|
-
}
|
|
610
|
-
const data = await parseBody(output.body, context);
|
|
611
|
-
let contents = {};
|
|
612
|
-
contents = de_UndeploySystemInstanceResponse(data, context);
|
|
613
|
-
const response = {
|
|
614
|
-
$metadata: deserializeMetadata(output),
|
|
615
|
-
...contents,
|
|
616
|
-
};
|
|
617
|
-
return response;
|
|
618
|
-
};
|
|
619
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
620
|
-
if (output.statusCode >= 300) {
|
|
621
|
-
return de_CommandError(output, context);
|
|
622
|
-
}
|
|
623
|
-
const data = await parseBody(output.body, context);
|
|
624
|
-
let contents = {};
|
|
625
|
-
contents = _json(data);
|
|
626
|
-
const response = {
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
...contents,
|
|
629
|
-
};
|
|
630
|
-
return response;
|
|
631
|
-
};
|
|
632
|
-
export const de_UpdateFlowTemplateCommand = async (output, context) => {
|
|
633
|
-
if (output.statusCode >= 300) {
|
|
634
|
-
return de_CommandError(output, context);
|
|
635
|
-
}
|
|
636
|
-
const data = await parseBody(output.body, context);
|
|
637
|
-
let contents = {};
|
|
638
|
-
contents = de_UpdateFlowTemplateResponse(data, context);
|
|
639
|
-
const response = {
|
|
640
|
-
$metadata: deserializeMetadata(output),
|
|
641
|
-
...contents,
|
|
642
|
-
};
|
|
643
|
-
return response;
|
|
644
|
-
};
|
|
645
|
-
export const de_UpdateSystemTemplateCommand = async (output, context) => {
|
|
646
|
-
if (output.statusCode >= 300) {
|
|
647
|
-
return de_CommandError(output, context);
|
|
648
|
-
}
|
|
649
|
-
const data = await parseBody(output.body, context);
|
|
650
|
-
let contents = {};
|
|
651
|
-
contents = de_UpdateSystemTemplateResponse(data, context);
|
|
652
|
-
const response = {
|
|
653
|
-
$metadata: deserializeMetadata(output),
|
|
654
|
-
...contents,
|
|
655
|
-
};
|
|
656
|
-
return response;
|
|
657
|
-
};
|
|
658
|
-
export const de_UploadEntityDefinitionsCommand = async (output, context) => {
|
|
659
|
-
if (output.statusCode >= 300) {
|
|
660
|
-
return de_CommandError(output, context);
|
|
661
|
-
}
|
|
662
|
-
const data = await parseBody(output.body, context);
|
|
663
|
-
let contents = {};
|
|
664
|
-
contents = _json(data);
|
|
665
|
-
const response = {
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
...contents,
|
|
668
|
-
};
|
|
669
|
-
return response;
|
|
670
|
-
};
|
|
671
|
-
const de_CommandError = async (output, context) => {
|
|
672
|
-
const parsedOutput = {
|
|
673
|
-
...output,
|
|
674
|
-
body: await parseErrorBody(output.body, context),
|
|
675
|
-
};
|
|
676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
|
-
switch (errorCode) {
|
|
678
|
-
case "InternalFailureException":
|
|
679
|
-
case "com.amazonaws.iotthingsgraph#InternalFailureException":
|
|
680
|
-
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
681
|
-
case "InvalidRequestException":
|
|
682
|
-
case "com.amazonaws.iotthingsgraph#InvalidRequestException":
|
|
683
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
684
|
-
case "ResourceNotFoundException":
|
|
685
|
-
case "com.amazonaws.iotthingsgraph#ResourceNotFoundException":
|
|
686
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
687
|
-
case "ThrottlingException":
|
|
688
|
-
case "com.amazonaws.iotthingsgraph#ThrottlingException":
|
|
689
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
690
|
-
case "LimitExceededException":
|
|
691
|
-
case "com.amazonaws.iotthingsgraph#LimitExceededException":
|
|
692
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ResourceAlreadyExistsException":
|
|
694
|
-
case "com.amazonaws.iotthingsgraph#ResourceAlreadyExistsException":
|
|
695
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ResourceInUseException":
|
|
697
|
-
case "com.amazonaws.iotthingsgraph#ResourceInUseException":
|
|
698
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
699
|
-
default:
|
|
700
|
-
const parsedBody = parsedOutput.body;
|
|
701
|
-
return throwDefaultError({
|
|
702
|
-
output,
|
|
703
|
-
parsedBody,
|
|
704
|
-
errorCode,
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
};
|
|
708
|
-
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
709
|
-
const body = parsedOutput.body;
|
|
710
|
-
const deserialized = _json(body);
|
|
711
|
-
const exception = new InternalFailureException({
|
|
712
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
713
|
-
...deserialized,
|
|
714
|
-
});
|
|
715
|
-
return __decorateServiceException(exception, body);
|
|
716
|
-
};
|
|
717
|
-
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
718
|
-
const body = parsedOutput.body;
|
|
719
|
-
const deserialized = _json(body);
|
|
720
|
-
const exception = new InvalidRequestException({
|
|
721
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
722
|
-
...deserialized,
|
|
723
|
-
});
|
|
724
|
-
return __decorateServiceException(exception, body);
|
|
725
|
-
};
|
|
726
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
727
|
-
const body = parsedOutput.body;
|
|
728
|
-
const deserialized = _json(body);
|
|
729
|
-
const exception = new LimitExceededException({
|
|
730
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
731
|
-
...deserialized,
|
|
732
|
-
});
|
|
733
|
-
return __decorateServiceException(exception, body);
|
|
734
|
-
};
|
|
735
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
736
|
-
const body = parsedOutput.body;
|
|
737
|
-
const deserialized = _json(body);
|
|
738
|
-
const exception = new ResourceAlreadyExistsException({
|
|
739
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
740
|
-
...deserialized,
|
|
741
|
-
});
|
|
742
|
-
return __decorateServiceException(exception, body);
|
|
743
|
-
};
|
|
744
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
745
|
-
const body = parsedOutput.body;
|
|
746
|
-
const deserialized = _json(body);
|
|
747
|
-
const exception = new ResourceInUseException({
|
|
748
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
749
|
-
...deserialized,
|
|
750
|
-
});
|
|
751
|
-
return __decorateServiceException(exception, body);
|
|
752
|
-
};
|
|
753
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
754
|
-
const body = parsedOutput.body;
|
|
755
|
-
const deserialized = _json(body);
|
|
756
|
-
const exception = new ResourceNotFoundException({
|
|
757
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
758
|
-
...deserialized,
|
|
759
|
-
});
|
|
760
|
-
return __decorateServiceException(exception, body);
|
|
761
|
-
};
|
|
762
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
763
|
-
const body = parsedOutput.body;
|
|
764
|
-
const deserialized = _json(body);
|
|
765
|
-
const exception = new ThrottlingException({
|
|
766
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
767
|
-
...deserialized,
|
|
768
|
-
});
|
|
769
|
-
return __decorateServiceException(exception, body);
|
|
770
|
-
};
|
|
771
|
-
const se_SearchFlowExecutionsRequest = (input, context) => {
|
|
772
|
-
return take(input, {
|
|
773
|
-
endTime: (_) => _.getTime() / 1_000,
|
|
774
|
-
flowExecutionId: [],
|
|
775
|
-
maxResults: [],
|
|
776
|
-
nextToken: [],
|
|
777
|
-
startTime: (_) => _.getTime() / 1_000,
|
|
778
|
-
systemInstanceId: [],
|
|
779
|
-
});
|
|
780
|
-
};
|
|
781
|
-
const de_CreateFlowTemplateResponse = (output, context) => {
|
|
782
|
-
return take(output, {
|
|
783
|
-
summary: (_) => de_FlowTemplateSummary(_, context),
|
|
784
|
-
});
|
|
785
|
-
};
|
|
786
|
-
const de_CreateSystemInstanceResponse = (output, context) => {
|
|
787
|
-
return take(output, {
|
|
788
|
-
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
789
|
-
});
|
|
790
|
-
};
|
|
791
|
-
const de_CreateSystemTemplateResponse = (output, context) => {
|
|
792
|
-
return take(output, {
|
|
793
|
-
summary: (_) => de_SystemTemplateSummary(_, context),
|
|
794
|
-
});
|
|
795
|
-
};
|
|
796
|
-
const de_DeploySystemInstanceResponse = (output, context) => {
|
|
797
|
-
return take(output, {
|
|
798
|
-
greengrassDeploymentId: __expectString,
|
|
799
|
-
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
800
|
-
});
|
|
801
|
-
};
|
|
802
|
-
const de_EntityDescription = (output, context) => {
|
|
803
|
-
return take(output, {
|
|
804
|
-
arn: __expectString,
|
|
805
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
806
|
-
definition: _json,
|
|
807
|
-
id: __expectString,
|
|
808
|
-
type: __expectString,
|
|
809
|
-
});
|
|
810
|
-
};
|
|
811
|
-
const de_EntityDescriptions = (output, context) => {
|
|
812
|
-
const retVal = (output || [])
|
|
813
|
-
.filter((e) => e != null)
|
|
814
|
-
.map((entry) => {
|
|
815
|
-
return de_EntityDescription(entry, context);
|
|
816
|
-
});
|
|
817
|
-
return retVal;
|
|
818
|
-
};
|
|
819
|
-
const de_FlowExecutionMessage = (output, context) => {
|
|
820
|
-
return take(output, {
|
|
821
|
-
eventType: __expectString,
|
|
822
|
-
messageId: __expectString,
|
|
823
|
-
payload: __expectString,
|
|
824
|
-
timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
825
|
-
});
|
|
826
|
-
};
|
|
827
|
-
const de_FlowExecutionMessages = (output, context) => {
|
|
828
|
-
const retVal = (output || [])
|
|
829
|
-
.filter((e) => e != null)
|
|
830
|
-
.map((entry) => {
|
|
831
|
-
return de_FlowExecutionMessage(entry, context);
|
|
832
|
-
});
|
|
833
|
-
return retVal;
|
|
834
|
-
};
|
|
835
|
-
const de_FlowExecutionSummaries = (output, context) => {
|
|
836
|
-
const retVal = (output || [])
|
|
837
|
-
.filter((e) => e != null)
|
|
838
|
-
.map((entry) => {
|
|
839
|
-
return de_FlowExecutionSummary(entry, context);
|
|
840
|
-
});
|
|
841
|
-
return retVal;
|
|
842
|
-
};
|
|
843
|
-
const de_FlowExecutionSummary = (output, context) => {
|
|
844
|
-
return take(output, {
|
|
845
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
846
|
-
flowExecutionId: __expectString,
|
|
847
|
-
flowTemplateId: __expectString,
|
|
848
|
-
status: __expectString,
|
|
849
|
-
systemInstanceId: __expectString,
|
|
850
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
851
|
-
});
|
|
852
|
-
};
|
|
853
|
-
const de_FlowTemplateDescription = (output, context) => {
|
|
854
|
-
return take(output, {
|
|
855
|
-
definition: _json,
|
|
856
|
-
summary: (_) => de_FlowTemplateSummary(_, context),
|
|
857
|
-
validatedNamespaceVersion: __expectLong,
|
|
858
|
-
});
|
|
859
|
-
};
|
|
860
|
-
const de_FlowTemplateSummaries = (output, context) => {
|
|
861
|
-
const retVal = (output || [])
|
|
862
|
-
.filter((e) => e != null)
|
|
863
|
-
.map((entry) => {
|
|
864
|
-
return de_FlowTemplateSummary(entry, context);
|
|
865
|
-
});
|
|
866
|
-
return retVal;
|
|
867
|
-
};
|
|
868
|
-
const de_FlowTemplateSummary = (output, context) => {
|
|
869
|
-
return take(output, {
|
|
870
|
-
arn: __expectString,
|
|
871
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
872
|
-
id: __expectString,
|
|
873
|
-
revisionNumber: __expectLong,
|
|
874
|
-
});
|
|
875
|
-
};
|
|
876
|
-
const de_GetEntitiesResponse = (output, context) => {
|
|
877
|
-
return take(output, {
|
|
878
|
-
descriptions: (_) => de_EntityDescriptions(_, context),
|
|
879
|
-
});
|
|
880
|
-
};
|
|
881
|
-
const de_GetFlowTemplateResponse = (output, context) => {
|
|
882
|
-
return take(output, {
|
|
883
|
-
description: (_) => de_FlowTemplateDescription(_, context),
|
|
884
|
-
});
|
|
885
|
-
};
|
|
886
|
-
const de_GetFlowTemplateRevisionsResponse = (output, context) => {
|
|
887
|
-
return take(output, {
|
|
888
|
-
nextToken: __expectString,
|
|
889
|
-
summaries: (_) => de_FlowTemplateSummaries(_, context),
|
|
890
|
-
});
|
|
891
|
-
};
|
|
892
|
-
const de_GetSystemInstanceResponse = (output, context) => {
|
|
893
|
-
return take(output, {
|
|
894
|
-
description: (_) => de_SystemInstanceDescription(_, context),
|
|
895
|
-
});
|
|
896
|
-
};
|
|
897
|
-
const de_GetSystemTemplateResponse = (output, context) => {
|
|
898
|
-
return take(output, {
|
|
899
|
-
description: (_) => de_SystemTemplateDescription(_, context),
|
|
900
|
-
});
|
|
901
|
-
};
|
|
902
|
-
const de_GetSystemTemplateRevisionsResponse = (output, context) => {
|
|
903
|
-
return take(output, {
|
|
904
|
-
nextToken: __expectString,
|
|
905
|
-
summaries: (_) => de_SystemTemplateSummaries(_, context),
|
|
906
|
-
});
|
|
907
|
-
};
|
|
908
|
-
const de_GetUploadStatusResponse = (output, context) => {
|
|
909
|
-
return take(output, {
|
|
910
|
-
createdDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
911
|
-
failureReason: _json,
|
|
912
|
-
namespaceArn: __expectString,
|
|
913
|
-
namespaceName: __expectString,
|
|
914
|
-
namespaceVersion: __expectLong,
|
|
915
|
-
uploadId: __expectString,
|
|
916
|
-
uploadStatus: __expectString,
|
|
917
|
-
});
|
|
918
|
-
};
|
|
919
|
-
const de_ListFlowExecutionMessagesResponse = (output, context) => {
|
|
920
|
-
return take(output, {
|
|
921
|
-
messages: (_) => de_FlowExecutionMessages(_, context),
|
|
922
|
-
nextToken: __expectString,
|
|
923
|
-
});
|
|
924
|
-
};
|
|
925
|
-
const de_SearchEntitiesResponse = (output, context) => {
|
|
926
|
-
return take(output, {
|
|
927
|
-
descriptions: (_) => de_EntityDescriptions(_, context),
|
|
928
|
-
nextToken: __expectString,
|
|
929
|
-
});
|
|
930
|
-
};
|
|
931
|
-
const de_SearchFlowExecutionsResponse = (output, context) => {
|
|
932
|
-
return take(output, {
|
|
933
|
-
nextToken: __expectString,
|
|
934
|
-
summaries: (_) => de_FlowExecutionSummaries(_, context),
|
|
935
|
-
});
|
|
936
|
-
};
|
|
937
|
-
const de_SearchFlowTemplatesResponse = (output, context) => {
|
|
938
|
-
return take(output, {
|
|
939
|
-
nextToken: __expectString,
|
|
940
|
-
summaries: (_) => de_FlowTemplateSummaries(_, context),
|
|
941
|
-
});
|
|
942
|
-
};
|
|
943
|
-
const de_SearchSystemInstancesResponse = (output, context) => {
|
|
944
|
-
return take(output, {
|
|
945
|
-
nextToken: __expectString,
|
|
946
|
-
summaries: (_) => de_SystemInstanceSummaries(_, context),
|
|
947
|
-
});
|
|
948
|
-
};
|
|
949
|
-
const de_SearchSystemTemplatesResponse = (output, context) => {
|
|
950
|
-
return take(output, {
|
|
951
|
-
nextToken: __expectString,
|
|
952
|
-
summaries: (_) => de_SystemTemplateSummaries(_, context),
|
|
953
|
-
});
|
|
954
|
-
};
|
|
955
|
-
const de_SystemInstanceDescription = (output, context) => {
|
|
956
|
-
return take(output, {
|
|
957
|
-
definition: _json,
|
|
958
|
-
flowActionsRoleArn: __expectString,
|
|
959
|
-
metricsConfiguration: _json,
|
|
960
|
-
s3BucketName: __expectString,
|
|
961
|
-
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
962
|
-
validatedDependencyRevisions: _json,
|
|
963
|
-
validatedNamespaceVersion: __expectLong,
|
|
964
|
-
});
|
|
965
|
-
};
|
|
966
|
-
const de_SystemInstanceSummaries = (output, context) => {
|
|
967
|
-
const retVal = (output || [])
|
|
968
|
-
.filter((e) => e != null)
|
|
969
|
-
.map((entry) => {
|
|
970
|
-
return de_SystemInstanceSummary(entry, context);
|
|
971
|
-
});
|
|
972
|
-
return retVal;
|
|
973
|
-
};
|
|
974
|
-
const de_SystemInstanceSummary = (output, context) => {
|
|
975
|
-
return take(output, {
|
|
976
|
-
arn: __expectString,
|
|
977
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
978
|
-
greengrassGroupId: __expectString,
|
|
979
|
-
greengrassGroupName: __expectString,
|
|
980
|
-
greengrassGroupVersionId: __expectString,
|
|
981
|
-
id: __expectString,
|
|
982
|
-
status: __expectString,
|
|
983
|
-
target: __expectString,
|
|
984
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
985
|
-
});
|
|
986
|
-
};
|
|
987
|
-
const de_SystemTemplateDescription = (output, context) => {
|
|
988
|
-
return take(output, {
|
|
989
|
-
definition: _json,
|
|
990
|
-
summary: (_) => de_SystemTemplateSummary(_, context),
|
|
991
|
-
validatedNamespaceVersion: __expectLong,
|
|
992
|
-
});
|
|
993
|
-
};
|
|
994
|
-
const de_SystemTemplateSummaries = (output, context) => {
|
|
995
|
-
const retVal = (output || [])
|
|
996
|
-
.filter((e) => e != null)
|
|
997
|
-
.map((entry) => {
|
|
998
|
-
return de_SystemTemplateSummary(entry, context);
|
|
999
|
-
});
|
|
1000
|
-
return retVal;
|
|
1001
|
-
};
|
|
1002
|
-
const de_SystemTemplateSummary = (output, context) => {
|
|
1003
|
-
return take(output, {
|
|
1004
|
-
arn: __expectString,
|
|
1005
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1006
|
-
id: __expectString,
|
|
1007
|
-
revisionNumber: __expectLong,
|
|
1008
|
-
});
|
|
1009
|
-
};
|
|
1010
|
-
const de_UndeploySystemInstanceResponse = (output, context) => {
|
|
1011
|
-
return take(output, {
|
|
1012
|
-
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
1013
|
-
});
|
|
1014
|
-
};
|
|
1015
|
-
const de_UpdateFlowTemplateResponse = (output, context) => {
|
|
1016
|
-
return take(output, {
|
|
1017
|
-
summary: (_) => de_FlowTemplateSummary(_, context),
|
|
1018
|
-
});
|
|
1019
|
-
};
|
|
1020
|
-
const de_UpdateSystemTemplateResponse = (output, context) => {
|
|
1021
|
-
return take(output, {
|
|
1022
|
-
summary: (_) => de_SystemTemplateSummary(_, context),
|
|
1023
|
-
});
|
|
1024
|
-
};
|
|
1025
|
-
const deserializeMetadata = (output) => ({
|
|
1026
|
-
httpStatusCode: output.statusCode,
|
|
1027
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1028
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1029
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1030
|
-
});
|
|
1031
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1032
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1033
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1034
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1035
|
-
const contents = {
|
|
1036
|
-
protocol,
|
|
1037
|
-
hostname,
|
|
1038
|
-
port,
|
|
1039
|
-
method: "POST",
|
|
1040
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1041
|
-
headers,
|
|
1042
|
-
};
|
|
1043
|
-
if (resolvedHostname !== undefined) {
|
|
1044
|
-
contents.hostname = resolvedHostname;
|
|
1045
|
-
}
|
|
1046
|
-
if (body !== undefined) {
|
|
1047
|
-
contents.body = body;
|
|
1048
|
-
}
|
|
1049
|
-
return new __HttpRequest(contents);
|
|
1050
|
-
};
|
|
1051
|
-
function sharedHeaders(operation) {
|
|
1052
|
-
return {
|
|
1053
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1054
|
-
"x-amz-target": `IotThingsGraphFrontEndService.${operation}`,
|
|
1055
|
-
};
|
|
1056
|
-
}
|