@aws-sdk/client-managedblockchain 3.190.0 → 3.192.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 (165) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +8 -8
  3. package/dist-cjs/ManagedBlockchain.js +60 -0
  4. package/dist-cjs/ManagedBlockchainClient.js +11 -8
  5. package/dist-cjs/commands/CreateAccessorCommand.js +46 -0
  6. package/dist-cjs/commands/CreateMemberCommand.js +10 -0
  7. package/dist-cjs/commands/CreateNetworkCommand.js +10 -0
  8. package/dist-cjs/commands/CreateNodeCommand.js +10 -0
  9. package/dist-cjs/commands/CreateProposalCommand.js +10 -0
  10. package/dist-cjs/commands/DeleteAccessorCommand.js +46 -0
  11. package/dist-cjs/commands/DeleteMemberCommand.js +10 -0
  12. package/dist-cjs/commands/DeleteNodeCommand.js +10 -0
  13. package/dist-cjs/commands/GetAccessorCommand.js +46 -0
  14. package/dist-cjs/commands/GetMemberCommand.js +10 -0
  15. package/dist-cjs/commands/GetNetworkCommand.js +10 -0
  16. package/dist-cjs/commands/GetNodeCommand.js +10 -0
  17. package/dist-cjs/commands/GetProposalCommand.js +10 -0
  18. package/dist-cjs/commands/ListAccessorsCommand.js +46 -0
  19. package/dist-cjs/commands/ListInvitationsCommand.js +10 -0
  20. package/dist-cjs/commands/ListMembersCommand.js +10 -0
  21. package/dist-cjs/commands/ListNetworksCommand.js +10 -0
  22. package/dist-cjs/commands/ListNodesCommand.js +10 -0
  23. package/dist-cjs/commands/ListProposalVotesCommand.js +10 -0
  24. package/dist-cjs/commands/ListProposalsCommand.js +10 -0
  25. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  26. package/dist-cjs/commands/RejectInvitationCommand.js +10 -0
  27. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  28. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  29. package/dist-cjs/commands/UpdateMemberCommand.js +10 -0
  30. package/dist-cjs/commands/UpdateNodeCommand.js +10 -0
  31. package/dist-cjs/commands/VoteOnProposalCommand.js +10 -0
  32. package/dist-cjs/commands/index.js +4 -0
  33. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  34. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  35. package/dist-cjs/endpoint/ruleset.js +318 -0
  36. package/dist-cjs/models/models_0.js +66 -16
  37. package/dist-cjs/pagination/ListAccessorsPaginator.js +36 -0
  38. package/dist-cjs/pagination/index.js +1 -0
  39. package/dist-cjs/protocols/Aws_restJson1.js +297 -1
  40. package/dist-cjs/runtimeConfig.shared.js +3 -3
  41. package/dist-es/ManagedBlockchain.js +60 -0
  42. package/dist-es/ManagedBlockchainClient.js +12 -9
  43. package/dist-es/commands/CreateAccessorCommand.js +42 -0
  44. package/dist-es/commands/CreateMemberCommand.js +10 -0
  45. package/dist-es/commands/CreateNetworkCommand.js +10 -0
  46. package/dist-es/commands/CreateNodeCommand.js +10 -0
  47. package/dist-es/commands/CreateProposalCommand.js +10 -0
  48. package/dist-es/commands/DeleteAccessorCommand.js +42 -0
  49. package/dist-es/commands/DeleteMemberCommand.js +10 -0
  50. package/dist-es/commands/DeleteNodeCommand.js +10 -0
  51. package/dist-es/commands/GetAccessorCommand.js +42 -0
  52. package/dist-es/commands/GetMemberCommand.js +10 -0
  53. package/dist-es/commands/GetNetworkCommand.js +10 -0
  54. package/dist-es/commands/GetNodeCommand.js +10 -0
  55. package/dist-es/commands/GetProposalCommand.js +10 -0
  56. package/dist-es/commands/ListAccessorsCommand.js +42 -0
  57. package/dist-es/commands/ListInvitationsCommand.js +10 -0
  58. package/dist-es/commands/ListMembersCommand.js +10 -0
  59. package/dist-es/commands/ListNetworksCommand.js +10 -0
  60. package/dist-es/commands/ListNodesCommand.js +10 -0
  61. package/dist-es/commands/ListProposalVotesCommand.js +10 -0
  62. package/dist-es/commands/ListProposalsCommand.js +10 -0
  63. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  64. package/dist-es/commands/RejectInvitationCommand.js +10 -0
  65. package/dist-es/commands/TagResourceCommand.js +10 -0
  66. package/dist-es/commands/UntagResourceCommand.js +10 -0
  67. package/dist-es/commands/UpdateMemberCommand.js +10 -0
  68. package/dist-es/commands/UpdateNodeCommand.js +10 -0
  69. package/dist-es/commands/VoteOnProposalCommand.js +10 -0
  70. package/dist-es/commands/index.js +4 -0
  71. package/dist-es/endpoint/EndpointParameters.js +8 -0
  72. package/dist-es/endpoint/endpointResolver.js +8 -0
  73. package/dist-es/endpoint/ruleset.js +315 -0
  74. package/dist-es/models/models_0.js +52 -12
  75. package/dist-es/pagination/ListAccessorsPaginator.js +32 -0
  76. package/dist-es/pagination/index.js +1 -0
  77. package/dist-es/protocols/Aws_restJson1.js +286 -0
  78. package/dist-es/runtimeConfig.shared.js +2 -2
  79. package/dist-types/ManagedBlockchain.d.ts +64 -7
  80. package/dist-types/ManagedBlockchainClient.d.ts +13 -12
  81. package/dist-types/commands/CreateAccessorCommand.d.ts +43 -0
  82. package/dist-types/commands/CreateMemberCommand.d.ts +2 -0
  83. package/dist-types/commands/CreateNetworkCommand.d.ts +2 -0
  84. package/dist-types/commands/CreateNodeCommand.d.ts +2 -0
  85. package/dist-types/commands/CreateProposalCommand.d.ts +2 -0
  86. package/dist-types/commands/DeleteAccessorCommand.d.ts +48 -0
  87. package/dist-types/commands/DeleteMemberCommand.d.ts +3 -1
  88. package/dist-types/commands/DeleteNodeCommand.d.ts +3 -1
  89. package/dist-types/commands/GetAccessorCommand.d.ts +43 -0
  90. package/dist-types/commands/GetMemberCommand.d.ts +2 -0
  91. package/dist-types/commands/GetNetworkCommand.d.ts +2 -0
  92. package/dist-types/commands/GetNodeCommand.d.ts +2 -0
  93. package/dist-types/commands/GetProposalCommand.d.ts +2 -0
  94. package/dist-types/commands/ListAccessorsCommand.d.ts +43 -0
  95. package/dist-types/commands/ListInvitationsCommand.d.ts +3 -1
  96. package/dist-types/commands/ListMembersCommand.d.ts +2 -0
  97. package/dist-types/commands/ListNetworksCommand.d.ts +3 -1
  98. package/dist-types/commands/ListNodesCommand.d.ts +2 -0
  99. package/dist-types/commands/ListProposalVotesCommand.d.ts +2 -0
  100. package/dist-types/commands/ListProposalsCommand.d.ts +2 -0
  101. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  102. package/dist-types/commands/RejectInvitationCommand.d.ts +3 -1
  103. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  104. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  105. package/dist-types/commands/UpdateMemberCommand.d.ts +2 -0
  106. package/dist-types/commands/UpdateNodeCommand.d.ts +2 -0
  107. package/dist-types/commands/VoteOnProposalCommand.d.ts +3 -1
  108. package/dist-types/commands/index.d.ts +4 -0
  109. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  110. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  111. package/dist-types/endpoint/ruleset.d.ts +2 -0
  112. package/dist-types/models/models_0.d.ts +325 -119
  113. package/dist-types/pagination/ListAccessorsPaginator.d.ts +4 -0
  114. package/dist-types/pagination/index.d.ts +1 -0
  115. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  116. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  117. package/dist-types/runtimeConfig.d.ts +4 -2
  118. package/dist-types/runtimeConfig.native.d.ts +4 -2
  119. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  120. package/dist-types/ts3.4/ManagedBlockchain.d.ts +68 -0
  121. package/dist-types/ts3.4/ManagedBlockchainClient.d.ts +39 -8
  122. package/dist-types/ts3.4/commands/CreateAccessorCommand.d.ts +34 -0
  123. package/dist-types/ts3.4/commands/CreateMemberCommand.d.ts +2 -0
  124. package/dist-types/ts3.4/commands/CreateNetworkCommand.d.ts +2 -0
  125. package/dist-types/ts3.4/commands/CreateNodeCommand.d.ts +2 -0
  126. package/dist-types/ts3.4/commands/CreateProposalCommand.d.ts +2 -0
  127. package/dist-types/ts3.4/commands/DeleteAccessorCommand.d.ts +34 -0
  128. package/dist-types/ts3.4/commands/DeleteMemberCommand.d.ts +2 -0
  129. package/dist-types/ts3.4/commands/DeleteNodeCommand.d.ts +2 -0
  130. package/dist-types/ts3.4/commands/GetAccessorCommand.d.ts +34 -0
  131. package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +2 -0
  132. package/dist-types/ts3.4/commands/GetNetworkCommand.d.ts +2 -0
  133. package/dist-types/ts3.4/commands/GetNodeCommand.d.ts +2 -0
  134. package/dist-types/ts3.4/commands/GetProposalCommand.d.ts +2 -0
  135. package/dist-types/ts3.4/commands/ListAccessorsCommand.d.ts +34 -0
  136. package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +2 -0
  137. package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +2 -0
  138. package/dist-types/ts3.4/commands/ListNetworksCommand.d.ts +2 -0
  139. package/dist-types/ts3.4/commands/ListNodesCommand.d.ts +2 -0
  140. package/dist-types/ts3.4/commands/ListProposalVotesCommand.d.ts +2 -0
  141. package/dist-types/ts3.4/commands/ListProposalsCommand.d.ts +2 -0
  142. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  143. package/dist-types/ts3.4/commands/RejectInvitationCommand.d.ts +2 -0
  144. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  145. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  146. package/dist-types/ts3.4/commands/UpdateMemberCommand.d.ts +2 -0
  147. package/dist-types/ts3.4/commands/UpdateNodeCommand.d.ts +2 -0
  148. package/dist-types/ts3.4/commands/VoteOnProposalCommand.d.ts +2 -0
  149. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  150. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  151. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  152. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  153. package/dist-types/ts3.4/models/models_0.d.ts +115 -38
  154. package/dist-types/ts3.4/pagination/ListAccessorsPaginator.d.ts +11 -0
  155. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  156. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  157. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  158. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  159. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  160. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  161. package/package.json +4 -3
  162. package/dist-cjs/endpoints.js +0 -132
  163. package/dist-es/endpoints.js +0 -128
  164. package/dist-types/endpoints.d.ts +0 -2
  165. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -3,6 +3,27 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { ManagedBlockchainServiceException as __BaseException } from "../models/ManagedBlockchainServiceException";
