remove node_modules and .gitignore them
This commit is contained in:
Generated
Vendored
-29
@@ -1,29 +0,0 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.paginateDescribeMaintenanceWindowTargets = void 0;
|
||||
const DescribeMaintenanceWindowTargetsCommand_1 = require("../commands/DescribeMaintenanceWindowTargetsCommand");
|
||||
const SSMClient_1 = require("../SSMClient");
|
||||
const makePagedClientRequest = async (client, input, ...args) => {
|
||||
return await client.send(new DescribeMaintenanceWindowTargetsCommand_1.DescribeMaintenanceWindowTargetsCommand(input), ...args);
|
||||
};
|
||||
async function* paginateDescribeMaintenanceWindowTargets(config, input, ...additionalArguments) {
|
||||
let token = config.startingToken || undefined;
|
||||
let hasNext = true;
|
||||
let page;
|
||||
while (hasNext) {
|
||||
input.NextToken = token;
|
||||
input["MaxResults"] = config.pageSize;
|
||||
if (config.client instanceof SSMClient_1.SSMClient) {
|
||||
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
||||
}
|
||||
else {
|
||||
throw new Error("Invalid client, expected SSM | SSMClient");
|
||||
}
|
||||
yield page;
|
||||
const prevToken = token;
|
||||
token = page.NextToken;
|
||||
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
exports.paginateDescribeMaintenanceWindowTargets = paginateDescribeMaintenanceWindowTargets;
|
||||
Reference in New Issue
Block a user