@aws-sdk/client-iot-events-data 3.53.0 → 3.55.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/IoTEventsDataClient.js +13 -13
  3. package/dist-cjs/commands/BatchAcknowledgeAlarmCommand.js +3 -3
  4. package/dist-cjs/commands/BatchDisableAlarmCommand.js +3 -3
  5. package/dist-cjs/commands/BatchEnableAlarmCommand.js +3 -3
  6. package/dist-cjs/commands/BatchPutMessageCommand.js +3 -3
  7. package/dist-cjs/commands/BatchResetAlarmCommand.js +3 -3
  8. package/dist-cjs/commands/BatchSnoozeAlarmCommand.js +3 -3
  9. package/dist-cjs/commands/BatchUpdateDetectorCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeAlarmCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeDetectorCommand.js +3 -3
  12. package/dist-cjs/commands/ListAlarmsCommand.js +3 -3
  13. package/dist-cjs/commands/ListDetectorsCommand.js +3 -3
  14. package/dist-cjs/endpoints.js +1 -1
  15. package/dist-cjs/protocols/Aws_restJson1.js +88 -88
  16. package/dist-cjs/runtimeConfig.browser.js +4 -4
  17. package/dist-cjs/runtimeConfig.js +9 -9
  18. package/dist-cjs/runtimeConfig.native.js +1 -1
  19. package/dist-es/IoTEventsData.js +11 -11
  20. package/dist-es/protocols/Aws_restJson1.js +11 -11
  21. package/dist-types/IoTEventsDataClient.d.ts +2 -2
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  23. package/dist-types/runtimeConfig.d.ts +1 -1
  24. package/dist-types/runtimeConfig.native.d.ts +3 -3
  25. package/dist-types/ts3.4/IoTEventsDataClient.d.ts +2 -2
  26. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  27. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  29. package/package.json +34 -34