5
5
  import { AccessDeniedException, IllegalActionException, InternalServiceErrorException, InvalidRequestException, ResourceAlreadyExistsException, ResourceLimitExceededException, ResourceNotFoundException, ResourceNotReadyException, ThrottlingException, TooManyTagsException, } from "../models/models_0";
6
+ export const serializeAws_restJson1CreateAccessorCommand = async (input, context) => {
7
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
+ const headers = {
9
+ "content-type": "application/json",
10
+ };
11
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accessors";
12
+ let body;
13
+ body = JSON.stringify({
14
+ ...(input.AccessorType != null && { AccessorType: input.AccessorType }),
15
+ ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
16
+ });
17
+ return new __HttpRequest({
18
+ protocol,
19
+ hostname,
20
+ port,
21
+ method: "POST",
22
+ headers,
23
+ path: resolvedPath,
24
+ body,
25
+ });
26
+ };
6
27
  export const serializeAws_restJson1CreateMemberCommand = async (input, context) => {
7
28
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
8
29
  const headers = {
@@ -113,6 +134,22 @@ export const serializeAws_restJson1CreateProposalCommand = async (input, context
113
134
  body,
114
135
  });
115
136
  };
137
+ export const serializeAws_restJson1DeleteAccessorCommand = async (input, context) => {
138
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
139
+ const headers = {};
140
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accessors/{AccessorId}";
141
+ resolvedPath = __resolvedPath(resolvedPath, input, "AccessorId", () => input.AccessorId, "{AccessorId}", false);
142
+ let body;
143
+ return new __HttpRequest({
144
+ protocol,
145
+ hostname,
146
+ port,
147
+ method: "DELETE",
148
+ headers,
149
+ path: resolvedPath,
150
+ body,
151
+ });
152
+ };
116
153
  export const serializeAws_restJson1DeleteMemberCommand = async (input, context) => {
117
154
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
118
155
  const headers = {};
@@ -151,6 +188,22 @@ export const serializeAws_restJson1DeleteNodeCommand = async (input, context) =>
151
188
  body,
152
189
  });
