@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.
Files changed (51) hide show
  1. package/dist-cjs/pagination/BatchGetTracesPaginator.js +2 -23
  2. package/dist-cjs/pagination/GetGroupsPaginator.js +2 -23
  3. package/dist-cjs/pagination/GetInsightEventsPaginator.js +2 -24
  4. package/dist-cjs/pagination/GetInsightSummariesPaginator.js +2 -24
  5. package/dist-cjs/pagination/GetSamplingRulesPaginator.js +2 -23
  6. package/dist-cjs/pagination/GetSamplingStatisticSummariesPaginator.js +2 -23
  7. package/dist-cjs/pagination/GetServiceGraphPaginator.js +2 -23
  8. package/dist-cjs/pagination/GetTimeSeriesServiceStatisticsPaginator.js +2 -23
  9. package/dist-cjs/pagination/GetTraceGraphPaginator.js +2 -23
  10. package/dist-cjs/pagination/GetTraceSummariesPaginator.js +2 -23
  11. package/dist-cjs/pagination/ListResourcePoliciesPaginator.js +2 -23
  12. package/dist-cjs/pagination/ListTagsForResourcePaginator.js +2 -23
  13. package/dist-cjs/protocols/Aws_restJson1.js +121 -331
  14. package/dist-es/pagination/BatchGetTracesPaginator.js +2 -22
  15. package/dist-es/pagination/GetGroupsPaginator.js +2 -22
  16. package/dist-es/pagination/GetInsightEventsPaginator.js +2 -23
  17. package/dist-es/pagination/GetInsightSummariesPaginator.js +2 -23
  18. package/dist-es/pagination/GetSamplingRulesPaginator.js +2 -22
  19. package/dist-es/pagination/GetSamplingStatisticSummariesPaginator.js +2 -22
  20. package/dist-es/pagination/GetServiceGraphPaginator.js +2 -22
  21. package/dist-es/pagination/GetTimeSeriesServiceStatisticsPaginator.js +2 -22
  22. package/dist-es/pagination/GetTraceGraphPaginator.js +2 -22
  23. package/dist-es/pagination/GetTraceSummariesPaginator.js +2 -22
  24. package/dist-es/pagination/ListResourcePoliciesPaginator.js +2 -22
  25. package/dist-es/pagination/ListTagsForResourcePaginator.js +2 -22
  26. package/dist-es/protocols/Aws_restJson1.js +121 -331
  27. package/dist-types/pagination/BatchGetTracesPaginator.d.ts +1 -1
  28. package/dist-types/pagination/GetGroupsPaginator.d.ts +1 -1
  29. package/dist-types/pagination/GetInsightEventsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/GetInsightSummariesPaginator.d.ts +1 -1
  31. package/dist-types/pagination/GetSamplingRulesPaginator.d.ts +1 -1
  32. package/dist-types/pagination/GetSamplingStatisticSummariesPaginator.d.ts +1 -1
  33. package/dist-types/pagination/GetServiceGraphPaginator.d.ts +1 -1
  34. package/dist-types/pagination/GetTimeSeriesServiceStatisticsPaginator.d.ts +1 -1
  35. package/dist-types/pagination/GetTraceGraphPaginator.d.ts +1 -1
  36. package/dist-types/pagination/GetTraceSummariesPaginator.d.ts +1 -1
  37. package/dist-types/pagination/ListResourcePoliciesPaginator.d.ts +1 -1
  38. package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +1 -1
  39. package/dist-types/ts3.4/pagination/BatchGetTracesPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/GetGroupsPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/GetInsightEventsPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/GetInsightSummariesPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/GetSamplingRulesPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/GetSamplingStatisticSummariesPaginator.d.ts +3 -3
  45. package/dist-types/ts3.4/pagination/GetServiceGraphPaginator.d.ts +3 -3
  46. package/dist-types/ts3.4/pagination/GetTimeSeriesServiceStatisticsPaginator.d.ts +3 -3
  47. package/dist-types/ts3.4/pagination/GetTraceGraphPaginator.d.ts +3 -3
  48. package/dist-types/ts3.4/pagination/GetTraceSummariesPaginator.d.ts +3 -3
  49. package/dist-types/ts3.4/pagination/ListResourcePoliciesPaginator.d.ts +3 -3
  50. package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +3 -3
  51. package/package.json +7 -6
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { BatchGetTracesCommand, } from "../commands/BatchGetTracesCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new BatchGetTracesCommand(input), ...args);
5
- };
6
- export async function* paginateBatchGetTraces(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateBatchGetTraces = createPaginator(XRayClient, BatchGetTracesCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetGroupsCommand } from "../commands/GetGroupsCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetGroupsCommand(input), ...args);
5
- };
6
- export async function* paginateGetGroups(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateGetGroups = createPaginator(XRayClient, GetGroupsCommand, "NextToken", "NextToken", "");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetInsightEventsCommand, } from "../commands/GetInsightEventsCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetInsightEventsCommand(input), ...args);
5
- };
6
- export async function* paginateGetInsightEvents(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 XRayClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateGetInsightEvents = createPaginator(XRayClient, GetInsightEventsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetInsightSummariesCommand, } from "../commands/GetInsightSummariesCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetInsightSummariesCommand(input), ...args);
5
- };
6
- export async function* paginateGetInsightSummaries(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 XRayClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateGetInsightSummaries = createPaginator(XRayClient, GetInsightSummariesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetSamplingRulesCommand, } from "../commands/GetSamplingRulesCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetSamplingRulesCommand(input), ...args);
5
- };
6
- export async function* paginateGetSamplingRules(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateGetSamplingRules = createPaginator(XRayClient, GetSamplingRulesCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetSamplingStatisticSummariesCommand, } from "../commands/GetSamplingStatisticSummariesCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetSamplingStatisticSummariesCommand(input), ...args);
5
- };
6
- export async function* paginateGetSamplingStatisticSummaries(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateGetSamplingStatisticSummaries = createPaginator(XRayClient, GetSamplingStatisticSummariesCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetServiceGraphCommand, } from "../commands/GetServiceGraphCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetServiceGraphCommand(input), ...args);
5
- };
6
- export async function* paginateGetServiceGraph(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateGetServiceGraph = createPaginator(XRayClient, GetServiceGraphCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetTimeSeriesServiceStatisticsCommand, } from "../commands/GetTimeSeriesServiceStatisticsCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetTimeSeriesServiceStatisticsCommand(input), ...args);
5
- };
6
- export async function* paginateGetTimeSeriesServiceStatistics(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateGetTimeSeriesServiceStatistics = createPaginator(XRayClient, GetTimeSeriesServiceStatisticsCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetTraceGraphCommand, } from "../commands/GetTraceGraphCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetTraceGraphCommand(input), ...args);
5
- };
6
- export async function* paginateGetTraceGraph(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateGetTraceGraph = createPaginator(XRayClient, GetTraceGraphCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetTraceSummariesCommand, } from "../commands/GetTraceSummariesCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetTraceSummariesCommand(input), ...args);
5
- };
6
- export async function* paginateGetTraceSummaries(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateGetTraceSummaries = createPaginator(XRayClient, GetTraceSummariesCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListResourcePoliciesCommand, } from "../commands/ListResourcePoliciesCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListResourcePoliciesCommand(input), ...args);
5
- };
6
- export async function* paginateListResourcePolicies(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateListResourcePolicies = createPaginator(XRayClient, ListResourcePoliciesCommand, "NextToken", "NextToken", "");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListTagsForResourceCommand, } from "../commands/ListTagsForResourceCommand";
2
3
  import { XRayClient } from "../XRayClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListTagsForResourceCommand(input), ...args);
5
- };
6
- export async function* paginateListTagsForResource(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 XRayClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected XRay | XRayClient");
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 paginateListTagsForResource = createPaginator(XRayClient, ListTagsForResourceCommand, "NextToken", "NextToken", "");