@aws-sdk/client-cloudwatch 3.1075.0 → 3.1077.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.
Files changed (79) hide show
  1. package/README.md +58 -13
  2. package/dist-cjs/index.js +2210 -24
  3. package/dist-es/CloudWatch.js +4 -0
  4. package/dist-es/commands/PutLogAlarmCommand.js +16 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +1 -0
  7. package/dist-es/models/errors.js +12 -0
  8. package/dist-es/runtimeConfig.browser.js +0 -2
  9. package/dist-es/runtimeConfig.js +1 -2
  10. package/dist-es/runtimeConfig.native.js +0 -2
  11. package/dist-es/runtimeConfig.shared.js +2 -0
  12. package/dist-es/schemas/schemas_0.js +77 -7
  13. package/dist-es/waiters/index.js +1 -0
  14. package/dist-es/waiters/waitForLogAlarmExists.js +32 -0
  15. package/dist-types/CloudWatch.d.ts +64 -13
  16. package/dist-types/CloudWatchClient.d.ts +54 -15
  17. package/dist-types/commands/DeleteAlarmMuteRuleCommand.d.ts +7 -3
  18. package/dist-types/commands/DeleteAlarmsCommand.d.ts +8 -5
  19. package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeAlarmContributorsCommand.d.ts +3 -1
  21. package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +3 -3
  22. package/dist-types/commands/DescribeAlarmsCommand.d.ts +54 -3
  23. package/dist-types/commands/DescribeAlarmsForMetricCommand.d.ts +6 -0
  24. package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeInsightRulesCommand.d.ts +1 -1
  26. package/dist-types/commands/GetAlarmMuteRuleCommand.d.ts +11 -5
  27. package/dist-types/commands/GetMetricDataCommand.d.ts +3 -3
  28. package/dist-types/commands/GetMetricStatisticsCommand.d.ts +2 -2
  29. package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +1 -1
  30. package/dist-types/commands/GetOTelEnrichmentCommand.d.ts +2 -3
  31. package/dist-types/commands/ListAlarmMuteRulesCommand.d.ts +7 -3
  32. package/dist-types/commands/ListDashboardsCommand.d.ts +1 -1
  33. package/dist-types/commands/PutAlarmMuteRuleCommand.d.ts +24 -6
  34. package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +1 -1
  35. package/dist-types/commands/PutCompositeAlarmCommand.d.ts +6 -6
  36. package/dist-types/commands/PutLogAlarmCommand.d.ts +131 -0
  37. package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +4 -4
  38. package/dist-types/commands/PutMetricAlarmCommand.d.ts +16 -10
  39. package/dist-types/commands/PutMetricDataCommand.d.ts +2 -2
  40. package/dist-types/commands/PutMetricStreamCommand.d.ts +6 -6
  41. package/dist-types/commands/StartOTelEnrichmentCommand.d.ts +7 -8
  42. package/dist-types/commands/StopOTelEnrichmentCommand.d.ts +3 -4
  43. package/dist-types/commands/index.d.ts +1 -0
  44. package/dist-types/index.d.ts +51 -13
  45. package/dist-types/models/enums.d.ts +1 -0
  46. package/dist-types/models/errors.d.ts +12 -0
  47. package/dist-types/models/models_0.d.ts +849 -294
  48. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  49. package/dist-types/runtimeConfig.d.ts +2 -2
  50. package/dist-types/runtimeConfig.native.d.ts +2 -2
  51. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  52. package/dist-types/schemas/schemas_0.d.ts +9 -0
  53. package/dist-types/ts3.4/CloudWatch.d.ts +26 -0
  54. package/dist-types/ts3.4/CloudWatchClient.d.ts +6 -0
  55. package/dist-types/ts3.4/commands/PutLogAlarmCommand.d.ts +47 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  57. package/dist-types/ts3.4/models/enums.d.ts +1 -0
  58. package/dist-types/ts3.4/models/errors.d.ts +5 -0
  59. package/dist-types/ts3.4/models/models_0.d.ts +92 -4
  60. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
  61. package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
  62. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
  63. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  64. package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  65. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  66. package/dist-types/ts3.4/waiters/waitForLogAlarmExists.d.ts +17 -0
  67. package/dist-types/waiters/index.d.ts +1 -0
  68. package/dist-types/waiters/waitForLogAlarmExists.d.ts +15 -0
  69. package/package.json +10 -12
  70. package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
  71. package/dist-cjs/endpoint/bdd.js +0 -49
  72. package/dist-cjs/endpoint/endpointResolver.js +0 -14
  73. package/dist-cjs/models/CloudWatchServiceException.js +0 -8
  74. package/dist-cjs/models/errors.js +0 -227
  75. package/dist-cjs/runtimeConfig.browser.js +0 -35
  76. package/dist-cjs/runtimeConfig.js +0 -48
  77. package/dist-cjs/runtimeConfig.native.js +0 -12
  78. package/dist-cjs/runtimeConfig.shared.js +0 -40
  79. package/dist-cjs/schemas/schemas_0.js +0 -1600