153
190
  };
191
+ export const serializeAws_restJson1GetAccessorCommand = async (input, context) => {
192
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
193
+ const headers = {};
194
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accessors/{AccessorId}";
195
+ resolvedPath = __resolvedPath(resolvedPath, input, "AccessorId", () => input.AccessorId, "{AccessorId}", false);
196
+ let body;
197
+ return new __HttpRequest({
198
+ protocol,
199
+ hostname,
200
+ port,
201
+ method: "GET",
202
+ headers,
203
+ path: resolvedPath,
204
+ body,
205
+ });
206
+ };
154
207
  export const serializeAws_restJson1GetMemberCommand = async (input, context) => {
155
208
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
156
209
  const headers = {};
@@ -223,6 +276,26 @@ export const serializeAws_restJson1GetProposalCommand = async (input, context) =
223
276
  body,
224
277
  });
225
278
  };
279
+ export const serializeAws_restJson1ListAccessorsCommand = async (input, context) => {
280
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
281
+ const headers = {};
282
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/accessors";
283
+ const query = map({
284
+ maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
285
+ nextToken: [, input.NextToken],
286
+ });
287
+ let body;
288
+ return new __HttpRequest({
289
+ protocol,
290
+ hostname,
291
+ port,
292
+ method: "GET",
293
+ headers,
294
+ path: resolvedPath,
295
+ query,
296
+ body,
297
+ });
298
+ };
226
299
  export const serializeAws_restJson1ListInvitationsCommand = async (input, context) => {
227
300
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
228
301
  const headers = {};
@@ -503,6 +576,57 @@ export const serializeAws_restJson1VoteOnProposalCommand = async (input, context
503
576
  body,
504
577
  });
505
578
  };
579
+ export const deserializeAws_restJson1CreateAccessorCommand = async (output, context) => {
580
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
581
+ return deserializeAws_restJson1CreateAccessorCommandError(output, context);
582
+ }
583
+ const contents = map({
584
+ $metadata: deserializeMetadata(output),
585
+ });
586
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
587
+ if (data.AccessorId != null) {
588
+ contents.AccessorId = __expectString(data.AccessorId);
589
+ }
590
+ if (data.BillingToken != null) {
591
+ contents.BillingToken = __expectString(data.BillingToken);
592
+ }
593
+ return contents;
594
+ };
595
+ const deserializeAws_restJson1CreateAccessorCommandError = async (output, context) => {
596
+ const parsedOutput = {
597
+ ...output,
598
+ body: await parseErrorBody(output.body, context),
599
+ };
600
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
601
+ switch (errorCode) {
602
+ case "AccessDeniedException":
603
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
604
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
605
+ case "InternalServiceErrorException":
606
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
607
+ throw await deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context);
608
+ case "InvalidRequestException":
609
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
610
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
611
+ case "ResourceAlreadyExistsException":
612
+ case "com.amazonaws.managedblockchain#ResourceAlreadyExistsException":
613
+ throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
614
+ case "ResourceLimitExceededException":
615
+ case "com.amazonaws.managedblockchain#ResourceLimitExceededException":
616
+ throw await deserializeAws_restJson1ResourceLimitExceededExceptionResponse(parsedOutput, context);
617
+ case "ThrottlingException":
618
+ case "com.amazonaws.managedblockchain#ThrottlingException":
619
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
620
+ default:
621
+ const parsedBody = parsedOutput.body;
622
+ throwDefaultError({
623
+ output,
624
+ parsedBody,
625
+ exceptionCtor: __BaseException,
626
+ errorCode,
627
+ });
628
+ }
629
+ };
506
630
  export const deserializeAws_restJson1CreateMemberCommand = async (output, context) => {
507
631
  if (output.statusCode !== 200 && output.statusCode >= 300) {
508
632
  return deserializeAws_restJson1CreateMemberCommandError(output, context);
@@ -722,6 +846,48 @@ const deserializeAws_restJson1CreateProposalCommandError = async (output, contex
722
846
  });
723
847
  }
724
848
  };
