@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.
Files changed (72) hide show
  1. package/README.md +58 -13
  2. package/dist-cjs/index.js +2188 -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/schemas/schemas_0.js +55 -3
  9. package/dist-es/waiters/index.js +1 -0
  10. package/dist-es/waiters/waitForLogAlarmExists.js +32 -0
  11. package/dist-types/CloudWatch.d.ts +64 -13
  12. package/dist-types/CloudWatchClient.d.ts +54 -15
  13. package/dist-types/commands/DeleteAlarmMuteRuleCommand.d.ts +7 -3
  14. package/dist-types/commands/DeleteAlarmsCommand.d.ts +8 -5
  15. package/dist-types/commands/DeleteAnomalyDetectorCommand.d.ts +1 -1
  16. package/dist-types/commands/DescribeAlarmContributorsCommand.d.ts +3 -1
  17. package/dist-types/commands/DescribeAlarmHistoryCommand.d.ts +3 -3
  18. package/dist-types/commands/DescribeAlarmsCommand.d.ts +48 -3
  19. package/dist-types/commands/DescribeAnomalyDetectorsCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeInsightRulesCommand.d.ts +1 -1
  21. package/dist-types/commands/GetAlarmMuteRuleCommand.d.ts +11 -5
  22. package/dist-types/commands/GetMetricDataCommand.d.ts +3 -3
  23. package/dist-types/commands/GetMetricStatisticsCommand.d.ts +2 -2
  24. package/dist-types/commands/GetMetricWidgetImageCommand.d.ts +1 -1
  25. package/dist-types/commands/GetOTelEnrichmentCommand.d.ts +2 -3
  26. package/dist-types/commands/ListAlarmMuteRulesCommand.d.ts +7 -3
  27. package/dist-types/commands/ListDashboardsCommand.d.ts +1 -1
  28. package/dist-types/commands/PutAlarmMuteRuleCommand.d.ts +24 -6
  29. package/dist-types/commands/PutAnomalyDetectorCommand.d.ts +1 -1
  30. package/dist-types/commands/PutCompositeAlarmCommand.d.ts +6 -6
  31. package/dist-types/commands/PutLogAlarmCommand.d.ts +131 -0
  32. package/dist-types/commands/PutManagedInsightRulesCommand.d.ts +4 -4
  33. package/dist-types/commands/PutMetricAlarmCommand.d.ts +10 -10
  34. package/dist-types/commands/PutMetricDataCommand.d.ts +2 -2
  35. package/dist-types/commands/PutMetricStreamCommand.d.ts +6 -6
  36. package/dist-types/commands/StartOTelEnrichmentCommand.d.ts +7 -8
  37. package/dist-types/commands/StopOTelEnrichmentCommand.d.ts +3 -4
  38. package/dist-types/commands/index.d.ts +1 -0
  39. package/dist-types/index.d.ts +51 -13
  40. package/dist-types/models/enums.d.ts +1 -0
  41. package/dist-types/models/errors.d.ts +12 -0
  42. package/dist-types/models/models_0.d.ts +733 -294
  43. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  44. package/dist-types/runtimeConfig.d.ts +1 -1
  45. package/dist-types/runtimeConfig.native.d.ts +1 -1
  46. package/dist-types/schemas/schemas_0.d.ts +6 -0
  47. package/dist-types/ts3.4/CloudWatch.d.ts +26 -0
  48. package/dist-types/ts3.4/CloudWatchClient.d.ts +6 -0
  49. package/dist-types/ts3.4/commands/PutLogAlarmCommand.d.ts +47 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  51. package/dist-types/ts3.4/models/enums.d.ts +1 -0
  52. package/dist-types/ts3.4/models/errors.d.ts +5 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +60 -4
  54. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
  55. package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
  56. package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
  57. package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
  58. package/dist-types/ts3.4/waiters/index.d.ts +1 -0
  59. package/dist-types/ts3.4/waiters/waitForLogAlarmExists.d.ts +17 -0
  60. package/dist-types/waiters/index.d.ts +1 -0
  61. package/dist-types/waiters/waitForLogAlarmExists.d.ts +15 -0
  62. package/package.json +10 -10
  63. package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
  64. package/dist-cjs/endpoint/bdd.js +0 -49
  65. package/dist-cjs/endpoint/endpointResolver.js +0 -14
  66. package/dist-cjs/models/CloudWatchServiceException.js +0 -8
  67. package/dist-cjs/models/errors.js +0 -227
  68. package/dist-cjs/runtimeConfig.browser.js +0 -35
  69. package/dist-cjs/runtimeConfig.js +0 -48
  70. package/dist-cjs/runtimeConfig.native.js +0 -12
  71. package/dist-cjs/runtimeConfig.shared.js +0 -40
  72. package/dist-cjs/schemas/schemas_0.js +0 -1600
