@aws-sdk/client-iot-data-plane 3.987.0 → 3.989.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +27 -443
- package/dist-cjs/models/IoTDataPlaneServiceException.js +12 -0
- package/dist-cjs/models/errors.js +147 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +260 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +72 -66
- package/dist-types/schemas/schemas_0.d.ts +18 -11
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -11
- package/package.json +14 -14
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var IoTDataPlaneServiceException = require('./models/IoTDataPlaneServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -110,394 +113,6 @@ class IoTDataPlaneClient extends smithyClient.Client {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class IoTDataPlaneServiceException extends smithyClient.ServiceException {
|
|
114
|
-
constructor(options) {
|
|
115
|
-
super(options);
|
|
116
|
-
Object.setPrototypeOf(this, IoTDataPlaneServiceException.prototype);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
class ConflictException extends IoTDataPlaneServiceException {
|
|
121
|
-
name = "ConflictException";
|
|
122
|
-
$fault = "client";
|
|
123
|
-
constructor(opts) {
|
|
124
|
-
super({
|
|
125
|
-
name: "ConflictException",
|
|
126
|
-
$fault: "client",
|
|
127
|
-
...opts,
|
|
128
|
-
});
|
|
129
|
-
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
class ForbiddenException extends IoTDataPlaneServiceException {
|
|
133
|
-
name = "ForbiddenException";
|
|
134
|
-
$fault = "client";
|
|
135
|
-
constructor(opts) {
|
|
136
|
-
super({
|
|
137
|
-
name: "ForbiddenException",
|
|
138
|
-
$fault: "client",
|
|
139
|
-
...opts,
|
|
140
|
-
});
|
|
141
|
-
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
class InternalFailureException extends IoTDataPlaneServiceException {
|
|
145
|
-
name = "InternalFailureException";
|
|
146
|
-
$fault = "server";
|
|
147
|
-
constructor(opts) {
|
|
148
|
-
super({
|
|
149
|
-
name: "InternalFailureException",
|
|
150
|
-
$fault: "server",
|
|
151
|
-
...opts,
|
|
152
|
-
});
|
|
153
|
-
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
class InvalidRequestException extends IoTDataPlaneServiceException {
|
|
157
|
-
name = "InvalidRequestException";
|
|
158
|
-
$fault = "client";
|
|
159
|
-
constructor(opts) {
|
|
160
|
-
super({
|
|
161
|
-
name: "InvalidRequestException",
|
|
162
|
-
$fault: "client",
|
|
163
|
-
...opts,
|
|
164
|
-
});
|
|
165
|
-
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
class ResourceNotFoundException extends IoTDataPlaneServiceException {
|
|
169
|
-
name = "ResourceNotFoundException";
|
|
170
|
-
$fault = "client";
|
|
171
|
-
constructor(opts) {
|
|
172
|
-
super({
|
|
173
|
-
name: "ResourceNotFoundException",
|
|
174
|
-
$fault: "client",
|
|
175
|
-
...opts,
|
|
176
|
-
});
|
|
177
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
class ThrottlingException extends IoTDataPlaneServiceException {
|
|
181
|
-
name = "ThrottlingException";
|
|
182
|
-
$fault = "client";
|
|
183
|
-
constructor(opts) {
|
|
184
|
-
super({
|
|
185
|
-
name: "ThrottlingException",
|
|
186
|
-
$fault: "client",
|
|
187
|
-
...opts,
|
|
188
|
-
});
|
|
189
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
class MethodNotAllowedException extends IoTDataPlaneServiceException {
|
|
193
|
-
name = "MethodNotAllowedException";
|
|
194
|
-
$fault = "client";
|
|
195
|
-
constructor(opts) {
|
|
196
|
-
super({
|
|
197
|
-
name: "MethodNotAllowedException",
|
|
198
|
-
$fault: "client",
|
|
199
|
-
...opts,
|
|
200
|
-
});
|
|
201
|
-
Object.setPrototypeOf(this, MethodNotAllowedException.prototype);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
class ServiceUnavailableException extends IoTDataPlaneServiceException {
|
|
205
|
-
name = "ServiceUnavailableException";
|
|
206
|
-
$fault = "server";
|
|
207
|
-
constructor(opts) {
|
|
208
|
-
super({
|
|
209
|
-
name: "ServiceUnavailableException",
|
|
210
|
-
$fault: "server",
|
|
211
|
-
...opts,
|
|
212
|
-
});
|
|
213
|
-
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
class UnauthorizedException extends IoTDataPlaneServiceException {
|
|
217
|
-
name = "UnauthorizedException";
|
|
218
|
-
$fault = "client";
|
|
219
|
-
constructor(opts) {
|
|
220
|
-
super({
|
|
221
|
-
name: "UnauthorizedException",
|
|
222
|
-
$fault: "client",
|
|
223
|
-
...opts,
|
|
224
|
-
});
|
|
225
|
-
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
class UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException {
|
|
229
|
-
name = "UnsupportedDocumentEncodingException";
|
|
230
|
-
$fault = "client";
|
|
231
|
-
constructor(opts) {
|
|
232
|
-
super({
|
|
233
|
-
name: "UnsupportedDocumentEncodingException",
|
|
234
|
-
$fault: "client",
|
|
235
|
-
...opts,
|
|
236
|
-
});
|
|
237
|
-
Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
class RequestEntityTooLargeException extends IoTDataPlaneServiceException {
|
|
241
|
-
name = "RequestEntityTooLargeException";
|
|
242
|
-
$fault = "client";
|
|
243
|
-
constructor(opts) {
|
|
244
|
-
super({
|
|
245
|
-
name: "RequestEntityTooLargeException",
|
|
246
|
-
$fault: "client",
|
|
247
|
-
...opts,
|
|
248
|
-
});
|
|
249
|
-
Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
const _CE = "ConflictException";
|
|
254
|
-
const _DC = "DeleteConnection";
|
|
255
|
-
const _DCR = "DeleteConnectionRequest";
|
|
256
|
-
const _DTS = "DeleteThingShadow";
|
|
257
|
-
const _DTSR = "DeleteThingShadowRequest";
|
|
258
|
-
const _DTSRe = "DeleteThingShadowResponse";
|
|
259
|
-
const _FE = "ForbiddenException";
|
|
260
|
-
const _GRM = "GetRetainedMessage";
|
|
261
|
-
const _GRMR = "GetRetainedMessageRequest";
|
|
262
|
-
const _GRMRe = "GetRetainedMessageResponse";
|
|
263
|
-
const _GTS = "GetThingShadow";
|
|
264
|
-
const _GTSR = "GetThingShadowRequest";
|
|
265
|
-
const _GTSRe = "GetThingShadowResponse";
|
|
266
|
-
const _IFE = "InternalFailureException";
|
|
267
|
-
const _IRE = "InvalidRequestException";
|
|
268
|
-
const _LNSFT = "ListNamedShadowsForThing";
|
|
269
|
-
const _LNSFTR = "ListNamedShadowsForThingRequest";
|
|
270
|
-
const _LNSFTRi = "ListNamedShadowsForThingResponse";
|
|
271
|
-
const _LRM = "ListRetainedMessages";
|
|
272
|
-
const _LRMR = "ListRetainedMessagesRequest";
|
|
273
|
-
const _LRMRi = "ListRetainedMessagesResponse";
|
|
274
|
-
const _MNAE = "MethodNotAllowedException";
|
|
275
|
-
const _P = "Publish";
|
|
276
|
-
const _PR = "PublishRequest";
|
|
277
|
-
const _RETLE = "RequestEntityTooLargeException";
|
|
278
|
-
const _RML = "RetainedMessageList";
|
|
279
|
-
const _RMS = "RetainedMessageSummary";
|
|
280
|
-
const _RNFE = "ResourceNotFoundException";
|
|
281
|
-
const _SJUP = "SynthesizedJsonUserProperties";
|
|
282
|
-
const _SUE = "ServiceUnavailableException";
|
|
283
|
-
const _TE = "ThrottlingException";
|
|
284
|
-
const _UDEE = "UnsupportedDocumentEncodingException";
|
|
285
|
-
const _UE = "UnauthorizedException";
|
|
286
|
-
const _UTS = "UpdateThingShadow";
|
|
287
|
-
const _UTSR = "UpdateThingShadowRequest";
|
|
288
|
-
const _UTSRp = "UpdateThingShadowResponse";
|
|
289
|
-
const _a = "application/json";
|
|
290
|
-
const _c = "client";
|
|
291
|
-
const _cD = "correlationData";
|
|
292
|
-
const _cI = "clientId";
|
|
293
|
-
const _cS = "cleanSession";
|
|
294
|
-
const _cT = "contentType";
|
|
295
|
-
const _e = "error";
|
|
296
|
-
const _h = "http";
|
|
297
|
-
const _hE = "httpError";
|
|
298
|
-
const _hH = "httpHeader";
|
|
299
|
-
const _hQ = "httpQuery";
|
|
300
|
-
const _lMT = "lastModifiedTime";
|
|
301
|
-
const _m = "message";
|
|
302
|
-
const _mE = "messageExpiry";
|
|
303
|
-
const _mR = "maxResults";
|
|
304
|
-
const _mT = "mediaType";
|
|
305
|
-
const _n = "name";
|
|
306
|
-
const _nT = "nextToken";
|
|
307
|
-
const _p = "payload";
|
|
308
|
-
const _pFI = "payloadFormatIndicator";
|
|
309
|
-
const _pS = "pageSize";
|
|
310
|
-
const _pSa = "payloadSize";
|
|
311
|
-
const _pWM = "preventWillMessage";
|
|
312
|
-
const _q = "qos";
|
|
313
|
-
const _r = "results";
|
|
314
|
-
const _rT = "retainedTopics";
|
|
315
|
-
const _rTe = "responseTopic";
|
|
316
|
-
const _re = "retain";
|
|
317
|
-
const _s = "server";
|
|
318
|
-
const _sN = "shadowName";
|
|
319
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.iotdataplane";
|
|
320
|
-
const _t = "topic";
|
|
321
|
-
const _tN = "thingName";
|
|
322
|
-
const _ti = "timestamp";
|
|
323
|
-
const _uP = "userProperties";
|
|
324
|
-
const _xamcd = "x-amz-mqtt5-correlation-data";
|
|
325
|
-
const _xampfi = "x-amz-mqtt5-payload-format-indicator";
|
|
326
|
-
const _xamup = "x-amz-mqtt5-user-properties";
|
|
327
|
-
const n0 = "com.amazonaws.iotdataplane";
|
|
328
|
-
var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a }, 0];
|
|
329
|
-
var ConflictException$ = [-3, n0, _CE,
|
|
330
|
-
{ [_e]: _c, [_hE]: 409 },
|
|
331
|
-
[_m],
|
|
332
|
-
[0]
|
|
333
|
-
];
|
|
334
|
-
schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
|
|
335
|
-
var DeleteConnectionRequest$ = [3, n0, _DCR,
|
|
336
|
-
0,
|
|
337
|
-
[_cI, _cS, _pWM],
|
|
338
|
-
[[0, 1], [2, { [_hQ]: _cS }], [2, { [_hQ]: _pWM }]], 1
|
|
339
|
-
];
|
|
340
|
-
var DeleteThingShadowRequest$ = [3, n0, _DTSR,
|
|
341
|
-
0,
|
|
342
|
-
[_tN, _sN],
|
|
343
|
-
[[0, 1], [0, { [_hQ]: _n }]], 1
|
|
344
|
-
];
|
|
345
|
-
var DeleteThingShadowResponse$ = [3, n0, _DTSRe,
|
|
346
|
-
0,
|
|
347
|
-
[_p],
|
|
348
|
-
[[21, 16]], 1
|
|
349
|
-
];
|
|
350
|
-
var ForbiddenException$ = [-3, n0, _FE,
|
|
351
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
352
|
-
[_m],
|
|
353
|
-
[0]
|
|
354
|
-
];
|
|
355
|
-
schema.TypeRegistry.for(n0).registerError(ForbiddenException$, ForbiddenException);
|
|
356
|
-
var GetRetainedMessageRequest$ = [3, n0, _GRMR,
|
|
357
|
-
0,
|
|
358
|
-
[_t],
|
|
359
|
-
[[0, 1]], 1
|
|
360
|
-
];
|
|
361
|
-
var GetRetainedMessageResponse$ = [3, n0, _GRMRe,
|
|
362
|
-
0,
|
|
363
|
-
[_t, _p, _q, _lMT, _uP],
|
|
364
|
-
[0, 21, 1, 1, 21]
|
|
365
|
-
];
|
|
366
|
-
var GetThingShadowRequest$ = [3, n0, _GTSR,
|
|
367
|
-
0,
|
|
368
|
-
[_tN, _sN],
|
|
369
|
-
[[0, 1], [0, { [_hQ]: _n }]], 1
|
|
370
|
-
];
|
|
371
|
-
var GetThingShadowResponse$ = [3, n0, _GTSRe,
|
|
372
|
-
0,
|
|
373
|
-
[_p],
|
|
374
|
-
[[21, 16]]
|
|
375
|
-
];
|
|
376
|
-
var InternalFailureException$ = [-3, n0, _IFE,
|
|
377
|
-
{ [_e]: _s, [_hE]: 500 },
|
|
378
|
-
[_m],
|
|
379
|
-
[0]
|
|
380
|
-
];
|
|
381
|
-
schema.TypeRegistry.for(n0).registerError(InternalFailureException$, InternalFailureException);
|
|
382
|
-
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
383
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
384
|
-
[_m],
|
|
385
|
-
[0]
|
|
386
|
-
];
|
|
387
|
-
schema.TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
388
|
-
var ListNamedShadowsForThingRequest$ = [3, n0, _LNSFTR,
|
|
389
|
-
0,
|
|
390
|
-
[_tN, _nT, _pS],
|
|
391
|
-
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _pS }]], 1
|
|
392
|
-
];
|
|
393
|
-
var ListNamedShadowsForThingResponse$ = [3, n0, _LNSFTRi,
|
|
394
|
-
0,
|
|
395
|
-
[_r, _nT, _ti],
|
|
396
|
-
[64 | 0, 0, 1]
|
|
397
|
-
];
|
|
398
|
-
var ListRetainedMessagesRequest$ = [3, n0, _LRMR,
|
|
399
|
-
0,
|
|
400
|
-
[_nT, _mR],
|
|
401
|
-
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
402
|
-
];
|
|
403
|
-
var ListRetainedMessagesResponse$ = [3, n0, _LRMRi,
|
|
404
|
-
0,
|
|
405
|
-
[_rT, _nT],
|
|
406
|
-
[() => RetainedMessageList, 0]
|
|
407
|
-
];
|
|
408
|
-
var MethodNotAllowedException$ = [-3, n0, _MNAE,
|
|
409
|
-
{ [_e]: _c, [_hE]: 405 },
|
|
410
|
-
[_m],
|
|
411
|
-
[0]
|
|
412
|
-
];
|
|
413
|
-
schema.TypeRegistry.for(n0).registerError(MethodNotAllowedException$, MethodNotAllowedException);
|
|
414
|
-
var PublishRequest$ = [3, n0, _PR,
|
|
415
|
-
0,
|
|
416
|
-
[_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE],
|
|
417
|
-
[[0, 1], [1, { [_hQ]: _q }], [2, { [_hQ]: _re }], [21, 16], [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }], [0, { [_hH]: _xampfi }], [0, { [_hQ]: _cT }], [0, { [_hQ]: _rTe }], [0, { [_hH]: _xamcd }], [1, { [_hQ]: _mE }]], 1
|
|
418
|
-
];
|
|
419
|
-
var RequestEntityTooLargeException$ = [-3, n0, _RETLE,
|
|
420
|
-
{ [_e]: _c, [_hE]: 413 },
|
|
421
|
-
[_m],
|
|
422
|
-
[0]
|
|
423
|
-
];
|
|
424
|
-
schema.TypeRegistry.for(n0).registerError(RequestEntityTooLargeException$, RequestEntityTooLargeException);
|
|
425
|
-
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
426
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
427
|
-
[_m],
|
|
428
|
-
[0]
|
|
429
|
-
];
|
|
430
|
-
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
431
|
-
var RetainedMessageSummary$ = [3, n0, _RMS,
|
|
432
|
-
0,
|
|
433
|
-
[_t, _pSa, _q, _lMT],
|
|
434
|
-
[0, 1, 1, 1]
|
|
435
|
-
];
|
|
436
|
-
var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
437
|
-
{ [_e]: _s, [_hE]: 503 },
|
|
438
|
-
[_m],
|
|
439
|
-
[0]
|
|
440
|
-
];
|
|
441
|
-
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
442
|
-
var ThrottlingException$ = [-3, n0, _TE,
|
|
443
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
444
|
-
[_m],
|
|
445
|
-
[0]
|
|
446
|
-
];
|
|
447
|
-
schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
448
|
-
var UnauthorizedException$ = [-3, n0, _UE,
|
|
449
|
-
{ [_e]: _c, [_hE]: 401 },
|
|
450
|
-
[_m],
|
|
451
|
-
[0]
|
|
452
|
-
];
|
|
453
|
-
schema.TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
|
|
454
|
-
var UnsupportedDocumentEncodingException$ = [-3, n0, _UDEE,
|
|
455
|
-
{ [_e]: _c, [_hE]: 415 },
|
|
456
|
-
[_m],
|
|
457
|
-
[0]
|
|
458
|
-
];
|
|
459
|
-
schema.TypeRegistry.for(n0).registerError(UnsupportedDocumentEncodingException$, UnsupportedDocumentEncodingException);
|
|
460
|
-
var UpdateThingShadowRequest$ = [3, n0, _UTSR,
|
|
461
|
-
0,
|
|
462
|
-
[_tN, _p, _sN],
|
|
463
|
-
[[0, 1], [21, 16], [0, { [_hQ]: _n }]], 2
|
|
464
|
-
];
|
|
465
|
-
var UpdateThingShadowResponse$ = [3, n0, _UTSRp,
|
|
466
|
-
0,
|
|
467
|
-
[_p],
|
|
468
|
-
[[21, 16]]
|
|
469
|
-
];
|
|
470
|
-
var __Unit = "unit";
|
|
471
|
-
var IoTDataPlaneServiceException$ = [-3, _sm, "IoTDataPlaneServiceException", 0, [], []];
|
|
472
|
-
schema.TypeRegistry.for(_sm).registerError(IoTDataPlaneServiceException$, IoTDataPlaneServiceException);
|
|
473
|
-
var RetainedMessageList = [1, n0, _RML,
|
|
474
|
-
0, () => RetainedMessageSummary$
|
|
475
|
-
];
|
|
476
|
-
var DeleteConnection$ = [9, n0, _DC,
|
|
477
|
-
{ [_h]: ["DELETE", "/connections/{clientId}", 200] }, () => DeleteConnectionRequest$, () => __Unit
|
|
478
|
-
];
|
|
479
|
-
var DeleteThingShadow$ = [9, n0, _DTS,
|
|
480
|
-
{ [_h]: ["DELETE", "/things/{thingName}/shadow", 200] }, () => DeleteThingShadowRequest$, () => DeleteThingShadowResponse$
|
|
481
|
-
];
|
|
482
|
-
var GetRetainedMessage$ = [9, n0, _GRM,
|
|
483
|
-
{ [_h]: ["GET", "/retainedMessage/{topic}", 200] }, () => GetRetainedMessageRequest$, () => GetRetainedMessageResponse$
|
|
484
|
-
];
|
|
485
|
-
var GetThingShadow$ = [9, n0, _GTS,
|
|
486
|
-
{ [_h]: ["GET", "/things/{thingName}/shadow", 200] }, () => GetThingShadowRequest$, () => GetThingShadowResponse$
|
|
487
|
-
];
|
|
488
|
-
var ListNamedShadowsForThing$ = [9, n0, _LNSFT,
|
|
489
|
-
{ [_h]: ["GET", "/api/things/shadow/ListNamedShadowsForThing/{thingName}", 200] }, () => ListNamedShadowsForThingRequest$, () => ListNamedShadowsForThingResponse$
|
|
490
|
-
];
|
|
491
|
-
var ListRetainedMessages$ = [9, n0, _LRM,
|
|
492
|
-
{ [_h]: ["GET", "/retainedMessage", 200] }, () => ListRetainedMessagesRequest$, () => ListRetainedMessagesResponse$
|
|
493
|
-
];
|
|
494
|
-
var Publish$ = [9, n0, _P,
|
|
495
|
-
{ [_h]: ["POST", "/topics/{topic}", 200] }, () => PublishRequest$, () => __Unit
|
|
496
|
-
];
|
|
497
|
-
var UpdateThingShadow$ = [9, n0, _UTS,
|
|
498
|
-
{ [_h]: ["POST", "/things/{thingName}/shadow", 200] }, () => UpdateThingShadowRequest$, () => UpdateThingShadowResponse$
|
|
499
|
-
];
|
|
500
|
-
|
|
501
116
|
class DeleteConnectionCommand extends smithyClient.Command
|
|
502
117
|
.classBuilder()
|
|
503
118
|
.ep(commonParams)
|
|
@@ -506,7 +121,7 @@ class DeleteConnectionCommand extends smithyClient.Command
|
|
|
506
121
|
})
|
|
507
122
|
.s("IotMoonrakerService", "DeleteConnection", {})
|
|
508
123
|
.n("IoTDataPlaneClient", "DeleteConnectionCommand")
|
|
509
|
-
.sc(DeleteConnection$)
|
|
124
|
+
.sc(schemas_0.DeleteConnection$)
|
|
510
125
|
.build() {
|
|
511
126
|
}
|
|
512
127
|
|
|
@@ -518,7 +133,7 @@ class DeleteThingShadowCommand extends smithyClient.Command
|
|
|
518
133
|
})
|
|
519
134
|
.s("IotMoonrakerService", "DeleteThingShadow", {})
|
|
520
135
|
.n("IoTDataPlaneClient", "DeleteThingShadowCommand")
|
|
521
|
-
.sc(DeleteThingShadow$)
|
|
136
|
+
.sc(schemas_0.DeleteThingShadow$)
|
|
522
137
|
.build() {
|
|
523
138
|
}
|
|
524
139
|
|
|
@@ -530,7 +145,7 @@ class GetRetainedMessageCommand extends smithyClient.Command
|
|
|
530
145
|
})
|
|
531
146
|
.s("IotMoonrakerService", "GetRetainedMessage", {})
|
|
532
147
|
.n("IoTDataPlaneClient", "GetRetainedMessageCommand")
|
|
533
|
-
.sc(GetRetainedMessage$)
|
|
148
|
+
.sc(schemas_0.GetRetainedMessage$)
|
|
534
149
|
.build() {
|
|
535
150
|
}
|
|
536
151
|
|
|
@@ -542,7 +157,7 @@ class GetThingShadowCommand extends smithyClient.Command
|
|
|
542
157
|
})
|
|
543
158
|
.s("IotMoonrakerService", "GetThingShadow", {})
|
|
544
159
|
.n("IoTDataPlaneClient", "GetThingShadowCommand")
|
|
545
|
-
.sc(GetThingShadow$)
|
|
160
|
+
.sc(schemas_0.GetThingShadow$)
|
|
546
161
|
.build() {
|
|
547
162
|
}
|
|
548
163
|
|
|
@@ -554,7 +169,7 @@ class ListNamedShadowsForThingCommand extends smithyClient.Command
|
|
|
554
169
|
})
|
|
555
170
|
.s("IotMoonrakerService", "ListNamedShadowsForThing", {})
|
|
556
171
|
.n("IoTDataPlaneClient", "ListNamedShadowsForThingCommand")
|
|
557
|
-
.sc(ListNamedShadowsForThing$)
|
|
172
|
+
.sc(schemas_0.ListNamedShadowsForThing$)
|
|
558
173
|
.build() {
|
|
559
174
|
}
|
|
560
175
|
|
|
@@ -566,7 +181,7 @@ class ListRetainedMessagesCommand extends smithyClient.Command
|
|
|
566
181
|
})
|
|
567
182
|
.s("IotMoonrakerService", "ListRetainedMessages", {})
|
|
568
183
|
.n("IoTDataPlaneClient", "ListRetainedMessagesCommand")
|
|
569
|
-
.sc(ListRetainedMessages$)
|
|
184
|
+
.sc(schemas_0.ListRetainedMessages$)
|
|
570
185
|
.build() {
|
|
571
186
|
}
|
|
572
187
|
|
|
@@ -578,7 +193,7 @@ class PublishCommand extends smithyClient.Command
|
|
|
578
193
|
})
|
|
579
194
|
.s("IotMoonrakerService", "Publish", {})
|
|
580
195
|
.n("IoTDataPlaneClient", "PublishCommand")
|
|
581
|
-
.sc(Publish$)
|
|
196
|
+
.sc(schemas_0.Publish$)
|
|
582
197
|
.build() {
|
|
583
198
|
}
|
|
584
199
|
|
|
@@ -590,7 +205,7 @@ class UpdateThingShadowCommand extends smithyClient.Command
|
|
|
590
205
|
})
|
|
591
206
|
.s("IotMoonrakerService", "UpdateThingShadow", {})
|
|
592
207
|
.n("IoTDataPlaneClient", "UpdateThingShadowCommand")
|
|
593
|
-
.sc(UpdateThingShadow$)
|
|
208
|
+
.sc(schemas_0.UpdateThingShadow$)
|
|
594
209
|
.build() {
|
|
595
210
|
}
|
|
596
211
|
|
|
@@ -626,62 +241,31 @@ Object.defineProperty(exports, "__Client", {
|
|
|
626
241
|
enumerable: true,
|
|
627
242
|
get: function () { return smithyClient.Client; }
|
|
628
243
|
});
|
|
629
|
-
exports
|
|
630
|
-
|
|
631
|
-
|
|
244
|
+
Object.defineProperty(exports, "IoTDataPlaneServiceException", {
|
|
245
|
+
enumerable: true,
|
|
246
|
+
get: function () { return IoTDataPlaneServiceException.IoTDataPlaneServiceException; }
|
|
247
|
+
});
|
|
632
248
|
exports.DeleteConnectionCommand = DeleteConnectionCommand;
|
|
633
|
-
exports.DeleteConnectionRequest$ = DeleteConnectionRequest$;
|
|
634
|
-
exports.DeleteThingShadow$ = DeleteThingShadow$;
|
|
635
249
|
exports.DeleteThingShadowCommand = DeleteThingShadowCommand;
|
|
636
|
-
exports.DeleteThingShadowRequest$ = DeleteThingShadowRequest$;
|
|
637
|
-
exports.DeleteThingShadowResponse$ = DeleteThingShadowResponse$;
|
|
638
|
-
exports.ForbiddenException = ForbiddenException;
|
|
639
|
-
exports.ForbiddenException$ = ForbiddenException$;
|
|
640
|
-
exports.GetRetainedMessage$ = GetRetainedMessage$;
|
|
641
250
|
exports.GetRetainedMessageCommand = GetRetainedMessageCommand;
|
|
642
|
-
exports.GetRetainedMessageRequest$ = GetRetainedMessageRequest$;
|
|
643
|
-
exports.GetRetainedMessageResponse$ = GetRetainedMessageResponse$;
|
|
644
|
-
exports.GetThingShadow$ = GetThingShadow$;
|
|
645
251
|
exports.GetThingShadowCommand = GetThingShadowCommand;
|
|
646
|
-
exports.GetThingShadowRequest$ = GetThingShadowRequest$;
|
|
647
|
-
exports.GetThingShadowResponse$ = GetThingShadowResponse$;
|
|
648
|
-
exports.InternalFailureException = InternalFailureException;
|
|
649
|
-
exports.InternalFailureException$ = InternalFailureException$;
|
|
650
|
-
exports.InvalidRequestException = InvalidRequestException;
|
|
651
|
-
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
652
252
|
exports.IoTDataPlane = IoTDataPlane;
|
|
653
253
|
exports.IoTDataPlaneClient = IoTDataPlaneClient;
|
|
654
|
-
exports.IoTDataPlaneServiceException = IoTDataPlaneServiceException;
|
|
655
|
-
exports.IoTDataPlaneServiceException$ = IoTDataPlaneServiceException$;
|
|
656
|
-
exports.ListNamedShadowsForThing$ = ListNamedShadowsForThing$;
|
|
657
254
|
exports.ListNamedShadowsForThingCommand = ListNamedShadowsForThingCommand;
|
|
658
|
-
exports.ListNamedShadowsForThingRequest$ = ListNamedShadowsForThingRequest$;
|
|
659
|
-
exports.ListNamedShadowsForThingResponse$ = ListNamedShadowsForThingResponse$;
|
|
660
|
-
exports.ListRetainedMessages$ = ListRetainedMessages$;
|
|
661
255
|
exports.ListRetainedMessagesCommand = ListRetainedMessagesCommand;
|
|
662
|
-
exports.ListRetainedMessagesRequest$ = ListRetainedMessagesRequest$;
|
|
663
|
-
exports.ListRetainedMessagesResponse$ = ListRetainedMessagesResponse$;
|
|
664
|
-
exports.MethodNotAllowedException = MethodNotAllowedException;
|
|
665
|
-
exports.MethodNotAllowedException$ = MethodNotAllowedException$;
|
|
666
256
|
exports.PayloadFormatIndicator = PayloadFormatIndicator;
|
|
667
|
-
exports.Publish$ = Publish$;
|
|
668
257
|
exports.PublishCommand = PublishCommand;
|
|
669
|
-
exports.PublishRequest$ = PublishRequest$;
|
|
670
|
-
exports.RequestEntityTooLargeException = RequestEntityTooLargeException;
|
|
671
|
-
exports.RequestEntityTooLargeException$ = RequestEntityTooLargeException$;
|
|
672
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
673
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
674
|
-
exports.RetainedMessageSummary$ = RetainedMessageSummary$;
|
|
675
|
-
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
676
|
-
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
677
|
-
exports.ThrottlingException = ThrottlingException;
|
|
678
|
-
exports.ThrottlingException$ = ThrottlingException$;
|
|
679
|
-
exports.UnauthorizedException = UnauthorizedException;
|
|
680
|
-
exports.UnauthorizedException$ = UnauthorizedException$;
|
|
681
|
-
exports.UnsupportedDocumentEncodingException = UnsupportedDocumentEncodingException;
|
|
682
|
-
exports.UnsupportedDocumentEncodingException$ = UnsupportedDocumentEncodingException$;
|
|
683
|
-
exports.UpdateThingShadow$ = UpdateThingShadow$;
|
|
684
258
|
exports.UpdateThingShadowCommand = UpdateThingShadowCommand;
|
|
685
|
-
exports.UpdateThingShadowRequest$ = UpdateThingShadowRequest$;
|
|
686
|
-
exports.UpdateThingShadowResponse$ = UpdateThingShadowResponse$;
|
|
687
259
|
exports.paginateListRetainedMessages = paginateListRetainedMessages;
|
|
260
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
261
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
262
|
+
enumerable: true,
|
|
263
|
+
get: function () { return schemas_0[k]; }
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
Object.keys(errors).forEach(function (k) {
|
|
267
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
268
|
+
enumerable: true,
|
|
269
|
+
get: function () { return errors[k]; }
|
|
270
|
+
});
|
|
271
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IoTDataPlaneServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class IoTDataPlaneServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, IoTDataPlaneServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.IoTDataPlaneServiceException = IoTDataPlaneServiceException;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestEntityTooLargeException = exports.UnsupportedDocumentEncodingException = exports.UnauthorizedException = exports.ServiceUnavailableException = exports.MethodNotAllowedException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InternalFailureException = exports.ForbiddenException = exports.ConflictException = void 0;
|
|
4
|
+
const IoTDataPlaneServiceException_1 = require("./IoTDataPlaneServiceException");
|
|
5
|
+
class ConflictException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
6
|
+
name = "ConflictException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "ConflictException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ConflictException = ConflictException;
|
|
18
|
+
class ForbiddenException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
19
|
+
name = "ForbiddenException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ForbiddenException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ForbiddenException = ForbiddenException;
|
|
31
|
+
class InternalFailureException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
32
|
+
name = "InternalFailureException";
|
|
33
|
+
$fault = "server";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "InternalFailureException",
|
|
37
|
+
$fault: "server",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.InternalFailureException = InternalFailureException;
|
|
44
|
+
class InvalidRequestException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
45
|
+
name = "InvalidRequestException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "InvalidRequestException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
57
|
+
class ResourceNotFoundException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
58
|
+
name = "ResourceNotFoundException";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "ResourceNotFoundException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
70
|
+
class ThrottlingException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
71
|
+
name = "ThrottlingException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "ThrottlingException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.ThrottlingException = ThrottlingException;
|
|
83
|
+
class MethodNotAllowedException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
84
|
+
name = "MethodNotAllowedException";
|
|
85
|
+
$fault = "client";
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "MethodNotAllowedException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
Object.setPrototypeOf(this, MethodNotAllowedException.prototype);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.MethodNotAllowedException = MethodNotAllowedException;
|
|
96
|
+
class ServiceUnavailableException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
97
|
+
name = "ServiceUnavailableException";
|
|
98
|
+
$fault = "server";
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "ServiceUnavailableException",
|
|
102
|
+
$fault: "server",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
109
|
+
class UnauthorizedException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
110
|
+
name = "UnauthorizedException";
|
|
111
|
+
$fault = "client";
|
|
112
|
+
constructor(opts) {
|
|
113
|
+
super({
|
|
114
|
+
name: "UnauthorizedException",
|
|
115
|
+
$fault: "client",
|
|
116
|
+
...opts,
|
|
117
|
+
});
|
|
118
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.UnauthorizedException = UnauthorizedException;
|
|
122
|
+
class UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
123
|
+
name = "UnsupportedDocumentEncodingException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "UnsupportedDocumentEncodingException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.UnsupportedDocumentEncodingException = UnsupportedDocumentEncodingException;
|
|
135
|
+
class RequestEntityTooLargeException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
136
|
+
name = "RequestEntityTooLargeException";
|
|
137
|
+
$fault = "client";
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "RequestEntityTooLargeException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.RequestEntityTooLargeException = RequestEntityTooLargeException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2015-05-28",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.iotdataplane",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2015-05-28",
|
|
33
35
|
serviceTarget: "IotMoonrakerService",
|
|
34
36
|
},
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateThingShadow$ = exports.Publish$ = exports.ListRetainedMessages$ = exports.ListNamedShadowsForThing$ = exports.GetThingShadow$ = exports.GetRetainedMessage$ = exports.DeleteThingShadow$ = exports.DeleteConnection$ = exports.UpdateThingShadowResponse$ = exports.UpdateThingShadowRequest$ = exports.RetainedMessageSummary$ = exports.PublishRequest$ = exports.ListRetainedMessagesResponse$ = exports.ListRetainedMessagesRequest$ = exports.ListNamedShadowsForThingResponse$ = exports.ListNamedShadowsForThingRequest$ = exports.GetThingShadowResponse$ = exports.GetThingShadowRequest$ = exports.GetRetainedMessageResponse$ = exports.GetRetainedMessageRequest$ = exports.DeleteThingShadowResponse$ = exports.DeleteThingShadowRequest$ = exports.DeleteConnectionRequest$ = exports.errorTypeRegistries = exports.UnsupportedDocumentEncodingException$ = exports.UnauthorizedException$ = exports.ThrottlingException$ = exports.ServiceUnavailableException$ = exports.ResourceNotFoundException$ = exports.RequestEntityTooLargeException$ = exports.MethodNotAllowedException$ = exports.InvalidRequestException$ = exports.InternalFailureException$ = exports.ForbiddenException$ = exports.ConflictException$ = exports.IoTDataPlaneServiceException$ = void 0;
|
|
4
|
+
const _CE = "ConflictException";
|
|
5
|
+
const _DC = "DeleteConnection";
|
|
6
|
+
const _DCR = "DeleteConnectionRequest";
|
|
7
|
+
const _DTS = "DeleteThingShadow";
|
|
8
|
+
const _DTSR = "DeleteThingShadowRequest";
|
|
9
|
+
const _DTSRe = "DeleteThingShadowResponse";
|
|
10
|
+
const _FE = "ForbiddenException";
|
|
11
|
+
const _GRM = "GetRetainedMessage";
|
|
12
|
+
const _GRMR = "GetRetainedMessageRequest";
|
|
13
|
+
const _GRMRe = "GetRetainedMessageResponse";
|
|
14
|
+
const _GTS = "GetThingShadow";
|
|
15
|
+
const _GTSR = "GetThingShadowRequest";
|
|
16
|
+
const _GTSRe = "GetThingShadowResponse";
|
|
17
|
+
const _IFE = "InternalFailureException";
|
|
18
|
+
const _IRE = "InvalidRequestException";
|
|
19
|
+
const _LNSFT = "ListNamedShadowsForThing";
|
|
20
|
+
const _LNSFTR = "ListNamedShadowsForThingRequest";
|
|
21
|
+
const _LNSFTRi = "ListNamedShadowsForThingResponse";
|
|
22
|
+
const _LRM = "ListRetainedMessages";
|
|
23
|
+
const _LRMR = "ListRetainedMessagesRequest";
|
|
24
|
+
const _LRMRi = "ListRetainedMessagesResponse";
|
|
25
|
+
const _MNAE = "MethodNotAllowedException";
|
|
26
|
+
const _P = "Publish";
|
|
27
|
+
const _PR = "PublishRequest";
|
|
28
|
+
const _RETLE = "RequestEntityTooLargeException";
|
|
29
|
+
const _RML = "RetainedMessageList";
|
|
30
|
+
const _RMS = "RetainedMessageSummary";
|
|
31
|
+
const _RNFE = "ResourceNotFoundException";
|
|
32
|
+
const _SJUP = "SynthesizedJsonUserProperties";
|
|
33
|
+
const _SUE = "ServiceUnavailableException";
|
|
34
|
+
const _TE = "ThrottlingException";
|
|
35
|
+
const _UDEE = "UnsupportedDocumentEncodingException";
|
|
36
|
+
const _UE = "UnauthorizedException";
|
|
37
|
+
const _UTS = "UpdateThingShadow";
|
|
38
|
+
const _UTSR = "UpdateThingShadowRequest";
|
|
39
|
+
const _UTSRp = "UpdateThingShadowResponse";
|
|
40
|
+
const _a = "application/json";
|
|
41
|
+
const _c = "client";
|
|
42
|
+
const _cD = "correlationData";
|
|
43
|
+
const _cI = "clientId";
|
|
44
|
+
const _cS = "cleanSession";
|
|
45
|
+
const _cT = "contentType";
|
|
46
|
+
const _e = "error";
|
|
47
|
+
const _h = "http";
|
|
48
|
+
const _hE = "httpError";
|
|
49
|
+
const _hH = "httpHeader";
|
|
50
|
+
const _hQ = "httpQuery";
|
|
51
|
+
const _lMT = "lastModifiedTime";
|
|
52
|
+
const _m = "message";
|
|
53
|
+
const _mE = "messageExpiry";
|
|
54
|
+
const _mR = "maxResults";
|
|
55
|
+
const _mT = "mediaType";
|
|
56
|
+
const _n = "name";
|
|
57
|
+
const _nT = "nextToken";
|
|
58
|
+
const _p = "payload";
|
|
59
|
+
const _pFI = "payloadFormatIndicator";
|
|
60
|
+
const _pS = "pageSize";
|
|
61
|
+
const _pSa = "payloadSize";
|
|
62
|
+
const _pWM = "preventWillMessage";
|
|
63
|
+
const _q = "qos";
|
|
64
|
+
const _r = "results";
|
|
65
|
+
const _rT = "retainedTopics";
|
|
66
|
+
const _rTe = "responseTopic";
|
|
67
|
+
const _re = "retain";
|
|
68
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotdataplane";
|
|
69
|
+
const _sN = "shadowName";
|
|
70
|
+
const _se = "server";
|
|
71
|
+
const _t = "topic";
|
|
72
|
+
const _tN = "thingName";
|
|
73
|
+
const _ti = "timestamp";
|
|
74
|
+
const _uP = "userProperties";
|
|
75
|
+
const _xamcd = "x-amz-mqtt5-correlation-data";
|
|
76
|
+
const _xampfi = "x-amz-mqtt5-payload-format-indicator";
|
|
77
|
+
const _xamup = "x-amz-mqtt5-user-properties";
|
|
78
|
+
const n0 = "com.amazonaws.iotdataplane";
|
|
79
|
+
const schema_1 = require("@smithy/core/schema");
|
|
80
|
+
const errors_1 = require("../models/errors");
|
|
81
|
+
const IoTDataPlaneServiceException_1 = require("../models/IoTDataPlaneServiceException");
|
|
82
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
83
|
+
exports.IoTDataPlaneServiceException$ = [-3, _s, "IoTDataPlaneServiceException", 0, [], []];
|
|
84
|
+
_s_registry.registerError(exports.IoTDataPlaneServiceException$, IoTDataPlaneServiceException_1.IoTDataPlaneServiceException);
|
|
85
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
86
|
+
exports.ConflictException$ = [-3, n0, _CE,
|
|
87
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
88
|
+
[_m],
|
|
89
|
+
[0]
|
|
90
|
+
];
|
|
91
|
+
n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
|
|
92
|
+
exports.ForbiddenException$ = [-3, n0, _FE,
|
|
93
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
94
|
+
[_m],
|
|
95
|
+
[0]
|
|
96
|
+
];
|
|
97
|
+
n0_registry.registerError(exports.ForbiddenException$, errors_1.ForbiddenException);
|
|
98
|
+
exports.InternalFailureException$ = [-3, n0, _IFE,
|
|
99
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
100
|
+
[_m],
|
|
101
|
+
[0]
|
|
102
|
+
];
|
|
103
|
+
n0_registry.registerError(exports.InternalFailureException$, errors_1.InternalFailureException);
|
|
104
|
+
exports.InvalidRequestException$ = [-3, n0, _IRE,
|
|
105
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
106
|
+
[_m],
|
|
107
|
+
[0]
|
|
108
|
+
];
|
|
109
|
+
n0_registry.registerError(exports.InvalidRequestException$, errors_1.InvalidRequestException);
|
|
110
|
+
exports.MethodNotAllowedException$ = [-3, n0, _MNAE,
|
|
111
|
+
{ [_e]: _c, [_hE]: 405 },
|
|
112
|
+
[_m],
|
|
113
|
+
[0]
|
|
114
|
+
];
|
|
115
|
+
n0_registry.registerError(exports.MethodNotAllowedException$, errors_1.MethodNotAllowedException);
|
|
116
|
+
exports.RequestEntityTooLargeException$ = [-3, n0, _RETLE,
|
|
117
|
+
{ [_e]: _c, [_hE]: 413 },
|
|
118
|
+
[_m],
|
|
119
|
+
[0]
|
|
120
|
+
];
|
|
121
|
+
n0_registry.registerError(exports.RequestEntityTooLargeException$, errors_1.RequestEntityTooLargeException);
|
|
122
|
+
exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
123
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
124
|
+
[_m],
|
|
125
|
+
[0]
|
|
126
|
+
];
|
|
127
|
+
n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
|
|
128
|
+
exports.ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
129
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
130
|
+
[_m],
|
|
131
|
+
[0]
|
|
132
|
+
];
|
|
133
|
+
n0_registry.registerError(exports.ServiceUnavailableException$, errors_1.ServiceUnavailableException);
|
|
134
|
+
exports.ThrottlingException$ = [-3, n0, _TE,
|
|
135
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
136
|
+
[_m],
|
|
137
|
+
[0]
|
|
138
|
+
];
|
|
139
|
+
n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
|
|
140
|
+
exports.UnauthorizedException$ = [-3, n0, _UE,
|
|
141
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
142
|
+
[_m],
|
|
143
|
+
[0]
|
|
144
|
+
];
|
|
145
|
+
n0_registry.registerError(exports.UnauthorizedException$, errors_1.UnauthorizedException);
|
|
146
|
+
exports.UnsupportedDocumentEncodingException$ = [-3, n0, _UDEE,
|
|
147
|
+
{ [_e]: _c, [_hE]: 415 },
|
|
148
|
+
[_m],
|
|
149
|
+
[0]
|
|
150
|
+
];
|
|
151
|
+
n0_registry.registerError(exports.UnsupportedDocumentEncodingException$, errors_1.UnsupportedDocumentEncodingException);
|
|
152
|
+
exports.errorTypeRegistries = [
|
|
153
|
+
_s_registry,
|
|
154
|
+
n0_registry,
|
|
155
|
+
];
|
|
156
|
+
var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a }, 0];
|
|
157
|
+
exports.DeleteConnectionRequest$ = [3, n0, _DCR,
|
|
158
|
+
0,
|
|
159
|
+
[_cI, _cS, _pWM],
|
|
160
|
+
[[0, 1], [2, { [_hQ]: _cS }], [2, { [_hQ]: _pWM }]], 1
|
|
161
|
+
];
|
|
162
|
+
exports.DeleteThingShadowRequest$ = [3, n0, _DTSR,
|
|
163
|
+
0,
|
|
164
|
+
[_tN, _sN],
|
|
165
|
+
[[0, 1], [0, { [_hQ]: _n }]], 1
|
|
166
|
+
];
|
|
167
|
+
exports.DeleteThingShadowResponse$ = [3, n0, _DTSRe,
|
|
168
|
+
0,
|
|
169
|
+
[_p],
|
|
170
|
+
[[21, 16]], 1
|
|
171
|
+
];
|
|
172
|
+
exports.GetRetainedMessageRequest$ = [3, n0, _GRMR,
|
|
173
|
+
0,
|
|
174
|
+
[_t],
|
|
175
|
+
[[0, 1]], 1
|
|
176
|
+
];
|
|
177
|
+
exports.GetRetainedMessageResponse$ = [3, n0, _GRMRe,
|
|
178
|
+
0,
|
|
179
|
+
[_t, _p, _q, _lMT, _uP],
|
|
180
|
+
[0, 21, 1, 1, 21]
|
|
181
|
+
];
|
|
182
|
+
exports.GetThingShadowRequest$ = [3, n0, _GTSR,
|
|
183
|
+
0,
|
|
184
|
+
[_tN, _sN],
|
|
185
|
+
[[0, 1], [0, { [_hQ]: _n }]], 1
|
|
186
|
+
];
|
|
187
|
+
exports.GetThingShadowResponse$ = [3, n0, _GTSRe,
|
|
188
|
+
0,
|
|
189
|
+
[_p],
|
|
190
|
+
[[21, 16]]
|
|
191
|
+
];
|
|
192
|
+
exports.ListNamedShadowsForThingRequest$ = [3, n0, _LNSFTR,
|
|
193
|
+
0,
|
|
194
|
+
[_tN, _nT, _pS],
|
|
195
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _pS }]], 1
|
|
196
|
+
];
|
|
197
|
+
exports.ListNamedShadowsForThingResponse$ = [3, n0, _LNSFTRi,
|
|
198
|
+
0,
|
|
199
|
+
[_r, _nT, _ti],
|
|
200
|
+
[64 | 0, 0, 1]
|
|
201
|
+
];
|
|
202
|
+
exports.ListRetainedMessagesRequest$ = [3, n0, _LRMR,
|
|
203
|
+
0,
|
|
204
|
+
[_nT, _mR],
|
|
205
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
206
|
+
];
|
|
207
|
+
exports.ListRetainedMessagesResponse$ = [3, n0, _LRMRi,
|
|
208
|
+
0,
|
|
209
|
+
[_rT, _nT],
|
|
210
|
+
[() => RetainedMessageList, 0]
|
|
211
|
+
];
|
|
212
|
+
exports.PublishRequest$ = [3, n0, _PR,
|
|
213
|
+
0,
|
|
214
|
+
[_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE],
|
|
215
|
+
[[0, 1], [1, { [_hQ]: _q }], [2, { [_hQ]: _re }], [21, 16], [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }], [0, { [_hH]: _xampfi }], [0, { [_hQ]: _cT }], [0, { [_hQ]: _rTe }], [0, { [_hH]: _xamcd }], [1, { [_hQ]: _mE }]], 1
|
|
216
|
+
];
|
|
217
|
+
exports.RetainedMessageSummary$ = [3, n0, _RMS,
|
|
218
|
+
0,
|
|
219
|
+
[_t, _pSa, _q, _lMT],
|
|
220
|
+
[0, 1, 1, 1]
|
|
221
|
+
];
|
|
222
|
+
exports.UpdateThingShadowRequest$ = [3, n0, _UTSR,
|
|
223
|
+
0,
|
|
224
|
+
[_tN, _p, _sN],
|
|
225
|
+
[[0, 1], [21, 16], [0, { [_hQ]: _n }]], 2
|
|
226
|
+
];
|
|
227
|
+
exports.UpdateThingShadowResponse$ = [3, n0, _UTSRp,
|
|
228
|
+
0,
|
|
229
|
+
[_p],
|
|
230
|
+
[[21, 16]]
|
|
231
|
+
];
|
|
232
|
+
var __Unit = "unit";
|
|
233
|
+
var NamedShadowList = 64 | 0;
|
|
234
|
+
var RetainedMessageList = [1, n0, _RML,
|
|
235
|
+
0, () => exports.RetainedMessageSummary$
|
|
236
|
+
];
|
|
237
|
+
exports.DeleteConnection$ = [9, n0, _DC,
|
|
238
|
+
{ [_h]: ["DELETE", "/connections/{clientId}", 200] }, () => exports.DeleteConnectionRequest$, () => __Unit
|
|
239
|
+
];
|
|
240
|
+
exports.DeleteThingShadow$ = [9, n0, _DTS,
|
|
241
|
+
{ [_h]: ["DELETE", "/things/{thingName}/shadow", 200] }, () => exports.DeleteThingShadowRequest$, () => exports.DeleteThingShadowResponse$
|
|
242
|
+
];
|
|
243
|
+
exports.GetRetainedMessage$ = [9, n0, _GRM,
|
|
244
|
+
{ [_h]: ["GET", "/retainedMessage/{topic}", 200] }, () => exports.GetRetainedMessageRequest$, () => exports.GetRetainedMessageResponse$
|
|
245
|
+
];
|
|
246
|
+
exports.GetThingShadow$ = [9, n0, _GTS,
|
|
247
|
+
{ [_h]: ["GET", "/things/{thingName}/shadow", 200] }, () => exports.GetThingShadowRequest$, () => exports.GetThingShadowResponse$
|
|
248
|
+
];
|
|
249
|
+
exports.ListNamedShadowsForThing$ = [9, n0, _LNSFT,
|
|
250
|
+
{ [_h]: ["GET", "/api/things/shadow/ListNamedShadowsForThing/{thingName}", 200] }, () => exports.ListNamedShadowsForThingRequest$, () => exports.ListNamedShadowsForThingResponse$
|
|
251
|
+
];
|
|
252
|
+
exports.ListRetainedMessages$ = [9, n0, _LRM,
|
|
253
|
+
{ [_h]: ["GET", "/retainedMessage", 200] }, () => exports.ListRetainedMessagesRequest$, () => exports.ListRetainedMessagesResponse$
|
|
254
|
+
];
|
|
255
|
+
exports.Publish$ = [9, n0, _P,
|
|
256
|
+
{ [_h]: ["POST", "/topics/{topic}", 200] }, () => exports.PublishRequest$, () => __Unit
|
|
257
|
+
];
|
|
258
|
+
exports.UpdateThingShadow$ = [9, n0, _UTS,
|
|
259
|
+
{ [_h]: ["POST", "/things/{thingName}/shadow", 200] }, () => exports.UpdateThingShadowRequest$, () => exports.UpdateThingShadowResponse$
|
|
260
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultIoTDataPlaneHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2015-05-28",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.iotdataplane",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2015-05-28",
|
|
30
32
|
serviceTarget: "IotMoonrakerService",
|
|
31
33
|
},
|
|
@@ -62,9 +62,9 @@ const _r = "results";
|
|
|
62
62
|
const _rT = "retainedTopics";
|
|
63
63
|
const _rTe = "responseTopic";
|
|
64
64
|
const _re = "retain";
|
|
65
|
-
const _s = "
|
|
65
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotdataplane";
|
|
66
66
|
const _sN = "shadowName";
|
|
67
|
-
const
|
|
67
|
+
const _se = "server";
|
|
68
68
|
const _t = "topic";
|
|
69
69
|
const _tN = "thingName";
|
|
70
70
|
const _ti = "timestamp";
|
|
@@ -76,13 +76,81 @@ const n0 = "com.amazonaws.iotdataplane";
|
|
|
76
76
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
77
77
|
import { ConflictException, ForbiddenException, InternalFailureException, InvalidRequestException, MethodNotAllowedException, RequestEntityTooLargeException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, UnsupportedDocumentEncodingException, } from "../models/errors";
|
|
78
78
|
import { IoTDataPlaneServiceException } from "../models/IoTDataPlaneServiceException";
|
|
79
|
-
|
|
79
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
80
|
+
export var IoTDataPlaneServiceException$ = [-3, _s, "IoTDataPlaneServiceException", 0, [], []];
|
|
81
|
+
_s_registry.registerError(IoTDataPlaneServiceException$, IoTDataPlaneServiceException);
|
|
82
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
80
83
|
export var ConflictException$ = [-3, n0, _CE,
|
|
81
84
|
{ [_e]: _c, [_hE]: 409 },
|
|
82
85
|
[_m],
|
|
83
86
|
[0]
|
|
84
87
|
];
|
|
85
|
-
|
|
88
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
89
|
+
export var ForbiddenException$ = [-3, n0, _FE,
|
|
90
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
91
|
+
[_m],
|
|
92
|
+
[0]
|
|
93
|
+
];
|
|
94
|
+
n0_registry.registerError(ForbiddenException$, ForbiddenException);
|
|
95
|
+
export var InternalFailureException$ = [-3, n0, _IFE,
|
|
96
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
97
|
+
[_m],
|
|
98
|
+
[0]
|
|
99
|
+
];
|
|
100
|
+
n0_registry.registerError(InternalFailureException$, InternalFailureException);
|
|
101
|
+
export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
102
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
103
|
+
[_m],
|
|
104
|
+
[0]
|
|
105
|
+
];
|
|
106
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
107
|
+
export var MethodNotAllowedException$ = [-3, n0, _MNAE,
|
|
108
|
+
{ [_e]: _c, [_hE]: 405 },
|
|
109
|
+
[_m],
|
|
110
|
+
[0]
|
|
111
|
+
];
|
|
112
|
+
n0_registry.registerError(MethodNotAllowedException$, MethodNotAllowedException);
|
|
113
|
+
export var RequestEntityTooLargeException$ = [-3, n0, _RETLE,
|
|
114
|
+
{ [_e]: _c, [_hE]: 413 },
|
|
115
|
+
[_m],
|
|
116
|
+
[0]
|
|
117
|
+
];
|
|
118
|
+
n0_registry.registerError(RequestEntityTooLargeException$, RequestEntityTooLargeException);
|
|
119
|
+
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
120
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
121
|
+
[_m],
|
|
122
|
+
[0]
|
|
123
|
+
];
|
|
124
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
125
|
+
export var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
126
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
127
|
+
[_m],
|
|
128
|
+
[0]
|
|
129
|
+
];
|
|
130
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
131
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
132
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
133
|
+
[_m],
|
|
134
|
+
[0]
|
|
135
|
+
];
|
|
136
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
137
|
+
export var UnauthorizedException$ = [-3, n0, _UE,
|
|
138
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
139
|
+
[_m],
|
|
140
|
+
[0]
|
|
141
|
+
];
|
|
142
|
+
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
143
|
+
export var UnsupportedDocumentEncodingException$ = [-3, n0, _UDEE,
|
|
144
|
+
{ [_e]: _c, [_hE]: 415 },
|
|
145
|
+
[_m],
|
|
146
|
+
[0]
|
|
147
|
+
];
|
|
148
|
+
n0_registry.registerError(UnsupportedDocumentEncodingException$, UnsupportedDocumentEncodingException);
|
|
149
|
+
export const errorTypeRegistries = [
|
|
150
|
+
_s_registry,
|
|
151
|
+
n0_registry,
|
|
152
|
+
];
|
|
153
|
+
var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a }, 0];
|
|
86
154
|
export var DeleteConnectionRequest$ = [3, n0, _DCR,
|
|
87
155
|
0,
|
|
88
156
|
[_cI, _cS, _pWM],
|
|
@@ -98,12 +166,6 @@ export var DeleteThingShadowResponse$ = [3, n0, _DTSRe,
|
|
|
98
166
|
[_p],
|
|
99
167
|
[[21, 16]], 1
|
|
100
168
|
];
|
|
101
|
-
export var ForbiddenException$ = [-3, n0, _FE,
|
|
102
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
103
|
-
[_m],
|
|
104
|
-
[0]
|
|
105
|
-
];
|
|
106
|
-
TypeRegistry.for(n0).registerError(ForbiddenException$, ForbiddenException);
|
|
107
169
|
export var GetRetainedMessageRequest$ = [3, n0, _GRMR,
|
|
108
170
|
0,
|
|
109
171
|
[_t],
|
|
@@ -124,18 +186,6 @@ export var GetThingShadowResponse$ = [3, n0, _GTSRe,
|
|
|
124
186
|
[_p],
|
|
125
187
|
[[21, 16]]
|
|
126
188
|
];
|
|
127
|
-
export var InternalFailureException$ = [-3, n0, _IFE,
|
|
128
|
-
{ [_e]: _s, [_hE]: 500 },
|
|
129
|
-
[_m],
|
|
130
|
-
[0]
|
|
131
|
-
];
|
|
132
|
-
TypeRegistry.for(n0).registerError(InternalFailureException$, InternalFailureException);
|
|
133
|
-
export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
134
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
135
|
-
[_m],
|
|
136
|
-
[0]
|
|
137
|
-
];
|
|
138
|
-
TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
|
|
139
189
|
export var ListNamedShadowsForThingRequest$ = [3, n0, _LNSFTR,
|
|
140
190
|
0,
|
|
141
191
|
[_tN, _nT, _pS],
|
|
@@ -156,58 +206,16 @@ export var ListRetainedMessagesResponse$ = [3, n0, _LRMRi,
|
|
|
156
206
|
[_rT, _nT],
|
|
157
207
|
[() => RetainedMessageList, 0]
|
|
158
208
|
];
|
|
159
|
-
export var MethodNotAllowedException$ = [-3, n0, _MNAE,
|
|
160
|
-
{ [_e]: _c, [_hE]: 405 },
|
|
161
|
-
[_m],
|
|
162
|
-
[0]
|
|
163
|
-
];
|
|
164
|
-
TypeRegistry.for(n0).registerError(MethodNotAllowedException$, MethodNotAllowedException);
|
|
165
209
|
export var PublishRequest$ = [3, n0, _PR,
|
|
166
210
|
0,
|
|
167
211
|
[_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE],
|
|
168
212
|
[[0, 1], [1, { [_hQ]: _q }], [2, { [_hQ]: _re }], [21, 16], [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }], [0, { [_hH]: _xampfi }], [0, { [_hQ]: _cT }], [0, { [_hQ]: _rTe }], [0, { [_hH]: _xamcd }], [1, { [_hQ]: _mE }]], 1
|
|
169
213
|
];
|
|
170
|
-
export var RequestEntityTooLargeException$ = [-3, n0, _RETLE,
|
|
171
|
-
{ [_e]: _c, [_hE]: 413 },
|
|
172
|
-
[_m],
|
|
173
|
-
[0]
|
|
174
|
-
];
|
|
175
|
-
TypeRegistry.for(n0).registerError(RequestEntityTooLargeException$, RequestEntityTooLargeException);
|
|
176
|
-
export var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
177
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
178
|
-
[_m],
|
|
179
|
-
[0]
|
|
180
|
-
];
|
|
181
|
-
TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
182
214
|
export var RetainedMessageSummary$ = [3, n0, _RMS,
|
|
183
215
|
0,
|
|
184
216
|
[_t, _pSa, _q, _lMT],
|
|
185
217
|
[0, 1, 1, 1]
|
|
186
218
|
];
|
|
187
|
-
export var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
188
|
-
{ [_e]: _s, [_hE]: 503 },
|
|
189
|
-
[_m],
|
|
190
|
-
[0]
|
|
191
|
-
];
|
|
192
|
-
TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
193
|
-
export var ThrottlingException$ = [-3, n0, _TE,
|
|
194
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
195
|
-
[_m],
|
|
196
|
-
[0]
|
|
197
|
-
];
|
|
198
|
-
TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
|
|
199
|
-
export var UnauthorizedException$ = [-3, n0, _UE,
|
|
200
|
-
{ [_e]: _c, [_hE]: 401 },
|
|
201
|
-
[_m],
|
|
202
|
-
[0]
|
|
203
|
-
];
|
|
204
|
-
TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
|
|
205
|
-
export var UnsupportedDocumentEncodingException$ = [-3, n0, _UDEE,
|
|
206
|
-
{ [_e]: _c, [_hE]: 415 },
|
|
207
|
-
[_m],
|
|
208
|
-
[0]
|
|
209
|
-
];
|
|
210
|
-
TypeRegistry.for(n0).registerError(UnsupportedDocumentEncodingException$, UnsupportedDocumentEncodingException);
|
|
211
219
|
export var UpdateThingShadowRequest$ = [3, n0, _UTSR,
|
|
212
220
|
0,
|
|
213
221
|
[_tN, _p, _sN],
|
|
@@ -219,8 +227,6 @@ export var UpdateThingShadowResponse$ = [3, n0, _UTSRp,
|
|
|
219
227
|
[[21, 16]]
|
|
220
228
|
];
|
|
221
229
|
var __Unit = "unit";
|
|
222
|
-
export var IoTDataPlaneServiceException$ = [-3, _sm, "IoTDataPlaneServiceException", 0, [], []];
|
|
223
|
-
TypeRegistry.for(_sm).registerError(IoTDataPlaneServiceException$, IoTDataPlaneServiceException);
|
|
224
230
|
var NamedShadowList = 64 | 0;
|
|
225
231
|
var RetainedMessageList = [1, n0, _RML,
|
|
226
232
|
0, () => RetainedMessageSummary$
|
|
@@ -1,31 +1,38 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
3
|
+
export declare var IoTDataPlaneServiceException$: StaticErrorSchema;
|
|
2
4
|
export declare var ConflictException$: StaticErrorSchema;
|
|
5
|
+
export declare var ForbiddenException$: StaticErrorSchema;
|
|
6
|
+
export declare var InternalFailureException$: StaticErrorSchema;
|
|
7
|
+
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
8
|
+
export declare var MethodNotAllowedException$: StaticErrorSchema;
|
|
9
|
+
export declare var RequestEntityTooLargeException$: StaticErrorSchema;
|
|
10
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
11
|
+
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
12
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
13
|
+
export declare var UnauthorizedException$: StaticErrorSchema;
|
|
14
|
+
export declare var UnsupportedDocumentEncodingException$: StaticErrorSchema;
|
|
15
|
+
/**
|
|
16
|
+
* TypeRegistry instances containing modeled errors.
|
|
17
|
+
* @internal
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
3
21
|
export declare var DeleteConnectionRequest$: StaticStructureSchema;
|
|
4
22
|
export declare var DeleteThingShadowRequest$: StaticStructureSchema;
|
|
5
23
|
export declare var DeleteThingShadowResponse$: StaticStructureSchema;
|
|
6
|
-
export declare var ForbiddenException$: StaticErrorSchema;
|
|
7
24
|
export declare var GetRetainedMessageRequest$: StaticStructureSchema;
|
|
8
25
|
export declare var GetRetainedMessageResponse$: StaticStructureSchema;
|
|
9
26
|
export declare var GetThingShadowRequest$: StaticStructureSchema;
|
|
10
27
|
export declare var GetThingShadowResponse$: StaticStructureSchema;
|
|
11
|
-
export declare var InternalFailureException$: StaticErrorSchema;
|
|
12
|
-
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
13
28
|
export declare var ListNamedShadowsForThingRequest$: StaticStructureSchema;
|
|
14
29
|
export declare var ListNamedShadowsForThingResponse$: StaticStructureSchema;
|
|
15
30
|
export declare var ListRetainedMessagesRequest$: StaticStructureSchema;
|
|
16
31
|
export declare var ListRetainedMessagesResponse$: StaticStructureSchema;
|
|
17
|
-
export declare var MethodNotAllowedException$: StaticErrorSchema;
|
|
18
32
|
export declare var PublishRequest$: StaticStructureSchema;
|
|
19
|
-
export declare var RequestEntityTooLargeException$: StaticErrorSchema;
|
|
20
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
21
33
|
export declare var RetainedMessageSummary$: StaticStructureSchema;
|
|
22
|
-
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
23
|
-
export declare var ThrottlingException$: StaticErrorSchema;
|
|
24
|
-
export declare var UnauthorizedException$: StaticErrorSchema;
|
|
25
|
-
export declare var UnsupportedDocumentEncodingException$: StaticErrorSchema;
|
|
26
34
|
export declare var UpdateThingShadowRequest$: StaticStructureSchema;
|
|
27
35
|
export declare var UpdateThingShadowResponse$: StaticStructureSchema;
|
|
28
|
-
export declare var IoTDataPlaneServiceException$: StaticErrorSchema;
|
|
29
36
|
export declare var DeleteConnection$: StaticOperationSchema;
|
|
30
37
|
export declare var DeleteThingShadow$: StaticOperationSchema;
|
|
31
38
|
export declare var GetRetainedMessage$: StaticOperationSchema;
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
7
|
+
export declare var IoTDataPlaneServiceException$: StaticErrorSchema;
|
|
6
8
|
export declare var ConflictException$: StaticErrorSchema;
|
|
9
|
+
export declare var ForbiddenException$: StaticErrorSchema;
|
|
10
|
+
export declare var InternalFailureException$: StaticErrorSchema;
|
|
11
|
+
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
12
|
+
export declare var MethodNotAllowedException$: StaticErrorSchema;
|
|
13
|
+
export declare var RequestEntityTooLargeException$: StaticErrorSchema;
|
|
14
|
+
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
15
|
+
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
16
|
+
export declare var ThrottlingException$: StaticErrorSchema;
|
|
17
|
+
export declare var UnauthorizedException$: StaticErrorSchema;
|
|
18
|
+
export declare var UnsupportedDocumentEncodingException$: StaticErrorSchema;
|
|
19
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
7
20
|
export declare var DeleteConnectionRequest$: StaticStructureSchema;
|
|
8
21
|
export declare var DeleteThingShadowRequest$: StaticStructureSchema;
|
|
9
22
|
export declare var DeleteThingShadowResponse$: StaticStructureSchema;
|
|
10
|
-
export declare var ForbiddenException$: StaticErrorSchema;
|
|
11
23
|
export declare var GetRetainedMessageRequest$: StaticStructureSchema;
|
|
12
24
|
export declare var GetRetainedMessageResponse$: StaticStructureSchema;
|
|
13
25
|
export declare var GetThingShadowRequest$: StaticStructureSchema;
|
|
14
26
|
export declare var GetThingShadowResponse$: StaticStructureSchema;
|
|
15
|
-
export declare var InternalFailureException$: StaticErrorSchema;
|
|
16
|
-
export declare var InvalidRequestException$: StaticErrorSchema;
|
|
17
27
|
export declare var ListNamedShadowsForThingRequest$: StaticStructureSchema;
|
|
18
28
|
export declare var ListNamedShadowsForThingResponse$: StaticStructureSchema;
|
|
19
29
|
export declare var ListRetainedMessagesRequest$: StaticStructureSchema;
|
|
20
30
|
export declare var ListRetainedMessagesResponse$: StaticStructureSchema;
|
|
21
|
-
export declare var MethodNotAllowedException$: StaticErrorSchema;
|
|
22
31
|
export declare var PublishRequest$: StaticStructureSchema;
|
|
23
|
-
export declare var RequestEntityTooLargeException$: StaticErrorSchema;
|
|
24
|
-
export declare var ResourceNotFoundException$: StaticErrorSchema;
|
|
25
32
|
export declare var RetainedMessageSummary$: StaticStructureSchema;
|
|
26
|
-
export declare var ServiceUnavailableException$: StaticErrorSchema;
|
|
27
|
-
export declare var ThrottlingException$: StaticErrorSchema;
|
|
28
|
-
export declare var UnauthorizedException$: StaticErrorSchema;
|
|
29
|
-
export declare var UnsupportedDocumentEncodingException$: StaticErrorSchema;
|
|
30
33
|
export declare var UpdateThingShadowRequest$: StaticStructureSchema;
|
|
31
34
|
export declare var UpdateThingShadowResponse$: StaticStructureSchema;
|
|
32
|
-
export declare var IoTDataPlaneServiceException$: StaticErrorSchema;
|
|
33
35
|
export declare var DeleteConnection$: StaticOperationSchema;
|
|
34
36
|
export declare var DeleteThingShadow$: StaticOperationSchema;
|
|
35
37
|
export declare var GetRetainedMessage$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iot-data-plane",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iot Data Plane Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.989.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-iot-data-plane",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.9",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.8",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.9",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
31
|
"@aws-sdk/types": "^3.973.1",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.989.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.7",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.23.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.11.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|
|
59
|
-
"@smithy/util-stream": "^4.5.
|
|
59
|
+
"@smithy/util-stream": "^4.5.12",
|
|
60
60
|
"@smithy/util-utf8": "^4.2.0",
|
|
61
61
|
"tslib": "^2.6.2"
|
|
62
62
|
},
|