849
+ export const deserializeAws_restJson1DeleteAccessorCommand = async (output, context) => {
850
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
851
+ return deserializeAws_restJson1DeleteAccessorCommandError(output, context);
852
+ }
853
+ const contents = map({
854
+ $metadata: deserializeMetadata(output),
855
+ });
856
+ await collectBody(output.body, context);
857
+ return contents;
858
+ };
859
+ const deserializeAws_restJson1DeleteAccessorCommandError = async (output, context) => {
860
+ const parsedOutput = {
861
+ ...output,
862
+ body: await parseErrorBody(output.body, context),
863
+ };
864
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
865
+ switch (errorCode) {
866
+ case "AccessDeniedException":
867
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
868
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
869
+ case "InternalServiceErrorException":
870
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
871
+ throw await deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context);
872
+ case "InvalidRequestException":
873
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
874
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
875
+ case "ResourceNotFoundException":
876
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
877
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
878
+ case "ThrottlingException":
879
+ case "com.amazonaws.managedblockchain#ThrottlingException":
880
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
881
+ default:
882
+ const parsedBody = parsedOutput.body;
883
+ throwDefaultError({
884
+ output,
885
+ parsedBody,
886
+ exceptionCtor: __BaseException,
887
+ errorCode,
888
+ });
889
+ }
890
+ };
725
891
  export const deserializeAws_restJson1DeleteMemberCommand = async (output, context) => {
726
892
  if (output.statusCode !== 200 && output.statusCode >= 300) {
727
893
  return deserializeAws_restJson1DeleteMemberCommandError(output, context);
@@ -812,6 +978,51 @@ const deserializeAws_restJson1DeleteNodeCommandError = async (output, context) =
812
978
  });
813
979
  }
814
980
  };
981
+ export const deserializeAws_restJson1GetAccessorCommand = async (output, context) => {
982
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
983
+ return deserializeAws_restJson1GetAccessorCommandError(output, context);
984
+ }
985
+ const contents = map({
986
+ $metadata: deserializeMetadata(output),
987
+ });
988
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
989
+ if (data.Accessor != null) {
990
+ contents.Accessor = deserializeAws_restJson1Accessor(data.Accessor, context);
991
+ }
992
+ return contents;
993
+ };
994
+ const deserializeAws_restJson1GetAccessorCommandError = async (output, context) => {
995
+ const parsedOutput = {
996
+ ...output,
997
+ body: await parseErrorBody(output.body, context),
998
+ };
999
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1000
+ switch (errorCode) {
1001
+ case "AccessDeniedException":
1002
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1003
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1004
+ case "InternalServiceErrorException":
1005
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1006
+ throw await deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context);
1007
+ case "InvalidRequestException":
1008
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1009
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
1010
+ case "ResourceNotFoundException":
1011
+ case "com.amazonaws.managedblockchain#ResourceNotFoundException":
1012
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1013
+ case "ThrottlingException":
1014
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1015
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1016
+ default:
1017
+ const parsedBody = parsedOutput.body;
1018
+ throwDefaultError({
1019
+ output,
1020
+ parsedBody,
1021
+ exceptionCtor: __BaseException,
1022
+ errorCode,
1023
+ });
1024
+ }
1025
+ };
815
1026
  export const deserializeAws_restJson1GetMemberCommand = async (output, context) => {
816
1027
  if (output.statusCode !== 200 && output.statusCode >= 300) {
817
1028
  return deserializeAws_restJson1GetMemberCommandError(output, context);
@@ -992,6 +1203,51 @@ const deserializeAws_restJson1GetProposalCommandError = async (output, context)
992
1203
  });
993
1204
  }
994
1205
  };
1206
+ export const deserializeAws_restJson1ListAccessorsCommand = async (output, context) => {
1207
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1208
+ return deserializeAws_restJson1ListAccessorsCommandError(output, context);
1209
+ }
1210
+ const contents = map({
1211
+ $metadata: deserializeMetadata(output),
1212
+ });
1213
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1214
+ if (data.Accessors != null) {
1215
+ contents.Accessors = deserializeAws_restJson1AccessorSummaryList(data.Accessors, context);
1216
+ }
1217
+ if (data.NextToken != null) {
1218
+ contents.NextToken = __expectString(data.NextToken);
1219
+ }
1220
+ return contents;
1221
+ };
1222
+ const deserializeAws_restJson1ListAccessorsCommandError = async (output, context) => {
1223
+ const parsedOutput = {
1224
+ ...output,
1225
+ body: await parseErrorBody(output.body, context),
1226
+ };
1227
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1228
+ switch (errorCode) {
1229
+ case "AccessDeniedException":
1230
+ case "com.amazonaws.managedblockchain#AccessDeniedException":
1231
+ throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
1232
+ case "InternalServiceErrorException":
1233
+ case "com.amazonaws.managedblockchain#InternalServiceErrorException":
1234
+ throw await deserializeAws_restJson1InternalServiceErrorExceptionResponse(parsedOutput, context);
1235
+ case "InvalidRequestException":
1236
+ case "com.amazonaws.managedblockchain#InvalidRequestException":
1237
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
1238
+ case "ThrottlingException":
1239
+ case "com.amazonaws.managedblockchain#ThrottlingException":
1240
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
1241
+ default:
1242
+ const parsedBody = parsedOutput.body;
1243
+ throwDefaultError({
1244
+ output,
1245
+ parsedBody,
1246
+ exceptionCtor: __BaseException,
1247
+ errorCode,
1248
+ });
1249
+ }
1250
+ };
995
1251
  export const deserializeAws_restJson1ListInvitationsCommand = async (output, context) => {
996
1252
  if (output.statusCode !== 200 && output.statusCode >= 300) {
997
1253
  return deserializeAws_restJson1ListInvitationsCommandError(output, context);
@@ -1828,6 +2084,36 @@ const serializeAws_restJson1VotingPolicy = (input, context) => {
1828
2084
  }),
1829
2085
  };
1830
2086
  };
