@aws-sdk/client-iotdeviceadvisor 3.476.0 → 3.478.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.
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSuiteDefinitions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSuiteDefinitionsCommand_1 = require("../commands/ListSuiteDefinitionsCommand");
5
6
  const IotDeviceAdvisorClient_1 = require("../IotDeviceAdvisorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSuiteDefinitionsCommand_1.ListSuiteDefinitionsCommand(input), ...args);
8
- };
9
- async function* paginateListSuiteDefinitions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IotDeviceAdvisorClient_1.IotDeviceAdvisorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IotDeviceAdvisor | IotDeviceAdvisorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSuiteDefinitions = paginateListSuiteDefinitions;
7
+ exports.paginateListSuiteDefinitions = (0, core_1.createPaginator)(IotDeviceAdvisorClient_1.IotDeviceAdvisorClient, ListSuiteDefinitionsCommand_1.ListSuiteDefinitionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSuiteRuns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSuiteRunsCommand_1 = require("../commands/ListSuiteRunsCommand");
5
6
  const IotDeviceAdvisorClient_1 = require("../IotDeviceAdvisorClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSuiteRunsCommand_1.ListSuiteRunsCommand(input), ...args);
8
- };
9
- async function* paginateListSuiteRuns(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof IotDeviceAdvisorClient_1.IotDeviceAdvisorClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected IotDeviceAdvisor | IotDeviceAdvisorClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSuiteRuns = paginateListSuiteRuns;
7
+ exports.paginateListSuiteRuns = (0, core_1.createPaginator)(IotDeviceAdvisorClient_1.IotDeviceAdvisorClient, ListSuiteRunsCommand_1.ListSuiteRunsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,302 +1,195 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateSuiteDefinitionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopSuiteRunCommand = exports.de_StartSuiteRunCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSuiteRunsCommand = exports.de_ListSuiteDefinitionsCommand = exports.de_GetSuiteRunReportCommand = exports.de_GetSuiteRunCommand = exports.de_GetSuiteDefinitionCommand = exports.de_GetEndpointCommand = exports.de_DeleteSuiteDefinitionCommand = exports.de_CreateSuiteDefinitionCommand = exports.se_UpdateSuiteDefinitionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopSuiteRunCommand = exports.se_StartSuiteRunCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSuiteRunsCommand = exports.se_ListSuiteDefinitionsCommand = exports.se_GetSuiteRunReportCommand = exports.se_GetSuiteRunCommand = exports.se_GetSuiteDefinitionCommand = exports.se_GetEndpointCommand = exports.se_DeleteSuiteDefinitionCommand = exports.se_CreateSuiteDefinitionCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const IotDeviceAdvisorServiceException_1 = require("../models/IotDeviceAdvisorServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_CreateSuiteDefinitionCommand = async (input, context) => {
9
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
10
  const headers = {
11
11
  "content-type": "application/json",
12
12
  };
13
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
13
+ b.bp("/suiteDefinitions");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
16
  suiteDefinitionConfiguration: (_) => (0, smithy_client_1._json)(_),
17
17
  tags: (_) => (0, smithy_client_1._json)(_),
18
18
  }));
19
- return new protocol_http_1.HttpRequest({
20
- protocol,
21
- hostname,
22
- port,
23
- method: "POST",
24
- headers,
25
- path: resolvedPath,
26
- body,
27
- });
19
+ b.m("POST").h(headers).b(body);
20
+ return b.build();
28
21
  };
29
22
  exports.se_CreateSuiteDefinitionCommand = se_CreateSuiteDefinitionCommand;
30
23
  const se_DeleteSuiteDefinitionCommand = async (input, context) => {
31
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
24
+ const b = (0, core_1.requestBuilder)(input, context);
32
25
  const headers = {};
33
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
34
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
26
+ b.bp("/suiteDefinitions/{suiteDefinitionId}");
27
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
35
28
  let body;
36
- return new protocol_http_1.HttpRequest({
37
- protocol,
38
- hostname,
39
- port,
40
- method: "DELETE",
41
- headers,
42
- path: resolvedPath,
43
- body,
44
- });
29
+ b.m("DELETE").h(headers).b(body);
30
+ return b.build();
45
31
  };
46
32
  exports.se_DeleteSuiteDefinitionCommand = se_DeleteSuiteDefinitionCommand;
