@aws-sdk/client-iot 3.987.0 → 3.988.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IoTServiceException = 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 IoTServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, IoTServiceException.prototype);
10
+ }
11
+ }
12
+ exports.IoTServiceException = IoTServiceException;
@@ -0,0 +1,439 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferConflictException = exports.InvalidResponseException = exports.TaskAlreadyExistsException = exports.ResourceRegistrationFailureException = exports.CertificateConflictException = exports.RegistrationCodeValidationException = exports.NotConfiguredException = exports.CertificateStateException = exports.DeleteConflictException = exports.SqlParseException = exports.VersionsLimitExceededException = exports.MalformedPolicyException = exports.InvalidAggregationException = exports.IndexNotReadyException = exports.InvalidQueryException = exports.CertificateValidationException = exports.ResourceAlreadyExistsException = exports.InternalException = exports.ConflictingResourceUpdateException = exports.InvalidStateTransitionException = exports.VersionConflictException = exports.LimitExceededException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.UnauthorizedException = exports.TransferAlreadyCompletedException = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InternalFailureException = void 0;
4
+ const IoTServiceException_1 = require("./IoTServiceException");
5
+ class InternalFailureException extends IoTServiceException_1.IoTServiceException {
6
+ name = "InternalFailureException";
7
+ $fault = "server";
8
+ constructor(opts) {
9
+ super({
10
+ name: "InternalFailureException",
11
+ $fault: "server",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
15
+ }
16
+ }
17
+ exports.InternalFailureException = InternalFailureException;
18
+ class InvalidRequestException extends IoTServiceException_1.IoTServiceException {
19
+ name = "InvalidRequestException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "InvalidRequestException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
28
+ }
29
+ }
30
+ exports.InvalidRequestException = InvalidRequestException;
31
+ class ResourceNotFoundException extends IoTServiceException_1.IoTServiceException {
32
+ name = "ResourceNotFoundException";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "ResourceNotFoundException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
41
+ }
42
+ }
43
+ exports.ResourceNotFoundException = ResourceNotFoundException;
44
+ class ServiceUnavailableException extends IoTServiceException_1.IoTServiceException {
45
+ name = "ServiceUnavailableException";
46
+ $fault = "server";
47
+ constructor(opts) {
48
+ super({
49
+ name: "ServiceUnavailableException",
50
+ $fault: "server",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
54
+ }
55
+ }
56
+ exports.ServiceUnavailableException = ServiceUnavailableException;
57
+ class ThrottlingException extends IoTServiceException_1.IoTServiceException {
58
+ name = "ThrottlingException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "ThrottlingException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
67
+ }
68
+ }
69
+ exports.ThrottlingException = ThrottlingException;
70
+ class TransferAlreadyCompletedException extends IoTServiceException_1.IoTServiceException {
71
+ name = "TransferAlreadyCompletedException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "TransferAlreadyCompletedException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, TransferAlreadyCompletedException.prototype);
80
+ }
81
+ }
82
+ exports.TransferAlreadyCompletedException = TransferAlreadyCompletedException;
83
+ class UnauthorizedException extends IoTServiceException_1.IoTServiceException {
84
+ name = "UnauthorizedException";
85
+ $fault = "client";
86
+ constructor(opts) {
87
+ super({
88
+ name: "UnauthorizedException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
93
+ }
94
+ }
95
+ exports.UnauthorizedException = UnauthorizedException;
96
+ class ConflictException extends IoTServiceException_1.IoTServiceException {
97
+ name = "ConflictException";
98
+ $fault = "client";
99
+ resourceId;
100
+ constructor(opts) {
101
+ super({
102
+ name: "ConflictException",
103
+ $fault: "client",
104
+ ...opts,
105
+ });
106
+ Object.setPrototypeOf(this, ConflictException.prototype);
107
+ this.resourceId = opts.resourceId;
108
+ }
109
+ }
110
+ exports.ConflictException = ConflictException;
111
+ class InternalServerException extends IoTServiceException_1.IoTServiceException {
112
+ name = "InternalServerException";
113
+ $fault = "server";
114
+ constructor(opts) {
115
+ super({
116
+ name: "InternalServerException",
117
+ $fault: "server",
118
+ ...opts,
119
+ });
120
+ Object.setPrototypeOf(this, InternalServerException.prototype);
121
+ }
122
+ }
123
+ exports.InternalServerException = InternalServerException;
124
+ class ServiceQuotaExceededException extends IoTServiceException_1.IoTServiceException {
125
+ name = "ServiceQuotaExceededException";
126
+ $fault = "client";
127
+ constructor(opts) {
128
+ super({
129
+ name: "ServiceQuotaExceededException",
130
+ $fault: "client",
131
+ ...opts,
132
+ });
133
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
134
+ }
135
+ }
136
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
137
+ class ValidationException extends IoTServiceException_1.IoTServiceException {
138
+ name = "ValidationException";
139
+ $fault = "client";
140
+ constructor(opts) {
141
+ super({
142
+ name: "ValidationException",
143
+ $fault: "client",
144
+ ...opts,
145
+ });
146
+ Object.setPrototypeOf(this, ValidationException.prototype);
147
+ }
148
+ }
149
+ exports.ValidationException = ValidationException;
150
+ class LimitExceededException extends IoTServiceException_1.IoTServiceException {
151
+ name = "LimitExceededException";
152
+ $fault = "client";
153
+ constructor(opts) {
154
+ super({
155
+ name: "LimitExceededException",
156
+ $fault: "client",
157
+ ...opts,
158
+ });
159
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
160
+ }
161
+ }
162
+ exports.LimitExceededException = LimitExceededException;
163
+ class VersionConflictException extends IoTServiceException_1.IoTServiceException {
164
+ name = "VersionConflictException";
165
+ $fault = "client";
166
+ constructor(opts) {
167
+ super({
168
+ name: "VersionConflictException",
169
+ $fault: "client",
170
+ ...opts,
171
+ });
172
+ Object.setPrototypeOf(this, VersionConflictException.prototype);
173
+ }
174
+ }
175
+ exports.VersionConflictException = VersionConflictException;
176
+ class InvalidStateTransitionException extends IoTServiceException_1.IoTServiceException {
177
+ name = "InvalidStateTransitionException";
178
+ $fault = "client";
179
+ constructor(opts) {
180
+ super({
181
+ name: "InvalidStateTransitionException",
182
+ $fault: "client",
183
+ ...opts,
184
+ });
185
+ Object.setPrototypeOf(this, InvalidStateTransitionException.prototype);
186
+ }
187
+ }
188
+ exports.InvalidStateTransitionException = InvalidStateTransitionException;
189
+ class ConflictingResourceUpdateException extends IoTServiceException_1.IoTServiceException {
190
+ name = "ConflictingResourceUpdateException";
191
+ $fault = "client";
192
+ constructor(opts) {
193
+ super({
194
+ name: "ConflictingResourceUpdateException",
195
+ $fault: "client",
196
+ ...opts,
197
+ });
198
+ Object.setPrototypeOf(this, ConflictingResourceUpdateException.prototype);
199
+ }
200
+ }
201
+ exports.ConflictingResourceUpdateException = ConflictingResourceUpdateException;
202
+ class InternalException extends IoTServiceException_1.IoTServiceException {
203
+ name = "InternalException";
204
+ $fault = "server";
205
+ constructor(opts) {
206
+ super({
207
+ name: "InternalException",
208
+ $fault: "server",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, InternalException.prototype);
212
+ }
213
+ }
214
+ exports.InternalException = InternalException;
215
+ class ResourceAlreadyExistsException extends IoTServiceException_1.IoTServiceException {
216
+ name = "ResourceAlreadyExistsException";
217
+ $fault = "client";
218
+ resourceId;
219
+ resourceArn;
220
+ constructor(opts) {
221
+ super({
222
+ name: "ResourceAlreadyExistsException",
223
+ $fault: "client",
224
+ ...opts,
225
+ });
226
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
227
+ this.resourceId = opts.resourceId;
228
+ this.resourceArn = opts.resourceArn;
229
+ }
230
+ }
231
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
232
+ class CertificateValidationException extends IoTServiceException_1.IoTServiceException {
233
+ name = "CertificateValidationException";
234
+ $fault = "client";
235
+ constructor(opts) {
236
+ super({
237
+ name: "CertificateValidationException",
238
+ $fault: "client",
239
+ ...opts,
240
+ });
241
+ Object.setPrototypeOf(this, CertificateValidationException.prototype);
242
+ }
243
+ }
244
+ exports.CertificateValidationException = CertificateValidationException;
245
+ class InvalidQueryException extends IoTServiceException_1.IoTServiceException {
246
+ name = "InvalidQueryException";
247
+ $fault = "client";
248
+ constructor(opts) {
249
+ super({
250
+ name: "InvalidQueryException",
251
+ $fault: "client",
252
+ ...opts,
253
+ });
254
+ Object.setPrototypeOf(this, InvalidQueryException.prototype);
255
+ }
256
+ }
257
+ exports.InvalidQueryException = InvalidQueryException;
258
+ class IndexNotReadyException extends IoTServiceException_1.IoTServiceException {
259
+ name = "IndexNotReadyException";
260
+ $fault = "client";
261
+ constructor(opts) {
262
+ super({
263
+ name: "IndexNotReadyException",
264
+ $fault: "client",
265
+ ...opts,
266
+ });
267
+ Object.setPrototypeOf(this, IndexNotReadyException.prototype);
268
+ }
269
+ }
270
+ exports.IndexNotReadyException = IndexNotReadyException;
271
+ class InvalidAggregationException extends IoTServiceException_1.IoTServiceException {
272
+ name = "InvalidAggregationException";
273
+ $fault = "client";
274
+ constructor(opts) {
275
+ super({
276
+ name: "InvalidAggregationException",
277
+ $fault: "client",
278
+ ...opts,
279
+ });
280
+ Object.setPrototypeOf(this, InvalidAggregationException.prototype);
281
+ }
282
+ }
283
+ exports.InvalidAggregationException = InvalidAggregationException;
284
+ class MalformedPolicyException extends IoTServiceException_1.IoTServiceException {
285
+ name = "MalformedPolicyException";
286
+ $fault = "client";
287
+ constructor(opts) {
288
+ super({
289
+ name: "MalformedPolicyException",
290
+ $fault: "client",
291
+ ...opts,
292
+ });
293
+ Object.setPrototypeOf(this, MalformedPolicyException.prototype);
294
+ }
295
+ }
296
+ exports.MalformedPolicyException = MalformedPolicyException;
297
+ class VersionsLimitExceededException extends IoTServiceException_1.IoTServiceException {
298
+ name = "VersionsLimitExceededException";
299
+ $fault = "client";
300
+ constructor(opts) {
301
+ super({
302
+ name: "VersionsLimitExceededException",
303
+ $fault: "client",
304
+ ...opts,
305
+ });
306
+ Object.setPrototypeOf(this, VersionsLimitExceededException.prototype);
307
+ }
308
+ }
309
+ exports.VersionsLimitExceededException = VersionsLimitExceededException;
310
+ class SqlParseException extends IoTServiceException_1.IoTServiceException {
311
+ name = "SqlParseException";
312
+ $fault = "client";
313
+ constructor(opts) {
314
+ super({
315
+ name: "SqlParseException",
316
+ $fault: "client",
317
+ ...opts,
318
+ });
319
+ Object.setPrototypeOf(this, SqlParseException.prototype);
320
+ }
321
+ }
322
+ exports.SqlParseException = SqlParseException;
323
+ class DeleteConflictException extends IoTServiceException_1.IoTServiceException {
324
+ name = "DeleteConflictException";
325
+ $fault = "client";
326
+ constructor(opts) {
327
+ super({
328
+ name: "DeleteConflictException",
329
+ $fault: "client",
330
+ ...opts,
331
+ });
332
+ Object.setPrototypeOf(this, DeleteConflictException.prototype);
333
+ }
334
+ }
335
+ exports.DeleteConflictException = DeleteConflictException;
336
+ class CertificateStateException extends IoTServiceException_1.IoTServiceException {
337
+ name = "CertificateStateException";
338
+ $fault = "client";
339
+ constructor(opts) {
340
+ super({
341
+ name: "CertificateStateException",
342
+ $fault: "client",
343
+ ...opts,
344
+ });
345
+ Object.setPrototypeOf(this, CertificateStateException.prototype);
346
+ }
347
+ }
348
+ exports.CertificateStateException = CertificateStateException;
349
+ class NotConfiguredException extends IoTServiceException_1.IoTServiceException {
350
+ name = "NotConfiguredException";
351
+ $fault = "client";
352
+ constructor(opts) {
353
+ super({
354
+ name: "NotConfiguredException",
355
+ $fault: "client",
356
+ ...opts,
357
+ });
358
+ Object.setPrototypeOf(this, NotConfiguredException.prototype);
359
+ }
360
+ }
361
+ exports.NotConfiguredException = NotConfiguredException;
362
+ class RegistrationCodeValidationException extends IoTServiceException_1.IoTServiceException {
363
+ name = "RegistrationCodeValidationException";
364
+ $fault = "client";
365
+ constructor(opts) {
366
+ super({
367
+ name: "RegistrationCodeValidationException",
368
+ $fault: "client",
369
+ ...opts,
370
+ });
371
+ Object.setPrototypeOf(this, RegistrationCodeValidationException.prototype);
372
+ }
373
+ }
374
+ exports.RegistrationCodeValidationException = RegistrationCodeValidationException;
375
+ class CertificateConflictException extends IoTServiceException_1.IoTServiceException {
376
+ name = "CertificateConflictException";
377
+ $fault = "client";
378
+ constructor(opts) {
379
+ super({
380
+ name: "CertificateConflictException",
381
+ $fault: "client",
382
+ ...opts,
383
+ });
384
+ Object.setPrototypeOf(this, CertificateConflictException.prototype);
385
+ }
386
+ }
387
+ exports.CertificateConflictException = CertificateConflictException;
388
+ class ResourceRegistrationFailureException extends IoTServiceException_1.IoTServiceException {
389
+ name = "ResourceRegistrationFailureException";
390
+ $fault = "client";
391
+ constructor(opts) {
392
+ super({
393
+ name: "ResourceRegistrationFailureException",
394
+ $fault: "client",
395
+ ...opts,
396
+ });
397
+ Object.setPrototypeOf(this, ResourceRegistrationFailureException.prototype);
398
+ }
399
+ }
400
+ exports.ResourceRegistrationFailureException = ResourceRegistrationFailureException;
401
+ class TaskAlreadyExistsException extends IoTServiceException_1.IoTServiceException {
402
+ name = "TaskAlreadyExistsException";
403
+ $fault = "client";
404
+ constructor(opts) {
405
+ super({
406
+ name: "TaskAlreadyExistsException",
407
+ $fault: "client",
408
+ ...opts,
409
+ });
410
+ Object.setPrototypeOf(this, TaskAlreadyExistsException.prototype);
411
+ }
412
+ }
413
+ exports.TaskAlreadyExistsException = TaskAlreadyExistsException;
414
+ class InvalidResponseException extends IoTServiceException_1.IoTServiceException {
415
+ name = "InvalidResponseException";
416
+ $fault = "client";
417
+ constructor(opts) {
418
+ super({
419
+ name: "InvalidResponseException",
420
+ $fault: "client",
421
+ ...opts,
422
+ });
423
+ Object.setPrototypeOf(this, InvalidResponseException.prototype);
424
+ }
425
+ }
426
+ exports.InvalidResponseException = InvalidResponseException;
427
+ class TransferConflictException extends IoTServiceException_1.IoTServiceException {
428
+ name = "TransferConflictException";
429
+ $fault = "client";
430
+ constructor(opts) {
431
+ super({
432
+ name: "TransferConflictException",
433
+ $fault: "client",
434
+ ...opts,
435
+ });
436
+ Object.setPrototypeOf(this, TransferConflictException.prototype);
437
+ }
438
+ }
439
+ exports.TransferConflictException = TransferConflictException;
@@ -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.iot",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2015-05-28",
33
35
  serviceTarget: "AWSIotService",
34
36
  },