@aws-sdk/client-iot-events-data 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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultIoTEventsDataHttpAuthSchemeProvider } 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: "2018-10-23",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.ioteventsdata",
30
+ errorTypeRegistries,
29
31
  version: "2018-10-23",
30
32
  serviceTarget: "IotColumboDataService",
31
33
  },
@@ -126,10 +126,10 @@ const _iN = "inputName";
126
126
  const _iPV = "inputPropertyValue";
127
127
  const _kV = "keyValue";
128
128
  const _lUT = "lastUpdateTime";
129
- const _m = "messages";
129
+ const _m = "message";
130
130
  const _mI = "messageId";
131
131
  const _mR = "maxResults";
132
- const _me = "message";
132
+ const _me = "messages";
133
133
  const _n = "note";
134
134
  const _nT = "nextToken";
135
135
  const _na = "name";
@@ -139,7 +139,7 @@ const _rAC = "resetActionConfiguration";
139
139
  const _rAR = "resetActionRequests";
140
140
  const _rE = "ruleEvaluation";
141
141
  const _rI = "requestId";
142
- const _s = "severity";
142
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.ioteventsdata";
143
143
  const _sAC = "snoozeActionConfiguration";
144
144
  const _sAR = "snoozeActionRequests";
145
145
  const _sCC = "stateChangeConfiguration";
@@ -149,7 +149,7 @@ const _sN = "stateName";
149
149
  const _sRE = "simpleRuleEvaluation";
150
150
  const _se = "server";
151
151
  const _sec = "seconds";
152
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ioteventsdata";
152
+ const _sev = "severity";
153
153
  const _st = "state";
154
154
  const _t = "timers";
155
155
  const _tIM = "timeInMillis";
@@ -162,6 +162,44 @@ const n0 = "com.amazonaws.ioteventsdata";
162
162
  import { TypeRegistry } from "@smithy/core/schema";
163
163
  import { InternalFailureException, InvalidRequestException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, } from "../models/errors";
164
164
  import { IoTEventsDataServiceException } from "../models/IoTEventsDataServiceException";
