@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
@@ -15,8 +15,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
15
15
  requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
16
16
  requestMinCompressionSizeBytes: number | import("@smithy/types").Provider<number>;
17
17
  retryMode: string | import("@smithy/types").Provider<string>;
18
- sha256: import("@smithy/types").HashConstructor;
19
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
20
19
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
20
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
22
21
  cacheMiddleware?: boolean | undefined;
@@ -26,6 +25,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
26
25
  [setting: string]: unknown;
27
26
  };
28
27
  apiVersion: string;
28
+ sha256: import("@smithy/types").HashConstructor;
29
29
  urlParser: import("@smithy/types").UrlParser;
30
30
  base64Decoder: import("@smithy/types").Decoder;
31
31
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -16,8 +16,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
16
16
  requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
17
17
  requestMinCompressionSizeBytes: number | import("@smithy/types").Provider<number>;
18
18
  retryMode: string | import("@smithy/types").Provider<string>;
19
- sha256: import("@smithy/types").HashConstructor;
20
- streamCollector: import("@smithy/types").StreamCollector;
19
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
21
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
22
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -28,6 +27,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
28
27
  [setting: string]: unknown;
29
28
  };
30
29
  apiVersion: string;
30
+ sha256: import("@smithy/types").HashConstructor;
31
31
  urlParser: import("@smithy/types").UrlParser;
32
32
  base64Decoder: import("@smithy/types").Decoder;
33
33
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -4,7 +4,6 @@ import type { CloudWatchClientConfig } from "./CloudWatchClient";
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
6
6
  runtime: string;
7
- sha256: import("@smithy/types").HashConstructor;
8
7
  requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/core/protocols").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
9
8
  cacheMiddleware?: boolean;
10
9
  protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core/protocols").AwsJson1_0Protocol;
@@ -13,9 +12,10 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
13
12
  [setting: string]: unknown;
14
13
  };
15
14
  apiVersion: string;
15
+ sha256: import("@smithy/types").HashConstructor;
16
16
  urlParser: import("@smithy/types").UrlParser;
17
17
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
18
- streamCollector: import("@smithy/types").StreamCollector;
18
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
19
19
  base64Decoder: import("@smithy/types").Decoder;
20
20
  base64Encoder: (_input: Uint8Array | string) => string;
21
21
  utf8Decoder: import("@smithy/types").Decoder;
@@ -21,6 +21,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
21
21
  defaultNamespace?: string;
22
22
  };
23
23
  serviceId: string;
24
+ sha256: import("@smithy/types").HashConstructor;
24
25
  urlParser: import("@smithy/types").UrlParser;
25
26
  utf8Decoder: import("@smithy/types").Decoder;
26
27
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -16,6 +16,7 @@ export declare var KmsKeyNotFoundException$: StaticErrorSchema;
16
16
  export declare var LimitExceededException$: StaticErrorSchema;
17
17
  export declare var LimitExceededFault$: StaticErrorSchema;
18
18
  export declare var MissingRequiredParameterException$: StaticErrorSchema;
19
+ export declare var ResourceConflict$: StaticErrorSchema;
19
20
  export declare var ResourceNotFound$: StaticErrorSchema;
20
21
  export declare var ResourceNotFoundException$: StaticErrorSchema;