47
33
  const se_GetEndpointCommand = async (input, context) => {
48
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
34
+ const b = (0, core_1.requestBuilder)(input, context);
49
35
  const headers = {};
50
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoint";
36
+ b.bp("/endpoint");
51
37
  const query = (0, smithy_client_1.map)({
52
- thingArn: [, input.thingArn],
53
- certificateArn: [, input.certificateArn],
54
- deviceRoleArn: [, input.deviceRoleArn],
55
- authenticationMethod: [, input.authenticationMethod],
38
+ [_tA]: [, input[_tA]],
39
+ [_cA]: [, input[_cA]],
40
+ [_dRA]: [, input[_dRA]],
41
+ [_aM]: [, input[_aM]],
56
42
  });
57
43
  let body;
58
- return new protocol_http_1.HttpRequest({
59
- protocol,
60
- hostname,
61
- port,
62
- method: "GET",
63
- headers,
64
- path: resolvedPath,
65
- query,
66
- body,
67
- });
44
+ b.m("GET").h(headers).q(query).b(body);
45
+ return b.build();
68
46
  };
69
47
  exports.se_GetEndpointCommand = se_GetEndpointCommand;
70
48
  const se_GetSuiteDefinitionCommand = async (input, context) => {
71
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
49
+ const b = (0, core_1.requestBuilder)(input, context);
72
50
  const headers = {};
73
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
74
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
51
+ b.bp("/suiteDefinitions/{suiteDefinitionId}");
52
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
75
53
  const query = (0, smithy_client_1.map)({
76
- suiteDefinitionVersion: [, input.suiteDefinitionVersion],
54
+ [_sDV]: [, input[_sDV]],
77
55
  });
78
56
  let body;
79
- return new protocol_http_1.HttpRequest({
80
- protocol,
81
- hostname,
82
- port,
83
- method: "GET",
84
- headers,
85
- path: resolvedPath,
86
- query,
87
- body,
88
- });
57
+ b.m("GET").h(headers).q(query).b(body);
58
+ return b.build();
89
59
  };
90
60
  exports.se_GetSuiteDefinitionCommand = se_GetSuiteDefinitionCommand;
91
61
  const se_GetSuiteRunCommand = async (input, context) => {
92
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
62
+ const b = (0, core_1.requestBuilder)(input, context);
93
63
  const headers = {};
94
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
95
- "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}";
96
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
97
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
64
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}");
65
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
66
+ b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
98
67
  let body;
99
- return new protocol_http_1.HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "GET",
104
- headers,
105
- path: resolvedPath,
106
- body,
107
- });
68
+ b.m("GET").h(headers).b(body);
69
+ return b.build();
108
70
  };
109
71
  exports.se_GetSuiteRunCommand = se_GetSuiteRunCommand;
110
72
  const se_GetSuiteRunReportCommand = async (input, context) => {
111
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = (0, core_1.requestBuilder)(input, context);
112
74
  const headers = {};
113
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
114
- "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report";
115
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
116
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
75
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report");
76
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
77
+ b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
117
78
  let body;
118
- return new protocol_http_1.HttpRequest({
119
- protocol,
120
- hostname,
121
- port,
122
- method: "GET",
123
- headers,
124
- path: resolvedPath,
125
- body,
126
- });
79
+ b.m("GET").h(headers).b(body);
80
+ return b.build();
127
81
  };
128
82
  exports.se_GetSuiteRunReportCommand = se_GetSuiteRunReportCommand;
129
83
  const se_ListSuiteDefinitionsCommand = async (input, context) => {
130
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
84
+ const b = (0, core_1.requestBuilder)(input, context);
131
85
  const headers = {};
132
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
86
+ b.bp("/suiteDefinitions");
133
87
  const query = (0, smithy_client_1.map)({
134
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
135
- nextToken: [, input.nextToken],
88
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
89
+ [_nT]: [, input[_nT]],
136
90
  });
137
91
  let body;
138
- return new protocol_http_1.HttpRequest({
139
- protocol,
140
- hostname,
141
- port,
142
- method: "GET",
143
- headers,
144
- path: resolvedPath,
145
- query,
146
- body,
147
- });
92
+ b.m("GET").h(headers).q(query).b(body);
93
+ return b.build();
148
94
  };
149
95
  exports.se_ListSuiteDefinitionsCommand = se_ListSuiteDefinitionsCommand;