@@ -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";
@@ -5,6 +5,7 @@ export const ActionsSuppressedBy = {
5
5
  };
6
6
  export const AlarmType = {
7
7
  CompositeAlarm: "CompositeAlarm",
8
+ LogAlarm: "LogAlarm",
8
9
  MetricAlarm: "MetricAlarm",
9
10
  };
10
11
  export const HistoryItemType = {
@@ -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";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -26,7 +25,6 @@ export const getRuntimeConfig = (config) => {
26
25
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
26
  requestMinCompressionSizeBytes: config?.requestMinCompressionSizeBytes ?? DEFAULT_NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES,
28
27
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
- sha256: config?.sha256 ?? Sha256,
30
28
  streamCollector: config?.streamCollector ?? streamCollector,
31
29
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
30
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS, NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS, } from "@smithy/middleware-compression";
10
10
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
@@ -38,7 +38,6 @@ export const getRuntimeConfig = (config) => {
38
38
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
39
39
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
40
40
  }, config),
41
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
41
  streamCollector: config?.streamCollector ?? streamCollector,
43
42
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
44
43
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -33,6 +34,7 @@ export const getRuntimeConfig = (config) => {
33
34
  awsQueryCompatible: true,
34
35
  },
35
36
  serviceId: config?.serviceId ?? "CloudWatch",
37
+ sha256: config?.sha256 ?? Sha256,
36
38
  urlParser: config?.urlParser ?? parseUrl,
37
39
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
40
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -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,8 +147,10 @@ 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";
153
+ const _EW = "EvaluationWindow";
149
154
  const _En = "Entries";
150
155
  const _Ex = "Expression";
151
156
  const _F = "Failures";
@@ -211,14 +216,17 @@ const _KKNFE = "KmsKeyNotFoundException";
211
216
  const _KL = "KeyLabels";
212
217
  const _Ke = "Key";
213
218
  const _L = "Label";
219
+ const _LA = "LogAlarms";
214
220
  const _LAMR = "ListAlarmMuteRules";
215
221
  const _LAMRI = "ListAlarmMuteRulesInput";
216
222
  const _LAMRO = "ListAlarmMuteRulesOutput";
223
+ const _LAo = "LogAlarm";
217
224
  const _LD = "ListDashboards";
218
225
  const _LDI = "ListDashboardsInput";
219
226
  const _LDO = "ListDashboardsOutput";
220
227
  const _LEE = "LimitExceededException";
221
228
  const _LEF = "LimitExceededFault";
229
+ const _LGI = "LogGroupIdentifiers";
222
230
  const _LM = "LastModified";
223
231
  const _LMI = "ListMetricsInput";
224
232
  const _LMIR = "ListManagedInsightRules";
@@ -305,6 +313,8 @@ const _PF = "PartialFailure";
305
313
  const _PIR = "PutInsightRule";
306
314
  const _PIRI = "PutInsightRuleInput";