@@ -16,7 +16,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
16
16
  requestMinCompressionSizeBytes: number | import("@smithy/types").Provider<number>;
17
17
  retryMode: string | import("@smithy/types").Provider<string>;
18
18
  sha256: import("@smithy/types").HashConstructor;
19
- streamCollector: import("@smithy/types").StreamCollector;
19
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
20
20
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
21
21
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
22
22
  cacheMiddleware?: boolean | undefined;
@@ -17,7 +17,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
17
17
  requestMinCompressionSizeBytes: number | import("@smithy/types").Provider<number>;
18
18
  retryMode: string | import("@smithy/types").Provider<string>;
19
19
  sha256: import("@smithy/types").HashConstructor;
20
- streamCollector: import("@smithy/types").StreamCollector;
20
+ streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
21
21
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
15
15
  apiVersion: string;
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;
@@ -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,6 +143,8 @@ 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;
145
150
  export declare var StartMetricStreamsInput$: StaticStructureSchema;
@@ -195,6 +200,7 @@ export declare var PutAnomalyDetector$: StaticOperationSchema;
195
200
  export declare var PutCompositeAlarm$: StaticOperationSchema;
196
201
  export declare var PutDashboard$: StaticOperationSchema;
197
202
  export declare var PutInsightRule$: StaticOperationSchema;
203
+ export declare var PutLogAlarm$: StaticOperationSchema;
198
204
  export declare var PutManagedInsightRules$: StaticOperationSchema;
199
205
  export declare var PutMetricAlarm$: StaticOperationSchema;
200
206
  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;