@@ -23,7 +23,7 @@ var IoTEventsData = (function (_super) {
23
23
  }
24
24
  else if (typeof cb === "function") {
25
25
  if (typeof optionsOrCb !== "object")
26
- throw new Error("Expect http options but get " + typeof optionsOrCb);
26
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
27
27
  this.send(command, optionsOrCb || {}, cb);
28
28
  }
29
29
  else {
@@ -37,7 +37,7 @@ var IoTEventsData = (function (_super) {
37
37
  }
38
38
  else if (typeof cb === "function") {
39
39
  if (typeof optionsOrCb !== "object")
40
- throw new Error("Expect http options but get " + typeof optionsOrCb);
40
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
41
41
  this.send(command, optionsOrCb || {}, cb);
42
42
  }
43
43
  else {
@@ -51,7 +51,7 @@ var IoTEventsData = (function (_super) {
51
51
  }
52
52
  else if (typeof cb === "function") {
53
53
  if (typeof optionsOrCb !== "object")
54
- throw new Error("Expect http options but get " + typeof optionsOrCb);
54
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
55
55
  this.send(command, optionsOrCb || {}, cb);
56
56
  }
57
57
  else {
@@ -65,7 +65,7 @@ var IoTEventsData = (function (_super) {
65
65
  }
66
66
  else if (typeof cb === "function") {
67
67
  if (typeof optionsOrCb !== "object")
68
- throw new Error("Expect http options but get " + typeof optionsOrCb);
68
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
69
69
  this.send(command, optionsOrCb || {}, cb);
70
70
  }
71
71
  else {
@@ -79,7 +79,7 @@ var IoTEventsData = (function (_super) {
79
79
  }
80
80
  else if (typeof cb === "function") {
81
81
  if (typeof optionsOrCb !== "object")
82
- throw new Error("Expect http options but get " + typeof optionsOrCb);
82
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
83
83
  this.send(command, optionsOrCb || {}, cb);
84
84
  }
85
85
  else {
@@ -93,7 +93,7 @@ var IoTEventsData = (function (_super) {
93
93
  }
94
94
  else if (typeof cb === "function") {
95
95
  if (typeof optionsOrCb !== "object")
96
- throw new Error("Expect http options but get " + typeof optionsOrCb);
96
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
97
97
  this.send(command, optionsOrCb || {}, cb);
98
98
  }
99
99
  else {
@@ -107,7 +107,7 @@ var IoTEventsData = (function (_super) {
107
107
  }
108
108
  else if (typeof cb === "function") {
109
109
  if (typeof optionsOrCb !== "object")
110
- throw new Error("Expect http options but get " + typeof optionsOrCb);
110
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
111
111
  this.send(command, optionsOrCb || {}, cb);
112
112
  }
113
113
  else {
@@ -121,7 +121,7 @@ var IoTEventsData = (function (_super) {
121
121
  }
122
122
  else if (typeof cb === "function") {
123
123
  if (typeof optionsOrCb !== "object")
124
- throw new Error("Expect http options but get " + typeof optionsOrCb);
124
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
125
125
  this.send(command, optionsOrCb || {}, cb);
126
126
  }
127
127
  else {
@@ -135,7 +135,7 @@ var IoTEventsData = (function (_super) {
135
135
  }
136
136
  else if (typeof cb === "function") {
137
137
  if (typeof optionsOrCb !== "object")
138
- throw new Error("Expect http options but get " + typeof optionsOrCb);
138
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
139
139
  this.send(command, optionsOrCb || {}, cb);
140
140
  }
141
141
  else {
@@ -149,7 +149,7 @@ var IoTEventsData = (function (_super) {
149
149
  }
150
150
  else if (typeof cb === "function") {
151
151
  if (typeof optionsOrCb !== "object")
152
- throw new Error("Expect http options but get " + typeof optionsOrCb);
152
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
153
153
  this.send(command, optionsOrCb || {}, cb);
154
154
  }
155
155
  else {
@@ -163,7 +163,7 @@ var IoTEventsData = (function (_super) {
163
163
  }
164
164
  else if (typeof cb === "function") {
165
165
  if (typeof optionsOrCb !== "object")
166
- throw new Error("Expect http options but get " + typeof optionsOrCb);
166
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
167
167
  this.send(command, optionsOrCb || {}, cb);
168
168
  }
169
169
  else {
@@ -13,7 +13,7 @@ export var serializeAws_restJson1BatchAcknowledgeAlarmCommand = function (input,
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/acknowledge";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/acknowledge";
17
17
  body = JSON.stringify(__assign({}, (input.acknowledgeActionRequests !== undefined &&
18
18
  input.acknowledgeActionRequests !== null && {
19
19
  acknowledgeActionRequests: serializeAws_restJson1AcknowledgeAlarmActionRequests(input.acknowledgeActionRequests, context),
@@ -40,7 +40,7 @@ export var serializeAws_restJson1BatchDisableAlarmCommand = function (input, con
40
40
  headers = {
41
41
  "content-type": "application/json",
42
42
  };
43
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/disable";
43
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/disable";
44
44
  body = JSON.stringify(__assign({}, (input.disableActionRequests !== undefined &&
45
45
  input.disableActionRequests !== null && {
46
46
  disableActionRequests: serializeAws_restJson1DisableAlarmActionRequests(input.disableActionRequests, context),
@@ -67,7 +67,7 @@ export var serializeAws_restJson1BatchEnableAlarmCommand = function (input, cont
67
67
  headers = {
68
68
  "content-type": "application/json",
69
69
  };
70
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/enable";
70
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/enable";
71
71
  body = JSON.stringify(__assign({}, (input.enableActionRequests !== undefined &&
72
72
  input.enableActionRequests !== null && {
73
73
  enableActionRequests: serializeAws_restJson1EnableAlarmActionRequests(input.enableActionRequests, context),
@@ -94,7 +94,7 @@ export var serializeAws_restJson1BatchPutMessageCommand = function (input, conte
94
94
  headers = {
95
95
  "content-type": "application/json",
96
96
  };
97
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs/messages";
97
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/inputs/messages";
98
98
  body = JSON.stringify(__assign({}, (input.messages !== undefined &&
99
99
  input.messages !== null && { messages: serializeAws_restJson1Messages(input.messages, context) })));
100
100
  return [2, new __HttpRequest({
@@ -119,7 +119,7 @@ export var serializeAws_restJson1BatchResetAlarmCommand = function (input, conte
119
119
  headers = {
120
120
  "content-type": "application/json",
121
121
  };
122
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/reset";
122
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/reset";
123
123
  body = JSON.stringify(__assign({}, (input.resetActionRequests !== undefined &&
124
124
  input.resetActionRequests !== null && {
125
125
  resetActionRequests: serializeAws_restJson1ResetAlarmActionRequests(input.resetActionRequests, context),
@@ -146,7 +146,7 @@ export var serializeAws_restJson1BatchSnoozeAlarmCommand = function (input, cont
146
146
  headers = {
147
147
  "content-type": "application/json",
148
148
  };
149
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/snooze";
149
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/snooze";
150
150
  body = JSON.stringify(__assign({}, (input.snoozeActionRequests !== undefined &&
151
151
  input.snoozeActionRequests !== null && {
152
152
  snoozeActionRequests: serializeAws_restJson1SnoozeAlarmActionRequests(input.snoozeActionRequests, context),
@@ -173,7 +173,7 @@ export var serializeAws_restJson1BatchUpdateDetectorCommand = function (input, c
173
173
  headers = {
174
174
  "content-type": "application/json",
175
175
  };
176
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors";
176
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors";
177
177
  body = JSON.stringify(__assign({}, (input.detectors !== undefined &&
178
178
  input.detectors !== null && {
179
179
  detectors: serializeAws_restJson1UpdateDetectorRequests(input.detectors, context),
@@ -198,7 +198,7 @@ export var serializeAws_restJson1DescribeAlarmCommand = function (input, context
198
198
  case 1:
199
199
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
200
200
  headers = {};
201
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/{alarmModelName}/keyValues";
201
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/{alarmModelName}/keyValues";
202
202
  if (input.alarmModelName !== undefined) {
203
203
  labelValue = input.alarmModelName;
204
204
  if (labelValue.length <= 0) {
@@ -231,7 +231,7 @@ export var serializeAws_restJson1DescribeDetectorCommand = function (input, cont
231
231
  case 1:
232
232
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
233
233
  headers = {};
234
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors/{detectorModelName}/keyValues";
234
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors/{detectorModelName}/keyValues";
235
235
  if (input.detectorModelName !== undefined) {
236
236
  labelValue = input.detectorModelName;
237
237
  if (labelValue.length <= 0) {
@@ -264,7 +264,7 @@ export var serializeAws_restJson1ListAlarmsCommand = function (input, context) {
264
264
  case 1:
265
265
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
266
266
  headers = {};
267
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/{alarmModelName}";
267
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/alarms/{alarmModelName}";
268
268
  if (input.alarmModelName !== undefined) {
269
269
  labelValue = input.alarmModelName;
270
270
  if (labelValue.length <= 0) {
@@ -297,7 +297,7 @@ export var serializeAws_restJson1ListDetectorsCommand = function (input, context
297
297
  case 1:
298
298
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
299
299
  headers = {};
300
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors/{detectorModelName}";
300
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/detectors/{detectorModelName}";
301
301
  if (input.detectorModelName !== undefined) {
302
302
  labelValue = input.detectorModelName;
303
303
  if (labelValue.length <= 0) {
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchAcknowledgeAlarmCommandInput, BatchAcknowledgeAlarmCommandOutput } from "./commands/BatchAcknowledgeAlarmCommand";
10
10
  import { BatchDisableAlarmCommandInput, BatchDisableAlarmCommandOutput } from "./commands/BatchDisableAlarmCommand";
11
11
  import { BatchEnableAlarmCommandInput, BatchEnableAlarmCommandOutput } from "./commands/BatchEnableAlarmCommand";
@@ -39,7 +39,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
39
39
  * A function that can calculate the length of a request body.
40
40
  * @internal
41
41
  */
42
- bodyLengthChecker?: (body: any) => number | undefined;
42
+ bodyLengthChecker?: __BodyLengthCalculator;
43
43
  /**
44
44
  * A function that converts a stream into an array of bytes.
45
45
  * @internal
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IoTEventsDataClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IoTEventsDataClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IoTEventsDataClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: IoTEventsDataClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchAcknowledgeAlarmCommandInput, BatchAcknowledgeAlarmCommandOutput } from "./commands/BatchAcknowledgeAlarmCommand";
10
10
  import { BatchDisableAlarmCommandInput, BatchDisableAlarmCommandOutput } from "./commands/BatchDisableAlarmCommand";
11
11
  import { BatchEnableAlarmCommandInput, BatchEnableAlarmCommandOutput } from "./commands/BatchEnableAlarmCommand";
@@ -27,7 +27,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
27
27
 
28
28
  urlParser?: __UrlParser;
29
29
 
30
- bodyLengthChecker?: (body: any) => number | undefined;
30
+ bodyLengthChecker?: __BodyLengthCalculator;
31
31
 
32
32
  streamCollector?: __StreamCollector;
33
33
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: IoTEventsDataClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: IoTEventsDataClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: IoTEventsDataClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: IoTEventsDataClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
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.53.0",
4
+ "version": "3.55.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,47 +18,47 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.53.0",
22
- "@aws-sdk/config-resolver": "3.53.0",
23
- "@aws-sdk/credential-provider-node": "3.53.0",
24
- "@aws-sdk/fetch-http-handler": "3.53.0",
25
- "@aws-sdk/hash-node": "3.53.0",
26
- "@aws-sdk/invalid-dependency": "3.53.0",
27
- "@aws-sdk/middleware-content-length": "3.53.0",
28
- "@aws-sdk/middleware-host-header": "3.53.0",
29
- "@aws-sdk/middleware-logger": "3.53.0",
30
- "@aws-sdk/middleware-retry": "3.53.0",
31
- "@aws-sdk/middleware-serde": "3.53.0",
32
- "@aws-sdk/middleware-signing": "3.53.0",
33
- "@aws-sdk/middleware-stack": "3.53.0",
34
- "@aws-sdk/middleware-user-agent": "3.53.0",
35
- "@aws-sdk/node-config-provider": "3.53.0",
36
- "@aws-sdk/node-http-handler": "3.53.0",
37
- "@aws-sdk/protocol-http": "3.53.0",
38
- "@aws-sdk/smithy-client": "3.53.0",
39
- "@aws-sdk/types": "3.53.0",
40
- "@aws-sdk/url-parser": "3.53.0",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
- "@aws-sdk/util-user-agent-browser": "3.53.0",
48
- "@aws-sdk/util-user-agent-node": "3.53.0",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "tslib": "^2.3.0"
21
+ "@aws-sdk/client-sts": "3.55.0",
22
+ "@aws-sdk/config-resolver": "3.55.0",
23
+ "@aws-sdk/credential-provider-node": "3.55.0",
24
+ "@aws-sdk/fetch-http-handler": "3.55.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.55.0",
28
+ "@aws-sdk/middleware-host-header": "3.55.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.55.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.55.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.55.0",
35
+ "@aws-sdk/node-config-provider": "3.55.0",
36
+ "@aws-sdk/node-http-handler": "3.55.0",
37
+ "@aws-sdk/protocol-http": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.55.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.55.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.55.0",
48
+ "@aws-sdk/util-user-agent-node": "3.55.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "tslib": "^2.3.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",
58
58
  "downlevel-dts": "0.7.0",
59
59
  "rimraf": "3.0.2",
60
60
  "typedoc": "0.19.2",
61
- "typescript": "~4.3.5"
61
+ "typescript": "~4.6.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=12.0.0"