@aws-sdk/client-cloudwatch 3.1068.0 → 3.1069.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +222 -242
- package/dist-cjs/models/CloudWatchServiceException.js +4 -8
- package/dist-cjs/models/errors.js +35 -55
- package/dist-cjs/runtimeConfig.browser.js +25 -29
- package/dist-cjs/runtimeConfig.js +33 -37
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +419 -275
- package/package.json +9 -9
package/dist-cjs/index.js
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveCompressionConfig, getCompressionPlugin } = require("@smithy/middleware-compression");
|
|
13
|
+
const { resolveHttpAuthSchemeConfig, defaultCloudWatchHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
14
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
15
|
+
const { AssociateDatasetKmsKey$, DeleteAlarmMuteRule$, DeleteAlarms$, DeleteAnomalyDetector$, DeleteDashboards$, DeleteInsightRules$, DeleteMetricStream$, DescribeAlarmContributors$, DescribeAlarmHistory$, DescribeAlarms$, DescribeAlarmsForMetric$, DescribeAnomalyDetectors$, DescribeInsightRules$, DisableAlarmActions$, DisableInsightRules$, DisassociateDatasetKmsKey$, EnableAlarmActions$, EnableInsightRules$, GetAlarmMuteRule$, GetDashboard$, GetDataset$, GetInsightRuleReport$, GetMetricData$, GetMetricStatistics$, GetMetricStream$, GetMetricWidgetImage$, GetOTelEnrichment$, ListAlarmMuteRules$, ListDashboards$, ListManagedInsightRules$, ListMetrics$, ListMetricStreams$, ListTagsForResource$, PutAlarmMuteRule$, PutAnomalyDetector$, PutCompositeAlarm$, PutDashboard$, PutInsightRule$, PutManagedInsightRules$, PutMetricAlarm$, PutMetricData$, PutMetricStream$, SetAlarmState$, StartMetricStreams$, StartOTelEnrichment$, StopMetricStreams$, StopOTelEnrichment$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
|
|
16
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
17
|
+
__exportStar(require("./models/errors"), exports);
|
|
18
|
+
const { CloudWatchServiceException } = require("./models/CloudWatchServiceException");
|
|
19
|
+
exports.CloudWatchServiceException = CloudWatchServiceException;
|
|
17
20
|
|
|
18
21
|
const resolveClientEndpointParameters = (options) => {
|
|
19
22
|
return Object.assign(options, {
|
|
@@ -69,664 +72,664 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
69
72
|
};
|
|
70
73
|
|
|
71
74
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
-
const extensionConfiguration = Object.assign(
|
|
75
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
76
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
-
return Object.assign(runtimeConfig,
|
|
77
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
75
78
|
};
|
|
76
79
|
|
|
77
|
-
class CloudWatchClient extends
|
|
80
|
+
class CloudWatchClient extends Client {
|
|
78
81
|
config;
|
|
79
82
|
constructor(...[configuration]) {
|
|
80
|
-
const _config_0 =
|
|
83
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
81
84
|
super(_config_0);
|
|
82
85
|
this.initConfig = _config_0;
|
|
83
86
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
-
const _config_2 =
|
|
85
|
-
const _config_3 =
|
|
86
|
-
const _config_4 =
|
|
87
|
-
const _config_5 =
|
|
88
|
-
const _config_6 =
|
|
89
|
-
const _config_7 =
|
|
90
|
-
const _config_8 =
|
|
87
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveCompressionConfig(_config_7);
|
|
91
94
|
const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
|
|
92
95
|
this.config = _config_9;
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
100
|
-
this.middlewareStack.use(
|
|
101
|
-
httpAuthSchemeParametersProvider:
|
|
102
|
-
identityProviderConfigProvider: async (config) => new
|
|
96
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
102
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
103
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
104
|
+
httpAuthSchemeParametersProvider: defaultCloudWatchHttpAuthSchemeParametersProvider,
|
|
105
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
103
106
|
"aws.auth#sigv4": config.credentials,
|
|
104
107
|
}),
|
|
105
108
|
}));
|
|
106
|
-
this.middlewareStack.use(
|
|
109
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
107
110
|
}
|
|
108
111
|
destroy() {
|
|
109
112
|
super.destroy();
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class AssociateDatasetKmsKeyCommand extends
|
|
116
|
+
class AssociateDatasetKmsKeyCommand extends Command
|
|
114
117
|
.classBuilder()
|
|
115
118
|
.ep(commonParams)
|
|
116
119
|
.m(function (Command, cs, config, o) {
|
|
117
|
-
return [
|
|
120
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
118
121
|
})
|
|
119
122
|
.s("GraniteServiceVersion20100801", "AssociateDatasetKmsKey", {})
|
|
120
123
|
.n("CloudWatchClient", "AssociateDatasetKmsKeyCommand")
|
|
121
|
-
.sc(
|
|
124
|
+
.sc(AssociateDatasetKmsKey$)
|
|
122
125
|
.build() {
|
|
123
126
|
}
|
|
124
127
|
|
|
125
|
-
class DeleteAlarmMuteRuleCommand extends
|
|
128
|
+
class DeleteAlarmMuteRuleCommand extends Command
|
|
126
129
|
.classBuilder()
|
|
127
130
|
.ep(commonParams)
|
|
128
131
|
.m(function (Command, cs, config, o) {
|
|
129
|
-
return [
|
|
132
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
130
133
|
})
|
|
131
134
|
.s("GraniteServiceVersion20100801", "DeleteAlarmMuteRule", {})
|
|
132
135
|
.n("CloudWatchClient", "DeleteAlarmMuteRuleCommand")
|
|
133
|
-
.sc(
|
|
136
|
+
.sc(DeleteAlarmMuteRule$)
|
|
134
137
|
.build() {
|
|
135
138
|
}
|
|
136
139
|
|
|
137
|
-
class DeleteAlarmsCommand extends
|
|
140
|
+
class DeleteAlarmsCommand extends Command
|
|
138
141
|
.classBuilder()
|
|
139
142
|
.ep(commonParams)
|
|
140
143
|
.m(function (Command, cs, config, o) {
|
|
141
|
-
return [
|
|
144
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
142
145
|
})
|
|
143
146
|
.s("GraniteServiceVersion20100801", "DeleteAlarms", {})
|
|
144
147
|
.n("CloudWatchClient", "DeleteAlarmsCommand")
|
|
145
|
-
.sc(
|
|
148
|
+
.sc(DeleteAlarms$)
|
|
146
149
|
.build() {
|
|
147
150
|
}
|
|
148
151
|
|
|
149
|
-
class DeleteAnomalyDetectorCommand extends
|
|
152
|
+
class DeleteAnomalyDetectorCommand extends Command
|
|
150
153
|
.classBuilder()
|
|
151
154
|
.ep(commonParams)
|
|
152
155
|
.m(function (Command, cs, config, o) {
|
|
153
|
-
return [
|
|
156
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
154
157
|
})
|
|
155
158
|
.s("GraniteServiceVersion20100801", "DeleteAnomalyDetector", {})
|
|
156
159
|
.n("CloudWatchClient", "DeleteAnomalyDetectorCommand")
|
|
157
|
-
.sc(
|
|
160
|
+
.sc(DeleteAnomalyDetector$)
|
|
158
161
|
.build() {
|
|
159
162
|
}
|
|
160
163
|
|
|
161
|
-
class DeleteDashboardsCommand extends
|
|
164
|
+
class DeleteDashboardsCommand extends Command
|
|
162
165
|
.classBuilder()
|
|
163
166
|
.ep(commonParams)
|
|
164
167
|
.m(function (Command, cs, config, o) {
|
|
165
|
-
return [
|
|
168
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
166
169
|
})
|
|
167
170
|
.s("GraniteServiceVersion20100801", "DeleteDashboards", {})
|
|
168
171
|
.n("CloudWatchClient", "DeleteDashboardsCommand")
|
|
169
|
-
.sc(
|
|
172
|
+
.sc(DeleteDashboards$)
|
|
170
173
|
.build() {
|
|
171
174
|
}
|
|
172
175
|
|
|
173
|
-
class DeleteInsightRulesCommand extends
|
|
176
|
+
class DeleteInsightRulesCommand extends Command
|
|
174
177
|
.classBuilder()
|
|
175
178
|
.ep(commonParams)
|
|
176
179
|
.m(function (Command, cs, config, o) {
|
|
177
|
-
return [
|
|
180
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
178
181
|
})
|
|
179
182
|
.s("GraniteServiceVersion20100801", "DeleteInsightRules", {})
|
|
180
183
|
.n("CloudWatchClient", "DeleteInsightRulesCommand")
|
|
181
|
-
.sc(
|
|
184
|
+
.sc(DeleteInsightRules$)
|
|
182
185
|
.build() {
|
|
183
186
|
}
|
|
184
187
|
|
|
185
|
-
class DeleteMetricStreamCommand extends
|
|
188
|
+
class DeleteMetricStreamCommand extends Command
|
|
186
189
|
.classBuilder()
|
|
187
190
|
.ep(commonParams)
|
|
188
191
|
.m(function (Command, cs, config, o) {
|
|
189
|
-
return [
|
|
192
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
190
193
|
})
|
|
191
194
|
.s("GraniteServiceVersion20100801", "DeleteMetricStream", {})
|
|
192
195
|
.n("CloudWatchClient", "DeleteMetricStreamCommand")
|
|
193
|
-
.sc(
|
|
196
|
+
.sc(DeleteMetricStream$)
|
|
194
197
|
.build() {
|
|
195
198
|
}
|
|
196
199
|
|
|
197
|
-
class DescribeAlarmContributorsCommand extends
|
|
200
|
+
class DescribeAlarmContributorsCommand extends Command
|
|
198
201
|
.classBuilder()
|
|
199
202
|
.ep(commonParams)
|
|
200
203
|
.m(function (Command, cs, config, o) {
|
|
201
|
-
return [
|
|
204
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
202
205
|
})
|
|
203
206
|
.s("GraniteServiceVersion20100801", "DescribeAlarmContributors", {})
|
|
204
207
|
.n("CloudWatchClient", "DescribeAlarmContributorsCommand")
|
|
205
|
-
.sc(
|
|
208
|
+
.sc(DescribeAlarmContributors$)
|
|
206
209
|
.build() {
|
|
207
210
|
}
|
|
208
211
|
|
|
209
|
-
class DescribeAlarmHistoryCommand extends
|
|
212
|
+
class DescribeAlarmHistoryCommand extends Command
|
|
210
213
|
.classBuilder()
|
|
211
214
|
.ep(commonParams)
|
|
212
215
|
.m(function (Command, cs, config, o) {
|
|
213
|
-
return [
|
|
216
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
214
217
|
})
|
|
215
218
|
.s("GraniteServiceVersion20100801", "DescribeAlarmHistory", {})
|
|
216
219
|
.n("CloudWatchClient", "DescribeAlarmHistoryCommand")
|
|
217
|
-
.sc(
|
|
220
|
+
.sc(DescribeAlarmHistory$)
|
|
218
221
|
.build() {
|
|
219
222
|
}
|
|
220
223
|
|
|
221
|
-
class DescribeAlarmsCommand extends
|
|
224
|
+
class DescribeAlarmsCommand extends Command
|
|
222
225
|
.classBuilder()
|
|
223
226
|
.ep(commonParams)
|
|
224
227
|
.m(function (Command, cs, config, o) {
|
|
225
|
-
return [
|
|
228
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
226
229
|
})
|
|
227
230
|
.s("GraniteServiceVersion20100801", "DescribeAlarms", {})
|
|
228
231
|
.n("CloudWatchClient", "DescribeAlarmsCommand")
|
|
229
|
-
.sc(
|
|
232
|
+
.sc(DescribeAlarms$)
|
|
230
233
|
.build() {
|
|
231
234
|
}
|
|
232
235
|
|
|
233
|
-
class DescribeAlarmsForMetricCommand extends
|
|
236
|
+
class DescribeAlarmsForMetricCommand extends Command
|
|
234
237
|
.classBuilder()
|
|
235
238
|
.ep(commonParams)
|
|
236
239
|
.m(function (Command, cs, config, o) {
|
|
237
|
-
return [
|
|
240
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
238
241
|
})
|
|
239
242
|
.s("GraniteServiceVersion20100801", "DescribeAlarmsForMetric", {})
|
|
240
243
|
.n("CloudWatchClient", "DescribeAlarmsForMetricCommand")
|
|
241
|
-
.sc(
|
|
244
|
+
.sc(DescribeAlarmsForMetric$)
|
|
242
245
|
.build() {
|
|
243
246
|
}
|
|
244
247
|
|
|
245
|
-
class DescribeAnomalyDetectorsCommand extends
|
|
248
|
+
class DescribeAnomalyDetectorsCommand extends Command
|
|
246
249
|
.classBuilder()
|
|
247
250
|
.ep(commonParams)
|
|
248
251
|
.m(function (Command, cs, config, o) {
|
|
249
|
-
return [
|
|
252
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
250
253
|
})
|
|
251
254
|
.s("GraniteServiceVersion20100801", "DescribeAnomalyDetectors", {})
|
|
252
255
|
.n("CloudWatchClient", "DescribeAnomalyDetectorsCommand")
|
|
253
|
-
.sc(
|
|
256
|
+
.sc(DescribeAnomalyDetectors$)
|
|
254
257
|
.build() {
|
|
255
258
|
}
|
|
256
259
|
|
|
257
|
-
class DescribeInsightRulesCommand extends
|
|
260
|
+
class DescribeInsightRulesCommand extends Command
|
|
258
261
|
.classBuilder()
|
|
259
262
|
.ep(commonParams)
|
|
260
263
|
.m(function (Command, cs, config, o) {
|
|
261
|
-
return [
|
|
264
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
262
265
|
})
|
|
263
266
|
.s("GraniteServiceVersion20100801", "DescribeInsightRules", {})
|
|
264
267
|
.n("CloudWatchClient", "DescribeInsightRulesCommand")
|
|
265
|
-
.sc(
|
|
268
|
+
.sc(DescribeInsightRules$)
|
|
266
269
|
.build() {
|
|
267
270
|
}
|
|
268
271
|
|
|
269
|
-
class DisableAlarmActionsCommand extends
|
|
272
|
+
class DisableAlarmActionsCommand extends Command
|
|
270
273
|
.classBuilder()
|
|
271
274
|
.ep(commonParams)
|
|
272
275
|
.m(function (Command, cs, config, o) {
|
|
273
|
-
return [
|
|
276
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
274
277
|
})
|
|
275
278
|
.s("GraniteServiceVersion20100801", "DisableAlarmActions", {})
|
|
276
279
|
.n("CloudWatchClient", "DisableAlarmActionsCommand")
|
|
277
|
-
.sc(
|
|
280
|
+
.sc(DisableAlarmActions$)
|
|
278
281
|
.build() {
|
|
279
282
|
}
|
|
280
283
|
|
|
281
|
-
class DisableInsightRulesCommand extends
|
|
284
|
+
class DisableInsightRulesCommand extends Command
|
|
282
285
|
.classBuilder()
|
|
283
286
|
.ep(commonParams)
|
|
284
287
|
.m(function (Command, cs, config, o) {
|
|
285
|
-
return [
|
|
288
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
286
289
|
})
|
|
287
290
|
.s("GraniteServiceVersion20100801", "DisableInsightRules", {})
|
|
288
291
|
.n("CloudWatchClient", "DisableInsightRulesCommand")
|
|
289
|
-
.sc(
|
|
292
|
+
.sc(DisableInsightRules$)
|
|
290
293
|
.build() {
|
|
291
294
|
}
|
|
292
295
|
|
|
293
|
-
class DisassociateDatasetKmsKeyCommand extends
|
|
296
|
+
class DisassociateDatasetKmsKeyCommand extends Command
|
|
294
297
|
.classBuilder()
|
|
295
298
|
.ep(commonParams)
|
|
296
299
|
.m(function (Command, cs, config, o) {
|
|
297
|
-
return [
|
|
300
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
298
301
|
})
|
|
299
302
|
.s("GraniteServiceVersion20100801", "DisassociateDatasetKmsKey", {})
|
|
300
303
|
.n("CloudWatchClient", "DisassociateDatasetKmsKeyCommand")
|
|
301
|
-
.sc(
|
|
304
|
+
.sc(DisassociateDatasetKmsKey$)
|
|
302
305
|
.build() {
|
|
303
306
|
}
|
|
304
307
|
|
|
305
|
-
class EnableAlarmActionsCommand extends
|
|
308
|
+
class EnableAlarmActionsCommand extends Command
|
|
306
309
|
.classBuilder()
|
|
307
310
|
.ep(commonParams)
|
|
308
311
|
.m(function (Command, cs, config, o) {
|
|
309
|
-
return [
|
|
312
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
310
313
|
})
|
|
311
314
|
.s("GraniteServiceVersion20100801", "EnableAlarmActions", {})
|
|
312
315
|
.n("CloudWatchClient", "EnableAlarmActionsCommand")
|
|
313
|
-
.sc(
|
|
316
|
+
.sc(EnableAlarmActions$)
|
|
314
317
|
.build() {
|
|
315
318
|
}
|
|
316
319
|
|
|
317
|
-
class EnableInsightRulesCommand extends
|
|
320
|
+
class EnableInsightRulesCommand extends Command
|
|
318
321
|
.classBuilder()
|
|
319
322
|
.ep(commonParams)
|
|
320
323
|
.m(function (Command, cs, config, o) {
|
|
321
|
-
return [
|
|
324
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
322
325
|
})
|
|
323
326
|
.s("GraniteServiceVersion20100801", "EnableInsightRules", {})
|
|
324
327
|
.n("CloudWatchClient", "EnableInsightRulesCommand")
|
|
325
|
-
.sc(
|
|
328
|
+
.sc(EnableInsightRules$)
|
|
326
329
|
.build() {
|
|
327
330
|
}
|
|
328
331
|
|
|
329
|
-
class GetAlarmMuteRuleCommand extends
|
|
332
|
+
class GetAlarmMuteRuleCommand extends Command
|
|
330
333
|
.classBuilder()
|
|
331
334
|
.ep(commonParams)
|
|
332
335
|
.m(function (Command, cs, config, o) {
|
|
333
|
-
return [
|
|
336
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
334
337
|
})
|
|
335
338
|
.s("GraniteServiceVersion20100801", "GetAlarmMuteRule", {})
|
|
336
339
|
.n("CloudWatchClient", "GetAlarmMuteRuleCommand")
|
|
337
|
-
.sc(
|
|
340
|
+
.sc(GetAlarmMuteRule$)
|
|
338
341
|
.build() {
|
|
339
342
|
}
|
|
340
343
|
|
|
341
|
-
class GetDashboardCommand extends
|
|
344
|
+
class GetDashboardCommand extends Command
|
|
342
345
|
.classBuilder()
|
|
343
346
|
.ep(commonParams)
|
|
344
347
|
.m(function (Command, cs, config, o) {
|
|
345
|
-
return [
|
|
348
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
346
349
|
})
|
|
347
350
|
.s("GraniteServiceVersion20100801", "GetDashboard", {})
|
|
348
351
|
.n("CloudWatchClient", "GetDashboardCommand")
|
|
349
|
-
.sc(
|
|
352
|
+
.sc(GetDashboard$)
|
|
350
353
|
.build() {
|
|
351
354
|
}
|
|
352
355
|
|
|
353
|
-
class GetDatasetCommand extends
|
|
356
|
+
class GetDatasetCommand extends Command
|
|
354
357
|
.classBuilder()
|
|
355
358
|
.ep(commonParams)
|
|
356
359
|
.m(function (Command, cs, config, o) {
|
|
357
|
-
return [
|
|
360
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
358
361
|
})
|
|
359
362
|
.s("GraniteServiceVersion20100801", "GetDataset", {})
|
|
360
363
|
.n("CloudWatchClient", "GetDatasetCommand")
|
|
361
|
-
.sc(
|
|
364
|
+
.sc(GetDataset$)
|
|
362
365
|
.build() {
|
|
363
366
|
}
|
|
364
367
|
|
|
365
|
-
class GetInsightRuleReportCommand extends
|
|
368
|
+
class GetInsightRuleReportCommand extends Command
|
|
366
369
|
.classBuilder()
|
|
367
370
|
.ep(commonParams)
|
|
368
371
|
.m(function (Command, cs, config, o) {
|
|
369
|
-
return [
|
|
372
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
370
373
|
})
|
|
371
374
|
.s("GraniteServiceVersion20100801", "GetInsightRuleReport", {})
|
|
372
375
|
.n("CloudWatchClient", "GetInsightRuleReportCommand")
|
|
373
|
-
.sc(
|
|
376
|
+
.sc(GetInsightRuleReport$)
|
|
374
377
|
.build() {
|
|
375
378
|
}
|
|
376
379
|
|
|
377
|
-
class GetMetricDataCommand extends
|
|
380
|
+
class GetMetricDataCommand extends Command
|
|
378
381
|
.classBuilder()
|
|
379
382
|
.ep(commonParams)
|
|
380
383
|
.m(function (Command, cs, config, o) {
|
|
381
|
-
return [
|
|
384
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
382
385
|
})
|
|
383
386
|
.s("GraniteServiceVersion20100801", "GetMetricData", {})
|
|
384
387
|
.n("CloudWatchClient", "GetMetricDataCommand")
|
|
385
|
-
.sc(
|
|
388
|
+
.sc(GetMetricData$)
|
|
386
389
|
.build() {
|
|
387
390
|
}
|
|
388
391
|
|
|
389
|
-
class GetMetricStatisticsCommand extends
|
|
392
|
+
class GetMetricStatisticsCommand extends Command
|
|
390
393
|
.classBuilder()
|
|
391
394
|
.ep(commonParams)
|
|
392
395
|
.m(function (Command, cs, config, o) {
|
|
393
|
-
return [
|
|
396
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
394
397
|
})
|
|
395
398
|
.s("GraniteServiceVersion20100801", "GetMetricStatistics", {})
|
|
396
399
|
.n("CloudWatchClient", "GetMetricStatisticsCommand")
|
|
397
|
-
.sc(
|
|
400
|
+
.sc(GetMetricStatistics$)
|
|
398
401
|
.build() {
|
|
399
402
|
}
|
|
400
403
|
|
|
401
|
-
class GetMetricStreamCommand extends
|
|
404
|
+
class GetMetricStreamCommand extends Command
|
|
402
405
|
.classBuilder()
|
|
403
406
|
.ep(commonParams)
|
|
404
407
|
.m(function (Command, cs, config, o) {
|
|
405
|
-
return [
|
|
408
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
406
409
|
})
|
|
407
410
|
.s("GraniteServiceVersion20100801", "GetMetricStream", {})
|
|
408
411
|
.n("CloudWatchClient", "GetMetricStreamCommand")
|
|
409
|
-
.sc(
|
|
412
|
+
.sc(GetMetricStream$)
|
|
410
413
|
.build() {
|
|
411
414
|
}
|
|
412
415
|
|
|
413
|
-
class GetMetricWidgetImageCommand extends
|
|
416
|
+
class GetMetricWidgetImageCommand extends Command
|
|
414
417
|
.classBuilder()
|
|
415
418
|
.ep(commonParams)
|
|
416
419
|
.m(function (Command, cs, config, o) {
|
|
417
|
-
return [
|
|
420
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
418
421
|
})
|
|
419
422
|
.s("GraniteServiceVersion20100801", "GetMetricWidgetImage", {})
|
|
420
423
|
.n("CloudWatchClient", "GetMetricWidgetImageCommand")
|
|
421
|
-
.sc(
|
|
424
|
+
.sc(GetMetricWidgetImage$)
|
|
422
425
|
.build() {
|
|
423
426
|
}
|
|
424
427
|
|
|
425
|
-
class GetOTelEnrichmentCommand extends
|
|
428
|
+
class GetOTelEnrichmentCommand extends Command
|
|
426
429
|
.classBuilder()
|
|
427
430
|
.ep(commonParams)
|
|
428
431
|
.m(function (Command, cs, config, o) {
|
|
429
|
-
return [
|
|
432
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
430
433
|
})
|
|
431
434
|
.s("GraniteServiceVersion20100801", "GetOTelEnrichment", {})
|
|
432
435
|
.n("CloudWatchClient", "GetOTelEnrichmentCommand")
|
|
433
|
-
.sc(
|
|
436
|
+
.sc(GetOTelEnrichment$)
|
|
434
437
|
.build() {
|
|
435
438
|
}
|
|
436
439
|
|
|
437
|
-
class ListAlarmMuteRulesCommand extends
|
|
440
|
+
class ListAlarmMuteRulesCommand extends Command
|
|
438
441
|
.classBuilder()
|
|
439
442
|
.ep(commonParams)
|
|
440
443
|
.m(function (Command, cs, config, o) {
|
|
441
|
-
return [
|
|
444
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
442
445
|
})
|
|
443
446
|
.s("GraniteServiceVersion20100801", "ListAlarmMuteRules", {})
|
|
444
447
|
.n("CloudWatchClient", "ListAlarmMuteRulesCommand")
|
|
445
|
-
.sc(
|
|
448
|
+
.sc(ListAlarmMuteRules$)
|
|
446
449
|
.build() {
|
|
447
450
|
}
|
|
448
451
|
|
|
449
|
-
class ListDashboardsCommand extends
|
|
452
|
+
class ListDashboardsCommand extends Command
|
|
450
453
|
.classBuilder()
|
|
451
454
|
.ep(commonParams)
|
|
452
455
|
.m(function (Command, cs, config, o) {
|
|
453
|
-
return [
|
|
456
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
454
457
|
})
|
|
455
458
|
.s("GraniteServiceVersion20100801", "ListDashboards", {})
|
|
456
459
|
.n("CloudWatchClient", "ListDashboardsCommand")
|
|
457
|
-
.sc(
|
|
460
|
+
.sc(ListDashboards$)
|
|
458
461
|
.build() {
|
|
459
462
|
}
|
|
460
463
|
|
|
461
|
-
class ListManagedInsightRulesCommand extends
|
|
464
|
+
class ListManagedInsightRulesCommand extends Command
|
|
462
465
|
.classBuilder()
|
|
463
466
|
.ep(commonParams)
|
|
464
467
|
.m(function (Command, cs, config, o) {
|
|
465
|
-
return [
|
|
468
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
466
469
|
})
|
|
467
470
|
.s("GraniteServiceVersion20100801", "ListManagedInsightRules", {})
|
|
468
471
|
.n("CloudWatchClient", "ListManagedInsightRulesCommand")
|
|
469
|
-
.sc(
|
|
472
|
+
.sc(ListManagedInsightRules$)
|
|
470
473
|
.build() {
|
|
471
474
|
}
|
|
472
475
|
|
|
473
|
-
class ListMetricsCommand extends
|
|
476
|
+
class ListMetricsCommand extends Command
|
|
474
477
|
.classBuilder()
|
|
475
478
|
.ep(commonParams)
|
|
476
479
|
.m(function (Command, cs, config, o) {
|
|
477
|
-
return [
|
|
480
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
478
481
|
})
|
|
479
482
|
.s("GraniteServiceVersion20100801", "ListMetrics", {})
|
|
480
483
|
.n("CloudWatchClient", "ListMetricsCommand")
|
|
481
|
-
.sc(
|
|
484
|
+
.sc(ListMetrics$)
|
|
482
485
|
.build() {
|
|
483
486
|
}
|
|
484
487
|
|
|
485
|
-
class ListMetricStreamsCommand extends
|
|
488
|
+
class ListMetricStreamsCommand extends Command
|
|
486
489
|
.classBuilder()
|
|
487
490
|
.ep(commonParams)
|
|
488
491
|
.m(function (Command, cs, config, o) {
|
|
489
|
-
return [
|
|
492
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
490
493
|
})
|
|
491
494
|
.s("GraniteServiceVersion20100801", "ListMetricStreams", {})
|
|
492
495
|
.n("CloudWatchClient", "ListMetricStreamsCommand")
|
|
493
|
-
.sc(
|
|
496
|
+
.sc(ListMetricStreams$)
|
|
494
497
|
.build() {
|
|
495
498
|
}
|
|
496
499
|
|
|
497
|
-
class ListTagsForResourceCommand extends
|
|
500
|
+
class ListTagsForResourceCommand extends Command
|
|
498
501
|
.classBuilder()
|
|
499
502
|
.ep(commonParams)
|
|
500
503
|
.m(function (Command, cs, config, o) {
|
|
501
|
-
return [
|
|
504
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
502
505
|
})
|
|
503
506
|
.s("GraniteServiceVersion20100801", "ListTagsForResource", {})
|
|
504
507
|
.n("CloudWatchClient", "ListTagsForResourceCommand")
|
|
505
|
-
.sc(
|
|
508
|
+
.sc(ListTagsForResource$)
|
|
506
509
|
.build() {
|
|
507
510
|
}
|
|
508
511
|
|
|
509
|
-
class PutAlarmMuteRuleCommand extends
|
|
512
|
+
class PutAlarmMuteRuleCommand extends Command
|
|
510
513
|
.classBuilder()
|
|
511
514
|
.ep(commonParams)
|
|
512
515
|
.m(function (Command, cs, config, o) {
|
|
513
|
-
return [
|
|
516
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
514
517
|
})
|
|
515
518
|
.s("GraniteServiceVersion20100801", "PutAlarmMuteRule", {})
|
|
516
519
|
.n("CloudWatchClient", "PutAlarmMuteRuleCommand")
|
|
517
|
-
.sc(
|
|
520
|
+
.sc(PutAlarmMuteRule$)
|
|
518
521
|
.build() {
|
|
519
522
|
}
|
|
520
523
|
|
|
521
|
-
class PutAnomalyDetectorCommand extends
|
|
524
|
+
class PutAnomalyDetectorCommand extends Command
|
|
522
525
|
.classBuilder()
|
|
523
526
|
.ep(commonParams)
|
|
524
527
|
.m(function (Command, cs, config, o) {
|
|
525
|
-
return [
|
|
528
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
526
529
|
})
|
|
527
530
|
.s("GraniteServiceVersion20100801", "PutAnomalyDetector", {})
|
|
528
531
|
.n("CloudWatchClient", "PutAnomalyDetectorCommand")
|
|
529
|
-
.sc(
|
|
532
|
+
.sc(PutAnomalyDetector$)
|
|
530
533
|
.build() {
|
|
531
534
|
}
|
|
532
535
|
|
|
533
|
-
class PutCompositeAlarmCommand extends
|
|
536
|
+
class PutCompositeAlarmCommand extends Command
|
|
534
537
|
.classBuilder()
|
|
535
538
|
.ep(commonParams)
|
|
536
539
|
.m(function (Command, cs, config, o) {
|
|
537
|
-
return [
|
|
540
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
538
541
|
})
|
|
539
542
|
.s("GraniteServiceVersion20100801", "PutCompositeAlarm", {})
|
|
540
543
|
.n("CloudWatchClient", "PutCompositeAlarmCommand")
|
|
541
|
-
.sc(
|
|
544
|
+
.sc(PutCompositeAlarm$)
|
|
542
545
|
.build() {
|
|
543
546
|
}
|
|
544
547
|
|
|
545
|
-
class PutDashboardCommand extends
|
|
548
|
+
class PutDashboardCommand extends Command
|
|
546
549
|
.classBuilder()
|
|
547
550
|
.ep(commonParams)
|
|
548
551
|
.m(function (Command, cs, config, o) {
|
|
549
|
-
return [
|
|
552
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
550
553
|
})
|
|
551
554
|
.s("GraniteServiceVersion20100801", "PutDashboard", {})
|
|
552
555
|
.n("CloudWatchClient", "PutDashboardCommand")
|
|
553
|
-
.sc(
|
|
556
|
+
.sc(PutDashboard$)
|
|
554
557
|
.build() {
|
|
555
558
|
}
|
|
556
559
|
|
|
557
|
-
class PutInsightRuleCommand extends
|
|
560
|
+
class PutInsightRuleCommand extends Command
|
|
558
561
|
.classBuilder()
|
|
559
562
|
.ep(commonParams)
|
|
560
563
|
.m(function (Command, cs, config, o) {
|
|
561
|
-
return [
|
|
564
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
562
565
|
})
|
|
563
566
|
.s("GraniteServiceVersion20100801", "PutInsightRule", {})
|
|
564
567
|
.n("CloudWatchClient", "PutInsightRuleCommand")
|
|
565
|
-
.sc(
|
|
568
|
+
.sc(PutInsightRule$)
|
|
566
569
|
.build() {
|
|
567
570
|
}
|
|
568
571
|
|
|
569
|
-
class PutManagedInsightRulesCommand extends
|
|
572
|
+
class PutManagedInsightRulesCommand extends Command
|
|
570
573
|
.classBuilder()
|
|
571
574
|
.ep(commonParams)
|
|
572
575
|
.m(function (Command, cs, config, o) {
|
|
573
|
-
return [
|
|
576
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
574
577
|
})
|
|
575
578
|
.s("GraniteServiceVersion20100801", "PutManagedInsightRules", {})
|
|
576
579
|
.n("CloudWatchClient", "PutManagedInsightRulesCommand")
|
|
577
|
-
.sc(
|
|
580
|
+
.sc(PutManagedInsightRules$)
|
|
578
581
|
.build() {
|
|
579
582
|
}
|
|
580
583
|
|
|
581
|
-
class PutMetricAlarmCommand extends
|
|
584
|
+
class PutMetricAlarmCommand extends Command
|
|
582
585
|
.classBuilder()
|
|
583
586
|
.ep(commonParams)
|
|
584
587
|
.m(function (Command, cs, config, o) {
|
|
585
|
-
return [
|
|
588
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
586
589
|
})
|
|
587
590
|
.s("GraniteServiceVersion20100801", "PutMetricAlarm", {})
|
|
588
591
|
.n("CloudWatchClient", "PutMetricAlarmCommand")
|
|
589
|
-
.sc(
|
|
592
|
+
.sc(PutMetricAlarm$)
|
|
590
593
|
.build() {
|
|
591
594
|
}
|
|
592
595
|
|
|
593
|
-
class PutMetricDataCommand extends
|
|
596
|
+
class PutMetricDataCommand extends Command
|
|
594
597
|
.classBuilder()
|
|
595
598
|
.ep(commonParams)
|
|
596
599
|
.m(function (Command, cs, config, o) {
|
|
597
600
|
return [
|
|
598
|
-
|
|
599
|
-
|
|
601
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
602
|
+
getCompressionPlugin(config, {
|
|
600
603
|
'encodings': ['gzip'],
|
|
601
604
|
}),
|
|
602
605
|
];
|
|
603
606
|
})
|
|
604
607
|
.s("GraniteServiceVersion20100801", "PutMetricData", {})
|
|
605
608
|
.n("CloudWatchClient", "PutMetricDataCommand")
|
|
606
|
-
.sc(
|
|
609
|
+
.sc(PutMetricData$)
|
|
607
610
|
.build() {
|
|
608
611
|
}
|
|
609
612
|
|
|
610
|
-
class PutMetricStreamCommand extends
|
|
613
|
+
class PutMetricStreamCommand extends Command
|
|
611
614
|
.classBuilder()
|
|
612
615
|
.ep(commonParams)
|
|
613
616
|
.m(function (Command, cs, config, o) {
|
|
614
|
-
return [
|
|
617
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
615
618
|
})
|
|
616
619
|
.s("GraniteServiceVersion20100801", "PutMetricStream", {})
|
|
617
620
|
.n("CloudWatchClient", "PutMetricStreamCommand")
|
|
618
|
-
.sc(
|
|
621
|
+
.sc(PutMetricStream$)
|
|
619
622
|
.build() {
|
|
620
623
|
}
|
|
621
624
|
|
|
622
|
-
class SetAlarmStateCommand extends
|
|
625
|
+
class SetAlarmStateCommand extends Command
|
|
623
626
|
.classBuilder()
|
|
624
627
|
.ep(commonParams)
|
|
625
628
|
.m(function (Command, cs, config, o) {
|
|
626
|
-
return [
|
|
629
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
627
630
|
})
|
|
628
631
|
.s("GraniteServiceVersion20100801", "SetAlarmState", {})
|
|
629
632
|
.n("CloudWatchClient", "SetAlarmStateCommand")
|
|
630
|
-
.sc(
|
|
633
|
+
.sc(SetAlarmState$)
|
|
631
634
|
.build() {
|
|
632
635
|
}
|
|
633
636
|
|
|
634
|
-
class StartMetricStreamsCommand extends
|
|
637
|
+
class StartMetricStreamsCommand extends Command
|
|
635
638
|
.classBuilder()
|
|
636
639
|
.ep(commonParams)
|
|
637
640
|
.m(function (Command, cs, config, o) {
|
|
638
|
-
return [
|
|
641
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
639
642
|
})
|
|
640
643
|
.s("GraniteServiceVersion20100801", "StartMetricStreams", {})
|
|
641
644
|
.n("CloudWatchClient", "StartMetricStreamsCommand")
|
|
642
|
-
.sc(
|
|
645
|
+
.sc(StartMetricStreams$)
|
|
643
646
|
.build() {
|
|
644
647
|
}
|
|
645
648
|
|
|
646
|
-
class StartOTelEnrichmentCommand extends
|
|
649
|
+
class StartOTelEnrichmentCommand extends Command
|
|
647
650
|
.classBuilder()
|
|
648
651
|
.ep(commonParams)
|
|
649
652
|
.m(function (Command, cs, config, o) {
|
|
650
|
-
return [
|
|
653
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
651
654
|
})
|
|
652
655
|
.s("GraniteServiceVersion20100801", "StartOTelEnrichment", {})
|
|
653
656
|
.n("CloudWatchClient", "StartOTelEnrichmentCommand")
|
|
654
|
-
.sc(
|
|
657
|
+
.sc(StartOTelEnrichment$)
|
|
655
658
|
.build() {
|
|
656
659
|
}
|
|
657
660
|
|
|
658
|
-
class StopMetricStreamsCommand extends
|
|
661
|
+
class StopMetricStreamsCommand extends Command
|
|
659
662
|
.classBuilder()
|
|
660
663
|
.ep(commonParams)
|
|
661
664
|
.m(function (Command, cs, config, o) {
|
|
662
|
-
return [
|
|
665
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
663
666
|
})
|
|
664
667
|
.s("GraniteServiceVersion20100801", "StopMetricStreams", {})
|
|
665
668
|
.n("CloudWatchClient", "StopMetricStreamsCommand")
|
|
666
|
-
.sc(
|
|
669
|
+
.sc(StopMetricStreams$)
|
|
667
670
|
.build() {
|
|
668
671
|
}
|
|
669
672
|
|
|
670
|
-
class StopOTelEnrichmentCommand extends
|
|
673
|
+
class StopOTelEnrichmentCommand extends Command
|
|
671
674
|
.classBuilder()
|
|
672
675
|
.ep(commonParams)
|
|
673
676
|
.m(function (Command, cs, config, o) {
|
|
674
|
-
return [
|
|
677
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
675
678
|
})
|
|
676
679
|
.s("GraniteServiceVersion20100801", "StopOTelEnrichment", {})
|
|
677
680
|
.n("CloudWatchClient", "StopOTelEnrichmentCommand")
|
|
678
|
-
.sc(
|
|
681
|
+
.sc(StopOTelEnrichment$)
|
|
679
682
|
.build() {
|
|
680
683
|
}
|
|
681
684
|
|
|
682
|
-
class TagResourceCommand extends
|
|
685
|
+
class TagResourceCommand extends Command
|
|
683
686
|
.classBuilder()
|
|
684
687
|
.ep(commonParams)
|
|
685
688
|
.m(function (Command, cs, config, o) {
|
|
686
|
-
return [
|
|
689
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
687
690
|
})
|
|
688
691
|
.s("GraniteServiceVersion20100801", "TagResource", {})
|
|
689
692
|
.n("CloudWatchClient", "TagResourceCommand")
|
|
690
|
-
.sc(
|
|
693
|
+
.sc(TagResource$)
|
|
691
694
|
.build() {
|
|
692
695
|
}
|
|
693
696
|
|
|
694
|
-
class UntagResourceCommand extends
|
|
697
|
+
class UntagResourceCommand extends Command
|
|
695
698
|
.classBuilder()
|
|
696
699
|
.ep(commonParams)
|
|
697
700
|
.m(function (Command, cs, config, o) {
|
|
698
|
-
return [
|
|
701
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
699
702
|
})
|
|
700
703
|
.s("GraniteServiceVersion20100801", "UntagResource", {})
|
|
701
704
|
.n("CloudWatchClient", "UntagResourceCommand")
|
|
702
|
-
.sc(
|
|
705
|
+
.sc(UntagResource$)
|
|
703
706
|
.build() {
|
|
704
707
|
}
|
|
705
708
|
|
|
706
|
-
const paginateDescribeAlarmHistory =
|
|
709
|
+
const paginateDescribeAlarmHistory = createPaginator(CloudWatchClient, DescribeAlarmHistoryCommand, "NextToken", "NextToken", "MaxRecords");
|
|
707
710
|
|
|
708
|
-
const paginateDescribeAlarms =
|
|
711
|
+
const paginateDescribeAlarms = createPaginator(CloudWatchClient, DescribeAlarmsCommand, "NextToken", "NextToken", "MaxRecords");
|
|
709
712
|
|
|
710
|
-
const paginateDescribeAnomalyDetectors =
|
|
713
|
+
const paginateDescribeAnomalyDetectors = createPaginator(CloudWatchClient, DescribeAnomalyDetectorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
711
714
|
|
|
712
|
-
const paginateDescribeInsightRules =
|
|
715
|
+
const paginateDescribeInsightRules = createPaginator(CloudWatchClient, DescribeInsightRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
713
716
|
|
|
714
|
-
const paginateGetMetricData =
|
|
717
|
+
const paginateGetMetricData = createPaginator(CloudWatchClient, GetMetricDataCommand, "NextToken", "NextToken", "MaxDatapoints");
|
|
715
718
|
|
|
716
|
-
const paginateListAlarmMuteRules =
|
|
719
|
+
const paginateListAlarmMuteRules = createPaginator(CloudWatchClient, ListAlarmMuteRulesCommand, "NextToken", "NextToken", "MaxRecords");
|
|
717
720
|
|
|
718
|
-
const paginateListDashboards =
|
|
721
|
+
const paginateListDashboards = createPaginator(CloudWatchClient, ListDashboardsCommand, "NextToken", "NextToken", "");
|
|
719
722
|
|
|
720
|
-
const paginateListManagedInsightRules =
|
|
723
|
+
const paginateListManagedInsightRules = createPaginator(CloudWatchClient, ListManagedInsightRulesCommand, "NextToken", "NextToken", "MaxResults");
|
|
721
724
|
|
|
722
|
-
const paginateListMetrics =
|
|
725
|
+
const paginateListMetrics = createPaginator(CloudWatchClient, ListMetricsCommand, "NextToken", "NextToken", "");
|
|
723
726
|
|
|
724
|
-
const paginateListMetricStreams =
|
|
727
|
+
const paginateListMetricStreams = createPaginator(CloudWatchClient, ListMetricStreamsCommand, "NextToken", "NextToken", "MaxResults");
|
|
725
728
|
|
|
726
|
-
const checkState$2 = async (client
|
|
729
|
+
const checkState$2 = async (client, input) => {
|
|
727
730
|
let reason;
|
|
728
731
|
try {
|
|
729
|
-
let result = await client
|
|
732
|
+
let result = await client.send(new DescribeAlarmsCommand(input));
|
|
730
733
|
reason = result;
|
|
731
734
|
try {
|
|
732
735
|
const returnComparator = () => {
|
|
@@ -734,7 +737,7 @@ const checkState$2 = async (client$1, input) => {
|
|
|
734
737
|
return (flat_1.length > 0);
|
|
735
738
|
};
|
|
736
739
|
if (returnComparator() == true) {
|
|
737
|
-
return { state:
|
|
740
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
738
741
|
}
|
|
739
742
|
}
|
|
740
743
|
catch (e) { }
|
|
@@ -742,47 +745,47 @@ const checkState$2 = async (client$1, input) => {
|
|
|
742
745
|
catch (exception) {
|
|
743
746
|
reason = exception;
|
|
744
747
|
}
|
|
745
|
-
return { state:
|
|
748
|
+
return { state: WaiterState.RETRY, reason };
|
|
746
749
|
};
|
|
747
750
|
const waitForAlarmExists = async (params, input) => {
|
|
748
751
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
749
|
-
return
|
|
752
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
750
753
|
};
|
|
751
754
|
const waitUntilAlarmExists = async (params, input) => {
|
|
752
755
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
753
|
-
const result = await
|
|
754
|
-
return
|
|
756
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
|
|
757
|
+
return checkExceptions(result);
|
|
755
758
|
};
|
|
756
759
|
|
|
757
|
-
const checkState$1 = async (client
|
|
760
|
+
const checkState$1 = async (client, input) => {
|
|
758
761
|
let reason;
|
|
759
762
|
try {
|
|
760
|
-
let result = await client
|
|
763
|
+
let result = await client.send(new GetAlarmMuteRuleCommand(input));
|
|
761
764
|
reason = result;
|
|
762
|
-
return { state:
|
|
765
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
763
766
|
}
|
|
764
767
|
catch (exception) {
|
|
765
768
|
reason = exception;
|
|
766
769
|
if (exception.name === "ResourceNotFoundException") {
|
|
767
|
-
return { state:
|
|
770
|
+
return { state: WaiterState.RETRY, reason };
|
|
768
771
|
}
|
|
769
772
|
}
|
|
770
|
-
return { state:
|
|
773
|
+
return { state: WaiterState.RETRY, reason };
|
|
771
774
|
};
|
|
772
775
|
const waitForAlarmMuteRuleExists = async (params, input) => {
|
|
773
776
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
774
|
-
return
|
|
777
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
775
778
|
};
|
|
776
779
|
const waitUntilAlarmMuteRuleExists = async (params, input) => {
|
|
777
780
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
778
|
-
const result = await
|
|
779
|
-
return
|
|
781
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
|
|
782
|
+
return checkExceptions(result);
|
|
780
783
|
};
|
|
781
784
|
|
|
782
|
-
const checkState = async (client
|
|
785
|
+
const checkState = async (client, input) => {
|
|
783
786
|
let reason;
|
|
784
787
|
try {
|
|
785
|
-
let result = await client
|
|
788
|
+
let result = await client.send(new DescribeAlarmsCommand(input));
|
|
786
789
|
reason = result;
|
|
787
790
|
try {
|
|
788
791
|
const returnComparator = () => {
|
|
@@ -790,7 +793,7 @@ const checkState = async (client$1, input) => {
|
|
|
790
793
|
return (flat_1.length > 0);
|
|
791
794
|
};
|
|
792
795
|
if (returnComparator() == true) {
|
|
793
|
-
return { state:
|
|
796
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
794
797
|
}
|
|
795
798
|
}
|
|
796
799
|
catch (e) { }
|
|
@@ -798,16 +801,16 @@ const checkState = async (client$1, input) => {
|
|
|
798
801
|
catch (exception) {
|
|
799
802
|
reason = exception;
|
|
800
803
|
}
|
|
801
|
-
return { state:
|
|
804
|
+
return { state: WaiterState.RETRY, reason };
|
|
802
805
|
};
|
|
803
806
|
const waitForCompositeAlarmExists = async (params, input) => {
|
|
804
807
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
805
|
-
return
|
|
808
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
806
809
|
};
|
|
807
810
|
const waitUntilCompositeAlarmExists = async (params, input) => {
|
|
808
811
|
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
809
|
-
const result = await
|
|
810
|
-
return
|
|
812
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
813
|
+
return checkExceptions(result);
|
|
811
814
|
};
|
|
812
815
|
|
|
813
816
|
const commands = {
|
|
@@ -880,7 +883,7 @@ const waiters = {
|
|
|
880
883
|
};
|
|
881
884
|
class CloudWatch extends CloudWatchClient {
|
|
882
885
|
}
|
|
883
|
-
|
|
886
|
+
createAggregatedClient(commands, CloudWatch, { paginators, waiters });
|
|
884
887
|
|
|
885
888
|
const ActionsSuppressedBy = {
|
|
886
889
|
Alarm: "Alarm",
|
|
@@ -990,9 +993,6 @@ const RecentlyActive = {
|
|
|
990
993
|
PT3H: "PT3H",
|
|
991
994
|
};
|
|
992
995
|
|
|
993
|
-
exports.$Command = client.Command;
|
|
994
|
-
exports.__Client = client.Client;
|
|
995
|
-
exports.CloudWatchServiceException = CloudWatchServiceException.CloudWatchServiceException;
|
|
996
996
|
exports.ActionsSuppressedBy = ActionsSuppressedBy;
|
|
997
997
|
exports.AlarmMuteRuleStatus = AlarmMuteRuleStatus;
|
|
998
998
|
exports.AlarmType = AlarmType;
|
|
@@ -1076,23 +1076,3 @@ exports.waitForCompositeAlarmExists = waitForCompositeAlarmExists;
|
|
|
1076
1076
|
exports.waitUntilAlarmExists = waitUntilAlarmExists;
|
|
1077
1077
|
exports.waitUntilAlarmMuteRuleExists = waitUntilAlarmMuteRuleExists;
|
|
1078
1078
|
exports.waitUntilCompositeAlarmExists = waitUntilCompositeAlarmExists;
|
|
1079
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
1080
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1081
|
-
Object.defineProperty(exports, '__proto__', {
|
|
1082
|
-
enumerable: true,
|
|
1083
|
-
value: schemas_0['__proto__']
|
|
1084
|
-
});
|
|
1085
|
-
|
|
1086
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
1087
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
1088
|
-
});
|
|
1089
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
1090
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
1091
|
-
Object.defineProperty(exports, '__proto__', {
|
|
1092
|
-
enumerable: true,
|
|
1093
|
-
value: errors['__proto__']
|
|
1094
|
-
});
|
|
1095
|
-
|
|
1096
|
-
Object.keys(errors).forEach(function (k) {
|
|
1097
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
1098
|
-
});
|