@aws-sdk/client-rum 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.
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateBatchGetRumMetricDefinitions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const BatchGetRumMetricDefinitionsCommand_1 = require("../commands/BatchGetRumMetricDefinitionsCommand");
5
6
  const RUMClient_1 = require("../RUMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new BatchGetRumMetricDefinitionsCommand_1.BatchGetRumMetricDefinitionsCommand(input), ...args);
8
- };
9
- async function* paginateBatchGetRumMetricDefinitions(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 RUMClient_1.RUMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RUM | RUMClient");
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.paginateBatchGetRumMetricDefinitions = paginateBatchGetRumMetricDefinitions;
7
+ exports.paginateBatchGetRumMetricDefinitions = (0, core_1.createPaginator)(RUMClient_1.RUMClient, BatchGetRumMetricDefinitionsCommand_1.BatchGetRumMetricDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetAppMonitorData = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetAppMonitorDataCommand_1 = require("../commands/GetAppMonitorDataCommand");
5
6
  const RUMClient_1 = require("../RUMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetAppMonitorDataCommand_1.GetAppMonitorDataCommand(input), ...args);
8
- };
9
- async function* paginateGetAppMonitorData(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 RUMClient_1.RUMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RUM | RUMClient");
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.paginateGetAppMonitorData = paginateGetAppMonitorData;
7
+ exports.paginateGetAppMonitorData = (0, core_1.createPaginator)(RUMClient_1.RUMClient, GetAppMonitorDataCommand_1.GetAppMonitorDataCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAppMonitors = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAppMonitorsCommand_1 = require("../commands/ListAppMonitorsCommand");
5
6
  const RUMClient_1 = require("../RUMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAppMonitorsCommand_1.ListAppMonitorsCommand(input), ...args);
8
- };
9
- async function* paginateListAppMonitors(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 RUMClient_1.RUMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RUM | RUMClient");
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.paginateListAppMonitors = paginateListAppMonitors;
7
+ exports.paginateListAppMonitors = (0, core_1.createPaginator)(RUMClient_1.RUMClient, ListAppMonitorsCommand_1.ListAppMonitorsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListRumMetricsDestinations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListRumMetricsDestinationsCommand_1 = require("../commands/ListRumMetricsDestinationsCommand");
5
6
  const RUMClient_1 = require("../RUMClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListRumMetricsDestinationsCommand_1.ListRumMetricsDestinationsCommand(input), ...args);
8
- };
9
- async function* paginateListRumMetricsDestinations(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 RUMClient_1.RUMClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RUM | RUMClient");
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.paginateListRumMetricsDestinations = paginateListRumMetricsDestinations;
7
+ exports.paginateListRumMetricsDestinations = (0, core_1.createPaginator)(RUMClient_1.RUMClient, ListRumMetricsDestinationsCommand_1.ListRumMetricsDestinationsCommand, "NextToken", "NextToken", "MaxResults");