2087
+ const deserializeAws_restJson1Accessor = (output, context) => {
2088
+ return {
2089
+ Arn: __expectString(output.Arn),
2090
+ BillingToken: __expectString(output.BillingToken),
2091
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
2092
+ Id: __expectString(output.Id),
2093
+ Status: __expectString(output.Status),
2094
+ Type: __expectString(output.Type),
2095
+ };
2096
+ };
2097
+ const deserializeAws_restJson1AccessorSummary = (output, context) => {
2098
+ return {
2099
+ Arn: __expectString(output.Arn),
2100
+ CreationDate: output.CreationDate != null ? __expectNonNull(__parseRfc3339DateTime(output.CreationDate)) : undefined,
2101
+ Id: __expectString(output.Id),
2102
+ Status: __expectString(output.Status),
2103
+ Type: __expectString(output.Type),
2104
+ };
2105
+ };
2106
+ const deserializeAws_restJson1AccessorSummaryList = (output, context) => {
2107
+ const retVal = (output || [])
2108
+ .filter((e) => e != null)
2109
+ .map((entry) => {
2110
+ if (entry === null) {
2111
+ return null;
2112
+ }
2113
+ return deserializeAws_restJson1AccessorSummary(entry, context);
2114
+ });
2115
+ return retVal;
2116
+ };
1831
2117
  const deserializeAws_restJson1ApprovalThresholdPolicy = (output, context) => {
1832
2118
  return {
1833
2119
  ProposalDurationInHours: __expectInt32(output.ProposalDurationInHours),
@@ -1,10 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
- import { defaultRegionInfoProvider } from "./endpoints";
2
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
3
3
  export const getRuntimeConfig = (config) => ({
4
4
  apiVersion: "2018-09-24",
5
5
  disableHostPrefix: config?.disableHostPrefix ?? false,
6
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
6
7
  logger: config?.logger ?? {},
7
- regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
8
  serviceId: config?.serviceId ?? "ManagedBlockchain",
9
9
  urlParser: config?.urlParser ?? parseUrl,
10
10
  });
@@ -1,14 +1,18 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { CreateAccessorCommandInput, CreateAccessorCommandOutput } from "./commands/CreateAccessorCommand";
2
3
  import { CreateMemberCommandInput, CreateMemberCommandOutput } from "./commands/CreateMemberCommand";
3
4
  import { CreateNetworkCommandInput, CreateNetworkCommandOutput } from "./commands/CreateNetworkCommand";
4
5
  import { CreateNodeCommandInput, CreateNodeCommandOutput } from "./commands/CreateNodeCommand";
5
6
  import { CreateProposalCommandInput, CreateProposalCommandOutput } from "./commands/CreateProposalCommand";
7
+ import { DeleteAccessorCommandInput, DeleteAccessorCommandOutput } from "./commands/DeleteAccessorCommand";
6
8
  import { DeleteMemberCommandInput, DeleteMemberCommandOutput } from "./commands/DeleteMemberCommand";
7
9
  import { DeleteNodeCommandInput, DeleteNodeCommandOutput } from "./commands/DeleteNodeCommand";
10
+ import { GetAccessorCommandInput, GetAccessorCommandOutput } from "./commands/GetAccessorCommand";
8
11
  import { GetMemberCommandInput, GetMemberCommandOutput } from "./commands/GetMemberCommand";
9
12
  import { GetNetworkCommandInput, GetNetworkCommandOutput } from "./commands/GetNetworkCommand";
10
13
  import { GetNodeCommandInput, GetNodeCommandOutput } from "./commands/GetNodeCommand";
11
14
  import { GetProposalCommandInput, GetProposalCommandOutput } from "./commands/GetProposalCommand";
15
+ import { ListAccessorsCommandInput, ListAccessorsCommandOutput } from "./commands/ListAccessorsCommand";
12
16
  import { ListInvitationsCommandInput, ListInvitationsCommandOutput } from "./commands/ListInvitationsCommand";
13
17
  import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/ListMembersCommand";
14
18
  import { ListNetworksCommandInput, ListNetworksCommandOutput } from "./commands/ListNetworksCommand";
@@ -26,10 +30,22 @@ import { ManagedBlockchainClient } from "./ManagedBlockchainClient";
26
30
  /**
27
31
  * <p></p>
28
32
  * <p>Amazon Managed Blockchain is a fully managed service for creating and managing blockchain networks using open-source frameworks. Blockchain allows you to build applications where multiple parties can securely and transparently run transactions and share data without the need for a trusted, central authority.</p>
29
- * <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> do not apply to Ethereum.</p>
33
+ * <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> don't apply to Ethereum.</p>
30
34
  * <p>The description for each action indicates the framework or frameworks to which it applies. Data types and properties that apply only in the context of a particular framework are similarly indicated.</p>
31
35
  */
32
36
  export declare class ManagedBlockchain extends ManagedBlockchainClient {
37
+ /**
38
+ * <important>
39
+ * <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
40
+ * subject to change. We recommend that you use this feature only with
41
+ * test scenarios, and not in production environments.</p>
42
+ * </important>
43
+ * <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor object is a container that has the information
44
+ * required for token based access to your Ethereum nodes.</p>
45
+ */
46
+ createAccessor(args: CreateAccessorCommandInput, options?: __HttpHandlerOptions): Promise<CreateAccessorCommandOutput>;
47
+ createAccessor(args: CreateAccessorCommandInput, cb: (err: any, data?: CreateAccessorCommandOutput) => void): void;
48
+ createAccessor(args: CreateAccessorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAccessorCommandOutput) => void): void;
33
49
  /**
34
50
  * <p>Creates a member within a Managed Blockchain network.</p>
35
51
  * <p>Applies only to Hyperledger Fabric.</p>
@@ -59,19 +75,48 @@ export declare class ManagedBlockchain extends ManagedBlockchainClient {
59
75
  createProposal(args: CreateProposalCommandInput, cb: (err: any, data?: CreateProposalCommandOutput) => void): void;
60
76
  createProposal(args: CreateProposalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateProposalCommandOutput) => void): void;
61
77
  /**
62
- * <p>Deletes a member. Deleting a member removes the member and all associated resources from the network. <code>DeleteMember</code> can only be called for a specified <code>MemberId</code> if the principal performing the action is associated with the AWS account that owns the member. In all other cases, the <code>DeleteMember</code> action is carried out as the result of an approved proposal to remove a member. If <code>MemberId</code> is the last member in a network specified by the last AWS account, the network is deleted also.</p>
78
+ * <important>
79
+ * <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
80
+ * subject to change. We recommend that you use this feature only with
81
+ * test scenarios, and not in production environments.</p>
82
+ * </important>
83
+ * <p>Deletes an accessor that your Amazon Web Services account owns. An accessor object is a container that has the
84
+ * information required for token based access to your Ethereum nodes including, the
85
+ * <code>BILLING_TOKEN</code>. After an accessor is deleted, the status of the accessor changes
86
+ * from <code>AVAILABLE</code> to <code>PENDING_DELETION</code>. An accessor in the
87
+ * <code>PENDING_DELETION</code> state can’t be used for new WebSocket requests or
88
+ * HTTP requests. However, WebSocket connections that are initiated while the accessor was in the
89
+ * <code>AVAILABLE</code> state remain open until they expire (up to 2 hours).</p>
90
+ */
91
+ deleteAccessor(args: DeleteAccessorCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAccessorCommandOutput>;
92
+ deleteAccessor(args: DeleteAccessorCommandInput, cb: (err: any, data?: DeleteAccessorCommandOutput) => void): void;
93
+ deleteAccessor(args: DeleteAccessorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAccessorCommandOutput) => void): void;
94
+ /**
95
+ * <p>Deletes a member. Deleting a member removes the member and all associated resources from the network. <code>DeleteMember</code> can only be called for a specified <code>MemberId</code> if the principal performing the action is associated with the Amazon Web Services account that owns the member. In all other cases, the <code>DeleteMember</code> action is carried out as the result of an approved proposal to remove a member. If <code>MemberId</code> is the last member in a network specified by the last Amazon Web Services account, the network is deleted also.</p>
63
96
  * <p>Applies only to Hyperledger Fabric.</p>
64
97
  */
65
98
  deleteMember(args: DeleteMemberCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMemberCommandOutput>;
66
99
  deleteMember(args: DeleteMemberCommandInput, cb: (err: any, data?: DeleteMemberCommandOutput) => void): void;
67
100
  deleteMember(args: DeleteMemberCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMemberCommandOutput) => void): void;
68
101
  /**
69
- * <p>Deletes a node that your AWS account owns. All data on the node is lost and cannot be recovered.</p>
102
+ * <p>Deletes a node that your Amazon Web Services account owns. All data on the node is lost and cannot be recovered.</p>
70
103
  * <p>Applies to Hyperledger Fabric and Ethereum.</p>
71
104
  */
72
105
  deleteNode(args: DeleteNodeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteNodeCommandOutput>;
73
106
  deleteNode(args: DeleteNodeCommandInput, cb: (err: any, data?: DeleteNodeCommandOutput) => void): void;
74
107
  deleteNode(args: DeleteNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteNodeCommandOutput) => void): void;
108
+ /**
109
+ * <important>
110
+ * <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
111
+ * subject to change. We recommend that you use this feature only with
112
+ * test scenarios, and not in production environments.</p>
113
+ * </important>
114
+ * <p>Returns detailed information about an accessor. An accessor object is a container that has the
115
+ * information required for token based access to your Ethereum nodes.</p>
116
+ */
117
+ getAccessor(args: GetAccessorCommandInput, options?: __HttpHandlerOptions): Promise<GetAccessorCommandOutput>;
118
+ getAccessor(args: GetAccessorCommandInput, cb: (err: any, data?: GetAccessorCommandOutput) => void): void;
119
+ getAccessor(args: GetAccessorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccessorCommandOutput) => void): void;
75
120
  /**
76
121
  * <p>Returns detailed information about a member.</p>
77
122
  * <p>Applies only to Hyperledger Fabric.</p>
@@ -101,7 +146,19 @@ export declare class ManagedBlockchain extends ManagedBlockchainClient {
101
146
  getProposal(args: GetProposalCommandInput, cb: (err: any, data?: GetProposalCommandOutput) => void): void;
102
147
  getProposal(args: GetProposalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProposalCommandOutput) => void): void;
103
148
  /**
104
- * <p>Returns a list of all invitations for the current AWS account.</p>
149
+ * <important>
150
+ * <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
151
+ * subject to change. We recommend that you use this feature only with
152
+ * test scenarios, and not in production environments.</p>
153
+ * </important>
154
+ * <p>Returns a list of the accessors and their properties. Accessor objects are containers that have the
155
+ * information required for token based access to your Ethereum nodes.</p>
156
+ */
157
+ listAccessors(args: ListAccessorsCommandInput, options?: __HttpHandlerOptions): Promise<ListAccessorsCommandOutput>;
158
+ listAccessors(args: ListAccessorsCommandInput, cb: (err: any, data?: ListAccessorsCommandOutput) => void): void;
159
+ listAccessors(args: ListAccessorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccessorsCommandOutput) => void): void;
160
+ /**
161
+ * <p>Returns a list of all invitations for the current Amazon Web Services account.</p>
105
162
  * <p>Applies only to Hyperledger Fabric.</p>
106
163
  */