21
22
  /**
@@ -105,6 +106,7 @@ export declare var ListMetricStreamsInput$: StaticStructureSchema;
105
106
  export declare var ListMetricStreamsOutput$: StaticStructureSchema;
106
107
  export declare var ListTagsForResourceInput$: StaticStructureSchema;
107
108
  export declare var ListTagsForResourceOutput$: StaticStructureSchema;
109
+ export declare var LogAlarm$: StaticStructureSchema;
108
110
  export declare var ManagedRule$: StaticStructureSchema;
109
111
  export declare var ManagedRuleDescription$: StaticStructureSchema;
110
112
  export declare var ManagedRuleState$: StaticStructureSchema;
@@ -131,6 +133,7 @@ export declare var PutDashboardInput$: StaticStructureSchema;
131
133
  export declare var PutDashboardOutput$: StaticStructureSchema;
132
134
  export declare var PutInsightRuleInput$: StaticStructureSchema;
133
135
  export declare var PutInsightRuleOutput$: StaticStructureSchema;
136
+ export declare var PutLogAlarmInput$: StaticStructureSchema;
134
137
  export declare var PutManagedInsightRulesInput$: StaticStructureSchema;
135
138
  export declare var PutManagedInsightRulesOutput$: StaticStructureSchema;
136
139
  export declare var PutMetricAlarmInput$: StaticStructureSchema;
@@ -140,8 +143,11 @@ export declare var PutMetricStreamOutput$: StaticStructureSchema;
140
143
  export declare var Range$: StaticStructureSchema;
141
144
  export declare var Rule$: StaticStructureSchema;
142
145
  export declare var Schedule$: StaticStructureSchema;
146
+ export declare var ScheduleConfiguration$: StaticStructureSchema;
147
+ export declare var ScheduledQueryConfiguration$: StaticStructureSchema;
143
148
  export declare var SetAlarmStateInput$: StaticStructureSchema;
144
149
  export declare var SingleMetricAnomalyDetector$: StaticStructureSchema;
150
+ export declare var SlidingWindow$: StaticStructureSchema;
145
151
  export declare var StartMetricStreamsInput$: StaticStructureSchema;
146
152
  export declare var StartMetricStreamsOutput$: StaticStructureSchema;
147
153
  export declare var StartOTelEnrichmentInput$: StaticStructureSchema;
@@ -156,7 +162,9 @@ export declare var TagResourceInput$: StaticStructureSchema;
156
162
  export declare var TagResourceOutput$: StaticStructureSchema;
157
163
  export declare var UntagResourceInput$: StaticStructureSchema;
158
164
  export declare var UntagResourceOutput$: StaticStructureSchema;
165
+ export declare var WallClockWindow$: StaticStructureSchema;
159
166
  export declare var EvaluationCriteria$: StaticUnionSchema;
167
+ export declare var EvaluationWindow$: StaticUnionSchema;
160
168
  export declare var AssociateDatasetKmsKey$: StaticOperationSchema;
161
169
  export declare var DeleteAlarmMuteRule$: StaticOperationSchema;
162
170
  export declare var DeleteAlarms$: StaticOperationSchema;
@@ -195,6 +203,7 @@ export declare var PutAnomalyDetector$: StaticOperationSchema;
195
203
  export declare var PutCompositeAlarm$: StaticOperationSchema;
196
204
  export declare var PutDashboard$: StaticOperationSchema;
197
205
  export declare var PutInsightRule$: StaticOperationSchema;
206
+ export declare var PutLogAlarm$: StaticOperationSchema;
198
207
  export declare var PutManagedInsightRules$: StaticOperationSchema;
199
208
  export declare var PutMetricAlarm$: StaticOperationSchema;
200
209
  export declare var PutMetricData$: StaticOperationSchema;
@@ -158,6 +158,10 @@ import {
158
158
  PutInsightRuleCommandInput,
159
159
  PutInsightRuleCommandOutput,
160
160
  } from "./commands/PutInsightRuleCommand";
161
+ import {
162
+ PutLogAlarmCommandInput,
163
+ PutLogAlarmCommandOutput,
164
+ } from "./commands/PutLogAlarmCommand";
161
165
  import {
162
166
  PutManagedInsightRulesCommandInput,
163
167
  PutManagedInsightRulesCommandOutput,
@@ -708,6 +712,19 @@ export interface CloudWatch {
708
712
  options: __HttpHandlerOptions,
709
713
  cb: (err: any, data?: PutInsightRuleCommandOutput) => void
710
714
  ): void;
715
+ putLogAlarm(
716
+ args: PutLogAlarmCommandInput,
717
+ options?: __HttpHandlerOptions
718
+ ): Promise<PutLogAlarmCommandOutput>;
719
+ putLogAlarm(
720
+ args: PutLogAlarmCommandInput,
721
+ cb: (err: any, data?: PutLogAlarmCommandOutput) => void
722
+ ): void;
723
+ putLogAlarm(
724
+ args: PutLogAlarmCommandInput,
725
+ options: __HttpHandlerOptions,
726
+ cb: (err: any, data?: PutLogAlarmCommandOutput) => void
727
+ ): void;
711
728
  putManagedInsightRules(
712
729
  args: PutManagedInsightRulesCommandInput,
713
730
  options?: __HttpHandlerOptions
@@ -941,6 +958,15 @@ export interface CloudWatch {
941
958
  Exclude<keyof WaiterConfiguration<CloudWatch>, "client">
942
959
  >
943
960
  ): Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
961
+ waitUntilLogAlarmExists(
962
+ args: DescribeAlarmsCommandInput,
963
+ waiterConfig:
964
+ | number
965
+ | Pick<
966
+ WaiterConfiguration<CloudWatch>,
967
+ Exclude<keyof WaiterConfiguration<CloudWatch>, "client">
968
+ >
969
+ ): Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
944
970
  waitUntilAlarmMuteRuleExists(
945
971
  args: GetAlarmMuteRuleCommandInput,
946
972
  waiterConfig:
@@ -192,6 +192,10 @@ import {
192
192
  PutInsightRuleCommandInput,
193
193
  PutInsightRuleCommandOutput,
194
194
  } from "./commands/PutInsightRuleCommand";
195
+ import {
196
+ PutLogAlarmCommandInput,
197
+ PutLogAlarmCommandOutput,
198
+ } from "./commands/PutLogAlarmCommand";
195
199
  import {
196
200
  PutManagedInsightRulesCommandInput,
197
201
  PutManagedInsightRulesCommandOutput,
@@ -282,6 +286,7 @@ export type ServiceInputTypes =
282
286
  | PutCompositeAlarmCommandInput
283
287
  | PutDashboardCommandInput
284
288
  | PutInsightRuleCommandInput
289
+ | PutLogAlarmCommandInput
285
290
  | PutManagedInsightRulesCommandInput
286
291
  | PutMetricAlarmCommandInput
287
292
  | PutMetricDataCommandInput
@@ -332,6 +337,7 @@ export type ServiceOutputTypes =
332
337
  | PutCompositeAlarmCommandOutput
333
338
  | PutDashboardCommandOutput
334
339
  | PutInsightRuleCommandOutput
340
+ | PutLogAlarmCommandOutput
335
341
  | PutManagedInsightRulesCommandOutput
336
342
  | PutMetricAlarmCommandOutput
337
343
  | PutMetricDataCommandOutput
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ CloudWatchClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../CloudWatchClient";
8
+ import { PutLogAlarmInput } from "../models/models_0";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface PutLogAlarmCommandInput extends PutLogAlarmInput {}
12
+ export interface PutLogAlarmCommandOutput extends __MetadataBearer {}
13
+ declare const PutLogAlarmCommand_base: {
14
+ new (
15
+ input: PutLogAlarmCommandInput
16
+ ): import("@smithy/core/client").CommandImpl<
17
+ PutLogAlarmCommandInput,
18
+ PutLogAlarmCommandOutput,
19
+ CloudWatchClientResolvedConfig,
20
+ ServiceInputTypes,
21
+ ServiceOutputTypes
22
+ >;
23
+ new (
24
+ input: PutLogAlarmCommandInput
25
+ ): import("@smithy/core/client").CommandImpl<
26
+ PutLogAlarmCommandInput,
27
+ PutLogAlarmCommandOutput,
28
+ CloudWatchClientResolvedConfig,
29
+ ServiceInputTypes,
30
+ ServiceOutputTypes
31
+ >;
32
+ getEndpointParameterInstructions(): {
33
+ [x: string]: unknown;
34
+ };
35
+ };
36
+ export declare class PutLogAlarmCommand extends PutLogAlarmCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: PutLogAlarmInput;
40
+ output: {};
41
+ };
42
+ sdk: {
43
+ input: PutLogAlarmCommandInput;
44
+ output: PutLogAlarmCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -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";
@@ -7,6 +7,7 @@ export type ActionsSuppressedBy =
7
7
  (typeof ActionsSuppressedBy)[keyof typeof ActionsSuppressedBy];
8
8
  export declare const AlarmType: {
9
9
  readonly CompositeAlarm: "CompositeAlarm";
10
+ readonly LogAlarm: "LogAlarm";
10
11
  readonly MetricAlarm: "MetricAlarm";
11
12
  };
12
13
  export type AlarmType = (typeof AlarmType)[keyof typeof AlarmType];
@@ -67,6 +67,11 @@ export declare class DashboardNotFoundError extends __BaseException {
67
67
  opts: __ExceptionOptionType<DashboardNotFoundError, __BaseException>
68
68
  );
69
69
  }
70
+ export declare class ResourceConflict extends __BaseException {
71
+ readonly name: "ResourceConflict";
72
+ readonly $fault: "client";
73
+ constructor(opts: __ExceptionOptionType<ResourceConflict, __BaseException>);
74
+ }
70
75
  export declare class ResourceNotFound extends __BaseException {
71
76
  readonly name: "ResourceNotFound";
72
77
  readonly $fault: "client";
@@ -215,6 +215,48 @@ export interface DescribeAlarmsInput {
215
215
  MaxRecords?: number | undefined;
216
216
  NextToken?: string | undefined;
217
217
  }
218
+ export interface ScheduleConfiguration {
219
+ ScheduleExpression: string | undefined;
220
+ StartTimeOffset?: number | undefined;
221
+ EndTimeOffset?: number | undefined;
222
+ }
223
+ export interface Tag {
224
+ Key: string | undefined;
225
+ Value: string | undefined;
226
+ }
227
+ export interface ScheduledQueryConfiguration {
228
+ QueryString: string | undefined;
229
+ LogGroupIdentifiers?: string[] | undefined;
230
+ QueryARN?: string | undefined;
231
+ ScheduledQueryRoleARN: string | undefined;
232
+ ScheduleConfiguration: ScheduleConfiguration | undefined;
233
+ AggregationExpression: string | undefined;
234
+ Tags?: Tag[] | undefined;
235
+ }
236
+ export interface LogAlarm {
237
+ AlarmName?: string | undefined;
238
+ AlarmArn?: string | undefined;
239
+ AlarmDescription?: string | undefined;
240
+ AlarmConfigurationUpdatedTimestamp?: Date | undefined;
241
+ ActionsEnabled?: boolean | undefined;
242
+ OKActions?: string[] | undefined;
243
+ AlarmActions?: string[] | undefined;
244
+ InsufficientDataActions?: string[] | undefined;
245
+ StateValue?: StateValue | undefined;
246
+ StateReason?: string | undefined;
247
+ StateReasonData?: string | undefined;
248
+ StateUpdatedTimestamp?: Date | undefined;
249
+ ScheduledQueryConfiguration?: ScheduledQueryConfiguration | undefined;
250
+ QueryResultsToEvaluate?: number | undefined;
251
+ QueryResultsToAlarm?: number | undefined;
252
+ Threshold?: number | undefined;
253
+ ComparisonOperator?: ComparisonOperator | undefined;
254
+ TreatMissingData?: string | undefined;
255
+ StateTransitionedTimestamp?: Date | undefined;
256
+ EvaluationState?: EvaluationState | undefined;
257
+ ActionLogLineCount?: number | undefined;
258
+ ActionLogLineRoleArn?: string | undefined;
259
+ }
218
260
  export type EvaluationCriteria =
219
261
  | EvaluationCriteria.PromQLCriteriaMember
220
262
  | EvaluationCriteria.$UnknownMember;
@@ -232,6 +274,36 @@ export declare namespace EvaluationCriteria {
232
274
  _: (name: string, value: any) => T;
233
275
  }
234
276
  }
277
+ export interface SlidingWindow {}
278
+ export interface WallClockWindow {
279
+ Timezone?: string | undefined;
280
+ }
281
+ export type EvaluationWindow =
282
+ | EvaluationWindow.SlidingWindowMember
283
+ | EvaluationWindow.WallClockWindowMember
284
+ | EvaluationWindow.$UnknownMember;
285
+ export declare namespace EvaluationWindow {
286
+ interface WallClockWindowMember {
287
+ WallClockWindow: WallClockWindow;
288
+ SlidingWindow?: never;
289
+ $unknown?: never;
290
+ }
291
+ interface SlidingWindowMember {
292
+ WallClockWindow?: never;
293
+ SlidingWindow: SlidingWindow;
294
+ $unknown?: never;
295
+ }
296
+ interface $UnknownMember {
297
+ WallClockWindow?: never;
298
+ SlidingWindow?: never;
299
+ $unknown: [string, any];
300
+ }
301
+ interface Visitor<T> {
302
+ WallClockWindow: (value: WallClockWindow) => T;
303
+ SlidingWindow: (value: SlidingWindow) => T;
304
+ _: (name: string, value: any) => T;
305
+ }
306
+ }
235
307
  export interface MetricAlarm {
236
308
  AlarmName?: string | undefined;
237
309
  AlarmArn?: string | undefined;
@@ -262,12 +334,14 @@ export interface MetricAlarm {
262
334
  ThresholdMetricId?: string | undefined;
263
335
  EvaluationState?: EvaluationState | undefined;
264
336
  StateTransitionedTimestamp?: Date | undefined;
337
+ EvaluationWindow?: EvaluationWindow | undefined;
265
338
  EvaluationCriteria?: EvaluationCriteria | undefined;
266
339
  EvaluationInterval?: number | undefined;
267
340
  }
268
341
  export interface DescribeAlarmsOutput {
269
342
  CompositeAlarms?: CompositeAlarm[] | undefined;
270
343
  MetricAlarms?: MetricAlarm[] | undefined;
344
+ LogAlarms?: LogAlarm[] | undefined;
271
345
  NextToken?: string | undefined;
272
346
  }
273
347
  export interface DescribeAlarmsForMetricInput {
@@ -593,10 +667,6 @@ export interface ListMetricStreamsOutput {
593
667
  export interface ListTagsForResourceInput {
594
668
  ResourceARN: string | undefined;
595
669
  }
596
- export interface Tag {
597
- Key: string | undefined;
598
- Value: string | undefined;
599
- }
600
670
  export interface ListTagsForResourceOutput {
601
671
  Tags?: Tag[] | undefined;
602
672
  }
@@ -649,6 +719,23 @@ export interface PutInsightRuleInput {
649
719
  ApplyOnTransformedLogs?: boolean | undefined;
650
720
  }
651
721
  export interface PutInsightRuleOutput {}
722
+ export interface PutLogAlarmInput {
723
+ AlarmName: string | undefined;
724
+ AlarmDescription?: string | undefined;
725
+ ScheduledQueryConfiguration: ScheduledQueryConfiguration | undefined;
726
+ ActionLogLineCount?: number | undefined;
727
+ ActionLogLineRoleArn?: string | undefined;
728
+ ActionsEnabled?: boolean | undefined;
729
+ OKActions?: string[] | undefined;
730
+ AlarmActions?: string[] | undefined;
731
+ InsufficientDataActions?: string[] | undefined;
732
+ QueryResultsToEvaluate: number | undefined;
733
+ QueryResultsToAlarm: number | undefined;
734
+ Threshold: number | undefined;
735
+ ComparisonOperator: ComparisonOperator | undefined;
736
+ TreatMissingData?: string | undefined;
737
+ Tags?: Tag[] | undefined;
738
+ }
652
739
  export interface ManagedRule {
653
740
  TemplateName: string | undefined;
654
741
  ResourceARN: string | undefined;
@@ -683,6 +770,7 @@ export interface PutMetricAlarmInput {
683
770
  Metrics?: MetricDataQuery[] | undefined;
684
771
  Tags?: Tag[] | undefined;
685
772
  ThresholdMetricId?: string | undefined;
773
+ EvaluationWindow?: EvaluationWindow | undefined;
686
774
  EvaluationCriteria?: EvaluationCriteria | undefined;
687
775
  EvaluationInterval?: number | undefined;
688
776
  }
@@ -26,8 +26,13 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
26
26
  | number
27
27
  | import("@smithy/types").Provider<number>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
29
- sha256: import("@smithy/types").HashConstructor;
30
- streamCollector: import("@smithy/types").StreamCollector;
29
+ streamCollector: (
30
+ stream:
31
+ | import("stream").Readable
32
+ | import("stream/web").ReadableStream
33
+ | ReadableStream
34
+ | Blob
35
+ ) => Promise<Uint8Array>;
31
36
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
32
37
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
33
38
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -42,6 +47,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
42
47
  [setting: string]: unknown;
43
48
  };
44
49
  apiVersion: string;
50
+ sha256: import("@smithy/types").HashConstructor;
45
51
  urlParser: import("@smithy/types").UrlParser;
46
52
  base64Decoder: import("@smithy/types").Decoder;
47
53
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -27,8 +27,13 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
27
27
  | number
28
28
  | import("@smithy/types").Provider<number>;
29
29
  retryMode: string | import("@smithy/types").Provider<string>;
30
- sha256: import("@smithy/types").HashConstructor;
31
- streamCollector: import("@smithy/types").StreamCollector;
30
+ streamCollector: (
31
+ stream:
32
+ | import("stream").Readable
33
+ | import("stream/web").ReadableStream
34
+ | ReadableStream
35
+ | Blob
36
+ ) => Promise<Uint8Array>;
32
37
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
33
38
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
34
39
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -42,6 +47,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
42
47
  [setting: string]: unknown;
43
48
  };
44
49
  apiVersion: string;
50
+ sha256: import("@smithy/types").HashConstructor;
45
51
  urlParser: import("@smithy/types").UrlParser;
46
52
  base64Decoder: import("@smithy/types").Decoder;
47
53
  base64Encoder: (_input: Uint8Array | string) => string;
@@ -1,7 +1,6 @@
1
1
  import { CloudWatchClientConfig } from "./CloudWatchClient";
2
2
  export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
3
3
  runtime: string;
4
- sha256: import("@smithy/types").HashConstructor;
5
4
  requestHandler:
6
5
  | import("@smithy/types").NodeHttpHandlerOptions
7
6
  | import("@smithy/types").FetchHttpHandlerOptions
@@ -18,9 +17,16 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
18
17
  [setting: string]: unknown;
19
18
  };
20
19
  apiVersion: string;
20
+ sha256: import("@smithy/types").HashConstructor;
21
21
  urlParser: import("@smithy/types").UrlParser;
22
22
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
23
- streamCollector: import("@smithy/types").StreamCollector;
23
+ streamCollector: (
24
+ stream:
25
+ | import("stream").Readable
26
+ | import("stream/web").ReadableStream
27
+ | ReadableStream
28
+ | Blob
29
+ ) => Promise<Uint8Array>;
24
30
  base64Decoder: import("@smithy/types").Decoder;
25
31
  base64Encoder: (_input: Uint8Array | string) => string;
26
32
  utf8Decoder: import("@smithy/types").Decoder;
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
24
24
  defaultNamespace?: string;
25
25
  };
26
26
  serviceId: string;
27
+ sha256: import("@smithy/types").HashConstructor;
27
28
  urlParser: import("@smithy/types").UrlParser;
28
29
  utf8Decoder: import("@smithy/types").Decoder;
29
30
  utf8Encoder: (input: Uint8Array | string) => string;
@@ -21,6 +21,7 @@ export declare var KmsKeyNotFoundException$: StaticErrorSchema;
21
21
  export declare var LimitExceededException$: StaticErrorSchema;
22
22
  export declare var LimitExceededFault$: StaticErrorSchema;
23
23
  export declare var MissingRequiredParameterException$: StaticErrorSchema;
24
+ export declare var ResourceConflict$: StaticErrorSchema;
24
25
  export declare var ResourceNotFound$: StaticErrorSchema;
25
26
  export declare var ResourceNotFoundException$: StaticErrorSchema;
26
27
  export declare const errorTypeRegistries: TypeRegistry[];
@@ -105,6 +106,7 @@ export declare var ListMetricStreamsInput$: StaticStructureSchema;
105
106
  export declare var ListMetricStreamsOutput$: StaticStructureSchema;
106
107
  export declare var ListTagsForResourceInput$: StaticStructureSchema;
107
108
  export declare var ListTagsForResourceOutput$: StaticStructureSchema;
109
+ export declare var LogAlarm$: StaticStructureSchema;
108
110
  export declare var ManagedRule$: StaticStructureSchema;
109
111
  export declare var ManagedRuleDescription$: StaticStructureSchema;
110
112
  export declare var ManagedRuleState$: StaticStructureSchema;
@@ -131,6 +133,7 @@ export declare var PutDashboardInput$: StaticStructureSchema;
131
133
  export declare var PutDashboardOutput$: StaticStructureSchema;
132
134
  export declare var PutInsightRuleInput$: StaticStructureSchema;
133
135
  export declare var PutInsightRuleOutput$: StaticStructureSchema;
136
+ export declare var PutLogAlarmInput$: StaticStructureSchema;
134
137
  export declare var PutManagedInsightRulesInput$: StaticStructureSchema;
135
138
  export declare var PutManagedInsightRulesOutput$: StaticStructureSchema;
136
139
  export declare var PutMetricAlarmInput$: StaticStructureSchema;
@@ -140,8 +143,11 @@ export declare var PutMetricStreamOutput$: StaticStructureSchema;
140
143
  export declare var Range$: StaticStructureSchema;
141
144
  export declare var Rule$: StaticStructureSchema;
142
145
  export declare var Schedule$: StaticStructureSchema;
146
+ export declare var ScheduleConfiguration$: StaticStructureSchema;
147
+ export declare var ScheduledQueryConfiguration$: StaticStructureSchema;
143
148
  export declare var SetAlarmStateInput$: StaticStructureSchema;
144
149
  export declare var SingleMetricAnomalyDetector$: StaticStructureSchema;
150
+ export declare var SlidingWindow$: StaticStructureSchema;
145
151
  export declare var StartMetricStreamsInput$: StaticStructureSchema;
146
152
  export declare var StartMetricStreamsOutput$: StaticStructureSchema;
147
153
  export declare var StartOTelEnrichmentInput$: StaticStructureSchema;
@@ -156,7 +162,9 @@ export declare var TagResourceInput$: StaticStructureSchema;
156
162
  export declare var TagResourceOutput$: StaticStructureSchema;
157
163
  export declare var UntagResourceInput$: StaticStructureSchema;
158
164
  export declare var UntagResourceOutput$: StaticStructureSchema;
165
+ export declare var WallClockWindow$: StaticStructureSchema;
159
166
  export declare var EvaluationCriteria$: StaticUnionSchema;
167
+ export declare var EvaluationWindow$: StaticUnionSchema;
160
168
  export declare var AssociateDatasetKmsKey$: StaticOperationSchema;
161
169
  export declare var DeleteAlarmMuteRule$: StaticOperationSchema;
162
170
  export declare var DeleteAlarms$: StaticOperationSchema;
@@ -195,6 +203,7 @@ export declare var PutAnomalyDetector$: StaticOperationSchema;
195
203
  export declare var PutCompositeAlarm$: StaticOperationSchema;
196
204
  export declare var PutDashboard$: StaticOperationSchema;
197
205
  export declare var PutInsightRule$: StaticOperationSchema;
206
+ export declare var PutLogAlarm$: StaticOperationSchema;
198
207
  export declare var PutManagedInsightRules$: StaticOperationSchema;
199
208
  export declare var PutMetricAlarm$: StaticOperationSchema;
200
209
  export declare var PutMetricData$: StaticOperationSchema;
@@ -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,17 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/core/client";
2
+ import { CloudWatchClient } from "../CloudWatchClient";
3
+ import {
4
+ DescribeAlarmsCommandInput,
5
+ DescribeAlarmsCommandOutput,
6
+ } from "../commands/DescribeAlarmsCommand";
7
+ import { CloudWatchServiceException } from "../models/CloudWatchServiceException";
8
+ export declare const waitForLogAlarmExists: (
9
+ params: WaiterConfiguration<CloudWatchClient>,
10
+ input: DescribeAlarmsCommandInput
11
+ ) => Promise<
12
+ WaiterResult<DescribeAlarmsCommandOutput | CloudWatchServiceException>
13
+ >;
14
+ export declare const waitUntilLogAlarmExists: (
15
+ params: WaiterConfiguration<CloudWatchClient>,
16
+ input: DescribeAlarmsCommandInput
17
+ ) => Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
@@ -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,15 @@
1
+ import { type WaiterConfiguration, type WaiterResult } from "@smithy/core/client";
2
+ import type { CloudWatchClient } from "../CloudWatchClient";
3
+ import { type DescribeAlarmsCommandInput, type DescribeAlarmsCommandOutput } from "../commands/DescribeAlarmsCommand";
4
+ import type { CloudWatchServiceException } from "../models/CloudWatchServiceException";
5
+ /**
6
+ *
7
+ * @deprecated Use waitUntilLogAlarmExists instead. waitForLogAlarmExists does not throw error in non-success cases.
8
+ */
9
+ export declare const waitForLogAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult<DescribeAlarmsCommandOutput | CloudWatchServiceException>>;
10
+ /**
11
+ *
12
+ * @param params - Waiter configuration options.
13
+ * @param input - The input to DescribeAlarmsCommand for polling.
14
+ */
15
+ export declare const waitUntilLogAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
4
- "version": "3.1075.0",
4
+ "version": "3.1077.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline",
@@ -25,20 +25,18 @@
25
25
  "module": "./dist-es/index.js",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@aws-crypto/sha256-browser": "5.2.0",
