@aws-sdk/client-cloudwatch 3.46.0 → 3.48.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 +36 -0
- package/dist-cjs/endpoints.js +0 -24
- package/dist-cjs/models/models_0.js +2 -81
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -24
- package/dist-es/models/models_0.js +0 -52
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/CloudWatchClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -78
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CloudWatchClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -52
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +36 -36
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,42 @@
|
|
|
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.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudwatch
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
36
|
+
* Support awsQueryError trait ([#3174](https://github.com/aws/aws-sdk-js-v3/issues/3174)) ([351bd3a](https://github.com/aws/aws-sdk-js-v3/commit/351bd3a40ad37be79d823d6a0e4e48304728ea6f))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
6
42
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
43
|
|
|
8
44
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "monitoring.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "monitoring-fips.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "monitoring.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "monitoring-fips.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-gov-east-1": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "monitoring.us-gov-east-1.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "monitoring.us-gov-east-1.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-gov-west-1": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "monitoring.us-gov-west-1.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "monitoring.us-gov-west-1.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -53,10 +37,6 @@ const regionHash = {
|
|
|
53
37
|
},
|
|
54
38
|
"us-west-1": {
|
|
55
39
|
variants: [
|
|
56
|
-
{
|
|
57
|
-
hostname: "monitoring.us-west-1.amazonaws.com",
|
|
58
|
-
tags: [],
|
|
59
|
-
},
|
|
60
40
|
{
|
|
61
41
|
hostname: "monitoring-fips.us-west-1.amazonaws.com",
|
|
62
42
|
tags: ["fips"],
|
|
@@ -65,10 +45,6 @@ const regionHash = {
|
|
|
65
45
|
},
|
|
66
46
|
"us-west-2": {
|
|
67
47
|
variants: [
|
|
68
|
-
{
|
|
69
|
-
hostname: "monitoring.us-west-2.amazonaws.com",
|
|
70
|
-
tags: [],
|
|
71
|
-
},
|
|
72
48
|
{
|
|
73
49
|
hostname: "monitoring-fips.us-west-2.amazonaws.com",
|
|
74
50
|
tags: ["fips"],
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.StopMetricStreamsOutput = exports.StopMetricStreamsInput = exports.StartMetricStreamsOutput = exports.StartMetricStreamsInput = exports.SetAlarmStateInput = exports.InvalidFormatFault = exports.PutMetricStreamOutput = exports.PutMetricStreamInput = void 0;
|
|
3
|
+
exports.InsightRuleContributor = exports.InsightRuleContributorDatapoint = exports.GetInsightRuleReportInput = exports.GetDashboardOutput = exports.GetDashboardInput = exports.EnableInsightRulesOutput = exports.EnableInsightRulesInput = exports.EnableAlarmActionsInput = exports.DisableInsightRulesOutput = exports.DisableInsightRulesInput = exports.DisableAlarmActionsInput = exports.DimensionFilter = exports.DescribeInsightRulesOutput = exports.InsightRule = exports.DescribeInsightRulesInput = exports.DescribeAnomalyDetectorsOutput = exports.DescribeAnomalyDetectorsInput = exports.DescribeAlarmsForMetricOutput = exports.DescribeAlarmsForMetricInput = exports.DescribeAlarmsOutput = exports.MetricAlarm = exports.DescribeAlarmsInput = exports.DescribeAlarmHistoryOutput = exports.DescribeAlarmHistoryInput = exports.ScanBy = exports.DeleteMetricStreamOutput = exports.DeleteMetricStreamInput = exports.DeleteInsightRulesOutput = exports.DeleteInsightRulesInput = exports.DeleteDashboardsOutput = exports.DeleteDashboardsInput = exports.DeleteAnomalyDetectorOutput = exports.DeleteAnomalyDetectorInput = exports.DeleteAlarmsInput = exports.Datapoint = exports.DashboardValidationMessage = exports.DashboardEntry = exports.CompositeAlarm = exports.PartialFailure = exports.AnomalyDetectorType = exports.AnomalyDetector = exports.SingleMetricAnomalyDetector = exports.MetricMathAnomalyDetector = exports.MetricDataQuery = exports.MetricStat = exports.Metric = exports.Dimension = exports.AnomalyDetectorConfiguration = exports.Range = exports.AlarmHistoryItem = void 0;
|
|
4
|
+
exports.UntagResourceOutput = exports.UntagResourceInput = exports.TagResourceOutput = exports.TagResourceInput = exports.StopMetricStreamsOutput = exports.StopMetricStreamsInput = exports.StartMetricStreamsOutput = exports.StartMetricStreamsInput = exports.SetAlarmStateInput = exports.PutMetricStreamOutput = exports.PutMetricStreamInput = exports.PutMetricDataInput = exports.MetricDatum = exports.StatisticSet = exports.PutMetricAlarmInput = exports.PutInsightRuleOutput = exports.PutInsightRuleInput = exports.PutDashboardOutput = exports.PutDashboardInput = exports.PutCompositeAlarmInput = exports.PutAnomalyDetectorOutput = exports.PutAnomalyDetectorInput = exports.ListTagsForResourceOutput = exports.Tag = exports.ListTagsForResourceInput = exports.ListMetricStreamsOutput = exports.MetricStreamEntry = exports.ListMetricStreamsInput = exports.ListMetricsOutput = exports.ListMetricsInput = exports.RecentlyActive = exports.ListDashboardsOutput = exports.ListDashboardsInput = exports.GetMetricWidgetImageOutput = exports.GetMetricWidgetImageInput = exports.GetMetricStreamOutput = exports.MetricStreamOutputFormat = exports.MetricStreamFilter = exports.GetMetricStreamInput = exports.GetMetricStatisticsOutput = exports.GetMetricStatisticsInput = exports.GetMetricDataOutput = exports.MetricDataResult = exports.StatusCode = exports.MessageData = exports.GetMetricDataInput = exports.LabelOptions = exports.GetInsightRuleReportOutput = exports.InsightRuleMetricDatapoint = void 0;
|
|
6
5
|
var AlarmHistoryItem;
|
|
7
6
|
(function (AlarmHistoryItem) {
|
|
8
7
|
AlarmHistoryItem.filterSensitiveLog = (obj) => ({
|
|
@@ -80,12 +79,6 @@ var CompositeAlarm;
|
|
|
80
79
|
...obj,
|
|
81
80
|
});
|
|
82
81
|
})(CompositeAlarm = exports.CompositeAlarm || (exports.CompositeAlarm = {}));
|
|
83
|
-
var ConcurrentModificationException;
|
|
84
|
-
(function (ConcurrentModificationException) {
|
|
85
|
-
ConcurrentModificationException.filterSensitiveLog = (obj) => ({
|
|
86
|
-
...obj,
|
|
87
|
-
});
|
|
88
|
-
})(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
|
|
89
82
|
var DashboardEntry;
|
|
90
83
|
(function (DashboardEntry) {
|
|
91
84
|
DashboardEntry.filterSensitiveLog = (obj) => ({
|
|
@@ -98,18 +91,6 @@ var DashboardValidationMessage;
|
|
|
98
91
|
...obj,
|
|
99
92
|
});
|
|
100
93
|
})(DashboardValidationMessage = exports.DashboardValidationMessage || (exports.DashboardValidationMessage = {}));
|
|
101
|
-
var DashboardInvalidInputError;
|
|
102
|
-
(function (DashboardInvalidInputError) {
|
|
103
|
-
DashboardInvalidInputError.filterSensitiveLog = (obj) => ({
|
|
104
|
-
...obj,
|
|
105
|
-
});
|
|
106
|
-
})(DashboardInvalidInputError = exports.DashboardInvalidInputError || (exports.DashboardInvalidInputError = {}));
|
|
107
|
-
var DashboardNotFoundError;
|
|
108
|
-
(function (DashboardNotFoundError) {
|
|
109
|
-
DashboardNotFoundError.filterSensitiveLog = (obj) => ({
|
|
110
|
-
...obj,
|
|
111
|
-
});
|
|
112
|
-
})(DashboardNotFoundError = exports.DashboardNotFoundError || (exports.DashboardNotFoundError = {}));
|
|
113
94
|
var Datapoint;
|
|
114
95
|
(function (Datapoint) {
|
|
115
96
|
Datapoint.filterSensitiveLog = (obj) => ({
|
|
@@ -122,12 +103,6 @@ var DeleteAlarmsInput;
|
|
|
122
103
|
...obj,
|
|
123
104
|
});
|
|
124
105
|
})(DeleteAlarmsInput = exports.DeleteAlarmsInput || (exports.DeleteAlarmsInput = {}));
|
|
125
|
-
var ResourceNotFound;
|
|
126
|
-
(function (ResourceNotFound) {
|
|
127
|
-
ResourceNotFound.filterSensitiveLog = (obj) => ({
|
|
128
|
-
...obj,
|
|
129
|
-
});
|
|
130
|
-
})(ResourceNotFound = exports.ResourceNotFound || (exports.ResourceNotFound = {}));
|
|
131
106
|
var DeleteAnomalyDetectorInput;
|
|
132
107
|
(function (DeleteAnomalyDetectorInput) {
|
|
133
108
|
DeleteAnomalyDetectorInput.filterSensitiveLog = (obj) => ({
|
|
@@ -140,36 +115,6 @@ var DeleteAnomalyDetectorOutput;
|
|
|
140
115
|
...obj,
|
|
141
116
|
});
|
|
142
117
|
})(DeleteAnomalyDetectorOutput = exports.DeleteAnomalyDetectorOutput || (exports.DeleteAnomalyDetectorOutput = {}));
|
|
143
|
-
var InternalServiceFault;
|
|
144
|
-
(function (InternalServiceFault) {
|
|
145
|
-
InternalServiceFault.filterSensitiveLog = (obj) => ({
|
|
146
|
-
...obj,
|
|
147
|
-
});
|
|
148
|
-
})(InternalServiceFault = exports.InternalServiceFault || (exports.InternalServiceFault = {}));
|
|
149
|
-
var InvalidParameterCombinationException;
|
|
150
|
-
(function (InvalidParameterCombinationException) {
|
|
151
|
-
InvalidParameterCombinationException.filterSensitiveLog = (obj) => ({
|
|
152
|
-
...obj,
|
|
153
|
-
});
|
|
154
|
-
})(InvalidParameterCombinationException = exports.InvalidParameterCombinationException || (exports.InvalidParameterCombinationException = {}));
|
|
155
|
-
var InvalidParameterValueException;
|
|
156
|
-
(function (InvalidParameterValueException) {
|
|
157
|
-
InvalidParameterValueException.filterSensitiveLog = (obj) => ({
|
|
158
|
-
...obj,
|
|
159
|
-
});
|
|
160
|
-
})(InvalidParameterValueException = exports.InvalidParameterValueException || (exports.InvalidParameterValueException = {}));
|
|
161
|
-
var MissingRequiredParameterException;
|
|
162
|
-
(function (MissingRequiredParameterException) {
|
|
163
|
-
MissingRequiredParameterException.filterSensitiveLog = (obj) => ({
|
|
164
|
-
...obj,
|
|
165
|
-
});
|
|
166
|
-
})(MissingRequiredParameterException = exports.MissingRequiredParameterException || (exports.MissingRequiredParameterException = {}));
|
|
167
|
-
var ResourceNotFoundException;
|
|
168
|
-
(function (ResourceNotFoundException) {
|
|
169
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
170
|
-
...obj,
|
|
171
|
-
});
|
|
172
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
173
118
|
var DeleteDashboardsInput;
|
|
174
119
|
(function (DeleteDashboardsInput) {
|
|
175
120
|
DeleteDashboardsInput.filterSensitiveLog = (obj) => ({
|
|
@@ -223,12 +168,6 @@ var DescribeAlarmHistoryOutput;
|
|
|
223
168
|
...obj,
|
|
224
169
|
});
|
|
225
170
|
})(DescribeAlarmHistoryOutput = exports.DescribeAlarmHistoryOutput || (exports.DescribeAlarmHistoryOutput = {}));
|
|
226
|
-
var InvalidNextToken;
|
|
227
|
-
(function (InvalidNextToken) {
|
|
228
|
-
InvalidNextToken.filterSensitiveLog = (obj) => ({
|
|
229
|
-
...obj,
|
|
230
|
-
});
|
|
231
|
-
})(InvalidNextToken = exports.InvalidNextToken || (exports.InvalidNextToken = {}));
|
|
232
171
|
var DescribeAlarmsInput;
|
|
233
172
|
(function (DescribeAlarmsInput) {
|
|
234
173
|
DescribeAlarmsInput.filterSensitiveLog = (obj) => ({
|
|
@@ -331,12 +270,6 @@ var EnableInsightRulesOutput;
|
|
|
331
270
|
...obj,
|
|
332
271
|
});
|
|
333
272
|
})(EnableInsightRulesOutput = exports.EnableInsightRulesOutput || (exports.EnableInsightRulesOutput = {}));
|
|
334
|
-
var LimitExceededException;
|
|
335
|
-
(function (LimitExceededException) {
|
|
336
|
-
LimitExceededException.filterSensitiveLog = (obj) => ({
|
|
337
|
-
...obj,
|
|
338
|
-
});
|
|
339
|
-
})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
|
|
340
273
|
var GetDashboardInput;
|
|
341
274
|
(function (GetDashboardInput) {
|
|
342
275
|
GetDashboardInput.filterSensitiveLog = (obj) => ({
|
|
@@ -538,12 +471,6 @@ var PutAnomalyDetectorOutput;
|
|
|
538
471
|
...obj,
|
|
539
472
|
});
|
|
540
473
|
})(PutAnomalyDetectorOutput = exports.PutAnomalyDetectorOutput || (exports.PutAnomalyDetectorOutput = {}));
|
|
541
|
-
var LimitExceededFault;
|
|
542
|
-
(function (LimitExceededFault) {
|
|
543
|
-
LimitExceededFault.filterSensitiveLog = (obj) => ({
|
|
544
|
-
...obj,
|
|
545
|
-
});
|
|
546
|
-
})(LimitExceededFault = exports.LimitExceededFault || (exports.LimitExceededFault = {}));
|
|
547
474
|
var PutCompositeAlarmInput;
|
|
548
475
|
(function (PutCompositeAlarmInput) {
|
|
549
476
|
PutCompositeAlarmInput.filterSensitiveLog = (obj) => ({
|
|
@@ -610,12 +537,6 @@ var PutMetricStreamOutput;
|
|
|
610
537
|
...obj,
|
|
611
538
|
});
|
|
612
539
|
})(PutMetricStreamOutput = exports.PutMetricStreamOutput || (exports.PutMetricStreamOutput = {}));
|
|
613
|
-
var InvalidFormatFault;
|
|
614
|
-
(function (InvalidFormatFault) {
|
|
615
|
-
InvalidFormatFault.filterSensitiveLog = (obj) => ({
|
|
616
|
-
...obj,
|
|
617
|
-
});
|
|
618
|
-
})(InvalidFormatFault = exports.InvalidFormatFault || (exports.InvalidFormatFault = {}));
|
|
619
540
|
var SetAlarmStateInput;
|
|
620
541
|
(function (SetAlarmStateInput) {
|
|
621
542
|
SetAlarmStateInput.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
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)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
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),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "monitoring.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "monitoring-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "monitoring.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "monitoring-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-east-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "monitoring.us-gov-east-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "monitoring.us-gov-east-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-gov-west-1": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "monitoring.us-gov-west-1.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "monitoring.us-gov-west-1.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -51,10 +35,6 @@ var regionHash = {
|
|
|
51
35
|
},
|
|
52
36
|
"us-west-1": {
|
|
53
37
|
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "monitoring.us-west-1.amazonaws.com",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
38
|
{
|
|
59
39
|
hostname: "monitoring-fips.us-west-1.amazonaws.com",
|
|
60
40
|
tags: ["fips"],
|
|
@@ -63,10 +43,6 @@ var regionHash = {
|
|
|
63
43
|
},
|
|
64
44
|
"us-west-2": {
|
|
65
45
|
variants: [
|
|
66
|
-
{
|
|
67
|
-
hostname: "monitoring.us-west-2.amazonaws.com",
|
|
68
|
-
tags: [],
|
|
69
|
-
},
|
|
70
46
|
{
|
|
71
47
|
hostname: "monitoring-fips.us-west-2.amazonaws.com",
|
|
72
48
|
tags: ["fips"],
|
|
@@ -52,10 +52,6 @@ export var CompositeAlarm;
|
|
|
52
52
|
(function (CompositeAlarm) {
|
|
53
53
|
CompositeAlarm.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
54
54
|
})(CompositeAlarm || (CompositeAlarm = {}));
|
|
55
|
-
export var ConcurrentModificationException;
|
|
56
|
-
(function (ConcurrentModificationException) {
|
|
57
|
-
ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
58
|
-
})(ConcurrentModificationException || (ConcurrentModificationException = {}));
|
|
59
55
|
export var DashboardEntry;
|
|
60
56
|
(function (DashboardEntry) {
|
|
61
57
|
DashboardEntry.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -64,14 +60,6 @@ export var DashboardValidationMessage;
|
|
|
64
60
|
(function (DashboardValidationMessage) {
|
|
65
61
|
DashboardValidationMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
66
62
|
})(DashboardValidationMessage || (DashboardValidationMessage = {}));
|
|
67
|
-
export var DashboardInvalidInputError;
|
|
68
|
-
(function (DashboardInvalidInputError) {
|
|
69
|
-
DashboardInvalidInputError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
70
|
-
})(DashboardInvalidInputError || (DashboardInvalidInputError = {}));
|
|
71
|
-
export var DashboardNotFoundError;
|
|
72
|
-
(function (DashboardNotFoundError) {
|
|
73
|
-
DashboardNotFoundError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
74
|
-
})(DashboardNotFoundError || (DashboardNotFoundError = {}));
|
|
75
63
|
export var Datapoint;
|
|
76
64
|
(function (Datapoint) {
|
|
77
65
|
Datapoint.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -80,10 +68,6 @@ export var DeleteAlarmsInput;
|
|
|
80
68
|
(function (DeleteAlarmsInput) {
|
|
81
69
|
DeleteAlarmsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
82
70
|
})(DeleteAlarmsInput || (DeleteAlarmsInput = {}));
|
|
83
|
-
export var ResourceNotFound;
|
|
84
|
-
(function (ResourceNotFound) {
|
|
85
|
-
ResourceNotFound.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
86
|
-
})(ResourceNotFound || (ResourceNotFound = {}));
|
|
87
71
|
export var DeleteAnomalyDetectorInput;
|
|
88
72
|
(function (DeleteAnomalyDetectorInput) {
|
|
89
73
|
DeleteAnomalyDetectorInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -92,26 +76,6 @@ export var DeleteAnomalyDetectorOutput;
|
|
|
92
76
|
(function (DeleteAnomalyDetectorOutput) {
|
|
93
77
|
DeleteAnomalyDetectorOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
78
|
})(DeleteAnomalyDetectorOutput || (DeleteAnomalyDetectorOutput = {}));
|
|
95
|
-
export var InternalServiceFault;
|
|
96
|
-
(function (InternalServiceFault) {
|
|
97
|
-
InternalServiceFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
98
|
-
})(InternalServiceFault || (InternalServiceFault = {}));
|
|
99
|
-
export var InvalidParameterCombinationException;
|
|
100
|
-
(function (InvalidParameterCombinationException) {
|
|
101
|
-
InvalidParameterCombinationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
102
|
-
})(InvalidParameterCombinationException || (InvalidParameterCombinationException = {}));
|
|
103
|
-
export var InvalidParameterValueException;
|
|
104
|
-
(function (InvalidParameterValueException) {
|
|
105
|
-
InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
|
-
})(InvalidParameterValueException || (InvalidParameterValueException = {}));
|
|
107
|
-
export var MissingRequiredParameterException;
|
|
108
|
-
(function (MissingRequiredParameterException) {
|
|
109
|
-
MissingRequiredParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
110
|
-
})(MissingRequiredParameterException || (MissingRequiredParameterException = {}));
|
|
111
|
-
export var ResourceNotFoundException;
|
|
112
|
-
(function (ResourceNotFoundException) {
|
|
113
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
114
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
115
79
|
export var DeleteDashboardsInput;
|
|
116
80
|
(function (DeleteDashboardsInput) {
|
|
117
81
|
DeleteDashboardsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -149,10 +113,6 @@ export var DescribeAlarmHistoryOutput;
|
|
|
149
113
|
(function (DescribeAlarmHistoryOutput) {
|
|
150
114
|
DescribeAlarmHistoryOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
151
115
|
})(DescribeAlarmHistoryOutput || (DescribeAlarmHistoryOutput = {}));
|
|
152
|
-
export var InvalidNextToken;
|
|
153
|
-
(function (InvalidNextToken) {
|
|
154
|
-
InvalidNextToken.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
155
|
-
})(InvalidNextToken || (InvalidNextToken = {}));
|
|
156
116
|
export var DescribeAlarmsInput;
|
|
157
117
|
(function (DescribeAlarmsInput) {
|
|
158
118
|
DescribeAlarmsInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -221,10 +181,6 @@ export var EnableInsightRulesOutput;
|
|
|
221
181
|
(function (EnableInsightRulesOutput) {
|
|
222
182
|
EnableInsightRulesOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
223
183
|
})(EnableInsightRulesOutput || (EnableInsightRulesOutput = {}));
|
|
224
|
-
export var LimitExceededException;
|
|
225
|
-
(function (LimitExceededException) {
|
|
226
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
227
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
228
184
|
export var GetDashboardInput;
|
|
229
185
|
(function (GetDashboardInput) {
|
|
230
186
|
GetDashboardInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -364,10 +320,6 @@ export var PutAnomalyDetectorOutput;
|
|
|
364
320
|
(function (PutAnomalyDetectorOutput) {
|
|
365
321
|
PutAnomalyDetectorOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
366
322
|
})(PutAnomalyDetectorOutput || (PutAnomalyDetectorOutput = {}));
|
|
367
|
-
export var LimitExceededFault;
|
|
368
|
-
(function (LimitExceededFault) {
|
|
369
|
-
LimitExceededFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
370
|
-
})(LimitExceededFault || (LimitExceededFault = {}));
|
|
371
323
|
export var PutCompositeAlarmInput;
|
|
372
324
|
(function (PutCompositeAlarmInput) {
|
|
373
325
|
PutCompositeAlarmInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -412,10 +364,6 @@ export var PutMetricStreamOutput;
|
|
|
412
364
|
(function (PutMetricStreamOutput) {
|
|
413
365
|
PutMetricStreamOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
414
366
|
})(PutMetricStreamOutput || (PutMetricStreamOutput = {}));
|
|
415
|
-
export var InvalidFormatFault;
|
|
416
|
-
(function (InvalidFormatFault) {
|
|
417
|
-
InvalidFormatFault.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
418
|
-
})(InvalidFormatFault || (InvalidFormatFault = {}));
|
|
419
367
|
export var SetAlarmStateInput;
|
|
420
368
|
(function (SetAlarmStateInput) {
|
|
421
369
|
SetAlarmStateInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
19
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { DeleteAlarmsCommandInput, DeleteAlarmsCommandOutput } from "./commands/DeleteAlarmsCommand";
|
|
10
10
|
import { DeleteAnomalyDetectorCommandInput, DeleteAnomalyDetectorCommandOutput } from "./commands/DeleteAnomalyDetectorCommand";
|
|
@@ -144,6 +144,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
144
144
|
* @internal
|
|
145
145
|
*/
|
|
146
146
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
147
|
+
/**
|
|
148
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
149
|
+
*/
|
|
150
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
147
151
|
}
|
|
148
152
|
declare type CloudWatchClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
149
153
|
/**
|
|
@@ -489,12 +489,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
|
|
|
489
489
|
$fault: "client";
|
|
490
490
|
Message?: string;
|
|
491
491
|
}
|
|
492
|
-
export declare namespace ConcurrentModificationException {
|
|
493
|
-
/**
|
|
494
|
-
* @internal
|
|
495
|
-
*/
|
|
496
|
-
const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
|
|
497
|
-
}
|
|
498
492
|
/**
|
|
499
493
|
* <p>Represents a specific dashboard.</p>
|
|
500
494
|
*/
|
|
@@ -551,12 +545,6 @@ export interface DashboardInvalidInputError extends __SmithyException, $Metadata
|
|
|
551
545
|
message?: string;
|
|
552
546
|
dashboardValidationMessages?: DashboardValidationMessage[];
|
|
553
547
|
}
|
|
554
|
-
export declare namespace DashboardInvalidInputError {
|
|
555
|
-
/**
|
|
556
|
-
* @internal
|
|
557
|
-
*/
|
|
558
|
-
const filterSensitiveLog: (obj: DashboardInvalidInputError) => any;
|
|
559
|
-
}
|
|
560
548
|
/**
|
|
561
549
|
* <p>The specified dashboard does not exist.</p>
|
|
562
550
|
*/
|
|
@@ -565,12 +553,6 @@ export interface DashboardNotFoundError extends __SmithyException, $MetadataBear
|
|
|
565
553
|
$fault: "client";
|
|
566
554
|
message?: string;
|
|
567
555
|
}
|
|
568
|
-
export declare namespace DashboardNotFoundError {
|
|
569
|
-
/**
|
|
570
|
-
* @internal
|
|
571
|
-
*/
|
|
572
|
-
const filterSensitiveLog: (obj: DashboardNotFoundError) => any;
|
|
573
|
-
}
|
|
574
556
|
/**
|
|
575
557
|
* <p>Encapsulates the statistical data that CloudWatch computes from metric data.</p>
|
|
576
558
|
*/
|
|
@@ -640,12 +622,6 @@ export interface ResourceNotFound extends __SmithyException, $MetadataBearer {
|
|
|
640
622
|
*/
|
|
641
623
|
message?: string;
|
|
642
624
|
}
|
|
643
|
-
export declare namespace ResourceNotFound {
|
|
644
|
-
/**
|
|
645
|
-
* @internal
|
|
646
|
-
*/
|
|
647
|
-
const filterSensitiveLog: (obj: ResourceNotFound) => any;
|
|
648
|
-
}
|
|
649
625
|
export interface DeleteAnomalyDetectorInput {
|
|
650
626
|
/**
|
|
651
627
|
* @deprecated
|
|
@@ -766,12 +742,6 @@ export interface InternalServiceFault extends __SmithyException, $MetadataBearer
|
|
|
766
742
|
*/
|
|
767
743
|
Message?: string;
|
|
768
744
|
}
|
|
769
|
-
export declare namespace InternalServiceFault {
|
|
770
|
-
/**
|
|
771
|
-
* @internal
|
|
772
|
-
*/
|
|
773
|
-
const filterSensitiveLog: (obj: InternalServiceFault) => any;
|
|
774
|
-
}
|
|
775
745
|
/**
|
|
776
746
|
* <p>Parameters were used together that cannot be used together.</p>
|
|
777
747
|
*/
|
|
@@ -783,12 +753,6 @@ export interface InvalidParameterCombinationException extends __SmithyException,
|
|
|
783
753
|
*/
|
|
784
754
|
message?: string;
|
|
785
755
|
}
|
|
786
|
-
export declare namespace InvalidParameterCombinationException {
|
|
787
|
-
/**
|
|
788
|
-
* @internal
|
|
789
|
-
*/
|
|
790
|
-
const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
|
|
791
|
-
}
|
|
792
756
|
/**
|
|
793
757
|
* <p>The value of an input parameter is bad or out-of-range.</p>
|
|
794
758
|
*/
|
|
@@ -800,12 +764,6 @@ export interface InvalidParameterValueException extends __SmithyException, $Meta
|
|
|
800
764
|
*/
|
|
801
765
|
message?: string;
|
|
802
766
|
}
|
|
803
|
-
export declare namespace InvalidParameterValueException {
|
|
804
|
-
/**
|
|
805
|
-
* @internal
|
|
806
|
-
*/
|
|
807
|
-
const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
|
|
808
|
-
}
|
|
809
767
|
/**
|
|
810
768
|
* <p>An input parameter that is required is missing.</p>
|
|
811
769
|
*/
|
|
@@ -817,12 +775,6 @@ export interface MissingRequiredParameterException extends __SmithyException, $M
|
|
|
817
775
|
*/
|
|
818
776
|
message?: string;
|
|
819
777
|
}
|
|
820
|
-
export declare namespace MissingRequiredParameterException {
|
|
821
|
-
/**
|
|
822
|
-
* @internal
|
|
823
|
-
*/
|
|
824
|
-
const filterSensitiveLog: (obj: MissingRequiredParameterException) => any;
|
|
825
|
-
}
|
|
826
778
|
/**
|
|
827
779
|
* <p>The named resource does not exist.</p>
|
|
828
780
|
*/
|
|
@@ -833,12 +785,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
833
785
|
ResourceId?: string;
|
|
834
786
|
Message?: string;
|
|
835
787
|
}
|
|
836
|
-
export declare namespace ResourceNotFoundException {
|
|
837
|
-
/**
|
|
838
|
-
* @internal
|
|
839
|
-
*/
|
|
840
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
841
|
-
}
|
|
842
788
|
export interface DeleteDashboardsInput {
|
|
843
789
|
/**
|
|
844
790
|
* <p>The dashboards to be deleted. This parameter is required.</p>
|
|
@@ -977,12 +923,6 @@ export interface InvalidNextToken extends __SmithyException, $MetadataBearer {
|
|
|
977
923
|
*/
|
|
978
924
|
message?: string;
|
|
979
925
|
}
|
|
980
|
-
export declare namespace InvalidNextToken {
|
|
981
|
-
/**
|
|
982
|
-
* @internal
|
|
983
|
-
*/
|
|
984
|
-
const filterSensitiveLog: (obj: InvalidNextToken) => any;
|
|
985
|
-
}
|
|
986
926
|
export interface DescribeAlarmsInput {
|
|
987
927
|
/**
|
|
988
928
|
* <p>The names of the alarms to retrieve information about.</p>
|
|
@@ -1499,12 +1439,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
1499
1439
|
$fault: "client";
|
|
1500
1440
|
Message?: string;
|
|
1501
1441
|
}
|
|
1502
|
-
export declare namespace LimitExceededException {
|
|
1503
|
-
/**
|
|
1504
|
-
* @internal
|
|
1505
|
-
*/
|
|
1506
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
1507
|
-
}
|
|
1508
1442
|
export interface GetDashboardInput {
|
|
1509
1443
|
/**
|
|
1510
1444
|
* <p>The name of the dashboard to be described.</p>
|
|
@@ -2582,12 +2516,6 @@ export interface LimitExceededFault extends __SmithyException, $MetadataBearer {
|
|
|
2582
2516
|
*/
|
|
2583
2517
|
message?: string;
|
|
2584
2518
|
}
|
|
2585
|
-
export declare namespace LimitExceededFault {
|
|
2586
|
-
/**
|
|
2587
|
-
* @internal
|
|
2588
|
-
*/
|
|
2589
|
-
const filterSensitiveLog: (obj: LimitExceededFault) => any;
|
|
2590
|
-
}
|
|
2591
2519
|
export interface PutCompositeAlarmInput {
|
|
2592
2520
|
/**
|
|
2593
2521
|
* <p>Indicates whether actions should be executed during any changes to the alarm state of the composite alarm. The default is
|
|
@@ -3237,12 +3165,6 @@ export interface InvalidFormatFault extends __SmithyException, $MetadataBearer {
|
|
|
3237
3165
|
*/
|
|
3238
3166
|
message?: string;
|
|
3239
3167
|
}
|
|
3240
|
-
export declare namespace InvalidFormatFault {
|
|
3241
|
-
/**
|
|
3242
|
-
* @internal
|
|
3243
|
-
*/
|
|
3244
|
-
const filterSensitiveLog: (obj: InvalidFormatFault) => any;
|
|
3245
|
-
}
|
|
3246
3168
|
export interface SetAlarmStateInput {
|
|
3247
3169
|
/**
|
|
3248
3170
|
* <p>The name of the alarm.</p>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { CloudWatchClientConfig } from "./CloudWatchClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { CloudWatchClientConfig } from "./CloudWatchClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
12
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
30
|
tls?: boolean | undefined;
|
|
30
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { DeleteAlarmsCommandInput, DeleteAlarmsCommandOutput } from "./commands/DeleteAlarmsCommand";
|
|
10
10
|
import { DeleteAnomalyDetectorCommandInput, DeleteAnomalyDetectorCommandOutput } from "./commands/DeleteAnomalyDetectorCommand";
|
|
@@ -87,6 +87,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
87
87
|
regionInfoProvider?: RegionInfoProvider;
|
|
88
88
|
|
|
89
89
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
90
|
+
|
|
91
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
90
92
|
}
|
|
91
93
|
declare type CloudWatchClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
92
94
|
|
|
@@ -211,10 +211,6 @@ export interface ConcurrentModificationException extends __SmithyException, $Met
|
|
|
211
211
|
$fault: "client";
|
|
212
212
|
Message?: string;
|
|
213
213
|
}
|
|
214
|
-
export declare namespace ConcurrentModificationException {
|
|
215
|
-
|
|
216
|
-
const filterSensitiveLog: (obj: ConcurrentModificationException) => any;
|
|
217
|
-
}
|
|
218
214
|
|
|
219
215
|
export interface DashboardEntry {
|
|
220
216
|
|
|
@@ -248,20 +244,12 @@ export interface DashboardInvalidInputError extends __SmithyException, $Metadata
|
|
|
248
244
|
message?: string;
|
|
249
245
|
dashboardValidationMessages?: DashboardValidationMessage[];
|
|
250
246
|
}
|
|
251
|
-
export declare namespace DashboardInvalidInputError {
|
|
252
|
-
|
|
253
|
-
const filterSensitiveLog: (obj: DashboardInvalidInputError) => any;
|
|
254
|
-
}
|
|
255
247
|
|
|
256
248
|
export interface DashboardNotFoundError extends __SmithyException, $MetadataBearer {
|
|
257
249
|
name: "DashboardNotFoundError";
|
|
258
250
|
$fault: "client";
|
|
259
251
|
message?: string;
|
|
260
252
|
}
|
|
261
|
-
export declare namespace DashboardNotFoundError {
|
|
262
|
-
|
|
263
|
-
const filterSensitiveLog: (obj: DashboardNotFoundError) => any;
|
|
264
|
-
}
|
|
265
253
|
|
|
266
254
|
export interface Datapoint {
|
|
267
255
|
|
|
@@ -302,10 +290,6 @@ export interface ResourceNotFound extends __SmithyException, $MetadataBearer {
|
|
|
302
290
|
|
|
303
291
|
message?: string;
|
|
304
292
|
}
|
|
305
|
-
export declare namespace ResourceNotFound {
|
|
306
|
-
|
|
307
|
-
const filterSensitiveLog: (obj: ResourceNotFound) => any;
|
|
308
|
-
}
|
|
309
293
|
export interface DeleteAnomalyDetectorInput {
|
|
310
294
|
|
|
311
295
|
Namespace?: string;
|
|
@@ -337,10 +321,6 @@ export interface InternalServiceFault extends __SmithyException, $MetadataBearer
|
|
|
337
321
|
|
|
338
322
|
Message?: string;
|
|
339
323
|
}
|
|
340
|
-
export declare namespace InternalServiceFault {
|
|
341
|
-
|
|
342
|
-
const filterSensitiveLog: (obj: InternalServiceFault) => any;
|
|
343
|
-
}
|
|
344
324
|
|
|
345
325
|
export interface InvalidParameterCombinationException extends __SmithyException, $MetadataBearer {
|
|
346
326
|
name: "InvalidParameterCombinationException";
|
|
@@ -348,10 +328,6 @@ export interface InvalidParameterCombinationException extends __SmithyException,
|
|
|
348
328
|
|
|
349
329
|
message?: string;
|
|
350
330
|
}
|
|
351
|
-
export declare namespace InvalidParameterCombinationException {
|
|
352
|
-
|
|
353
|
-
const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
|
|
354
|
-
}
|
|
355
331
|
|
|
356
332
|
export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
|
|
357
333
|
name: "InvalidParameterValueException";
|
|
@@ -359,10 +335,6 @@ export interface InvalidParameterValueException extends __SmithyException, $Meta
|
|
|
359
335
|
|
|
360
336
|
message?: string;
|
|
361
337
|
}
|
|
362
|
-
export declare namespace InvalidParameterValueException {
|
|
363
|
-
|
|
364
|
-
const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
|
|
365
|
-
}
|
|
366
338
|
|
|
367
339
|
export interface MissingRequiredParameterException extends __SmithyException, $MetadataBearer {
|
|
368
340
|
name: "MissingRequiredParameterException";
|
|
@@ -370,10 +342,6 @@ export interface MissingRequiredParameterException extends __SmithyException, $M
|
|
|
370
342
|
|
|
371
343
|
message?: string;
|
|
372
344
|
}
|
|
373
|
-
export declare namespace MissingRequiredParameterException {
|
|
374
|
-
|
|
375
|
-
const filterSensitiveLog: (obj: MissingRequiredParameterException) => any;
|
|
376
|
-
}
|
|
377
345
|
|
|
378
346
|
export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
|
|
379
347
|
name: "ResourceNotFoundException";
|
|
@@ -382,10 +350,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
382
350
|
ResourceId?: string;
|
|
383
351
|
Message?: string;
|
|
384
352
|
}
|
|
385
|
-
export declare namespace ResourceNotFoundException {
|
|
386
|
-
|
|
387
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
388
|
-
}
|
|
389
353
|
export interface DeleteDashboardsInput {
|
|
390
354
|
|
|
391
355
|
DashboardNames: string[] | undefined;
|
|
@@ -473,10 +437,6 @@ export interface InvalidNextToken extends __SmithyException, $MetadataBearer {
|
|
|
473
437
|
|
|
474
438
|
message?: string;
|
|
475
439
|
}
|
|
476
|
-
export declare namespace InvalidNextToken {
|
|
477
|
-
|
|
478
|
-
const filterSensitiveLog: (obj: InvalidNextToken) => any;
|
|
479
|
-
}
|
|
480
440
|
export interface DescribeAlarmsInput {
|
|
481
441
|
|
|
482
442
|
AlarmNames?: string[];
|
|
@@ -731,10 +691,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
731
691
|
$fault: "client";
|
|
732
692
|
Message?: string;
|
|
733
693
|
}
|
|
734
|
-
export declare namespace LimitExceededException {
|
|
735
|
-
|
|
736
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
737
|
-
}
|
|
738
694
|
export interface GetDashboardInput {
|
|
739
695
|
|
|
740
696
|
DashboardName: string | undefined;
|
|
@@ -1165,10 +1121,6 @@ export interface LimitExceededFault extends __SmithyException, $MetadataBearer {
|
|
|
1165
1121
|
|
|
1166
1122
|
message?: string;
|
|
1167
1123
|
}
|
|
1168
|
-
export declare namespace LimitExceededFault {
|
|
1169
|
-
|
|
1170
|
-
const filterSensitiveLog: (obj: LimitExceededFault) => any;
|
|
1171
|
-
}
|
|
1172
1124
|
export interface PutCompositeAlarmInput {
|
|
1173
1125
|
|
|
1174
1126
|
ActionsEnabled?: boolean;
|
|
@@ -1364,10 +1316,6 @@ export interface InvalidFormatFault extends __SmithyException, $MetadataBearer {
|
|
|
1364
1316
|
|
|
1365
1317
|
message?: string;
|
|
1366
1318
|
}
|
|
1367
|
-
export declare namespace InvalidFormatFault {
|
|
1368
|
-
|
|
1369
|
-
const filterSensitiveLog: (obj: InvalidFormatFault) => any;
|
|
1370
|
-
}
|
|
1371
1319
|
export interface SetAlarmStateInput {
|
|
1372
1320
|
|
|
1373
1321
|
AlarmName: string | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { CloudWatchClientConfig } from "./CloudWatchClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { CloudWatchClientConfig } from "./CloudWatchClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
9
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
|
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
26
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
28
|
tls?: boolean | undefined;
|
|
28
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.48.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "yarn
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
8
|
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "
|
|
13
|
-
"clean:dist": "rimraf ./dist-*",
|
|
14
|
-
"clean:docs": "rimraf ./docs"
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
15
13
|
},
|
|
16
14
|
"main": "./dist-cjs/index.js",
|
|
17
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,41 +18,43 @@
|
|
|
20
18
|
"dependencies": {
|
|
21
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
27
|
-
"@aws-sdk/hash-node": "3.
|
|
28
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
29
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
47
|
-
"@aws-sdk/util-
|
|
48
|
-
"@aws-sdk/util-
|
|
49
|
-
"@aws-sdk/util-
|
|
50
|
-
"@aws-sdk/util-
|
|
51
|
-
"@aws-sdk/util-
|
|
21
|
+
"@aws-sdk/client-sts": "3.48.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.47.2",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.48.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.47.2",
|
|
25
|
+
"@aws-sdk/hash-node": "3.47.2",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.47.2",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.47.2",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.47.2",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.47.2",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.47.2",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.47.2",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.47.2",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.47.2",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.47.2",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.47.2",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.47.2",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.47.2",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.47.2",
|
|
39
|
+
"@aws-sdk/types": "3.47.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.47.2",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.47.1",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.47.2",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.47.1",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.47.1",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.47.2",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.47.2",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.47.2",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.47.2",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.47.1",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.47.2",
|
|
51
|
+
"@aws-sdk/util-waiter": "3.47.2",
|
|
52
52
|
"entities": "2.2.0",
|
|
53
53
|
"fast-xml-parser": "3.19.0",
|
|
54
54
|
"tslib": "^2.3.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
57
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.1",
|
|
58
58
|
"@types/node": "^12.7.5"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|