107
164
  listInvitations(args: ListInvitationsCommandInput, options?: __HttpHandlerOptions): Promise<ListInvitationsCommandOutput>;
@@ -115,7 +172,7 @@ export declare class ManagedBlockchain extends ManagedBlockchainClient {
115
172
  listMembers(args: ListMembersCommandInput, cb: (err: any, data?: ListMembersCommandOutput) => void): void;
116
173
  listMembers(args: ListMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMembersCommandOutput) => void): void;
117
174
  /**
118
- * <p>Returns information about the networks in which the current AWS account participates.</p>
175
+ * <p>Returns information about the networks in which the current Amazon Web Services account participates.</p>
119
176
  * <p>Applies to Hyperledger Fabric and Ethereum.</p>
120
177
  */
121
178
  listNetworks(args: ListNetworksCommandInput, options?: __HttpHandlerOptions): Promise<ListNetworksCommandOutput>;
@@ -150,7 +207,7 @@ export declare class ManagedBlockchain extends ManagedBlockchainClient {
150
207
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
151
208
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
152
209
  /**
153
- * <p>Rejects an invitation to join a network. This action can be called by a principal in an AWS account that has received an invitation to create a member and join a network.</p>
210
+ * <p>Rejects an invitation to join a network. This action can be called by a principal in an Amazon Web Services account that has received an invitation to create a member and join a network.</p>
154
211
  * <p>Applies only to Hyperledger Fabric.</p>
155
212
  */
156
213
  rejectInvitation(args: RejectInvitationCommandInput, options?: __HttpHandlerOptions): Promise<RejectInvitationCommandOutput>;
@@ -187,7 +244,7 @@ export declare class ManagedBlockchain extends ManagedBlockchainClient {
187
244
  updateNode(args: UpdateNodeCommandInput, cb: (err: any, data?: UpdateNodeCommandOutput) => void): void;
188
245
  updateNode(args: UpdateNodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNodeCommandOutput) => void): void;
189
246
  /**
190
- * <p>Casts a vote for a specified <code>ProposalId</code> on behalf of a member. The member to vote as, specified by <code>VoterMemberId</code>, must be in the same AWS account as the principal that calls the action.</p>
247
+ * <p>Casts a vote for a specified <code>ProposalId</code> on behalf of a member. The member to vote as, specified by <code>VoterMemberId</code>, must be in the same Amazon Web Services account as the principal that calls the action.</p>
191
248
  * <p>Applies only to Hyperledger Fabric.</p>
192
249
  */
193
250
  voteOnProposal(args: VoteOnProposalCommandInput, options?: __HttpHandlerOptions): Promise<VoteOnProposalCommandOutput>;
@@ -1,21 +1,26 @@
1
- import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
1
+ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
2
3
  import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
4
  import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
5
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
+ import { CreateAccessorCommandInput, CreateAccessorCommandOutput } from "./commands/CreateAccessorCommand";
9
11
  import { CreateMemberCommandInput, CreateMemberCommandOutput } from "./commands/CreateMemberCommand";
10
12
  import { CreateNetworkCommandInput, CreateNetworkCommandOutput } from "./commands/CreateNetworkCommand";
11
13
  import { CreateNodeCommandInput, CreateNodeCommandOutput } from "./commands/CreateNodeCommand";
12
14
  import { CreateProposalCommandInput, CreateProposalCommandOutput } from "./commands/CreateProposalCommand";
15
+ import { DeleteAccessorCommandInput, DeleteAccessorCommandOutput } from "./commands/DeleteAccessorCommand";
13
16
  import { DeleteMemberCommandInput, DeleteMemberCommandOutput } from "./commands/DeleteMemberCommand";
14
17
  import { DeleteNodeCommandInput, DeleteNodeCommandOutput } from "./commands/DeleteNodeCommand";
18
+ import { GetAccessorCommandInput, GetAccessorCommandOutput } from "./commands/GetAccessorCommand";
15
19
  import { GetMemberCommandInput, GetMemberCommandOutput } from "./commands/GetMemberCommand";
16
20
  import { GetNetworkCommandInput, GetNetworkCommandOutput } from "./commands/GetNetworkCommand";
17
21
  import { GetNodeCommandInput, GetNodeCommandOutput } from "./commands/GetNodeCommand";
18
22
  import { GetProposalCommandInput, GetProposalCommandOutput } from "./commands/GetProposalCommand";
23
+ import { ListAccessorsCommandInput, ListAccessorsCommandOutput } from "./commands/ListAccessorsCommand";
19
24
  import { ListInvitationsCommandInput, ListInvitationsCommandOutput } from "./commands/ListInvitationsCommand";
20
25
  import { ListMembersCommandInput, ListMembersCommandOutput } from "./commands/ListMembersCommand";
21
26
  import { ListNetworksCommandInput, ListNetworksCommandOutput } from "./commands/ListNetworksCommand";
@@ -29,8 +34,9 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
29
34
  import { UpdateMemberCommandInput, UpdateMemberCommandOutput } from "./commands/UpdateMemberCommand";
30
35
  import { UpdateNodeCommandInput, UpdateNodeCommandOutput } from "./commands/UpdateNodeCommand";
31
36
  import { VoteOnProposalCommandInput, VoteOnProposalCommandOutput } from "./commands/VoteOnProposalCommand";
32
- export declare type ServiceInputTypes = CreateMemberCommandInput | CreateNetworkCommandInput | CreateNodeCommandInput | CreateProposalCommandInput | DeleteMemberCommandInput | DeleteNodeCommandInput | GetMemberCommandInput | GetNetworkCommandInput | GetNodeCommandInput | GetProposalCommandInput | ListInvitationsCommandInput | ListMembersCommandInput | ListNetworksCommandInput | ListNodesCommandInput | ListProposalVotesCommandInput | ListProposalsCommandInput | ListTagsForResourceCommandInput | RejectInvitationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateMemberCommandInput | UpdateNodeCommandInput | VoteOnProposalCommandInput;
33
- export declare type ServiceOutputTypes = CreateMemberCommandOutput | CreateNetworkCommandOutput | CreateNodeCommandOutput | CreateProposalCommandOutput | DeleteMemberCommandOutput | DeleteNodeCommandOutput | GetMemberCommandOutput | GetNetworkCommandOutput | GetNodeCommandOutput | GetProposalCommandOutput | ListInvitationsCommandOutput | ListMembersCommandOutput | ListNetworksCommandOutput | ListNodesCommandOutput | ListProposalVotesCommandOutput | ListProposalsCommandOutput | ListTagsForResourceCommandOutput | RejectInvitationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateMemberCommandOutput | UpdateNodeCommandOutput | VoteOnProposalCommandOutput;
37
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
38
+ export declare type ServiceInputTypes = CreateAccessorCommandInput | CreateMemberCommandInput | CreateNetworkCommandInput | CreateNodeCommandInput | CreateProposalCommandInput | DeleteAccessorCommandInput | DeleteMemberCommandInput | DeleteNodeCommandInput | GetAccessorCommandInput | GetMemberCommandInput | GetNetworkCommandInput | GetNodeCommandInput | GetProposalCommandInput | ListAccessorsCommandInput | ListInvitationsCommandInput | ListMembersCommandInput | ListNetworksCommandInput | ListNodesCommandInput | ListProposalVotesCommandInput | ListProposalsCommandInput | ListTagsForResourceCommandInput | RejectInvitationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateMemberCommandInput | UpdateNodeCommandInput | VoteOnProposalCommandInput;
39
+ export declare type ServiceOutputTypes = CreateAccessorCommandOutput | CreateMemberCommandOutput | CreateNetworkCommandOutput | CreateNodeCommandOutput | CreateProposalCommandOutput | DeleteAccessorCommandOutput | DeleteMemberCommandOutput | DeleteNodeCommandOutput | GetAccessorCommandOutput | GetMemberCommandOutput | GetNetworkCommandOutput | GetNodeCommandOutput | GetProposalCommandOutput | ListAccessorsCommandOutput | ListInvitationsCommandOutput | ListMembersCommandOutput | ListNetworksCommandOutput | ListNodesCommandOutput | ListProposalVotesCommandOutput | ListProposalsCommandOutput | ListTagsForResourceCommandOutput | RejectInvitationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateMemberCommandOutput | UpdateNodeCommandOutput | VoteOnProposalCommandOutput;
34
40
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
35
41
  /**
36
42
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -121,11 +127,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
121
127
  * @internal
122
128
  */
123
129
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
124
- /**
125
- * Fetch related hostname, signing name or signing region with given region.
126
- * @internal
127
- */
128
- regionInfoProvider?: RegionInfoProvider;
129
130
  /**
130
131
  * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
131
132
  * @internal
@@ -136,13 +137,13 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
136
137
  */
137
138
  defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
138
139
  }