@@ -268,6 +310,7 @@ export interface MetricAlarm {
268
310
  export interface DescribeAlarmsOutput {
269
311
  CompositeAlarms?: CompositeAlarm[] | undefined;
270
312
  MetricAlarms?: MetricAlarm[] | undefined;
313
+ LogAlarms?: LogAlarm[] | undefined;
271
314
  NextToken?: string | undefined;
272
315
  }
273
316
  export interface DescribeAlarmsForMetricInput {
@@ -593,10 +636,6 @@ export interface ListMetricStreamsOutput {
593
636
  export interface ListTagsForResourceInput {
594
637
  ResourceARN: string | undefined;
595
638
  }
596
- export interface Tag {
597
- Key: string | undefined;
598
- Value: string | undefined;
599
- }
600
639
  export interface ListTagsForResourceOutput {
601
640
  Tags?: Tag[] | undefined;
602
641
  }
@@ -649,6 +688,23 @@ export interface PutInsightRuleInput {
649
688
  ApplyOnTransformedLogs?: boolean | undefined;
650
689
  }
651
690
  export interface PutInsightRuleOutput {}
691
+ export interface PutLogAlarmInput {
692
+ AlarmName: string | undefined;
693
+ AlarmDescription?: string | undefined;
694
+ ScheduledQueryConfiguration: ScheduledQueryConfiguration | undefined;
695
+ ActionLogLineCount?: number | undefined;
696
+ ActionLogLineRoleArn?: string | undefined;
697
+ ActionsEnabled?: boolean | undefined;
698
+ OKActions?: string[] | undefined;
699
+ AlarmActions?: string[] | undefined;
700
+ InsufficientDataActions?: string[] | undefined;
701
+ QueryResultsToEvaluate: number | undefined;
702
+ QueryResultsToAlarm: number | undefined;
703
+ Threshold: number | undefined;
704
+ ComparisonOperator: ComparisonOperator | undefined;
705
+ TreatMissingData?: string | undefined;
706
+ Tags?: Tag[] | undefined;
707
+ }
652
708
  export interface ManagedRule {
653
709
  TemplateName: string | undefined;
654
710
  ResourceARN: string | undefined;
@@ -27,7 +27,13 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
27
27
  | import("@smithy/types").Provider<number>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
29
29
  sha256: import("@smithy/types").HashConstructor;
30
- 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>;
31
37
  useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
32
38
  (boolean | import("@smithy/types").Provider<boolean | undefined>);
33
39
  useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
@@ -28,7 +28,13 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
28
28
  | import("@smithy/types").Provider<number>;
29
29
  retryMode: string | import("@smithy/types").Provider<string>;
30
30
  sha256: import("@smithy/types").HashConstructor;
31
- streamCollector: import("@smithy/types").StreamCollector;
31
+ streamCollector: (
32
+ stream:
33
+ | import("stream").Readable
34
+ | import("stream/web").ReadableStream
35
+ | ReadableStream
36
+ | Blob
37
+ ) => Promise<Uint8Array>;
32
38
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
33
39
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
34
40
  userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
20
20
  apiVersion: string;
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;
@@ -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,6 +143,8 @@ 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;
145
150
  export declare var StartMetricStreamsInput$: StaticStructureSchema;
@@ -195,6 +200,7 @@ export declare var PutAnomalyDetector$: StaticOperationSchema;
195
200
  export declare var PutCompositeAlarm$: StaticOperationSchema;
196
201
  export declare var PutDashboard$: StaticOperationSchema;
197
202
  export declare var PutInsightRule$: StaticOperationSchema;
203
+ export declare var PutLogAlarm$: StaticOperationSchema;
198
204
  export declare var PutManagedInsightRules$: StaticOperationSchema;
199
205
  export declare var PutMetricAlarm$: StaticOperationSchema;
200
206
  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.1076.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",
@@ -27,18 +27,18 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
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",
30
+ "@aws-sdk/core": "^3.974.24",
31
+ "@aws-sdk/credential-provider-node": "^3.972.59",
32
+ "@aws-sdk/types": "^3.973.14",
33
+ "@smithy/core": "^3.27.0",
34
+ "@smithy/fetch-http-handler": "^5.6.0",
35
+ "@smithy/middleware-compression": "^4.5.3",
36
+ "@smithy/node-http-handler": "^4.9.0",
37
+ "@smithy/types": "^4.15.0",
38
38
  "tslib": "^2.6.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@smithy/snapshot-testing": "^2.1.7",
41
+ "@smithy/snapshot-testing": "^2.2.3",
42
42
  "@tsconfig/node20": "20.1.8",
43
43
  "@types/node": "^20.14.8",
44
44
  "concurrently": "7.0.0",
@@ -1,40 +0,0 @@
1
- const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
- exports.defaultCloudWatchHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
- return {
5
- operation: getSmithyContext(context).operation,
6
- region: await normalizeProvider(config.region)() || (() => {
7
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
- })(),
9
- };
10
- };
11
- function createAwsAuthSigv4HttpAuthOption(authParameters) {
12
- return {
13
- schemeId: "aws.auth#sigv4",
14
- signingProperties: {
15
- name: "monitoring",
16
- region: authParameters.region,
17
- },
18
- propertiesExtractor: (config, context) => ({
19
- signingProperties: {
20
- config,
21
- context,
22
- },
23
- }),
24
- };
25
- }
26
- exports.defaultCloudWatchHttpAuthSchemeProvider = (authParameters) => {
27
- const options = [];
28
- switch (authParameters.operation) {
29
- default: {
30
- options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
31
- }
32
- }
33
- return options;
34
- };
35
- exports.resolveHttpAuthSchemeConfig = (config) => {
36
- const config_0 = resolveAwsSdkSigV4Config(config);
37
- return Object.assign(config_0, {
38
- authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
39
- });
40
- };
@@ -1,49 +0,0 @@
1
- const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
2
- const k = "ref";
3
- const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
- const _data = {
5
- conditions: [
6
- [c, [g]],
7
- [c, j],
8
- ["aws.partition", j, d],
9
- [e, [{ [k]: "UseFIPS" }, b]],
10
- [e, [{ [k]: "UseDualStack" }, b]],
11
- ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]],
12
- [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
13
- [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]]
14
- ],
15
- results: [
16
- [a],
17
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
18
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
19
- [g, i],
20
- ["https://monitoring.{Region}.{PartitionResult#dnsSuffix}", i],
21
- ["https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
22
- ["https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
23
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
24
- ["https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", i],
25
- [a, "FIPS is enabled but this partition does not support FIPS"],
26
- [a, "DualStack is enabled but this partition does not support DualStack"],
27
- [a, "Invalid Configuration: Missing Region"]
28
- ]
29
- };
30
- const root = 2;
31
- const r = 100_000_000;
32
- const nodes = new Int32Array([
33
- -1, 1, -1,
34
- 0, 14, 3,
35
- 1, 4, r + 11,
36
- 2, 5, r + 11,
37
- 3, 8, 6,
38
- 4, 7, r + 4,
39
- 7, r + 5, r + 10,
40
- 4, 11, 9,
41
- 5, r + 4, 10,
42
- 6, r + 8, r + 9,
43
- 5, r + 5, 12,
44
- 6, 13, r + 7,
45
- 7, r + 6, r + 7,
46
- 3, r + 1, 15,
47
- 4, r + 2, r + 3,
48
- ]);
49
- exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,14 +0,0 @@
1
- const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
- const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
- const { bdd } = require("./bdd");
4
- const cache = new EndpointCache({
5
- size: 50,
6
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
- });
8
- exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
- return cache.get(endpointParams, () => decideEndpoint(bdd, {
10
- endpointParams: endpointParams,
11
- logger: context.logger,
12
- }));
13
- };
14
- customEndpointFunctions.aws = awsEndpointFunctions;
@@ -1,8 +0,0 @@
1
- const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
- exports.__ServiceException = __ServiceException;
3
- exports.CloudWatchServiceException = class CloudWatchServiceException extends __ServiceException {
4
- constructor(options) {
5
- super(options);
6
- Object.setPrototypeOf(this, CloudWatchServiceException.prototype);
7
- }
8
- };