165
+ const _s_registry = TypeRegistry.for(_s);
166
+ export var IoTEventsDataServiceException$ = [-3, _s, "IoTEventsDataServiceException", 0, [], []];
167
+ _s_registry.registerError(IoTEventsDataServiceException$, IoTEventsDataServiceException);
168
+ const n0_registry = TypeRegistry.for(n0);
169
+ export var InternalFailureException$ = [-3, n0, _IFE,
170
+ { [_e]: _se, [_hE]: 500 },
171
+ [_m],
172
+ [0]
173
+ ];
174
+ n0_registry.registerError(InternalFailureException$, InternalFailureException);
175
+ export var InvalidRequestException$ = [-3, n0, _IRE,
176
+ { [_e]: _c, [_hE]: 400 },
177
+ [_m],
178
+ [0]
179
+ ];
180
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
181
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
182
+ { [_e]: _c, [_hE]: 404 },
183
+ [_m],
184
+ [0]
185
+ ];
186
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
187
+ export var ServiceUnavailableException$ = [-3, n0, _SUE,
188
+ { [_e]: _se, [_hE]: 503 },
189
+ [_m],
190
+ [0]
191
+ ];
192
+ n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
193
+ export var ThrottlingException$ = [-3, n0, _TE,
194
+ { [_e]: _c, [_hE]: 429 },
195
+ [_m],
196
+ [0]
197
+ ];
198
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
199
+ export const errorTypeRegistries = [
200
+ _s_registry,
201
+ n0_registry,
202
+ ];
165
203
  export var AcknowledgeActionConfiguration$ = [3, n0, _AAC,
166
204
  0,
167
205
  [_n],
@@ -174,7 +212,7 @@ export var AcknowledgeAlarmActionRequest$ = [3, n0, _AAAR,
174
212
  ];
175
213
  export var Alarm$ = [3, n0, _A,
176
214
  0,
177
- [_aMN, _aMV, _kV, _aS, _s, _cT, _lUT],
215
+ [_aMN, _aMV, _kV, _aS, _sev, _cT, _lUT],
178
216
  [0, 0, 0, () => AlarmState$, 1, 4, 4]
179
217
  ];
180
218
  export var AlarmState$ = [3, n0, _AS,
@@ -244,7 +282,7 @@ export var BatchPutMessageErrorEntry$ = [3, n0, _BPMEE,
244
282
  ];
245
283
  export var BatchPutMessageRequest$ = [3, n0, _BPMR,
246
284
  0,
247
- [_m],
285
+ [_me],
248
286
  [() => Messages], 1
249
287
  ];
250
288
  export var BatchPutMessageResponse$ = [3, n0, _BPMRa,
@@ -362,18 +400,6 @@ export var EnableAlarmActionRequest$ = [3, n0, _EAAR,
362
400
  [_rI, _aMN, _kV, _n],
363
401
  [0, 0, 0, 0], 2
364
402
  ];
365
- export var InternalFailureException$ = [-3, n0, _IFE,
366
- { [_e]: _se, [_hE]: 500 },
367
- [_me],
368
- [0]
369
- ];
370
- TypeRegistry.for(n0).registerError(InternalFailureException$, InternalFailureException);
371
- export var InvalidRequestException$ = [-3, n0, _IRE,
372
- { [_e]: _c, [_hE]: 400 },
373
- [_me],
374
- [0]
375
- ];
376
- TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
377
403
  export var ListAlarmsRequest$ = [3, n0, _LAR,
378
404
  0,
379
405
  [_aMN, _nT, _mR],
@@ -409,23 +435,11 @@ export var ResetAlarmActionRequest$ = [3, n0, _RAAR,
409
435
  [_rI, _aMN, _kV, _n],
410
436
  [0, 0, 0, 0], 2
411
437
  ];
412
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
413
- { [_e]: _c, [_hE]: 404 },
414
- [_me],
415
- [0]
416
- ];
417
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
418
438
  export var RuleEvaluation$ = [3, n0, _RE,
419
439
  0,
420
440
  [_sRE],
421
441
  [() => SimpleRuleEvaluation$]
422
442
  ];
423
- export var ServiceUnavailableException$ = [-3, n0, _SUE,
424
- { [_e]: _se, [_hE]: 503 },
425
- [_me],
426
- [0]
427
- ];
428
- TypeRegistry.for(n0).registerError(ServiceUnavailableException$, ServiceUnavailableException);
429
443
  export var SimpleRuleEvaluation$ = [3, n0, _SRE,
430
444
  0,
431
445
  [_iPV, _o, _tV],
@@ -451,12 +465,6 @@ export var SystemEvent$ = [3, n0, _SE,
451
465
  [_eT, _sCC],
452
466
  [0, () => StateChangeConfiguration$]
453
467
  ];
454
- export var ThrottlingException$ = [-3, n0, _TE,
455
- { [_e]: _c, [_hE]: 429 },
456
- [_me],
457
- [0]
458
- ];
459
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
460
468
  export var Timer$ = [3, n0, _T,
461
469
  0,
462
470
  [_na, _ti],
@@ -487,8 +495,6 @@ export var VariableDefinition$ = [3, n0, _VD,
487
495
  [_na, _va],
488
496
  [0, 0], 2
489
497
  ];
490
- export var IoTEventsDataServiceException$ = [-3, _sm, "IoTEventsDataServiceException", 0, [], []];
491
- TypeRegistry.for(_sm).registerError(IoTEventsDataServiceException$, IoTEventsDataServiceException);
492
498
  var AcknowledgeAlarmActionRequests = [1, n0, _AAARc,
493
499
  0, () => AcknowledgeAlarmActionRequest$
494
500
  ];
@@ -1,4 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var IoTEventsDataServiceException$: StaticErrorSchema;
4
+ export declare var InternalFailureException$: StaticErrorSchema;
5
+ export declare var InvalidRequestException$: StaticErrorSchema;
6
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
7
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
8
+ export declare var ThrottlingException$: StaticErrorSchema;
9
+ /**
10
+ * TypeRegistry instances containing modeled errors.
11
+ * @internal
12
+ *
13
+ */
14
+ export declare const errorTypeRegistries: TypeRegistry[];
2
15
  export declare var AcknowledgeActionConfiguration$: StaticStructureSchema;
3
16
  export declare var AcknowledgeAlarmActionRequest$: StaticStructureSchema;
4
17
  export declare var Alarm$: StaticStructureSchema;
@@ -39,8 +52,6 @@ export declare var DisableActionConfiguration$: StaticStructureSchema;
39
52
  export declare var DisableAlarmActionRequest$: StaticStructureSchema;
40
53
  export declare var EnableActionConfiguration$: StaticStructureSchema;
41
54
  export declare var EnableAlarmActionRequest$: StaticStructureSchema;
42
- export declare var InternalFailureException$: StaticErrorSchema;
43
- export declare var InvalidRequestException$: StaticErrorSchema;
44
55
  export declare var ListAlarmsRequest$: StaticStructureSchema;
45
56
  export declare var ListAlarmsResponse$: StaticStructureSchema;
46
57
  export declare var ListDetectorsRequest$: StaticStructureSchema;
@@ -48,22 +59,18 @@ export declare var ListDetectorsResponse$: StaticStructureSchema;
48
59
  export declare var Message$: StaticStructureSchema;
49
60
  export declare var ResetActionConfiguration$: StaticStructureSchema;
50
61
  export declare var ResetAlarmActionRequest$: StaticStructureSchema;
51
- export declare var ResourceNotFoundException$: StaticErrorSchema;
52
62
  export declare var RuleEvaluation$: StaticStructureSchema;
53
- export declare var ServiceUnavailableException$: StaticErrorSchema;
54
63
  export declare var SimpleRuleEvaluation$: StaticStructureSchema;
55
64
  export declare var SnoozeActionConfiguration$: StaticStructureSchema;
56
65
  export declare var SnoozeAlarmActionRequest$: StaticStructureSchema;
57
66
  export declare var StateChangeConfiguration$: StaticStructureSchema;
58
67
  export declare var SystemEvent$: StaticStructureSchema;
59
- export declare var ThrottlingException$: StaticErrorSchema;
60
68
  export declare var Timer$: StaticStructureSchema;
61
69
  export declare var TimerDefinition$: StaticStructureSchema;
62
70
  export declare var TimestampValue$: StaticStructureSchema;
63
71
  export declare var UpdateDetectorRequest$: StaticStructureSchema;
64
72
  export declare var Variable$: StaticStructureSchema;
65
73
  export declare var VariableDefinition$: StaticStructureSchema;
66
- export declare var IoTEventsDataServiceException$: StaticErrorSchema;
67
74
  export declare var BatchAcknowledgeAlarm$: StaticOperationSchema;
68
75
  export declare var BatchDeleteDetector$: StaticOperationSchema;
69
76
  export declare var BatchDisableAlarm$: StaticOperationSchema;
@@ -1,8 +1,16 @@
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 IoTEventsDataServiceException$: StaticErrorSchema;
8
+ export declare var InternalFailureException$: StaticErrorSchema;
9
+ export declare var InvalidRequestException$: StaticErrorSchema;
10
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
11
+ export declare var ServiceUnavailableException$: StaticErrorSchema;
12
+ export declare var ThrottlingException$: StaticErrorSchema;
13
+ export declare const errorTypeRegistries: TypeRegistry[];
6
14
  export declare var AcknowledgeActionConfiguration$: StaticStructureSchema;
7
15
  export declare var AcknowledgeAlarmActionRequest$: StaticStructureSchema;
8
16
  export declare var Alarm$: StaticStructureSchema;
@@ -43,8 +51,6 @@ export declare var DisableActionConfiguration$: StaticStructureSchema;
43
51
  export declare var DisableAlarmActionRequest$: StaticStructureSchema;
44
52
  export declare var EnableActionConfiguration$: StaticStructureSchema;
45
53
  export declare var EnableAlarmActionRequest$: StaticStructureSchema;
46
- export declare var InternalFailureException$: StaticErrorSchema;
47
- export declare var InvalidRequestException$: StaticErrorSchema;
48
54
  export declare var ListAlarmsRequest$: StaticStructureSchema;
49
55
  export declare var ListAlarmsResponse$: StaticStructureSchema;
50
56
  export declare var ListDetectorsRequest$: StaticStructureSchema;
@@ -52,22 +58,18 @@ export declare var ListDetectorsResponse$: StaticStructureSchema;
52
58
  export declare var Message$: StaticStructureSchema;
53
59
  export declare var ResetActionConfiguration$: StaticStructureSchema;
54
60
  export declare var ResetAlarmActionRequest$: StaticStructureSchema;
55
- export declare var ResourceNotFoundException$: StaticErrorSchema;
56
61
  export declare var RuleEvaluation$: StaticStructureSchema;
57
- export declare var ServiceUnavailableException$: StaticErrorSchema;
58
62
  export declare var SimpleRuleEvaluation$: StaticStructureSchema;
59
63
  export declare var SnoozeActionConfiguration$: StaticStructureSchema;
60
64
  export declare var SnoozeAlarmActionRequest$: StaticStructureSchema;
61
65
  export declare var StateChangeConfiguration$: StaticStructureSchema;
62
66
  export declare var SystemEvent$: StaticStructureSchema;
63
- export declare var ThrottlingException$: StaticErrorSchema;
64
67
  export declare var Timer$: StaticStructureSchema;
65
68
  export declare var TimerDefinition$: StaticStructureSchema;
66
69
  export declare var TimestampValue$: StaticStructureSchema;
67
70
  export declare var UpdateDetectorRequest$: StaticStructureSchema;
68
71
  export declare var Variable$: StaticStructureSchema;
69
72
  export declare var VariableDefinition$: StaticStructureSchema;
70
- export declare var IoTEventsDataServiceException$: StaticErrorSchema;
71
73
  export declare var BatchAcknowledgeAlarm$: StaticOperationSchema;
72
74
  export declare var BatchDeleteDetector$: StaticOperationSchema;
73
75
  export declare var BatchDisableAlarm$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-events-data",
3
3
  "description": "AWS SDK for JavaScript Iot Events Data Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
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-events-data",
@@ -21,38 +21,38 @@
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.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
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.7",
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.987.0",
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.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
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.13",
42
- "@smithy/middleware-retry": "^4.4.30",
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.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
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.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
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",