@aws-sdk/client-iotthingsgraph 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +310 -979
- package/dist-es/protocols/Aws_json1_1.js +311 -980
- package/package.json +6 -6
|
@@ -7,352 +7,247 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
7
7
|
const IoTThingsGraphServiceException_1 = require("../models/IoTThingsGraphServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_AssociateEntityToThingCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "IotThingsGraphFrontEndService.AssociateEntityToThing",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("AssociateEntityToThing");
|
|
14
11
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_AssociateEntityToThingCommand = se_AssociateEntityToThingCommand;
|
|
19
16
|
const se_CreateFlowTemplateCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "IotThingsGraphFrontEndService.CreateFlowTemplate",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("CreateFlowTemplate");
|
|
24
18
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_CreateFlowTemplateCommand = se_CreateFlowTemplateCommand;
|
|
29
23
|
const se_CreateSystemInstanceCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "IotThingsGraphFrontEndService.CreateSystemInstance",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateSystemInstance");
|
|
34
25
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateSystemInstanceCommand = se_CreateSystemInstanceCommand;
|
|
39
30
|
const se_CreateSystemTemplateCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "IotThingsGraphFrontEndService.CreateSystemTemplate",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("CreateSystemTemplate");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_CreateSystemTemplateCommand = se_CreateSystemTemplateCommand;
|
|
49
37
|
const se_DeleteFlowTemplateCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeleteFlowTemplate",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DeleteFlowTemplate");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DeleteFlowTemplateCommand = se_DeleteFlowTemplateCommand;
|
|
59
44
|
const se_DeleteNamespaceCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeleteNamespace",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DeleteNamespace");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DeleteNamespaceCommand = se_DeleteNamespaceCommand;
|
|
69
51
|
const se_DeleteSystemInstanceCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeleteSystemInstance",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DeleteSystemInstance");
|
|
74
53
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DeleteSystemInstanceCommand = se_DeleteSystemInstanceCommand;
|
|
79
58
|
const se_DeleteSystemTemplateCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeleteSystemTemplate",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DeleteSystemTemplate");
|
|
84
60
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DeleteSystemTemplateCommand = se_DeleteSystemTemplateCommand;
|
|
89
65
|
const se_DeploySystemInstanceCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeploySystemInstance",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DeploySystemInstance");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DeploySystemInstanceCommand = se_DeploySystemInstanceCommand;
|
|
99
72
|
const se_DeprecateFlowTemplateCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeprecateFlowTemplate",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DeprecateFlowTemplate");
|
|
104
74
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_DeprecateFlowTemplateCommand = se_DeprecateFlowTemplateCommand;
|
|
109
79
|
const se_DeprecateSystemTemplateCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DeprecateSystemTemplate",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("DeprecateSystemTemplate");
|
|
114
81
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_DeprecateSystemTemplateCommand = se_DeprecateSystemTemplateCommand;
|
|
119
86
|
const se_DescribeNamespaceCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DescribeNamespace",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("DescribeNamespace");
|
|
124
88
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_DescribeNamespaceCommand = se_DescribeNamespaceCommand;
|
|
129
93
|
const se_DissociateEntityFromThingCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "IotThingsGraphFrontEndService.DissociateEntityFromThing",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("DissociateEntityFromThing");
|
|
134
95
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_DissociateEntityFromThingCommand = se_DissociateEntityFromThingCommand;
|
|
139
100
|
const se_GetEntitiesCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetEntities",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("GetEntities");
|
|
144
102
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_GetEntitiesCommand = se_GetEntitiesCommand;
|
|
149
107
|
const se_GetFlowTemplateCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetFlowTemplate",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("GetFlowTemplate");
|
|
154
109
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
156
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
112
|
};
|
|
158
113
|
exports.se_GetFlowTemplateCommand = se_GetFlowTemplateCommand;
|
|
159
114
|
const se_GetFlowTemplateRevisionsCommand = async (input, context) => {
|
|
160
|
-
const headers =
|
|
161
|
-
"content-type": "application/x-amz-json-1.1",
|
|
162
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetFlowTemplateRevisions",
|
|
163
|
-
};
|
|
115
|
+
const headers = sharedHeaders("GetFlowTemplateRevisions");
|
|
164
116
|
let body;
|
|
165
|
-
body = JSON.stringify(
|
|
117
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
166
118
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
119
|
};
|
|
168
120
|
exports.se_GetFlowTemplateRevisionsCommand = se_GetFlowTemplateRevisionsCommand;
|
|
169
121
|
const se_GetNamespaceDeletionStatusCommand = async (input, context) => {
|
|
170
|
-
const headers =
|
|
171
|
-
"content-type": "application/x-amz-json-1.1",
|
|
172
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetNamespaceDeletionStatus",
|
|
173
|
-
};
|
|
122
|
+
const headers = sharedHeaders("GetNamespaceDeletionStatus");
|
|
174
123
|
let body;
|
|
175
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
126
|
};
|
|
178
127
|
exports.se_GetNamespaceDeletionStatusCommand = se_GetNamespaceDeletionStatusCommand;
|
|
179
128
|
const se_GetSystemInstanceCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-amz-json-1.1",
|
|
182
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetSystemInstance",
|
|
183
|
-
};
|
|
129
|
+
const headers = sharedHeaders("GetSystemInstance");
|
|
184
130
|
let body;
|
|
185
|
-
body = JSON.stringify(
|
|
131
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
186
132
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
133
|
};
|
|
188
134
|
exports.se_GetSystemInstanceCommand = se_GetSystemInstanceCommand;
|
|
189
135
|
const se_GetSystemTemplateCommand = async (input, context) => {
|
|
190
|
-
const headers =
|
|
191
|
-
"content-type": "application/x-amz-json-1.1",
|
|
192
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetSystemTemplate",
|
|
193
|
-
};
|
|
136
|
+
const headers = sharedHeaders("GetSystemTemplate");
|
|
194
137
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
138
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
139
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
140
|
};
|
|
198
141
|
exports.se_GetSystemTemplateCommand = se_GetSystemTemplateCommand;
|
|
199
142
|
const se_GetSystemTemplateRevisionsCommand = async (input, context) => {
|
|
200
|
-
const headers =
|
|
201
|
-
"content-type": "application/x-amz-json-1.1",
|
|
202
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetSystemTemplateRevisions",
|
|
203
|
-
};
|
|
143
|
+
const headers = sharedHeaders("GetSystemTemplateRevisions");
|
|
204
144
|
let body;
|
|
205
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
206
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
207
147
|
};
|
|
208
148
|
exports.se_GetSystemTemplateRevisionsCommand = se_GetSystemTemplateRevisionsCommand;
|
|
209
149
|
const se_GetUploadStatusCommand = async (input, context) => {
|
|
210
|
-
const headers =
|
|
211
|
-
"content-type": "application/x-amz-json-1.1",
|
|
212
|
-
"x-amz-target": "IotThingsGraphFrontEndService.GetUploadStatus",
|
|
213
|
-
};
|
|
150
|
+
const headers = sharedHeaders("GetUploadStatus");
|
|
214
151
|
let body;
|
|
215
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
154
|
};
|
|
218
155
|
exports.se_GetUploadStatusCommand = se_GetUploadStatusCommand;
|
|
219
156
|
const se_ListFlowExecutionMessagesCommand = async (input, context) => {
|
|
220
|
-
const headers =
|
|
221
|
-
"content-type": "application/x-amz-json-1.1",
|
|
222
|
-
"x-amz-target": "IotThingsGraphFrontEndService.ListFlowExecutionMessages",
|
|
223
|
-
};
|
|
157
|
+
const headers = sharedHeaders("ListFlowExecutionMessages");
|
|
224
158
|
let body;
|
|
225
|
-
body = JSON.stringify(
|
|
159
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
226
160
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
161
|
};
|
|
228
162
|
exports.se_ListFlowExecutionMessagesCommand = se_ListFlowExecutionMessagesCommand;
|
|
229
163
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
230
|
-
const headers =
|
|
231
|
-
"content-type": "application/x-amz-json-1.1",
|
|
232
|
-
"x-amz-target": "IotThingsGraphFrontEndService.ListTagsForResource",
|
|
233
|
-
};
|
|
164
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
234
165
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
166
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
236
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
168
|
};
|
|
238
169
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
239
170
|
const se_SearchEntitiesCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchEntities",
|
|
243
|
-
};
|
|
171
|
+
const headers = sharedHeaders("SearchEntities");
|
|
244
172
|
let body;
|
|
245
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
175
|
};
|
|
248
176
|
exports.se_SearchEntitiesCommand = se_SearchEntitiesCommand;
|
|
249
177
|
const se_SearchFlowExecutionsCommand = async (input, context) => {
|
|
250
|
-
const headers =
|
|
251
|
-
"content-type": "application/x-amz-json-1.1",
|
|
252
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchFlowExecutions",
|
|
253
|
-
};
|
|
178
|
+
const headers = sharedHeaders("SearchFlowExecutions");
|
|
254
179
|
let body;
|
|
255
180
|
body = JSON.stringify(se_SearchFlowExecutionsRequest(input, context));
|
|
256
181
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
182
|
};
|
|
258
183
|
exports.se_SearchFlowExecutionsCommand = se_SearchFlowExecutionsCommand;
|
|
259
184
|
const se_SearchFlowTemplatesCommand = async (input, context) => {
|
|
260
|
-
const headers =
|
|
261
|
-
"content-type": "application/x-amz-json-1.1",
|
|
262
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchFlowTemplates",
|
|
263
|
-
};
|
|
185
|
+
const headers = sharedHeaders("SearchFlowTemplates");
|
|
264
186
|
let body;
|
|
265
|
-
body = JSON.stringify(
|
|
187
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
266
188
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
189
|
};
|
|
268
190
|
exports.se_SearchFlowTemplatesCommand = se_SearchFlowTemplatesCommand;
|
|
269
191
|
const se_SearchSystemInstancesCommand = async (input, context) => {
|
|
270
|
-
const headers =
|
|
271
|
-
"content-type": "application/x-amz-json-1.1",
|
|
272
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchSystemInstances",
|
|
273
|
-
};
|
|
192
|
+
const headers = sharedHeaders("SearchSystemInstances");
|
|
274
193
|
let body;
|
|
275
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
276
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
196
|
};
|
|
278
197
|
exports.se_SearchSystemInstancesCommand = se_SearchSystemInstancesCommand;
|
|
279
198
|
const se_SearchSystemTemplatesCommand = async (input, context) => {
|
|
280
|
-
const headers =
|
|
281
|
-
"content-type": "application/x-amz-json-1.1",
|
|
282
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchSystemTemplates",
|
|
283
|
-
};
|
|
199
|
+
const headers = sharedHeaders("SearchSystemTemplates");
|
|
284
200
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
201
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
203
|
};
|
|
288
204
|
exports.se_SearchSystemTemplatesCommand = se_SearchSystemTemplatesCommand;
|
|
289
205
|
const se_SearchThingsCommand = async (input, context) => {
|
|
290
|
-
const headers =
|
|
291
|
-
"content-type": "application/x-amz-json-1.1",
|
|
292
|
-
"x-amz-target": "IotThingsGraphFrontEndService.SearchThings",
|
|
293
|
-
};
|
|
206
|
+
const headers = sharedHeaders("SearchThings");
|
|
294
207
|
let body;
|
|
295
|
-
body = JSON.stringify(
|
|
208
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
296
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
210
|
};
|
|
298
211
|
exports.se_SearchThingsCommand = se_SearchThingsCommand;
|
|
299
212
|
const se_TagResourceCommand = async (input, context) => {
|
|
300
|
-
const headers =
|
|
301
|
-
"content-type": "application/x-amz-json-1.1",
|
|
302
|
-
"x-amz-target": "IotThingsGraphFrontEndService.TagResource",
|
|
303
|
-
};
|
|
213
|
+
const headers = sharedHeaders("TagResource");
|
|
304
214
|
let body;
|
|
305
|
-
body = JSON.stringify(
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
306
216
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
217
|
};
|
|
308
218
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
309
219
|
const se_UndeploySystemInstanceCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-amz-json-1.1",
|
|
312
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UndeploySystemInstance",
|
|
313
|
-
};
|
|
220
|
+
const headers = sharedHeaders("UndeploySystemInstance");
|
|
314
221
|
let body;
|
|
315
|
-
body = JSON.stringify(
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
223
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
224
|
};
|
|
318
225
|
exports.se_UndeploySystemInstanceCommand = se_UndeploySystemInstanceCommand;
|
|
319
226
|
const se_UntagResourceCommand = async (input, context) => {
|
|
320
|
-
const headers =
|
|
321
|
-
"content-type": "application/x-amz-json-1.1",
|
|
322
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UntagResource",
|
|
323
|
-
};
|
|
227
|
+
const headers = sharedHeaders("UntagResource");
|
|
324
228
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
229
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
326
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
231
|
};
|
|
328
232
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
329
233
|
const se_UpdateFlowTemplateCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UpdateFlowTemplate",
|
|
333
|
-
};
|
|
234
|
+
const headers = sharedHeaders("UpdateFlowTemplate");
|
|
334
235
|
let body;
|
|
335
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
336
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
238
|
};
|
|
338
239
|
exports.se_UpdateFlowTemplateCommand = se_UpdateFlowTemplateCommand;
|
|
339
240
|
const se_UpdateSystemTemplateCommand = async (input, context) => {
|
|
340
|
-
const headers =
|
|
341
|
-
"content-type": "application/x-amz-json-1.1",
|
|
342
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UpdateSystemTemplate",
|
|
343
|
-
};
|
|
241
|
+
const headers = sharedHeaders("UpdateSystemTemplate");
|
|
344
242
|
let body;
|
|
345
|
-
body = JSON.stringify(
|
|
243
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
346
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
347
245
|
};
|
|
348
246
|
exports.se_UpdateSystemTemplateCommand = se_UpdateSystemTemplateCommand;
|
|
349
247
|
const se_UploadEntityDefinitionsCommand = async (input, context) => {
|
|
350
|
-
const headers =
|
|
351
|
-
"content-type": "application/x-amz-json-1.1",
|
|
352
|
-
"x-amz-target": "IotThingsGraphFrontEndService.UploadEntityDefinitions",
|
|
353
|
-
};
|
|
248
|
+
const headers = sharedHeaders("UploadEntityDefinitions");
|
|
354
249
|
let body;
|
|
355
|
-
body = JSON.stringify(
|
|
250
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
356
251
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
252
|
};
|
|
358
253
|
exports.se_UploadEntityDefinitionsCommand = se_UploadEntityDefinitionsCommand;
|
|
@@ -362,12 +257,12 @@ const de_AssociateEntityToThingCommand = async (output, context) => {
|
|
|
362
257
|
}
|
|
363
258
|
const data = await parseBody(output.body, context);
|
|
364
259
|
let contents = {};
|
|
365
|
-
contents =
|
|
260
|
+
contents = (0, smithy_client_1._json)(data);
|
|
366
261
|
const response = {
|
|
367
262
|
$metadata: deserializeMetadata(output),
|
|
368
263
|
...contents,
|
|
369
264
|
};
|
|
370
|
-
return
|
|
265
|
+
return response;
|
|
371
266
|
};
|
|
372
267
|
exports.de_AssociateEntityToThingCommand = de_AssociateEntityToThingCommand;
|
|
373
268
|
const de_AssociateEntityToThingCommandError = async (output, context) => {
|
|
@@ -391,10 +286,9 @@ const de_AssociateEntityToThingCommandError = async (output, context) => {
|
|
|
391
286
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
392
287
|
default:
|
|
393
288
|
const parsedBody = parsedOutput.body;
|
|
394
|
-
|
|
289
|
+
return throwDefaultError({
|
|
395
290
|
output,
|
|
396
291
|
parsedBody,
|
|
397
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
398
292
|
errorCode,
|
|
399
293
|
});
|
|
400
294
|
}
|
|
@@ -410,7 +304,7 @@ const de_CreateFlowTemplateCommand = async (output, context) => {
|
|
|
410
304
|
$metadata: deserializeMetadata(output),
|
|
411
305
|
...contents,
|
|
412
306
|
};
|
|
413
|
-
return
|
|
307
|
+
return response;
|
|
414
308
|
};
|
|
415
309
|
exports.de_CreateFlowTemplateCommand = de_CreateFlowTemplateCommand;
|
|
416
310
|
const de_CreateFlowTemplateCommandError = async (output, context) => {
|
|
@@ -437,10 +331,9 @@ const de_CreateFlowTemplateCommandError = async (output, context) => {
|
|
|
437
331
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
438
332
|
default:
|
|
439
333
|
const parsedBody = parsedOutput.body;
|
|
440
|
-
|
|
334
|
+
return throwDefaultError({
|
|
441
335
|
output,
|
|
442
336
|
parsedBody,
|
|
443
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
444
337
|
errorCode,
|
|
445
338
|
});
|
|
446
339
|
}
|
|
@@ -456,7 +349,7 @@ const de_CreateSystemInstanceCommand = async (output, context) => {
|
|
|
456
349
|
$metadata: deserializeMetadata(output),
|
|
457
350
|
...contents,
|
|
458
351
|
};
|
|
459
|
-
return
|
|
352
|
+
return response;
|
|
460
353
|
};
|
|
461
354
|
exports.de_CreateSystemInstanceCommand = de_CreateSystemInstanceCommand;
|
|
462
355
|
const de_CreateSystemInstanceCommandError = async (output, context) => {
|
|
@@ -483,10 +376,9 @@ const de_CreateSystemInstanceCommandError = async (output, context) => {
|
|
|
483
376
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
484
377
|
default:
|
|
485
378
|
const parsedBody = parsedOutput.body;
|
|
486
|
-
|
|
379
|
+
return throwDefaultError({
|
|
487
380
|
output,
|
|
488
381
|
parsedBody,
|
|
489
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
490
382
|
errorCode,
|
|
491
383
|
});
|
|
492
384
|
}
|
|
@@ -502,7 +394,7 @@ const de_CreateSystemTemplateCommand = async (output, context) => {
|
|
|
502
394
|
$metadata: deserializeMetadata(output),
|
|
503
395
|
...contents,
|
|
504
396
|
};
|
|
505
|
-
return
|
|
397
|
+
return response;
|
|
506
398
|
};
|
|
507
399
|
exports.de_CreateSystemTemplateCommand = de_CreateSystemTemplateCommand;
|
|
508
400
|
const de_CreateSystemTemplateCommandError = async (output, context) => {
|
|
@@ -526,10 +418,9 @@ const de_CreateSystemTemplateCommandError = async (output, context) => {
|
|
|
526
418
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
527
419
|
default:
|
|
528
420
|
const parsedBody = parsedOutput.body;
|
|
529
|
-
|
|
421
|
+
return throwDefaultError({
|
|
530
422
|
output,
|
|
531
423
|
parsedBody,
|
|
532
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
533
424
|
errorCode,
|
|
534
425
|
});
|
|
535
426
|
}
|
|
@@ -540,12 +431,12 @@ const de_DeleteFlowTemplateCommand = async (output, context) => {
|
|
|
540
431
|
}
|
|
541
432
|
const data = await parseBody(output.body, context);
|
|
542
433
|
let contents = {};
|
|
543
|
-
contents =
|
|
434
|
+
contents = (0, smithy_client_1._json)(data);
|
|
544
435
|
const response = {
|
|
545
436
|
$metadata: deserializeMetadata(output),
|
|
546
437
|
...contents,
|
|
547
438
|
};
|
|
548
|
-
return
|
|
439
|
+
return response;
|
|
549
440
|
};
|
|
550
441
|
exports.de_DeleteFlowTemplateCommand = de_DeleteFlowTemplateCommand;
|
|
551
442
|
const de_DeleteFlowTemplateCommandError = async (output, context) => {
|
|
@@ -569,10 +460,9 @@ const de_DeleteFlowTemplateCommandError = async (output, context) => {
|
|
|
569
460
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
570
461
|
default:
|
|
571
462
|
const parsedBody = parsedOutput.body;
|
|
572
|
-
|
|
463
|
+
return throwDefaultError({
|
|
573
464
|
output,
|
|
574
465
|
parsedBody,
|
|
575
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
576
466
|
errorCode,
|
|
577
467
|
});
|
|
578
468
|
}
|
|
@@ -583,12 +473,12 @@ const de_DeleteNamespaceCommand = async (output, context) => {
|
|
|
583
473
|
}
|
|
584
474
|
const data = await parseBody(output.body, context);
|
|
585
475
|
let contents = {};
|
|
586
|
-
contents =
|
|
476
|
+
contents = (0, smithy_client_1._json)(data);
|
|
587
477
|
const response = {
|
|
588
478
|
$metadata: deserializeMetadata(output),
|
|
589
479
|
...contents,
|
|
590
480
|
};
|
|
591
|
-
return
|
|
481
|
+
return response;
|
|
592
482
|
};
|
|
593
483
|
exports.de_DeleteNamespaceCommand = de_DeleteNamespaceCommand;
|
|
594
484
|
const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
@@ -606,10 +496,9 @@ const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
|
606
496
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
607
497
|
default:
|
|
608
498
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
|
|
499
|
+
return throwDefaultError({
|
|
610
500
|
output,
|
|
611
501
|
parsedBody,
|
|
612
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
613
502
|
errorCode,
|
|
614
503
|
});
|
|
615
504
|
}
|
|
@@ -620,12 +509,12 @@ const de_DeleteSystemInstanceCommand = async (output, context) => {
|
|
|
620
509
|
}
|
|
621
510
|
const data = await parseBody(output.body, context);
|
|
622
511
|
let contents = {};
|
|
623
|
-
contents =
|
|
512
|
+
contents = (0, smithy_client_1._json)(data);
|
|
624
513
|
const response = {
|
|
625
514
|
$metadata: deserializeMetadata(output),
|
|
626
515
|
...contents,
|
|
627
516
|
};
|
|
628
|
-
return
|
|
517
|
+
return response;
|
|
629
518
|
};
|
|
630
519
|
exports.de_DeleteSystemInstanceCommand = de_DeleteSystemInstanceCommand;
|
|
631
520
|
const de_DeleteSystemInstanceCommandError = async (output, context) => {
|
|
@@ -649,10 +538,9 @@ const de_DeleteSystemInstanceCommandError = async (output, context) => {
|
|
|
649
538
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
650
539
|
default:
|
|
651
540
|
const parsedBody = parsedOutput.body;
|
|
652
|
-
|
|
541
|
+
return throwDefaultError({
|
|
653
542
|
output,
|
|
654
543
|
parsedBody,
|
|
655
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
656
544
|
errorCode,
|
|
657
545
|
});
|
|
658
546
|
}
|
|
@@ -663,12 +551,12 @@ const de_DeleteSystemTemplateCommand = async (output, context) => {
|
|
|
663
551
|
}
|
|
664
552
|
const data = await parseBody(output.body, context);
|
|
665
553
|
let contents = {};
|
|
666
|
-
contents =
|
|
554
|
+
contents = (0, smithy_client_1._json)(data);
|
|
667
555
|
const response = {
|
|
668
556
|
$metadata: deserializeMetadata(output),
|
|
669
557
|
...contents,
|
|
670
558
|
};
|
|
671
|
-
return
|
|
559
|
+
return response;
|
|
672
560
|
};
|
|
673
561
|
exports.de_DeleteSystemTemplateCommand = de_DeleteSystemTemplateCommand;
|
|
674
562
|
const de_DeleteSystemTemplateCommandError = async (output, context) => {
|
|
@@ -692,10 +580,9 @@ const de_DeleteSystemTemplateCommandError = async (output, context) => {
|
|
|
692
580
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
693
581
|
default:
|
|
694
582
|
const parsedBody = parsedOutput.body;
|
|
695
|
-
|
|
583
|
+
return throwDefaultError({
|
|
696
584
|
output,
|
|
697
585
|
parsedBody,
|
|
698
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
699
586
|
errorCode,
|
|
700
587
|
});
|
|
701
588
|
}
|
|
@@ -711,7 +598,7 @@ const de_DeploySystemInstanceCommand = async (output, context) => {
|
|
|
711
598
|
$metadata: deserializeMetadata(output),
|
|
712
599
|
...contents,
|
|
713
600
|
};
|
|
714
|
-
return
|
|
601
|
+
return response;
|
|
715
602
|
};
|
|
716
603
|
exports.de_DeploySystemInstanceCommand = de_DeploySystemInstanceCommand;
|
|
717
604
|
const de_DeploySystemInstanceCommandError = async (output, context) => {
|
|
@@ -738,10 +625,9 @@ const de_DeploySystemInstanceCommandError = async (output, context) => {
|
|
|
738
625
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
739
626
|
default:
|
|
740
627
|
const parsedBody = parsedOutput.body;
|
|
741
|
-
|
|
628
|
+
return throwDefaultError({
|
|
742
629
|
output,
|
|
743
630
|
parsedBody,
|
|
744
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
745
631
|
errorCode,
|
|
746
632
|
});
|
|
747
633
|
}
|
|
@@ -752,12 +638,12 @@ const de_DeprecateFlowTemplateCommand = async (output, context) => {
|
|
|
752
638
|
}
|
|
753
639
|
const data = await parseBody(output.body, context);
|
|
754
640
|
let contents = {};
|
|
755
|
-
contents =
|
|
641
|
+
contents = (0, smithy_client_1._json)(data);
|
|
756
642
|
const response = {
|
|
757
643
|
$metadata: deserializeMetadata(output),
|
|
758
644
|
...contents,
|
|
759
645
|
};
|
|
760
|
-
return
|
|
646
|
+
return response;
|
|
761
647
|
};
|
|
762
648
|
exports.de_DeprecateFlowTemplateCommand = de_DeprecateFlowTemplateCommand;
|
|
763
649
|
const de_DeprecateFlowTemplateCommandError = async (output, context) => {
|
|
@@ -781,10 +667,9 @@ const de_DeprecateFlowTemplateCommandError = async (output, context) => {
|
|
|
781
667
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
782
668
|
default:
|
|
783
669
|
const parsedBody = parsedOutput.body;
|
|
784
|
-
|
|
670
|
+
return throwDefaultError({
|
|
785
671
|
output,
|
|
786
672
|
parsedBody,
|
|
787
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
788
673
|
errorCode,
|
|
789
674
|
});
|
|
790
675
|
}
|
|
@@ -795,12 +680,12 @@ const de_DeprecateSystemTemplateCommand = async (output, context) => {
|
|
|
795
680
|
}
|
|
796
681
|
const data = await parseBody(output.body, context);
|
|
797
682
|
let contents = {};
|
|
798
|
-
contents =
|
|
683
|
+
contents = (0, smithy_client_1._json)(data);
|
|
799
684
|
const response = {
|
|
800
685
|
$metadata: deserializeMetadata(output),
|
|
801
686
|
...contents,
|
|
802
687
|
};
|
|
803
|
-
return
|
|
688
|
+
return response;
|
|
804
689
|
};
|
|
805
690
|
exports.de_DeprecateSystemTemplateCommand = de_DeprecateSystemTemplateCommand;
|
|
806
691
|
const de_DeprecateSystemTemplateCommandError = async (output, context) => {
|
|
@@ -824,10 +709,9 @@ const de_DeprecateSystemTemplateCommandError = async (output, context) => {
|
|
|
824
709
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
825
710
|
default:
|
|
826
711
|
const parsedBody = parsedOutput.body;
|
|
827
|
-
|
|
712
|
+
return throwDefaultError({
|
|
828
713
|
output,
|
|
829
714
|
parsedBody,
|
|
830
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
831
715
|
errorCode,
|
|
832
716
|
});
|
|
833
717
|
}
|
|
@@ -838,12 +722,12 @@ const de_DescribeNamespaceCommand = async (output, context) => {
|
|
|
838
722
|
}
|
|
839
723
|
const data = await parseBody(output.body, context);
|
|
840
724
|
let contents = {};
|
|
841
|
-
contents =
|
|
725
|
+
contents = (0, smithy_client_1._json)(data);
|
|
842
726
|
const response = {
|
|
843
727
|
$metadata: deserializeMetadata(output),
|
|
844
728
|
...contents,
|
|
845
729
|
};
|
|
846
|
-
return
|
|
730
|
+
return response;
|
|
847
731
|
};
|
|
848
732
|
exports.de_DescribeNamespaceCommand = de_DescribeNamespaceCommand;
|
|
849
733
|
const de_DescribeNamespaceCommandError = async (output, context) => {
|
|
@@ -867,10 +751,9 @@ const de_DescribeNamespaceCommandError = async (output, context) => {
|
|
|
867
751
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
868
752
|
default:
|
|
869
753
|
const parsedBody = parsedOutput.body;
|
|
870
|
-
|
|
754
|
+
return throwDefaultError({
|
|
871
755
|
output,
|
|
872
756
|
parsedBody,
|
|
873
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
874
757
|
errorCode,
|
|
875
758
|
});
|
|
876
759
|
}
|
|
@@ -881,12 +764,12 @@ const de_DissociateEntityFromThingCommand = async (output, context) => {
|
|
|
881
764
|
}
|
|
882
765
|
const data = await parseBody(output.body, context);
|
|
883
766
|
let contents = {};
|
|
884
|
-
contents =
|
|
767
|
+
contents = (0, smithy_client_1._json)(data);
|
|
885
768
|
const response = {
|
|
886
769
|
$metadata: deserializeMetadata(output),
|
|
887
770
|
...contents,
|
|
888
771
|
};
|
|
889
|
-
return
|
|
772
|
+
return response;
|
|
890
773
|
};
|
|
891
774
|
exports.de_DissociateEntityFromThingCommand = de_DissociateEntityFromThingCommand;
|
|
892
775
|
const de_DissociateEntityFromThingCommandError = async (output, context) => {
|
|
@@ -910,10 +793,9 @@ const de_DissociateEntityFromThingCommandError = async (output, context) => {
|
|
|
910
793
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
911
794
|
default:
|
|
912
795
|
const parsedBody = parsedOutput.body;
|
|
913
|
-
|
|
796
|
+
return throwDefaultError({
|
|
914
797
|
output,
|
|
915
798
|
parsedBody,
|
|
916
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
917
799
|
errorCode,
|
|
918
800
|
});
|
|
919
801
|
}
|
|
@@ -929,7 +811,7 @@ const de_GetEntitiesCommand = async (output, context) => {
|
|
|
929
811
|
$metadata: deserializeMetadata(output),
|
|
930
812
|
...contents,
|
|
931
813
|
};
|
|
932
|
-
return
|
|
814
|
+
return response;
|
|
933
815
|
};
|
|
934
816
|
exports.de_GetEntitiesCommand = de_GetEntitiesCommand;
|
|
935
817
|
const de_GetEntitiesCommandError = async (output, context) => {
|
|
@@ -953,10 +835,9 @@ const de_GetEntitiesCommandError = async (output, context) => {
|
|
|
953
835
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
954
836
|
default:
|
|
955
837
|
const parsedBody = parsedOutput.body;
|
|
956
|
-
|
|
838
|
+
return throwDefaultError({
|
|
957
839
|
output,
|
|
958
840
|
parsedBody,
|
|
959
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
960
841
|
errorCode,
|
|
961
842
|
});
|
|
962
843
|
}
|
|
@@ -972,7 +853,7 @@ const de_GetFlowTemplateCommand = async (output, context) => {
|
|
|
972
853
|
$metadata: deserializeMetadata(output),
|
|
973
854
|
...contents,
|
|
974
855
|
};
|
|
975
|
-
return
|
|
856
|
+
return response;
|
|
976
857
|
};
|
|
977
858
|
exports.de_GetFlowTemplateCommand = de_GetFlowTemplateCommand;
|
|
978
859
|
const de_GetFlowTemplateCommandError = async (output, context) => {
|
|
@@ -996,10 +877,9 @@ const de_GetFlowTemplateCommandError = async (output, context) => {
|
|
|
996
877
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
997
878
|
default:
|
|
998
879
|
const parsedBody = parsedOutput.body;
|
|
999
|
-
|
|
880
|
+
return throwDefaultError({
|
|
1000
881
|
output,
|
|
1001
882
|
parsedBody,
|
|
1002
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1003
883
|
errorCode,
|
|
1004
884
|
});
|
|
1005
885
|
}
|
|
@@ -1015,7 +895,7 @@ const de_GetFlowTemplateRevisionsCommand = async (output, context) => {
|
|
|
1015
895
|
$metadata: deserializeMetadata(output),
|
|
1016
896
|
...contents,
|
|
1017
897
|
};
|
|
1018
|
-
return
|
|
898
|
+
return response;
|
|
1019
899
|
};
|
|
1020
900
|
exports.de_GetFlowTemplateRevisionsCommand = de_GetFlowTemplateRevisionsCommand;
|
|
1021
901
|
const de_GetFlowTemplateRevisionsCommandError = async (output, context) => {
|
|
@@ -1039,10 +919,9 @@ const de_GetFlowTemplateRevisionsCommandError = async (output, context) => {
|
|
|
1039
919
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1040
920
|
default:
|
|
1041
921
|
const parsedBody = parsedOutput.body;
|
|
1042
|
-
|
|
922
|
+
return throwDefaultError({
|
|
1043
923
|
output,
|
|
1044
924
|
parsedBody,
|
|
1045
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1046
925
|
errorCode,
|
|
1047
926
|
});
|
|
1048
927
|
}
|
|
@@ -1053,12 +932,12 @@ const de_GetNamespaceDeletionStatusCommand = async (output, context) => {
|
|
|
1053
932
|
}
|
|
1054
933
|
const data = await parseBody(output.body, context);
|
|
1055
934
|
let contents = {};
|
|
1056
|
-
contents =
|
|
935
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1057
936
|
const response = {
|
|
1058
937
|
$metadata: deserializeMetadata(output),
|
|
1059
938
|
...contents,
|
|
1060
939
|
};
|
|
1061
|
-
return
|
|
940
|
+
return response;
|
|
1062
941
|
};
|
|
1063
942
|
exports.de_GetNamespaceDeletionStatusCommand = de_GetNamespaceDeletionStatusCommand;
|
|
1064
943
|
const de_GetNamespaceDeletionStatusCommandError = async (output, context) => {
|
|
@@ -1079,10 +958,9 @@ const de_GetNamespaceDeletionStatusCommandError = async (output, context) => {
|
|
|
1079
958
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1080
959
|
default:
|
|
1081
960
|
const parsedBody = parsedOutput.body;
|
|
1082
|
-
|
|
961
|
+
return throwDefaultError({
|
|
1083
962
|
output,
|
|
1084
963
|
parsedBody,
|
|
1085
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1086
964
|
errorCode,
|
|
1087
965
|
});
|
|
1088
966
|
}
|
|
@@ -1098,7 +976,7 @@ const de_GetSystemInstanceCommand = async (output, context) => {
|
|
|
1098
976
|
$metadata: deserializeMetadata(output),
|
|
1099
977
|
...contents,
|
|
1100
978
|
};
|
|
1101
|
-
return
|
|
979
|
+
return response;
|
|
1102
980
|
};
|
|
1103
981
|
exports.de_GetSystemInstanceCommand = de_GetSystemInstanceCommand;
|
|
1104
982
|
const de_GetSystemInstanceCommandError = async (output, context) => {
|
|
@@ -1122,10 +1000,9 @@ const de_GetSystemInstanceCommandError = async (output, context) => {
|
|
|
1122
1000
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1123
1001
|
default:
|
|
1124
1002
|
const parsedBody = parsedOutput.body;
|
|
1125
|
-
|
|
1003
|
+
return throwDefaultError({
|
|
1126
1004
|
output,
|
|
1127
1005
|
parsedBody,
|
|
1128
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1129
1006
|
errorCode,
|
|
1130
1007
|
});
|
|
1131
1008
|
}
|
|
@@ -1141,7 +1018,7 @@ const de_GetSystemTemplateCommand = async (output, context) => {
|
|
|
1141
1018
|
$metadata: deserializeMetadata(output),
|
|
1142
1019
|
...contents,
|
|
1143
1020
|
};
|
|
1144
|
-
return
|
|
1021
|
+
return response;
|
|
1145
1022
|
};
|
|
1146
1023
|
exports.de_GetSystemTemplateCommand = de_GetSystemTemplateCommand;
|
|
1147
1024
|
const de_GetSystemTemplateCommandError = async (output, context) => {
|
|
@@ -1165,10 +1042,9 @@ const de_GetSystemTemplateCommandError = async (output, context) => {
|
|
|
1165
1042
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1166
1043
|
default:
|
|
1167
1044
|
const parsedBody = parsedOutput.body;
|
|
1168
|
-
|
|
1045
|
+
return throwDefaultError({
|
|
1169
1046
|
output,
|
|
1170
1047
|
parsedBody,
|
|
1171
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1172
1048
|
errorCode,
|
|
1173
1049
|
});
|
|
1174
1050
|
}
|
|
@@ -1184,7 +1060,7 @@ const de_GetSystemTemplateRevisionsCommand = async (output, context) => {
|
|
|
1184
1060
|
$metadata: deserializeMetadata(output),
|
|
1185
1061
|
...contents,
|
|
1186
1062
|
};
|
|
1187
|
-
return
|
|
1063
|
+
return response;
|
|
1188
1064
|
};
|
|
1189
1065
|
exports.de_GetSystemTemplateRevisionsCommand = de_GetSystemTemplateRevisionsCommand;
|
|
1190
1066
|
const de_GetSystemTemplateRevisionsCommandError = async (output, context) => {
|
|
@@ -1208,10 +1084,9 @@ const de_GetSystemTemplateRevisionsCommandError = async (output, context) => {
|
|
|
1208
1084
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1209
1085
|
default:
|
|
1210
1086
|
const parsedBody = parsedOutput.body;
|
|
1211
|
-
|
|
1087
|
+
return throwDefaultError({
|
|
1212
1088
|
output,
|
|
1213
1089
|
parsedBody,
|
|
1214
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1215
1090
|
errorCode,
|
|
1216
1091
|
});
|
|
1217
1092
|
}
|
|
@@ -1227,7 +1102,7 @@ const de_GetUploadStatusCommand = async (output, context) => {
|
|
|
1227
1102
|
$metadata: deserializeMetadata(output),
|
|
1228
1103
|
...contents,
|
|
1229
1104
|
};
|
|
1230
|
-
return
|
|
1105
|
+
return response;
|
|
1231
1106
|
};
|
|
1232
1107
|
exports.de_GetUploadStatusCommand = de_GetUploadStatusCommand;
|
|
1233
1108
|
const de_GetUploadStatusCommandError = async (output, context) => {
|
|
@@ -1251,10 +1126,9 @@ const de_GetUploadStatusCommandError = async (output, context) => {
|
|
|
1251
1126
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1252
1127
|
default:
|
|
1253
1128
|
const parsedBody = parsedOutput.body;
|
|
1254
|
-
|
|
1129
|
+
return throwDefaultError({
|
|
1255
1130
|
output,
|
|
1256
1131
|
parsedBody,
|
|
1257
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1258
1132
|
errorCode,
|
|
1259
1133
|
});
|
|
1260
1134
|
}
|
|
@@ -1270,7 +1144,7 @@ const de_ListFlowExecutionMessagesCommand = async (output, context) => {
|
|
|
1270
1144
|
$metadata: deserializeMetadata(output),
|
|
1271
1145
|
...contents,
|
|
1272
1146
|
};
|
|
1273
|
-
return
|
|
1147
|
+
return response;
|
|
1274
1148
|
};
|
|
1275
1149
|
exports.de_ListFlowExecutionMessagesCommand = de_ListFlowExecutionMessagesCommand;
|
|
1276
1150
|
const de_ListFlowExecutionMessagesCommandError = async (output, context) => {
|
|
@@ -1294,10 +1168,9 @@ const de_ListFlowExecutionMessagesCommandError = async (output, context) => {
|
|
|
1294
1168
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1295
1169
|
default:
|
|
1296
1170
|
const parsedBody = parsedOutput.body;
|
|
1297
|
-
|
|
1171
|
+
return throwDefaultError({
|
|
1298
1172
|
output,
|
|
1299
1173
|
parsedBody,
|
|
1300
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1301
1174
|
errorCode,
|
|
1302
1175
|
});
|
|
1303
1176
|
}
|
|
@@ -1308,12 +1181,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1308
1181
|
}
|
|
1309
1182
|
const data = await parseBody(output.body, context);
|
|
1310
1183
|
let contents = {};
|
|
1311
|
-
contents =
|
|
1184
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1312
1185
|
const response = {
|
|
1313
1186
|
$metadata: deserializeMetadata(output),
|
|
1314
1187
|
...contents,
|
|
1315
1188
|
};
|
|
1316
|
-
return
|
|
1189
|
+
return response;
|
|
1317
1190
|
};
|
|
1318
1191
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
1319
1192
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1337,10 +1210,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1337
1210
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1338
1211
|
default:
|
|
1339
1212
|
const parsedBody = parsedOutput.body;
|
|
1340
|
-
|
|
1213
|
+
return throwDefaultError({
|
|
1341
1214
|
output,
|
|
1342
1215
|
parsedBody,
|
|
1343
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1344
1216
|
errorCode,
|
|
1345
1217
|
});
|
|
1346
1218
|
}
|
|
@@ -1356,7 +1228,7 @@ const de_SearchEntitiesCommand = async (output, context) => {
|
|
|
1356
1228
|
$metadata: deserializeMetadata(output),
|
|
1357
1229
|
...contents,
|
|
1358
1230
|
};
|
|
1359
|
-
return
|
|
1231
|
+
return response;
|
|
1360
1232
|
};
|
|
1361
1233
|
exports.de_SearchEntitiesCommand = de_SearchEntitiesCommand;
|
|
1362
1234
|
const de_SearchEntitiesCommandError = async (output, context) => {
|
|
@@ -1377,10 +1249,9 @@ const de_SearchEntitiesCommandError = async (output, context) => {
|
|
|
1377
1249
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1378
1250
|
default:
|
|
1379
1251
|
const parsedBody = parsedOutput.body;
|
|
1380
|
-
|
|
1252
|
+
return throwDefaultError({
|
|
1381
1253
|
output,
|
|
1382
1254
|
parsedBody,
|
|
1383
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1384
1255
|
errorCode,
|
|
1385
1256
|
});
|
|
1386
1257
|
}
|
|
@@ -1396,7 +1267,7 @@ const de_SearchFlowExecutionsCommand = async (output, context) => {
|
|
|
1396
1267
|
$metadata: deserializeMetadata(output),
|
|
1397
1268
|
...contents,
|
|
1398
1269
|
};
|
|
1399
|
-
return
|
|
1270
|
+
return response;
|
|
1400
1271
|
};
|
|
1401
1272
|
exports.de_SearchFlowExecutionsCommand = de_SearchFlowExecutionsCommand;
|
|
1402
1273
|
const de_SearchFlowExecutionsCommandError = async (output, context) => {
|
|
@@ -1420,10 +1291,9 @@ const de_SearchFlowExecutionsCommandError = async (output, context) => {
|
|
|
1420
1291
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1421
1292
|
default:
|
|
1422
1293
|
const parsedBody = parsedOutput.body;
|
|
1423
|
-
|
|
1294
|
+
return throwDefaultError({
|
|
1424
1295
|
output,
|
|
1425
1296
|
parsedBody,
|
|
1426
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1427
1297
|
errorCode,
|
|
1428
1298
|
});
|
|
1429
1299
|
}
|
|
@@ -1439,7 +1309,7 @@ const de_SearchFlowTemplatesCommand = async (output, context) => {
|
|
|
1439
1309
|
$metadata: deserializeMetadata(output),
|
|
1440
1310
|
...contents,
|
|
1441
1311
|
};
|
|
1442
|
-
return
|
|
1312
|
+
return response;
|
|
1443
1313
|
};
|
|
1444
1314
|
exports.de_SearchFlowTemplatesCommand = de_SearchFlowTemplatesCommand;
|
|
1445
1315
|
const de_SearchFlowTemplatesCommandError = async (output, context) => {
|
|
@@ -1460,10 +1330,9 @@ const de_SearchFlowTemplatesCommandError = async (output, context) => {
|
|
|
1460
1330
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1461
1331
|
default:
|
|
1462
1332
|
const parsedBody = parsedOutput.body;
|
|
1463
|
-
|
|
1333
|
+
return throwDefaultError({
|
|
1464
1334
|
output,
|
|
1465
1335
|
parsedBody,
|
|
1466
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1467
1336
|
errorCode,
|
|
1468
1337
|
});
|
|
1469
1338
|
}
|
|
@@ -1479,7 +1348,7 @@ const de_SearchSystemInstancesCommand = async (output, context) => {
|
|
|
1479
1348
|
$metadata: deserializeMetadata(output),
|
|
1480
1349
|
...contents,
|
|
1481
1350
|
};
|
|
1482
|
-
return
|
|
1351
|
+
return response;
|
|
1483
1352
|
};
|
|
1484
1353
|
exports.de_SearchSystemInstancesCommand = de_SearchSystemInstancesCommand;
|
|
1485
1354
|
const de_SearchSystemInstancesCommandError = async (output, context) => {
|
|
@@ -1500,10 +1369,9 @@ const de_SearchSystemInstancesCommandError = async (output, context) => {
|
|
|
1500
1369
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1501
1370
|
default:
|
|
1502
1371
|
const parsedBody = parsedOutput.body;
|
|
1503
|
-
|
|
1372
|
+
return throwDefaultError({
|
|
1504
1373
|
output,
|
|
1505
1374
|
parsedBody,
|
|
1506
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1507
1375
|
errorCode,
|
|
1508
1376
|
});
|
|
1509
1377
|
}
|
|
@@ -1519,7 +1387,7 @@ const de_SearchSystemTemplatesCommand = async (output, context) => {
|
|
|
1519
1387
|
$metadata: deserializeMetadata(output),
|
|
1520
1388
|
...contents,
|
|
1521
1389
|
};
|
|
1522
|
-
return
|
|
1390
|
+
return response;
|
|
1523
1391
|
};
|
|
1524
1392
|
exports.de_SearchSystemTemplatesCommand = de_SearchSystemTemplatesCommand;
|
|
1525
1393
|
const de_SearchSystemTemplatesCommandError = async (output, context) => {
|
|
@@ -1540,10 +1408,9 @@ const de_SearchSystemTemplatesCommandError = async (output, context) => {
|
|
|
1540
1408
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1541
1409
|
default:
|
|
1542
1410
|
const parsedBody = parsedOutput.body;
|
|
1543
|
-
|
|
1411
|
+
return throwDefaultError({
|
|
1544
1412
|
output,
|
|
1545
1413
|
parsedBody,
|
|
1546
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1547
1414
|
errorCode,
|
|
1548
1415
|
});
|
|
1549
1416
|
}
|
|
@@ -1554,12 +1421,12 @@ const de_SearchThingsCommand = async (output, context) => {
|
|
|
1554
1421
|
}
|
|
1555
1422
|
const data = await parseBody(output.body, context);
|
|
1556
1423
|
let contents = {};
|
|
1557
|
-
contents =
|
|
1424
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1558
1425
|
const response = {
|
|
1559
1426
|
$metadata: deserializeMetadata(output),
|
|
1560
1427
|
...contents,
|
|
1561
1428
|
};
|
|
1562
|
-
return
|
|
1429
|
+
return response;
|
|
1563
1430
|
};
|
|
1564
1431
|
exports.de_SearchThingsCommand = de_SearchThingsCommand;
|
|
1565
1432
|
const de_SearchThingsCommandError = async (output, context) => {
|
|
@@ -1583,10 +1450,9 @@ const de_SearchThingsCommandError = async (output, context) => {
|
|
|
1583
1450
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1584
1451
|
default:
|
|
1585
1452
|
const parsedBody = parsedOutput.body;
|
|
1586
|
-
|
|
1453
|
+
return throwDefaultError({
|
|
1587
1454
|
output,
|
|
1588
1455
|
parsedBody,
|
|
1589
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1590
1456
|
errorCode,
|
|
1591
1457
|
});
|
|
1592
1458
|
}
|
|
@@ -1597,12 +1463,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1597
1463
|
}
|
|
1598
1464
|
const data = await parseBody(output.body, context);
|
|
1599
1465
|
let contents = {};
|
|
1600
|
-
contents =
|
|
1466
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1601
1467
|
const response = {
|
|
1602
1468
|
$metadata: deserializeMetadata(output),
|
|
1603
1469
|
...contents,
|
|
1604
1470
|
};
|
|
1605
|
-
return
|
|
1471
|
+
return response;
|
|
1606
1472
|
};
|
|
1607
1473
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1608
1474
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -1626,10 +1492,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1626
1492
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1627
1493
|
default:
|
|
1628
1494
|
const parsedBody = parsedOutput.body;
|
|
1629
|
-
|
|
1495
|
+
return throwDefaultError({
|
|
1630
1496
|
output,
|
|
1631
1497
|
parsedBody,
|
|
1632
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1633
1498
|
errorCode,
|
|
1634
1499
|
});
|
|
1635
1500
|
}
|
|
@@ -1645,7 +1510,7 @@ const de_UndeploySystemInstanceCommand = async (output, context) => {
|
|
|
1645
1510
|
$metadata: deserializeMetadata(output),
|
|
1646
1511
|
...contents,
|
|
1647
1512
|
};
|
|
1648
|
-
return
|
|
1513
|
+
return response;
|
|
1649
1514
|
};
|
|
1650
1515
|
exports.de_UndeploySystemInstanceCommand = de_UndeploySystemInstanceCommand;
|
|
1651
1516
|
const de_UndeploySystemInstanceCommandError = async (output, context) => {
|
|
@@ -1672,10 +1537,9 @@ const de_UndeploySystemInstanceCommandError = async (output, context) => {
|
|
|
1672
1537
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1673
1538
|
default:
|
|
1674
1539
|
const parsedBody = parsedOutput.body;
|
|
1675
|
-
|
|
1540
|
+
return throwDefaultError({
|
|
1676
1541
|
output,
|
|
1677
1542
|
parsedBody,
|
|
1678
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1679
1543
|
errorCode,
|
|
1680
1544
|
});
|
|
1681
1545
|
}
|
|
@@ -1686,12 +1550,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1686
1550
|
}
|
|
1687
1551
|
const data = await parseBody(output.body, context);
|
|
1688
1552
|
let contents = {};
|
|
1689
|
-
contents =
|
|
1553
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1690
1554
|
const response = {
|
|
1691
1555
|
$metadata: deserializeMetadata(output),
|
|
1692
1556
|
...contents,
|
|
1693
1557
|
};
|
|
1694
|
-
return
|
|
1558
|
+
return response;
|
|
1695
1559
|
};
|
|
1696
1560
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1697
1561
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -1715,10 +1579,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1715
1579
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1716
1580
|
default:
|
|
1717
1581
|
const parsedBody = parsedOutput.body;
|
|
1718
|
-
|
|
1582
|
+
return throwDefaultError({
|
|
1719
1583
|
output,
|
|
1720
1584
|
parsedBody,
|
|
1721
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1722
1585
|
errorCode,
|
|
1723
1586
|
});
|
|
1724
1587
|
}
|
|
@@ -1734,7 +1597,7 @@ const de_UpdateFlowTemplateCommand = async (output, context) => {
|
|
|
1734
1597
|
$metadata: deserializeMetadata(output),
|
|
1735
1598
|
...contents,
|
|
1736
1599
|
};
|
|
1737
|
-
return
|
|
1600
|
+
return response;
|
|
1738
1601
|
};
|
|
1739
1602
|
exports.de_UpdateFlowTemplateCommand = de_UpdateFlowTemplateCommand;
|
|
1740
1603
|
const de_UpdateFlowTemplateCommandError = async (output, context) => {
|
|
@@ -1758,10 +1621,9 @@ const de_UpdateFlowTemplateCommandError = async (output, context) => {
|
|
|
1758
1621
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1759
1622
|
default:
|
|
1760
1623
|
const parsedBody = parsedOutput.body;
|
|
1761
|
-
|
|
1624
|
+
return throwDefaultError({
|
|
1762
1625
|
output,
|
|
1763
1626
|
parsedBody,
|
|
1764
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1765
1627
|
errorCode,
|
|
1766
1628
|
});
|
|
1767
1629
|
}
|
|
@@ -1777,7 +1639,7 @@ const de_UpdateSystemTemplateCommand = async (output, context) => {
|
|
|
1777
1639
|
$metadata: deserializeMetadata(output),
|
|
1778
1640
|
...contents,
|
|
1779
1641
|
};
|
|
1780
|
-
return
|
|
1642
|
+
return response;
|
|
1781
1643
|
};
|
|
1782
1644
|
exports.de_UpdateSystemTemplateCommand = de_UpdateSystemTemplateCommand;
|
|
1783
1645
|
const de_UpdateSystemTemplateCommandError = async (output, context) => {
|
|
@@ -1801,10 +1663,9 @@ const de_UpdateSystemTemplateCommandError = async (output, context) => {
|
|
|
1801
1663
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1802
1664
|
default:
|
|
1803
1665
|
const parsedBody = parsedOutput.body;
|
|
1804
|
-
|
|
1666
|
+
return throwDefaultError({
|
|
1805
1667
|
output,
|
|
1806
1668
|
parsedBody,
|
|
1807
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1808
1669
|
errorCode,
|
|
1809
1670
|
});
|
|
1810
1671
|
}
|
|
@@ -1815,12 +1676,12 @@ const de_UploadEntityDefinitionsCommand = async (output, context) => {
|
|
|
1815
1676
|
}
|
|
1816
1677
|
const data = await parseBody(output.body, context);
|
|
1817
1678
|
let contents = {};
|
|
1818
|
-
contents =
|
|
1679
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1819
1680
|
const response = {
|
|
1820
1681
|
$metadata: deserializeMetadata(output),
|
|
1821
1682
|
...contents,
|
|
1822
1683
|
};
|
|
1823
|
-
return
|
|
1684
|
+
return response;
|
|
1824
1685
|
};
|
|
1825
1686
|
exports.de_UploadEntityDefinitionsCommand = de_UploadEntityDefinitionsCommand;
|
|
1826
1687
|
const de_UploadEntityDefinitionsCommandError = async (output, context) => {
|
|
@@ -1841,17 +1702,16 @@ const de_UploadEntityDefinitionsCommandError = async (output, context) => {
|
|
|
1841
1702
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1842
1703
|
default:
|
|
1843
1704
|
const parsedBody = parsedOutput.body;
|
|
1844
|
-
|
|
1705
|
+
return throwDefaultError({
|
|
1845
1706
|
output,
|
|
1846
1707
|
parsedBody,
|
|
1847
|
-
exceptionCtor: IoTThingsGraphServiceException_1.IoTThingsGraphServiceException,
|
|
1848
1708
|
errorCode,
|
|
1849
1709
|
});
|
|
1850
1710
|
}
|
|
1851
1711
|
};
|
|
1852
1712
|
const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
1853
1713
|
const body = parsedOutput.body;
|
|
1854
|
-
const deserialized =
|
|
1714
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1855
1715
|
const exception = new models_0_1.InternalFailureException({
|
|
1856
1716
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1857
1717
|
...deserialized,
|
|
@@ -1860,7 +1720,7 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
1860
1720
|
};
|
|
1861
1721
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1862
1722
|
const body = parsedOutput.body;
|
|
1863
|
-
const deserialized =
|
|
1723
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1864
1724
|
const exception = new models_0_1.InvalidRequestException({
|
|
1865
1725
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1866
1726
|
...deserialized,
|
|
@@ -1869,7 +1729,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1869
1729
|
};
|
|
1870
1730
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1871
1731
|
const body = parsedOutput.body;
|
|
1872
|
-
const deserialized =
|
|
1732
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1873
1733
|
const exception = new models_0_1.LimitExceededException({
|
|
1874
1734
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1875
1735
|
...deserialized,
|
|
@@ -1878,7 +1738,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1878
1738
|
};
|
|
1879
1739
|
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1880
1740
|
const body = parsedOutput.body;
|
|
1881
|
-
const deserialized =
|
|
1741
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1882
1742
|
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
1883
1743
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1884
1744
|
...deserialized,
|
|
@@ -1887,7 +1747,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
1887
1747
|
};
|
|
1888
1748
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1889
1749
|
const body = parsedOutput.body;
|
|
1890
|
-
const deserialized =
|
|
1750
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1891
1751
|
const exception = new models_0_1.ResourceInUseException({
|
|
1892
1752
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1893
1753
|
...deserialized,
|
|
@@ -1896,7 +1756,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
1896
1756
|
};
|
|
1897
1757
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1898
1758
|
const body = parsedOutput.body;
|
|
1899
|
-
const deserialized =
|
|
1759
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1900
1760
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1901
1761
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1902
1762
|
...deserialized,
|
|
@@ -1905,475 +1765,73 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1905
1765
|
};
|
|
1906
1766
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1907
1767
|
const body = parsedOutput.body;
|
|
1908
|
-
const deserialized =
|
|
1768
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1909
1769
|
const exception = new models_0_1.ThrottlingException({
|
|
1910
1770
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1911
1771
|
...deserialized,
|
|
1912
1772
|
});
|
|
1913
1773
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1914
1774
|
};
|
|
1915
|
-
const se_AssociateEntityToThingRequest = (input, context) => {
|
|
1916
|
-
return {
|
|
1917
|
-
...(input.entityId != null && { entityId: input.entityId }),
|
|
1918
|
-
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
1919
|
-
...(input.thingName != null && { thingName: input.thingName }),
|
|
1920
|
-
};
|
|
1921
|
-
};
|
|
1922
|
-
const se_CreateFlowTemplateRequest = (input, context) => {
|
|
1923
|
-
return {
|
|
1924
|
-
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
1925
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
1926
|
-
};
|
|
1927
|
-
};
|
|
1928
|
-
const se_CreateSystemInstanceRequest = (input, context) => {
|
|
1929
|
-
return {
|
|
1930
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
1931
|
-
...(input.flowActionsRoleArn != null && { flowActionsRoleArn: input.flowActionsRoleArn }),
|
|
1932
|
-
...(input.greengrassGroupName != null && { greengrassGroupName: input.greengrassGroupName }),
|
|
1933
|
-
...(input.metricsConfiguration != null && {
|
|
1934
|
-
metricsConfiguration: se_MetricsConfiguration(input.metricsConfiguration, context),
|
|
1935
|
-
}),
|
|
1936
|
-
...(input.s3BucketName != null && { s3BucketName: input.s3BucketName }),
|
|
1937
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
1938
|
-
...(input.target != null && { target: input.target }),
|
|
1939
|
-
};
|
|
1940
|
-
};
|
|
1941
|
-
const se_CreateSystemTemplateRequest = (input, context) => {
|
|
1942
|
-
return {
|
|
1943
|
-
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
1944
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
1945
|
-
};
|
|
1946
|
-
};
|
|
1947
|
-
const se_DefinitionDocument = (input, context) => {
|
|
1948
|
-
return {
|
|
1949
|
-
...(input.language != null && { language: input.language }),
|
|
1950
|
-
...(input.text != null && { text: input.text }),
|
|
1951
|
-
};
|
|
1952
|
-
};
|
|
1953
|
-
const se_DeleteFlowTemplateRequest = (input, context) => {
|
|
1954
|
-
return {
|
|
1955
|
-
...(input.id != null && { id: input.id }),
|
|
1956
|
-
};
|
|
1957
|
-
};
|
|
1958
|
-
const se_DeleteNamespaceRequest = (input, context) => {
|
|
1959
|
-
return {};
|
|
1960
|
-
};
|
|
1961
|
-
const se_DeleteSystemInstanceRequest = (input, context) => {
|
|
1962
|
-
return {
|
|
1963
|
-
...(input.id != null && { id: input.id }),
|
|
1964
|
-
};
|
|
1965
|
-
};
|
|
1966
|
-
const se_DeleteSystemTemplateRequest = (input, context) => {
|
|
1967
|
-
return {
|
|
1968
|
-
...(input.id != null && { id: input.id }),
|
|
1969
|
-
};
|
|
1970
|
-
};
|
|
1971
|
-
const se_DeploySystemInstanceRequest = (input, context) => {
|
|
1972
|
-
return {
|
|
1973
|
-
...(input.id != null && { id: input.id }),
|
|
1974
|
-
};
|
|
1975
|
-
};
|
|
1976
|
-
const se_DeprecateFlowTemplateRequest = (input, context) => {
|
|
1977
|
-
return {
|
|
1978
|
-
...(input.id != null && { id: input.id }),
|
|
1979
|
-
};
|
|
1980
|
-
};
|
|
1981
|
-
const se_DeprecateSystemTemplateRequest = (input, context) => {
|
|
1982
|
-
return {
|
|
1983
|
-
...(input.id != null && { id: input.id }),
|
|
1984
|
-
};
|
|
1985
|
-
};
|
|
1986
|
-
const se_DescribeNamespaceRequest = (input, context) => {
|
|
1987
|
-
return {
|
|
1988
|
-
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
1989
|
-
};
|
|
1990
|
-
};
|
|
1991
|
-
const se_DissociateEntityFromThingRequest = (input, context) => {
|
|
1992
|
-
return {
|
|
1993
|
-
...(input.entityType != null && { entityType: input.entityType }),
|
|
1994
|
-
...(input.thingName != null && { thingName: input.thingName }),
|
|
1995
|
-
};
|
|
1996
|
-
};
|
|
1997
|
-
const se_EntityFilter = (input, context) => {
|
|
1998
|
-
return {
|
|
1999
|
-
...(input.name != null && { name: input.name }),
|
|
2000
|
-
...(input.value != null && { value: se_EntityFilterValues(input.value, context) }),
|
|
2001
|
-
};
|
|
2002
|
-
};
|
|
2003
|
-
const se_EntityFilters = (input, context) => {
|
|
2004
|
-
return input
|
|
2005
|
-
.filter((e) => e != null)
|
|
2006
|
-
.map((entry) => {
|
|
2007
|
-
return se_EntityFilter(entry, context);
|
|
2008
|
-
});
|
|
2009
|
-
};
|
|
2010
|
-
const se_EntityFilterValues = (input, context) => {
|
|
2011
|
-
return input
|
|
2012
|
-
.filter((e) => e != null)
|
|
2013
|
-
.map((entry) => {
|
|
2014
|
-
return entry;
|
|
2015
|
-
});
|
|
2016
|
-
};
|
|
2017
|
-
const se_EntityTypes = (input, context) => {
|
|
2018
|
-
return input
|
|
2019
|
-
.filter((e) => e != null)
|
|
2020
|
-
.map((entry) => {
|
|
2021
|
-
return entry;
|
|
2022
|
-
});
|
|
2023
|
-
};
|
|
2024
|
-
const se_FlowTemplateFilter = (input, context) => {
|
|
2025
|
-
return {
|
|
2026
|
-
...(input.name != null && { name: input.name }),
|
|
2027
|
-
...(input.value != null && { value: se_FlowTemplateFilterValues(input.value, context) }),
|
|
2028
|
-
};
|
|
2029
|
-
};
|
|
2030
|
-
const se_FlowTemplateFilters = (input, context) => {
|
|
2031
|
-
return input
|
|
2032
|
-
.filter((e) => e != null)
|
|
2033
|
-
.map((entry) => {
|
|
2034
|
-
return se_FlowTemplateFilter(entry, context);
|
|
2035
|
-
});
|
|
2036
|
-
};
|
|
2037
|
-
const se_FlowTemplateFilterValues = (input, context) => {
|
|
2038
|
-
return input
|
|
2039
|
-
.filter((e) => e != null)
|
|
2040
|
-
.map((entry) => {
|
|
2041
|
-
return entry;
|
|
2042
|
-
});
|
|
2043
|
-
};
|
|
2044
|
-
const se_GetEntitiesRequest = (input, context) => {
|
|
2045
|
-
return {
|
|
2046
|
-
...(input.ids != null && { ids: se_Urns(input.ids, context) }),
|
|
2047
|
-
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2048
|
-
};
|
|
2049
|
-
};
|
|
2050
|
-
const se_GetFlowTemplateRequest = (input, context) => {
|
|
2051
|
-
return {
|
|
2052
|
-
...(input.id != null && { id: input.id }),
|
|
2053
|
-
...(input.revisionNumber != null && { revisionNumber: input.revisionNumber }),
|
|
2054
|
-
};
|
|
2055
|
-
};
|
|
2056
|
-
const se_GetFlowTemplateRevisionsRequest = (input, context) => {
|
|
2057
|
-
return {
|
|
2058
|
-
...(input.id != null && { id: input.id }),
|
|
2059
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2060
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2061
|
-
};
|
|
2062
|
-
};
|
|
2063
|
-
const se_GetNamespaceDeletionStatusRequest = (input, context) => {
|
|
2064
|
-
return {};
|
|
2065
|
-
};
|
|
2066
|
-
const se_GetSystemInstanceRequest = (input, context) => {
|
|
2067
|
-
return {
|
|
2068
|
-
...(input.id != null && { id: input.id }),
|
|
2069
|
-
};
|
|
2070
|
-
};
|
|
2071
|
-
const se_GetSystemTemplateRequest = (input, context) => {
|
|
2072
|
-
return {
|
|
2073
|
-
...(input.id != null && { id: input.id }),
|
|
2074
|
-
...(input.revisionNumber != null && { revisionNumber: input.revisionNumber }),
|
|
2075
|
-
};
|
|
2076
|
-
};
|
|
2077
|
-
const se_GetSystemTemplateRevisionsRequest = (input, context) => {
|
|
2078
|
-
return {
|
|
2079
|
-
...(input.id != null && { id: input.id }),
|
|
2080
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2081
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2082
|
-
};
|
|
2083
|
-
};
|
|
2084
|
-
const se_GetUploadStatusRequest = (input, context) => {
|
|
2085
|
-
return {
|
|
2086
|
-
...(input.uploadId != null && { uploadId: input.uploadId }),
|
|
2087
|
-
};
|
|
2088
|
-
};
|
|
2089
|
-
const se_ListFlowExecutionMessagesRequest = (input, context) => {
|
|
2090
|
-
return {
|
|
2091
|
-
...(input.flowExecutionId != null && { flowExecutionId: input.flowExecutionId }),
|
|
2092
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2093
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2094
|
-
};
|
|
2095
|
-
};
|
|
2096
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2097
|
-
return {
|
|
2098
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2099
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2100
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2101
|
-
};
|
|
2102
|
-
};
|
|
2103
|
-
const se_MetricsConfiguration = (input, context) => {
|
|
2104
|
-
return {
|
|
2105
|
-
...(input.cloudMetricEnabled != null && { cloudMetricEnabled: input.cloudMetricEnabled }),
|
|
2106
|
-
...(input.metricRuleRoleArn != null && { metricRuleRoleArn: input.metricRuleRoleArn }),
|
|
2107
|
-
};
|
|
2108
|
-
};
|
|
2109
|
-
const se_SearchEntitiesRequest = (input, context) => {
|
|
2110
|
-
return {
|
|
2111
|
-
...(input.entityTypes != null && { entityTypes: se_EntityTypes(input.entityTypes, context) }),
|
|
2112
|
-
...(input.filters != null && { filters: se_EntityFilters(input.filters, context) }),
|
|
2113
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2114
|
-
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2115
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2116
|
-
};
|
|
2117
|
-
};
|
|
2118
1775
|
const se_SearchFlowExecutionsRequest = (input, context) => {
|
|
2119
|
-
return {
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
};
|
|
2127
|
-
};
|
|
2128
|
-
const se_SearchFlowTemplatesRequest = (input, context) => {
|
|
2129
|
-
return {
|
|
2130
|
-
...(input.filters != null && { filters: se_FlowTemplateFilters(input.filters, context) }),
|
|
2131
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2132
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2133
|
-
};
|
|
2134
|
-
};
|
|
2135
|
-
const se_SearchSystemInstancesRequest = (input, context) => {
|
|
2136
|
-
return {
|
|
2137
|
-
...(input.filters != null && { filters: se_SystemInstanceFilters(input.filters, context) }),
|
|
2138
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2139
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2140
|
-
};
|
|
2141
|
-
};
|
|
2142
|
-
const se_SearchSystemTemplatesRequest = (input, context) => {
|
|
2143
|
-
return {
|
|
2144
|
-
...(input.filters != null && { filters: se_SystemTemplateFilters(input.filters, context) }),
|
|
2145
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2146
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2147
|
-
};
|
|
2148
|
-
};
|
|
2149
|
-
const se_SearchThingsRequest = (input, context) => {
|
|
2150
|
-
return {
|
|
2151
|
-
...(input.entityId != null && { entityId: input.entityId }),
|
|
2152
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2153
|
-
...(input.namespaceVersion != null && { namespaceVersion: input.namespaceVersion }),
|
|
2154
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2155
|
-
};
|
|
2156
|
-
};
|
|
2157
|
-
const se_SystemInstanceFilter = (input, context) => {
|
|
2158
|
-
return {
|
|
2159
|
-
...(input.name != null && { name: input.name }),
|
|
2160
|
-
...(input.value != null && { value: se_SystemInstanceFilterValues(input.value, context) }),
|
|
2161
|
-
};
|
|
2162
|
-
};
|
|
2163
|
-
const se_SystemInstanceFilters = (input, context) => {
|
|
2164
|
-
return input
|
|
2165
|
-
.filter((e) => e != null)
|
|
2166
|
-
.map((entry) => {
|
|
2167
|
-
return se_SystemInstanceFilter(entry, context);
|
|
2168
|
-
});
|
|
2169
|
-
};
|
|
2170
|
-
const se_SystemInstanceFilterValues = (input, context) => {
|
|
2171
|
-
return input
|
|
2172
|
-
.filter((e) => e != null)
|
|
2173
|
-
.map((entry) => {
|
|
2174
|
-
return entry;
|
|
2175
|
-
});
|
|
2176
|
-
};
|
|
2177
|
-
const se_SystemTemplateFilter = (input, context) => {
|
|
2178
|
-
return {
|
|
2179
|
-
...(input.name != null && { name: input.name }),
|
|
2180
|
-
...(input.value != null && { value: se_SystemTemplateFilterValues(input.value, context) }),
|
|
2181
|
-
};
|
|
2182
|
-
};
|
|
2183
|
-
const se_SystemTemplateFilters = (input, context) => {
|
|
2184
|
-
return input
|
|
2185
|
-
.filter((e) => e != null)
|
|
2186
|
-
.map((entry) => {
|
|
2187
|
-
return se_SystemTemplateFilter(entry, context);
|
|
2188
|
-
});
|
|
2189
|
-
};
|
|
2190
|
-
const se_SystemTemplateFilterValues = (input, context) => {
|
|
2191
|
-
return input
|
|
2192
|
-
.filter((e) => e != null)
|
|
2193
|
-
.map((entry) => {
|
|
2194
|
-
return entry;
|
|
2195
|
-
});
|
|
2196
|
-
};
|
|
2197
|
-
const se_Tag = (input, context) => {
|
|
2198
|
-
return {
|
|
2199
|
-
...(input.key != null && { key: input.key }),
|
|
2200
|
-
...(input.value != null && { value: input.value }),
|
|
2201
|
-
};
|
|
2202
|
-
};
|
|
2203
|
-
const se_TagKeyList = (input, context) => {
|
|
2204
|
-
return input
|
|
2205
|
-
.filter((e) => e != null)
|
|
2206
|
-
.map((entry) => {
|
|
2207
|
-
return entry;
|
|
2208
|
-
});
|
|
2209
|
-
};
|
|
2210
|
-
const se_TagList = (input, context) => {
|
|
2211
|
-
return input
|
|
2212
|
-
.filter((e) => e != null)
|
|
2213
|
-
.map((entry) => {
|
|
2214
|
-
return se_Tag(entry, context);
|
|
1776
|
+
return (0, smithy_client_1.take)(input, {
|
|
1777
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
1778
|
+
flowExecutionId: [],
|
|
1779
|
+
maxResults: [],
|
|
1780
|
+
nextToken: [],
|
|
1781
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
1782
|
+
systemInstanceId: [],
|
|
2215
1783
|
});
|
|
2216
1784
|
};
|
|
2217
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2218
|
-
return {
|
|
2219
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2220
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2221
|
-
};
|
|
2222
|
-
};
|
|
2223
|
-
const se_UndeploySystemInstanceRequest = (input, context) => {
|
|
2224
|
-
return {
|
|
2225
|
-
...(input.id != null && { id: input.id }),
|
|
2226
|
-
};
|
|
2227
|
-
};
|
|
2228
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2229
|
-
return {
|
|
2230
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2231
|
-
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
2232
|
-
};
|
|
2233
|
-
};
|
|
2234
|
-
const se_UpdateFlowTemplateRequest = (input, context) => {
|
|
2235
|
-
return {
|
|
2236
|
-
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2237
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
2238
|
-
...(input.id != null && { id: input.id }),
|
|
2239
|
-
};
|
|
2240
|
-
};
|
|
2241
|
-
const se_UpdateSystemTemplateRequest = (input, context) => {
|
|
2242
|
-
return {
|
|
2243
|
-
...(input.compatibleNamespaceVersion != null && { compatibleNamespaceVersion: input.compatibleNamespaceVersion }),
|
|
2244
|
-
...(input.definition != null && { definition: se_DefinitionDocument(input.definition, context) }),
|
|
2245
|
-
...(input.id != null && { id: input.id }),
|
|
2246
|
-
};
|
|
2247
|
-
};
|
|
2248
|
-
const se_UploadEntityDefinitionsRequest = (input, context) => {
|
|
2249
|
-
return {
|
|
2250
|
-
...(input.deprecateExistingEntities != null && { deprecateExistingEntities: input.deprecateExistingEntities }),
|
|
2251
|
-
...(input.document != null && { document: se_DefinitionDocument(input.document, context) }),
|
|
2252
|
-
...(input.syncWithPublicNamespace != null && { syncWithPublicNamespace: input.syncWithPublicNamespace }),
|
|
2253
|
-
};
|
|
2254
|
-
};
|
|
2255
|
-
const se_Urns = (input, context) => {
|
|
2256
|
-
return input
|
|
2257
|
-
.filter((e) => e != null)
|
|
2258
|
-
.map((entry) => {
|
|
2259
|
-
return entry;
|
|
2260
|
-
});
|
|
2261
|
-
};
|
|
2262
|
-
const de_AssociateEntityToThingResponse = (output, context) => {
|
|
2263
|
-
return {};
|
|
2264
|
-
};
|
|
2265
1785
|
const de_CreateFlowTemplateResponse = (output, context) => {
|
|
2266
|
-
return {
|
|
2267
|
-
summary:
|
|
2268
|
-
};
|
|
1786
|
+
return (0, smithy_client_1.take)(output, {
|
|
1787
|
+
summary: (_) => de_FlowTemplateSummary(_, context),
|
|
1788
|
+
});
|
|
2269
1789
|
};
|
|
2270
1790
|
const de_CreateSystemInstanceResponse = (output, context) => {
|
|
2271
|
-
return {
|
|
2272
|
-
summary:
|
|
2273
|
-
};
|
|
1791
|
+
return (0, smithy_client_1.take)(output, {
|
|
1792
|
+
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
1793
|
+
});
|
|
2274
1794
|
};
|
|
2275
1795
|
const de_CreateSystemTemplateResponse = (output, context) => {
|
|
2276
|
-
return {
|
|
2277
|
-
summary:
|
|
2278
|
-
};
|
|
2279
|
-
};
|
|
2280
|
-
const de_DefinitionDocument = (output, context) => {
|
|
2281
|
-
return {
|
|
2282
|
-
language: (0, smithy_client_1.expectString)(output.language),
|
|
2283
|
-
text: (0, smithy_client_1.expectString)(output.text),
|
|
2284
|
-
};
|
|
2285
|
-
};
|
|
2286
|
-
const de_DeleteFlowTemplateResponse = (output, context) => {
|
|
2287
|
-
return {};
|
|
2288
|
-
};
|
|
2289
|
-
const de_DeleteNamespaceResponse = (output, context) => {
|
|
2290
|
-
return {
|
|
2291
|
-
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2292
|
-
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2293
|
-
};
|
|
2294
|
-
};
|
|
2295
|
-
const de_DeleteSystemInstanceResponse = (output, context) => {
|
|
2296
|
-
return {};
|
|
2297
|
-
};
|
|
2298
|
-
const de_DeleteSystemTemplateResponse = (output, context) => {
|
|
2299
|
-
return {};
|
|
2300
|
-
};
|
|
2301
|
-
const de_DependencyRevision = (output, context) => {
|
|
2302
|
-
return {
|
|
2303
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2304
|
-
revisionNumber: (0, smithy_client_1.expectLong)(output.revisionNumber),
|
|
2305
|
-
};
|
|
2306
|
-
};
|
|
2307
|
-
const de_DependencyRevisions = (output, context) => {
|
|
2308
|
-
const retVal = (output || [])
|
|
2309
|
-
.filter((e) => e != null)
|
|
2310
|
-
.map((entry) => {
|
|
2311
|
-
if (entry === null) {
|
|
2312
|
-
return null;
|
|
2313
|
-
}
|
|
2314
|
-
return de_DependencyRevision(entry, context);
|
|
1796
|
+
return (0, smithy_client_1.take)(output, {
|
|
1797
|
+
summary: (_) => de_SystemTemplateSummary(_, context),
|
|
2315
1798
|
});
|
|
2316
|
-
return retVal;
|
|
2317
1799
|
};
|
|
2318
1800
|
const de_DeploySystemInstanceResponse = (output, context) => {
|
|
2319
|
-
return {
|
|
2320
|
-
greengrassDeploymentId:
|
|
2321
|
-
summary:
|
|
2322
|
-
};
|
|
2323
|
-
};
|
|
2324
|
-
const de_DeprecateFlowTemplateResponse = (output, context) => {
|
|
2325
|
-
return {};
|
|
2326
|
-
};
|
|
2327
|
-
const de_DeprecateSystemTemplateResponse = (output, context) => {
|
|
2328
|
-
return {};
|
|
2329
|
-
};
|
|
2330
|
-
const de_DescribeNamespaceResponse = (output, context) => {
|
|
2331
|
-
return {
|
|
2332
|
-
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2333
|
-
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2334
|
-
namespaceVersion: (0, smithy_client_1.expectLong)(output.namespaceVersion),
|
|
2335
|
-
trackingNamespaceName: (0, smithy_client_1.expectString)(output.trackingNamespaceName),
|
|
2336
|
-
trackingNamespaceVersion: (0, smithy_client_1.expectLong)(output.trackingNamespaceVersion),
|
|
2337
|
-
};
|
|
2338
|
-
};
|
|
2339
|
-
const de_DissociateEntityFromThingResponse = (output, context) => {
|
|
2340
|
-
return {};
|
|
1801
|
+
return (0, smithy_client_1.take)(output, {
|
|
1802
|
+
greengrassDeploymentId: smithy_client_1.expectString,
|
|
1803
|
+
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
1804
|
+
});
|
|
2341
1805
|
};
|
|
2342
1806
|
const de_EntityDescription = (output, context) => {
|
|
2343
|
-
return {
|
|
2344
|
-
arn:
|
|
2345
|
-
createdAt:
|
|
2346
|
-
definition:
|
|
2347
|
-
id:
|
|
2348
|
-
type:
|
|
2349
|
-
};
|
|
1807
|
+
return (0, smithy_client_1.take)(output, {
|
|
1808
|
+
arn: smithy_client_1.expectString,
|
|
1809
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1810
|
+
definition: smithy_client_1._json,
|
|
1811
|
+
id: smithy_client_1.expectString,
|
|
1812
|
+
type: smithy_client_1.expectString,
|
|
1813
|
+
});
|
|
2350
1814
|
};
|
|
2351
1815
|
const de_EntityDescriptions = (output, context) => {
|
|
2352
1816
|
const retVal = (output || [])
|
|
2353
1817
|
.filter((e) => e != null)
|
|
2354
1818
|
.map((entry) => {
|
|
2355
|
-
if (entry === null) {
|
|
2356
|
-
return null;
|
|
2357
|
-
}
|
|
2358
1819
|
return de_EntityDescription(entry, context);
|
|
2359
1820
|
});
|
|
2360
1821
|
return retVal;
|
|
2361
1822
|
};
|
|
2362
1823
|
const de_FlowExecutionMessage = (output, context) => {
|
|
2363
|
-
return {
|
|
2364
|
-
eventType:
|
|
2365
|
-
messageId:
|
|
2366
|
-
payload:
|
|
2367
|
-
timestamp:
|
|
2368
|
-
};
|
|
1824
|
+
return (0, smithy_client_1.take)(output, {
|
|
1825
|
+
eventType: smithy_client_1.expectString,
|
|
1826
|
+
messageId: smithy_client_1.expectString,
|
|
1827
|
+
payload: smithy_client_1.expectString,
|
|
1828
|
+
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1829
|
+
});
|
|
2369
1830
|
};
|
|
2370
1831
|
const de_FlowExecutionMessages = (output, context) => {
|
|
2371
1832
|
const retVal = (output || [])
|
|
2372
1833
|
.filter((e) => e != null)
|
|
2373
1834
|
.map((entry) => {
|
|
2374
|
-
if (entry === null) {
|
|
2375
|
-
return null;
|
|
2376
|
-
}
|
|
2377
1835
|
return de_FlowExecutionMessage(entry, context);
|
|
2378
1836
|
});
|
|
2379
1837
|
return retVal;
|
|
@@ -2382,325 +1840,191 @@ const de_FlowExecutionSummaries = (output, context) => {
|
|
|
2382
1840
|
const retVal = (output || [])
|
|
2383
1841
|
.filter((e) => e != null)
|
|
2384
1842
|
.map((entry) => {
|
|
2385
|
-
if (entry === null) {
|
|
2386
|
-
return null;
|
|
2387
|
-
}
|
|
2388
1843
|
return de_FlowExecutionSummary(entry, context);
|
|
2389
1844
|
});
|
|
2390
1845
|
return retVal;
|
|
2391
1846
|
};
|
|
2392
1847
|
const de_FlowExecutionSummary = (output, context) => {
|
|
2393
|
-
return {
|
|
2394
|
-
createdAt:
|
|
2395
|
-
flowExecutionId:
|
|
2396
|
-
flowTemplateId:
|
|
2397
|
-
status:
|
|
2398
|
-
systemInstanceId:
|
|
2399
|
-
updatedAt:
|
|
2400
|
-
};
|
|
1848
|
+
return (0, smithy_client_1.take)(output, {
|
|
1849
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1850
|
+
flowExecutionId: smithy_client_1.expectString,
|
|
1851
|
+
flowTemplateId: smithy_client_1.expectString,
|
|
1852
|
+
status: smithy_client_1.expectString,
|
|
1853
|
+
systemInstanceId: smithy_client_1.expectString,
|
|
1854
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1855
|
+
});
|
|
2401
1856
|
};
|
|
2402
1857
|
const de_FlowTemplateDescription = (output, context) => {
|
|
2403
|
-
return {
|
|
2404
|
-
definition:
|
|
2405
|
-
summary:
|
|
2406
|
-
validatedNamespaceVersion:
|
|
2407
|
-
};
|
|
1858
|
+
return (0, smithy_client_1.take)(output, {
|
|
1859
|
+
definition: smithy_client_1._json,
|
|
1860
|
+
summary: (_) => de_FlowTemplateSummary(_, context),
|
|
1861
|
+
validatedNamespaceVersion: smithy_client_1.expectLong,
|
|
1862
|
+
});
|
|
2408
1863
|
};
|
|
2409
1864
|
const de_FlowTemplateSummaries = (output, context) => {
|
|
2410
1865
|
const retVal = (output || [])
|
|
2411
1866
|
.filter((e) => e != null)
|
|
2412
1867
|
.map((entry) => {
|
|
2413
|
-
if (entry === null) {
|
|
2414
|
-
return null;
|
|
2415
|
-
}
|
|
2416
1868
|
return de_FlowTemplateSummary(entry, context);
|
|
2417
1869
|
});
|
|
2418
1870
|
return retVal;
|
|
2419
1871
|
};
|
|
2420
1872
|
const de_FlowTemplateSummary = (output, context) => {
|
|
2421
|
-
return {
|
|
2422
|
-
arn:
|
|
2423
|
-
createdAt:
|
|
2424
|
-
id:
|
|
2425
|
-
revisionNumber:
|
|
2426
|
-
};
|
|
1873
|
+
return (0, smithy_client_1.take)(output, {
|
|
1874
|
+
arn: smithy_client_1.expectString,
|
|
1875
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1876
|
+
id: smithy_client_1.expectString,
|
|
1877
|
+
revisionNumber: smithy_client_1.expectLong,
|
|
1878
|
+
});
|
|
2427
1879
|
};
|
|
2428
1880
|
const de_GetEntitiesResponse = (output, context) => {
|
|
2429
|
-
return {
|
|
2430
|
-
descriptions:
|
|
2431
|
-
};
|
|
1881
|
+
return (0, smithy_client_1.take)(output, {
|
|
1882
|
+
descriptions: (_) => de_EntityDescriptions(_, context),
|
|
1883
|
+
});
|
|
2432
1884
|
};
|
|
2433
1885
|
const de_GetFlowTemplateResponse = (output, context) => {
|
|
2434
|
-
return {
|
|
2435
|
-
description:
|
|
2436
|
-
};
|
|
1886
|
+
return (0, smithy_client_1.take)(output, {
|
|
1887
|
+
description: (_) => de_FlowTemplateDescription(_, context),
|
|
1888
|
+
});
|
|
2437
1889
|
};
|
|
2438
1890
|
const de_GetFlowTemplateRevisionsResponse = (output, context) => {
|
|
2439
|
-
return {
|
|
2440
|
-
nextToken:
|
|
2441
|
-
summaries:
|
|
2442
|
-
};
|
|
2443
|
-
};
|
|
2444
|
-
const de_GetNamespaceDeletionStatusResponse = (output, context) => {
|
|
2445
|
-
return {
|
|
2446
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2447
|
-
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
2448
|
-
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2449
|
-
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2450
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2451
|
-
};
|
|
1891
|
+
return (0, smithy_client_1.take)(output, {
|
|
1892
|
+
nextToken: smithy_client_1.expectString,
|
|
1893
|
+
summaries: (_) => de_FlowTemplateSummaries(_, context),
|
|
1894
|
+
});
|
|
2452
1895
|
};
|
|
2453
1896
|
const de_GetSystemInstanceResponse = (output, context) => {
|
|
2454
|
-
return {
|
|
2455
|
-
description:
|
|
2456
|
-
};
|
|
1897
|
+
return (0, smithy_client_1.take)(output, {
|
|
1898
|
+
description: (_) => de_SystemInstanceDescription(_, context),
|
|
1899
|
+
});
|
|
2457
1900
|
};
|
|
2458
1901
|
const de_GetSystemTemplateResponse = (output, context) => {
|
|
2459
|
-
return {
|
|
2460
|
-
description:
|
|
2461
|
-
};
|
|
1902
|
+
return (0, smithy_client_1.take)(output, {
|
|
1903
|
+
description: (_) => de_SystemTemplateDescription(_, context),
|
|
1904
|
+
});
|
|
2462
1905
|
};
|
|
2463
1906
|
const de_GetSystemTemplateRevisionsResponse = (output, context) => {
|
|
2464
|
-
return {
|
|
2465
|
-
nextToken:
|
|
2466
|
-
summaries:
|
|
2467
|
-
};
|
|
1907
|
+
return (0, smithy_client_1.take)(output, {
|
|
1908
|
+
nextToken: smithy_client_1.expectString,
|
|
1909
|
+
summaries: (_) => de_SystemTemplateSummaries(_, context),
|
|
1910
|
+
});
|
|
2468
1911
|
};
|
|
2469
1912
|
const de_GetUploadStatusResponse = (output, context) => {
|
|
2470
|
-
return {
|
|
2471
|
-
createdDate:
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
uploadStatus: (0, smithy_client_1.expectString)(output.uploadStatus),
|
|
2480
|
-
};
|
|
2481
|
-
};
|
|
2482
|
-
const de_InternalFailureException = (output, context) => {
|
|
2483
|
-
return {
|
|
2484
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2485
|
-
};
|
|
2486
|
-
};
|
|
2487
|
-
const de_InvalidRequestException = (output, context) => {
|
|
2488
|
-
return {
|
|
2489
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2490
|
-
};
|
|
2491
|
-
};
|
|
2492
|
-
const de_LimitExceededException = (output, context) => {
|
|
2493
|
-
return {
|
|
2494
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2495
|
-
};
|
|
1913
|
+
return (0, smithy_client_1.take)(output, {
|
|
1914
|
+
createdDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1915
|
+
failureReason: smithy_client_1._json,
|
|
1916
|
+
namespaceArn: smithy_client_1.expectString,
|
|
1917
|
+
namespaceName: smithy_client_1.expectString,
|
|
1918
|
+
namespaceVersion: smithy_client_1.expectLong,
|
|
1919
|
+
uploadId: smithy_client_1.expectString,
|
|
1920
|
+
uploadStatus: smithy_client_1.expectString,
|
|
1921
|
+
});
|
|
2496
1922
|
};
|
|
2497
1923
|
const de_ListFlowExecutionMessagesResponse = (output, context) => {
|
|
2498
|
-
return {
|
|
2499
|
-
messages:
|
|
2500
|
-
nextToken:
|
|
2501
|
-
};
|
|
2502
|
-
};
|
|
2503
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2504
|
-
return {
|
|
2505
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2506
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
2507
|
-
};
|
|
2508
|
-
};
|
|
2509
|
-
const de_MetricsConfiguration = (output, context) => {
|
|
2510
|
-
return {
|
|
2511
|
-
cloudMetricEnabled: (0, smithy_client_1.expectBoolean)(output.cloudMetricEnabled),
|
|
2512
|
-
metricRuleRoleArn: (0, smithy_client_1.expectString)(output.metricRuleRoleArn),
|
|
2513
|
-
};
|
|
2514
|
-
};
|
|
2515
|
-
const de_ResourceAlreadyExistsException = (output, context) => {
|
|
2516
|
-
return {
|
|
2517
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2518
|
-
};
|
|
2519
|
-
};
|
|
2520
|
-
const de_ResourceInUseException = (output, context) => {
|
|
2521
|
-
return {
|
|
2522
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2523
|
-
};
|
|
2524
|
-
};
|
|
2525
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2526
|
-
return {
|
|
2527
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2528
|
-
};
|
|
1924
|
+
return (0, smithy_client_1.take)(output, {
|
|
1925
|
+
messages: (_) => de_FlowExecutionMessages(_, context),
|
|
1926
|
+
nextToken: smithy_client_1.expectString,
|
|
1927
|
+
});
|
|
2529
1928
|
};
|
|
2530
1929
|
const de_SearchEntitiesResponse = (output, context) => {
|
|
2531
|
-
return {
|
|
2532
|
-
descriptions:
|
|
2533
|
-
nextToken:
|
|
2534
|
-
};
|
|
1930
|
+
return (0, smithy_client_1.take)(output, {
|
|
1931
|
+
descriptions: (_) => de_EntityDescriptions(_, context),
|
|
1932
|
+
nextToken: smithy_client_1.expectString,
|
|
1933
|
+
});
|
|
2535
1934
|
};
|
|
2536
1935
|
const de_SearchFlowExecutionsResponse = (output, context) => {
|
|
2537
|
-
return {
|
|
2538
|
-
nextToken:
|
|
2539
|
-
summaries:
|
|
2540
|
-
};
|
|
1936
|
+
return (0, smithy_client_1.take)(output, {
|
|
1937
|
+
nextToken: smithy_client_1.expectString,
|
|
1938
|
+
summaries: (_) => de_FlowExecutionSummaries(_, context),
|
|
1939
|
+
});
|
|
2541
1940
|
};
|
|
2542
1941
|
const de_SearchFlowTemplatesResponse = (output, context) => {
|
|
2543
|
-
return {
|
|
2544
|
-
nextToken:
|
|
2545
|
-
summaries:
|
|
2546
|
-
};
|
|
1942
|
+
return (0, smithy_client_1.take)(output, {
|
|
1943
|
+
nextToken: smithy_client_1.expectString,
|
|
1944
|
+
summaries: (_) => de_FlowTemplateSummaries(_, context),
|
|
1945
|
+
});
|
|
2547
1946
|
};
|
|
2548
1947
|
const de_SearchSystemInstancesResponse = (output, context) => {
|
|
2549
|
-
return {
|
|
2550
|
-
nextToken:
|
|
2551
|
-
summaries:
|
|
2552
|
-
};
|
|
1948
|
+
return (0, smithy_client_1.take)(output, {
|
|
1949
|
+
nextToken: smithy_client_1.expectString,
|
|
1950
|
+
summaries: (_) => de_SystemInstanceSummaries(_, context),
|
|
1951
|
+
});
|
|
2553
1952
|
};
|
|
2554
1953
|
const de_SearchSystemTemplatesResponse = (output, context) => {
|
|
2555
|
-
return {
|
|
2556
|
-
nextToken:
|
|
2557
|
-
summaries:
|
|
2558
|
-
};
|
|
2559
|
-
};
|
|
2560
|
-
const de_SearchThingsResponse = (output, context) => {
|
|
2561
|
-
return {
|
|
2562
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2563
|
-
things: output.things != null ? de_Things(output.things, context) : undefined,
|
|
2564
|
-
};
|
|
2565
|
-
};
|
|
2566
|
-
const de_StringList = (output, context) => {
|
|
2567
|
-
const retVal = (output || [])
|
|
2568
|
-
.filter((e) => e != null)
|
|
2569
|
-
.map((entry) => {
|
|
2570
|
-
if (entry === null) {
|
|
2571
|
-
return null;
|
|
2572
|
-
}
|
|
2573
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
1954
|
+
return (0, smithy_client_1.take)(output, {
|
|
1955
|
+
nextToken: smithy_client_1.expectString,
|
|
1956
|
+
summaries: (_) => de_SystemTemplateSummaries(_, context),
|
|
2574
1957
|
});
|
|
2575
|
-
return retVal;
|
|
2576
1958
|
};
|
|
2577
1959
|
const de_SystemInstanceDescription = (output, context) => {
|
|
2578
|
-
return {
|
|
2579
|
-
definition:
|
|
2580
|
-
flowActionsRoleArn:
|
|
2581
|
-
metricsConfiguration:
|
|
2582
|
-
s3BucketName:
|
|
2583
|
-
summary:
|
|
2584
|
-
validatedDependencyRevisions:
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
validatedNamespaceVersion: (0, smithy_client_1.expectLong)(output.validatedNamespaceVersion),
|
|
2588
|
-
};
|
|
1960
|
+
return (0, smithy_client_1.take)(output, {
|
|
1961
|
+
definition: smithy_client_1._json,
|
|
1962
|
+
flowActionsRoleArn: smithy_client_1.expectString,
|
|
1963
|
+
metricsConfiguration: smithy_client_1._json,
|
|
1964
|
+
s3BucketName: smithy_client_1.expectString,
|
|
1965
|
+
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
1966
|
+
validatedDependencyRevisions: smithy_client_1._json,
|
|
1967
|
+
validatedNamespaceVersion: smithy_client_1.expectLong,
|
|
1968
|
+
});
|
|
2589
1969
|
};
|
|
2590
1970
|
const de_SystemInstanceSummaries = (output, context) => {
|
|
2591
1971
|
const retVal = (output || [])
|
|
2592
1972
|
.filter((e) => e != null)
|
|
2593
1973
|
.map((entry) => {
|
|
2594
|
-
if (entry === null) {
|
|
2595
|
-
return null;
|
|
2596
|
-
}
|
|
2597
1974
|
return de_SystemInstanceSummary(entry, context);
|
|
2598
1975
|
});
|
|
2599
1976
|
return retVal;
|
|
2600
1977
|
};
|
|
2601
1978
|
const de_SystemInstanceSummary = (output, context) => {
|
|
2602
|
-
return {
|
|
2603
|
-
arn:
|
|
2604
|
-
createdAt:
|
|
2605
|
-
greengrassGroupId:
|
|
2606
|
-
greengrassGroupName:
|
|
2607
|
-
greengrassGroupVersionId:
|
|
2608
|
-
id:
|
|
2609
|
-
status:
|
|
2610
|
-
target:
|
|
2611
|
-
updatedAt:
|
|
2612
|
-
};
|
|
1979
|
+
return (0, smithy_client_1.take)(output, {
|
|
1980
|
+
arn: smithy_client_1.expectString,
|
|
1981
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1982
|
+
greengrassGroupId: smithy_client_1.expectString,
|
|
1983
|
+
greengrassGroupName: smithy_client_1.expectString,
|
|
1984
|
+
greengrassGroupVersionId: smithy_client_1.expectString,
|
|
1985
|
+
id: smithy_client_1.expectString,
|
|
1986
|
+
status: smithy_client_1.expectString,
|
|
1987
|
+
target: smithy_client_1.expectString,
|
|
1988
|
+
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1989
|
+
});
|
|
2613
1990
|
};
|
|
2614
1991
|
const de_SystemTemplateDescription = (output, context) => {
|
|
2615
|
-
return {
|
|
2616
|
-
definition:
|
|
2617
|
-
summary:
|
|
2618
|
-
validatedNamespaceVersion:
|
|
2619
|
-
};
|
|
1992
|
+
return (0, smithy_client_1.take)(output, {
|
|
1993
|
+
definition: smithy_client_1._json,
|
|
1994
|
+
summary: (_) => de_SystemTemplateSummary(_, context),
|
|
1995
|
+
validatedNamespaceVersion: smithy_client_1.expectLong,
|
|
1996
|
+
});
|
|
2620
1997
|
};
|
|
2621
1998
|
const de_SystemTemplateSummaries = (output, context) => {
|
|
2622
1999
|
const retVal = (output || [])
|
|
2623
2000
|
.filter((e) => e != null)
|
|
2624
2001
|
.map((entry) => {
|
|
2625
|
-
if (entry === null) {
|
|
2626
|
-
return null;
|
|
2627
|
-
}
|
|
2628
2002
|
return de_SystemTemplateSummary(entry, context);
|
|
2629
2003
|
});
|
|
2630
2004
|
return retVal;
|
|
2631
2005
|
};
|
|
2632
2006
|
const de_SystemTemplateSummary = (output, context) => {
|
|
2633
|
-
return {
|
|
2634
|
-
arn:
|
|
2635
|
-
createdAt:
|
|
2636
|
-
id:
|
|
2637
|
-
revisionNumber:
|
|
2638
|
-
};
|
|
2639
|
-
};
|
|
2640
|
-
const de_Tag = (output, context) => {
|
|
2641
|
-
return {
|
|
2642
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
2643
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
2644
|
-
};
|
|
2645
|
-
};
|
|
2646
|
-
const de_TagList = (output, context) => {
|
|
2647
|
-
const retVal = (output || [])
|
|
2648
|
-
.filter((e) => e != null)
|
|
2649
|
-
.map((entry) => {
|
|
2650
|
-
if (entry === null) {
|
|
2651
|
-
return null;
|
|
2652
|
-
}
|
|
2653
|
-
return de_Tag(entry, context);
|
|
2007
|
+
return (0, smithy_client_1.take)(output, {
|
|
2008
|
+
arn: smithy_client_1.expectString,
|
|
2009
|
+
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2010
|
+
id: smithy_client_1.expectString,
|
|
2011
|
+
revisionNumber: smithy_client_1.expectLong,
|
|
2654
2012
|
});
|
|
2655
|
-
return retVal;
|
|
2656
|
-
};
|
|
2657
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2658
|
-
return {};
|
|
2659
|
-
};
|
|
2660
|
-
const de_Thing = (output, context) => {
|
|
2661
|
-
return {
|
|
2662
|
-
thingArn: (0, smithy_client_1.expectString)(output.thingArn),
|
|
2663
|
-
thingName: (0, smithy_client_1.expectString)(output.thingName),
|
|
2664
|
-
};
|
|
2665
|
-
};
|
|
2666
|
-
const de_Things = (output, context) => {
|
|
2667
|
-
const retVal = (output || [])
|
|
2668
|
-
.filter((e) => e != null)
|
|
2669
|
-
.map((entry) => {
|
|
2670
|
-
if (entry === null) {
|
|
2671
|
-
return null;
|
|
2672
|
-
}
|
|
2673
|
-
return de_Thing(entry, context);
|
|
2674
|
-
});
|
|
2675
|
-
return retVal;
|
|
2676
|
-
};
|
|
2677
|
-
const de_ThrottlingException = (output, context) => {
|
|
2678
|
-
return {
|
|
2679
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2680
|
-
};
|
|
2681
2013
|
};
|
|
2682
2014
|
const de_UndeploySystemInstanceResponse = (output, context) => {
|
|
2683
|
-
return {
|
|
2684
|
-
summary:
|
|
2685
|
-
};
|
|
2686
|
-
};
|
|
2687
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2688
|
-
return {};
|
|
2015
|
+
return (0, smithy_client_1.take)(output, {
|
|
2016
|
+
summary: (_) => de_SystemInstanceSummary(_, context),
|
|
2017
|
+
});
|
|
2689
2018
|
};
|
|
2690
2019
|
const de_UpdateFlowTemplateResponse = (output, context) => {
|
|
2691
|
-
return {
|
|
2692
|
-
summary:
|
|
2693
|
-
};
|
|
2020
|
+
return (0, smithy_client_1.take)(output, {
|
|
2021
|
+
summary: (_) => de_FlowTemplateSummary(_, context),
|
|
2022
|
+
});
|
|
2694
2023
|
};
|
|
2695
2024
|
const de_UpdateSystemTemplateResponse = (output, context) => {
|
|
2696
|
-
return {
|
|
2697
|
-
summary:
|
|
2698
|
-
};
|
|
2699
|
-
};
|
|
2700
|
-
const de_UploadEntityDefinitionsResponse = (output, context) => {
|
|
2701
|
-
return {
|
|
2702
|
-
uploadId: (0, smithy_client_1.expectString)(output.uploadId),
|
|
2703
|
-
};
|
|
2025
|
+
return (0, smithy_client_1.take)(output, {
|
|
2026
|
+
summary: (_) => de_SystemTemplateSummary(_, context),
|
|
2027
|
+
});
|
|
2704
2028
|
};
|
|
2705
2029
|
const deserializeMetadata = (output) => ({
|
|
2706
2030
|
httpStatusCode: output.statusCode,
|
|
@@ -2715,6 +2039,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2715
2039
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2716
2040
|
};
|
|
2717
2041
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2042
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(IoTThingsGraphServiceException_1.IoTThingsGraphServiceException);
|
|
2718
2043
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2719
2044
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2720
2045
|
const contents = {
|
|
@@ -2733,6 +2058,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2733
2058
|
}
|
|
2734
2059
|
return new protocol_http_1.HttpRequest(contents);
|
|
2735
2060
|
};
|
|
2061
|
+
function sharedHeaders(operation) {
|
|
2062
|
+
return {
|
|
2063
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2064
|
+
"x-amz-target": `IotThingsGraphFrontEndService.${operation}`,
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2736
2067
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2737
2068
|
if (encoded.length) {
|
|
2738
2069
|
return JSON.parse(encoded);
|