@aws-sdk/client-xray 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/BatchGetTracesPaginator.js +2 -23
- package/dist-cjs/pagination/GetGroupsPaginator.js +2 -23
- package/dist-cjs/pagination/GetInsightEventsPaginator.js +2 -24
- package/dist-cjs/pagination/GetInsightSummariesPaginator.js +2 -24
- package/dist-cjs/pagination/GetSamplingRulesPaginator.js +2 -23
- package/dist-cjs/pagination/GetSamplingStatisticSummariesPaginator.js +2 -23
- package/dist-cjs/pagination/GetServiceGraphPaginator.js +2 -23
- package/dist-cjs/pagination/GetTimeSeriesServiceStatisticsPaginator.js +2 -23
- package/dist-cjs/pagination/GetTraceGraphPaginator.js +2 -23
- package/dist-cjs/pagination/GetTraceSummariesPaginator.js +2 -23
- package/dist-cjs/pagination/ListResourcePoliciesPaginator.js +2 -23
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -23
- package/dist-cjs/protocols/Aws_restJson1.js +121 -331
- package/dist-es/pagination/BatchGetTracesPaginator.js +2 -22
- package/dist-es/pagination/GetGroupsPaginator.js +2 -22
- package/dist-es/pagination/GetInsightEventsPaginator.js +2 -23
- package/dist-es/pagination/GetInsightSummariesPaginator.js +2 -23
- package/dist-es/pagination/GetSamplingRulesPaginator.js +2 -22
- package/dist-es/pagination/GetSamplingStatisticSummariesPaginator.js +2 -22
- package/dist-es/pagination/GetServiceGraphPaginator.js +2 -22
- package/dist-es/pagination/GetTimeSeriesServiceStatisticsPaginator.js +2 -22
- package/dist-es/pagination/GetTraceGraphPaginator.js +2 -22
- package/dist-es/pagination/GetTraceSummariesPaginator.js +2 -22
- package/dist-es/pagination/ListResourcePoliciesPaginator.js +2 -22
- package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -22
- package/dist-es/protocols/Aws_restJson1.js +121 -331
- package/dist-types/pagination/BatchGetTracesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetInsightEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetInsightSummariesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetSamplingRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetSamplingStatisticSummariesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetServiceGraphPaginator.d.ts +1 -1
- package/dist-types/pagination/GetTimeSeriesServiceStatisticsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetTraceGraphPaginator.d.ts +1 -1
- package/dist-types/pagination/GetTraceSummariesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourcePoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/BatchGetTracesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetInsightEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetInsightSummariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetSamplingRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetSamplingStatisticSummariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetServiceGraphPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetTimeSeriesServiceStatisticsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetTraceGraphPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetTraceSummariesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourcePoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.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.paginateBatchGetTraces = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const BatchGetTracesCommand_1 = require("../commands/BatchGetTracesCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new BatchGetTracesCommand_1.BatchGetTracesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateBatchGetTraces(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateBatchGetTraces = paginateBatchGetTraces;
|
|
7
|
+
exports.paginateBatchGetTraces = (0, core_1.createPaginator)(XRayClient_1.XRayClient, BatchGetTracesCommand_1.BatchGetTracesCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetGroupsCommand_1 = require("../commands/GetGroupsCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetGroupsCommand_1.GetGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetGroups(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateGetGroups = paginateGetGroups;
|
|
7
|
+
exports.paginateGetGroups = (0, core_1.createPaginator)(XRayClient_1.XRayClient, GetGroupsCommand_1.GetGroupsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetInsightEvents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetInsightEventsCommand_1 = require("../commands/GetInsightEventsCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetInsightEventsCommand_1.GetInsightEventsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetInsightEvents(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 XRayClient_1.XRayClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateGetInsightEvents = paginateGetInsightEvents;
|
|
7
|
+
exports.paginateGetInsightEvents = (0, core_1.createPaginator)(XRayClient_1.XRayClient, GetInsightEventsCommand_1.GetInsightEventsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetInsightSummaries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetInsightSummariesCommand_1 = require("../commands/GetInsightSummariesCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetInsightSummariesCommand_1.GetInsightSummariesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetInsightSummaries(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 XRayClient_1.XRayClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateGetInsightSummaries = paginateGetInsightSummaries;
|
|
7
|
+
exports.paginateGetInsightSummaries = (0, core_1.createPaginator)(XRayClient_1.XRayClient, GetInsightSummariesCommand_1.GetInsightSummariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetSamplingRules = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetSamplingRulesCommand_1 = require("../commands/GetSamplingRulesCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetSamplingRulesCommand_1.GetSamplingRulesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetSamplingRules(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateGetSamplingRules = paginateGetSamplingRules;
|
|
7
|
+
exports.paginateGetSamplingRules = (0, core_1.createPaginator)(XRayClient_1.XRayClient, GetSamplingRulesCommand_1.GetSamplingRulesCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetSamplingStatisticSummaries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetSamplingStatisticSummariesCommand_1 = require("../commands/GetSamplingStatisticSummariesCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetSamplingStatisticSummariesCommand_1.GetSamplingStatisticSummariesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetSamplingStatisticSummaries(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateGetSamplingStatisticSummaries = paginateGetSamplingStatisticSummaries;
|
|
7
|
+
exports.paginateGetSamplingStatisticSummaries = (0, core_1.createPaginator)(XRayClient_1.XRayClient, GetSamplingStatisticSummariesCommand_1.GetSamplingStatisticSummariesCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetServiceGraph = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetServiceGraphCommand_1 = require("../commands/GetServiceGraphCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetServiceGraphCommand_1.GetServiceGraphCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetServiceGraph(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateGetServiceGraph = paginateGetServiceGraph;
|
|
7
|
+
exports.paginateGetServiceGraph = (0, core_1.createPaginator)(XRayClient_1.XRayClient, GetServiceGraphCommand_1.GetServiceGraphCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetTimeSeriesServiceStatistics = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetTimeSeriesServiceStatisticsCommand_1 = require("../commands/GetTimeSeriesServiceStatisticsCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetTimeSeriesServiceStatisticsCommand_1.GetTimeSeriesServiceStatisticsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetTimeSeriesServiceStatistics(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateGetTimeSeriesServiceStatistics = paginateGetTimeSeriesServiceStatistics;
|
|
7
|
+
exports.paginateGetTimeSeriesServiceStatistics = (0, core_1.createPaginator)(XRayClient_1.XRayClient, GetTimeSeriesServiceStatisticsCommand_1.GetTimeSeriesServiceStatisticsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetTraceGraph = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetTraceGraphCommand_1 = require("../commands/GetTraceGraphCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetTraceGraphCommand_1.GetTraceGraphCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetTraceGraph(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateGetTraceGraph = paginateGetTraceGraph;
|
|
7
|
+
exports.paginateGetTraceGraph = (0, core_1.createPaginator)(XRayClient_1.XRayClient, GetTraceGraphCommand_1.GetTraceGraphCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetTraceSummaries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetTraceSummariesCommand_1 = require("../commands/GetTraceSummariesCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetTraceSummariesCommand_1.GetTraceSummariesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetTraceSummaries(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateGetTraceSummaries = paginateGetTraceSummaries;
|
|
7
|
+
exports.paginateGetTraceSummaries = (0, core_1.createPaginator)(XRayClient_1.XRayClient, GetTraceSummariesCommand_1.GetTraceSummariesCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourcePolicies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourcePoliciesCommand_1 = require("../commands/ListResourcePoliciesCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourcePoliciesCommand_1.ListResourcePoliciesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourcePolicies(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateListResourcePolicies = paginateListResourcePolicies;
|
|
7
|
+
exports.paginateListResourcePolicies = (0, core_1.createPaginator)(XRayClient_1.XRayClient, ListResourcePoliciesCommand_1.ListResourcePoliciesCommand, "NextToken", "NextToken", "");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTagsForResource = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
|
|
5
6
|
const XRayClient_1 = require("../XRayClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTagsForResource(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 XRayClient_1.XRayClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected XRay | XRayClient");
|
|
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.paginateListTagsForResource = paginateListTagsForResource;
|
|
7
|
+
exports.paginateListTagsForResource = (0, core_1.createPaginator)(XRayClient_1.XRayClient, ListTagsForResourceCommand_1.ListTagsForResourceCommand, "NextToken", "NextToken", "");
|