@aws-sdk/client-mq 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultMqHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2017-11-27",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.mq",
30
+ errorTypeRegistries,
29
31
  version: "2017-11-27",
30
32
  serviceTarget: "mq",
31
33
  },
@@ -291,7 +291,7 @@ const _rU = "replicationUser";
291
291
  const _re = "region";
292
292
  const _rea = "reason";
293
293
  const _rev = "revisions";
294
- const _s = "server";
294
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mq";
295
295
  const _sAP = "serviceAccountPassword";
296
296
  const _sAU = "serviceAccountUsername";
297
297
  const _sDM = "supportedDeploymentModes";
@@ -299,7 +299,7 @@ const _sEV = "supportedEngineVersions";
299
299
  const _sG = "securityGroups";
300
300
  const _sI = "subnetIds";
301
301
  const _sT = "storageType";
302
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.mq";
302
+ const _se = "server";
303
303
  const _t = "tags";
304
304
  const _tK = "tagKeys";
305
305
  const _tOD = "timeOfDay";
@@ -316,6 +316,50 @@ const n0 = "com.amazonaws.mq";
316
316
  import { TypeRegistry } from "@smithy/core/schema";
317
317
  import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, NotFoundException, UnauthorizedException, } from "../models/errors";
318
318
  import { MqServiceException } from "../models/MqServiceException";
