@aws-sdk/client-cloudwatch-logs 3.477.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/DescribeDeliveriesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeDeliveryDestinationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeDeliverySourcesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeDestinationsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeLogGroupsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeLogStreamsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeMetricFiltersPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeSubscriptionFiltersPaginator.js +2 -24
- package/dist-cjs/pagination/FilterLogEventsPaginator.js +2 -24
- package/dist-cjs/pagination/GetLogEventsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAnomaliesPaginator.js +2 -24
- package/dist-cjs/pagination/ListLogAnomalyDetectorsPaginator.js +2 -24
- package/dist-es/pagination/DescribeDeliveriesPaginator.js +2 -23
- package/dist-es/pagination/DescribeDeliveryDestinationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeDeliverySourcesPaginator.js +2 -23
- package/dist-es/pagination/DescribeDestinationsPaginator.js +2 -23
- package/dist-es/pagination/DescribeLogGroupsPaginator.js +2 -23
- package/dist-es/pagination/DescribeLogStreamsPaginator.js +2 -23
- package/dist-es/pagination/DescribeMetricFiltersPaginator.js +2 -23
- package/dist-es/pagination/DescribeSubscriptionFiltersPaginator.js +2 -23
- package/dist-es/pagination/FilterLogEventsPaginator.js +2 -23
- package/dist-es/pagination/GetLogEventsPaginator.js +2 -23
- package/dist-es/pagination/ListAnomaliesPaginator.js +2 -23
- package/dist-es/pagination/ListLogAnomalyDetectorsPaginator.js +2 -23
- package/dist-types/pagination/DescribeDeliveriesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeDeliveryDestinationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeDeliverySourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeDestinationsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeLogGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeLogStreamsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeMetricFiltersPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeSubscriptionFiltersPaginator.d.ts +1 -1
- package/dist-types/pagination/FilterLogEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetLogEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAnomaliesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLogAnomalyDetectorsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeDeliveriesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeDeliveryDestinationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeDeliverySourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeDestinationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeLogGroupsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeLogStreamsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeMetricFiltersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeSubscriptionFiltersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/FilterLogEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetLogEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAnomaliesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLogAnomalyDetectorsPaginator.d.ts +3 -3
- package/package.json +6 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeDeliveries = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const DescribeDeliveriesCommand_1 = require("../commands/DescribeDeliveriesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeDeliveriesCommand_1.DescribeDeliveriesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeDeliveries(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateDescribeDeliveries = paginateDescribeDeliveries;
|
|
7
|
+
exports.paginateDescribeDeliveries = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, DescribeDeliveriesCommand_1.DescribeDeliveriesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeDeliveryDestinations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const DescribeDeliveryDestinationsCommand_1 = require("../commands/DescribeDeliveryDestinationsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeDeliveryDestinationsCommand_1.DescribeDeliveryDestinationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeDeliveryDestinations(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateDescribeDeliveryDestinations = paginateDescribeDeliveryDestinations;
|
|
7
|
+
exports.paginateDescribeDeliveryDestinations = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, DescribeDeliveryDestinationsCommand_1.DescribeDeliveryDestinationsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeDeliverySources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const DescribeDeliverySourcesCommand_1 = require("../commands/DescribeDeliverySourcesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeDeliverySourcesCommand_1.DescribeDeliverySourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeDeliverySources(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateDescribeDeliverySources = paginateDescribeDeliverySources;
|
|
7
|
+
exports.paginateDescribeDeliverySources = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, DescribeDeliverySourcesCommand_1.DescribeDeliverySourcesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeDestinations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const DescribeDestinationsCommand_1 = require("../commands/DescribeDestinationsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeDestinationsCommand_1.DescribeDestinationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeDestinations(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateDescribeDestinations = paginateDescribeDestinations;
|
|
7
|
+
exports.paginateDescribeDestinations = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, DescribeDestinationsCommand_1.DescribeDestinationsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeLogGroups = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const DescribeLogGroupsCommand_1 = require("../commands/DescribeLogGroupsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeLogGroupsCommand_1.DescribeLogGroupsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeLogGroups(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateDescribeLogGroups = paginateDescribeLogGroups;
|
|
7
|
+
exports.paginateDescribeLogGroups = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, DescribeLogGroupsCommand_1.DescribeLogGroupsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeLogStreams = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const DescribeLogStreamsCommand_1 = require("../commands/DescribeLogStreamsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeLogStreamsCommand_1.DescribeLogStreamsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeLogStreams(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateDescribeLogStreams = paginateDescribeLogStreams;
|
|
7
|
+
exports.paginateDescribeLogStreams = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, DescribeLogStreamsCommand_1.DescribeLogStreamsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeMetricFilters = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const DescribeMetricFiltersCommand_1 = require("../commands/DescribeMetricFiltersCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeMetricFiltersCommand_1.DescribeMetricFiltersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeMetricFilters(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateDescribeMetricFilters = paginateDescribeMetricFilters;
|
|
7
|
+
exports.paginateDescribeMetricFilters = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, DescribeMetricFiltersCommand_1.DescribeMetricFiltersCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeSubscriptionFilters = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const DescribeSubscriptionFiltersCommand_1 = require("../commands/DescribeSubscriptionFiltersCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeSubscriptionFiltersCommand_1.DescribeSubscriptionFiltersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeSubscriptionFilters(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateDescribeSubscriptionFilters = paginateDescribeSubscriptionFilters;
|
|
7
|
+
exports.paginateDescribeSubscriptionFilters = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, DescribeSubscriptionFiltersCommand_1.DescribeSubscriptionFiltersCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateFilterLogEvents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const FilterLogEventsCommand_1 = require("../commands/FilterLogEventsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new FilterLogEventsCommand_1.FilterLogEventsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateFilterLogEvents(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateFilterLogEvents = paginateFilterLogEvents;
|
|
7
|
+
exports.paginateFilterLogEvents = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, FilterLogEventsCommand_1.FilterLogEventsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetLogEvents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const GetLogEventsCommand_1 = require("../commands/GetLogEventsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetLogEventsCommand_1.GetLogEventsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetLogEvents(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextForwardToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetLogEvents = paginateGetLogEvents;
|
|
7
|
+
exports.paginateGetLogEvents = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, GetLogEventsCommand_1.GetLogEventsCommand, "nextToken", "nextForwardToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAnomalies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const ListAnomaliesCommand_1 = require("../commands/ListAnomaliesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAnomaliesCommand_1.ListAnomaliesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAnomalies(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateListAnomalies = paginateListAnomalies;
|
|
7
|
+
exports.paginateListAnomalies = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, ListAnomaliesCommand_1.ListAnomaliesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListLogAnomalyDetectors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CloudWatchLogsClient_1 = require("../CloudWatchLogsClient");
|
|
5
6
|
const ListLogAnomalyDetectorsCommand_1 = require("../commands/ListLogAnomalyDetectorsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListLogAnomalyDetectorsCommand_1.ListLogAnomalyDetectorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListLogAnomalyDetectors(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["limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CloudWatchLogsClient_1.CloudWatchLogsClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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.paginateListLogAnomalyDetectors = paginateListLogAnomalyDetectors;
|
|
7
|
+
exports.paginateListLogAnomalyDetectors = (0, core_1.createPaginator)(CloudWatchLogsClient_1.CloudWatchLogsClient, ListLogAnomalyDetectorsCommand_1.ListLogAnomalyDetectorsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { DescribeDeliveriesCommand, } from "../commands/DescribeDeliveriesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeDeliveriesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeDeliveries(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateDescribeDeliveries = createPaginator(CloudWatchLogsClient, DescribeDeliveriesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { DescribeDeliveryDestinationsCommand, } from "../commands/DescribeDeliveryDestinationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeDeliveryDestinationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeDeliveryDestinations(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateDescribeDeliveryDestinations = createPaginator(CloudWatchLogsClient, DescribeDeliveryDestinationsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { DescribeDeliverySourcesCommand, } from "../commands/DescribeDeliverySourcesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeDeliverySourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeDeliverySources(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateDescribeDeliverySources = createPaginator(CloudWatchLogsClient, DescribeDeliverySourcesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { DescribeDestinationsCommand, } from "../commands/DescribeDestinationsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeDestinationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeDestinations(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateDescribeDestinations = createPaginator(CloudWatchLogsClient, DescribeDestinationsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { DescribeLogGroupsCommand, } from "../commands/DescribeLogGroupsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeLogGroupsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeLogGroups(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateDescribeLogGroups = createPaginator(CloudWatchLogsClient, DescribeLogGroupsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { DescribeLogStreamsCommand, } from "../commands/DescribeLogStreamsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeLogStreamsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeLogStreams(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateDescribeLogStreams = createPaginator(CloudWatchLogsClient, DescribeLogStreamsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { DescribeMetricFiltersCommand, } from "../commands/DescribeMetricFiltersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMetricFiltersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMetricFilters(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateDescribeMetricFilters = createPaginator(CloudWatchLogsClient, DescribeMetricFiltersCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { DescribeSubscriptionFiltersCommand, } from "../commands/DescribeSubscriptionFiltersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeSubscriptionFiltersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeSubscriptionFilters(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateDescribeSubscriptionFilters = createPaginator(CloudWatchLogsClient, DescribeSubscriptionFiltersCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { FilterLogEventsCommand, } from "../commands/FilterLogEventsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new FilterLogEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateFilterLogEvents(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateFilterLogEvents = createPaginator(CloudWatchLogsClient, FilterLogEventsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { GetLogEventsCommand, } from "../commands/GetLogEventsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetLogEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetLogEvents(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextForwardToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetLogEvents = createPaginator(CloudWatchLogsClient, GetLogEventsCommand, "nextToken", "nextForwardToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { ListAnomaliesCommand, } from "../commands/ListAnomaliesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAnomaliesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAnomalies(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateListAnomalies = createPaginator(CloudWatchLogsClient, ListAnomaliesCommand, "nextToken", "nextToken", "limit");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchLogsClient } from "../CloudWatchLogsClient";
|
|
2
3
|
import { ListLogAnomalyDetectorsCommand, } from "../commands/ListLogAnomalyDetectorsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListLogAnomalyDetectorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListLogAnomalyDetectors(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["limit"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchLogsClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatchLogs | CloudWatchLogsClient");
|
|
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 paginateListLogAnomalyDetectors = createPaginator(CloudWatchLogsClient, ListLogAnomalyDetectorsCommand, "nextToken", "nextToken", "limit");
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeDeliveries: (config: CloudWatchLogsPaginationConfiguration, input: DescribeDeliveriesCommandInput, ...rest: any[]) => Paginator<DescribeDeliveriesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeDeliveryDestinations: (config: CloudWatchLogsPaginationConfiguration, input: DescribeDeliveryDestinationsCommandInput, ...rest: any[]) => Paginator<DescribeDeliveryDestinationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeDeliverySources: (config: CloudWatchLogsPaginationConfiguration, input: DescribeDeliverySourcesCommandInput, ...rest: any[]) => Paginator<DescribeDeliverySourcesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeDestinations: (config: CloudWatchLogsPaginationConfiguration, input: DescribeDestinationsCommandInput, ...rest: any[]) => Paginator<DescribeDestinationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeLogGroups: (config: CloudWatchLogsPaginationConfiguration, input: DescribeLogGroupsCommandInput, ...rest: any[]) => Paginator<DescribeLogGroupsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeLogStreams: (config: CloudWatchLogsPaginationConfiguration, input: DescribeLogStreamsCommandInput, ...rest: any[]) => Paginator<DescribeLogStreamsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeMetricFilters: (config: CloudWatchLogsPaginationConfiguration, input: DescribeMetricFiltersCommandInput, ...rest: any[]) => Paginator<DescribeMetricFiltersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeSubscriptionFilters: (config: CloudWatchLogsPaginationConfiguration, input: DescribeSubscriptionFiltersCommandInput, ...rest: any[]) => Paginator<DescribeSubscriptionFiltersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateFilterLogEvents: (config: CloudWatchLogsPaginationConfiguration, input: FilterLogEventsCommandInput, ...rest: any[]) => Paginator<FilterLogEventsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetLogEvents: (config: CloudWatchLogsPaginationConfiguration, input: GetLogEventsCommandInput, ...rest: any[]) => Paginator<GetLogEventsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAnomalies: (config: CloudWatchLogsPaginationConfiguration, input: ListAnomaliesCommandInput, ...rest: any[]) => Paginator<ListAnomaliesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListLogAnomalyDetectors: (config: CloudWatchLogsPaginationConfiguration, input: ListLogAnomalyDetectorsCommandInput, ...rest: any[]) => Paginator<ListLogAnomalyDetectorsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeDeliveriesCommandOutput,
|
|
5
5
|
} from "../commands/DescribeDeliveriesCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeDeliveries: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: DescribeDeliveriesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeDeliveriesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeDeliveryDestinationsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeDeliveryDestinationsCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeDeliveryDestinations: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: DescribeDeliveryDestinationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeDeliveryDestinationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeDeliverySourcesCommandOutput,
|
|
5
5
|
} from "../commands/DescribeDeliverySourcesCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeDeliverySources: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: DescribeDeliverySourcesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeDeliverySourcesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeDestinationsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeDestinationsCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeDestinations: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: DescribeDestinationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeDestinationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeLogGroupsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeLogGroupsCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeLogGroups: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: DescribeLogGroupsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeLogGroupsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeLogStreamsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeLogStreamsCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeLogStreams: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: DescribeLogStreamsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeLogStreamsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeMetricFiltersCommandOutput,
|
|
5
5
|
} from "../commands/DescribeMetricFiltersCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeMetricFilters: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: DescribeMetricFiltersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeMetricFiltersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeSubscriptionFiltersCommandOutput,
|
|
5
5
|
} from "../commands/DescribeSubscriptionFiltersCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeSubscriptionFilters: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: DescribeSubscriptionFiltersCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeSubscriptionFiltersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
FilterLogEventsCommandOutput,
|
|
5
5
|
} from "../commands/FilterLogEventsCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateFilterLogEvents: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: FilterLogEventsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<FilterLogEventsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
GetLogEventsCommandOutput,
|
|
5
5
|
} from "../commands/GetLogEventsCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetLogEvents: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: GetLogEventsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetLogEventsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAnomaliesCommandOutput,
|
|
5
5
|
} from "../commands/ListAnomaliesCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAnomalies: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: ListAnomaliesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAnomaliesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListLogAnomalyDetectorsCommandOutput,
|
|
5
5
|
} from "../commands/ListLogAnomalyDetectorsCommand";
|
|
6
6
|
import { CloudWatchLogsPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListLogAnomalyDetectors: (
|
|
8
8
|
config: CloudWatchLogsPaginationConfiguration,
|
|
9
9
|
input: ListLogAnomalyDetectorsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListLogAnomalyDetectorsCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch-logs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,20 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
24
|
"@aws-sdk/core": "3.477.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/eventstream-serde-browser": "^2.0.15",
|
|
38
39
|
"@smithy/eventstream-serde-config-resolver": "^2.0.15",
|
|
39
40
|
"@smithy/eventstream-serde-node": "^2.0.15",
|