@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.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/IoTWireless.js +420 -0
- package/dist-cjs/commands/AssociateMulticastGroupWithFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/AssociateWirelessDeviceWithFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/AssociateWirelessDeviceWithMulticastGroupCommand.js +36 -0
- package/dist-cjs/commands/CancelMulticastGroupSessionCommand.js +36 -0
- package/dist-cjs/commands/CreateFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/CreateMulticastGroupCommand.js +36 -0
- package/dist-cjs/commands/DeleteFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/DeleteMulticastGroupCommand.js +36 -0
- package/dist-cjs/commands/DisassociateMulticastGroupFromFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/DisassociateWirelessDeviceFromFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/DisassociateWirelessDeviceFromMulticastGroupCommand.js +36 -0
- package/dist-cjs/commands/GetFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/GetMulticastGroupCommand.js +36 -0
- package/dist-cjs/commands/GetMulticastGroupSessionCommand.js +36 -0
- package/dist-cjs/commands/GetNetworkAnalyzerConfigurationCommand.js +36 -0
- package/dist-cjs/commands/GetResourceEventConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListFuotaTasksCommand.js +36 -0
- package/dist-cjs/commands/ListMulticastGroupsByFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/ListMulticastGroupsCommand.js +36 -0
- package/dist-cjs/commands/SendDataToMulticastGroupCommand.js +36 -0
- package/dist-cjs/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.js +36 -0
- package/dist-cjs/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.js +36 -0
- package/dist-cjs/commands/StartFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/StartMulticastGroupSessionCommand.js +36 -0
- package/dist-cjs/commands/UpdateFuotaTaskCommand.js +36 -0
- package/dist-cjs/commands/UpdateMulticastGroupCommand.js +36 -0
- package/dist-cjs/commands/UpdateNetworkAnalyzerConfigurationCommand.js +36 -0
- package/dist-cjs/commands/UpdateResourceEventConfigurationCommand.js +36 -0
- package/dist-cjs/commands/index.js +28 -0
- package/dist-cjs/endpoints.js +121 -6
- package/dist-cjs/models/models_0.js +490 -4
- package/dist-cjs/pagination/ListFuotaTasksPaginator.js +35 -0
- package/dist-cjs/pagination/ListMulticastGroupsByFuotaTaskPaginator.js +35 -0
- package/dist-cjs/pagination/ListMulticastGroupsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +4371 -896
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/IoTWireless.js +420 -0
- package/dist-es/commands/AssociateMulticastGroupWithFuotaTaskCommand.js +39 -0
- package/dist-es/commands/AssociateWirelessDeviceWithFuotaTaskCommand.js +39 -0
- package/dist-es/commands/AssociateWirelessDeviceWithMulticastGroupCommand.js +39 -0
- package/dist-es/commands/CancelMulticastGroupSessionCommand.js +39 -0
- package/dist-es/commands/CreateFuotaTaskCommand.js +39 -0
- package/dist-es/commands/CreateMulticastGroupCommand.js +39 -0
- package/dist-es/commands/DeleteFuotaTaskCommand.js +39 -0
- package/dist-es/commands/DeleteMulticastGroupCommand.js +39 -0
- package/dist-es/commands/DisassociateMulticastGroupFromFuotaTaskCommand.js +39 -0
- package/dist-es/commands/DisassociateWirelessDeviceFromFuotaTaskCommand.js +39 -0
- package/dist-es/commands/DisassociateWirelessDeviceFromMulticastGroupCommand.js +39 -0
- package/dist-es/commands/GetFuotaTaskCommand.js +39 -0
- package/dist-es/commands/GetMulticastGroupCommand.js +39 -0
- package/dist-es/commands/GetMulticastGroupSessionCommand.js +39 -0
- package/dist-es/commands/GetNetworkAnalyzerConfigurationCommand.js +39 -0
- package/dist-es/commands/GetResourceEventConfigurationCommand.js +39 -0
- package/dist-es/commands/ListFuotaTasksCommand.js +39 -0
- package/dist-es/commands/ListMulticastGroupsByFuotaTaskCommand.js +39 -0
- package/dist-es/commands/ListMulticastGroupsCommand.js +39 -0
- package/dist-es/commands/SendDataToMulticastGroupCommand.js +39 -0
- package/dist-es/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.js +39 -0
- package/dist-es/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.js +39 -0
- package/dist-es/commands/StartFuotaTaskCommand.js +39 -0
- package/dist-es/commands/StartMulticastGroupSessionCommand.js +39 -0
- package/dist-es/commands/UpdateFuotaTaskCommand.js +39 -0
- package/dist-es/commands/UpdateMulticastGroupCommand.js +39 -0
- package/dist-es/commands/UpdateNetworkAnalyzerConfigurationCommand.js +39 -0
- package/dist-es/commands/UpdateResourceEventConfigurationCommand.js +39 -0
- package/dist-es/commands/index.js +28 -0
- package/dist-es/endpoints.js +121 -6
- package/dist-es/models/models_0.js +340 -0
- package/dist-es/pagination/ListFuotaTasksPaginator.js +74 -0
- package/dist-es/pagination/ListMulticastGroupsByFuotaTaskPaginator.js +74 -0
- package/dist-es/pagination/ListMulticastGroupsPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +5730 -1858
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/IoTWireless.d.ts +196 -0
- package/dist-types/IoTWirelessClient.d.ts +38 -2
- package/dist-types/commands/AssociateAwsAccountWithPartnerAccountCommand.d.ts +1 -1
- package/dist-types/commands/AssociateMulticastGroupWithFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/AssociateWirelessDeviceWithFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/AssociateWirelessDeviceWithMulticastGroupCommand.d.ts +35 -0
- package/dist-types/commands/AssociateWirelessDeviceWithThingCommand.d.ts +1 -1
- package/dist-types/commands/AssociateWirelessGatewayWithCertificateCommand.d.ts +1 -1
- package/dist-types/commands/AssociateWirelessGatewayWithThingCommand.d.ts +1 -1
- package/dist-types/commands/CancelMulticastGroupSessionCommand.d.ts +35 -0
- package/dist-types/commands/CreateDestinationCommand.d.ts +1 -1
- package/dist-types/commands/CreateDeviceProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/CreateMulticastGroupCommand.d.ts +35 -0
- package/dist-types/commands/CreateServiceProfileCommand.d.ts +1 -1
- package/dist-types/commands/CreateWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/CreateWirelessGatewayCommand.d.ts +1 -1
- package/dist-types/commands/CreateWirelessGatewayTaskCommand.d.ts +1 -1
- package/dist-types/commands/CreateWirelessGatewayTaskDefinitionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDestinationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDeviceProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/DeleteMulticastGroupCommand.d.ts +35 -0
- package/dist-types/commands/DeleteServiceProfileCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWirelessGatewayCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWirelessGatewayTaskCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWirelessGatewayTaskDefinitionCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateAwsAccountFromPartnerAccountCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateMulticastGroupFromFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateWirelessDeviceFromFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateWirelessDeviceFromThingCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateWirelessGatewayFromCertificateCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateWirelessGatewayFromThingCommand.d.ts +1 -1
- package/dist-types/commands/GetDestinationCommand.d.ts +1 -1
- package/dist-types/commands/GetDeviceProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/GetLogLevelsByResourceTypesCommand.d.ts +1 -1
- package/dist-types/commands/GetMulticastGroupCommand.d.ts +35 -0
- package/dist-types/commands/GetMulticastGroupSessionCommand.d.ts +35 -0
- package/dist-types/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/GetPartnerAccountCommand.d.ts +1 -1
- package/dist-types/commands/GetResourceEventConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/GetResourceLogLevelCommand.d.ts +1 -1
- package/dist-types/commands/GetServiceEndpointCommand.d.ts +1 -1
- package/dist-types/commands/GetServiceProfileCommand.d.ts +1 -1
- package/dist-types/commands/GetWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/GetWirelessDeviceStatisticsCommand.d.ts +1 -1
- package/dist-types/commands/GetWirelessGatewayCertificateCommand.d.ts +1 -1
- package/dist-types/commands/GetWirelessGatewayCommand.d.ts +1 -1
- package/dist-types/commands/GetWirelessGatewayFirmwareInformationCommand.d.ts +1 -1
- package/dist-types/commands/GetWirelessGatewayStatisticsCommand.d.ts +1 -1
- package/dist-types/commands/GetWirelessGatewayTaskCommand.d.ts +1 -1
- package/dist-types/commands/GetWirelessGatewayTaskDefinitionCommand.d.ts +1 -1
- package/dist-types/commands/ListDestinationsCommand.d.ts +1 -1
- package/dist-types/commands/ListDeviceProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListFuotaTasksCommand.d.ts +35 -0
- package/dist-types/commands/ListMulticastGroupsByFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/ListMulticastGroupsCommand.d.ts +35 -0
- package/dist-types/commands/ListPartnerAccountsCommand.d.ts +1 -1
- package/dist-types/commands/ListServiceProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/ListWirelessDevicesCommand.d.ts +1 -1
- package/dist-types/commands/ListWirelessGatewayTaskDefinitionsCommand.d.ts +1 -1
- package/dist-types/commands/ListWirelessGatewaysCommand.d.ts +1 -1
- package/dist-types/commands/PutResourceLogLevelCommand.d.ts +1 -1
- package/dist-types/commands/ResetAllResourceLogLevelsCommand.d.ts +1 -1
- package/dist-types/commands/ResetResourceLogLevelCommand.d.ts +1 -1
- package/dist-types/commands/SendDataToMulticastGroupCommand.d.ts +35 -0
- package/dist-types/commands/SendDataToWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.d.ts +35 -0
- package/dist-types/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +35 -0
- package/dist-types/commands/StartFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/StartMulticastGroupSessionCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/TestWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDestinationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFuotaTaskCommand.d.ts +35 -0
- package/dist-types/commands/UpdateLogLevelsByResourceTypesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMulticastGroupCommand.d.ts +35 -0
- package/dist-types/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/UpdatePartnerAccountCommand.d.ts +1 -1
- package/dist-types/commands/UpdateResourceEventConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateWirelessDeviceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWirelessGatewayCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +28 -0
- package/dist-types/models/models_0.d.ts +1307 -51
- package/dist-types/pagination/ListFuotaTasksPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMulticastGroupsByFuotaTaskPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMulticastGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +84 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/IoTWireless.d.ts +140 -0
- package/dist-types/ts3.4/IoTWirelessClient.d.ts +34 -2
- package/dist-types/ts3.4/commands/AssociateMulticastGroupWithFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociateWirelessDeviceWithFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociateWirelessDeviceWithMulticastGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CancelMulticastGroupSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateMulticastGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMulticastGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateMulticastGroupFromFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateWirelessDeviceFromFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetMulticastGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetMulticastGroupSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetNetworkAnalyzerConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetResourceEventConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFuotaTasksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMulticastGroupsByFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMulticastGroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/SendDataToMulticastGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartBulkAssociateWirelessDeviceWithMulticastGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartBulkDisassociateWirelessDeviceFromMulticastGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartMulticastGroupSessionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateFuotaTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateMulticastGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateNetworkAnalyzerConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateResourceEventConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +28 -0
- package/dist-types/ts3.4/models/models_0.d.ts +784 -0
- package/dist-types/ts3.4/pagination/ListFuotaTasksPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListMulticastGroupsByFuotaTaskPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListMulticastGroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- 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";
|