150
96
  const se_ListSuiteRunsCommand = async (input, context) => {
151
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
97
+ const b = (0, core_1.requestBuilder)(input, context);
152
98
  const headers = {};
153
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteRuns";
99
+ b.bp("/suiteRuns");
154
100
  const query = (0, smithy_client_1.map)({
155
- suiteDefinitionId: [, input.suiteDefinitionId],
156
- suiteDefinitionVersion: [, input.suiteDefinitionVersion],
157
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
158
- nextToken: [, input.nextToken],
101
+ [_sDI]: [, input[_sDI]],
102
+ [_sDV]: [, input[_sDV]],
103
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
104
+ [_nT]: [, input[_nT]],
159
105
  });
160
106
  let body;
161
- return new protocol_http_1.HttpRequest({
162
- protocol,
163
- hostname,
164
- port,
165
- method: "GET",
166
- headers,
167
- path: resolvedPath,
168
- query,
169
- body,
170
- });
107
+ b.m("GET").h(headers).q(query).b(body);
108
+ return b.build();
171
109
  };
172
110
  exports.se_ListSuiteRunsCommand = se_ListSuiteRunsCommand;
173
111
  const se_ListTagsForResourceCommand = async (input, context) => {
174
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
112
+ const b = (0, core_1.requestBuilder)(input, context);
175
113
  const headers = {};
176
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
177
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
114
+ b.bp("/tags/{resourceArn}");
115
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
178
116
  let body;
179
- return new protocol_http_1.HttpRequest({
180
- protocol,
181
- hostname,
182
- port,
183
- method: "GET",
184
- headers,
185
- path: resolvedPath,
186
- body,
187
- });
117
+ b.m("GET").h(headers).b(body);
118
+ return b.build();
188
119
  };
189
120
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
190
121
  const se_StartSuiteRunCommand = async (input, context) => {
191
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
122
+ const b = (0, core_1.requestBuilder)(input, context);
192
123
  const headers = {
193
124
  "content-type": "application/json",
194
125
  };
195
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
196
- "/suiteDefinitions/{suiteDefinitionId}/suiteRuns";
197
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
126
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns");
127
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
198
128
  let body;
199
129
  body = JSON.stringify((0, smithy_client_1.take)(input, {
200
130
  suiteDefinitionVersion: [],
201
131
  suiteRunConfiguration: (_) => (0, smithy_client_1._json)(_),
202
132
  tags: (_) => (0, smithy_client_1._json)(_),
203
133
  }));
204
- return new protocol_http_1.HttpRequest({
205
- protocol,
206
- hostname,
207
- port,
208
- method: "POST",
209
- headers,
210
- path: resolvedPath,
211
- body,
212
- });
134
+ b.m("POST").h(headers).b(body);
135
+ return b.build();
213
136
  };
214
137
  exports.se_StartSuiteRunCommand = se_StartSuiteRunCommand;
215
138
  const se_StopSuiteRunCommand = async (input, context) => {
216
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const b = (0, core_1.requestBuilder)(input, context);
217
140
  const headers = {};
218
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
219
- "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop";
220
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
221
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
141
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop");
142
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
143
+ b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
222
144
  let body;
223
- return new protocol_http_1.HttpRequest({
224
- protocol,
225
- hostname,
226
- port,
227
- method: "POST",
228
- headers,
229
- path: resolvedPath,
230
- body,
231
- });
145
+ b.m("POST").h(headers).b(body);
146
+ return b.build();
232
147
  };
233
148
  exports.se_StopSuiteRunCommand = se_StopSuiteRunCommand;
234
149
  const se_TagResourceCommand = async (input, context) => {
235
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
+ const b = (0, core_1.requestBuilder)(input, context);
236
151
  const headers = {
237
152
  "content-type": "application/json",
238
153
  };
239
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
240
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
154
+ b.bp("/tags/{resourceArn}");
155
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
241
156
  let body;
242
157
  body = JSON.stringify((0, smithy_client_1.take)(input, {
243
158
  tags: (_) => (0, smithy_client_1._json)(_),
244
159
  }));
245
- return new protocol_http_1.HttpRequest({
246
- protocol,
247
- hostname,
248
- port,
249
- method: "POST",
250
- headers,
251
- path: resolvedPath,
252
- body,
253
- });
160
+ b.m("POST").h(headers).b(body);
161
+ return b.build();
254
162
  };
255
163
  exports.se_TagResourceCommand = se_TagResourceCommand;
