@aws-sdk/client-ssm 3.477.0 → 3.478.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/pagination/DescribeActivationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAssociationExecutionTargetsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAssociationExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAutomationExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAutomationStepExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAvailablePatchesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEffectiveInstanceAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInstanceAssociationsStatusPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInstanceInformationPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInstancePatchStatesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInstancePatchesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInventoryDeletionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMaintenanceWindowExecutionsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMaintenanceWindowSchedulePaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMaintenanceWindowTargetsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMaintenanceWindowTasksPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMaintenanceWindowsForTargetPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMaintenanceWindowsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeOpsItemsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeParametersPaginator.js +2 -24
- package/dist-cjs/pagination/DescribePatchBaselinesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribePatchGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribePatchPropertiesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeSessionsPaginator.js +2 -24
- package/dist-cjs/pagination/GetInventoryPaginator.js +2 -24
- package/dist-cjs/pagination/GetInventorySchemaPaginator.js +2 -24
- package/dist-cjs/pagination/GetOpsSummaryPaginator.js +2 -24
- package/dist-cjs/pagination/GetParameterHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/GetParametersByPathPaginator.js +2 -24
- package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssociationVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCommandInvocationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCommandsPaginator.js +2 -24
- package/dist-cjs/pagination/ListComplianceItemsPaginator.js +2 -24
- package/dist-cjs/pagination/ListComplianceSummariesPaginator.js +2 -24
- package/dist-cjs/pagination/ListDocumentVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDocumentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListOpsItemEventsPaginator.js +2 -24
- package/dist-cjs/pagination/ListOpsItemRelatedItemsPaginator.js +2 -24
- package/dist-cjs/pagination/ListOpsMetadataPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourceComplianceSummariesPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourceDataSyncPaginator.js +2 -24
- package/dist-es/pagination/DescribeActivationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeAssociationExecutionTargetsPaginator.js +2 -23
- package/dist-es/pagination/DescribeAssociationExecutionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeAutomationExecutionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeAutomationStepExecutionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeAvailablePatchesPaginator.js +2 -23
- package/dist-es/pagination/DescribeEffectiveInstanceAssociationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js +2 -23
- package/dist-es/pagination/DescribeInstanceAssociationsStatusPaginator.js +2 -23
- package/dist-es/pagination/DescribeInstanceInformationPaginator.js +2 -23
- package/dist-es/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js +2 -23
- package/dist-es/pagination/DescribeInstancePatchStatesPaginator.js +2 -23
- package/dist-es/pagination/DescribeInstancePatchesPaginator.js +2 -23
- package/dist-es/pagination/DescribeInventoryDeletionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js +2 -23
- package/dist-es/pagination/DescribeMaintenanceWindowExecutionsPaginator.js +2 -23
- package/dist-es/pagination/DescribeMaintenanceWindowSchedulePaginator.js +2 -23
- package/dist-es/pagination/DescribeMaintenanceWindowTargetsPaginator.js +2 -23
- package/dist-es/pagination/DescribeMaintenanceWindowTasksPaginator.js +2 -23
- package/dist-es/pagination/DescribeMaintenanceWindowsForTargetPaginator.js +2 -23
- package/dist-es/pagination/DescribeMaintenanceWindowsPaginator.js +2 -23
- package/dist-es/pagination/DescribeOpsItemsPaginator.js +2 -23
- package/dist-es/pagination/DescribeParametersPaginator.js +2 -23
- package/dist-es/pagination/DescribePatchBaselinesPaginator.js +2 -23
- package/dist-es/pagination/DescribePatchGroupsPaginator.js +2 -23
- package/dist-es/pagination/DescribePatchPropertiesPaginator.js +2 -23
- package/dist-es/pagination/DescribeSessionsPaginator.js +2 -23
- package/dist-es/pagination/GetInventoryPaginator.js +2 -23
- package/dist-es/pagination/GetInventorySchemaPaginator.js +2 -23
- package/dist-es/pagination/GetOpsSummaryPaginator.js +2 -23
- package/dist-es/pagination/GetParameterHistoryPaginator.js +2 -23
- package/dist-es/pagination/GetParametersByPathPaginator.js +2 -23
- package/dist-es/pagination/GetResourcePoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListAssociationVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListCommandInvocationsPaginator.js +2 -23
- package/dist-es/pagination/ListCommandsPaginator.js +2 -23
- package/dist-es/pagination/ListComplianceItemsPaginator.js +2 -23
- package/dist-es/pagination/ListComplianceSummariesPaginator.js +2 -23
- package/dist-es/pagination/ListDocumentVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListDocumentsPaginator.js +2 -23
- package/dist-es/pagination/ListOpsItemEventsPaginator.js +2 -23
- package/dist-es/pagination/ListOpsItemRelatedItemsPaginator.js +2 -23
- package/dist-es/pagination/ListOpsMetadataPaginator.js +2 -23
- package/dist-es/pagination/ListResourceComplianceSummariesPaginator.js +2 -23
- package/dist-es/pagination/ListResourceDataSyncPaginator.js +2 -23
- package/dist-types/pagination/DescribeActivationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAssociationExecutionTargetsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAssociationExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAutomationExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAutomationStepExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAvailablePatchesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEffectiveInstanceAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInstanceAssociationsStatusPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInstanceInformationPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInstancePatchStatesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInstancePatchesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInventoryDeletionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMaintenanceWindowExecutionsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMaintenanceWindowSchedulePaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMaintenanceWindowTargetsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMaintenanceWindowTasksPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMaintenanceWindowsForTargetPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMaintenanceWindowsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeOpsItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeParametersPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribePatchBaselinesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribePatchGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribePatchPropertiesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeSessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetInventoryPaginator.d.ts +1 -1
- package/dist-types/pagination/GetInventorySchemaPaginator.d.ts +1 -1
- package/dist-types/pagination/GetOpsSummaryPaginator.d.ts +1 -1
- package/dist-types/pagination/GetParameterHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/GetParametersByPathPaginator.d.ts +1 -1
- package/dist-types/pagination/GetResourcePoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssociationVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCommandInvocationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCommandsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListComplianceItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListComplianceSummariesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDocumentVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDocumentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOpsItemEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOpsItemRelatedItemsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOpsMetadataPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceComplianceSummariesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceDataSyncPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeActivationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAssociationExecutionTargetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAssociationExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAutomationExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAutomationStepExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAvailablePatchesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEffectiveInstanceAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInstanceAssociationsStatusPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInstanceInformationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInstancePatchStatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInstancePatchesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInventoryDeletionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMaintenanceWindowSchedulePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMaintenanceWindowTargetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMaintenanceWindowTasksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMaintenanceWindowsForTargetPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMaintenanceWindowsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeOpsItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeParametersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribePatchBaselinesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribePatchGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribePatchPropertiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeSessionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetInventoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetInventorySchemaPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetOpsSummaryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetParameterHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetParametersByPathPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssociationVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCommandInvocationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCommandsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComplianceItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListComplianceSummariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDocumentVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDocumentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOpsItemEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOpsItemRelatedItemsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOpsMetadataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourceComplianceSummariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourceDataSyncPaginator.d.ts +3 -3
- package/package.json +6 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListComplianceItems = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListComplianceItemsCommand_1 = require("../commands/ListComplianceItemsCommand");
|
|
5
6
|
const SSMClient_1 = require("../SSMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListComplianceItemsCommand_1.ListComplianceItemsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListComplianceItems(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSMClient_1.SSMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListComplianceItems = paginateListComplianceItems;
|
|
7
|
+
exports.paginateListComplianceItems = (0, core_1.createPaginator)(SSMClient_1.SSMClient, ListComplianceItemsCommand_1.ListComplianceItemsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListComplianceSummaries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListComplianceSummariesCommand_1 = require("../commands/ListComplianceSummariesCommand");
|
|
5
6
|
const SSMClient_1 = require("../SSMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListComplianceSummariesCommand_1.ListComplianceSummariesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListComplianceSummaries(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSMClient_1.SSMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListComplianceSummaries = paginateListComplianceSummaries;
|
|
7
|
+
exports.paginateListComplianceSummaries = (0, core_1.createPaginator)(SSMClient_1.SSMClient, ListComplianceSummariesCommand_1.ListComplianceSummariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDocumentVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDocumentVersionsCommand_1 = require("../commands/ListDocumentVersionsCommand");
|
|
5
6
|
const SSMClient_1 = require("../SSMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDocumentVersionsCommand_1.ListDocumentVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDocumentVersions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSMClient_1.SSMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListDocumentVersions = paginateListDocumentVersions;
|
|
7
|
+
exports.paginateListDocumentVersions = (0, core_1.createPaginator)(SSMClient_1.SSMClient, ListDocumentVersionsCommand_1.ListDocumentVersionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDocuments = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDocumentsCommand_1 = require("../commands/ListDocumentsCommand");
|
|
5
6
|
const SSMClient_1 = require("../SSMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDocumentsCommand_1.ListDocumentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDocuments(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSMClient_1.SSMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListDocuments = paginateListDocuments;
|
|
7
|
+
exports.paginateListDocuments = (0, core_1.createPaginator)(SSMClient_1.SSMClient, ListDocumentsCommand_1.ListDocumentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOpsItemEvents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOpsItemEventsCommand_1 = require("../commands/ListOpsItemEventsCommand");
|
|
5
6
|
const SSMClient_1 = require("../SSMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOpsItemEventsCommand_1.ListOpsItemEventsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOpsItemEvents(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSMClient_1.SSMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListOpsItemEvents = paginateListOpsItemEvents;
|
|
7
|
+
exports.paginateListOpsItemEvents = (0, core_1.createPaginator)(SSMClient_1.SSMClient, ListOpsItemEventsCommand_1.ListOpsItemEventsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOpsItemRelatedItems = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOpsItemRelatedItemsCommand_1 = require("../commands/ListOpsItemRelatedItemsCommand");
|
|
5
6
|
const SSMClient_1 = require("../SSMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOpsItemRelatedItems(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSMClient_1.SSMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListOpsItemRelatedItems = paginateListOpsItemRelatedItems;
|
|
7
|
+
exports.paginateListOpsItemRelatedItems = (0, core_1.createPaginator)(SSMClient_1.SSMClient, ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOpsMetadata = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOpsMetadataCommand_1 = require("../commands/ListOpsMetadataCommand");
|
|
5
6
|
const SSMClient_1 = require("../SSMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOpsMetadataCommand_1.ListOpsMetadataCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOpsMetadata(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSMClient_1.SSMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListOpsMetadata = paginateListOpsMetadata;
|
|
7
|
+
exports.paginateListOpsMetadata = (0, core_1.createPaginator)(SSMClient_1.SSMClient, ListOpsMetadataCommand_1.ListOpsMetadataCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourceComplianceSummaries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourceComplianceSummariesCommand_1 = require("../commands/ListResourceComplianceSummariesCommand");
|
|
5
6
|
const SSMClient_1 = require("../SSMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourceComplianceSummaries(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSMClient_1.SSMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResourceComplianceSummaries = paginateListResourceComplianceSummaries;
|
|
7
|
+
exports.paginateListResourceComplianceSummaries = (0, core_1.createPaginator)(SSMClient_1.SSMClient, ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourceDataSync = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourceDataSyncCommand_1 = require("../commands/ListResourceDataSyncCommand");
|
|
5
6
|
const SSMClient_1 = require("../SSMClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourceDataSyncCommand_1.ListResourceDataSyncCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourceDataSync(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SSMClient_1.SSMClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResourceDataSync = paginateListResourceDataSync;
|
|
7
|
+
exports.paginateListResourceDataSync = (0, core_1.createPaginator)(SSMClient_1.SSMClient, ListResourceDataSyncCommand_1.ListResourceDataSyncCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeActivationsCommand, } from "../commands/DescribeActivationsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeActivationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeActivations(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeActivations = createPaginator(SSMClient, DescribeActivationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeAssociationExecutionTargetsCommand, } from "../commands/DescribeAssociationExecutionTargetsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAssociationExecutionTargetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAssociationExecutionTargets(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeAssociationExecutionTargets = createPaginator(SSMClient, DescribeAssociationExecutionTargetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeAssociationExecutionsCommand, } from "../commands/DescribeAssociationExecutionsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAssociationExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAssociationExecutions(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeAssociationExecutions = createPaginator(SSMClient, DescribeAssociationExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeAutomationExecutionsCommand, } from "../commands/DescribeAutomationExecutionsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAutomationExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAutomationExecutions(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeAutomationExecutions = createPaginator(SSMClient, DescribeAutomationExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeAutomationStepExecutionsCommand, } from "../commands/DescribeAutomationStepExecutionsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAutomationStepExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAutomationStepExecutions(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeAutomationStepExecutions = createPaginator(SSMClient, DescribeAutomationStepExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeAvailablePatchesCommand, } from "../commands/DescribeAvailablePatchesCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAvailablePatchesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAvailablePatches(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeAvailablePatches = createPaginator(SSMClient, DescribeAvailablePatchesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEffectiveInstanceAssociationsCommand, } from "../commands/DescribeEffectiveInstanceAssociationsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEffectiveInstanceAssociationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEffectiveInstanceAssociations(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeEffectiveInstanceAssociations = createPaginator(SSMClient, DescribeEffectiveInstanceAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEffectivePatchesForPatchBaselineCommand, } from "../commands/DescribeEffectivePatchesForPatchBaselineCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEffectivePatchesForPatchBaselineCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEffectivePatchesForPatchBaseline(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeEffectivePatchesForPatchBaseline = createPaginator(SSMClient, DescribeEffectivePatchesForPatchBaselineCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeInstanceAssociationsStatusCommand, } from "../commands/DescribeInstanceAssociationsStatusCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInstanceAssociationsStatusCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInstanceAssociationsStatus(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeInstanceAssociationsStatus = createPaginator(SSMClient, DescribeInstanceAssociationsStatusCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeInstanceInformationCommand, } from "../commands/DescribeInstanceInformationCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInstanceInformationCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInstanceInformation(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeInstanceInformation = createPaginator(SSMClient, DescribeInstanceInformationCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeInstancePatchStatesForPatchGroupCommand, } from "../commands/DescribeInstancePatchStatesForPatchGroupCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInstancePatchStatesForPatchGroupCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInstancePatchStatesForPatchGroup(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeInstancePatchStatesForPatchGroup = createPaginator(SSMClient, DescribeInstancePatchStatesForPatchGroupCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeInstancePatchStatesCommand, } from "../commands/DescribeInstancePatchStatesCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInstancePatchStatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInstancePatchStates(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 SSMClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SSM | SSMClient");
|
|
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 paginateDescribeInstancePatchStates = createPaginator(SSMClient, DescribeInstancePatchStatesCommand, "NextToken", "NextToken", "MaxResults");
|