@aws-sdk/client-managedblockchain 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 { defaultManagedBlockchainHttpAuthSchemeProvider } 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: "2018-09-24",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.managedblockchain",
30
+ errorTypeRegistries,
29
31
  version: "2018-09-24",
30
32
  serviceTarget: "TaigaWebService",
31
33
  },
@@ -222,21 +222,83 @@ const _mR = "maxResults";
222
222
  const _n = "name";
223
223
  const _nT = "nextToken";
224
224
  const _nTe = "networkType";
225
- const _s = "server";
226
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.managedblockchain";
225
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.managedblockchain";
226
+ const _se = "server";
227
227
  const _st = "status";
228
228
  const _tK = "tagKeys";
229
229
  const n0 = "com.amazonaws.managedblockchain";
230
230
  import { TypeRegistry } from "@smithy/core/schema";
231
231
  import { AccessDeniedException, IllegalActionException, InternalServiceErrorException, InvalidRequestException, ResourceAlreadyExistsException, ResourceLimitExceededException, ResourceNotFoundException, ResourceNotReadyException, ThrottlingException, TooManyTagsException, } from "../models/errors";
232
232
  import { ManagedBlockchainServiceException } from "../models/ManagedBlockchainServiceException";
233
- var PasswordString = [0, n0, _PS, 8, 0];
233
+ const _s_registry = TypeRegistry.for(_s);
234
+ export var ManagedBlockchainServiceException$ = [-3, _s, "ManagedBlockchainServiceException", 0, [], []];
235
+ _s_registry.registerError(ManagedBlockchainServiceException$, ManagedBlockchainServiceException);
236
+ const n0_registry = TypeRegistry.for(n0);
234
237
  export var AccessDeniedException$ = [-3, n0, _ADE,
235
238
  { [_e]: _c, [_hE]: 403 },
236
239
  [_M],
237
240
  [0]
238
241
  ];
239
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
242
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
243
+ export var IllegalActionException$ = [-3, n0, _IAE,
244
+ { [_e]: _c, [_hE]: 400 },
245
+ [_M],
246
+ [0]
247
+ ];
248
+ n0_registry.registerError(IllegalActionException$, IllegalActionException);
249
+ export var InternalServiceErrorException$ = [-3, n0, _ISEE,
250
+ { [_e]: _se, [_hE]: 500 },
251
+ [],
252
+ []
253
+ ];
254
+ n0_registry.registerError(InternalServiceErrorException$, InternalServiceErrorException);
255
+ export var InvalidRequestException$ = [-3, n0, _IRE,
256
+ { [_e]: _c, [_hE]: 400 },
257
+ [_M],
258
+ [0]
259
+ ];
260
+ n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
261
+ export var ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
262
+ { [_e]: _c, [_hE]: 409 },
263
+ [_M],
264
+ [0]
265
+ ];
266
+ n0_registry.registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
267
+ export var ResourceLimitExceededException$ = [-3, n0, _RLEE,
268
+ { [_e]: _c, [_hE]: 429 },
269
+ [_M],
270
+ [0]
271
+ ];
272
+ n0_registry.registerError(ResourceLimitExceededException$, ResourceLimitExceededException);
273
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
274
+ { [_e]: _c, [_hE]: 404 },
275
+ [_M, _RN],
276
+ [0, 0]
277
+ ];
278
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
279
+ export var ResourceNotReadyException$ = [-3, n0, _RNRE,
280
+ { [_e]: _c, [_hE]: 409 },
281
+ [_M],
282
+ [0]
283
+ ];
284
+ n0_registry.registerError(ResourceNotReadyException$, ResourceNotReadyException);
285
+ export var ThrottlingException$ = [-3, n0, _TE,
286
+ { [_e]: _c, [_hE]: 429 },
287
+ [],
288
+ []
289
+ ];
290
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
291
+ export var TooManyTagsException$ = [-3, n0, _TMTE,
292
+ { [_e]: _c, [_hE]: 400 },
293
+ [_M, _RN],
294
+ [0, 0]
295
+ ];
296
+ n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
297
+ export const errorTypeRegistries = [
298
+ _s_registry,
299
+ n0_registry,
300
+ ];
301
+ var PasswordString = [0, n0, _PS, 8, 0];
240
302
  export var Accessor$ = [3, n0, _A,
241
303
  0,
242
304
  [_I, _T, _BT, _S, _CD, _Ar, _Ta, _NT],
@@ -382,24 +444,6 @@ export var GetProposalOutput$ = [3, n0, _GPO,
382
444
  [_P],
383
445
  [() => Proposal$]
384
446
  ];
385
- export var IllegalActionException$ = [-3, n0, _IAE,
386
- { [_e]: _c, [_hE]: 400 },
387
- [_M],
388
- [0]
389
- ];
390
- TypeRegistry.for(n0).registerError(IllegalActionException$, IllegalActionException);
391
- export var InternalServiceErrorException$ = [-3, n0, _ISEE,
392
- { [_e]: _s, [_hE]: 500 },
393
- [],
394
- []
395
- ];
396
- TypeRegistry.for(n0).registerError(InternalServiceErrorException$, InternalServiceErrorException);
397
- export var InvalidRequestException$ = [-3, n0, _IRE,
398
- { [_e]: _c, [_hE]: 400 },
399
- [_M],
400
- [0]
401
- ];
402
- TypeRegistry.for(n0).registerError(InvalidRequestException$, InvalidRequestException);
403
447
  export var Invitation$ = [3, n0, _In,
404
448
  0,
405
449
  [_II, _CD, _ED, _S, _NS, _Ar],
@@ -650,30 +694,6 @@ export var RemoveAction$ = [3, n0, _RAe,
650
694
  [_MI],
651
695
  [0], 1
652
696
  ];
653
- export var ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
654
- { [_e]: _c, [_hE]: 409 },
655
- [_M],
656
- [0]
657
- ];
658
- TypeRegistry.for(n0).registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
659
- export var ResourceLimitExceededException$ = [-3, n0, _RLEE,
660
- { [_e]: _c, [_hE]: 429 },
661
- [_M],
662
- [0]
663
- ];
664
- TypeRegistry.for(n0).registerError(ResourceLimitExceededException$, ResourceLimitExceededException);
665
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
666
- { [_e]: _c, [_hE]: 404 },
667
- [_M, _RN],
668
- [0, 0]
669
- ];
670
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
671
- export var ResourceNotReadyException$ = [-3, n0, _RNRE,
672
- { [_e]: _c, [_hE]: 409 },
673
- [_M],
674
- [0]
675
- ];
676
- TypeRegistry.for(n0).registerError(ResourceNotReadyException$, ResourceNotReadyException);
677
697
  export var TagResourceRequest$ = [3, n0, _TRR,
678
698
  0,
679
699
  [_RA, _Ta],
@@ -684,18 +704,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
684
704
  [],
685
705
  []
686
706
  ];
