@aws-sdk/client-mq 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.
@@ -3,3 +3,4 @@ export * from "./MqClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { MqServiceException } from "./models/MqServiceException";
@@ -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 Mq service.
4
+ */
5
+ export declare class MqServiceException 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 { MqServiceException as __BaseException } from "./MqServiceException";
2
3
  /**
3
4
  * <p>Name of the availability zone.</p>
4
5
  */
@@ -350,9 +351,9 @@ export declare namespace UserSummary {
350
351
  /**
351
352
  * <p>Returns information about an error.</p>
352
353
  */
353
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
354
- name: "BadRequestException";
355
- $fault: "client";
354
+ export declare class BadRequestException extends __BaseException {
355
+ readonly name: "BadRequestException";
356
+ readonly $fault: "client";
356
357
  /**
357
358
  * <p>The attribute which caused the error.</p>
358
359
  */
@@ -361,6 +362,10 @@ export interface BadRequestException extends __SmithyException, $MetadataBearer
361
362
  * <p>The explanation of the error.</p>
362
363
  */
363
364
  Message?: string;
365
+ /**
366
+ * @internal
367
+ */
368
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
364
369
  }
365
370
  /**
366
371
  * <p>Broker configuration information</p>
@@ -388,9 +393,9 @@ export declare namespace Configurations {
388
393
  /**
389
394
  * <p>Returns information about an error.</p>
390
395
  */
391
- export interface ConflictException extends __SmithyException, $MetadataBearer {
392
- name: "ConflictException";
393
- $fault: "client";
396
+ export declare class ConflictException extends __BaseException {
397
+ readonly name: "ConflictException";
398
+ readonly $fault: "client";
394
399
  /**
395
400
  * <p>The attribute which caused the error.</p>
396
401
  */
@@ -399,6 +404,10 @@ export interface ConflictException extends __SmithyException, $MetadataBearer {
399
404
  * <p>The explanation of the error.</p>
400
405
  */
401
406
  Message?: string;
407
+ /**
408
+ * @internal
409
+ */
410
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
402
411
  }
403
412
  /**
404
413
  * <important><p>Does not apply to RabbitMQ brokers.</p></important> <p>Encryption options for the broker.</p>
@@ -638,9 +647,9 @@ export declare namespace CreateBrokerResponse {
638
647
  /**
639
648
  * <p>Returns information about an error.</p>
640
649
  */
641
- export interface ForbiddenException extends __SmithyException, $MetadataBearer {
642
- name: "ForbiddenException";
643
- $fault: "client";
650
+ export declare class ForbiddenException extends __BaseException {
651
+ readonly name: "ForbiddenException";
652
+ readonly $fault: "client";
644
653
  /**
645
654
  * <p>The attribute which caused the error.</p>
646
655
  */
@@ -649,13 +658,17 @@ export interface ForbiddenException extends __SmithyException, $MetadataBearer {
649
658
  * <p>The explanation of the error.</p>
650
659
  */
651
660
  Message?: string;
661
+ /**
662
+ * @internal
663
+ */
664
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
652
665
  }
653
666
  /**
654
667
  * <p>Returns information about an error.</p>
655
668
  */
656
- export interface InternalServerErrorException extends __SmithyException, $MetadataBearer {
657
- name: "InternalServerErrorException";
658
- $fault: "server";
669
+ export declare class InternalServerErrorException extends __BaseException {
670
+ readonly name: "InternalServerErrorException";
671
+ readonly $fault: "server";
659
672
  /**
660
673
  * <p>The attribute which caused the error.</p>
661
674
  */
@@ -664,13 +677,17 @@ export interface InternalServerErrorException extends __SmithyException, $Metada
664
677
  * <p>The explanation of the error.</p>
665
678
  */
666
679
  Message?: string;
680
+ /**
681
+ * @internal
682
+ */
683
+ constructor(opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>);
667
684
  }
668
685
  /**
669
686
  * <p>Returns information about an error.</p>
670
687
  */
671
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
672
- name: "UnauthorizedException";
673
- $fault: "client";
688
+ export declare class UnauthorizedException extends __BaseException {
689
+ readonly name: "UnauthorizedException";
690
+ readonly $fault: "client";
674
691
  /**
675
692
  * <p>The attribute which caused the error.</p>
676
693
  */
@@ -679,6 +696,10 @@ export interface UnauthorizedException extends __SmithyException, $MetadataBeare
679
696
  * <p>The explanation of the error.</p>
680
697
  */
681
698
  Message?: string;
699
+ /**
700
+ * @internal
701
+ */
702
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
682
703
  }
683
704
  /**
684
705
  * <p>Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).</p>
@@ -769,9 +790,9 @@ export declare namespace CreateTagsRequest {
769
790
  /**
770
791
  * <p>Returns information about an error.</p>
771
792
  */
772
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
773
- name: "NotFoundException";
774
- $fault: "client";
793
+ export declare class NotFoundException extends __BaseException {
794
+ readonly name: "NotFoundException";
795
+ readonly $fault: "client";
775
796
  /**
776
797
  * <p>The attribute which caused the error.</p>
777
798
  */
@@ -780,6 +801,10 @@ export interface NotFoundException extends __SmithyException, $MetadataBearer {
780
801
  * <p>The explanation of the error.</p>
781
802
  */
782
803
  Message?: string;
804
+ /**
805
+ * @internal
806
+ */
807
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
783
808
  }
784
809
  /**
785
810
  * <p>Creates a new ActiveMQ user.</p>
@@ -3,3 +3,4 @@ export * from "./MqClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { MqServiceException } from "./models/MqServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class MqServiceException 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 { MqServiceException as __BaseException } from "./MqServiceException";
2
3
 
3
4
  export interface AvailabilityZone {
4
5
 
@@ -210,13 +211,15 @@ export declare namespace UserSummary {
210
211
  const filterSensitiveLog: (obj: UserSummary) => any;
211
212
  }
212
213
 
213
- export interface BadRequestException extends __SmithyException, $MetadataBearer {
214
- name: "BadRequestException";
215
- $fault: "client";
214
+ export declare class BadRequestException extends __BaseException {
215
+ readonly name: "BadRequestException";
216
+ readonly $fault: "client";
216
217
 
217
218
  ErrorAttribute?: string;
218
219
 
219
220
  Message?: string;
221
+
222
+ constructor(opts: __ExceptionOptionType<BadRequestException, __BaseException>);
220
223
  }
221
224
 
222
225
  export interface Configurations {
@@ -232,13 +235,15 @@ export declare namespace Configurations {
232
235
  const filterSensitiveLog: (obj: Configurations) => any;
233
236
  }
234
237
 
235
- export interface ConflictException extends __SmithyException, $MetadataBearer {
236
- name: "ConflictException";
237
- $fault: "client";
238
+ export declare class ConflictException extends __BaseException {
239
+ readonly name: "ConflictException";
240
+ readonly $fault: "client";
238
241
 
239
242
  ErrorAttribute?: string;
240
243
 
241
244
  Message?: string;
245
+
246
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
242
247
  }
243
248
 
244
249
  export interface EncryptionOptions {
@@ -371,31 +376,37 @@ export declare namespace CreateBrokerResponse {
371
376
  const filterSensitiveLog: (obj: CreateBrokerResponse) => any;
372
377
  }
373
378
 
374
- export interface ForbiddenException extends __SmithyException, $MetadataBearer {
375
- name: "ForbiddenException";
376
- $fault: "client";
379
+ export declare class ForbiddenException extends __BaseException {
380
+ readonly name: "ForbiddenException";
381
+ readonly $fault: "client";
377
382
 
378
383
  ErrorAttribute?: string;
379
384
 
380
385
  Message?: string;
386
+
387
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
381
388
  }
382
389
 
383
- export interface InternalServerErrorException extends __SmithyException, $MetadataBearer {
384
- name: "InternalServerErrorException";
385
- $fault: "server";
390
+ export declare class InternalServerErrorException extends __BaseException {
391
+ readonly name: "InternalServerErrorException";
392
+ readonly $fault: "server";
386
393
 
387
394
  ErrorAttribute?: string;
388
395
 
389
396
  Message?: string;
397
+
398
+ constructor(opts: __ExceptionOptionType<InternalServerErrorException, __BaseException>);
390
399
  }
391
400
 
392
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
393
- name: "UnauthorizedException";
394
- $fault: "client";
401
+ export declare class UnauthorizedException extends __BaseException {
402
+ readonly name: "UnauthorizedException";
403
+ readonly $fault: "client";
395
404
 
396
405
  ErrorAttribute?: string;
397
406
 
398
407
  Message?: string;
408
+
409
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
399
410
  }
400
411
 
401
412
  export interface CreateConfigurationRequest {
@@ -448,13 +459,15 @@ export declare namespace CreateTagsRequest {
448
459
  const filterSensitiveLog: (obj: CreateTagsRequest) => any;
449
460
  }
450
461
 
451
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
452
- name: "NotFoundException";
453
- $fault: "client";
462
+ export declare class NotFoundException extends __BaseException {
463
+ readonly name: "NotFoundException";
464
+ readonly $fault: "client";
454
465
 
455
466
  ErrorAttribute?: string;
456
467
 
457
468
  Message?: string;
469
+
470
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
458
471
  }
459
472
 
460
473
  export interface CreateUserRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-mq",
3
3
  "description": "AWS SDK for JavaScript Mq 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",