256
164
  const se_UntagResourceCommand = async (input, context) => {
257
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
165
+ const b = (0, core_1.requestBuilder)(input, context);
258
166
  const headers = {};
259
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
260
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
167
+ b.bp("/tags/{resourceArn}");
168
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
261
169
  const query = (0, smithy_client_1.map)({
262
- tagKeys: [
170
+ [_tK]: [
263
171
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
264
- () => (input.tagKeys || []).map((_entry) => _entry),
172
+ () => (input[_tK] || []).map((_entry) => _entry),
265
173
  ],
266
174
  });
267
175
  let body;
268
- return new protocol_http_1.HttpRequest({
269
- protocol,
270
- hostname,
271
- port,
272
- method: "DELETE",
273
- headers,
274
- path: resolvedPath,
275
- query,
276
- body,
277
- });
176
+ b.m("DELETE").h(headers).q(query).b(body);
177
+ return b.build();
278
178
  };
279
179
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
280
180
  const se_UpdateSuiteDefinitionCommand = async (input, context) => {
281
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
181
+ const b = (0, core_1.requestBuilder)(input, context);
282
182
  const headers = {
283
183
  "content-type": "application/json",
284
184
  };
285
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
286
- resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
185
+ b.bp("/suiteDefinitions/{suiteDefinitionId}");
186
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
287
187
  let body;
288
188
  body = JSON.stringify((0, smithy_client_1.take)(input, {
289
189
  suiteDefinitionConfiguration: (_) => (0, smithy_client_1._json)(_),
290
190
  }));
291
- return new protocol_http_1.HttpRequest({
292
- protocol,
293
- hostname,
294
- port,
295
- method: "PATCH",
296
- headers,
297
- path: resolvedPath,
298
- body,
299
- });
191
+ b.m("PATCH").h(headers).b(body);
192
+ return b.build();
300
193
  };
301
194
  exports.se_UpdateSuiteDefinitionCommand = se_UpdateSuiteDefinitionCommand;
302
195
  const de_CreateSuiteDefinitionCommand = async (output, context) => {
@@ -1006,6 +899,15 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1006
899
  value !== "" &&
1007
900
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1008
901
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
902
+ const _aM = "authenticationMethod";
903
+ const _cA = "certificateArn";
904
+ const _dRA = "deviceRoleArn";
905
+ const _mR = "maxResults";
906
+ const _nT = "nextToken";
907
+ const _sDI = "suiteDefinitionId";
908
+ const _sDV = "suiteDefinitionVersion";
909
+ const _tA = "thingArn";
910
+ const _tK = "tagKeys";
1009
911
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1010
912
  if (encoded.length) {
1011
913
  return JSON.parse(encoded);
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSuiteDefinitionsCommand, } from "../commands/ListSuiteDefinitionsCommand";
2
3
  import { IotDeviceAdvisorClient } from "../IotDeviceAdvisorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSuiteDefinitionsCommand(input), ...args);
5
- };
6
- export async function* paginateListSuiteDefinitions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof IotDeviceAdvisorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IotDeviceAdvisor | IotDeviceAdvisorClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSuiteDefinitions = createPaginator(IotDeviceAdvisorClient, ListSuiteDefinitionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSuiteRunsCommand, } from "../commands/ListSuiteRunsCommand";
2
3
  import { IotDeviceAdvisorClient } from "../IotDeviceAdvisorClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSuiteRunsCommand(input), ...args);
5
- };
6
- export async function* paginateListSuiteRuns(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof IotDeviceAdvisorClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected IotDeviceAdvisor | IotDeviceAdvisorClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSuiteRuns = createPaginator(IotDeviceAdvisorClient, ListSuiteRunsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,286 +1,179 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@smithy/smithy-client";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { IotDeviceAdvisorServiceException as __BaseException } from "../models/IotDeviceAdvisorServiceException";
4
4
  import { ConflictException, InternalServerException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
5
5
  export const se_CreateSuiteDefinitionCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
10
+ b.bp("/suiteDefinitions");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  suiteDefinitionConfiguration: (_) => _json(_),
14
14
  tags: (_) => _json(_),
15
15
  }));
16
- return new __HttpRequest({
17
- protocol,
18
- hostname,
19
- port,
20
- method: "POST",
21
- headers,
22
- path: resolvedPath,
23
- body,
24
- });
16
+ b.m("POST").h(headers).b(body);
17
+ return b.build();
25
18
  };