307
315
  const _PIRO = "PutInsightRuleOutput";
316
+ const _PLA = "PutLogAlarm";
317
+ const _PLAI = "PutLogAlarmInput";
308
318
  const _PMA = "PutMetricAlarm";
309
319
  const _PMAI = "PutMetricAlarmInput";
310
320
  const _PMD = "PutMetricData";
@@ -320,10 +330,15 @@ const _PP = "PendingPeriod";
320
330
  const _PQLC = "PromQLCriteria";
321
331
  const _PS = "PeriodicSpikes";
322
332
  const _Q = "Query";
333
+ const _QARN = "QueryARN";
334
+ const _QRTA = "QueryResultsToAlarm";
335
+ const _QRTE = "QueryResultsToEvaluate";
336
+ const _QS = "QueryString";
323
337
  const _R = "Rule";
324
338
  const _RA = "RoleArn";
325
339
  const _RARN = "ResourceARN";
326
340
  const _RAe = "RecentlyActive";
341
+ const _RC = "ResourceConflict";
327
342
  const _RD = "ReturnData";
328
343
  const _RDu = "RuleDefinition";
329
344
  const _RI = "ResourceId";
@@ -340,9 +355,11 @@ const _SAS = "SetAlarmState";
340
355
  const _SASI = "SetAlarmStateInput";
341
356
  const _SB = "ScanBy";
342
357
  const _SC = "SampleCount";
358
+ const _SCc = "ScheduleConfiguration";
343
359
  const _SCt = "StatisticsConfigurations";
344
360
  const _SCta = "StatusCode";
345
361
  const _SD = "StartDate";
362
+ const _SE = "ScheduleExpression";
346
363
  const _SEV = "StrictEntityValidation";
347
364
  const _SMAD = "SingleMetricAnomalyDetector";
348
365
  const _SMS = "StartMetricStreams";
@@ -357,15 +374,19 @@ const _SOTEIt = "StopOTelEnrichmentInput";
357
374
  const _SOTEO = "StartOTelEnrichmentOutput";
358
375
  const _SOTEOt = "StopOTelEnrichmentOutput";
359
376
  const _SOTEt = "StopOTelEnrichment";
377
+ const _SQC = "ScheduledQueryConfiguration";
378
+ const _SQRARN = "ScheduledQueryRoleARN";
360
379
  const _SR = "StateReason";
361
380
  const _SRD = "StateReasonData";
362
381
  const _SRt = "StorageResolution";
363
382
  const _SS = "StatisticSet";
364
383
  const _ST = "StartTime";
384
+ const _STO = "StartTimeOffset";
365
385
  const _STT = "StateTransitionedTimestamp";
366
386
  const _SUT = "StateUpdatedTimestamp";
367
387
  const _SV = "StateValue";
368
388
  const _SVt = "StatisticValues";
389
+ const _SW = "SlidingWindow";
369
390
  const _Sc = "Schema";
370
391
  const _Sch = "Schedule";
371
392
  const _Si = "Size";
@@ -396,6 +417,7 @@ const _URI = "UntagResourceInput";
396
417
  const _URO = "UntagResourceOutput";
397
418
  const _V = "Value";
398
419
  const _Va = "Values";
420
+ const _WCW = "WallClockWindow";
399
421
  const _aQE = "awsQueryError";
400
422
  const _c = "client";
401
423
  const _dVM = "dashboardValidationMessages";
@@ -407,7 +429,7 @@ const _se = "server";
407
429
  const n0 = "com.amazonaws.cloudwatch";
408
430
  import { TypeRegistry } from "@smithy/core/schema";
409
431
  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";
432
+ import { ConcurrentModificationException, ConflictException, DashboardInvalidInputError, DashboardNotFoundError, InternalServiceFault, InvalidFormatFault, InvalidNextToken, InvalidParameterCombinationException, InvalidParameterValueException, KmsAccessDeniedException, KmsKeyDisabledException, KmsKeyNotFoundException, LimitExceededException, LimitExceededFault, MissingRequiredParameterException, ResourceConflict, ResourceNotFound, ResourceNotFoundException, } from "../models/errors";
411
433
  const _s_registry = TypeRegistry.for(_s);
