@aws-sdk/client-cloudwatch-events 3.52.0 → 3.53.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.
@@ -2,3 +2,4 @@ export * from "./CloudWatchEvents";
2
2
  export * from "./CloudWatchEventsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { CloudWatchEventsServiceException } from "./models/CloudWatchEventsServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from CloudWatchEvents service.
4
+ */
5
+ export declare class CloudWatchEventsServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CloudWatchEventsServiceException as __BaseException } from "./CloudWatchEventsServiceException";
2
3
  export interface ActivateEventSourceRequest {
3
4
  /**
4
5
  * <p>The name of the partner event source to activate.</p>
@@ -14,42 +15,57 @@ export declare namespace ActivateEventSourceRequest {
14
15
  /**
15
16
  * <p>There is concurrent modification on a rule, target, archive, or replay.</p>
16
17
  */
17
- export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
18
- name: "ConcurrentModificationException";
19
- $fault: "client";
20
- message?: string;
18
+ export declare class ConcurrentModificationException extends __BaseException {
19
+ readonly name: "ConcurrentModificationException";
20
+ readonly $fault: "client";
21
+ /**
22
+ * @internal
23
+ */
24
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
21
25
  }
22
26
  /**
23
27
  * <p>This exception occurs due to unexpected causes.</p>
24
28
  */
25
- export interface InternalException extends __SmithyException, $MetadataBearer {
26
- name: "InternalException";
27
- $fault: "server";
28
- message?: string;
29
+ export declare class InternalException extends __BaseException {
30
+ readonly name: "InternalException";
31
+ readonly $fault: "server";
32
+ /**
33
+ * @internal
34
+ */
35
+ constructor(opts: __ExceptionOptionType<InternalException, __BaseException>);
29
36
  }
30
37
  /**
31
38
  * <p>The specified state is not a valid state for an event source.</p>
32
39
  */
33
- export interface InvalidStateException extends __SmithyException, $MetadataBearer {
34
- name: "InvalidStateException";
35
- $fault: "client";
36
- message?: string;
40
+ export declare class InvalidStateException extends __BaseException {
41
+ readonly name: "InvalidStateException";
42
+ readonly $fault: "client";
43
+ /**
44
+ * @internal
45
+ */
46
+ constructor(opts: __ExceptionOptionType<InvalidStateException, __BaseException>);
37
47
  }
38
48
  /**
39
49
  * <p>The operation you are attempting is not available in this region.</p>
40
50
  */
41
- export interface OperationDisabledException extends __SmithyException, $MetadataBearer {
42
- name: "OperationDisabledException";
43
- $fault: "client";
44
- message?: string;
51
+ export declare class OperationDisabledException extends __BaseException {
52
+ readonly name: "OperationDisabledException";
53
+ readonly $fault: "client";
54
+ /**
55
+ * @internal
56
+ */
57
+ constructor(opts: __ExceptionOptionType<OperationDisabledException, __BaseException>);
45
58
  }
46
59
  /**
47
60
  * <p>An entity that you specified does not exist.</p>
48
61
  */
49
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
50
- name: "ResourceNotFoundException";
51
- $fault: "client";
52
- message?: string;
62
+ export declare class ResourceNotFoundException extends __BaseException {
63
+ readonly name: "ResourceNotFoundException";
64
+ readonly $fault: "client";
65
+ /**
66
+ * @internal
67
+ */
68
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
53
69
  }
54
70
  export declare enum ApiDestinationState {
55
71
  ACTIVE = "ACTIVE",
@@ -211,10 +227,13 @@ export declare namespace CancelReplayResponse {
211
227
  * <p>An error occurred because a replay can be canceled only when the state is Running or
212
228
  * Starting.</p>
213
229
  */
214
- export interface IllegalStatusException extends __SmithyException, $MetadataBearer {
215
- name: "IllegalStatusException";
216
- $fault: "client";
217
- message?: string;
230
+ export declare class IllegalStatusException extends __BaseException {
231
+ readonly name: "IllegalStatusException";
232
+ readonly $fault: "client";
233
+ /**
234
+ * @internal
235
+ */
236
+ constructor(opts: __ExceptionOptionType<IllegalStatusException, __BaseException>);
218
237
  }
219
238
  export interface CreateApiDestinationRequest {
220
239
  /**
@@ -277,18 +296,24 @@ export declare namespace CreateApiDestinationResponse {
277
296
  * <p>The request failed because it attempted to create resource beyond the allowed service
278
297
  * quota.</p>
279
298
  */
280
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
281
- name: "LimitExceededException";
282
- $fault: "client";
283
- message?: string;
299
+ export declare class LimitExceededException extends __BaseException {
300
+ readonly name: "LimitExceededException";
301
+ readonly $fault: "client";
302
+ /**
303
+ * @internal
304
+ */
305
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
284
306
  }
285
307
  /**
286
308
  * <p>The resource you are trying to create already exists.</p>
287
309
  */
288
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
289
- name: "ResourceAlreadyExistsException";
290
- $fault: "client";
291
- message?: string;
310
+ export declare class ResourceAlreadyExistsException extends __BaseException {
311
+ readonly name: "ResourceAlreadyExistsException";
312
+ readonly $fault: "client";
313
+ /**
314
+ * @internal
315
+ */
316
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
292
317
  }
293
318
  export interface CreateArchiveRequest {
294
319
  /**
@@ -346,10 +371,13 @@ export declare namespace CreateArchiveResponse {
346
371
  /**
347
372
  * <p>The event pattern is not valid.</p>
348
373
  */
349
- export interface InvalidEventPatternException extends __SmithyException, $MetadataBearer {
350
- name: "InvalidEventPatternException";
351
- $fault: "client";
352
- message?: string;
374
+ export declare class InvalidEventPatternException extends __BaseException {
375
+ readonly name: "InvalidEventPatternException";
376
+ readonly $fault: "client";
377
+ /**
378
+ * @internal
379
+ */
380
+ constructor(opts: __ExceptionOptionType<InvalidEventPatternException, __BaseException>);
353
381
  }
354
382
  export declare enum ConnectionAuthorizationType {
355
383
  API_KEY = "API_KEY",
@@ -924,10 +952,13 @@ export declare namespace DeleteRuleRequest {
924
952
  * using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>,
925
953
  * <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>. </p>
926
954
  */
927
- export interface ManagedRuleException extends __SmithyException, $MetadataBearer {
928
- name: "ManagedRuleException";
929
- $fault: "client";
930
- message?: string;
955
+ export declare class ManagedRuleException extends __BaseException {
956
+ readonly name: "ManagedRuleException";
957
+ readonly $fault: "client";
958
+ /**
959
+ * @internal
960
+ */
961
+ constructor(opts: __ExceptionOptionType<ManagedRuleException, __BaseException>);
931
962
  }
932
963
  export interface DescribeApiDestinationRequest {
933
964
  /**
@@ -3218,10 +3249,13 @@ export declare namespace PutPartnerEventsResponse {
3218
3249
  /**
3219
3250
  * <p>The event bus policy is too long. For more information, see the limits.</p>
3220
3251
  */
3221
- export interface PolicyLengthExceededException extends __SmithyException, $MetadataBearer {
3222
- name: "PolicyLengthExceededException";
3223
- $fault: "client";
3224
- message?: string;
3252
+ export declare class PolicyLengthExceededException extends __BaseException {
3253
+ readonly name: "PolicyLengthExceededException";
3254
+ readonly $fault: "client";
3255
+ /**
3256
+ * @internal
3257
+ */
3258
+ constructor(opts: __ExceptionOptionType<PolicyLengthExceededException, __BaseException>);
3225
3259
  }
3226
3260
  /**
3227
3261
  * <p>A JSON string which you can use to limit the event bus permissions you are granting to
@@ -2,3 +2,4 @@ export * from "./CloudWatchEvents";
2
2
  export * from "./CloudWatchEventsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { CloudWatchEventsServiceException } from "./models/CloudWatchEventsServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class CloudWatchEventsServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CloudWatchEventsServiceException as __BaseException } from "./CloudWatchEventsServiceException";
2
3
  export interface ActivateEventSourceRequest {
3
4
 
4
5
  Name: string | undefined;
@@ -8,34 +9,39 @@ export declare namespace ActivateEventSourceRequest {
8
9
  const filterSensitiveLog: (obj: ActivateEventSourceRequest) => any;
9
10
  }
10
11
 
11
- export interface ConcurrentModificationException extends __SmithyException, $MetadataBearer {
12
- name: "ConcurrentModificationException";
13
- $fault: "client";
14
- message?: string;
12
+ export declare class ConcurrentModificationException extends __BaseException {
13
+ readonly name: "ConcurrentModificationException";
14
+ readonly $fault: "client";
15
+
16
+ constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
15
17
  }
16
18
 
17
- export interface InternalException extends __SmithyException, $MetadataBearer {
18
- name: "InternalException";
19
- $fault: "server";
20
- message?: string;
19
+ export declare class InternalException extends __BaseException {
20
+ readonly name: "InternalException";
21
+ readonly $fault: "server";
22
+
23
+ constructor(opts: __ExceptionOptionType<InternalException, __BaseException>);
21
24
  }
22
25
 
23
- export interface InvalidStateException extends __SmithyException, $MetadataBearer {
24
- name: "InvalidStateException";
25
- $fault: "client";
26
- message?: string;
26
+ export declare class InvalidStateException extends __BaseException {
27
+ readonly name: "InvalidStateException";
28
+ readonly $fault: "client";
29
+
30
+ constructor(opts: __ExceptionOptionType<InvalidStateException, __BaseException>);
27
31
  }
28
32
 
29
- export interface OperationDisabledException extends __SmithyException, $MetadataBearer {
30
- name: "OperationDisabledException";
31
- $fault: "client";
32
- message?: string;
33
+ export declare class OperationDisabledException extends __BaseException {
34
+ readonly name: "OperationDisabledException";
35
+ readonly $fault: "client";
36
+
37
+ constructor(opts: __ExceptionOptionType<OperationDisabledException, __BaseException>);
33
38
  }
34
39
 
35
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
36
- name: "ResourceNotFoundException";
37
- $fault: "client";
38
- message?: string;
40
+ export declare class ResourceNotFoundException extends __BaseException {
41
+ readonly name: "ResourceNotFoundException";
42
+ readonly $fault: "client";
43
+
44
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
39
45
  }
40
46
  export declare enum ApiDestinationState {
41
47
  ACTIVE = "ACTIVE",
@@ -139,10 +145,11 @@ export declare namespace CancelReplayResponse {
139
145
  const filterSensitiveLog: (obj: CancelReplayResponse) => any;
140
146
  }
141
147
 
142
- export interface IllegalStatusException extends __SmithyException, $MetadataBearer {
143
- name: "IllegalStatusException";
144
- $fault: "client";
145
- message?: string;
148
+ export declare class IllegalStatusException extends __BaseException {
149
+ readonly name: "IllegalStatusException";
150
+ readonly $fault: "client";
151
+
152
+ constructor(opts: __ExceptionOptionType<IllegalStatusException, __BaseException>);
146
153
  }
147
154
  export interface CreateApiDestinationRequest {
148
155
 
@@ -177,16 +184,18 @@ export declare namespace CreateApiDestinationResponse {
177
184
  const filterSensitiveLog: (obj: CreateApiDestinationResponse) => any;
178
185
  }
179
186
 
180
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
181
- name: "LimitExceededException";
182
- $fault: "client";
183
- message?: string;
187
+ export declare class LimitExceededException extends __BaseException {
188
+ readonly name: "LimitExceededException";
189
+ readonly $fault: "client";
190
+
191
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
184
192
  }
185
193
 
186
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
187
- name: "ResourceAlreadyExistsException";
188
- $fault: "client";
189
- message?: string;
194
+ export declare class ResourceAlreadyExistsException extends __BaseException {
195
+ readonly name: "ResourceAlreadyExistsException";
196
+ readonly $fault: "client";
197
+
198
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
190
199
  }
191
200
  export interface CreateArchiveRequest {
192
201
 
@@ -219,10 +228,11 @@ export declare namespace CreateArchiveResponse {
219
228
  const filterSensitiveLog: (obj: CreateArchiveResponse) => any;
220
229
  }
221
230
 
222
- export interface InvalidEventPatternException extends __SmithyException, $MetadataBearer {
223
- name: "InvalidEventPatternException";
224
- $fault: "client";
225
- message?: string;
231
+ export declare class InvalidEventPatternException extends __BaseException {
232
+ readonly name: "InvalidEventPatternException";
233
+ readonly $fault: "client";
234
+
235
+ constructor(opts: __ExceptionOptionType<InvalidEventPatternException, __BaseException>);
226
236
  }
227
237
  export declare enum ConnectionAuthorizationType {
228
238
  API_KEY = "API_KEY",
@@ -550,10 +560,11 @@ export declare namespace DeleteRuleRequest {
550
560
  const filterSensitiveLog: (obj: DeleteRuleRequest) => any;
551
561
  }
552
562
 
553
- export interface ManagedRuleException extends __SmithyException, $MetadataBearer {
554
- name: "ManagedRuleException";
555
- $fault: "client";
556
- message?: string;
563
+ export declare class ManagedRuleException extends __BaseException {
564
+ readonly name: "ManagedRuleException";
565
+ readonly $fault: "client";
566
+
567
+ constructor(opts: __ExceptionOptionType<ManagedRuleException, __BaseException>);
557
568
  }
558
569
  export interface DescribeApiDestinationRequest {
559
570
 
@@ -1712,10 +1723,11 @@ export declare namespace PutPartnerEventsResponse {
1712
1723
  const filterSensitiveLog: (obj: PutPartnerEventsResponse) => any;
1713
1724
  }
1714
1725
 
1715
- export interface PolicyLengthExceededException extends __SmithyException, $MetadataBearer {
1716
- name: "PolicyLengthExceededException";
1717
- $fault: "client";
1718
- message?: string;
1726
+ export declare class PolicyLengthExceededException extends __BaseException {
1727
+ readonly name: "PolicyLengthExceededException";
1728
+ readonly $fault: "client";
1729
+
1730
+ constructor(opts: __ExceptionOptionType<PolicyLengthExceededException, __BaseException>);
1719
1731
  }
1720
1732
 
1721
1733
  export interface Condition {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-events",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Events Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"