@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,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetFindingsReportAccountSummary = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeGuruProfilerClient_1 = require("../CodeGuruProfilerClient");
|
|
5
6
|
const GetFindingsReportAccountSummaryCommand_1 = require("../commands/GetFindingsReportAccountSummaryCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetFindingsReportAccountSummaryCommand_1.GetFindingsReportAccountSummaryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetFindingsReportAccountSummary(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 CodeGuruProfilerClient_1.CodeGuruProfilerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
|
|
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.paginateGetFindingsReportAccountSummary = paginateGetFindingsReportAccountSummary;
|
|
7
|
+
exports.paginateGetFindingsReportAccountSummary = (0, core_1.createPaginator)(CodeGuruProfilerClient_1.CodeGuruProfilerClient, GetFindingsReportAccountSummaryCommand_1.GetFindingsReportAccountSummaryCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFindingsReports = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeGuruProfilerClient_1 = require("../CodeGuruProfilerClient");
|
|
5
6
|
const ListFindingsReportsCommand_1 = require("../commands/ListFindingsReportsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFindingsReportsCommand_1.ListFindingsReportsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFindingsReports(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 CodeGuruProfilerClient_1.CodeGuruProfilerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
|
|
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.paginateListFindingsReports = paginateListFindingsReports;
|
|
7
|
+
exports.paginateListFindingsReports = (0, core_1.createPaginator)(CodeGuruProfilerClient_1.CodeGuruProfilerClient, ListFindingsReportsCommand_1.ListFindingsReportsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListProfileTimes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeGuruProfilerClient_1 = require("../CodeGuruProfilerClient");
|
|
5
6
|
const ListProfileTimesCommand_1 = require("../commands/ListProfileTimesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListProfileTimesCommand_1.ListProfileTimesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListProfileTimes(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 CodeGuruProfilerClient_1.CodeGuruProfilerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
|
|
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.paginateListProfileTimes = paginateListProfileTimes;
|
|
7
|
+
exports.paginateListProfileTimes = (0, core_1.createPaginator)(CodeGuruProfilerClient_1.CodeGuruProfilerClient, ListProfileTimesCommand_1.ListProfileTimesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListProfilingGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeGuruProfilerClient_1 = require("../CodeGuruProfilerClient");
|
|
5
6
|
const ListProfilingGroupsCommand_1 = require("../commands/ListProfilingGroupsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListProfilingGroupsCommand_1.ListProfilingGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListProfilingGroups(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 CodeGuruProfilerClient_1.CodeGuruProfilerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeGuruProfiler | CodeGuruProfilerClient");
|
|
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.paginateListProfilingGroups = paginateListProfilingGroups;
|
|
7
|
+
exports.paginateListProfilingGroups = (0, core_1.createPaginator)(CodeGuruProfilerClient_1.CodeGuruProfilerClient, ListProfilingGroupsCommand_1.ListProfilingGroupsCommand, "nextToken", "nextToken", "maxResults");
|