26
19
  export const se_DeleteSuiteDefinitionCommand = async (input, context) => {
27
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
20
+ const b = rb(input, context);
28
21
  const headers = {};
29
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
30
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
22
+ b.bp("/suiteDefinitions/{suiteDefinitionId}");
23
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
31
24
  let body;
32
- return new __HttpRequest({
33
- protocol,
34
- hostname,
35
- port,
36
- method: "DELETE",
37
- headers,
38
- path: resolvedPath,
39
- body,
40
- });
25
+ b.m("DELETE").h(headers).b(body);
26
+ return b.build();
41
27
  };
42
28
  export const se_GetEndpointCommand = async (input, context) => {
43
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
29
+ const b = rb(input, context);
44
30
  const headers = {};
45
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/endpoint";
31
+ b.bp("/endpoint");
46
32
  const query = map({
47
- thingArn: [, input.thingArn],
48
- certificateArn: [, input.certificateArn],
49
- deviceRoleArn: [, input.deviceRoleArn],
50
- authenticationMethod: [, input.authenticationMethod],
33
+ [_tA]: [, input[_tA]],
34
+ [_cA]: [, input[_cA]],
35
+ [_dRA]: [, input[_dRA]],
36
+ [_aM]: [, input[_aM]],
51
37
  });
52
38
  let body;
53
- return new __HttpRequest({
54
- protocol,
55
- hostname,
56
- port,
57
- method: "GET",
58
- headers,
59
- path: resolvedPath,
60
- query,
61
- body,
62
- });
39
+ b.m("GET").h(headers).q(query).b(body);
40
+ return b.build();
63
41
  };
64
42
  export const se_GetSuiteDefinitionCommand = async (input, context) => {
65
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
43
+ const b = rb(input, context);
66
44
  const headers = {};
67
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
68
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
45
+ b.bp("/suiteDefinitions/{suiteDefinitionId}");
46
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
69
47
  const query = map({
70
- suiteDefinitionVersion: [, input.suiteDefinitionVersion],
48
+ [_sDV]: [, input[_sDV]],
71
49
  });
72
50
  let body;
73
- return new __HttpRequest({
74
- protocol,
75
- hostname,
76
- port,
77
- method: "GET",
78
- headers,
79
- path: resolvedPath,
80
- query,
81
- body,
82
- });
51
+ b.m("GET").h(headers).q(query).b(body);
52
+ return b.build();
83
53
  };
84
54
  export const se_GetSuiteRunCommand = async (input, context) => {
85
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
55
+ const b = rb(input, context);
86
56
  const headers = {};
87
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
88
- "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}";
89
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
90
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
57
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}");
58
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
59
+ b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
91
60
  let body;
92
- return new __HttpRequest({
93
- protocol,
94
- hostname,
95
- port,
96
- method: "GET",
97
- headers,
98
- path: resolvedPath,
99
- body,
100
- });
61
+ b.m("GET").h(headers).b(body);
62
+ return b.build();
101
63
  };
102
64
  export const se_GetSuiteRunReportCommand = async (input, context) => {
103
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
65
+ const b = rb(input, context);
104
66
  const headers = {};
105
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
106
- "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report";
107
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
108
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
67
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/report");
68
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
69
+ b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
109
70
  let body;
110
- return new __HttpRequest({
111
- protocol,
112
- hostname,
113
- port,
114
- method: "GET",
115
- headers,
116
- path: resolvedPath,
117
- body,
118
- });
71
+ b.m("GET").h(headers).b(body);
72
+ return b.build();
119
73
  };
120
74
  export const se_ListSuiteDefinitionsCommand = async (input, context) => {
121
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
75
+ const b = rb(input, context);
122
76
  const headers = {};
123
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
77
+ b.bp("/suiteDefinitions");
124
78
  const query = map({
125
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
126
- nextToken: [, input.nextToken],
79
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
80
+ [_nT]: [, input[_nT]],
127
81
  });
128
82
  let body;
129
- return new __HttpRequest({
130
- protocol,
131
- hostname,
132
- port,
133
- method: "GET",
134
- headers,
135
- path: resolvedPath,
136
- query,
137
- body,
138
- });
83
+ b.m("GET").h(headers).q(query).b(body);
84
+ return b.build();
139
85
  };
