@aws-sdk/client-iot 3.477.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.
- package/dist-cjs/pagination/GetBehaviorModelTrainingSummariesPaginator.js +2 -24
- package/dist-cjs/pagination/ListActiveViolationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAttachedPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAuditFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAuditMitigationActionsExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAuditMitigationActionsTasksPaginator.js +2 -24
- package/dist-cjs/pagination/ListAuditSuppressionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAuditTasksPaginator.js +2 -24
- package/dist-cjs/pagination/ListAuthorizersPaginator.js +2 -24
- package/dist-cjs/pagination/ListBillingGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCACertificatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListCertificatesByCAPaginator.js +2 -24
- package/dist-cjs/pagination/ListCertificatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListCustomMetricsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDetectMitigationActionsExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDetectMitigationActionsTasksPaginator.js +2 -24
- package/dist-cjs/pagination/ListDimensionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDomainConfigurationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFleetMetricsPaginator.js +2 -24
- package/dist-cjs/pagination/ListIndicesPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobExecutionsForJobPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobExecutionsForThingPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobsPaginator.js +2 -24
- package/dist-cjs/pagination/ListManagedJobTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListMetricValuesPaginator.js +2 -24
- package/dist-cjs/pagination/ListMitigationActionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListOTAUpdatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListOutgoingCertificatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPackagesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPolicyPrincipalsPaginator.js +2 -24
- package/dist-cjs/pagination/ListPrincipalPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListPrincipalThingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListProvisioningTemplateVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListProvisioningTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListRelatedResourcesForAuditFindingPaginator.js +2 -24
- package/dist-cjs/pagination/ListRoleAliasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListScheduledAuditsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSecurityProfilesForTargetPaginator.js +2 -24
- package/dist-cjs/pagination/ListSecurityProfilesPaginator.js +2 -24
- package/dist-cjs/pagination/ListStreamsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -23
- package/dist-cjs/pagination/ListTargetsForPolicyPaginator.js +2 -24
- package/dist-cjs/pagination/ListTargetsForSecurityProfilePaginator.js +2 -24
- package/dist-cjs/pagination/ListThingGroupsForThingPaginator.js +2 -24
- package/dist-cjs/pagination/ListThingGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListThingPrincipalsPaginator.js +2 -24
- package/dist-cjs/pagination/ListThingRegistrationTaskReportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListThingRegistrationTasksPaginator.js +2 -24
- package/dist-cjs/pagination/ListThingTypesPaginator.js +2 -24
- package/dist-cjs/pagination/ListThingsInBillingGroupPaginator.js +2 -24
- package/dist-cjs/pagination/ListThingsInThingGroupPaginator.js +2 -24
- package/dist-cjs/pagination/ListThingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTopicRuleDestinationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListTopicRulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListV2LoggingLevelsPaginator.js +2 -24
- package/dist-cjs/pagination/ListViolationEventsPaginator.js +2 -24
- package/dist-es/pagination/GetBehaviorModelTrainingSummariesPaginator.js +2 -23
- package/dist-es/pagination/ListActiveViolationsPaginator.js +2 -23
- package/dist-es/pagination/ListAttachedPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListAuditFindingsPaginator.js +2 -23
- package/dist-es/pagination/ListAuditMitigationActionsExecutionsPaginator.js +2 -23
- package/dist-es/pagination/ListAuditMitigationActionsTasksPaginator.js +2 -23
- package/dist-es/pagination/ListAuditSuppressionsPaginator.js +2 -23
- package/dist-es/pagination/ListAuditTasksPaginator.js +2 -23
- package/dist-es/pagination/ListAuthorizersPaginator.js +2 -23
- package/dist-es/pagination/ListBillingGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListCACertificatesPaginator.js +2 -23
- package/dist-es/pagination/ListCertificatesByCAPaginator.js +2 -23
- package/dist-es/pagination/ListCertificatesPaginator.js +2 -23
- package/dist-es/pagination/ListCustomMetricsPaginator.js +2 -23
- package/dist-es/pagination/ListDetectMitigationActionsExecutionsPaginator.js +2 -23
- package/dist-es/pagination/ListDetectMitigationActionsTasksPaginator.js +2 -23
- package/dist-es/pagination/ListDimensionsPaginator.js +2 -23
- package/dist-es/pagination/ListDomainConfigurationsPaginator.js +2 -23
- package/dist-es/pagination/ListFleetMetricsPaginator.js +2 -23
- package/dist-es/pagination/ListIndicesPaginator.js +2 -23
- package/dist-es/pagination/ListJobExecutionsForJobPaginator.js +2 -23
- package/dist-es/pagination/ListJobExecutionsForThingPaginator.js +2 -23
- package/dist-es/pagination/ListJobTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListJobsPaginator.js +2 -23
- package/dist-es/pagination/ListManagedJobTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListMetricValuesPaginator.js +2 -23
- package/dist-es/pagination/ListMitigationActionsPaginator.js +2 -23
- package/dist-es/pagination/ListOTAUpdatesPaginator.js +2 -23
- package/dist-es/pagination/ListOutgoingCertificatesPaginator.js +2 -23
- package/dist-es/pagination/ListPackageVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListPackagesPaginator.js +2 -23
- package/dist-es/pagination/ListPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListPolicyPrincipalsPaginator.js +2 -23
- package/dist-es/pagination/ListPrincipalPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListPrincipalThingsPaginator.js +2 -23
- package/dist-es/pagination/ListProvisioningTemplateVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListProvisioningTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListRelatedResourcesForAuditFindingPaginator.js +2 -23
- package/dist-es/pagination/ListRoleAliasesPaginator.js +2 -23
- package/dist-es/pagination/ListScheduledAuditsPaginator.js +2 -23
- package/dist-es/pagination/ListSecurityProfilesForTargetPaginator.js +2 -23
- package/dist-es/pagination/ListSecurityProfilesPaginator.js +2 -23
- package/dist-es/pagination/ListStreamsPaginator.js +2 -23
- package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -22
- package/dist-es/pagination/ListTargetsForPolicyPaginator.js +2 -23
- package/dist-es/pagination/ListTargetsForSecurityProfilePaginator.js +2 -23
- package/dist-es/pagination/ListThingGroupsForThingPaginator.js +2 -23
- package/dist-es/pagination/ListThingGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListThingPrincipalsPaginator.js +2 -23
- package/dist-es/pagination/ListThingRegistrationTaskReportsPaginator.js +2 -23
- package/dist-es/pagination/ListThingRegistrationTasksPaginator.js +2 -23
- package/dist-es/pagination/ListThingTypesPaginator.js +2 -23
- package/dist-es/pagination/ListThingsInBillingGroupPaginator.js +2 -23
- package/dist-es/pagination/ListThingsInThingGroupPaginator.js +2 -23
- package/dist-es/pagination/ListThingsPaginator.js +2 -23
- package/dist-es/pagination/ListTopicRuleDestinationsPaginator.js +2 -23
- package/dist-es/pagination/ListTopicRulesPaginator.js +2 -23
- package/dist-es/pagination/ListV2LoggingLevelsPaginator.js +2 -23
- package/dist-es/pagination/ListViolationEventsPaginator.js +2 -23
- package/dist-types/pagination/GetBehaviorModelTrainingSummariesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListActiveViolationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAttachedPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAuditFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAuditMitigationActionsExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAuditMitigationActionsTasksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAuditSuppressionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAuditTasksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAuthorizersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBillingGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCACertificatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCertificatesByCAPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCertificatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCustomMetricsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDetectMitigationActionsExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDetectMitigationActionsTasksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDimensionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDomainConfigurationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFleetMetricsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIndicesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobExecutionsForJobPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobExecutionsForThingPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListManagedJobTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMetricValuesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMitigationActionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOTAUpdatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOutgoingCertificatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPackageVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPackagesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPolicyPrincipalsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPrincipalPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPrincipalThingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProvisioningTemplateVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProvisioningTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRelatedResourcesForAuditFindingPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRoleAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListScheduledAuditsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSecurityProfilesForTargetPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSecurityProfilesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStreamsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/dist-types/pagination/ListTargetsForPolicyPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTargetsForSecurityProfilePaginator.d.ts +1 -1
- package/dist-types/pagination/ListThingGroupsForThingPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThingGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThingPrincipalsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThingRegistrationTaskReportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThingRegistrationTasksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThingTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThingsInBillingGroupPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThingsInThingGroupPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTopicRuleDestinationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTopicRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListV2LoggingLevelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListViolationEventsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetBehaviorModelTrainingSummariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListActiveViolationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAttachedPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAuditFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAuditMitigationActionsExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAuditMitigationActionsTasksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAuditSuppressionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAuditTasksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAuthorizersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBillingGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCACertificatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCertificatesByCAPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCertificatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCustomMetricsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDetectMitigationActionsExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDetectMitigationActionsTasksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDimensionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDomainConfigurationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFleetMetricsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIndicesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobExecutionsForJobPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobExecutionsForThingPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListManagedJobTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMetricValuesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMitigationActionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOTAUpdatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOutgoingCertificatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPackageVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPackagesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPolicyPrincipalsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPrincipalPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPrincipalThingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProvisioningTemplateVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProvisioningTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRelatedResourcesForAuditFindingPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRoleAliasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListScheduledAuditsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSecurityProfilesForTargetPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSecurityProfilesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTargetsForPolicyPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTargetsForSecurityProfilePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThingGroupsForThingPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThingGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThingPrincipalsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThingRegistrationTaskReportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThingRegistrationTasksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThingTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThingsInBillingGroupPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThingsInThingGroupPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTopicRuleDestinationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTopicRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListV2LoggingLevelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListViolationEventsPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRoleAliases = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRoleAliasesCommand_1 = require("../commands/ListRoleAliasesCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRoleAliasesCommand_1.ListRoleAliasesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRoleAliases(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.marker = token;
|
|
15
|
-
input["pageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListRoleAliases = paginateListRoleAliases;
|
|
7
|
+
exports.paginateListRoleAliases = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListRoleAliasesCommand_1.ListRoleAliasesCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListScheduledAudits = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListScheduledAuditsCommand_1 = require("../commands/ListScheduledAuditsCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListScheduledAuditsCommand_1.ListScheduledAuditsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListScheduledAudits(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListScheduledAudits = paginateListScheduledAudits;
|
|
7
|
+
exports.paginateListScheduledAudits = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListScheduledAuditsCommand_1.ListScheduledAuditsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSecurityProfilesForTarget = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSecurityProfilesForTargetCommand_1 = require("../commands/ListSecurityProfilesForTargetCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSecurityProfilesForTargetCommand_1.ListSecurityProfilesForTargetCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSecurityProfilesForTarget(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListSecurityProfilesForTarget = paginateListSecurityProfilesForTarget;
|
|
7
|
+
exports.paginateListSecurityProfilesForTarget = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListSecurityProfilesForTargetCommand_1.ListSecurityProfilesForTargetCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSecurityProfiles = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSecurityProfilesCommand_1 = require("../commands/ListSecurityProfilesCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSecurityProfilesCommand_1.ListSecurityProfilesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSecurityProfiles(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListSecurityProfiles = paginateListSecurityProfiles;
|
|
7
|
+
exports.paginateListSecurityProfiles = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListSecurityProfilesCommand_1.ListSecurityProfilesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListStreams = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListStreamsCommand_1 = require("../commands/ListStreamsCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListStreamsCommand_1.ListStreamsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListStreams(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListStreams = paginateListStreams;
|
|
7
|
+
exports.paginateListStreams = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListStreamsCommand_1.ListStreamsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTagsForResource = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTagsForResource(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
if (config.client instanceof IoTClient_1.IoTClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.nextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListTagsForResource = paginateListTagsForResource;
|
|
7
|
+
exports.paginateListTagsForResource = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListTagsForResourceCommand_1.ListTagsForResourceCommand, "nextToken", "nextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTargetsForPolicy = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTargetsForPolicyCommand_1 = require("../commands/ListTargetsForPolicyCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTargetsForPolicyCommand_1.ListTargetsForPolicyCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTargetsForPolicy(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.marker = token;
|
|
15
|
-
input["pageSize"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListTargetsForPolicy = paginateListTargetsForPolicy;
|
|
7
|
+
exports.paginateListTargetsForPolicy = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListTargetsForPolicyCommand_1.ListTargetsForPolicyCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTargetsForSecurityProfile = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTargetsForSecurityProfileCommand_1 = require("../commands/ListTargetsForSecurityProfileCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTargetsForSecurityProfileCommand_1.ListTargetsForSecurityProfileCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTargetsForSecurityProfile(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListTargetsForSecurityProfile = paginateListTargetsForSecurityProfile;
|
|
7
|
+
exports.paginateListTargetsForSecurityProfile = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListTargetsForSecurityProfileCommand_1.ListTargetsForSecurityProfileCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThingGroupsForThing = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThingGroupsForThingCommand_1 = require("../commands/ListThingGroupsForThingCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThingGroupsForThingCommand_1.ListThingGroupsForThingCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThingGroupsForThing(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListThingGroupsForThing = paginateListThingGroupsForThing;
|
|
7
|
+
exports.paginateListThingGroupsForThing = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListThingGroupsForThingCommand_1.ListThingGroupsForThingCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThingGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThingGroupsCommand_1 = require("../commands/ListThingGroupsCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThingGroupsCommand_1.ListThingGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThingGroups(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListThingGroups = paginateListThingGroups;
|
|
7
|
+
exports.paginateListThingGroups = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListThingGroupsCommand_1.ListThingGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThingPrincipals = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThingPrincipalsCommand_1 = require("../commands/ListThingPrincipalsCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThingPrincipalsCommand_1.ListThingPrincipalsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThingPrincipals(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListThingPrincipals = paginateListThingPrincipals;
|
|
7
|
+
exports.paginateListThingPrincipals = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListThingPrincipalsCommand_1.ListThingPrincipalsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThingRegistrationTaskReports = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThingRegistrationTaskReportsCommand_1 = require("../commands/ListThingRegistrationTaskReportsCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThingRegistrationTaskReportsCommand_1.ListThingRegistrationTaskReportsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThingRegistrationTaskReports(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListThingRegistrationTaskReports = paginateListThingRegistrationTaskReports;
|
|
7
|
+
exports.paginateListThingRegistrationTaskReports = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListThingRegistrationTaskReportsCommand_1.ListThingRegistrationTaskReportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThingRegistrationTasks = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThingRegistrationTasksCommand_1 = require("../commands/ListThingRegistrationTasksCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThingRegistrationTasksCommand_1.ListThingRegistrationTasksCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThingRegistrationTasks(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListThingRegistrationTasks = paginateListThingRegistrationTasks;
|
|
7
|
+
exports.paginateListThingRegistrationTasks = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListThingRegistrationTasksCommand_1.ListThingRegistrationTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThingTypes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThingTypesCommand_1 = require("../commands/ListThingTypesCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThingTypesCommand_1.ListThingTypesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThingTypes(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListThingTypes = paginateListThingTypes;
|
|
7
|
+
exports.paginateListThingTypes = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListThingTypesCommand_1.ListThingTypesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThingsInBillingGroup = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThingsInBillingGroupCommand_1 = require("../commands/ListThingsInBillingGroupCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThingsInBillingGroupCommand_1.ListThingsInBillingGroupCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThingsInBillingGroup(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListThingsInBillingGroup = paginateListThingsInBillingGroup;
|
|
7
|
+
exports.paginateListThingsInBillingGroup = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListThingsInBillingGroupCommand_1.ListThingsInBillingGroupCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThingsInThingGroup = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThingsInThingGroupCommand_1 = require("../commands/ListThingsInThingGroupCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThingsInThingGroupCommand_1.ListThingsInThingGroupCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThingsInThingGroup(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListThingsInThingGroup = paginateListThingsInThingGroup;
|
|
7
|
+
exports.paginateListThingsInThingGroup = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListThingsInThingGroupCommand_1.ListThingsInThingGroupCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThings = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThingsCommand_1 = require("../commands/ListThingsCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThingsCommand_1.ListThingsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThings(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListThings = paginateListThings;
|
|
7
|
+
exports.paginateListThings = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListThingsCommand_1.ListThingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTopicRuleDestinations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTopicRuleDestinationsCommand_1 = require("../commands/ListTopicRuleDestinationsCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTopicRuleDestinationsCommand_1.ListTopicRuleDestinationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTopicRuleDestinations(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListTopicRuleDestinations = paginateListTopicRuleDestinations;
|
|
7
|
+
exports.paginateListTopicRuleDestinations = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListTopicRuleDestinationsCommand_1.ListTopicRuleDestinationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTopicRules = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTopicRulesCommand_1 = require("../commands/ListTopicRulesCommand");
|
|
5
6
|
const IoTClient_1 = require("../IoTClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTopicRulesCommand_1.ListTopicRulesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTopicRules(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 IoTClient_1.IoTClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
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.paginateListTopicRules = paginateListTopicRules;
|
|
7
|
+
exports.paginateListTopicRules = (0, core_1.createPaginator)(IoTClient_1.IoTClient, ListTopicRulesCommand_1.ListTopicRulesCommand, "nextToken", "nextToken", "maxResults");
|