@aws-sdk/client-cloudwatch 3.37.0 → 3.41.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/CHANGELOG.md +42 -0
- package/dist-cjs/commands/index.js +39 -0
- package/dist-cjs/endpoints.js +137 -23
- package/dist-cjs/index.js +5 -48
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-es/commands/index.js +36 -0
- package/dist-es/endpoints.js +137 -23
- package/dist-es/index.js +5 -48
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-es/waiters/index.js +2 -0
- package/dist-types/CloudWatchClient.d.ts +8 -0
- package/dist-types/commands/DeleteAlarmsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +1 -1
- package/dist-types/commands/DeleteDashboardsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInsightRulesCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMetricStreamCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAlarmsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInsightRulesCommand.d.ts +1 -1
- package/dist-types/commands/DisableAlarmActionsCommand.d.ts +1 -1
- package/dist-types/commands/DisableInsightRulesCommand.d.ts +1 -1
- package/dist-types/commands/EnableAlarmActionsCommand.d.ts +1 -1
- package/dist-types/commands/EnableInsightRulesCommand.d.ts +1 -1
- package/dist-types/commands/GetDashboardCommand.d.ts +1 -1
- package/dist-types/commands/GetInsightRuleReportCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricDataCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricStatisticsCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricStreamCommand.d.ts +1 -1
- package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +1 -1
- package/dist-types/commands/ListDashboardsCommand.d.ts +1 -1
- package/dist-types/commands/ListMetricStreamsCommand.d.ts +1 -1
- package/dist-types/commands/ListMetricsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +1 -1
- package/dist-types/commands/PutCompositeAlarmCommand.d.ts +1 -1
- package/dist-types/commands/PutDashboardCommand.d.ts +1 -1
- package/dist-types/commands/PutInsightRuleCommand.d.ts +1 -1
- package/dist-types/commands/PutMetricAlarmCommand.d.ts +1 -1
- package/dist-types/commands/PutMetricDataCommand.d.ts +1 -1
- package/dist-types/commands/PutMetricStreamCommand.d.ts +1 -1
- package/dist-types/commands/SetAlarmStateCommand.d.ts +1 -1
- package/dist-types/commands/StartMetricStreamsCommand.d.ts +1 -1
- package/dist-types/commands/StopMetricStreamsCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +36 -0
- package/dist-types/index.d.ts +5 -48
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/CloudWatchClient.d.ts +4 -0
- package/dist-types/ts3.4/commands/index.d.ts +36 -0
- package/dist-types/ts3.4/index.d.ts +5 -48
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
29
|
+
|
|
30
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
42
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
6
48
|
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
7
49
|
|
|
8
50
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DeleteAlarmsCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DeleteAnomalyDetectorCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DeleteDashboardsCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DeleteInsightRulesCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeleteMetricStreamCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./DescribeAlarmHistoryCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DescribeAlarmsCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./DescribeAlarmsForMetricCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DescribeAnomalyDetectorsCommand"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./DescribeInsightRulesCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./DisableAlarmActionsCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DisableInsightRulesCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./EnableAlarmActionsCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./EnableInsightRulesCommand"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./GetDashboardCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./GetInsightRuleReportCommand"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./GetMetricDataCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./GetMetricStatisticsCommand"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./GetMetricStreamCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./GetMetricWidgetImageCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./ListDashboardsCommand"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./ListMetricStreamsCommand"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./ListMetricsCommand"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./PutAnomalyDetectorCommand"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./PutCompositeAlarmCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./PutDashboardCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./PutInsightRuleCommand"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./PutMetricAlarmCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./PutMetricDataCommand"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./PutMetricStreamCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./SetAlarmStateCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./StartMetricStreamsCommand"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./StopMetricStreamsCommand"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./TagResourceCommand"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -3,29 +3,77 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
5
|
const regionHash = {
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"us-east-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "monitoring.us-east-1.amazonaws.com",
|
|
10
|
+
tags: [],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
hostname: "monitoring-fips.us-east-1.amazonaws.com",
|
|
14
|
+
tags: ["fips"],
|
|
15
|
+
},
|
|
16
|
+
],
|
|
9
17
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
"us-east-2": {
|
|
19
|
+
variants: [
|
|
20
|
+
{
|
|
21
|
+
hostname: "monitoring.us-east-2.amazonaws.com",
|
|
22
|
+
tags: [],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
hostname: "monitoring-fips.us-east-2.amazonaws.com",
|
|
26
|
+
tags: ["fips"],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
13
29
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
"us-gov-east-1": {
|
|
31
|
+
variants: [
|
|
32
|
+
{
|
|
33
|
+
hostname: "monitoring.us-gov-east-1.amazonaws.com",
|
|
34
|
+
tags: [],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
hostname: "monitoring.us-gov-east-1.amazonaws.com",
|
|
38
|
+
tags: ["fips"],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
17
41
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
42
|
+
"us-gov-west-1": {
|
|
43
|
+
variants: [
|
|
44
|
+
{
|
|
45
|
+
hostname: "monitoring.us-gov-west-1.amazonaws.com",
|
|
46
|
+
tags: [],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
hostname: "monitoring.us-gov-west-1.amazonaws.com",
|
|
50
|
+
tags: ["fips"],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
21
53
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
54
|
+
"us-west-1": {
|
|
55
|
+
variants: [
|
|
56
|
+
{
|
|
57
|
+
hostname: "monitoring.us-west-1.amazonaws.com",
|
|
58
|
+
tags: [],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
hostname: "monitoring-fips.us-west-1.amazonaws.com",
|
|
62
|
+
tags: ["fips"],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
25
65
|
},
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
66
|
+
"us-west-2": {
|
|
67
|
+
variants: [
|
|
68
|
+
{
|
|
69
|
+
hostname: "monitoring.us-west-2.amazonaws.com",
|
|
70
|
+
tags: [],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
hostname: "monitoring-fips.us-west-2.amazonaws.com",
|
|
74
|
+
tags: ["fips"],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
29
77
|
},
|
|
30
78
|
};
|
|
31
79
|
const partitionHash = {
|
|
@@ -57,23 +105,89 @@ const partitionHash = {
|
|
|
57
105
|
"us-west-1",
|
|
58
106
|
"us-west-2",
|
|
59
107
|
],
|
|
60
|
-
|
|
108
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
109
|
+
variants: [
|
|
110
|
+
{
|
|
111
|
+
hostname: "monitoring.{region}.amazonaws.com",
|
|
112
|
+
tags: [],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
hostname: "monitoring-fips.{region}.amazonaws.com",
|
|
116
|
+
tags: ["fips"],
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
hostname: "monitoring-fips.{region}.api.aws",
|
|
120
|
+
tags: ["dualstack", "fips"],
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
hostname: "monitoring.{region}.api.aws",
|
|
124
|
+
tags: ["dualstack"],
|
|
125
|
+
},
|
|
126
|
+
],
|
|
61
127
|
},
|
|
62
128
|
"aws-cn": {
|
|
63
129
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
64
|
-
|
|
130
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
131
|
+
variants: [
|
|
132
|
+
{
|
|
133
|
+
hostname: "monitoring.{region}.amazonaws.com.cn",
|
|
134
|
+
tags: [],
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
hostname: "monitoring-fips.{region}.amazonaws.com.cn",
|
|
138
|
+
tags: ["fips"],
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
hostname: "monitoring-fips.{region}.api.amazonwebservices.com.cn",
|
|
142
|
+
tags: ["dualstack", "fips"],
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
hostname: "monitoring.{region}.api.amazonwebservices.com.cn",
|
|
146
|
+
tags: ["dualstack"],
|
|
147
|
+
},
|
|
148
|
+
],
|
|
65
149
|
},
|
|
66
150
|
"aws-iso": {
|
|
67
151
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
68
|
-
|
|
152
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
153
|
+
variants: [
|
|
154
|
+
{
|
|
155
|
+
hostname: "monitoring.{region}.c2s.ic.gov",
|
|
156
|
+
tags: [],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
hostname: "monitoring-fips.{region}.c2s.ic.gov",
|
|
160
|
+
tags: ["fips"],
|
|
161
|
+
},
|
|
162
|
+
],
|
|
69
163
|
},
|
|
70
164
|
"aws-iso-b": {
|
|
71
165
|
regions: ["us-isob-east-1"],
|
|
72
|
-
|
|
166
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
167
|
+
variants: [
|
|
168
|
+
{
|
|
169
|
+
hostname: "monitoring.{region}.sc2s.sgov.gov",
|
|
170
|
+
tags: [],
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
hostname: "monitoring-fips.{region}.sc2s.sgov.gov",
|
|
174
|
+
tags: ["fips"],
|
|
175
|
+
},
|
|
176
|
+
],
|
|
73
177
|
},
|
|
74
178
|
"aws-us-gov": {
|
|
75
179
|
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
76
|
-
|
|
180
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
181
|
+
variants: [
|
|
182
|
+
{
|
|
183
|
+
hostname: "monitoring.{region}.amazonaws.com",
|
|
184
|
+
tags: [],
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
hostname: "monitoring.{region}.amazonaws.com",
|
|
188
|
+
tags: ["fips"],
|
|
189
|
+
},
|
|
190
|
+
],
|
|
77
191
|
},
|
|
78
192
|
};
|
|
79
193
|
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,52 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./CloudWatchClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./CloudWatch"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./
|
|
10
|
-
tslib_1.__exportStar(require("./
|
|
11
|
-
tslib_1.__exportStar(require("./commands/DescribeAlarmHistoryCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./pagination/DescribeAlarmHistoryPaginator"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./commands/DescribeAlarmsCommand"), exports);
|
|
14
|
-
tslib_1.__exportStar(require("./pagination/DescribeAlarmsPaginator"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./waiters/waitForAlarmExists"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./waiters/waitForCompositeAlarmExists"), exports);
|
|
17
|
-
tslib_1.__exportStar(require("./commands/DescribeAlarmsForMetricCommand"), exports);
|
|
18
|
-
tslib_1.__exportStar(require("./commands/DescribeAnomalyDetectorsCommand"), exports);
|
|
19
|
-
tslib_1.__exportStar(require("./commands/DescribeInsightRulesCommand"), exports);
|
|
20
|
-
tslib_1.__exportStar(require("./pagination/DescribeInsightRulesPaginator"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./commands/DisableAlarmActionsCommand"), exports);
|
|
22
|
-
tslib_1.__exportStar(require("./commands/DisableInsightRulesCommand"), exports);
|
|
23
|
-
tslib_1.__exportStar(require("./commands/EnableAlarmActionsCommand"), exports);
|
|
24
|
-
tslib_1.__exportStar(require("./commands/EnableInsightRulesCommand"), exports);
|
|
25
|
-
tslib_1.__exportStar(require("./commands/GetDashboardCommand"), exports);
|
|
26
|
-
tslib_1.__exportStar(require("./commands/GetInsightRuleReportCommand"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./commands/GetMetricDataCommand"), exports);
|
|
28
|
-
tslib_1.__exportStar(require("./pagination/GetMetricDataPaginator"), exports);
|
|
29
|
-
tslib_1.__exportStar(require("./commands/GetMetricStatisticsCommand"), exports);
|
|
30
|
-
tslib_1.__exportStar(require("./commands/GetMetricStreamCommand"), exports);
|
|
31
|
-
tslib_1.__exportStar(require("./commands/GetMetricWidgetImageCommand"), exports);
|
|
32
|
-
tslib_1.__exportStar(require("./commands/ListDashboardsCommand"), exports);
|
|
33
|
-
tslib_1.__exportStar(require("./pagination/ListDashboardsPaginator"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./commands/ListMetricsCommand"), exports);
|
|
35
|
-
tslib_1.__exportStar(require("./pagination/ListMetricsPaginator"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./commands/ListMetricStreamsCommand"), exports);
|
|
37
|
-
tslib_1.__exportStar(require("./pagination/ListMetricStreamsPaginator"), exports);
|
|
38
|
-
tslib_1.__exportStar(require("./commands/ListTagsForResourceCommand"), exports);
|
|
39
|
-
tslib_1.__exportStar(require("./commands/PutAnomalyDetectorCommand"), exports);
|
|
40
|
-
tslib_1.__exportStar(require("./commands/PutCompositeAlarmCommand"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./commands/PutDashboardCommand"), exports);
|
|
42
|
-
tslib_1.__exportStar(require("./commands/PutInsightRuleCommand"), exports);
|
|
43
|
-
tslib_1.__exportStar(require("./commands/PutMetricAlarmCommand"), exports);
|
|
44
|
-
tslib_1.__exportStar(require("./commands/PutMetricDataCommand"), exports);
|
|
45
|
-
tslib_1.__exportStar(require("./commands/PutMetricStreamCommand"), exports);
|
|
46
|
-
tslib_1.__exportStar(require("./commands/SetAlarmStateCommand"), exports);
|
|
47
|
-
tslib_1.__exportStar(require("./commands/StartMetricStreamsCommand"), exports);
|
|
48
|
-
tslib_1.__exportStar(require("./commands/StopMetricStreamsCommand"), exports);
|
|
49
|
-
tslib_1.__exportStar(require("./commands/TagResourceCommand"), exports);
|
|
50
|
-
tslib_1.__exportStar(require("./commands/UntagResourceCommand"), exports);
|
|
51
|
-
tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
|
|
52
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CloudWatchClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./pagination"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./waiters"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DescribeAlarmHistoryPaginator"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./DescribeAlarmsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DescribeInsightRulesPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./GetMetricDataPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListDashboardsPaginator"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./ListMetricStreamsPaginator"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./ListMetricsPaginator"), exports);
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
31
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
31
32
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
32
33
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
19
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
23
|
return {
|
|
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
|
|
|
35
35
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
36
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
37
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from "./DeleteAlarmsCommand";
|
|
2
|
+
export * from "./DeleteAnomalyDetectorCommand";
|
|
3
|
+
export * from "./DeleteDashboardsCommand";
|
|
4
|
+
export * from "./DeleteInsightRulesCommand";
|
|
5
|
+
export * from "./DeleteMetricStreamCommand";
|
|
6
|
+
export * from "./DescribeAlarmHistoryCommand";
|
|
7
|
+
export * from "./DescribeAlarmsCommand";
|
|
8
|
+
export * from "./DescribeAlarmsForMetricCommand";
|
|
9
|
+
export * from "./DescribeAnomalyDetectorsCommand";
|
|
10
|
+
export * from "./DescribeInsightRulesCommand";
|
|
11
|
+
export * from "./DisableAlarmActionsCommand";
|
|
12
|
+
export * from "./DisableInsightRulesCommand";
|
|
13
|
+
export * from "./EnableAlarmActionsCommand";
|
|
14
|
+
export * from "./EnableInsightRulesCommand";
|
|
15
|
+
export * from "./GetDashboardCommand";
|
|
16
|
+
export * from "./GetInsightRuleReportCommand";
|
|
17
|
+
export * from "./GetMetricDataCommand";
|
|
18
|
+
export * from "./GetMetricStatisticsCommand";
|
|
19
|
+
export * from "./GetMetricStreamCommand";
|
|
20
|
+
export * from "./GetMetricWidgetImageCommand";
|
|
21
|
+
export * from "./ListDashboardsCommand";
|
|
22
|
+
export * from "./ListMetricStreamsCommand";
|
|
23
|
+
export * from "./ListMetricsCommand";
|
|
24
|
+
export * from "./ListTagsForResourceCommand";
|
|
25
|
+
export * from "./PutAnomalyDetectorCommand";
|
|
26
|
+
export * from "./PutCompositeAlarmCommand";
|
|
27
|
+
export * from "./PutDashboardCommand";
|
|
28
|
+
export * from "./PutInsightRuleCommand";
|
|
29
|
+
export * from "./PutMetricAlarmCommand";
|
|
30
|
+
export * from "./PutMetricDataCommand";
|
|
31
|
+
export * from "./PutMetricStreamCommand";
|
|
32
|
+
export * from "./SetAlarmStateCommand";
|
|
33
|
+
export * from "./StartMetricStreamsCommand";
|
|
34
|
+
export * from "./StopMetricStreamsCommand";
|
|
35
|
+
export * from "./TagResourceCommand";
|
|
36
|
+
export * from "./UntagResourceCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -1,29 +1,77 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
3
3
|
var regionHash = {
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
"us-east-1": {
|
|
5
|
+
variants: [
|
|
6
|
+
{
|
|
7
|
+
hostname: "monitoring.us-east-1.amazonaws.com",
|
|
8
|
+
tags: [],
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
hostname: "monitoring-fips.us-east-1.amazonaws.com",
|
|
12
|
+
tags: ["fips"],
|
|
13
|
+
},
|
|
14
|
+
],
|
|
7
15
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
16
|
+
"us-east-2": {
|
|
17
|
+
variants: [
|
|
18
|
+
{
|
|
19
|
+
hostname: "monitoring.us-east-2.amazonaws.com",
|
|
20
|
+
tags: [],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
hostname: "monitoring-fips.us-east-2.amazonaws.com",
|
|
24
|
+
tags: ["fips"],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
11
27
|
},
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
28
|
+
"us-gov-east-1": {
|
|
29
|
+
variants: [
|
|
30
|
+
{
|
|
31
|
+
hostname: "monitoring.us-gov-east-1.amazonaws.com",
|
|
32
|
+
tags: [],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
hostname: "monitoring.us-gov-east-1.amazonaws.com",
|
|
36
|
+
tags: ["fips"],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
15
39
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
40
|
+
"us-gov-west-1": {
|
|
41
|
+
variants: [
|
|
42
|
+
{
|
|
43
|
+
hostname: "monitoring.us-gov-west-1.amazonaws.com",
|
|
44
|
+
tags: [],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
hostname: "monitoring.us-gov-west-1.amazonaws.com",
|
|
48
|
+
tags: ["fips"],
|
|
49
|
+
},
|
|
50
|
+
],
|
|
19
51
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
52
|
+
"us-west-1": {
|
|
53
|
+
variants: [
|
|
54
|
+
{
|
|
55
|
+
hostname: "monitoring.us-west-1.amazonaws.com",
|
|
56
|
+
tags: [],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
hostname: "monitoring-fips.us-west-1.amazonaws.com",
|
|
60
|
+
tags: ["fips"],
|
|
61
|
+
},
|
|
62
|
+
],
|
|
23
63
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
64
|
+
"us-west-2": {
|
|
65
|
+
variants: [
|
|
66
|
+
{
|
|
67
|
+
hostname: "monitoring.us-west-2.amazonaws.com",
|
|
68
|
+
tags: [],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
hostname: "monitoring-fips.us-west-2.amazonaws.com",
|
|
72
|
+
tags: ["fips"],
|
|
73
|
+
},
|
|
74
|
+
],
|
|
27
75
|
},
|
|
28
76
|
};
|
|
29
77
|
var partitionHash = {
|
|
@@ -55,23 +103,89 @@ var partitionHash = {
|
|
|
55
103
|
"us-west-1",
|
|
56
104
|
"us-west-2",
|
|
57
105
|
],
|
|
58
|
-
|
|
106
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
107
|
+
variants: [
|
|
108
|
+
{
|
|
109
|
+
hostname: "monitoring.{region}.amazonaws.com",
|
|
110
|
+
tags: [],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
hostname: "monitoring-fips.{region}.amazonaws.com",
|
|
114
|
+
tags: ["fips"],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
hostname: "monitoring-fips.{region}.api.aws",
|
|
118
|
+
tags: ["dualstack", "fips"],
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
hostname: "monitoring.{region}.api.aws",
|
|
122
|
+
tags: ["dualstack"],
|
|
123
|
+
},
|
|
124
|
+
],
|
|
59
125
|
},
|
|
60
126
|
"aws-cn": {
|
|
61
127
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
62
|
-
|
|
128
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
129
|
+
variants: [
|
|
130
|
+
{
|
|
131
|
+
hostname: "monitoring.{region}.amazonaws.com.cn",
|
|
132
|
+
tags: [],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
hostname: "monitoring-fips.{region}.amazonaws.com.cn",
|
|
136
|
+
tags: ["fips"],
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
hostname: "monitoring-fips.{region}.api.amazonwebservices.com.cn",
|
|
140
|
+
tags: ["dualstack", "fips"],
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
hostname: "monitoring.{region}.api.amazonwebservices.com.cn",
|
|
144
|
+
tags: ["dualstack"],
|
|
145
|
+
},
|
|
146
|
+
],
|
|
63
147
|
},
|
|
64
148
|
"aws-iso": {
|
|
65
149
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
66
|
-
|
|
150
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
151
|
+
variants: [
|
|
152
|
+
{
|
|
153
|
+
hostname: "monitoring.{region}.c2s.ic.gov",
|
|
154
|
+
tags: [],
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
hostname: "monitoring-fips.{region}.c2s.ic.gov",
|
|
158
|
+
tags: ["fips"],
|
|
159
|
+
},
|
|
160
|
+
],
|
|
67
161
|
},
|
|
68
162
|
"aws-iso-b": {
|
|
69
163
|
regions: ["us-isob-east-1"],
|
|
70
|
-
|
|
164
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
165
|
+
variants: [
|
|
166
|
+
{
|
|
167
|
+
hostname: "monitoring.{region}.sc2s.sgov.gov",
|
|
168
|
+
tags: [],
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
hostname: "monitoring-fips.{region}.sc2s.sgov.gov",
|
|
172
|
+
tags: ["fips"],
|
|
173
|
+
},
|
|
174
|
+
],
|
|
71
175
|
},
|
|
72
176
|
"aws-us-gov": {
|
|
73
177
|
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
74
|
-
|
|
178
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
179
|
+
variants: [
|
|
180
|
+
{
|
|
181
|
+
hostname: "monitoring.{region}.amazonaws.com",
|
|
182
|
+
tags: [],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
hostname: "monitoring.{region}.amazonaws.com",
|
|
186
|
+
tags: ["fips"],
|
|
187
|
+
},
|
|
188
|
+
],
|
|
75
189
|
},
|
|
76
190
|
};
|
|
77
191
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|