140
86
  export const se_ListSuiteRunsCommand = async (input, context) => {
141
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
87
+ const b = rb(input, context);
142
88
  const headers = {};
143
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteRuns";
89
+ b.bp("/suiteRuns");
144
90
  const query = map({
145
- suiteDefinitionId: [, input.suiteDefinitionId],
146
- suiteDefinitionVersion: [, input.suiteDefinitionVersion],
147
- maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
148
- nextToken: [, input.nextToken],
91
+ [_sDI]: [, input[_sDI]],
92
+ [_sDV]: [, input[_sDV]],
93
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
94
+ [_nT]: [, input[_nT]],
149
95
  });
150
96
  let body;
151
- return new __HttpRequest({
152
- protocol,
153
- hostname,
154
- port,
155
- method: "GET",
156
- headers,
157
- path: resolvedPath,
158
- query,
159
- body,
160
- });
97
+ b.m("GET").h(headers).q(query).b(body);
98
+ return b.build();
161
99
  };
162
100
  export const se_ListTagsForResourceCommand = async (input, context) => {
163
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
101
+ const b = rb(input, context);
164
102
  const headers = {};
165
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
166
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
103
+ b.bp("/tags/{resourceArn}");
104
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
167
105
  let body;
168
- return new __HttpRequest({
169
- protocol,
170
- hostname,
171
- port,
172
- method: "GET",
173
- headers,
174
- path: resolvedPath,
175
- body,
176
- });
106
+ b.m("GET").h(headers).b(body);
107
+ return b.build();
177
108
  };
178
109
  export const se_StartSuiteRunCommand = async (input, context) => {
179
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
110
+ const b = rb(input, context);
180
111
  const headers = {
181
112
  "content-type": "application/json",
182
113
  };
183
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
184
- "/suiteDefinitions/{suiteDefinitionId}/suiteRuns";
185
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
114
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns");
115
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
186
116
  let body;
187
117
  body = JSON.stringify(take(input, {
188
118
  suiteDefinitionVersion: [],
189
119
  suiteRunConfiguration: (_) => _json(_),
190
120
  tags: (_) => _json(_),
191
121
  }));
192
- return new __HttpRequest({
193
- protocol,
194
- hostname,
195
- port,
196
- method: "POST",
197
- headers,
198
- path: resolvedPath,
199
- body,
200
- });
122
+ b.m("POST").h(headers).b(body);
123
+ return b.build();
201
124
  };
202
125
  export const se_StopSuiteRunCommand = async (input, context) => {
203
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
126
+ const b = rb(input, context);
204
127
  const headers = {};
205
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
206
- "/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop";
207
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
208
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
128
+ b.bp("/suiteDefinitions/{suiteDefinitionId}/suiteRuns/{suiteRunId}/stop");
129
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
130
+ b.p("suiteRunId", () => input.suiteRunId, "{suiteRunId}", false);
209
131
  let body;
210
- return new __HttpRequest({
211
- protocol,
212
- hostname,
213
- port,
214
- method: "POST",
215
- headers,
216
- path: resolvedPath,
217
- body,
218
- });
132
+ b.m("POST").h(headers).b(body);
133
+ return b.build();
219
134
  };
220
135
  export const se_TagResourceCommand = async (input, context) => {
221
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
136
+ const b = rb(input, context);
222
137
  const headers = {
223
138
  "content-type": "application/json",
224
139
  };
225
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
226
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
140
+ b.bp("/tags/{resourceArn}");
141
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
227
142
  let body;
228
143
  body = JSON.stringify(take(input, {
229
144
  tags: (_) => _json(_),
230
145
  }));
231
- return new __HttpRequest({
232
- protocol,
233
- hostname,
234
- port,
235
- method: "POST",
236
- headers,
237
- path: resolvedPath,
238
- body,
239
- });
146
+ b.m("POST").h(headers).b(body);
147
+ return b.build();
240
148
  };