412
434
  export var CloudWatchServiceException$ = [-3, _s, "CloudWatchServiceException", 0, [], []];
413
435
  _s_registry.registerError(CloudWatchServiceException$, CloudWatchServiceException);
@@ -502,6 +524,12 @@ export var MissingRequiredParameterException$ = [-3, n0, _MRPE,
502
524
  [0]
503
525
  ];
504
526
  n0_registry.registerError(MissingRequiredParameterException$, MissingRequiredParameterException);
527
+ export var ResourceConflict$ = [-3, n0, _RC,
528
+ { [_aQE]: [`ResourceConflict`, 409], [_e]: _c, [_hE]: 409 },
529
+ [_m],
530
+ [0]
531
+ ];
532
+ n0_registry.registerError(ResourceConflict$, ResourceConflict);
505
533
  export var ResourceNotFound$ = [-3, n0, _RNF,
506
534
  { [_aQE]: [`ResourceNotFound`, 404], [_e]: _c, [_hE]: 404 },
507
535
  [_m],
@@ -665,8 +693,8 @@ export var DescribeAlarmsInput$ = [3, n0, _DAIe,
665
693
  ];
666
694
  export var DescribeAlarmsOutput$ = [3, n0, _DAO,
667
695
  0,
668
- [_CAom, _MA, _NT],
669
- [() => CompositeAlarms, () => MetricAlarms, 0]
696
+ [_CAom, _MA, _LA, _NT],
697
+ [() => CompositeAlarms, () => MetricAlarms, () => LogAlarms, 0]
670
698
  ];
671
699
  export var DescribeAnomalyDetectorsInput$ = [3, n0, _DADIe,
672
700
  0,
@@ -923,6 +951,11 @@ export var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
923
951
  [_Ta],
924
952
  [() => TagList]
925
953
  ];
954
+ export var LogAlarm$ = [3, n0, _LAo,
955
+ 0,
956
+ [_AN, _AAl, _ADl, _ACUT, _AE, _OKA, _AA, _IDA, _SV, _SR, _SRD, _SUT, _SQC, _QRTE, _QRTA, _Th, _CO, _TMD, _STT, _ESv, _ALLC, _ALLRA],
957
+ [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]
958
+ ];
926
959
  export var ManagedRule$ = [3, n0, _MRan,
927
960
  0,
928
961
  [_TN, _RARN, _Ta],
@@ -950,8 +983,8 @@ export var Metric$ = [3, n0, _Met,
950
983
  ];
951
984
  export var MetricAlarm$ = [3, n0, _MAe,
952
985
  0,
953
- [_AN, _AAl, _ADl, _ACUT, _AE, _OKA, _AA, _IDA, _SV, _SR, _SRD, _SUT, _MN, _N, _Sta, _ESx, _D, _P, _U, _EP, _DTA, _Th, _CO, _TMD, _ELSCP, _Me, _TMI, _ESv, _STT, _EC, _EI],
954
- [0, 0, 0, 4, 2, 64 | 0, 64 | 0, 64 | 0, 0, 0, 0, 4, 0, 0, 0, 0, () => Dimensions, 1, 0, 1, 1, 1, 0, 0, 0, () => MetricDataQueries, 0, 0, 4, () => EvaluationCriteria$, 1]
986
+ [_AN, _AAl, _ADl, _ACUT, _AE, _OKA, _AA, _IDA, _SV, _SR, _SRD, _SUT, _MN, _N, _Sta, _ESx, _D, _P, _U, _EP, _DTA, _Th, _CO, _TMD, _ELSCP, _Me, _TMI, _ESv, _STT, _EW, _EC, _EI],
987
+ [0, 0, 0, 4, 2, 64 | 0, 64 | 0, 64 | 0, 0, 0, 0, 4, 0, 0, 0, 0, () => Dimensions, 1, 0, 1, 1, 1, 0, 0, 0, () => MetricDataQueries, 0, 0, 4, () => EvaluationWindow$, () => EvaluationCriteria$, 1]
955
988
  ];
956
989
  export var MetricCharacteristics$ = [3, n0, _MC,
957
990
  0,
@@ -1053,6 +1086,11 @@ export var PutInsightRuleOutput$ = [3, n0, _PIRO,
1053
1086
  [],
1054
1087
  []
1055
1088
  ];
1089
+ export var PutLogAlarmInput$ = [3, n0, _PLAI,
1090
+ 0,
1091
+ [_AN, _SQC, _QRTE, _QRTA, _Th, _CO, _ADl, _ALLC, _ALLRA, _AE, _OKA, _AA, _IDA, _TMD, _Ta],
1092
+ [0, () => ScheduledQueryConfiguration$, 1, 1, 1, 0, 0, 1, 0, 2, 64 | 0, 64 | 0, 64 | 0, 0, () => TagList], 6
1093
+ ];
1056
1094
  export var PutManagedInsightRulesInput$ = [3, n0, _PMIRI,
1057
1095
  0,
1058
1096
  [_MRana],
@@ -1065,8 +1103,8 @@ export var PutManagedInsightRulesOutput$ = [3, n0, _PMIRO,
1065
1103
  ];
1066
1104
  export var PutMetricAlarmInput$ = [3, n0, _PMAI,
1067
1105
  0,
1068
- [_AN, _ADl, _AE, _OKA, _AA, _IDA, _MN, _N, _Sta, _ESx, _D, _P, _U, _EP, _DTA, _Th, _CO, _TMD, _ELSCP, _Me, _Ta, _TMI, _EC, _EI],
1069
- [0, 0, 2, 64 | 0, 64 | 0, 64 | 0, 0, 0, 0, 0, () => Dimensions, 1, 0, 1, 1, 1, 0, 0, 0, () => MetricDataQueries, () => TagList, 0, () => EvaluationCriteria$, 1], 1
1106
+ [_AN, _ADl, _AE, _OKA, _AA, _IDA, _MN, _N, _Sta, _ESx, _D, _P, _U, _EP, _DTA, _Th, _CO, _TMD, _ELSCP, _Me, _Ta, _TMI, _EW, _EC, _EI],
1107
+ [0, 0, 2, 64 | 0, 64 | 0, 64 | 0, 0, 0, 0, 0, () => Dimensions, 1, 0, 1, 1, 1, 0, 0, 0, () => MetricDataQueries, () => TagList, 0, () => EvaluationWindow$, () => EvaluationCriteria$, 1], 1
1070
1108
  ];
1071
1109
  export var PutMetricDataInput$ = [3, n0, _PMDI,
1072
1110
  0,
@@ -1098,6 +1136,16 @@ export var Schedule$ = [3, n0, _Sch,
1098
1136
  [_Ex, _Du, _Ti],
1099
1137
  [0, 0, 0], 2
1100
1138
  ];
1139
+ export var ScheduleConfiguration$ = [3, n0, _SCc,
1140
+ 0,
1141
+ [_SE, _STO, _ETO],
1142
+ [0, 1, 1], 1
1143
+ ];
1144
+ export var ScheduledQueryConfiguration$ = [3, n0, _SQC,
1145
+ 0,
1146
+ [_QS, _SQRARN, _SCc, _AEg, _LGI, _QARN, _Ta],
1147
+ [0, 0, () => ScheduleConfiguration$, 0, 64 | 0, 0, () => TagList], 4
1148
+ ];
1101
1149
  export var SetAlarmStateInput$ = [3, n0, _SASI,
1102
1150
  0,
1103
1151
  [_AN, _SV, _SR, _SRD],
@@ -1108,6 +1156,11 @@ export var SingleMetricAnomalyDetector$ = [3, n0, _SMAD,
1108
1156
  [_AI, _N, _MN, _D, _St],
1109
1157
  [0, 0, 0, () => Dimensions, 0]
1110
1158
  ];
1159
+ export var SlidingWindow$ = [3, n0, _SW,
1160
+ 0,
1161
+ [],
1162
+ []
1163
+ ];
1111
1164
  export var StartMetricStreamsInput$ = [3, n0, _SMSI,
1112
1165
  0,
1113
1166
  [_Nam],
@@ -1178,6 +1231,11 @@ export var UntagResourceOutput$ = [3, n0, _URO,
1178
1231
  [],
1179
1232
  []
1180
1233
  ];
1234
+ export var WallClockWindow$ = [3, n0, _WCW,
1235
+ 0,
1236
+ [_Ti],
1237
+ [0]
1238
+ ];
1181
1239
  var __Unit = "unit";
1182
1240
  var AlarmContributors = [1, n0, _ACl,
1183
1241
  0, () => AlarmContributor$
@@ -1242,6 +1300,10 @@ var InsightRuleNames = 64 | 0;
1242
1300
  var InsightRules = [1, n0, _IR,
1243
1301
  0, () => InsightRule$
1244
1302
  ];
1303
+ var LogAlarms = [1, n0, _LA,
1304
+ 0, () => LogAlarm$
1305
+ ];
1306
+ var LogGroupIdentifiers = 64 | 0;
1245
1307
  var ManagedRuleDescriptions = [1, n0, _MRDa,
1246
1308
  0, () => ManagedRuleDescription$
1247
1309
  ];
@@ -1300,6 +1362,11 @@ export var EvaluationCriteria$ = [4, n0, _EC,
1300
1362
  [_PQLC],
1301
1363
  [() => AlarmPromQLCriteria$]
1302
1364
  ];
1365
+ export var EvaluationWindow$ = [4, n0, _EW,
1366
+ 0,
1367
+ [_WCW, _SW],
1368
+ [() => WallClockWindow$, () => SlidingWindow$]
1369
+ ];
1303
1370
  export var AssociateDatasetKmsKey$ = [9, n0, _ADKK,
1304
1371
  0, () => AssociateDatasetKmsKeyInput$, () => AssociateDatasetKmsKeyOutput$
1305
1372
  ];
@@ -1414,6 +1481,9 @@ export var PutDashboard$ = [9, n0, _PD,
1414
1481
  export var PutInsightRule$ = [9, n0, _PIR,
1415
1482
  0, () => PutInsightRuleInput$, () => PutInsightRuleOutput$
1416
1483
  ];
1484
+ export var PutLogAlarm$ = [9, n0, _PLA,
1485
+ 0, () => PutLogAlarmInput$, () => __Unit
1486
+ ];
1417
1487
  export var PutManagedInsightRules$ = [9, n0, _PMIR,
1418
1488
  0, () => PutManagedInsightRulesInput$, () => PutManagedInsightRulesOutput$
1419
1489
  ];
@@ -1,3 +1,4 @@
1
1
  export * from "./waitForAlarmExists";
2
2
  export * from "./waitForCompositeAlarmExists";
3
+ export * from "./waitForLogAlarmExists";
3
4
  export * from "./waitForAlarmMuteRuleExists";
@@ -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 monitors your Amazon Web Services (Amazon Web Services)
452
- * resources and the applications you run on Amazon Web Services in real time. You can use
453
- * CloudWatch to collect and track metrics, which are the variables you want to
454
- * measure for your resources and applications.</p>
455
- * <p>CloudWatch alarms send notifications or automatically change the resources you are
456
- * monitoring based on rules that you define. For example, you can monitor the CPU usage
457
- * and disk reads and writes of your Amazon EC2 instances. Then, use this data to determine
458
- * whether you should launch additional instances to handle increased load. You can also
459
- * use this data to stop under-used instances to save money.</p>
460
- * <p>In addition to monitoring the built-in metrics that come with Amazon Web Services,
461
- * you can monitor your own custom metrics. With CloudWatch, you gain system-wide
462
- * visibility into resource utilization, application performance, and operational
463
- * health.</p>
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 {