@aws-sdk/client-devops-guru 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/DescribeOrganizationResourceCollectionHealthPaginator.js +2 -23
- package/dist-cjs/pagination/DescribeResourceCollectionHealthPaginator.js +2 -23
- package/dist-cjs/pagination/GetCostEstimationPaginator.js +2 -23
- package/dist-cjs/pagination/GetResourceCollectionPaginator.js +2 -23
- package/dist-cjs/pagination/ListAnomaliesForInsightPaginator.js +2 -24
- package/dist-cjs/pagination/ListAnomalousLogGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEventsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInsightsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMonitoredResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListNotificationChannelsPaginator.js +2 -23
- package/dist-cjs/pagination/ListOrganizationInsightsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRecommendationsPaginator.js +2 -23
- package/dist-cjs/pagination/SearchInsightsPaginator.js +2 -24
- package/dist-cjs/pagination/SearchOrganizationInsightsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +143 -369
- package/dist-es/pagination/DescribeOrganizationResourceCollectionHealthPaginator.js +2 -22
- package/dist-es/pagination/DescribeResourceCollectionHealthPaginator.js +2 -22
- package/dist-es/pagination/GetCostEstimationPaginator.js +2 -22
- package/dist-es/pagination/GetResourceCollectionPaginator.js +2 -22
- package/dist-es/pagination/ListAnomaliesForInsightPaginator.js +2 -23
- package/dist-es/pagination/ListAnomalousLogGroupsPaginator.js +2 -23
- package/dist-es/pagination/ListEventsPaginator.js +2 -23
- package/dist-es/pagination/ListInsightsPaginator.js +2 -23
- package/dist-es/pagination/ListMonitoredResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListNotificationChannelsPaginator.js +2 -22
- package/dist-es/pagination/ListOrganizationInsightsPaginator.js +2 -23
- package/dist-es/pagination/ListRecommendationsPaginator.js +2 -22
- package/dist-es/pagination/SearchInsightsPaginator.js +2 -23
- package/dist-es/pagination/SearchOrganizationInsightsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +144 -370
- package/dist-types/pagination/DescribeOrganizationResourceCollectionHealthPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeResourceCollectionHealthPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCostEstimationPaginator.d.ts +1 -1
- package/dist-types/pagination/GetResourceCollectionPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAnomaliesForInsightPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAnomalousLogGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInsightsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMonitoredResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListNotificationChannelsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOrganizationInsightsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRecommendationsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchInsightsPaginator.d.ts +1 -1
- package/dist-types/pagination/SearchOrganizationInsightsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeOrganizationResourceCollectionHealthPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeResourceCollectionHealthPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCostEstimationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetResourceCollectionPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAnomaliesForInsightPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAnomalousLogGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInsightsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMonitoredResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListNotificationChannelsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOrganizationInsightsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchInsightsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/SearchOrganizationInsightsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeOrganizationResourceCollectionHealth = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeOrganizationResourceCollectionHealthCommand_1 = require("../commands/DescribeOrganizationResourceCollectionHealthCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeOrganizationResourceCollectionHealthCommand_1.DescribeOrganizationResourceCollectionHealthCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeOrganizationResourceCollectionHealth(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateDescribeOrganizationResourceCollectionHealth = paginateDescribeOrganizationResourceCollectionHealth;
|
|
7
|
+
exports.paginateDescribeOrganizationResourceCollectionHealth = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, DescribeOrganizationResourceCollectionHealthCommand_1.DescribeOrganizationResourceCollectionHealthCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeResourceCollectionHealth = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeResourceCollectionHealthCommand_1 = require("../commands/DescribeResourceCollectionHealthCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeResourceCollectionHealthCommand_1.DescribeResourceCollectionHealthCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeResourceCollectionHealth(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateDescribeResourceCollectionHealth = paginateDescribeResourceCollectionHealth;
|
|
7
|
+
exports.paginateDescribeResourceCollectionHealth = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, DescribeResourceCollectionHealthCommand_1.DescribeResourceCollectionHealthCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetCostEstimation = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetCostEstimationCommand_1 = require("../commands/GetCostEstimationCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetCostEstimationCommand_1.GetCostEstimationCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetCostEstimation(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateGetCostEstimation = paginateGetCostEstimation;
|
|
7
|
+
exports.paginateGetCostEstimation = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, GetCostEstimationCommand_1.GetCostEstimationCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetResourceCollection = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetResourceCollectionCommand_1 = require("../commands/GetResourceCollectionCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetResourceCollectionCommand_1.GetResourceCollectionCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetResourceCollection(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateGetResourceCollection = paginateGetResourceCollection;
|
|
7
|
+
exports.paginateGetResourceCollection = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, GetResourceCollectionCommand_1.GetResourceCollectionCommand, "NextToken", "NextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAnomaliesForInsight = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAnomaliesForInsightCommand_1 = require("../commands/ListAnomaliesForInsightCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAnomaliesForInsightCommand_1.ListAnomaliesForInsightCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAnomaliesForInsight(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 DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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.paginateListAnomaliesForInsight = paginateListAnomaliesForInsight;
|
|
7
|
+
exports.paginateListAnomaliesForInsight = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListAnomaliesForInsightCommand_1.ListAnomaliesForInsightCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAnomalousLogGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAnomalousLogGroupsCommand_1 = require("../commands/ListAnomalousLogGroupsCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAnomalousLogGroupsCommand_1.ListAnomalousLogGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAnomalousLogGroups(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 DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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.paginateListAnomalousLogGroups = paginateListAnomalousLogGroups;
|
|
7
|
+
exports.paginateListAnomalousLogGroups = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListAnomalousLogGroupsCommand_1.ListAnomalousLogGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEvents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListEventsCommand_1 = require("../commands/ListEventsCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListEventsCommand_1.ListEventsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListEvents(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 DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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.paginateListEvents = paginateListEvents;
|
|
7
|
+
exports.paginateListEvents = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListEventsCommand_1.ListEventsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListInsights = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListInsightsCommand_1 = require("../commands/ListInsightsCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListInsightsCommand_1.ListInsightsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListInsights(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 DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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.paginateListInsights = paginateListInsights;
|
|
7
|
+
exports.paginateListInsights = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListInsightsCommand_1.ListInsightsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMonitoredResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMonitoredResourcesCommand_1 = require("../commands/ListMonitoredResourcesCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMonitoredResourcesCommand_1.ListMonitoredResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMonitoredResources(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 DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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.paginateListMonitoredResources = paginateListMonitoredResources;
|
|
7
|
+
exports.paginateListMonitoredResources = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListMonitoredResourcesCommand_1.ListMonitoredResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListNotificationChannels = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListNotificationChannelsCommand_1 = require("../commands/ListNotificationChannelsCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListNotificationChannelsCommand_1.ListNotificationChannelsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListNotificationChannels(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListNotificationChannels = paginateListNotificationChannels;
|
|
7
|
+
exports.paginateListNotificationChannels = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListNotificationChannelsCommand_1.ListNotificationChannelsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOrganizationInsights = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOrganizationInsightsCommand_1 = require("../commands/ListOrganizationInsightsCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOrganizationInsightsCommand_1.ListOrganizationInsightsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOrganizationInsights(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 DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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.paginateListOrganizationInsights = paginateListOrganizationInsights;
|
|
7
|
+
exports.paginateListOrganizationInsights = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListOrganizationInsightsCommand_1.ListOrganizationInsightsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRecommendations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRecommendationsCommand_1 = require("../commands/ListRecommendationsCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRecommendationsCommand_1.ListRecommendationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRecommendations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
20
|
-
}
|
|
21
|
-
yield page;
|
|
22
|
-
const prevToken = token;
|
|
23
|
-
token = page.NextToken;
|
|
24
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
exports.paginateListRecommendations = paginateListRecommendations;
|
|
7
|
+
exports.paginateListRecommendations = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListRecommendationsCommand_1.ListRecommendationsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchInsights = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchInsightsCommand_1 = require("../commands/SearchInsightsCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchInsightsCommand_1.SearchInsightsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchInsights(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 DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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.paginateSearchInsights = paginateSearchInsights;
|
|
7
|
+
exports.paginateSearchInsights = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, SearchInsightsCommand_1.SearchInsightsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateSearchOrganizationInsights = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const SearchOrganizationInsightsCommand_1 = require("../commands/SearchOrganizationInsightsCommand");
|
|
5
6
|
const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new SearchOrganizationInsightsCommand_1.SearchOrganizationInsightsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateSearchOrganizationInsights(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 DevOpsGuruClient_1.DevOpsGuruClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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.paginateSearchOrganizationInsights = paginateSearchOrganizationInsights;
|
|
7
|
+
exports.paginateSearchOrganizationInsights = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, SearchOrganizationInsightsCommand_1.SearchOrganizationInsightsCommand, "NextToken", "NextToken", "MaxResults");
|