@aws-sdk/client-iot-wireless 3.39.0 → 3.43.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 (217) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/IoTWireless.js +420 -0
  3. package/dist-cjs/commands/AssociateMulticastGroupWithFuotaTaskCommand.js +36 -0
  4. package/dist-cjs/commands/AssociateWirelessDeviceWithFuotaTaskCommand.js +36 -0
  5. package/dist-cjs/commands/AssociateWirelessDeviceWithMulticastGroupCommand.js +36 -0
  6. package/dist-cjs/commands/CancelMulticastGroupSessionCommand.js +36 -0
  7. package/dist-cjs/commands/CreateFuotaTaskCommand.js +36 -0
  8. package/dist-cjs/commands/CreateMulticastGroupCommand.js +36 -0
  9. package/dist-cjs/commands/DeleteFuotaTaskCommand.js +36 -0
  10. package/dist-cjs/commands/DeleteMulticastGroupCommand.js +36 -0
  11. package/dist-cjs/commands/DisassociateMulticastGroupFromFuotaTaskCommand.js +36 -0
  12. package/dist-cjs/commands/DisassociateWirelessDeviceFromFuotaTaskCommand.js +36 -0
  13. package/dist-cjs/commands/DisassociateWirelessDeviceFromMulticastGroupCommand.js +36 -0
  14. package/dist-cjs/commands/GetFuotaTaskCommand.js +36 -0
  15. package/dist-cjs/commands/GetMulticastGroupCommand.js +36 -0
  16. package/dist-cjs/commands/GetMulticastGroupSessionCommand.js +36 -0
  17. package/dist-cjs/commands/GetNetworkAnalyzerConfigurationCommand.js +36 -0
  18. package/dist-cjs/commands/GetResourceEventConfigurationCommand.js +36 -0
  19. package/dist-cjs/commands/ListFuotaTasksCommand.js +36 -0
  20. package/dist-cjs/commands/ListMulticastGroupsByFuotaTaskCommand.js +36 -0
  21. package/dist-cjs/commands/ListMulticastGroupsCommand.js +36 -0
  22. package/dist-cjs/commands/SendDataToMulticastGroupCommand.js +36 -0
  23. package/dist-cjs/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.js +36 -0
  24. package/dist-cjs/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.js +36 -0
  25. package/dist-cjs/commands/StartFuotaTaskCommand.js +36 -0
  26. package/dist-cjs/commands/StartMulticastGroupSessionCommand.js +36 -0
  27. package/dist-cjs/commands/UpdateFuotaTaskCommand.js +36 -0
  28. package/dist-cjs/commands/UpdateMulticastGroupCommand.js +36 -0
  29. package/dist-cjs/commands/UpdateNetworkAnalyzerConfigurationCommand.js +36 -0
  30. package/dist-cjs/commands/UpdateResourceEventConfigurationCommand.js +36 -0
  31. package/dist-cjs/commands/index.js +28 -0
  32. package/dist-cjs/endpoints.js +121 -6
  33. package/dist-cjs/models/models_0.js +490 -4
  34. package/dist-cjs/pagination/ListFuotaTasksPaginator.js +35 -0
  35. package/dist-cjs/pagination/ListMulticastGroupsByFuotaTaskPaginator.js +35 -0
  36. package/dist-cjs/pagination/ListMulticastGroupsPaginator.js +35 -0
  37. package/dist-cjs/pagination/index.js +3 -0
  38. package/dist-cjs/protocols/Aws_restJson1.js +4371 -896
  39. package/dist-cjs/runtimeConfig.browser.js +6 -3
  40. package/dist-cjs/runtimeConfig.js +5 -3
  41. package/dist-es/IoTWireless.js +420 -0
  42. package/dist-es/commands/AssociateMulticastGroupWithFuotaTaskCommand.js +39 -0
  43. package/dist-es/commands/AssociateWirelessDeviceWithFuotaTaskCommand.js +39 -0
  44. package/dist-es/commands/AssociateWirelessDeviceWithMulticastGroupCommand.js +39 -0
  45. package/dist-es/commands/CancelMulticastGroupSessionCommand.js +39 -0
  46. package/dist-es/commands/CreateFuotaTaskCommand.js +39 -0
  47. package/dist-es/commands/CreateMulticastGroupCommand.js +39 -0
  48. package/dist-es/commands/DeleteFuotaTaskCommand.js +39 -0
  49. package/dist-es/commands/DeleteMulticastGroupCommand.js +39 -0
  50. package/dist-es/commands/DisassociateMulticastGroupFromFuotaTaskCommand.js +39 -0
  51. package/dist-es/commands/DisassociateWirelessDeviceFromFuotaTaskCommand.js +39 -0
  52. package/dist-es/commands/DisassociateWirelessDeviceFromMulticastGroupCommand.js +39 -0
  53. package/dist-es/commands/GetFuotaTaskCommand.js +39 -0
  54. package/dist-es/commands/GetMulticastGroupCommand.js +39 -0
  55. package/dist-es/commands/GetMulticastGroupSessionCommand.js +39 -0
  56. package/dist-es/commands/GetNetworkAnalyzerConfigurationCommand.js +39 -0
  57. package/dist-es/commands/GetResourceEventConfigurationCommand.js +39 -0
  58. package/dist-es/commands/ListFuotaTasksCommand.js +39 -0
  59. package/dist-es/commands/ListMulticastGroupsByFuotaTaskCommand.js +39 -0
  60. package/dist-es/commands/ListMulticastGroupsCommand.js +39 -0
  61. package/dist-es/commands/SendDataToMulticastGroupCommand.js +39 -0
  62. package/dist-es/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.js +39 -0
  63. package/dist-es/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.js +39 -0
  64. package/dist-es/commands/StartFuotaTaskCommand.js +39 -0
  65. package/dist-es/commands/StartMulticastGroupSessionCommand.js +39 -0
  66. package/dist-es/commands/UpdateFuotaTaskCommand.js +39 -0
  67. package/dist-es/commands/UpdateMulticastGroupCommand.js +39 -0
  68. package/dist-es/commands/UpdateNetworkAnalyzerConfigurationCommand.js +39 -0
  69. package/dist-es/commands/UpdateResourceEventConfigurationCommand.js +39 -0
  70. package/dist-es/commands/index.js +28 -0
  71. package/dist-es/endpoints.js +121 -6
  72. package/dist-es/models/models_0.js +340 -0
  73. package/dist-es/pagination/ListFuotaTasksPaginator.js +74 -0
  74. package/dist-es/pagination/ListMulticastGroupsByFuotaTaskPaginator.js +74 -0
  75. package/dist-es/pagination/ListMulticastGroupsPaginator.js +74 -0
  76. package/dist-es/pagination/index.js +3 -0
  77. package/dist-es/protocols/Aws_restJson1.js +5730 -1858
  78. package/dist-es/runtimeConfig.browser.js +3 -2
  79. package/dist-es/runtimeConfig.js +3 -3
  80. package/dist-types/IoTWireless.d.ts +196 -0
  81. package/dist-types/IoTWirelessClient.d.ts +38 -2
  82. package/dist-types/commands/AssociateAwsAccountWithPartnerAccountCommand.d.ts +1 -1
  83. package/dist-types/commands/AssociateMulticastGroupWithFuotaTaskCommand.d.ts +35 -0
  84. package/dist-types/commands/AssociateWirelessDeviceWithFuotaTaskCommand.d.ts +35 -0
  85. package/dist-types/commands/AssociateWirelessDeviceWithMulticastGroupCommand.d.ts +35 -0
  86. package/dist-types/commands/AssociateWirelessDeviceWithThingCommand.d.ts +1 -1
  87. package/dist-types/commands/AssociateWirelessGatewayWithCertificateCommand.d.ts +1 -1
  88. package/dist-types/commands/AssociateWirelessGatewayWithThingCommand.d.ts +1 -1
  89. package/dist-types/commands/CancelMulticastGroupSessionCommand.d.ts +35 -0
  90. package/dist-types/commands/CreateDestinationCommand.d.ts +1 -1
  91. package/dist-types/commands/CreateDeviceProfileCommand.d.ts +1 -1
  92. package/dist-types/commands/CreateFuotaTaskCommand.d.ts +35 -0
  93. package/dist-types/commands/CreateMulticastGroupCommand.d.ts +35 -0
  94. package/dist-types/commands/CreateServiceProfileCommand.d.ts +1 -1
  95. package/dist-types/commands/CreateWirelessDeviceCommand.d.ts +1 -1
  96. package/dist-types/commands/CreateWirelessGatewayCommand.d.ts +1 -1
  97. package/dist-types/commands/CreateWirelessGatewayTaskCommand.d.ts +1 -1
  98. package/dist-types/commands/CreateWirelessGatewayTaskDefinitionCommand.d.ts +1 -1
  99. package/dist-types/commands/DeleteDestinationCommand.d.ts +1 -1
  100. package/dist-types/commands/DeleteDeviceProfileCommand.d.ts +1 -1
  101. package/dist-types/commands/DeleteFuotaTaskCommand.d.ts +35 -0
  102. package/dist-types/commands/DeleteMulticastGroupCommand.d.ts +35 -0
  103. package/dist-types/commands/DeleteServiceProfileCommand.d.ts +1 -1
  104. package/dist-types/commands/DeleteWirelessDeviceCommand.d.ts +1 -1
  105. package/dist-types/commands/DeleteWirelessGatewayCommand.d.ts +1 -1
  106. package/dist-types/commands/DeleteWirelessGatewayTaskCommand.d.ts +1 -1
  107. package/dist-types/commands/DeleteWirelessGatewayTaskDefinitionCommand.d.ts +1 -1
  108. package/dist-types/commands/DisassociateAwsAccountFromPartnerAccountCommand.d.ts +1 -1
  109. package/dist-types/commands/DisassociateMulticastGroupFromFuotaTaskCommand.d.ts +35 -0
  110. package/dist-types/commands/DisassociateWirelessDeviceFromFuotaTaskCommand.d.ts +35 -0
  111. package/dist-types/commands/DisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +35 -0
  112. package/dist-types/commands/DisassociateWirelessDeviceFromThingCommand.d.ts +1 -1
  113. package/dist-types/commands/DisassociateWirelessGatewayFromCertificateCommand.d.ts +1 -1
  114. package/dist-types/commands/DisassociateWirelessGatewayFromThingCommand.d.ts +1 -1
  115. package/dist-types/commands/GetDestinationCommand.d.ts +1 -1
  116. package/dist-types/commands/GetDeviceProfileCommand.d.ts +1 -1
  117. package/dist-types/commands/GetFuotaTaskCommand.d.ts +35 -0
  118. package/dist-types/commands/GetLogLevelsByResourceTypesCommand.d.ts +1 -1
  119. package/dist-types/commands/GetMulticastGroupCommand.d.ts +35 -0
  120. package/dist-types/commands/GetMulticastGroupSessionCommand.d.ts +35 -0
  121. package/dist-types/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +35 -0
  122. package/dist-types/commands/GetPartnerAccountCommand.d.ts +1 -1
  123. package/dist-types/commands/GetResourceEventConfigurationCommand.d.ts +35 -0
  124. package/dist-types/commands/GetResourceLogLevelCommand.d.ts +1 -1
  125. package/dist-types/commands/GetServiceEndpointCommand.d.ts +1 -1
  126. package/dist-types/commands/GetServiceProfileCommand.d.ts +1 -1
  127. package/dist-types/commands/GetWirelessDeviceCommand.d.ts +1 -1
  128. package/dist-types/commands/GetWirelessDeviceStatisticsCommand.d.ts +1 -1
  129. package/dist-types/commands/GetWirelessGatewayCertificateCommand.d.ts +1 -1
  130. package/dist-types/commands/GetWirelessGatewayCommand.d.ts +1 -1
  131. package/dist-types/commands/GetWirelessGatewayFirmwareInformationCommand.d.ts +1 -1
  132. package/dist-types/commands/GetWirelessGatewayStatisticsCommand.d.ts +1 -1
  133. package/dist-types/commands/GetWirelessGatewayTaskCommand.d.ts +1 -1
  134. package/dist-types/commands/GetWirelessGatewayTaskDefinitionCommand.d.ts +1 -1
  135. package/dist-types/commands/ListDestinationsCommand.d.ts +1 -1
  136. package/dist-types/commands/ListDeviceProfilesCommand.d.ts +1 -1
  137. package/dist-types/commands/ListFuotaTasksCommand.d.ts +35 -0
  138. package/dist-types/commands/ListMulticastGroupsByFuotaTaskCommand.d.ts +35 -0
  139. package/dist-types/commands/ListMulticastGroupsCommand.d.ts +35 -0
  140. package/dist-types/commands/ListPartnerAccountsCommand.d.ts +1 -1
  141. package/dist-types/commands/ListServiceProfilesCommand.d.ts +1 -1
  142. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  143. package/dist-types/commands/ListWirelessDevicesCommand.d.ts +1 -1
  144. package/dist-types/commands/ListWirelessGatewayTaskDefinitionsCommand.d.ts +1 -1
  145. package/dist-types/commands/ListWirelessGatewaysCommand.d.ts +1 -1
  146. package/dist-types/commands/PutResourceLogLevelCommand.d.ts +1 -1
  147. package/dist-types/commands/ResetAllResourceLogLevelsCommand.d.ts +1 -1
  148. package/dist-types/commands/ResetResourceLogLevelCommand.d.ts +1 -1
  149. package/dist-types/commands/SendDataToMulticastGroupCommand.d.ts +35 -0
  150. package/dist-types/commands/SendDataToWirelessDeviceCommand.d.ts +1 -1
  151. package/dist-types/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.d.ts +35 -0
  152. package/dist-types/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +35 -0
  153. package/dist-types/commands/StartFuotaTaskCommand.d.ts +35 -0
  154. package/dist-types/commands/StartMulticastGroupSessionCommand.d.ts +35 -0
  155. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  156. package/dist-types/commands/TestWirelessDeviceCommand.d.ts +1 -1
  157. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  158. package/dist-types/commands/UpdateDestinationCommand.d.ts +1 -1
  159. package/dist-types/commands/UpdateFuotaTaskCommand.d.ts +35 -0
  160. package/dist-types/commands/UpdateLogLevelsByResourceTypesCommand.d.ts +1 -1
  161. package/dist-types/commands/UpdateMulticastGroupCommand.d.ts +35 -0
  162. package/dist-types/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +35 -0
  163. package/dist-types/commands/UpdatePartnerAccountCommand.d.ts +1 -1
  164. package/dist-types/commands/UpdateResourceEventConfigurationCommand.d.ts +35 -0
  165. package/dist-types/commands/UpdateWirelessDeviceCommand.d.ts +1 -1
  166. package/dist-types/commands/UpdateWirelessGatewayCommand.d.ts +1 -1
  167. package/dist-types/commands/index.d.ts +28 -0
  168. package/dist-types/models/models_0.d.ts +1307 -51
  169. package/dist-types/pagination/ListFuotaTasksPaginator.d.ts +4 -0
  170. package/dist-types/pagination/ListMulticastGroupsByFuotaTaskPaginator.d.ts +4 -0
  171. package/dist-types/pagination/ListMulticastGroupsPaginator.d.ts +4 -0
  172. package/dist-types/pagination/index.d.ts +3 -0
  173. package/dist-types/protocols/Aws_restJson1.d.ts +84 -0
  174. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  175. package/dist-types/runtimeConfig.d.ts +2 -0
  176. package/dist-types/runtimeConfig.native.d.ts +2 -0
  177. package/dist-types/ts3.4/IoTWireless.d.ts +140 -0
  178. package/dist-types/ts3.4/IoTWirelessClient.d.ts +34 -2
  179. package/dist-types/ts3.4/commands/AssociateMulticastGroupWithFuotaTaskCommand.d.ts +17 -0
  180. package/dist-types/ts3.4/commands/AssociateWirelessDeviceWithFuotaTaskCommand.d.ts +17 -0
  181. package/dist-types/ts3.4/commands/AssociateWirelessDeviceWithMulticastGroupCommand.d.ts +17 -0
  182. package/dist-types/ts3.4/commands/CancelMulticastGroupSessionCommand.d.ts +17 -0
  183. package/dist-types/ts3.4/commands/CreateFuotaTaskCommand.d.ts +17 -0
  184. package/dist-types/ts3.4/commands/CreateMulticastGroupCommand.d.ts +17 -0
  185. package/dist-types/ts3.4/commands/DeleteFuotaTaskCommand.d.ts +17 -0
  186. package/dist-types/ts3.4/commands/DeleteMulticastGroupCommand.d.ts +17 -0
  187. package/dist-types/ts3.4/commands/DisassociateMulticastGroupFromFuotaTaskCommand.d.ts +17 -0
  188. package/dist-types/ts3.4/commands/DisassociateWirelessDeviceFromFuotaTaskCommand.d.ts +17 -0
  189. package/dist-types/ts3.4/commands/DisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +17 -0
  190. package/dist-types/ts3.4/commands/GetFuotaTaskCommand.d.ts +17 -0
  191. package/dist-types/ts3.4/commands/GetMulticastGroupCommand.d.ts +17 -0
  192. package/dist-types/ts3.4/commands/GetMulticastGroupSessionCommand.d.ts +17 -0
  193. package/dist-types/ts3.4/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +17 -0
  194. package/dist-types/ts3.4/commands/GetResourceEventConfigurationCommand.d.ts +17 -0
  195. package/dist-types/ts3.4/commands/ListFuotaTasksCommand.d.ts +17 -0
  196. package/dist-types/ts3.4/commands/ListMulticastGroupsByFuotaTaskCommand.d.ts +17 -0
  197. package/dist-types/ts3.4/commands/ListMulticastGroupsCommand.d.ts +17 -0
  198. package/dist-types/ts3.4/commands/SendDataToMulticastGroupCommand.d.ts +17 -0
  199. package/dist-types/ts3.4/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.d.ts +17 -0
  200. package/dist-types/ts3.4/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +17 -0
  201. package/dist-types/ts3.4/commands/StartFuotaTaskCommand.d.ts +17 -0
  202. package/dist-types/ts3.4/commands/StartMulticastGroupSessionCommand.d.ts +17 -0
  203. package/dist-types/ts3.4/commands/UpdateFuotaTaskCommand.d.ts +17 -0
  204. package/dist-types/ts3.4/commands/UpdateMulticastGroupCommand.d.ts +17 -0
  205. package/dist-types/ts3.4/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +17 -0
  206. package/dist-types/ts3.4/commands/UpdateResourceEventConfigurationCommand.d.ts +17 -0
  207. package/dist-types/ts3.4/commands/index.d.ts +28 -0
  208. package/dist-types/ts3.4/models/models_0.d.ts +784 -0
  209. package/dist-types/ts3.4/pagination/ListFuotaTasksPaginator.d.ts +4 -0
  210. package/dist-types/ts3.4/pagination/ListMulticastGroupsByFuotaTaskPaginator.d.ts +4 -0
  211. package/dist-types/ts3.4/pagination/ListMulticastGroupsPaginator.d.ts +4 -0
  212. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  213. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
  214. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  215. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  216. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  217. package/package.json +23 -23
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListFuotaTasksCommand, } from "../commands/ListFuotaTasksCommand";
3
+ import { IoTWireless } from "../IoTWireless";
4
+ import { IoTWirelessClient } from "../IoTWirelessClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListFuotaTasksCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listFuotaTasks.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListFuotaTasks(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListFuotaTasks_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof IoTWireless)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof IoTWirelessClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected IoTWireless | IoTWirelessClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListMulticastGroupsByFuotaTaskCommand, } from "../commands/ListMulticastGroupsByFuotaTaskCommand";
3
+ import { IoTWireless } from "../IoTWireless";
4
+ import { IoTWirelessClient } from "../IoTWirelessClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListMulticastGroupsByFuotaTaskCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listMulticastGroupsByFuotaTask.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListMulticastGroupsByFuotaTask(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListMulticastGroupsByFuotaTask_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof IoTWireless)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof IoTWirelessClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected IoTWireless | IoTWirelessClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { ListMulticastGroupsCommand, } from "../commands/ListMulticastGroupsCommand";
3
+ import { IoTWireless } from "../IoTWireless";
4
+ import { IoTWirelessClient } from "../IoTWirelessClient";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListMulticastGroupsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.listMulticastGroups.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateListMulticastGroups(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateListMulticastGroups_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.NextToken = token;
49
+ input["MaxResults"] = config.pageSize;
50
+ if (!(config.client instanceof IoTWireless)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof IoTWirelessClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected IoTWireless | IoTWirelessClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.NextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -1,6 +1,9 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListDestinationsPaginator";
3
3
  export * from "./ListDeviceProfilesPaginator";
4
+ export * from "./ListFuotaTasksPaginator";
5
+ export * from "./ListMulticastGroupsByFuotaTaskPaginator";
6
+ export * from "./ListMulticastGroupsPaginator";
4
7
  export * from "./ListServiceProfilesPaginator";
5
8
  export * from "./ListWirelessDevicesPaginator";
6
9
  export * from "./ListWirelessGatewaysPaginator";