241
149
  export const se_UntagResourceCommand = async (input, context) => {
242
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
150
+ const b = rb(input, context);
243
151
  const headers = {};
244
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
245
- resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
152
+ b.bp("/tags/{resourceArn}");
153
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
246
154
  const query = map({
247
- tagKeys: [
155
+ [_tK]: [
248
156
  __expectNonNull(input.tagKeys, `tagKeys`) != null,
249
- () => (input.tagKeys || []).map((_entry) => _entry),
157
+ () => (input[_tK] || []).map((_entry) => _entry),
250
158
  ],
251
159
  });
252
160
  let body;
253
- return new __HttpRequest({
254
- protocol,
255
- hostname,
256
- port,
257
- method: "DELETE",
258
- headers,
259
- path: resolvedPath,
260
- query,
261
- body,
262
- });
161
+ b.m("DELETE").h(headers).q(query).b(body);
162
+ return b.build();
263
163
  };
264
164
  export const se_UpdateSuiteDefinitionCommand = async (input, context) => {
265
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
165
+ const b = rb(input, context);
266
166
  const headers = {
267
167
  "content-type": "application/json",
268
168
  };
269
- let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions/{suiteDefinitionId}";
270
- resolvedPath = __resolvedPath(resolvedPath, input, "suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
169
+ b.bp("/suiteDefinitions/{suiteDefinitionId}");
170
+ b.p("suiteDefinitionId", () => input.suiteDefinitionId, "{suiteDefinitionId}", false);
271
171
  let body;
272
172
  body = JSON.stringify(take(input, {
273
173
  suiteDefinitionConfiguration: (_) => _json(_),
274
174
  }));
275
- return new __HttpRequest({
276
- protocol,
277
- hostname,
278
- port,
279
- method: "PATCH",
280
- headers,
281
- path: resolvedPath,
282
- body,
283
- });
175
+ b.m("PATCH").h(headers).b(body);
176
+ return b.build();
284
177
  };
285
178
  export const de_CreateSuiteDefinitionCommand = async (output, context) => {
286
179
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -975,6 +868,15 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
975
868
  value !== "" &&
976
869
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
977
870
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
871
+ const _aM = "authenticationMethod";
872
+ const _cA = "certificateArn";
873
+ const _dRA = "deviceRoleArn";
874
+ const _mR = "maxResults";
875
+ const _nT = "nextToken";
876
+ const _sDI = "suiteDefinitionId";
877
+ const _sDV = "suiteDefinitionVersion";
878
+ const _tA = "thingArn";
879
+ const _tK = "tagKeys";
978
880
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
979
881
  if (encoded.length) {
980
882
  return JSON.parse(encoded);
@@ -4,4 +4,4 @@ import { IotDeviceAdvisorPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSuiteDefinitions(config: IotDeviceAdvisorPaginationConfiguration, input: ListSuiteDefinitionsCommandInput, ...additionalArguments: any): Paginator<ListSuiteDefinitionsCommandOutput>;
7
+ export declare const paginateListSuiteDefinitions: (config: IotDeviceAdvisorPaginationConfiguration, input: ListSuiteDefinitionsCommandInput, ...rest: any[]) => Paginator<ListSuiteDefinitionsCommandOutput>;
@@ -4,4 +4,4 @@ import { IotDeviceAdvisorPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSuiteRuns(config: IotDeviceAdvisorPaginationConfiguration, input: ListSuiteRunsCommandInput, ...additionalArguments: any): Paginator<ListSuiteRunsCommandOutput>;
7
+ export declare const paginateListSuiteRuns: (config: IotDeviceAdvisorPaginationConfiguration, input: ListSuiteRunsCommandInput, ...rest: any[]) => Paginator<ListSuiteRunsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListSuiteDefinitionsCommandOutput,
5
5
  } from "../commands/ListSuiteDefinitionsCommand";
6
6
  import { IotDeviceAdvisorPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListSuiteDefinitions(
7
+ export declare const paginateListSuiteDefinitions: (
8
8
  config: IotDeviceAdvisorPaginationConfiguration,
9
9
  input: ListSuiteDefinitionsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListSuiteDefinitionsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListSuiteDefinitionsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListSuiteRunsCommandOutput,
5
5
  } from "../commands/ListSuiteRunsCommand";
6
6
  import { IotDeviceAdvisorPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListSuiteRuns(
7
+ export declare const paginateListSuiteRuns: (
8
8
  config: IotDeviceAdvisorPaginationConfiguration,
9
9
  input: ListSuiteRunsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListSuiteRunsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListSuiteRunsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iotdeviceadvisor",
3
3
  "description": "AWS SDK for JavaScript Iotdeviceadvisor Client for Node.js, Browser and React Native",
4
- "version": "3.476.0",
4
+ "version": "3.478.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",
@@ -20,20 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.476.0",
24
- "@aws-sdk/core": "3.476.0",
25
- "@aws-sdk/credential-provider-node": "3.476.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",