687
- export var ThrottlingException$ = [-3, n0, _TE,
688
- { [_e]: _c, [_hE]: 429 },
689
- [],
690
- []
691
- ];
692
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
693
- export var TooManyTagsException$ = [-3, n0, _TMTE,
694
- { [_e]: _c, [_hE]: 400 },
695
- [_M, _RN],
696
- [0, 0]
697
- ];
698
- TypeRegistry.for(n0).registerError(TooManyTagsException$, TooManyTagsException);
699
707
  export var UntagResourceRequest$ = [3, n0, _URR,
700
708
  0,
701
709
  [_RA, _TK],
@@ -746,8 +754,6 @@ export var VotingPolicy$ = [3, n0, _VP,
746
754
  [_ATP],
747
755
  [() => ApprovalThresholdPolicy$]
748
756
  ];
749
- export var ManagedBlockchainServiceException$ = [-3, _sm, "ManagedBlockchainServiceException", 0, [], []];
750
- TypeRegistry.for(_sm).registerError(ManagedBlockchainServiceException$, ManagedBlockchainServiceException);
751
757
  var AccessorSummaryList = [1, n0, _ASL,
752
758
  0, () => AccessorSummary$
753
759
  ];
@@ -1,5 +1,22 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var ManagedBlockchainServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var IllegalActionException$: StaticErrorSchema;
6
+ export declare var InternalServiceErrorException$: StaticErrorSchema;
7
+ export declare var InvalidRequestException$: StaticErrorSchema;
8
+ export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
9
+ export declare var ResourceLimitExceededException$: StaticErrorSchema;
10
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
11
+ export declare var ResourceNotReadyException$: StaticErrorSchema;
12
+ export declare var ThrottlingException$: StaticErrorSchema;
13
+ export declare var TooManyTagsException$: StaticErrorSchema;
14
+ /**
15
+ * TypeRegistry instances containing modeled errors.
16
+ * @internal
17
+ *
18
+ */
19
+ export declare const errorTypeRegistries: TypeRegistry[];
3
20
  export declare var Accessor$: StaticStructureSchema;
4
21
  export declare var AccessorSummary$: StaticStructureSchema;
5
22
  export declare var ApprovalThresholdPolicy$: StaticStructureSchema;
@@ -29,9 +46,6 @@ export declare var GetNodeInput$: StaticStructureSchema;
29
46
  export declare var GetNodeOutput$: StaticStructureSchema;
30
47
  export declare var GetProposalInput$: StaticStructureSchema;
31
48
  export declare var GetProposalOutput$: StaticStructureSchema;
32
- export declare var IllegalActionException$: StaticErrorSchema;
33
- export declare var InternalServiceErrorException$: StaticErrorSchema;
34
- export declare var InvalidRequestException$: StaticErrorSchema;
35
49
  export declare var Invitation$: StaticStructureSchema;
36
50
  export declare var InviteAction$: StaticStructureSchema;
37
51
  export declare var ListAccessorsInput$: StaticStructureSchema;
@@ -82,14 +96,8 @@ export declare var ProposalSummary$: StaticStructureSchema;
82
96
  export declare var RejectInvitationInput$: StaticStructureSchema;
83
97
  export declare var RejectInvitationOutput$: StaticStructureSchema;
84
98
  export declare var RemoveAction$: StaticStructureSchema;
85
- export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
86
- export declare var ResourceLimitExceededException$: StaticErrorSchema;
87
- export declare var ResourceNotFoundException$: StaticErrorSchema;
88
- export declare var ResourceNotReadyException$: StaticErrorSchema;
89
99
  export declare var TagResourceRequest$: StaticStructureSchema;
90
100
  export declare var TagResourceResponse$: StaticStructureSchema;
91
- export declare var ThrottlingException$: StaticErrorSchema;
92
- export declare var TooManyTagsException$: StaticErrorSchema;
93
101
  export declare var UntagResourceRequest$: StaticStructureSchema;
94
102
  export declare var UntagResourceResponse$: StaticStructureSchema;
95
103
  export declare var UpdateMemberInput$: StaticStructureSchema;
@@ -100,7 +108,6 @@ export declare var VoteOnProposalInput$: StaticStructureSchema;
100
108
  export declare var VoteOnProposalOutput$: StaticStructureSchema;
101
109
  export declare var VoteSummary$: StaticStructureSchema;
102
110
  export declare var VotingPolicy$: StaticStructureSchema;
103
- export declare var ManagedBlockchainServiceException$: StaticErrorSchema;
104
111
  export declare var CreateAccessor$: StaticOperationSchema;
105
112
  export declare var CreateMember$: StaticOperationSchema;
106
113
  export declare var CreateNetwork$: StaticOperationSchema;
@@ -1,9 +1,21 @@
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 ManagedBlockchainServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var IllegalActionException$: StaticErrorSchema;
10
+ export declare var InternalServiceErrorException$: StaticErrorSchema;
11
+ export declare var InvalidRequestException$: StaticErrorSchema;
12
+ export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
13
+ export declare var ResourceLimitExceededException$: StaticErrorSchema;
14
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
15
+ export declare var ResourceNotReadyException$: StaticErrorSchema;
16
+ export declare var ThrottlingException$: StaticErrorSchema;
17
+ export declare var TooManyTagsException$: StaticErrorSchema;
18
+ export declare const errorTypeRegistries: TypeRegistry[];
7
19
  export declare var Accessor$: StaticStructureSchema;
8
20
  export declare var AccessorSummary$: StaticStructureSchema;
9
21
  export declare var ApprovalThresholdPolicy$: StaticStructureSchema;
@@ -33,9 +45,6 @@ export declare var GetNodeInput$: StaticStructureSchema;
33
45
  export declare var GetNodeOutput$: StaticStructureSchema;
34
46
  export declare var GetProposalInput$: StaticStructureSchema;
35
47
  export declare var GetProposalOutput$: StaticStructureSchema;
36
- export declare var IllegalActionException$: StaticErrorSchema;
37
- export declare var InternalServiceErrorException$: StaticErrorSchema;
38
- export declare var InvalidRequestException$: StaticErrorSchema;
39
48
  export declare var Invitation$: StaticStructureSchema;
40
49
  export declare var InviteAction$: StaticStructureSchema;
41
50
  export declare var ListAccessorsInput$: StaticStructureSchema;
@@ -86,14 +95,8 @@ export declare var ProposalSummary$: StaticStructureSchema;
86
95
  export declare var RejectInvitationInput$: StaticStructureSchema;
87
96
  export declare var RejectInvitationOutput$: StaticStructureSchema;
88
97
  export declare var RemoveAction$: StaticStructureSchema;
89
- export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
90
- export declare var ResourceLimitExceededException$: StaticErrorSchema;
91
- export declare var ResourceNotFoundException$: StaticErrorSchema;
92
- export declare var ResourceNotReadyException$: StaticErrorSchema;
93
98
  export declare var TagResourceRequest$: StaticStructureSchema;
94
99
  export declare var TagResourceResponse$: StaticStructureSchema;
95
- export declare var ThrottlingException$: StaticErrorSchema;
96
- export declare var TooManyTagsException$: StaticErrorSchema;
97
100
  export declare var UntagResourceRequest$: StaticStructureSchema;
98
101
  export declare var UntagResourceResponse$: StaticStructureSchema;
99
102
  export declare var UpdateMemberInput$: StaticStructureSchema;
@@ -104,7 +107,6 @@ export declare var VoteOnProposalInput$: StaticStructureSchema;
104
107
  export declare var VoteOnProposalOutput$: StaticStructureSchema;
105
108
  export declare var VoteSummary$: StaticStructureSchema;
106
109
  export declare var VotingPolicy$: StaticStructureSchema;
107
- export declare var ManagedBlockchainServiceException$: StaticErrorSchema;
108
110
  export declare var CreateAccessor$: StaticOperationSchema;
109
111
  export declare var CreateMember$: StaticOperationSchema;
110
112
  export declare var CreateNetwork$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-managedblockchain",
3
3
  "description": "AWS SDK for JavaScript Managedblockchain 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-managedblockchain",
@@ -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",