@aws-sdk/client-iot 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +243 -237
- package/dist-es/IoT.js +950 -957
- package/dist-es/IoTClient.js +23 -29
- package/dist-es/commands/AcceptCertificateTransferCommand.js +22 -29
- package/dist-es/commands/AddThingToBillingGroupCommand.js +21 -28
- package/dist-es/commands/AddThingToThingGroupCommand.js +21 -28
- package/dist-es/commands/AssociateTargetsWithJobCommand.js +21 -28
- package/dist-es/commands/AttachPolicyCommand.js +22 -29
- package/dist-es/commands/AttachPrincipalPolicyCommand.js +22 -29
- package/dist-es/commands/AttachSecurityProfileCommand.js +21 -28
- package/dist-es/commands/AttachThingPrincipalCommand.js +21 -28
- package/dist-es/commands/CancelAuditMitigationActionsTaskCommand.js +21 -28
- package/dist-es/commands/CancelAuditTaskCommand.js +21 -28
- package/dist-es/commands/CancelCertificateTransferCommand.js +22 -29
- package/dist-es/commands/CancelDetectMitigationActionsTaskCommand.js +21 -28
- package/dist-es/commands/CancelJobCommand.js +21 -28
- package/dist-es/commands/CancelJobExecutionCommand.js +22 -29
- package/dist-es/commands/ClearDefaultAuthorizerCommand.js +21 -28
- package/dist-es/commands/ConfirmTopicRuleDestinationCommand.js +21 -28
- package/dist-es/commands/CreateAuditSuppressionCommand.js +21 -28
- package/dist-es/commands/CreateAuthorizerCommand.js +21 -28
- package/dist-es/commands/CreateBillingGroupCommand.js +21 -28
- package/dist-es/commands/CreateCertificateFromCsrCommand.js +21 -28
- package/dist-es/commands/CreateCustomMetricCommand.js +21 -28
- package/dist-es/commands/CreateDimensionCommand.js +21 -28
- package/dist-es/commands/CreateDomainConfigurationCommand.js +21 -28
- package/dist-es/commands/CreateDynamicThingGroupCommand.js +21 -28
- package/dist-es/commands/CreateFleetMetricCommand.js +21 -28
- package/dist-es/commands/CreateJobCommand.js +21 -28
- package/dist-es/commands/CreateJobTemplateCommand.js +21 -28
- package/dist-es/commands/CreateKeysAndCertificateCommand.js +21 -28
- package/dist-es/commands/CreateMitigationActionCommand.js +21 -28
- package/dist-es/commands/CreateOTAUpdateCommand.js +21 -28
- package/dist-es/commands/CreatePolicyCommand.js +21 -28
- package/dist-es/commands/CreatePolicyVersionCommand.js +21 -28
- package/dist-es/commands/CreateProvisioningClaimCommand.js +21 -28
- package/dist-es/commands/CreateProvisioningTemplateCommand.js +21 -28
- package/dist-es/commands/CreateProvisioningTemplateVersionCommand.js +21 -28
- package/dist-es/commands/CreateRoleAliasCommand.js +21 -28
- package/dist-es/commands/CreateScheduledAuditCommand.js +21 -28
- package/dist-es/commands/CreateSecurityProfileCommand.js +21 -28
- package/dist-es/commands/CreateStreamCommand.js +21 -28
- package/dist-es/commands/CreateThingCommand.js +21 -28
- package/dist-es/commands/CreateThingGroupCommand.js +21 -28
- package/dist-es/commands/CreateThingTypeCommand.js +21 -28
- package/dist-es/commands/CreateTopicRuleCommand.js +22 -29
- package/dist-es/commands/CreateTopicRuleDestinationCommand.js +21 -28
- package/dist-es/commands/DeleteAccountAuditConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteAuditSuppressionCommand.js +21 -28
- package/dist-es/commands/DeleteAuthorizerCommand.js +21 -28
- package/dist-es/commands/DeleteBillingGroupCommand.js +21 -28
- package/dist-es/commands/DeleteCACertificateCommand.js +21 -28
- package/dist-es/commands/DeleteCertificateCommand.js +22 -29
- package/dist-es/commands/DeleteCustomMetricCommand.js +21 -28
- package/dist-es/commands/DeleteDimensionCommand.js +21 -28
- package/dist-es/commands/DeleteDomainConfigurationCommand.js +21 -28
- package/dist-es/commands/DeleteDynamicThingGroupCommand.js +21 -28
- package/dist-es/commands/DeleteFleetMetricCommand.js +22 -29
- package/dist-es/commands/DeleteJobCommand.js +22 -29
- package/dist-es/commands/DeleteJobExecutionCommand.js +22 -29
- package/dist-es/commands/DeleteJobTemplateCommand.js +22 -29
- package/dist-es/commands/DeleteMitigationActionCommand.js +21 -28
- package/dist-es/commands/DeleteOTAUpdateCommand.js +21 -28
- package/dist-es/commands/DeletePolicyCommand.js +22 -29
- package/dist-es/commands/DeletePolicyVersionCommand.js +22 -29
- package/dist-es/commands/DeleteProvisioningTemplateCommand.js +21 -28
- package/dist-es/commands/DeleteProvisioningTemplateVersionCommand.js +21 -28
- package/dist-es/commands/DeleteRegistrationCodeCommand.js +21 -28
- package/dist-es/commands/DeleteRoleAliasCommand.js +21 -28
- package/dist-es/commands/DeleteScheduledAuditCommand.js +21 -28
- package/dist-es/commands/DeleteSecurityProfileCommand.js +21 -28
- package/dist-es/commands/DeleteStreamCommand.js +21 -28
- package/dist-es/commands/DeleteThingCommand.js +21 -28
- package/dist-es/commands/DeleteThingGroupCommand.js +21 -28
- package/dist-es/commands/DeleteThingTypeCommand.js +21 -28
- package/dist-es/commands/DeleteTopicRuleCommand.js +22 -29
- package/dist-es/commands/DeleteTopicRuleDestinationCommand.js +21 -28
- package/dist-es/commands/DeleteV2LoggingLevelCommand.js +22 -29
- package/dist-es/commands/DeprecateThingTypeCommand.js +21 -28
- package/dist-es/commands/DescribeAccountAuditConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeAuditFindingCommand.js +21 -28
- package/dist-es/commands/DescribeAuditMitigationActionsTaskCommand.js +21 -28
- package/dist-es/commands/DescribeAuditSuppressionCommand.js +21 -28
- package/dist-es/commands/DescribeAuditTaskCommand.js +21 -28
- package/dist-es/commands/DescribeAuthorizerCommand.js +21 -28
- package/dist-es/commands/DescribeBillingGroupCommand.js +21 -28
- package/dist-es/commands/DescribeCACertificateCommand.js +21 -28
- package/dist-es/commands/DescribeCertificateCommand.js +21 -28
- package/dist-es/commands/DescribeCustomMetricCommand.js +21 -28
- package/dist-es/commands/DescribeDefaultAuthorizerCommand.js +21 -28
- package/dist-es/commands/DescribeDetectMitigationActionsTaskCommand.js +21 -28
- package/dist-es/commands/DescribeDimensionCommand.js +21 -28
- package/dist-es/commands/DescribeDomainConfigurationCommand.js +21 -28
- package/dist-es/commands/DescribeEndpointCommand.js +21 -28
- package/dist-es/commands/DescribeEventConfigurationsCommand.js +21 -28
- package/dist-es/commands/DescribeFleetMetricCommand.js +21 -28
- package/dist-es/commands/DescribeIndexCommand.js +21 -28
- package/dist-es/commands/DescribeJobCommand.js +21 -28
- package/dist-es/commands/DescribeJobExecutionCommand.js +21 -28
- package/dist-es/commands/DescribeJobTemplateCommand.js +21 -28
- package/dist-es/commands/DescribeManagedJobTemplateCommand.js +21 -28
- package/dist-es/commands/DescribeMitigationActionCommand.js +21 -28
- package/dist-es/commands/DescribeProvisioningTemplateCommand.js +21 -28
- package/dist-es/commands/DescribeProvisioningTemplateVersionCommand.js +21 -28
- package/dist-es/commands/DescribeRoleAliasCommand.js +21 -28
- package/dist-es/commands/DescribeScheduledAuditCommand.js +21 -28
- package/dist-es/commands/DescribeSecurityProfileCommand.js +21 -28
- package/dist-es/commands/DescribeStreamCommand.js +21 -28
- package/dist-es/commands/DescribeThingCommand.js +21 -28
- package/dist-es/commands/DescribeThingGroupCommand.js +21 -28
- package/dist-es/commands/DescribeThingRegistrationTaskCommand.js +21 -28
- package/dist-es/commands/DescribeThingTypeCommand.js +21 -28
- package/dist-es/commands/DetachPolicyCommand.js +22 -29
- package/dist-es/commands/DetachPrincipalPolicyCommand.js +22 -29
- package/dist-es/commands/DetachSecurityProfileCommand.js +21 -28
- package/dist-es/commands/DetachThingPrincipalCommand.js +21 -28
- package/dist-es/commands/DisableTopicRuleCommand.js +22 -29
- package/dist-es/commands/EnableTopicRuleCommand.js +22 -29
- package/dist-es/commands/GetBehaviorModelTrainingSummariesCommand.js +21 -28
- package/dist-es/commands/GetBucketsAggregationCommand.js +21 -28
- package/dist-es/commands/GetCardinalityCommand.js +21 -28
- package/dist-es/commands/GetEffectivePoliciesCommand.js +21 -28
- package/dist-es/commands/GetIndexingConfigurationCommand.js +21 -28
- package/dist-es/commands/GetJobDocumentCommand.js +21 -28
- package/dist-es/commands/GetLoggingOptionsCommand.js +21 -28
- package/dist-es/commands/GetOTAUpdateCommand.js +21 -28
- package/dist-es/commands/GetPercentilesCommand.js +21 -28
- package/dist-es/commands/GetPolicyCommand.js +21 -28
- package/dist-es/commands/GetPolicyVersionCommand.js +21 -28
- package/dist-es/commands/GetRegistrationCodeCommand.js +21 -28
- package/dist-es/commands/GetStatisticsCommand.js +21 -28
- package/dist-es/commands/GetTopicRuleCommand.js +21 -28
- package/dist-es/commands/GetTopicRuleDestinationCommand.js +21 -28
- package/dist-es/commands/GetV2LoggingOptionsCommand.js +21 -28
- package/dist-es/commands/ListActiveViolationsCommand.js +21 -28
- package/dist-es/commands/ListAttachedPoliciesCommand.js +21 -28
- package/dist-es/commands/ListAuditFindingsCommand.js +21 -28
- package/dist-es/commands/ListAuditMitigationActionsExecutionsCommand.js +21 -28
- package/dist-es/commands/ListAuditMitigationActionsTasksCommand.js +21 -28
- package/dist-es/commands/ListAuditSuppressionsCommand.js +21 -28
- package/dist-es/commands/ListAuditTasksCommand.js +21 -28
- package/dist-es/commands/ListAuthorizersCommand.js +21 -28
- package/dist-es/commands/ListBillingGroupsCommand.js +21 -28
- package/dist-es/commands/ListCACertificatesCommand.js +21 -28
- package/dist-es/commands/ListCertificatesByCACommand.js +21 -28
- package/dist-es/commands/ListCertificatesCommand.js +21 -28
- package/dist-es/commands/ListCustomMetricsCommand.js +21 -28
- package/dist-es/commands/ListDetectMitigationActionsExecutionsCommand.js +21 -28
- package/dist-es/commands/ListDetectMitigationActionsTasksCommand.js +21 -28
- package/dist-es/commands/ListDimensionsCommand.js +21 -28
- package/dist-es/commands/ListDomainConfigurationsCommand.js +21 -28
- package/dist-es/commands/ListFleetMetricsCommand.js +21 -28
- package/dist-es/commands/ListIndicesCommand.js +21 -28
- package/dist-es/commands/ListJobExecutionsForJobCommand.js +21 -28
- package/dist-es/commands/ListJobExecutionsForThingCommand.js +21 -28
- package/dist-es/commands/ListJobTemplatesCommand.js +21 -28
- package/dist-es/commands/ListJobsCommand.js +21 -28
- package/dist-es/commands/ListManagedJobTemplatesCommand.js +21 -28
- package/dist-es/commands/ListMetricValuesCommand.js +21 -28
- package/dist-es/commands/ListMitigationActionsCommand.js +21 -28
- package/dist-es/commands/ListOTAUpdatesCommand.js +21 -28
- package/dist-es/commands/ListOutgoingCertificatesCommand.js +21 -28
- package/dist-es/commands/ListPoliciesCommand.js +21 -28
- package/dist-es/commands/ListPolicyPrincipalsCommand.js +21 -28
- package/dist-es/commands/ListPolicyVersionsCommand.js +21 -28
- package/dist-es/commands/ListPrincipalPoliciesCommand.js +21 -28
- package/dist-es/commands/ListPrincipalThingsCommand.js +21 -28
- package/dist-es/commands/ListProvisioningTemplateVersionsCommand.js +21 -28
- package/dist-es/commands/ListProvisioningTemplatesCommand.js +21 -28
- package/dist-es/commands/ListRoleAliasesCommand.js +21 -28
- package/dist-es/commands/ListScheduledAuditsCommand.js +21 -28
- package/dist-es/commands/ListSecurityProfilesCommand.js +21 -28
- package/dist-es/commands/ListSecurityProfilesForTargetCommand.js +21 -28
- package/dist-es/commands/ListStreamsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTargetsForPolicyCommand.js +21 -28
- package/dist-es/commands/ListTargetsForSecurityProfileCommand.js +21 -28
- package/dist-es/commands/ListThingGroupsCommand.js +21 -28
- package/dist-es/commands/ListThingGroupsForThingCommand.js +21 -28
- package/dist-es/commands/ListThingPrincipalsCommand.js +21 -28
- package/dist-es/commands/ListThingRegistrationTaskReportsCommand.js +21 -28
- package/dist-es/commands/ListThingRegistrationTasksCommand.js +21 -28
- package/dist-es/commands/ListThingTypesCommand.js +21 -28
- package/dist-es/commands/ListThingsCommand.js +21 -28
- package/dist-es/commands/ListThingsInBillingGroupCommand.js +21 -28
- package/dist-es/commands/ListThingsInThingGroupCommand.js +21 -28
- package/dist-es/commands/ListTopicRuleDestinationsCommand.js +21 -28
- package/dist-es/commands/ListTopicRulesCommand.js +21 -28
- package/dist-es/commands/ListV2LoggingLevelsCommand.js +21 -28
- package/dist-es/commands/ListViolationEventsCommand.js +21 -28
- package/dist-es/commands/PutVerificationStateOnViolationCommand.js +21 -28
- package/dist-es/commands/RegisterCACertificateCommand.js +21 -28
- package/dist-es/commands/RegisterCertificateCommand.js +21 -28
- package/dist-es/commands/RegisterCertificateWithoutCACommand.js +21 -28
- package/dist-es/commands/RegisterThingCommand.js +21 -28
- package/dist-es/commands/RejectCertificateTransferCommand.js +22 -29
- package/dist-es/commands/RemoveThingFromBillingGroupCommand.js +21 -28
- package/dist-es/commands/RemoveThingFromThingGroupCommand.js +21 -28
- package/dist-es/commands/ReplaceTopicRuleCommand.js +22 -29
- package/dist-es/commands/SearchIndexCommand.js +21 -28
- package/dist-es/commands/SetDefaultAuthorizerCommand.js +21 -28
- package/dist-es/commands/SetDefaultPolicyVersionCommand.js +22 -29
- package/dist-es/commands/SetLoggingOptionsCommand.js +22 -29
- package/dist-es/commands/SetV2LoggingLevelCommand.js +22 -29
- package/dist-es/commands/SetV2LoggingOptionsCommand.js +22 -29
- package/dist-es/commands/StartAuditMitigationActionsTaskCommand.js +21 -28
- package/dist-es/commands/StartDetectMitigationActionsTaskCommand.js +21 -28
- package/dist-es/commands/StartOnDemandAuditTaskCommand.js +21 -28
- package/dist-es/commands/StartThingRegistrationTaskCommand.js +21 -28
- package/dist-es/commands/StopThingRegistrationTaskCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/TestAuthorizationCommand.js +21 -28
- package/dist-es/commands/TestInvokeAuthorizerCommand.js +21 -28
- package/dist-es/commands/TransferCertificateCommand.js +21 -28
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/UpdateAccountAuditConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateAuditSuppressionCommand.js +21 -28
- package/dist-es/commands/UpdateAuthorizerCommand.js +21 -28
- package/dist-es/commands/UpdateBillingGroupCommand.js +21 -28
- package/dist-es/commands/UpdateCACertificateCommand.js +22 -29
- package/dist-es/commands/UpdateCertificateCommand.js +22 -29
- package/dist-es/commands/UpdateCustomMetricCommand.js +21 -28
- package/dist-es/commands/UpdateDimensionCommand.js +21 -28
- package/dist-es/commands/UpdateDomainConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateDynamicThingGroupCommand.js +21 -28
- package/dist-es/commands/UpdateEventConfigurationsCommand.js +21 -28
- package/dist-es/commands/UpdateFleetMetricCommand.js +22 -29
- package/dist-es/commands/UpdateIndexingConfigurationCommand.js +21 -28
- package/dist-es/commands/UpdateJobCommand.js +22 -29
- package/dist-es/commands/UpdateMitigationActionCommand.js +21 -28
- package/dist-es/commands/UpdateProvisioningTemplateCommand.js +21 -28
- package/dist-es/commands/UpdateRoleAliasCommand.js +21 -28
- package/dist-es/commands/UpdateScheduledAuditCommand.js +21 -28
- package/dist-es/commands/UpdateSecurityProfileCommand.js +21 -28
- package/dist-es/commands/UpdateStreamCommand.js +21 -28
- package/dist-es/commands/UpdateThingCommand.js +21 -28
- package/dist-es/commands/UpdateThingGroupCommand.js +21 -28
- package/dist-es/commands/UpdateThingGroupsForThingCommand.js +21 -28
- package/dist-es/commands/UpdateTopicRuleDestinationCommand.js +21 -28
- package/dist-es/commands/ValidateSecurityProfileBehaviorsCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/IoTServiceException.js +5 -10
- package/dist-es/models/models_0.js +970 -497
- package/dist-es/models/models_1.js +844 -297
- package/dist-es/models/models_2.js +459 -198
- package/dist-es/pagination/GetBehaviorModelTrainingSummariesPaginator.js +25 -68
- package/dist-es/pagination/ListActiveViolationsPaginator.js +25 -68
- package/dist-es/pagination/ListAttachedPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListAuditFindingsPaginator.js +25 -68
- package/dist-es/pagination/ListAuditMitigationActionsExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListAuditMitigationActionsTasksPaginator.js +25 -68
- package/dist-es/pagination/ListAuditSuppressionsPaginator.js +25 -68
- package/dist-es/pagination/ListAuditTasksPaginator.js +25 -68
- package/dist-es/pagination/ListAuthorizersPaginator.js +25 -68
- package/dist-es/pagination/ListBillingGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListCACertificatesPaginator.js +25 -68
- package/dist-es/pagination/ListCertificatesByCAPaginator.js +25 -68
- package/dist-es/pagination/ListCertificatesPaginator.js +25 -68
- package/dist-es/pagination/ListCustomMetricsPaginator.js +25 -68
- package/dist-es/pagination/ListDetectMitigationActionsExecutionsPaginator.js +25 -68
- package/dist-es/pagination/ListDetectMitigationActionsTasksPaginator.js +25 -68
- package/dist-es/pagination/ListDimensionsPaginator.js +25 -68
- package/dist-es/pagination/ListDomainConfigurationsPaginator.js +25 -68
- package/dist-es/pagination/ListFleetMetricsPaginator.js +25 -68
- package/dist-es/pagination/ListIndicesPaginator.js +25 -68
- package/dist-es/pagination/ListJobExecutionsForJobPaginator.js +25 -68
- package/dist-es/pagination/ListJobExecutionsForThingPaginator.js +25 -68
- package/dist-es/pagination/ListJobTemplatesPaginator.js +25 -68
- package/dist-es/pagination/ListJobsPaginator.js +25 -68
- package/dist-es/pagination/ListMetricValuesPaginator.js +25 -68
- package/dist-es/pagination/ListMitigationActionsPaginator.js +25 -68
- package/dist-es/pagination/ListOTAUpdatesPaginator.js +25 -68
- package/dist-es/pagination/ListOutgoingCertificatesPaginator.js +25 -68
- package/dist-es/pagination/ListPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListPolicyPrincipalsPaginator.js +25 -68
- package/dist-es/pagination/ListPrincipalPoliciesPaginator.js +25 -68
- package/dist-es/pagination/ListPrincipalThingsPaginator.js +25 -68
- package/dist-es/pagination/ListProvisioningTemplateVersionsPaginator.js +25 -68
- package/dist-es/pagination/ListProvisioningTemplatesPaginator.js +25 -68
- package/dist-es/pagination/ListRoleAliasesPaginator.js +25 -68
- package/dist-es/pagination/ListScheduledAuditsPaginator.js +25 -68
- package/dist-es/pagination/ListSecurityProfilesForTargetPaginator.js +25 -68
- package/dist-es/pagination/ListSecurityProfilesPaginator.js +25 -68
- package/dist-es/pagination/ListStreamsPaginator.js +25 -68
- package/dist-es/pagination/ListTagsForResourcePaginator.js +24 -67
- package/dist-es/pagination/ListTargetsForPolicyPaginator.js +25 -68
- package/dist-es/pagination/ListTargetsForSecurityProfilePaginator.js +25 -68
- package/dist-es/pagination/ListThingGroupsForThingPaginator.js +25 -68
- package/dist-es/pagination/ListThingGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListThingPrincipalsPaginator.js +25 -68
- package/dist-es/pagination/ListThingRegistrationTaskReportsPaginator.js +25 -68
- package/dist-es/pagination/ListThingRegistrationTasksPaginator.js +25 -68
- package/dist-es/pagination/ListThingTypesPaginator.js +25 -68
- package/dist-es/pagination/ListThingsInBillingGroupPaginator.js +25 -68
- package/dist-es/pagination/ListThingsInThingGroupPaginator.js +25 -68
- package/dist-es/pagination/ListThingsPaginator.js +25 -68
- package/dist-es/pagination/ListTopicRuleDestinationsPaginator.js +25 -68
- package/dist-es/pagination/ListTopicRulesPaginator.js +25 -68
- package/dist-es/pagination/ListV2LoggingLevelsPaginator.js +25 -68
- package/dist-es/pagination/ListViolationEventsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +18411 -25260
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListFleetMetricsCommand, } from "../commands/ListFleetMetricsCommand";
|
|
3
2
|
import { IoT } from "../IoT";
|
|
4
3
|
import { IoTClient } from "../IoTClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListFleetMetricsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListFleetMetricsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listFleetMetrics.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listFleetMetrics(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListFleetMetrics(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListFleetMetrics(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IoT) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IoTClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.nextToken = token;
|
|
49
|
-
input["maxResults"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IoT)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IoTClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IoT | IoTClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.nextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListIndicesCommand } from "../commands/ListIndicesCommand";
|
|
3
2
|
import { IoT } from "../IoT";
|
|
4
3
|
import { IoTClient } from "../IoTClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListIndicesCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListIndicesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listIndices.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listIndices(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListIndices(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListIndices(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IoT) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IoTClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.nextToken = token;
|
|
49
|
-
input["maxResults"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IoT)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IoTClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IoT | IoTClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.nextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListJobExecutionsForJobCommand, } from "../commands/ListJobExecutionsForJobCommand";
|
|
3
2
|
import { IoT } from "../IoT";
|
|
4
3
|
import { IoTClient } from "../IoTClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListJobExecutionsForJobCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListJobExecutionsForJobCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listJobExecutionsForJob.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listJobExecutionsForJob(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListJobExecutionsForJob(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListJobExecutionsForJob(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IoT) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IoTClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.nextToken = token;
|
|
49
|
-
input["maxResults"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IoT)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IoTClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IoT | IoTClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.nextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListJobExecutionsForThingCommand, } from "../commands/ListJobExecutionsForThingCommand";
|
|
3
2
|
import { IoT } from "../IoT";
|
|
4
3
|
import { IoTClient } from "../IoTClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListJobExecutionsForThingCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListJobExecutionsForThingCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listJobExecutionsForThing.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listJobExecutionsForThing(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListJobExecutionsForThing(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListJobExecutionsForThing(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IoT) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IoTClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.nextToken = token;
|
|
49
|
-
input["maxResults"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IoT)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IoTClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IoT | IoTClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.nextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListJobTemplatesCommand, } from "../commands/ListJobTemplatesCommand";
|
|
3
2
|
import { IoT } from "../IoT";
|
|
4
3
|
import { IoTClient } from "../IoTClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListJobTemplatesCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListJobTemplatesCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listJobTemplates.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listJobTemplates(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListJobTemplates(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListJobTemplates(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IoT) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IoTClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.nextToken = token;
|
|
49
|
-
input["maxResults"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IoT)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IoTClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IoT | IoTClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.nextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|
|
@@ -1,75 +1,32 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
1
|
import { ListJobsCommand } from "../commands/ListJobsCommand";
|
|
3
2
|
import { IoT } from "../IoT";
|
|
4
3
|
import { IoTClient } from "../IoTClient";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListJobsCommand(input)], __read(args), false))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListJobsCommand(input), ...args);
|
|
18
6
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listJobs.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listJobs(input, ...args);
|
|
32
9
|
};
|
|
33
|
-
export function paginateListJobs(config, input) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
10
|
+
export async function* paginateListJobs(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof IoT) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof IoTClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected IoT | IoTClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
37
30
|
}
|
|
38
|
-
return
|
|
39
|
-
var token, hasNext, page, prevToken;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.nextToken = token;
|
|
49
|
-
input["maxResults"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof IoT)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IoTClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected IoT | IoTClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
prevToken = token;
|
|
67
|
-
token = page.nextToken;
|
|
68
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
-
return [3, 1];
|
|
70
|
-
case 9: return [4, __await(undefined)];
|
|
71
|
-
case 10: return [2, _a.sent()];
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
});
|
|
31
|
+
return undefined;
|
|
75
32
|
}
|