@aws-sdk/client-iot 3.476.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-cjs/protocols/Aws_restJson1.js +1528 -3389
- 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-es/protocols/Aws_restJson1.js +1529 -3390
- 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 +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetBehaviorModelTrainingSummariesCommand, } from "../commands/GetBehaviorModelTrainingSummariesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetBehaviorModelTrainingSummariesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetBehaviorModelTrainingSummaries(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 paginateGetBehaviorModelTrainingSummaries = createPaginator(IoTClient, GetBehaviorModelTrainingSummariesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListActiveViolationsCommand, } from "../commands/ListActiveViolationsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListActiveViolationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListActiveViolations(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 paginateListActiveViolations = createPaginator(IoTClient, ListActiveViolationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAttachedPoliciesCommand, } from "../commands/ListAttachedPoliciesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAttachedPoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAttachedPolicies(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 paginateListAttachedPolicies = createPaginator(IoTClient, ListAttachedPoliciesCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAuditFindingsCommand, } from "../commands/ListAuditFindingsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAuditFindingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAuditFindings(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 paginateListAuditFindings = createPaginator(IoTClient, ListAuditFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAuditMitigationActionsExecutionsCommand, } from "../commands/ListAuditMitigationActionsExecutionsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAuditMitigationActionsExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAuditMitigationActionsExecutions(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 paginateListAuditMitigationActionsExecutions = createPaginator(IoTClient, ListAuditMitigationActionsExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAuditMitigationActionsTasksCommand, } from "../commands/ListAuditMitigationActionsTasksCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAuditMitigationActionsTasksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAuditMitigationActionsTasks(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 paginateListAuditMitigationActionsTasks = createPaginator(IoTClient, ListAuditMitigationActionsTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAuditSuppressionsCommand, } from "../commands/ListAuditSuppressionsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAuditSuppressionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAuditSuppressions(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 paginateListAuditSuppressions = createPaginator(IoTClient, ListAuditSuppressionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAuditTasksCommand, } from "../commands/ListAuditTasksCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAuditTasksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAuditTasks(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 paginateListAuditTasks = createPaginator(IoTClient, ListAuditTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAuthorizersCommand, } from "../commands/ListAuthorizersCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAuthorizersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAuthorizers(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 paginateListAuthorizers = createPaginator(IoTClient, ListAuthorizersCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListBillingGroupsCommand, } from "../commands/ListBillingGroupsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListBillingGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListBillingGroups(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 paginateListBillingGroups = createPaginator(IoTClient, ListBillingGroupsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListCACertificatesCommand, } from "../commands/ListCACertificatesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCACertificatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCACertificates(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 paginateListCACertificates = createPaginator(IoTClient, ListCACertificatesCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListCertificatesByCACommand, } from "../commands/ListCertificatesByCACommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCertificatesByCACommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCertificatesByCA(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 paginateListCertificatesByCA = createPaginator(IoTClient, ListCertificatesByCACommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListCertificatesCommand, } from "../commands/ListCertificatesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCertificatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCertificates(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 paginateListCertificates = createPaginator(IoTClient, ListCertificatesCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListCustomMetricsCommand, } from "../commands/ListCustomMetricsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListCustomMetricsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListCustomMetrics(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 paginateListCustomMetrics = createPaginator(IoTClient, ListCustomMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDetectMitigationActionsExecutionsCommand, } from "../commands/ListDetectMitigationActionsExecutionsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDetectMitigationActionsExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDetectMitigationActionsExecutions(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 paginateListDetectMitigationActionsExecutions = createPaginator(IoTClient, ListDetectMitigationActionsExecutionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDetectMitigationActionsTasksCommand, } from "../commands/ListDetectMitigationActionsTasksCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDetectMitigationActionsTasksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDetectMitigationActionsTasks(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 paginateListDetectMitigationActionsTasks = createPaginator(IoTClient, ListDetectMitigationActionsTasksCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDimensionsCommand, } from "../commands/ListDimensionsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDimensionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDimensions(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 paginateListDimensions = createPaginator(IoTClient, ListDimensionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListDomainConfigurationsCommand, } from "../commands/ListDomainConfigurationsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDomainConfigurationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDomainConfigurations(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 paginateListDomainConfigurations = createPaginator(IoTClient, ListDomainConfigurationsCommand, "marker", "nextMarker", "pageSize");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFleetMetricsCommand, } from "../commands/ListFleetMetricsCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFleetMetricsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFleetMetrics(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 paginateListFleetMetrics = createPaginator(IoTClient, ListFleetMetricsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListIndicesCommand } from "../commands/ListIndicesCommand";
|
|
2
3
|
import { IoTClient } from "../IoTClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListIndicesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListIndices(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 paginateListIndices = createPaginator(IoTClient, ListIndicesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -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");
|