@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,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListJobExecutionsForJobCommand, } from "../commands/ListJobExecutionsForJobCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListJobExecutionsForJobCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListJobExecutionsForJob(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListJobExecutionsForJob = createPaginator(IoTClient, ListJobExecutionsForJobCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListJobExecutionsForThingCommand, } from "../commands/ListJobExecutionsForThingCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListJobExecutionsForThingCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListJobExecutionsForThing(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListJobExecutionsForThing = createPaginator(IoTClient, ListJobExecutionsForThingCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListJobTemplatesCommand, } from "../commands/ListJobTemplatesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListJobTemplatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListJobTemplates(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListJobTemplates = createPaginator(IoTClient, ListJobTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListJobsCommand } from "../commands/ListJobsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListJobsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListJobs(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListJobs = createPaginator(IoTClient, ListJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListManagedJobTemplatesCommand, } from "../commands/ListManagedJobTemplatesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListManagedJobTemplatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListManagedJobTemplates(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListManagedJobTemplates = createPaginator(IoTClient, ListManagedJobTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMetricValuesCommand, } from "../commands/ListMetricValuesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMetricValuesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMetricValues(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListMetricValues = createPaginator(IoTClient, ListMetricValuesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMitigationActionsCommand, } from "../commands/ListMitigationActionsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMitigationActionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMitigationActions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListMitigationActions = createPaginator(IoTClient, ListMitigationActionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListOTAUpdatesCommand, } from "../commands/ListOTAUpdatesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListOTAUpdatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListOTAUpdates(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListOTAUpdates = createPaginator(IoTClient, ListOTAUpdatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListOutgoingCertificatesCommand, } from "../commands/ListOutgoingCertificatesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListOutgoingCertificatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListOutgoingCertificates(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.marker = token;
|
|
12
|
-
input["pageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListOutgoingCertificates = createPaginator(IoTClient, ListOutgoingCertificatesCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPackageVersionsCommand, } from "../commands/ListPackageVersionsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPackageVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPackageVersions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPackageVersions = createPaginator(IoTClient, ListPackageVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPackagesCommand, } from "../commands/ListPackagesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPackagesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPackages(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPackages = createPaginator(IoTClient, ListPackagesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPoliciesCommand, } from "../commands/ListPoliciesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPolicies(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.marker = token;
|
|
12
|
-
input["pageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPolicies = createPaginator(IoTClient, ListPoliciesCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPolicyPrincipalsCommand, } from "../commands/ListPolicyPrincipalsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPolicyPrincipalsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPolicyPrincipals(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.marker = token;
|
|
12
|
-
input["pageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPolicyPrincipals = createPaginator(IoTClient, ListPolicyPrincipalsCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPrincipalPoliciesCommand, } from "../commands/ListPrincipalPoliciesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPrincipalPoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPrincipalPolicies(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.marker = token;
|
|
12
|
-
input["pageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPrincipalPolicies = createPaginator(IoTClient, ListPrincipalPoliciesCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListPrincipalThingsCommand, } from "../commands/ListPrincipalThingsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPrincipalThingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPrincipalThings(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPrincipalThings = createPaginator(IoTClient, ListPrincipalThingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListProvisioningTemplateVersionsCommand, } from "../commands/ListProvisioningTemplateVersionsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProvisioningTemplateVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProvisioningTemplateVersions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListProvisioningTemplateVersions = createPaginator(IoTClient, ListProvisioningTemplateVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListProvisioningTemplatesCommand, } from "../commands/ListProvisioningTemplatesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProvisioningTemplatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProvisioningTemplates(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListProvisioningTemplates = createPaginator(IoTClient, ListProvisioningTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRelatedResourcesForAuditFindingCommand, } from "../commands/ListRelatedResourcesForAuditFindingCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRelatedResourcesForAuditFindingCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRelatedResourcesForAuditFinding(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRelatedResourcesForAuditFinding = createPaginator(IoTClient, ListRelatedResourcesForAuditFindingCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRoleAliasesCommand, } from "../commands/ListRoleAliasesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRoleAliasesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRoleAliases(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.marker = token;
|
|
12
|
-
input["pageSize"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextMarker;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRoleAliases = createPaginator(IoTClient, ListRoleAliasesCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListScheduledAuditsCommand, } from "../commands/ListScheduledAuditsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListScheduledAuditsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListScheduledAudits(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListScheduledAudits = createPaginator(IoTClient, ListScheduledAuditsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSecurityProfilesForTargetCommand, } from "../commands/ListSecurityProfilesForTargetCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSecurityProfilesForTargetCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSecurityProfilesForTarget(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSecurityProfilesForTarget = createPaginator(IoTClient, ListSecurityProfilesForTargetCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSecurityProfilesCommand, } from "../commands/ListSecurityProfilesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSecurityProfilesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSecurityProfiles(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof IoTClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSecurityProfiles = createPaginator(IoTClient, ListSecurityProfilesCommand, "nextToken", "nextToken", "maxResults");
|