@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,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListFuotaTasks = void 0;
|
|
4
|
+
const ListFuotaTasksCommand_1 = require("../commands/ListFuotaTasksCommand");
|
|
5
|
+
const IoTWireless_1 = require("../IoTWireless");
|
|
6
|
+
const IoTWirelessClient_1 = require("../IoTWirelessClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListFuotaTasksCommand_1.ListFuotaTasksCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listFuotaTasks(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListFuotaTasks(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof IoTWireless_1.IoTWireless) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof IoTWirelessClient_1.IoTWirelessClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected IoTWireless | IoTWirelessClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListFuotaTasks = paginateListFuotaTasks;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListMulticastGroupsByFuotaTask = void 0;
|
|
4
|
+
const ListMulticastGroupsByFuotaTaskCommand_1 = require("../commands/ListMulticastGroupsByFuotaTaskCommand");
|
|
5
|
+
const IoTWireless_1 = require("../IoTWireless");
|
|
6
|
+
const IoTWirelessClient_1 = require("../IoTWirelessClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListMulticastGroupsByFuotaTaskCommand_1.ListMulticastGroupsByFuotaTaskCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listMulticastGroupsByFuotaTask(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListMulticastGroupsByFuotaTask(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof IoTWireless_1.IoTWireless) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof IoTWirelessClient_1.IoTWirelessClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected IoTWireless | IoTWirelessClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListMulticastGroupsByFuotaTask = paginateListMulticastGroupsByFuotaTask;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListMulticastGroups = void 0;
|
|
4
|
+
const ListMulticastGroupsCommand_1 = require("../commands/ListMulticastGroupsCommand");
|
|
5
|
+
const IoTWireless_1 = require("../IoTWireless");
|
|
6
|
+
const IoTWirelessClient_1 = require("../IoTWirelessClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListMulticastGroupsCommand_1.ListMulticastGroupsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listMulticastGroups(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListMulticastGroups(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof IoTWireless_1.IoTWireless) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof IoTWirelessClient_1.IoTWirelessClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected IoTWireless | IoTWirelessClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListMulticastGroups = paginateListMulticastGroups;
|
|
@@ -4,6 +4,9 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./ListDestinationsPaginator"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ListDeviceProfilesPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListFuotaTasksPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListMulticastGroupsByFuotaTaskPaginator"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListMulticastGroupsPaginator"), exports);
|
|
7
10
|
tslib_1.__exportStar(require("./ListServiceProfilesPaginator"), exports);
|
|
8
11
|
tslib_1.__exportStar(require("./ListWirelessDevicesPaginator"), exports);
|
|
9
12
|
tslib_1.__exportStar(require("./ListWirelessGatewaysPaginator"), exports);
|