@aws-sdk/client-ssm 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/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 +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeInstancePatchesCommand, } from "../commands/DescribeInstancePatchesCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInstancePatchesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInstancePatches(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 paginateDescribeInstancePatches = createPaginator(SSMClient, DescribeInstancePatchesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeInventoryDeletionsCommand, } from "../commands/DescribeInventoryDeletionsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInventoryDeletionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInventoryDeletions(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 paginateDescribeInventoryDeletions = createPaginator(SSMClient, DescribeInventoryDeletionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMaintenanceWindowExecutionTaskInvocationsCommand, } from "../commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMaintenanceWindowExecutionTaskInvocationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMaintenanceWindowExecutionTaskInvocations(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 paginateDescribeMaintenanceWindowExecutionTaskInvocations = createPaginator(SSMClient, DescribeMaintenanceWindowExecutionTaskInvocationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMaintenanceWindowExecutionTasksCommand, } from "../commands/DescribeMaintenanceWindowExecutionTasksCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMaintenanceWindowExecutionTasksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMaintenanceWindowExecutionTasks(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 paginateDescribeMaintenanceWindowExecutionTasks = createPaginator(SSMClient, DescribeMaintenanceWindowExecutionTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMaintenanceWindowExecutionsCommand, } from "../commands/DescribeMaintenanceWindowExecutionsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMaintenanceWindowExecutionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMaintenanceWindowExecutions(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 paginateDescribeMaintenanceWindowExecutions = createPaginator(SSMClient, DescribeMaintenanceWindowExecutionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMaintenanceWindowScheduleCommand, } from "../commands/DescribeMaintenanceWindowScheduleCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMaintenanceWindowScheduleCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMaintenanceWindowSchedule(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 paginateDescribeMaintenanceWindowSchedule = createPaginator(SSMClient, DescribeMaintenanceWindowScheduleCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMaintenanceWindowTargetsCommand, } from "../commands/DescribeMaintenanceWindowTargetsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMaintenanceWindowTargetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMaintenanceWindowTargets(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 paginateDescribeMaintenanceWindowTargets = createPaginator(SSMClient, DescribeMaintenanceWindowTargetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMaintenanceWindowTasksCommand, } from "../commands/DescribeMaintenanceWindowTasksCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMaintenanceWindowTasksCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMaintenanceWindowTasks(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 paginateDescribeMaintenanceWindowTasks = createPaginator(SSMClient, DescribeMaintenanceWindowTasksCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMaintenanceWindowsForTargetCommand, } from "../commands/DescribeMaintenanceWindowsForTargetCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMaintenanceWindowsForTargetCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMaintenanceWindowsForTarget(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 paginateDescribeMaintenanceWindowsForTarget = createPaginator(SSMClient, DescribeMaintenanceWindowsForTargetCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeMaintenanceWindowsCommand, } from "../commands/DescribeMaintenanceWindowsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMaintenanceWindowsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMaintenanceWindows(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 paginateDescribeMaintenanceWindows = createPaginator(SSMClient, DescribeMaintenanceWindowsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeOpsItemsCommand, } from "../commands/DescribeOpsItemsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeOpsItemsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeOpsItems(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 paginateDescribeOpsItems = createPaginator(SSMClient, DescribeOpsItemsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeParametersCommand, } from "../commands/DescribeParametersCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeParametersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeParameters(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 paginateDescribeParameters = createPaginator(SSMClient, DescribeParametersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribePatchBaselinesCommand, } from "../commands/DescribePatchBaselinesCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribePatchBaselinesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribePatchBaselines(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 paginateDescribePatchBaselines = createPaginator(SSMClient, DescribePatchBaselinesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribePatchGroupsCommand, } from "../commands/DescribePatchGroupsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribePatchGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribePatchGroups(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 paginateDescribePatchGroups = createPaginator(SSMClient, DescribePatchGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribePatchPropertiesCommand, } from "../commands/DescribePatchPropertiesCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribePatchPropertiesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribePatchProperties(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 paginateDescribePatchProperties = createPaginator(SSMClient, DescribePatchPropertiesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeSessionsCommand, } from "../commands/DescribeSessionsCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeSessionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeSessions(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 paginateDescribeSessions = createPaginator(SSMClient, DescribeSessionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetInventoryCommand, } from "../commands/GetInventoryCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetInventoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetInventory(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 paginateGetInventory = createPaginator(SSMClient, GetInventoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetInventorySchemaCommand, } from "../commands/GetInventorySchemaCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetInventorySchemaCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetInventorySchema(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 paginateGetInventorySchema = createPaginator(SSMClient, GetInventorySchemaCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetOpsSummaryCommand, } from "../commands/GetOpsSummaryCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetOpsSummaryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetOpsSummary(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 paginateGetOpsSummary = createPaginator(SSMClient, GetOpsSummaryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetParameterHistoryCommand, } from "../commands/GetParameterHistoryCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetParameterHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetParameterHistory(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 paginateGetParameterHistory = createPaginator(SSMClient, GetParameterHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetParametersByPathCommand, } from "../commands/GetParametersByPathCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetParametersByPathCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetParametersByPath(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 paginateGetParametersByPath = createPaginator(SSMClient, GetParametersByPathCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetResourcePoliciesCommand, } from "../commands/GetResourcePoliciesCommand";
|
|
2
3
|
import { SSMClient } from "../SSMClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetResourcePoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetResourcePolicies(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 paginateGetResourcePolicies = createPaginator(SSMClient, GetResourcePoliciesCommand, "NextToken", "NextToken", "MaxResults");
|