29
- "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.23",
31
- "@aws-sdk/credential-provider-node": "^3.972.58",
32
- "@aws-sdk/types": "^3.973.13",
33
- "@smithy/core": "^3.24.6",
34
- "@smithy/fetch-http-handler": "^5.4.6",
35
- "@smithy/middleware-compression": "^4.4.6",
36
- "@smithy/node-http-handler": "^4.7.6",
37
- "@smithy/types": "^4.14.3",
28
+ "@aws-sdk/core": "^3.974.25",
29
+ "@aws-sdk/credential-provider-node": "^3.972.60",
30
+ "@aws-sdk/types": "^3.973.14",
31
+ "@smithy/core": "^3.28.0",
32
+ "@smithy/fetch-http-handler": "^5.6.1",
33
+ "@smithy/middleware-compression": "^4.5.4",
34
+ "@smithy/node-http-handler": "^4.9.1",
35
+ "@smithy/types": "^4.15.0",
38
36
  "tslib": "^2.6.2"
39
37
  },
40
38
  "devDependencies": {
41
- "@smithy/snapshot-testing": "^2.1.7",
39
+ "@smithy/snapshot-testing": "^2.2.4",
42
40
  "@tsconfig/node20": "20.1.8",
43
41
  "@types/node": "^20.14.8",
44
42
  "concurrently": "7.0.0",