@aws-sdk/client-cloudwatch 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/DescribeAlarmHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAlarmsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAnomalyDetectorsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeInsightRulesPaginator.js +2 -24
- package/dist-cjs/pagination/GetMetricDataPaginator.js +2 -24
- package/dist-cjs/pagination/ListDashboardsPaginator.js +2 -23
- package/dist-cjs/pagination/ListManagedInsightRulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListMetricStreamsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMetricsPaginator.js +2 -23
- package/dist-cjs/protocols/Aws_query.js +1242 -1039
- package/dist-es/pagination/DescribeAlarmHistoryPaginator.js +2 -23
- package/dist-es/pagination/DescribeAlarmsPaginator.js +2 -23
- package/dist-es/pagination/DescribeAnomalyDetectorsPaginator.js +2 -23
- package/dist-es/pagination/DescribeInsightRulesPaginator.js +2 -23
- package/dist-es/pagination/GetMetricDataPaginator.js +2 -23
- package/dist-es/pagination/ListDashboardsPaginator.js +2 -22
- package/dist-es/pagination/ListManagedInsightRulesPaginator.js +2 -23
- package/dist-es/pagination/ListMetricStreamsPaginator.js +2 -23
- package/dist-es/pagination/ListMetricsPaginator.js +2 -22
- package/dist-es/protocols/Aws_query.js +1242 -1039
- package/dist-types/pagination/DescribeAlarmHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAlarmsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAnomalyDetectorsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeInsightRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetMetricDataPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDashboardsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListManagedInsightRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMetricStreamsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMetricsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeAlarmHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAlarmsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAnomalyDetectorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeInsightRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetMetricDataPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDashboardsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListManagedInsightRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMetricStreamsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMetricsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { DescribeAlarmHistoryCommand, } from "../commands/DescribeAlarmHistoryCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAlarmHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAlarmHistory(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["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
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 paginateDescribeAlarmHistory = createPaginator(CloudWatchClient, DescribeAlarmHistoryCommand, "NextToken", "NextToken", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { DescribeAlarmsCommand, } from "../commands/DescribeAlarmsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAlarmsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAlarms(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["MaxRecords"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
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 paginateDescribeAlarms = createPaginator(CloudWatchClient, DescribeAlarmsCommand, "NextToken", "NextToken", "MaxRecords");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { DescribeAnomalyDetectorsCommand, } from "../commands/DescribeAnomalyDetectorsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAnomalyDetectorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAnomalyDetectors(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 CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
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 paginateDescribeAnomalyDetectors = createPaginator(CloudWatchClient, DescribeAnomalyDetectorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { DescribeInsightRulesCommand, } from "../commands/DescribeInsightRulesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeInsightRulesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeInsightRules(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 CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
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 paginateDescribeInsightRules = createPaginator(CloudWatchClient, DescribeInsightRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { GetMetricDataCommand, } from "../commands/GetMetricDataCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetMetricDataCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetMetricData(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["MaxDatapoints"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
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 paginateGetMetricData = createPaginator(CloudWatchClient, GetMetricDataCommand, "NextToken", "NextToken", "MaxDatapoints");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { ListDashboardsCommand, } from "../commands/ListDashboardsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListDashboardsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListDashboards(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 CloudWatchClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
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 paginateListDashboards = createPaginator(CloudWatchClient, ListDashboardsCommand, "NextToken", "NextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { ListManagedInsightRulesCommand, } from "../commands/ListManagedInsightRulesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListManagedInsightRulesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListManagedInsightRules(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 CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
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 paginateListManagedInsightRules = createPaginator(CloudWatchClient, ListManagedInsightRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { ListMetricStreamsCommand, } from "../commands/ListMetricStreamsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMetricStreamsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMetricStreams(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 CloudWatchClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
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 paginateListMetricStreams = createPaginator(CloudWatchClient, ListMetricStreamsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
2
3
|
import { ListMetricsCommand } from "../commands/ListMetricsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMetricsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMetrics(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 CloudWatchClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected CloudWatch | CloudWatchClient");
|
|
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 paginateListMetrics = createPaginator(CloudWatchClient, ListMetricsCommand, "NextToken", "NextToken", "");
|