319
+ const _s_registry = TypeRegistry.for(_s);
320
+ export var MqServiceException$ = [-3, _s, "MqServiceException", 0, [], []];
321
+ _s_registry.registerError(MqServiceException$, MqServiceException);
322
+ const n0_registry = TypeRegistry.for(n0);
323
+ export var BadRequestException$ = [-3, n0, _BRE,
324
+ { [_e]: _c, [_hE]: 400 },
325
+ [_EA, _M],
326
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
327
+ ];
328
+ n0_registry.registerError(BadRequestException$, BadRequestException);
329
+ export var ConflictException$ = [-3, n0, _CE,
330
+ { [_e]: _c, [_hE]: 409 },
331
+ [_EA, _M],
332
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
333
+ ];
334
+ n0_registry.registerError(ConflictException$, ConflictException);
335
+ export var ForbiddenException$ = [-3, n0, _FE,
336
+ { [_e]: _c, [_hE]: 403 },
337
+ [_EA, _M],
338
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
339
+ ];
340
+ n0_registry.registerError(ForbiddenException$, ForbiddenException);
341
+ export var InternalServerErrorException$ = [-3, n0, _ISEE,
342
+ { [_e]: _se, [_hE]: 500 },
343
+ [_EA, _M],
344
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
345
+ ];
346
+ n0_registry.registerError(InternalServerErrorException$, InternalServerErrorException);
347
+ export var NotFoundException$ = [-3, n0, _NFE,
348
+ { [_e]: _c, [_hE]: 404 },
349
+ [_EA, _M],
350
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
351
+ ];
352
+ n0_registry.registerError(NotFoundException$, NotFoundException);
353
+ export var UnauthorizedException$ = [-3, n0, _UE,
354
+ { [_e]: _c, [_hE]: 401 },
355
+ [_EA, _M],
356
+ [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
357
+ ];
358
+ n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
359
+ export const errorTypeRegistries = [
360
+ _s_registry,
361
+ n0_registry,
362
+ ];
319
363
  export var ActionRequired$ = [3, n0, _AR,
320
364
  0,
321
365
  [_ARC, _ARI],
@@ -326,12 +370,6 @@ export var AvailabilityZone$ = [3, n0, _AZ,
326
370
  [_N],
327
371
  [[0, { [_jN]: _n }]]
328
372
  ];
329
- export var BadRequestException$ = [-3, n0, _BRE,
330
- { [_e]: _c, [_hE]: 400 },
331
- [_EA, _M],
332
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
333
- ];
334
- TypeRegistry.for(n0).registerError(BadRequestException$, BadRequestException);
335
373
  export var BrokerEngineType$ = [3, n0, _BET,
336
374
  0,
337
375
  [_ET, _EV],
@@ -372,12 +410,6 @@ export var Configurations$ = [3, n0, _Con,
372
410
  [_Cu, _H, _P],
373
411
  [[() => ConfigurationId$, { [_jN]: _cu }], [() => __listOfConfigurationId, { [_jN]: _h }], [() => ConfigurationId$, { [_jN]: _p }]]
374
412
  ];
375
- export var ConflictException$ = [-3, n0, _CE,
376
- { [_e]: _c, [_hE]: 409 },
377
- [_EA, _M],
378
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
379
- ];
380
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
381
413
  export var CreateBrokerRequest$ = [3, n0, _CBR,
382
414
  0,
383
415
  [_BN, _DM, _ET, _HIT, _PA, _AS, _AMVU, _Co, _CRI, _EO, _EVn, _LSM, _L, _MWST, _SG, _ST, _SI, _T, _U, _DRM, _DRPBA],
@@ -528,18 +560,6 @@ export var EngineVersion$ = [3, n0, _EVn,
528
560
  [_N],
529
561
  [[0, { [_jN]: _n }]]
530
562
  ];
531
- export var ForbiddenException$ = [-3, n0, _FE,
532
- { [_e]: _c, [_hE]: 403 },
533
- [_EA, _M],
534
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
535
- ];
536
- TypeRegistry.for(n0).registerError(ForbiddenException$, ForbiddenException);
537
- export var InternalServerErrorException$ = [-3, n0, _ISEE,
538
- { [_e]: _s, [_hE]: 500 },
539
- [_EA, _M],
540
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
541
- ];
542
- TypeRegistry.for(n0).registerError(InternalServerErrorException$, InternalServerErrorException);
543
563
  export var LdapServerMetadataInput$ = [3, n0, _LSMI,
544
564
  0,
545
565
  [_Ho, _RB, _RSM, _SAP, _SAU, _UB, _USM, _RN, _RSS, _URN, _USS],
@@ -610,12 +630,6 @@ export var LogsSummary$ = [3, n0, _LS,
610
630
  [_Ge, _GLG, _Au, _ALG, _P],
611
631
  [[2, { [_jN]: _ge }], [0, { [_jN]: _gLG }], [2, { [_jN]: _au }], [0, { [_jN]: _aLG }], [() => PendingLogs$, { [_jN]: _p }]], 2
612
632
  ];
613
- export var NotFoundException$ = [-3, n0, _NFE,
614
- { [_e]: _c, [_hE]: 404 },
615
- [_EA, _M],
616
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
617
- ];
618
- TypeRegistry.for(n0).registerError(NotFoundException$, NotFoundException);
619
633
  export var PendingLogs$ = [3, n0, _PL,
620
634
  0,
621
635
  [_Au, _Ge],
@@ -646,12 +660,6 @@ export var SanitizationWarning$ = [3, n0, _SW,
646
660
  [_Rea, _AN, _EN],
647
661
  [[0, { [_jN]: _rea }], [0, { [_jN]: _aN }], [0, { [_jN]: _eN }]], 1
648
662
  ];
649
- export var UnauthorizedException$ = [-3, n0, _UE,
650
- { [_e]: _c, [_hE]: 401 },
651
- [_EA, _M],
652
- [[0, { [_jN]: _eA }], [0, { [_jN]: _m }]]
653
- ];
654
- TypeRegistry.for(n0).registerError(UnauthorizedException$, UnauthorizedException);
655
663
  export var UpdateBrokerRequest$ = [3, n0, _UBR,
656
664
  0,
657
665
  [_BIr, _AS, _AMVU, _Co, _EVn, _HIT, _LSM, _L, _MWST, _SG, _DRM],
@@ -703,8 +711,6 @@ export var WeeklyStartTime$ = [3, n0, _WST,
703
711
  [[0, { [_jN]: _dOW }], [0, { [_jN]: _tOD }], [0, { [_jN]: _tZ }]], 2
704
712
  ];
705
713
  var __Unit = "unit";
706
- export var MqServiceException$ = [-3, _sm, "MqServiceException", 0, [], []];
707
- TypeRegistry.for(_sm).registerError(MqServiceException$, MqServiceException);
708
714
  var __listOf__string = 64 | 0;
709
715
  var __listOfActionRequired = [1, n0, _lOAR,
710
716
  0, [() => ActionRequired$,
@@ -1,7 +1,20 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var MqServiceException$: StaticErrorSchema;
4
+ export declare var BadRequestException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var ForbiddenException$: StaticErrorSchema;
7
+ export declare var InternalServerErrorException$: StaticErrorSchema;
8
+ export declare var NotFoundException$: StaticErrorSchema;
9
+ export declare var UnauthorizedException$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
2
16
  export declare var ActionRequired$: StaticStructureSchema;
3
17
  export declare var AvailabilityZone$: StaticStructureSchema;
4
- export declare var BadRequestException$: StaticErrorSchema;
5
18
  export declare var BrokerEngineType$: StaticStructureSchema;
6
19
  export declare var BrokerInstance$: StaticStructureSchema;
7
20
  export declare var BrokerInstanceOption$: StaticStructureSchema;
@@ -10,7 +23,6 @@ export declare var Configuration$: StaticStructureSchema;
10
23
  export declare var ConfigurationId$: StaticStructureSchema;
11
24
  export declare var ConfigurationRevision$: StaticStructureSchema;
12
25
  export declare var Configurations$: StaticStructureSchema;
13
- export declare var ConflictException$: StaticErrorSchema;
14
26
  export declare var CreateBrokerRequest$: StaticStructureSchema;
15
27
  export declare var CreateBrokerResponse$: StaticStructureSchema;
16
28
  export declare var CreateConfigurationRequest$: StaticStructureSchema;
@@ -41,8 +53,6 @@ export declare var DescribeUserRequest$: StaticStructureSchema;
41
53
  export declare var DescribeUserResponse$: StaticStructureSchema;
42
54
  export declare var EncryptionOptions$: StaticStructureSchema;
43
55
  export declare var EngineVersion$: StaticStructureSchema;
44
- export declare var ForbiddenException$: StaticErrorSchema;
45
- export declare var InternalServerErrorException$: StaticErrorSchema;
46
56
  export declare var LdapServerMetadataInput$: StaticStructureSchema;
47
57
  export declare var LdapServerMetadataOutput$: StaticStructureSchema;
48
58
  export declare var ListBrokersRequest$: StaticStructureSchema;
@@ -57,14 +67,12 @@ export declare var ListUsersRequest$: StaticStructureSchema;
57
67
  export declare var ListUsersResponse$: StaticStructureSchema;
58
68
  export declare var Logs$: StaticStructureSchema;
59
69
  export declare var LogsSummary$: StaticStructureSchema;
60
- export declare var NotFoundException$: StaticErrorSchema;
61
70
  export declare var PendingLogs$: StaticStructureSchema;
62
71
  export declare var PromoteRequest$: StaticStructureSchema;
63
72
  export declare var PromoteResponse$: StaticStructureSchema;
64
73
  export declare var RebootBrokerRequest$: StaticStructureSchema;
65
74
  export declare var RebootBrokerResponse$: StaticStructureSchema;
66
75
  export declare var SanitizationWarning$: StaticStructureSchema;
67
- export declare var UnauthorizedException$: StaticErrorSchema;
68
76
  export declare var UpdateBrokerRequest$: StaticStructureSchema;
69
77
  export declare var UpdateBrokerResponse$: StaticStructureSchema;
70
78
  export declare var UpdateConfigurationRequest$: StaticStructureSchema;
@@ -75,7 +83,6 @@ export declare var User$: StaticStructureSchema;
75
83
  export declare var UserPendingChanges$: StaticStructureSchema;
76
84
  export declare var UserSummary$: StaticStructureSchema;
77
85
  export declare var WeeklyStartTime$: StaticStructureSchema;
78
- export declare var MqServiceException$: StaticErrorSchema;
79
86
  export declare var CreateBroker$: StaticOperationSchema;
80
87
  export declare var CreateConfiguration$: StaticOperationSchema;
81
88
  export declare var CreateTags$: StaticOperationSchema;
@@ -1,11 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var MqServiceException$: StaticErrorSchema;
8
+ export declare var BadRequestException$: StaticErrorSchema;
9
+ export declare var ConflictException$: StaticErrorSchema;
10
+ export declare var ForbiddenException$: StaticErrorSchema;
11
+ export declare var InternalServerErrorException$: StaticErrorSchema;
12
+ export declare var NotFoundException$: StaticErrorSchema;
13
+ export declare var UnauthorizedException$: StaticErrorSchema;
14
+ export declare const errorTypeRegistries: TypeRegistry[];
6
15
  export declare var ActionRequired$: StaticStructureSchema;
7
16
  export declare var AvailabilityZone$: StaticStructureSchema;
8
- export declare var BadRequestException$: StaticErrorSchema;
9
17
  export declare var BrokerEngineType$: StaticStructureSchema;
10
18
  export declare var BrokerInstance$: StaticStructureSchema;
11
19
  export declare var BrokerInstanceOption$: StaticStructureSchema;
@@ -14,7 +22,6 @@ export declare var Configuration$: StaticStructureSchema;
14
22
  export declare var ConfigurationId$: StaticStructureSchema;
15
23
  export declare var ConfigurationRevision$: StaticStructureSchema;
16
24
  export declare var Configurations$: StaticStructureSchema;
17
- export declare var ConflictException$: StaticErrorSchema;
18
25
  export declare var CreateBrokerRequest$: StaticStructureSchema;
19
26
  export declare var CreateBrokerResponse$: StaticStructureSchema;
20
27
  export declare var CreateConfigurationRequest$: StaticStructureSchema;
@@ -45,8 +52,6 @@ export declare var DescribeUserRequest$: StaticStructureSchema;
45
52
  export declare var DescribeUserResponse$: StaticStructureSchema;
46
53
  export declare var EncryptionOptions$: StaticStructureSchema;
47
54
  export declare var EngineVersion$: StaticStructureSchema;
48
- export declare var ForbiddenException$: StaticErrorSchema;
49
- export declare var InternalServerErrorException$: StaticErrorSchema;
50
55
  export declare var LdapServerMetadataInput$: StaticStructureSchema;
51
56
  export declare var LdapServerMetadataOutput$: StaticStructureSchema;
52
57
  export declare var ListBrokersRequest$: StaticStructureSchema;
@@ -61,14 +66,12 @@ export declare var ListUsersRequest$: StaticStructureSchema;
61
66
  export declare var ListUsersResponse$: StaticStructureSchema;
62
67
  export declare var Logs$: StaticStructureSchema;
63
68
  export declare var LogsSummary$: StaticStructureSchema;
64
- export declare var NotFoundException$: StaticErrorSchema;
65
69
  export declare var PendingLogs$: StaticStructureSchema;
66
70
  export declare var PromoteRequest$: StaticStructureSchema;
67
71
  export declare var PromoteResponse$: StaticStructureSchema;
68
72
  export declare var RebootBrokerRequest$: StaticStructureSchema;
69
73
  export declare var RebootBrokerResponse$: StaticStructureSchema;
70
74
  export declare var SanitizationWarning$: StaticStructureSchema;
71
- export declare var UnauthorizedException$: StaticErrorSchema;
72
75
  export declare var UpdateBrokerRequest$: StaticStructureSchema;
73
76
  export declare var UpdateBrokerResponse$: StaticStructureSchema;
74
77
  export declare var UpdateConfigurationRequest$: StaticStructureSchema;
@@ -79,7 +82,6 @@ export declare var User$: StaticStructureSchema;
79
82
  export declare var UserPendingChanges$: StaticStructureSchema;
80
83
  export declare var UserSummary$: StaticStructureSchema;
81
84
  export declare var WeeklyStartTime$: StaticStructureSchema;
82
- export declare var MqServiceException$: StaticErrorSchema;
83
85
  export declare var CreateBroker$: StaticOperationSchema;
84
86
  export declare var CreateConfiguration$: StaticOperationSchema;
85
87
  export declare var CreateTags$: StaticOperationSchema;
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.987.0",
4
+ "version": "3.989.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 client-mq",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",