@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,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeOrganizationResourceCollectionHealthCommand, } from "../commands/DescribeOrganizationResourceCollectionHealthCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeOrganizationResourceCollectionHealthCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeOrganizationResourceCollectionHealth(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof DevOpsGuruClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateDescribeOrganizationResourceCollectionHealth = createPaginator(DevOpsGuruClient, DescribeOrganizationResourceCollectionHealthCommand, "NextToken", "NextToken", "");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeResourceCollectionHealthCommand, } from "../commands/DescribeResourceCollectionHealthCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeResourceCollectionHealthCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeResourceCollectionHealth(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof DevOpsGuruClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateDescribeResourceCollectionHealth = createPaginator(DevOpsGuruClient, DescribeResourceCollectionHealthCommand, "NextToken", "NextToken", "");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetCostEstimationCommand, } from "../commands/GetCostEstimationCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetCostEstimationCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetCostEstimation(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof DevOpsGuruClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateGetCostEstimation = createPaginator(DevOpsGuruClient, GetCostEstimationCommand, "NextToken", "NextToken", "");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetResourceCollectionCommand, } from "../commands/GetResourceCollectionCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetResourceCollectionCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetResourceCollection(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof DevOpsGuruClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateGetResourceCollection = createPaginator(DevOpsGuruClient, GetResourceCollectionCommand, "NextToken", "NextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAnomaliesForInsightCommand, } from "../commands/ListAnomaliesForInsightCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAnomaliesForInsightCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAnomaliesForInsight(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 DevOpsGuruClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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 paginateListAnomaliesForInsight = createPaginator(DevOpsGuruClient, ListAnomaliesForInsightCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAnomalousLogGroupsCommand, } from "../commands/ListAnomalousLogGroupsCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAnomalousLogGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAnomalousLogGroups(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 DevOpsGuruClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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 paginateListAnomalousLogGroups = createPaginator(DevOpsGuruClient, ListAnomalousLogGroupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEventsCommand } from "../commands/ListEventsCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEvents(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 DevOpsGuruClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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 paginateListEvents = createPaginator(DevOpsGuruClient, ListEventsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInsightsCommand, } from "../commands/ListInsightsCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInsightsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInsights(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 DevOpsGuruClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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 paginateListInsights = createPaginator(DevOpsGuruClient, ListInsightsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMonitoredResourcesCommand, } from "../commands/ListMonitoredResourcesCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMonitoredResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMonitoredResources(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 DevOpsGuruClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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 paginateListMonitoredResources = createPaginator(DevOpsGuruClient, ListMonitoredResourcesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListNotificationChannelsCommand, } from "../commands/ListNotificationChannelsCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListNotificationChannelsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListNotificationChannels(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof DevOpsGuruClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListNotificationChannels = createPaginator(DevOpsGuruClient, ListNotificationChannelsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListOrganizationInsightsCommand, } from "../commands/ListOrganizationInsightsCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListOrganizationInsightsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListOrganizationInsights(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 DevOpsGuruClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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 paginateListOrganizationInsights = createPaginator(DevOpsGuruClient, ListOrganizationInsightsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRecommendationsCommand, } from "../commands/ListRecommendationsCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRecommendationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRecommendations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
if (config.client instanceof DevOpsGuruClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.NextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListRecommendations = createPaginator(DevOpsGuruClient, ListRecommendationsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchInsightsCommand, } from "../commands/SearchInsightsCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchInsightsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchInsights(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 DevOpsGuruClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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 paginateSearchInsights = createPaginator(DevOpsGuruClient, SearchInsightsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { SearchOrganizationInsightsCommand, } from "../commands/SearchOrganizationInsightsCommand";
|
|
2
3
|
import { DevOpsGuruClient } from "../DevOpsGuruClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new SearchOrganizationInsightsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateSearchOrganizationInsights(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 DevOpsGuruClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
|
|
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 paginateSearchOrganizationInsights = createPaginator(DevOpsGuruClient, SearchOrganizationInsightsCommand, "NextToken", "NextToken", "MaxResults");
|