139
- declare type ManagedBlockchainClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
140
+ declare type ManagedBlockchainClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
140
141
  /**
141
142
  * The configuration interface of ManagedBlockchainClient class constructor that set the region, credentials and other options.
142
143
  */
143
144
  export interface ManagedBlockchainClientConfig extends ManagedBlockchainClientConfigType {
144
145
  }
145
- declare type ManagedBlockchainClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
146
+ declare type ManagedBlockchainClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
146
147
  /**
147
148
  * The resolved configuration interface of ManagedBlockchainClient class. This is resolved and normalized from the {@link ManagedBlockchainClientConfig | constructor configuration interface}.
148
149
  */
@@ -151,7 +152,7 @@ export interface ManagedBlockchainClientResolvedConfig extends ManagedBlockchain
151
152
  /**
152
153
  * <p></p>
153
154
  * <p>Amazon Managed Blockchain is a fully managed service for creating and managing blockchain networks using open-source frameworks. Blockchain allows you to build applications where multiple parties can securely and transparently run transactions and share data without the need for a trusted, central authority.</p>
154
- * <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> do not apply to Ethereum.</p>
155
+ * <p>Managed Blockchain supports the Hyperledger Fabric and Ethereum open-source frameworks. Because of fundamental differences between the frameworks, some API actions or data types may only apply in the context of one framework and not the other. For example, actions related to Hyperledger Fabric network members such as <code>CreateMember</code> and <code>DeleteMember</code> don't apply to Ethereum.</p>
155
156
  * <p>The description for each action indicates the framework or frameworks to which it applies. Data types and properties that apply only in the context of a particular framework are similarly indicated.</p>
156
157
  */
