@aws-sdk/client-codeguruprofiler 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/GetFindingsReportAccountSummaryPaginator.js +2 -24
- package/dist-cjs/pagination/ListFindingsReportsPaginator.js +2 -24
- package/dist-cjs/pagination/ListProfileTimesPaginator.js +2 -24
- package/dist-cjs/pagination/ListProfilingGroupsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +180 -352
- package/dist-es/pagination/GetFindingsReportAccountSummaryPaginator.js +2 -23
- package/dist-es/pagination/ListFindingsReportsPaginator.js +2 -23
- package/dist-es/pagination/ListProfileTimesPaginator.js +2 -23
- package/dist-es/pagination/ListProfilingGroupsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +181 -353
- package/dist-types/pagination/GetFindingsReportAccountSummaryPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFindingsReportsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProfileTimesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProfilingGroupsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetFindingsReportAccountSummaryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFindingsReportsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProfileTimesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProfilingGroupsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeGuruProfilerClient } from "../CodeGuruProfilerClient";
|
|
2
3
|
import { GetFindingsReportAccountSummaryCommand, } from "../commands/GetFindingsReportAccountSummaryCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetFindingsReportAccountSummaryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetFindingsReportAccountSummary(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 CodeGuruProfilerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
|
|
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 paginateGetFindingsReportAccountSummary = createPaginator(CodeGuruProfilerClient, GetFindingsReportAccountSummaryCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeGuruProfilerClient } from "../CodeGuruProfilerClient";
|
|
2
3
|
import { ListFindingsReportsCommand, } from "../commands/ListFindingsReportsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFindingsReportsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFindingsReports(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 CodeGuruProfilerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
|
|
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 paginateListFindingsReports = createPaginator(CodeGuruProfilerClient, ListFindingsReportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeGuruProfilerClient } from "../CodeGuruProfilerClient";
|
|
2
3
|
import { ListProfileTimesCommand, } from "../commands/ListProfileTimesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProfileTimesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProfileTimes(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 CodeGuruProfilerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
|
|
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 paginateListProfileTimes = createPaginator(CodeGuruProfilerClient, ListProfileTimesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeGuruProfilerClient } from "../CodeGuruProfilerClient";
|
|
2
3
|
import { ListProfilingGroupsCommand, } from "../commands/ListProfilingGroupsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListProfilingGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListProfilingGroups(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 CodeGuruProfilerClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
|
|
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 paginateListProfilingGroups = createPaginator(CodeGuruProfilerClient, ListProfilingGroupsCommand, "nextToken", "nextToken", "maxResults");
|