@aws-sdk/client-cloudwatch 3.1075.0 → 3.1076.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/README.md +58 -13
- package/dist-cjs/index.js +2188 -24
- package/dist-es/CloudWatch.js +4 -0
- package/dist-es/commands/PutLogAlarmCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +1 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/schemas/schemas_0.js +55 -3
- package/dist-es/waiters/index.js +1 -0
- package/dist-es/waiters/waitForLogAlarmExists.js +32 -0
- package/dist-types/CloudWatch.d.ts +64 -13
- package/dist-types/CloudWatchClient.d.ts +54 -15
- package/dist-types/commands/DeleteAlarmMuteRuleCommand.d.ts +7 -3
- package/dist-types/commands/DeleteAlarmsCommand.d.ts +8 -5
- package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAlarmContributorsCommand.d.ts +3 -1
- package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +3 -3
- package/dist-types/commands/DescribeAlarmsCommand.d.ts +48 -3
- package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInsightRulesCommand.d.ts +1 -1
- package/dist-types/commands/GetAlarmMuteRuleCommand.d.ts +11 -5
- package/dist-types/commands/GetMetricDataCommand.d.ts +3 -3
- package/dist-types/commands/GetMetricStatisticsCommand.d.ts +2 -2
- package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +1 -1
- package/dist-types/commands/GetOTelEnrichmentCommand.d.ts +2 -3
- package/dist-types/commands/ListAlarmMuteRulesCommand.d.ts +7 -3
- package/dist-types/commands/ListDashboardsCommand.d.ts +1 -1
- package/dist-types/commands/PutAlarmMuteRuleCommand.d.ts +24 -6
- package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +1 -1
- package/dist-types/commands/PutCompositeAlarmCommand.d.ts +6 -6
- package/dist-types/commands/PutLogAlarmCommand.d.ts +131 -0
- package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +4 -4
- package/dist-types/commands/PutMetricAlarmCommand.d.ts +10 -10
- package/dist-types/commands/PutMetricDataCommand.d.ts +2 -2
- package/dist-types/commands/PutMetricStreamCommand.d.ts +6 -6
- package/dist-types/commands/StartOTelEnrichmentCommand.d.ts +7 -8
- package/dist-types/commands/StopOTelEnrichmentCommand.d.ts +3 -4
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +51 -13
- package/dist-types/models/enums.d.ts +1 -0
- package/dist-types/models/errors.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +733 -294
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/dist-types/ts3.4/CloudWatch.d.ts +26 -0
- package/dist-types/ts3.4/CloudWatchClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/PutLogAlarmCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +1 -0
- package/dist-types/ts3.4/models/errors.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +60 -4
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
- package/dist-types/ts3.4/waiters/index.d.ts +1 -0
- package/dist-types/ts3.4/waiters/waitForLogAlarmExists.d.ts +17 -0
- package/dist-types/waiters/index.d.ts +1 -0
- package/dist-types/waiters/waitForLogAlarmExists.d.ts +15 -0
- package/package.json +10 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -49
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/CloudWatchServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -227
- package/dist-cjs/runtimeConfig.browser.js +0 -35
- package/dist-cjs/runtimeConfig.js +0 -48
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -40
- package/dist-cjs/schemas/schemas_0.js +0 -1600
package/dist-es/CloudWatch.js
CHANGED
|
@@ -38,6 +38,7 @@ import { PutAnomalyDetectorCommand, } from "./commands/PutAnomalyDetectorCommand
|
|
|
38
38
|
import { PutCompositeAlarmCommand, } from "./commands/PutCompositeAlarmCommand";
|
|
39
39
|
import { PutDashboardCommand, } from "./commands/PutDashboardCommand";
|
|
40
40
|
import { PutInsightRuleCommand, } from "./commands/PutInsightRuleCommand";
|
|
41
|
+
import { PutLogAlarmCommand, } from "./commands/PutLogAlarmCommand";
|
|
41
42
|
import { PutManagedInsightRulesCommand, } from "./commands/PutManagedInsightRulesCommand";
|
|
42
43
|
import { PutMetricAlarmCommand, } from "./commands/PutMetricAlarmCommand";
|
|
43
44
|
import { PutMetricDataCommand, } from "./commands/PutMetricDataCommand";
|
|
@@ -62,6 +63,7 @@ import { paginateListMetricStreams } from "./pagination/ListMetricStreamsPaginat
|
|
|
62
63
|
import { waitUntilAlarmExists } from "./waiters/waitForAlarmExists";
|
|
63
64
|
import { waitUntilAlarmMuteRuleExists } from "./waiters/waitForAlarmMuteRuleExists";
|
|
64
65
|
import { waitUntilCompositeAlarmExists } from "./waiters/waitForCompositeAlarmExists";
|
|
66
|
+
import { waitUntilLogAlarmExists } from "./waiters/waitForLogAlarmExists";
|
|
65
67
|
const commands = {
|
|
66
68
|
AssociateDatasetKmsKeyCommand,
|
|
67
69
|
DeleteAlarmMuteRuleCommand,
|
|
@@ -101,6 +103,7 @@ const commands = {
|
|
|
101
103
|
PutCompositeAlarmCommand,
|
|
102
104
|
PutDashboardCommand,
|
|
103
105
|
PutInsightRuleCommand,
|
|
106
|
+
PutLogAlarmCommand,
|
|
104
107
|
PutManagedInsightRulesCommand,
|
|
105
108
|
PutMetricAlarmCommand,
|
|
106
109
|
PutMetricDataCommand,
|
|
@@ -128,6 +131,7 @@ const paginators = {
|
|
|
128
131
|
const waiters = {
|
|
129
132
|
waitUntilAlarmExists,
|
|
130
133
|
waitUntilCompositeAlarmExists,
|
|
134
|
+
waitUntilLogAlarmExists,
|
|
131
135
|
waitUntilAlarmMuteRuleExists,
|
|
132
136
|
};
|
|
133
137
|
export class CloudWatch extends CloudWatchClient {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { PutLogAlarm$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class PutLogAlarmCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("GraniteServiceVersion20100801", "PutLogAlarm", {})
|
|
13
|
+
.n("CloudWatchClient", "PutLogAlarmCommand")
|
|
14
|
+
.sc(PutLogAlarm$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -36,6 +36,7 @@ export * from "./PutAnomalyDetectorCommand";
|
|
|
36
36
|
export * from "./PutCompositeAlarmCommand";
|
|
37
37
|
export * from "./PutDashboardCommand";
|
|
38
38
|
export * from "./PutInsightRuleCommand";
|
|
39
|
+
export * from "./PutLogAlarmCommand";
|
|
39
40
|
export * from "./PutManagedInsightRulesCommand";
|
|
40
41
|
export * from "./PutMetricAlarmCommand";
|
|
41
42
|
export * from "./PutMetricDataCommand";
|
package/dist-es/models/enums.js
CHANGED
package/dist-es/models/errors.js
CHANGED
|
@@ -113,6 +113,18 @@ export class DashboardNotFoundError extends __BaseException {
|
|
|
113
113
|
Object.setPrototypeOf(this, DashboardNotFoundError.prototype);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
+
export class ResourceConflict extends __BaseException {
|
|
117
|
+
name = "ResourceConflict";
|
|
118
|
+
$fault = "client";
|
|
119
|
+
constructor(opts) {
|
|
120
|
+
super({
|
|
121
|
+
name: "ResourceConflict",
|
|
122
|
+
$fault: "client",
|
|
123
|
+
...opts,
|
|
124
|
+
});
|
|
125
|
+
Object.setPrototypeOf(this, ResourceConflict.prototype);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
116
128
|
export class ResourceNotFound extends __BaseException {
|
|
117
129
|
name = "ResourceNotFound";
|
|
118
130
|
$fault = "client";
|
|
@@ -17,9 +17,12 @@ const _ADT = "AnomalyDetectorTypes";
|
|
|
17
17
|
const _ADl = "AlarmDescription";
|
|
18
18
|
const _ADn = "AnomalyDetectors";
|
|
19
19
|
const _AE = "ActionsEnabled";
|
|
20
|
+
const _AEg = "AggregationExpression";
|
|
20
21
|
const _AHI = "AlarmHistoryItem";
|
|
21
22
|
const _AHIl = "AlarmHistoryItems";
|
|
22
23
|
const _AI = "AccountId";
|
|
24
|
+
const _ALLC = "ActionLogLineCount";
|
|
25
|
+
const _ALLRA = "ActionLogLineRoleArn";
|
|
23
26
|
const _AMRA = "AlarmMuteRuleArn";
|
|
24
27
|
const _AMRN = "AlarmMuteRuleName";
|
|
25
28
|
const _AMRS = "AlarmMuteRuleSummary";
|
|
@@ -144,6 +147,7 @@ const _ES = "ExtendedStatistics";
|
|
|
144
147
|
const _ESv = "EvaluationState";
|
|
145
148
|
const _ESx = "ExtendedStatistic";
|
|
146
149
|
const _ET = "EndTime";
|
|
150
|
+
const _ETO = "EndTimeOffset";
|
|
147
151
|
const _ETR = "ExcludedTimeRanges";
|
|
148
152
|
const _ETx = "ExceptionType";
|
|
149
153
|
const _En = "Entries";
|
|
@@ -211,14 +215,17 @@ const _KKNFE = "KmsKeyNotFoundException";
|
|
|
211
215
|
const _KL = "KeyLabels";
|
|
212
216
|
const _Ke = "Key";
|
|
213
217
|
const _L = "Label";
|
|
218
|
+
const _LA = "LogAlarms";
|
|
214
219
|
const _LAMR = "ListAlarmMuteRules";
|
|
215
220
|
const _LAMRI = "ListAlarmMuteRulesInput";
|
|
216
221
|
const _LAMRO = "ListAlarmMuteRulesOutput";
|
|
222
|
+
const _LAo = "LogAlarm";
|
|
217
223
|
const _LD = "ListDashboards";
|
|
218
224
|
const _LDI = "ListDashboardsInput";
|
|
219
225
|
const _LDO = "ListDashboardsOutput";
|
|
220
226
|
const _LEE = "LimitExceededException";
|
|
221
227
|
const _LEF = "LimitExceededFault";
|
|
228
|
+
const _LGI = "LogGroupIdentifiers";
|
|
222
229
|
const _LM = "LastModified";
|
|
223
230
|
const _LMI = "ListMetricsInput";
|
|
224
231
|
const _LMIR = "ListManagedInsightRules";
|
|
@@ -305,6 +312,8 @@ const _PF = "PartialFailure";
|
|
|
305
312
|
const _PIR = "PutInsightRule";
|
|
306
313
|
const _PIRI = "PutInsightRuleInput";
|
|
307
314
|
const _PIRO = "PutInsightRuleOutput";
|
|
315
|
+
const _PLA = "PutLogAlarm";
|
|
316
|
+
const _PLAI = "PutLogAlarmInput";
|
|
308
317
|
const _PMA = "PutMetricAlarm";
|
|
309
318
|
const _PMAI = "PutMetricAlarmInput";
|
|
310
319
|
const _PMD = "PutMetricData";
|
|
@@ -320,10 +329,15 @@ const _PP = "PendingPeriod";
|
|
|
320
329
|
const _PQLC = "PromQLCriteria";
|
|
321
330
|
const _PS = "PeriodicSpikes";
|
|
322
331
|
const _Q = "Query";
|
|
332
|
+
const _QARN = "QueryARN";
|
|
333
|
+
const _QRTA = "QueryResultsToAlarm";
|
|
334
|
+
const _QRTE = "QueryResultsToEvaluate";
|
|
335
|
+
const _QS = "QueryString";
|
|
323
336
|
const _R = "Rule";
|
|
324
337
|
const _RA = "RoleArn";
|
|
325
338
|
const _RARN = "ResourceARN";
|
|
326
339
|
const _RAe = "RecentlyActive";
|
|
340
|
+
const _RC = "ResourceConflict";
|
|
327
341
|
const _RD = "ReturnData";
|
|
328
342
|
const _RDu = "RuleDefinition";
|
|
329
343
|
const _RI = "ResourceId";
|
|
@@ -340,9 +354,11 @@ const _SAS = "SetAlarmState";
|
|
|
340
354
|
const _SASI = "SetAlarmStateInput";
|
|
341
355
|
const _SB = "ScanBy";
|
|
342
356
|
const _SC = "SampleCount";
|
|
357
|
+
const _SCc = "ScheduleConfiguration";
|
|
343
358
|
const _SCt = "StatisticsConfigurations";
|
|
344
359
|
const _SCta = "StatusCode";
|
|
345
360
|
const _SD = "StartDate";
|
|
361
|
+
const _SE = "ScheduleExpression";
|
|
346
362
|
const _SEV = "StrictEntityValidation";
|
|
347
363
|
const _SMAD = "SingleMetricAnomalyDetector";
|
|
348
364
|
const _SMS = "StartMetricStreams";
|
|
@@ -357,11 +373,14 @@ const _SOTEIt = "StopOTelEnrichmentInput";
|
|
|
357
373
|
const _SOTEO = "StartOTelEnrichmentOutput";
|
|
358
374
|
const _SOTEOt = "StopOTelEnrichmentOutput";
|
|
359
375
|
const _SOTEt = "StopOTelEnrichment";
|
|
376
|
+
const _SQC = "ScheduledQueryConfiguration";
|
|
377
|
+
const _SQRARN = "ScheduledQueryRoleARN";
|
|
360
378
|
const _SR = "StateReason";
|
|
361
379
|
const _SRD = "StateReasonData";
|
|
362
380
|
const _SRt = "StorageResolution";
|
|
363
381
|
const _SS = "StatisticSet";
|
|
364
382
|
const _ST = "StartTime";
|
|
383
|
+
const _STO = "StartTimeOffset";
|
|
365
384
|
const _STT = "StateTransitionedTimestamp";
|
|
366
385
|
const _SUT = "StateUpdatedTimestamp";
|
|
367
386
|
const _SV = "StateValue";
|
|
@@ -407,7 +426,7 @@ const _se = "server";
|
|
|
407
426
|
const n0 = "com.amazonaws.cloudwatch";
|
|
408
427
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
409
428
|
import { CloudWatchServiceException } from "../models/CloudWatchServiceException";
|
|
410
|
-
import { ConcurrentModificationException, ConflictException, DashboardInvalidInputError, DashboardNotFoundError, InternalServiceFault, InvalidFormatFault, InvalidNextToken, InvalidParameterCombinationException, InvalidParameterValueException, KmsAccessDeniedException, KmsKeyDisabledException, KmsKeyNotFoundException, LimitExceededException, LimitExceededFault, MissingRequiredParameterException, ResourceNotFound, ResourceNotFoundException, } from "../models/errors";
|
|
429
|
+
import { ConcurrentModificationException, ConflictException, DashboardInvalidInputError, DashboardNotFoundError, InternalServiceFault, InvalidFormatFault, InvalidNextToken, InvalidParameterCombinationException, InvalidParameterValueException, KmsAccessDeniedException, KmsKeyDisabledException, KmsKeyNotFoundException, LimitExceededException, LimitExceededFault, MissingRequiredParameterException, ResourceConflict, ResourceNotFound, ResourceNotFoundException, } from "../models/errors";
|
|
411
430
|
const _s_registry = TypeRegistry.for(_s);
|
|
412
431
|
export var CloudWatchServiceException$ = [-3, _s, "CloudWatchServiceException", 0, [], []];
|
|
413
432
|
_s_registry.registerError(CloudWatchServiceException$, CloudWatchServiceException);
|
|
@@ -502,6 +521,12 @@ export var MissingRequiredParameterException$ = [-3, n0, _MRPE,
|
|
|
502
521
|
[0]
|
|
503
522
|
];
|
|
504
523
|
n0_registry.registerError(MissingRequiredParameterException$, MissingRequiredParameterException);
|
|
524
|
+
export var ResourceConflict$ = [-3, n0, _RC,
|
|
525
|
+
{ [_aQE]: [`ResourceConflict`, 409], [_e]: _c, [_hE]: 409 },
|
|
526
|
+
[_m],
|
|
527
|
+
[0]
|
|
528
|
+
];
|
|
529
|
+
n0_registry.registerError(ResourceConflict$, ResourceConflict);
|
|
505
530
|
export var ResourceNotFound$ = [-3, n0, _RNF,
|
|
506
531
|
{ [_aQE]: [`ResourceNotFound`, 404], [_e]: _c, [_hE]: 404 },
|
|
507
532
|
[_m],
|
|
@@ -665,8 +690,8 @@ export var DescribeAlarmsInput$ = [3, n0, _DAIe,
|
|
|
665
690
|
];
|
|
666
691
|
export var DescribeAlarmsOutput$ = [3, n0, _DAO,
|
|
667
692
|
0,
|
|
668
|
-
[_CAom, _MA, _NT],
|
|
669
|
-
[() => CompositeAlarms, () => MetricAlarms, 0]
|
|
693
|
+
[_CAom, _MA, _LA, _NT],
|
|
694
|
+
[() => CompositeAlarms, () => MetricAlarms, () => LogAlarms, 0]
|
|
670
695
|
];
|
|
671
696
|
export var DescribeAnomalyDetectorsInput$ = [3, n0, _DADIe,
|
|
672
697
|
0,
|
|
@@ -923,6 +948,11 @@ export var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
|
|
|
923
948
|
[_Ta],
|
|
924
949
|
[() => TagList]
|
|
925
950
|
];
|
|
951
|
+
export var LogAlarm$ = [3, n0, _LAo,
|
|
952
|
+
0,
|
|
953
|
+
[_AN, _AAl, _ADl, _ACUT, _AE, _OKA, _AA, _IDA, _SV, _SR, _SRD, _SUT, _SQC, _QRTE, _QRTA, _Th, _CO, _TMD, _STT, _ESv, _ALLC, _ALLRA],
|
|
954
|
+
[0, 0, 0, 4, 2, 64 | 0, 64 | 0, 64 | 0, 0, 0, 0, 4, () => ScheduledQueryConfiguration$, 1, 1, 1, 0, 0, 4, 0, 1, 0]
|
|
955
|
+
];
|
|
926
956
|
export var ManagedRule$ = [3, n0, _MRan,
|
|
927
957
|
0,
|
|
928
958
|
[_TN, _RARN, _Ta],
|
|
@@ -1053,6 +1083,11 @@ export var PutInsightRuleOutput$ = [3, n0, _PIRO,
|
|
|
1053
1083
|
[],
|
|
1054
1084
|
[]
|
|
1055
1085
|
];
|
|
1086
|
+
export var PutLogAlarmInput$ = [3, n0, _PLAI,
|
|
1087
|
+
0,
|
|
1088
|
+
[_AN, _SQC, _QRTE, _QRTA, _Th, _CO, _ADl, _ALLC, _ALLRA, _AE, _OKA, _AA, _IDA, _TMD, _Ta],
|
|
1089
|
+
[0, () => ScheduledQueryConfiguration$, 1, 1, 1, 0, 0, 1, 0, 2, 64 | 0, 64 | 0, 64 | 0, 0, () => TagList], 6
|
|
1090
|
+
];
|
|
1056
1091
|
export var PutManagedInsightRulesInput$ = [3, n0, _PMIRI,
|
|
1057
1092
|
0,
|
|
1058
1093
|
[_MRana],
|
|
@@ -1098,6 +1133,16 @@ export var Schedule$ = [3, n0, _Sch,
|
|
|
1098
1133
|
[_Ex, _Du, _Ti],
|
|
1099
1134
|
[0, 0, 0], 2
|
|
1100
1135
|
];
|
|
1136
|
+
export var ScheduleConfiguration$ = [3, n0, _SCc,
|
|
1137
|
+
0,
|
|
1138
|
+
[_SE, _STO, _ETO],
|
|
1139
|
+
[0, 1, 1], 1
|
|
1140
|
+
];
|
|
1141
|
+
export var ScheduledQueryConfiguration$ = [3, n0, _SQC,
|
|
1142
|
+
0,
|
|
1143
|
+
[_QS, _SQRARN, _SCc, _AEg, _LGI, _QARN, _Ta],
|
|
1144
|
+
[0, 0, () => ScheduleConfiguration$, 0, 64 | 0, 0, () => TagList], 4
|
|
1145
|
+
];
|
|
1101
1146
|
export var SetAlarmStateInput$ = [3, n0, _SASI,
|
|
1102
1147
|
0,
|
|
1103
1148
|
[_AN, _SV, _SR, _SRD],
|
|
@@ -1242,6 +1287,10 @@ var InsightRuleNames = 64 | 0;
|
|
|
1242
1287
|
var InsightRules = [1, n0, _IR,
|
|
1243
1288
|
0, () => InsightRule$
|
|
1244
1289
|
];
|
|
1290
|
+
var LogAlarms = [1, n0, _LA,
|
|
1291
|
+
0, () => LogAlarm$
|
|
1292
|
+
];
|
|
1293
|
+
var LogGroupIdentifiers = 64 | 0;
|
|
1245
1294
|
var ManagedRuleDescriptions = [1, n0, _MRDa,
|
|
1246
1295
|
0, () => ManagedRuleDescription$
|
|
1247
1296
|
];
|
|
@@ -1414,6 +1463,9 @@ export var PutDashboard$ = [9, n0, _PD,
|
|
|
1414
1463
|
export var PutInsightRule$ = [9, n0, _PIR,
|
|
1415
1464
|
0, () => PutInsightRuleInput$, () => PutInsightRuleOutput$
|
|
1416
1465
|
];
|
|
1466
|
+
export var PutLogAlarm$ = [9, n0, _PLA,
|
|
1467
|
+
0, () => PutLogAlarmInput$, () => __Unit
|
|
1468
|
+
];
|
|
1417
1469
|
export var PutManagedInsightRules$ = [9, n0, _PMIR,
|
|
1418
1470
|
0, () => PutManagedInsightRulesInput$, () => PutManagedInsightRulesOutput$
|
|
1419
1471
|
];
|
package/dist-es/waiters/index.js
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
|
|
2
|
+
import { DescribeAlarmsCommand, } from "../commands/DescribeAlarmsCommand";
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
let result = await client.send(new DescribeAlarmsCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.LogAlarms);
|
|
11
|
+
return (flat_1.length > 0);
|
|
12
|
+
};
|
|
13
|
+
if (returnComparator() == true) {
|
|
14
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
catch (e) { }
|
|
18
|
+
}
|
|
19
|
+
catch (exception) {
|
|
20
|
+
reason = exception;
|
|
21
|
+
}
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
};
|
|
24
|
+
export const waitForLogAlarmExists = async (params, input) => {
|
|
25
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
26
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
27
|
+
};
|
|
28
|
+
export const waitUntilLogAlarmExists = async (params, input) => {
|
|
29
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
30
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
31
|
+
return checkExceptions(result);
|
|
32
|
+
};
|
|
@@ -39,6 +39,7 @@ import { type PutAnomalyDetectorCommandInput, type PutAnomalyDetectorCommandOutp
|
|
|
39
39
|
import { type PutCompositeAlarmCommandInput, type PutCompositeAlarmCommandOutput } from "./commands/PutCompositeAlarmCommand";
|
|
40
40
|
import { type PutDashboardCommandInput, type PutDashboardCommandOutput } from "./commands/PutDashboardCommand";
|
|
41
41
|
import { type PutInsightRuleCommandInput, type PutInsightRuleCommandOutput } from "./commands/PutInsightRuleCommand";
|
|
42
|
+
import { type PutLogAlarmCommandInput, type PutLogAlarmCommandOutput } from "./commands/PutLogAlarmCommand";
|
|
42
43
|
import { type PutManagedInsightRulesCommandInput, type PutManagedInsightRulesCommandOutput } from "./commands/PutManagedInsightRulesCommand";
|
|
43
44
|
import { type PutMetricAlarmCommandInput, type PutMetricAlarmCommandOutput } from "./commands/PutMetricAlarmCommand";
|
|
44
45
|
import { type PutMetricDataCommandInput, type PutMetricDataCommandOutput } from "./commands/PutMetricDataCommand";
|
|
@@ -290,6 +291,12 @@ export interface CloudWatch {
|
|
|
290
291
|
putInsightRule(args: PutInsightRuleCommandInput, options?: __HttpHandlerOptions): Promise<PutInsightRuleCommandOutput>;
|
|
291
292
|
putInsightRule(args: PutInsightRuleCommandInput, cb: (err: any, data?: PutInsightRuleCommandOutput) => void): void;
|
|
292
293
|
putInsightRule(args: PutInsightRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutInsightRuleCommandOutput) => void): void;
|
|
294
|
+
/**
|
|
295
|
+
* @see {@link PutLogAlarmCommand}
|
|
296
|
+
*/
|
|
297
|
+
putLogAlarm(args: PutLogAlarmCommandInput, options?: __HttpHandlerOptions): Promise<PutLogAlarmCommandOutput>;
|
|
298
|
+
putLogAlarm(args: PutLogAlarmCommandInput, cb: (err: any, data?: PutLogAlarmCommandOutput) => void): void;
|
|
299
|
+
putLogAlarm(args: PutLogAlarmCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLogAlarmCommandOutput) => void): void;
|
|
293
300
|
/**
|
|
294
301
|
* @see {@link PutManagedInsightRulesCommand}
|
|
295
302
|
*/
|
|
@@ -440,6 +447,12 @@ export interface CloudWatch {
|
|
|
440
447
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
441
448
|
*/
|
|
442
449
|
waitUntilCompositeAlarmExists(args: DescribeAlarmsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudWatch>, "client">): Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
|
450
|
+
/**
|
|
451
|
+
* @see {@link DescribeAlarmsCommand}
|
|
452
|
+
* @param args - command input.
|
|
453
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
454
|
+
*/
|
|
455
|
+
waitUntilLogAlarmExists(args: DescribeAlarmsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudWatch>, "client">): Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
|
443
456
|
/**
|
|
444
457
|
* @see {@link GetAlarmMuteRuleCommand}
|
|
445
458
|
* @param args - command input.
|
|
@@ -448,19 +461,57 @@ export interface CloudWatch {
|
|
|
448
461
|
waitUntilAlarmMuteRuleExists(args: GetAlarmMuteRuleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudWatch>, "client">): Promise<WaiterResult<GetAlarmMuteRuleCommandOutput>>;
|
|
449
462
|
}
|
|
450
463
|
/**
|
|
451
|
-
* <p>Amazon CloudWatch
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
*
|
|
457
|
-
*
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
* <p>
|
|
461
|
-
*
|
|
462
|
-
*
|
|
463
|
-
*
|
|
464
|
+
* <p>Amazon CloudWatch enables you to publish, monitor, and manage various metrics, as well
|
|
465
|
+
* as configure alarm actions based on data from metrics. This guide provides detailed
|
|
466
|
+
* information about CloudWatch actions, data types, parameters, and errors. For
|
|
467
|
+
* more information about CloudWatch features, see <a href="https://aws.amazon.com/cloudwatch">Amazon CloudWatch</a> and the
|
|
468
|
+
* <i>Amazon CloudWatch User Guide</i>.</p>
|
|
469
|
+
* <p>For information about the metrics that other Amazon Web Services products send to
|
|
470
|
+
* CloudWatch, see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon CloudWatch
|
|
471
|
+
* Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User
|
|
472
|
+
* Guide</i>.</p>
|
|
473
|
+
* <p>Use the following links to get started using the CloudWatch Query API:</p>
|
|
474
|
+
* <p>: An alphabetical list of all CloudWatch
|
|
475
|
+
* actions.</p>
|
|
476
|
+
* <p>: An alphabetical list of all CloudWatch data
|
|
477
|
+
* types.</p>
|
|
478
|
+
* <p>
|
|
479
|
+
* <a>CommonParameters</a>: Parameters that all Query actions can use.</p>
|
|
480
|
+
* <p>
|
|
481
|
+
* <a>CommonErrors</a>: Client and server errors that all actions can
|
|
482
|
+
* return.</p>
|
|
483
|
+
* <p>
|
|
484
|
+
* <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#cw_region">Regions and Endpoints</a>: Supported regions and endpoints for all Amazon Web
|
|
485
|
+
* Services products.</p>
|
|
486
|
+
* <p>Alternatively, you can use one of the <a href="https://aws.amazon.com/tools/#sdk">Amazon Web Services SDKs</a> to access CloudWatch using an API tailored
|
|
487
|
+
* to your programming language or platform.</p>
|
|
488
|
+
* <p>Developers in the Amazon Web Services developer community also provide their own
|
|
489
|
+
* libraries, which you can find at the following Amazon Web Services developer
|
|
490
|
+
* centers:</p>
|
|
491
|
+
* <p>
|
|
492
|
+
* <a href="http://aws.amazon.com/java/">Java Developer Center</a>
|
|
493
|
+
* </p>
|
|
494
|
+
* <p>
|
|
495
|
+
* <a href="http://aws.amazon.com/javascript/">JavaScript Developer
|
|
496
|
+
* Center</a>
|
|
497
|
+
* </p>
|
|
498
|
+
* <p>
|
|
499
|
+
* <a href="http://aws.amazon.com/mobile/">Amazon Web Services Mobile
|
|
500
|
+
* Services</a>
|
|
501
|
+
* </p>
|
|
502
|
+
* <p>
|
|
503
|
+
* <a href="http://aws.amazon.com/php/">PHP Developer Center</a>
|
|
504
|
+
* </p>
|
|
505
|
+
* <p>
|
|
506
|
+
* <a href="http://aws.amazon.com/python/">Python Developer Center</a>
|
|
507
|
+
* </p>
|
|
508
|
+
* <p>
|
|
509
|
+
* <a href="http://aws.amazon.com/ruby/">Ruby Developer Center</a>
|
|
510
|
+
* </p>
|
|
511
|
+
* <p>
|
|
512
|
+
* <a href="http://aws.amazon.com/net/">Windows and .NET Developer
|
|
513
|
+
* Center</a>
|
|
514
|
+
* </p>
|
|
464
515
|
* @public
|
|
465
516
|
*/
|
|
466
517
|
export declare class CloudWatch extends CloudWatchClient implements CloudWatch {
|
|
@@ -45,6 +45,7 @@ import type { PutAnomalyDetectorCommandInput, PutAnomalyDetectorCommandOutput }
|
|
|
45
45
|
import type { PutCompositeAlarmCommandInput, PutCompositeAlarmCommandOutput } from "./commands/PutCompositeAlarmCommand";
|
|
46
46
|
import type { PutDashboardCommandInput, PutDashboardCommandOutput } from "./commands/PutDashboardCommand";
|
|
47
47
|
import type { PutInsightRuleCommandInput, PutInsightRuleCommandOutput } from "./commands/PutInsightRuleCommand";
|
|
48
|
+
import type { PutLogAlarmCommandInput, PutLogAlarmCommandOutput } from "./commands/PutLogAlarmCommand";
|
|
48
49
|
import type { PutManagedInsightRulesCommandInput, PutManagedInsightRulesCommandOutput } from "./commands/PutManagedInsightRulesCommand";
|
|
49
50
|
import type { PutMetricAlarmCommandInput, PutMetricAlarmCommandOutput } from "./commands/PutMetricAlarmCommand";
|
|
50
51
|
import type { PutMetricDataCommandInput, PutMetricDataCommandOutput } from "./commands/PutMetricDataCommand";
|
|
@@ -62,11 +63,11 @@ export { __Client };
|
|
|
62
63
|
/**
|
|
63
64
|
* @public
|
|
64
65
|
*/
|
|
65
|
-
export type ServiceInputTypes = AssociateDatasetKmsKeyCommandInput | DeleteAlarmMuteRuleCommandInput | DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmContributorsCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | DisassociateDatasetKmsKeyCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetAlarmMuteRuleCommandInput | GetDashboardCommandInput | GetDatasetCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | GetOTelEnrichmentCommandInput | ListAlarmMuteRulesCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAlarmMuteRuleCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StartOTelEnrichmentCommandInput | StopMetricStreamsCommandInput | StopOTelEnrichmentCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
66
|
+
export type ServiceInputTypes = AssociateDatasetKmsKeyCommandInput | DeleteAlarmMuteRuleCommandInput | DeleteAlarmsCommandInput | DeleteAnomalyDetectorCommandInput | DeleteDashboardsCommandInput | DeleteInsightRulesCommandInput | DeleteMetricStreamCommandInput | DescribeAlarmContributorsCommandInput | DescribeAlarmHistoryCommandInput | DescribeAlarmsCommandInput | DescribeAlarmsForMetricCommandInput | DescribeAnomalyDetectorsCommandInput | DescribeInsightRulesCommandInput | DisableAlarmActionsCommandInput | DisableInsightRulesCommandInput | DisassociateDatasetKmsKeyCommandInput | EnableAlarmActionsCommandInput | EnableInsightRulesCommandInput | GetAlarmMuteRuleCommandInput | GetDashboardCommandInput | GetDatasetCommandInput | GetInsightRuleReportCommandInput | GetMetricDataCommandInput | GetMetricStatisticsCommandInput | GetMetricStreamCommandInput | GetMetricWidgetImageCommandInput | GetOTelEnrichmentCommandInput | ListAlarmMuteRulesCommandInput | ListDashboardsCommandInput | ListManagedInsightRulesCommandInput | ListMetricStreamsCommandInput | ListMetricsCommandInput | ListTagsForResourceCommandInput | PutAlarmMuteRuleCommandInput | PutAnomalyDetectorCommandInput | PutCompositeAlarmCommandInput | PutDashboardCommandInput | PutInsightRuleCommandInput | PutLogAlarmCommandInput | PutManagedInsightRulesCommandInput | PutMetricAlarmCommandInput | PutMetricDataCommandInput | PutMetricStreamCommandInput | SetAlarmStateCommandInput | StartMetricStreamsCommandInput | StartOTelEnrichmentCommandInput | StopMetricStreamsCommandInput | StopOTelEnrichmentCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
|
|
66
67
|
/**
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
69
|
-
export type ServiceOutputTypes = AssociateDatasetKmsKeyCommandOutput | DeleteAlarmMuteRuleCommandOutput | DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmContributorsCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | DisassociateDatasetKmsKeyCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetAlarmMuteRuleCommandOutput | GetDashboardCommandOutput | GetDatasetCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | GetOTelEnrichmentCommandOutput | ListAlarmMuteRulesCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAlarmMuteRuleCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StartOTelEnrichmentCommandOutput | StopMetricStreamsCommandOutput | StopOTelEnrichmentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
70
|
+
export type ServiceOutputTypes = AssociateDatasetKmsKeyCommandOutput | DeleteAlarmMuteRuleCommandOutput | DeleteAlarmsCommandOutput | DeleteAnomalyDetectorCommandOutput | DeleteDashboardsCommandOutput | DeleteInsightRulesCommandOutput | DeleteMetricStreamCommandOutput | DescribeAlarmContributorsCommandOutput | DescribeAlarmHistoryCommandOutput | DescribeAlarmsCommandOutput | DescribeAlarmsForMetricCommandOutput | DescribeAnomalyDetectorsCommandOutput | DescribeInsightRulesCommandOutput | DisableAlarmActionsCommandOutput | DisableInsightRulesCommandOutput | DisassociateDatasetKmsKeyCommandOutput | EnableAlarmActionsCommandOutput | EnableInsightRulesCommandOutput | GetAlarmMuteRuleCommandOutput | GetDashboardCommandOutput | GetDatasetCommandOutput | GetInsightRuleReportCommandOutput | GetMetricDataCommandOutput | GetMetricStatisticsCommandOutput | GetMetricStreamCommandOutput | GetMetricWidgetImageCommandOutput | GetOTelEnrichmentCommandOutput | ListAlarmMuteRulesCommandOutput | ListDashboardsCommandOutput | ListManagedInsightRulesCommandOutput | ListMetricStreamsCommandOutput | ListMetricsCommandOutput | ListTagsForResourceCommandOutput | PutAlarmMuteRuleCommandOutput | PutAnomalyDetectorCommandOutput | PutCompositeAlarmCommandOutput | PutDashboardCommandOutput | PutInsightRuleCommandOutput | PutLogAlarmCommandOutput | PutManagedInsightRulesCommandOutput | PutMetricAlarmCommandOutput | PutMetricDataCommandOutput | PutMetricStreamCommandOutput | SetAlarmStateCommandOutput | StartMetricStreamsCommandOutput | StartOTelEnrichmentCommandOutput | StopMetricStreamsCommandOutput | StopOTelEnrichmentCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
|
|
70
71
|
/**
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
@@ -218,19 +219,57 @@ export type CloudWatchClientResolvedConfigType = __SmithyResolvedConfiguration<_
|
|
|
218
219
|
export interface CloudWatchClientResolvedConfig extends CloudWatchClientResolvedConfigType {
|
|
219
220
|
}
|
|
220
221
|
/**
|
|
221
|
-
* <p>Amazon CloudWatch
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
* <p>
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
222
|
+
* <p>Amazon CloudWatch enables you to publish, monitor, and manage various metrics, as well
|
|
223
|
+
* as configure alarm actions based on data from metrics. This guide provides detailed
|
|
224
|
+
* information about CloudWatch actions, data types, parameters, and errors. For
|
|
225
|
+
* more information about CloudWatch features, see <a href="https://aws.amazon.com/cloudwatch">Amazon CloudWatch</a> and the
|
|
226
|
+
* <i>Amazon CloudWatch User Guide</i>.</p>
|
|
227
|
+
* <p>For information about the metrics that other Amazon Web Services products send to
|
|
228
|
+
* CloudWatch, see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon CloudWatch
|
|
229
|
+
* Metrics and Dimensions Reference</a> in the <i>Amazon CloudWatch User
|
|
230
|
+
* Guide</i>.</p>
|
|
231
|
+
* <p>Use the following links to get started using the CloudWatch Query API:</p>
|
|
232
|
+
* <p>: An alphabetical list of all CloudWatch
|
|
233
|
+
* actions.</p>
|
|
234
|
+
* <p>: An alphabetical list of all CloudWatch data
|
|
235
|
+
* types.</p>
|
|
236
|
+
* <p>
|
|
237
|
+
* <a>CommonParameters</a>: Parameters that all Query actions can use.</p>
|
|
238
|
+
* <p>
|
|
239
|
+
* <a>CommonErrors</a>: Client and server errors that all actions can
|
|
240
|
+
* return.</p>
|
|
241
|
+
* <p>
|
|
242
|
+
* <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#cw_region">Regions and Endpoints</a>: Supported regions and endpoints for all Amazon Web
|
|
243
|
+
* Services products.</p>
|
|
244
|
+
* <p>Alternatively, you can use one of the <a href="https://aws.amazon.com/tools/#sdk">Amazon Web Services SDKs</a> to access CloudWatch using an API tailored
|
|
245
|
+
* to your programming language or platform.</p>
|
|
246
|
+
* <p>Developers in the Amazon Web Services developer community also provide their own
|
|
247
|
+
* libraries, which you can find at the following Amazon Web Services developer
|
|
248
|
+
* centers:</p>
|
|
249
|
+
* <p>
|
|
250
|
+
* <a href="http://aws.amazon.com/java/">Java Developer Center</a>
|
|
251
|
+
* </p>
|
|
252
|
+
* <p>
|
|
253
|
+
* <a href="http://aws.amazon.com/javascript/">JavaScript Developer
|
|
254
|
+
* Center</a>
|
|
255
|
+
* </p>
|
|
256
|
+
* <p>
|
|
257
|
+
* <a href="http://aws.amazon.com/mobile/">Amazon Web Services Mobile
|
|
258
|
+
* Services</a>
|
|
259
|
+
* </p>
|
|
260
|
+
* <p>
|
|
261
|
+
* <a href="http://aws.amazon.com/php/">PHP Developer Center</a>
|
|
262
|
+
* </p>
|
|
263
|
+
* <p>
|
|
264
|
+
* <a href="http://aws.amazon.com/python/">Python Developer Center</a>
|
|
265
|
+
* </p>
|
|
266
|
+
* <p>
|
|
267
|
+
* <a href="http://aws.amazon.com/ruby/">Ruby Developer Center</a>
|
|
268
|
+
* </p>
|
|
269
|
+
* <p>
|
|
270
|
+
* <a href="http://aws.amazon.com/net/">Windows and .NET Developer
|
|
271
|
+
* Center</a>
|
|
272
|
+
* </p>
|
|
234
273
|
* @public
|
|
235
274
|
*/
|
|
236
275
|
export declare class CloudWatchClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, CloudWatchClientResolvedConfig> {
|
|
@@ -30,12 +30,16 @@ declare const DeleteAlarmMuteRuleCommand_base: {
|
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* <p>Deletes a specific alarm mute rule.</p>
|
|
33
|
-
* <p>When you delete a mute rule, any alarms that are currently being muted by that rule
|
|
34
|
-
*
|
|
33
|
+
* <p>When you delete a mute rule, any alarms that are currently being muted by that rule
|
|
34
|
+
* are immediately unmuted. If those alarms are in an ALARM state, their configured actions
|
|
35
|
+
* will trigger.</p>
|
|
36
|
+
* <p>This operation is idempotent. If you delete a mute rule that does not exist, the
|
|
37
|
+
* operation succeeds without returning an error.</p>
|
|
35
38
|
* <p>
|
|
36
39
|
* <b>Permissions</b>
|
|
37
40
|
* </p>
|
|
38
|
-
* <p>To delete a mute rule, you need the <code>cloudwatch:DeleteAlarmMuteRule</code>
|
|
41
|
+
* <p>To delete a mute rule, you need the <code>cloudwatch:DeleteAlarmMuteRule</code>
|
|
42
|
+
* permission on the alarm mute rule resource.</p>
|
|
39
43
|
* @example
|
|
40
44
|
* Use a bare-bones client and the command you need to make an API call.
|
|
41
45
|
* ```javascript
|
|
@@ -32,10 +32,10 @@ declare const DeleteAlarmsCommand_base: {
|
|
|
32
32
|
* <p>Deletes the specified alarms. You can delete up to 100 alarms in one operation.
|
|
33
33
|
* However, this total can include no more than one composite alarm. For example, you could
|
|
34
34
|
* delete 99 metric alarms and one composite alarms with one operation, but you can't
|
|
35
|
-
* delete two composite alarms with one operation.</p>
|
|
36
|
-
* <p> If you specify any incorrect alarm names, the alarms you specify with correct
|
|
37
|
-
*
|
|
38
|
-
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> operation after using <code>DeleteAlarms</code>.</p>
|
|
35
|
+
* delete two composite alarms with one operation. Log alarms cannot be batch deleted.</p>
|
|
36
|
+
* <p> If you specify any incorrect alarm names, the alarms you specify with correct
|
|
37
|
+
* names are still deleted. Other syntax errors might result in no alarms being deleted. To
|
|
38
|
+
* confirm that alarms were deleted successfully, you can use the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html">DescribeAlarms</a> operation after using <code>DeleteAlarms</code>.</p>
|
|
39
39
|
* <note>
|
|
40
40
|
* <p>It is possible to create a loop or cycle of composite alarms, where composite
|
|
41
41
|
* alarm A depends on composite alarm B, and composite alarm B also depends on
|
|
@@ -45,7 +45,7 @@ declare const DeleteAlarmsCommand_base: {
|
|
|
45
45
|
* <p>To get out of such a situation, you must break the cycle by changing the rule of
|
|
46
46
|
* one of the composite alarms in the cycle to remove a dependency that creates the
|
|
47
47
|
* cycle. The simplest change to make to break a cycle is to change the
|
|
48
|
-
*
|
|
48
|
+
* <code>AlarmRule</code> of one of the alarms to <code>false</code>. </p>
|
|
49
49
|
* <p>Additionally, the evaluation of composite alarms stops if CloudWatch
|
|
50
50
|
* detects a cycle in the evaluation path. </p>
|
|
51
51
|
* </note>
|
|
@@ -74,6 +74,9 @@ declare const DeleteAlarmsCommand_base: {
|
|
|
74
74
|
* @see {@link DeleteAlarmsCommandOutput} for command's `response` shape.
|
|
75
75
|
* @see {@link CloudWatchClientResolvedConfig | config} for CloudWatchClient's `config` shape.
|
|
76
76
|
*
|
|
77
|
+
* @throws {@link ResourceConflict} (client fault)
|
|
78
|
+
* <p>The operation could not be completed because the request conflicts with the current state of the alarm or its underlying scheduled query resource.</p>
|
|
79
|
+
*
|
|
77
80
|
* @throws {@link ResourceNotFound} (client fault)
|
|
78
81
|
* <p>The named resource does not exist.</p>
|
|
79
82
|
*
|
|
@@ -31,7 +31,7 @@ declare const DeleteAnomalyDetectorCommand_base: {
|
|
|
31
31
|
/**
|
|
32
32
|
* <p> Deletes the specified anomaly detection model from your account. For more information
|
|
33
33
|
* about how to delete an anomaly detection model, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Create_Anomaly_Detection_Alarm.html#Delete_Anomaly_Detection_Model">Deleting an anomaly detection model</a> in the <i>CloudWatch User
|
|
34
|
-
*
|
|
34
|
+
* Guide</i>. </p>
|
|
35
35
|
* @example
|
|
36
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
37
37
|
* ```javascript
|
|
@@ -29,7 +29,9 @@ declare const DescribeAlarmContributorsCommand_base: {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* <p>Returns the information of the current alarm contributors that are in
|
|
32
|
+
* <p>Returns the information of the current alarm contributors that are in
|
|
33
|
+
* <code>ALARM</code> state. This operation returns details about the individual time
|
|
34
|
+
* series that contribute to the alarm's state.</p>
|
|
33
35
|
* @example
|
|
34
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
35
37
|
* ```javascript
|
|
@@ -36,7 +36,7 @@ declare const DescribeAlarmHistoryCommand_base: {
|
|
|
36
36
|
* <p>To use this operation and return information about a composite alarm, you must be
|
|
37
37
|
* signed on with the <code>cloudwatch:DescribeAlarmHistory</code> permission that is
|
|
38
38
|
* scoped to <code>*</code>. You can't return information about composite alarms if your
|
|
39
|
-
*
|
|
39
|
+
* <code>cloudwatch:DescribeAlarmHistory</code> permission has a narrower scope.</p>
|
|
40
40
|
* @example
|
|
41
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
42
42
|
* ```javascript
|
|
@@ -49,7 +49,7 @@ declare const DescribeAlarmHistoryCommand_base: {
|
|
|
49
49
|
* AlarmName: "STRING_VALUE",
|
|
50
50
|
* AlarmContributorId: "STRING_VALUE",
|
|
51
51
|
* AlarmTypes: [ // AlarmTypes
|
|
52
|
-
* "CompositeAlarm" || "MetricAlarm",
|
|
52
|
+
* "CompositeAlarm" || "MetricAlarm" || "LogAlarm",
|
|
53
53
|
* ],
|
|
54
54
|
* HistoryItemType: "ConfigurationUpdate" || "StateUpdate" || "Action" || "AlarmContributorStateUpdate" || "AlarmContributorAction",
|
|
55
55
|
* StartDate: new Date("TIMESTAMP"),
|
|
@@ -65,7 +65,7 @@ declare const DescribeAlarmHistoryCommand_base: {
|
|
|
65
65
|
* // { // AlarmHistoryItem
|
|
66
66
|
* // AlarmName: "STRING_VALUE",
|
|
67
67
|
* // AlarmContributorId: "STRING_VALUE",
|
|
68
|
-
* // AlarmType: "CompositeAlarm" || "MetricAlarm",
|
|
68
|
+
* // AlarmType: "CompositeAlarm" || "MetricAlarm" || "LogAlarm",
|
|
69
69
|
* // Timestamp: new Date("TIMESTAMP"),
|
|
70
70
|
* // HistoryItemType: "ConfigurationUpdate" || "StateUpdate" || "Action" || "AlarmContributorStateUpdate" || "AlarmContributorAction",
|
|
71
71
|
* // HistorySummary: "STRING_VALUE",
|