157
158
  export declare class ManagedBlockchainClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ManagedBlockchainClientResolvedConfig> {
@@ -0,0 +1,43 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ManagedBlockchainClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ManagedBlockchainClient";
5
+ import { CreateAccessorInput, CreateAccessorOutput } from "../models/models_0";
6
+ export interface CreateAccessorCommandInput extends CreateAccessorInput {
7
+ }
8
+ export interface CreateAccessorCommandOutput extends CreateAccessorOutput, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <important>
12
+ * <p>The token based access feature is in preview release for Ethereum on Amazon Managed Blockchain and is
13
+ * subject to change. We recommend that you use this feature only with
14
+ * test scenarios, and not in production environments.</p>
15
+ * </important>
16
+ * <p>Creates a new accessor for use with Managed Blockchain Ethereum nodes. An accessor object is a container that has the information
17
+ * required for token based access to your Ethereum nodes.</p>
18
+ * @example
19
+ * Use a bare-bones client and the command you need to make an API call.
20
+ * ```javascript
21
+ * import { ManagedBlockchainClient, CreateAccessorCommand } from "@aws-sdk/client-managedblockchain"; // ES Modules import
22
+ * // const { ManagedBlockchainClient, CreateAccessorCommand } = require("@aws-sdk/client-managedblockchain"); // CommonJS import
23
+ * const client = new ManagedBlockchainClient(config);
24
+ * const command = new CreateAccessorCommand(input);
25
+ * const response = await client.send(command);
26
+ * ```
27
+ *
28
+ * @see {@link CreateAccessorCommandInput} for command's `input` shape.
29
+ * @see {@link CreateAccessorCommandOutput} for command's `response` shape.
30
+ * @see {@link ManagedBlockchainClientResolvedConfig | config} for ManagedBlockchainClient's `config` shape.
31
+ *
32
+ */
33
+ export declare class CreateAccessorCommand extends $Command<CreateAccessorCommandInput, CreateAccessorCommandOutput, ManagedBlockchainClientResolvedConfig> {
34
+ readonly input: CreateAccessorCommandInput;
35
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
36
+ constructor(input: CreateAccessorCommandInput);
37
+ /**
38
+ * @internal
39
+ */
40
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ManagedBlockchainClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAccessorCommandInput, CreateAccessorCommandOutput>;
41
+ private serialize;
42
+ private deserialize;
43
+ }