@aws-sdk/client-memorydb 3.35.0 → 3.38.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 (284) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/MemoryDB.js +0 -6
  3. package/dist-cjs/MemoryDBClient.js +0 -11
  4. package/dist-cjs/commands/BatchUpdateClusterCommand.js +0 -25
  5. package/dist-cjs/commands/CopySnapshotCommand.js +0 -25
  6. package/dist-cjs/commands/CreateACLCommand.js +0 -25
  7. package/dist-cjs/commands/CreateClusterCommand.js +0 -25
  8. package/dist-cjs/commands/CreateParameterGroupCommand.js +0 -28
  9. package/dist-cjs/commands/CreateSnapshotCommand.js +0 -25
  10. package/dist-cjs/commands/CreateSubnetGroupCommand.js +0 -28
  11. package/dist-cjs/commands/CreateUserCommand.js +0 -25
  12. package/dist-cjs/commands/DeleteACLCommand.js +0 -25
  13. package/dist-cjs/commands/DeleteClusterCommand.js +0 -25
  14. package/dist-cjs/commands/DeleteParameterGroupCommand.js +0 -26
  15. package/dist-cjs/commands/DeleteSnapshotCommand.js +0 -25
  16. package/dist-cjs/commands/DeleteSubnetGroupCommand.js +0 -25
  17. package/dist-cjs/commands/DeleteUserCommand.js +0 -25
  18. package/dist-cjs/commands/DescribeACLsCommand.js +0 -25
  19. package/dist-cjs/commands/DescribeClustersCommand.js +0 -25
  20. package/dist-cjs/commands/DescribeEngineVersionsCommand.js +0 -25
  21. package/dist-cjs/commands/DescribeEventsCommand.js +0 -27
  22. package/dist-cjs/commands/DescribeParameterGroupsCommand.js +0 -25
  23. package/dist-cjs/commands/DescribeParametersCommand.js +0 -25
  24. package/dist-cjs/commands/DescribeServiceUpdatesCommand.js +0 -25
  25. package/dist-cjs/commands/DescribeSnapshotsCommand.js +0 -26
  26. package/dist-cjs/commands/DescribeSubnetGroupsCommand.js +0 -25
  27. package/dist-cjs/commands/DescribeUsersCommand.js +0 -25
  28. package/dist-cjs/commands/FailoverShardCommand.js +0 -25
  29. package/dist-cjs/commands/ListAllowedNodeTypeUpdatesCommand.js +0 -27
  30. package/dist-cjs/commands/ListTagsCommand.js +0 -29
  31. package/dist-cjs/commands/ResetParameterGroupCommand.js +0 -25
  32. package/dist-cjs/commands/TagResourceCommand.js +0 -35
  33. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  34. package/dist-cjs/commands/UpdateACLCommand.js +0 -25
  35. package/dist-cjs/commands/UpdateClusterCommand.js +0 -25
  36. package/dist-cjs/commands/UpdateParameterGroupCommand.js +0 -25
  37. package/dist-cjs/commands/UpdateSubnetGroupCommand.js +0 -26
  38. package/dist-cjs/commands/UpdateUserCommand.js +0 -25
  39. package/dist-cjs/commands/index.js +38 -0
  40. package/dist-cjs/endpoints.js +1 -2
  41. package/dist-cjs/index.js +3 -38
  42. package/dist-cjs/models/index.js +0 -1
  43. package/dist-cjs/models/models_0.js +0 -460
  44. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  45. package/dist-cjs/runtimeConfig.browser.js +1 -6
  46. package/dist-cjs/runtimeConfig.js +2 -7
  47. package/dist-cjs/runtimeConfig.native.js +0 -4
  48. package/dist-cjs/runtimeConfig.shared.js +0 -4
  49. package/dist-es/MemoryDB.js +0 -1
  50. package/dist-es/MemoryDBClient.js +0 -1
  51. package/dist-es/commands/BatchUpdateClusterCommand.js +0 -1
  52. package/dist-es/commands/CopySnapshotCommand.js +0 -1
  53. package/dist-es/commands/CreateACLCommand.js +0 -1
  54. package/dist-es/commands/CreateClusterCommand.js +0 -1
  55. package/dist-es/commands/CreateParameterGroupCommand.js +0 -1
  56. package/dist-es/commands/CreateSnapshotCommand.js +0 -1
  57. package/dist-es/commands/CreateSubnetGroupCommand.js +0 -1
  58. package/dist-es/commands/CreateUserCommand.js +0 -1
  59. package/dist-es/commands/DeleteACLCommand.js +0 -1
  60. package/dist-es/commands/DeleteClusterCommand.js +0 -1
  61. package/dist-es/commands/DeleteParameterGroupCommand.js +0 -1
  62. package/dist-es/commands/DeleteSnapshotCommand.js +0 -1
  63. package/dist-es/commands/DeleteSubnetGroupCommand.js +0 -1
  64. package/dist-es/commands/DeleteUserCommand.js +0 -1
  65. package/dist-es/commands/DescribeACLsCommand.js +0 -1
  66. package/dist-es/commands/DescribeClustersCommand.js +0 -1
  67. package/dist-es/commands/DescribeEngineVersionsCommand.js +0 -1
  68. package/dist-es/commands/DescribeEventsCommand.js +0 -1
  69. package/dist-es/commands/DescribeParameterGroupsCommand.js +0 -1
  70. package/dist-es/commands/DescribeParametersCommand.js +0 -1
  71. package/dist-es/commands/DescribeServiceUpdatesCommand.js +0 -1
  72. package/dist-es/commands/DescribeSnapshotsCommand.js +0 -1
  73. package/dist-es/commands/DescribeSubnetGroupsCommand.js +0 -1
  74. package/dist-es/commands/DescribeUsersCommand.js +0 -1
  75. package/dist-es/commands/FailoverShardCommand.js +0 -1
  76. package/dist-es/commands/ListAllowedNodeTypeUpdatesCommand.js +0 -1
  77. package/dist-es/commands/ListTagsCommand.js +0 -1
  78. package/dist-es/commands/ResetParameterGroupCommand.js +0 -1
  79. package/dist-es/commands/TagResourceCommand.js +0 -1
  80. package/dist-es/commands/UntagResourceCommand.js +0 -1
  81. package/dist-es/commands/UpdateACLCommand.js +0 -1
  82. package/dist-es/commands/UpdateClusterCommand.js +0 -1
  83. package/dist-es/commands/UpdateParameterGroupCommand.js +0 -1
  84. package/dist-es/commands/UpdateSubnetGroupCommand.js +0 -1
  85. package/dist-es/commands/UpdateUserCommand.js +0 -1
  86. package/dist-es/commands/index.js +35 -0
  87. package/dist-es/endpoints.js +1 -2
  88. package/dist-es/index.js +3 -38
  89. package/dist-es/models/index.js +0 -1
  90. package/dist-es/models/models_0.js +0 -1
  91. package/dist-es/protocols/Aws_json1_1.js +0 -1
  92. package/dist-es/runtimeConfig.browser.js +1 -2
  93. package/dist-es/runtimeConfig.js +2 -3
  94. package/dist-es/runtimeConfig.native.js +0 -1
  95. package/dist-es/runtimeConfig.shared.js +0 -1
  96. package/dist-types/commands/index.d.ts +35 -0
  97. package/dist-types/index.d.ts +3 -37
  98. package/dist-types/ts3.4/MemoryDB.d.ts +36 -137
  99. package/dist-types/ts3.4/MemoryDBClient.d.ts +24 -91
  100. package/dist-types/ts3.4/commands/BatchUpdateClusterCommand.d.ts +2 -20
  101. package/dist-types/ts3.4/commands/CopySnapshotCommand.d.ts +2 -20
  102. package/dist-types/ts3.4/commands/CreateACLCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +2 -20
  104. package/dist-types/ts3.4/commands/CreateParameterGroupCommand.d.ts +2 -23
  105. package/dist-types/ts3.4/commands/CreateSnapshotCommand.d.ts +2 -20
  106. package/dist-types/ts3.4/commands/CreateSubnetGroupCommand.d.ts +2 -23
  107. package/dist-types/ts3.4/commands/CreateUserCommand.d.ts +2 -20
  108. package/dist-types/ts3.4/commands/DeleteACLCommand.d.ts +2 -20
  109. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +2 -20
  110. package/dist-types/ts3.4/commands/DeleteParameterGroupCommand.d.ts +2 -21
  111. package/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/DeleteSubnetGroupCommand.d.ts +2 -20
  113. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +2 -20
  114. package/dist-types/ts3.4/commands/DescribeACLsCommand.d.ts +2 -20
  115. package/dist-types/ts3.4/commands/DescribeClustersCommand.d.ts +2 -20
  116. package/dist-types/ts3.4/commands/DescribeEngineVersionsCommand.d.ts +2 -20
  117. package/dist-types/ts3.4/commands/DescribeEventsCommand.d.ts +2 -22
  118. package/dist-types/ts3.4/commands/DescribeParameterGroupsCommand.d.ts +2 -20
  119. package/dist-types/ts3.4/commands/DescribeParametersCommand.d.ts +2 -20
  120. package/dist-types/ts3.4/commands/DescribeServiceUpdatesCommand.d.ts +2 -20
  121. package/dist-types/ts3.4/commands/DescribeSnapshotsCommand.d.ts +2 -21
  122. package/dist-types/ts3.4/commands/DescribeSubnetGroupsCommand.d.ts +2 -20
  123. package/dist-types/ts3.4/commands/DescribeUsersCommand.d.ts +2 -20
  124. package/dist-types/ts3.4/commands/FailoverShardCommand.d.ts +2 -20
  125. package/dist-types/ts3.4/commands/ListAllowedNodeTypeUpdatesCommand.d.ts +2 -22
  126. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -24
  127. package/dist-types/ts3.4/commands/ResetParameterGroupCommand.d.ts +2 -20
  128. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -30
  129. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  130. package/dist-types/ts3.4/commands/UpdateACLCommand.d.ts +2 -20
  131. package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +2 -20
  132. package/dist-types/ts3.4/commands/UpdateParameterGroupCommand.d.ts +2 -20
  133. package/dist-types/ts3.4/commands/UpdateSubnetGroupCommand.d.ts +2 -21
  134. package/dist-types/ts3.4/commands/UpdateUserCommand.d.ts +2 -20
  135. package/dist-types/ts3.4/commands/index.d.ts +35 -0
  136. package/dist-types/ts3.4/index.d.ts +3 -37
  137. package/dist-types/ts3.4/models/models_0.d.ts +554 -1698
  138. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  139. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  140. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  141. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  142. package/package.json +33 -30
  143. package/dist-cjs/MemoryDB.js.map +0 -1
  144. package/dist-cjs/MemoryDBClient.js.map +0 -1
  145. package/dist-cjs/commands/BatchUpdateClusterCommand.js.map +0 -1
  146. package/dist-cjs/commands/CopySnapshotCommand.js.map +0 -1
  147. package/dist-cjs/commands/CreateACLCommand.js.map +0 -1
  148. package/dist-cjs/commands/CreateClusterCommand.js.map +0 -1
  149. package/dist-cjs/commands/CreateParameterGroupCommand.js.map +0 -1
  150. package/dist-cjs/commands/CreateSnapshotCommand.js.map +0 -1
  151. package/dist-cjs/commands/CreateSubnetGroupCommand.js.map +0 -1
  152. package/dist-cjs/commands/CreateUserCommand.js.map +0 -1
  153. package/dist-cjs/commands/DeleteACLCommand.js.map +0 -1
  154. package/dist-cjs/commands/DeleteClusterCommand.js.map +0 -1
  155. package/dist-cjs/commands/DeleteParameterGroupCommand.js.map +0 -1
  156. package/dist-cjs/commands/DeleteSnapshotCommand.js.map +0 -1
  157. package/dist-cjs/commands/DeleteSubnetGroupCommand.js.map +0 -1
  158. package/dist-cjs/commands/DeleteUserCommand.js.map +0 -1
  159. package/dist-cjs/commands/DescribeACLsCommand.js.map +0 -1
  160. package/dist-cjs/commands/DescribeClustersCommand.js.map +0 -1
  161. package/dist-cjs/commands/DescribeEngineVersionsCommand.js.map +0 -1
  162. package/dist-cjs/commands/DescribeEventsCommand.js.map +0 -1
  163. package/dist-cjs/commands/DescribeParameterGroupsCommand.js.map +0 -1
  164. package/dist-cjs/commands/DescribeParametersCommand.js.map +0 -1
  165. package/dist-cjs/commands/DescribeServiceUpdatesCommand.js.map +0 -1
  166. package/dist-cjs/commands/DescribeSnapshotsCommand.js.map +0 -1
  167. package/dist-cjs/commands/DescribeSubnetGroupsCommand.js.map +0 -1
  168. package/dist-cjs/commands/DescribeUsersCommand.js.map +0 -1
  169. package/dist-cjs/commands/FailoverShardCommand.js.map +0 -1
  170. package/dist-cjs/commands/ListAllowedNodeTypeUpdatesCommand.js.map +0 -1
  171. package/dist-cjs/commands/ListTagsCommand.js.map +0 -1
  172. package/dist-cjs/commands/ResetParameterGroupCommand.js.map +0 -1
  173. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  174. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  175. package/dist-cjs/commands/UpdateACLCommand.js.map +0 -1
  176. package/dist-cjs/commands/UpdateClusterCommand.js.map +0 -1
  177. package/dist-cjs/commands/UpdateParameterGroupCommand.js.map +0 -1
  178. package/dist-cjs/commands/UpdateSubnetGroupCommand.js.map +0 -1
  179. package/dist-cjs/commands/UpdateUserCommand.js.map +0 -1
  180. package/dist-cjs/endpoints.js.map +0 -1
  181. package/dist-cjs/index.js.map +0 -1
  182. package/dist-cjs/models/index.js.map +0 -1
  183. package/dist-cjs/models/models_0.js.map +0 -1
  184. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  185. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  186. package/dist-cjs/runtimeConfig.js.map +0 -1
  187. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  188. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  189. package/dist-es/MemoryDB.js.map +0 -1
  190. package/dist-es/MemoryDBClient.js.map +0 -1
  191. package/dist-es/commands/BatchUpdateClusterCommand.js.map +0 -1
  192. package/dist-es/commands/CopySnapshotCommand.js.map +0 -1
  193. package/dist-es/commands/CreateACLCommand.js.map +0 -1
  194. package/dist-es/commands/CreateClusterCommand.js.map +0 -1
  195. package/dist-es/commands/CreateParameterGroupCommand.js.map +0 -1
  196. package/dist-es/commands/CreateSnapshotCommand.js.map +0 -1
  197. package/dist-es/commands/CreateSubnetGroupCommand.js.map +0 -1
  198. package/dist-es/commands/CreateUserCommand.js.map +0 -1
  199. package/dist-es/commands/DeleteACLCommand.js.map +0 -1
  200. package/dist-es/commands/DeleteClusterCommand.js.map +0 -1
  201. package/dist-es/commands/DeleteParameterGroupCommand.js.map +0 -1
  202. package/dist-es/commands/DeleteSnapshotCommand.js.map +0 -1
  203. package/dist-es/commands/DeleteSubnetGroupCommand.js.map +0 -1
  204. package/dist-es/commands/DeleteUserCommand.js.map +0 -1
  205. package/dist-es/commands/DescribeACLsCommand.js.map +0 -1
  206. package/dist-es/commands/DescribeClustersCommand.js.map +0 -1
  207. package/dist-es/commands/DescribeEngineVersionsCommand.js.map +0 -1
  208. package/dist-es/commands/DescribeEventsCommand.js.map +0 -1
  209. package/dist-es/commands/DescribeParameterGroupsCommand.js.map +0 -1
  210. package/dist-es/commands/DescribeParametersCommand.js.map +0 -1
  211. package/dist-es/commands/DescribeServiceUpdatesCommand.js.map +0 -1
  212. package/dist-es/commands/DescribeSnapshotsCommand.js.map +0 -1
  213. package/dist-es/commands/DescribeSubnetGroupsCommand.js.map +0 -1
  214. package/dist-es/commands/DescribeUsersCommand.js.map +0 -1
  215. package/dist-es/commands/FailoverShardCommand.js.map +0 -1
  216. package/dist-es/commands/ListAllowedNodeTypeUpdatesCommand.js.map +0 -1
  217. package/dist-es/commands/ListTagsCommand.js.map +0 -1
  218. package/dist-es/commands/ResetParameterGroupCommand.js.map +0 -1
  219. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  220. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  221. package/dist-es/commands/UpdateACLCommand.js.map +0 -1
  222. package/dist-es/commands/UpdateClusterCommand.js.map +0 -1
  223. package/dist-es/commands/UpdateParameterGroupCommand.js.map +0 -1
  224. package/dist-es/commands/UpdateSubnetGroupCommand.js.map +0 -1
  225. package/dist-es/commands/UpdateUserCommand.js.map +0 -1
  226. package/dist-es/endpoints.js.map +0 -1
  227. package/dist-es/index.js.map +0 -1
  228. package/dist-es/models/index.js.map +0 -1
  229. package/dist-es/models/models_0.js.map +0 -1
  230. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  231. package/dist-es/runtimeConfig.browser.js.map +0 -1
  232. package/dist-es/runtimeConfig.js.map +0 -1
  233. package/dist-es/runtimeConfig.native.js.map +0 -1
  234. package/dist-es/runtimeConfig.shared.js.map +0 -1
  235. package/jest.config.js +0 -4
  236. package/src/MemoryDB.ts +0 -1246
  237. package/src/MemoryDBClient.ts +0 -370
  238. package/src/commands/BatchUpdateClusterCommand.ts +0 -95
  239. package/src/commands/CopySnapshotCommand.ts +0 -95
  240. package/src/commands/CreateACLCommand.ts +0 -92
  241. package/src/commands/CreateClusterCommand.ts +0 -95
  242. package/src/commands/CreateParameterGroupCommand.ts +0 -98
  243. package/src/commands/CreateSnapshotCommand.ts +0 -95
  244. package/src/commands/CreateSubnetGroupCommand.ts +0 -98
  245. package/src/commands/CreateUserCommand.ts +0 -95
  246. package/src/commands/DeleteACLCommand.ts +0 -92
  247. package/src/commands/DeleteClusterCommand.ts +0 -95
  248. package/src/commands/DeleteParameterGroupCommand.ts +0 -96
  249. package/src/commands/DeleteSnapshotCommand.ts +0 -95
  250. package/src/commands/DeleteSubnetGroupCommand.ts +0 -95
  251. package/src/commands/DeleteUserCommand.ts +0 -95
  252. package/src/commands/DescribeACLsCommand.ts +0 -95
  253. package/src/commands/DescribeClustersCommand.ts +0 -95
  254. package/src/commands/DescribeEngineVersionsCommand.ts +0 -95
  255. package/src/commands/DescribeEventsCommand.ts +0 -97
  256. package/src/commands/DescribeParameterGroupsCommand.ts +0 -95
  257. package/src/commands/DescribeParametersCommand.ts +0 -95
  258. package/src/commands/DescribeServiceUpdatesCommand.ts +0 -95
  259. package/src/commands/DescribeSnapshotsCommand.ts +0 -96
  260. package/src/commands/DescribeSubnetGroupsCommand.ts +0 -95
  261. package/src/commands/DescribeUsersCommand.ts +0 -95
  262. package/src/commands/FailoverShardCommand.ts +0 -95
  263. package/src/commands/ListAllowedNodeTypeUpdatesCommand.ts +0 -100
  264. package/src/commands/ListTagsCommand.ts +0 -96
  265. package/src/commands/ResetParameterGroupCommand.ts +0 -95
  266. package/src/commands/TagResourceCommand.ts +0 -105
  267. package/src/commands/UntagResourceCommand.ts +0 -95
  268. package/src/commands/UpdateACLCommand.ts +0 -92
  269. package/src/commands/UpdateClusterCommand.ts +0 -95
  270. package/src/commands/UpdateParameterGroupCommand.ts +0 -95
  271. package/src/commands/UpdateSubnetGroupCommand.ts +0 -96
  272. package/src/commands/UpdateUserCommand.ts +0 -95
  273. package/src/endpoints.ts +0 -57
  274. package/src/index.ts +0 -38
  275. package/src/models/index.ts +0 -1
  276. package/src/models/models_0.ts +0 -3789
  277. package/src/protocols/Aws_json1_1.ts +0 -6700
  278. package/src/runtimeConfig.browser.ts +0 -41
  279. package/src/runtimeConfig.native.ts +0 -17
  280. package/src/runtimeConfig.shared.ts +0 -17
  281. package/src/runtimeConfig.ts +0 -46
  282. package/tsconfig.es.json +0 -10
  283. package/tsconfig.json +0 -33
  284. package/tsconfig.types.json +0 -9
@@ -1,370 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import { BatchUpdateClusterCommandInput, BatchUpdateClusterCommandOutput } from "./commands/BatchUpdateClusterCommand";
53
- import { CopySnapshotCommandInput, CopySnapshotCommandOutput } from "./commands/CopySnapshotCommand";
54
- import { CreateACLCommandInput, CreateACLCommandOutput } from "./commands/CreateACLCommand";
55
- import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
56
- import {
57
- CreateParameterGroupCommandInput,
58
- CreateParameterGroupCommandOutput,
59
- } from "./commands/CreateParameterGroupCommand";
60
- import { CreateSnapshotCommandInput, CreateSnapshotCommandOutput } from "./commands/CreateSnapshotCommand";
61
- import { CreateSubnetGroupCommandInput, CreateSubnetGroupCommandOutput } from "./commands/CreateSubnetGroupCommand";
62
- import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
63
- import { DeleteACLCommandInput, DeleteACLCommandOutput } from "./commands/DeleteACLCommand";
64
- import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
65
- import {
66
- DeleteParameterGroupCommandInput,
67
- DeleteParameterGroupCommandOutput,
68
- } from "./commands/DeleteParameterGroupCommand";
69
- import { DeleteSnapshotCommandInput, DeleteSnapshotCommandOutput } from "./commands/DeleteSnapshotCommand";
70
- import { DeleteSubnetGroupCommandInput, DeleteSubnetGroupCommandOutput } from "./commands/DeleteSubnetGroupCommand";
71
- import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
72
- import { DescribeACLsCommandInput, DescribeACLsCommandOutput } from "./commands/DescribeACLsCommand";
73
- import { DescribeClustersCommandInput, DescribeClustersCommandOutput } from "./commands/DescribeClustersCommand";
74
- import {
75
- DescribeEngineVersionsCommandInput,
76
- DescribeEngineVersionsCommandOutput,
77
- } from "./commands/DescribeEngineVersionsCommand";
78
- import { DescribeEventsCommandInput, DescribeEventsCommandOutput } from "./commands/DescribeEventsCommand";
79
- import {
80
- DescribeParameterGroupsCommandInput,
81
- DescribeParameterGroupsCommandOutput,
82
- } from "./commands/DescribeParameterGroupsCommand";
83
- import { DescribeParametersCommandInput, DescribeParametersCommandOutput } from "./commands/DescribeParametersCommand";
84
- import {
85
- DescribeServiceUpdatesCommandInput,
86
- DescribeServiceUpdatesCommandOutput,
87
- } from "./commands/DescribeServiceUpdatesCommand";
88
- import { DescribeSnapshotsCommandInput, DescribeSnapshotsCommandOutput } from "./commands/DescribeSnapshotsCommand";
89
- import {
90
- DescribeSubnetGroupsCommandInput,
91
- DescribeSubnetGroupsCommandOutput,
92
- } from "./commands/DescribeSubnetGroupsCommand";
93
- import { DescribeUsersCommandInput, DescribeUsersCommandOutput } from "./commands/DescribeUsersCommand";
94
- import { FailoverShardCommandInput, FailoverShardCommandOutput } from "./commands/FailoverShardCommand";
95
- import {
96
- ListAllowedNodeTypeUpdatesCommandInput,
97
- ListAllowedNodeTypeUpdatesCommandOutput,
98
- } from "./commands/ListAllowedNodeTypeUpdatesCommand";
99
- import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
100
- import {
101
- ResetParameterGroupCommandInput,
102
- ResetParameterGroupCommandOutput,
103
- } from "./commands/ResetParameterGroupCommand";
104
- import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
105
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
106
- import { UpdateACLCommandInput, UpdateACLCommandOutput } from "./commands/UpdateACLCommand";
107
- import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
108
- import {
109
- UpdateParameterGroupCommandInput,
110
- UpdateParameterGroupCommandOutput,
111
- } from "./commands/UpdateParameterGroupCommand";
112
- import { UpdateSubnetGroupCommandInput, UpdateSubnetGroupCommandOutput } from "./commands/UpdateSubnetGroupCommand";
113
- import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
114
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
115
-
116
- export type ServiceInputTypes =
117
- | BatchUpdateClusterCommandInput
118
- | CopySnapshotCommandInput
119
- | CreateACLCommandInput
120
- | CreateClusterCommandInput
121
- | CreateParameterGroupCommandInput
122
- | CreateSnapshotCommandInput
123
- | CreateSubnetGroupCommandInput
124
- | CreateUserCommandInput
125
- | DeleteACLCommandInput
126
- | DeleteClusterCommandInput
127
- | DeleteParameterGroupCommandInput
128
- | DeleteSnapshotCommandInput
129
- | DeleteSubnetGroupCommandInput
130
- | DeleteUserCommandInput
131
- | DescribeACLsCommandInput
132
- | DescribeClustersCommandInput
133
- | DescribeEngineVersionsCommandInput
134
- | DescribeEventsCommandInput
135
- | DescribeParameterGroupsCommandInput
136
- | DescribeParametersCommandInput
137
- | DescribeServiceUpdatesCommandInput
138
- | DescribeSnapshotsCommandInput
139
- | DescribeSubnetGroupsCommandInput
140
- | DescribeUsersCommandInput
141
- | FailoverShardCommandInput
142
- | ListAllowedNodeTypeUpdatesCommandInput
143
- | ListTagsCommandInput
144
- | ResetParameterGroupCommandInput
145
- | TagResourceCommandInput
146
- | UntagResourceCommandInput
147
- | UpdateACLCommandInput
148
- | UpdateClusterCommandInput
149
- | UpdateParameterGroupCommandInput
150
- | UpdateSubnetGroupCommandInput
151
- | UpdateUserCommandInput;
152
-
153
- export type ServiceOutputTypes =
154
- | BatchUpdateClusterCommandOutput
155
- | CopySnapshotCommandOutput
156
- | CreateACLCommandOutput
157
- | CreateClusterCommandOutput
158
- | CreateParameterGroupCommandOutput
159
- | CreateSnapshotCommandOutput
160
- | CreateSubnetGroupCommandOutput
161
- | CreateUserCommandOutput
162
- | DeleteACLCommandOutput
163
- | DeleteClusterCommandOutput
164
- | DeleteParameterGroupCommandOutput
165
- | DeleteSnapshotCommandOutput
166
- | DeleteSubnetGroupCommandOutput
167
- | DeleteUserCommandOutput
168
- | DescribeACLsCommandOutput
169
- | DescribeClustersCommandOutput
170
- | DescribeEngineVersionsCommandOutput
171
- | DescribeEventsCommandOutput
172
- | DescribeParameterGroupsCommandOutput
173
- | DescribeParametersCommandOutput
174
- | DescribeServiceUpdatesCommandOutput
175
- | DescribeSnapshotsCommandOutput
176
- | DescribeSubnetGroupsCommandOutput
177
- | DescribeUsersCommandOutput
178
- | FailoverShardCommandOutput
179
- | ListAllowedNodeTypeUpdatesCommandOutput
180
- | ListTagsCommandOutput
181
- | ResetParameterGroupCommandOutput
182
- | TagResourceCommandOutput
183
- | UntagResourceCommandOutput
184
- | UpdateACLCommandOutput
185
- | UpdateClusterCommandOutput
186
- | UpdateParameterGroupCommandOutput
187
- | UpdateSubnetGroupCommandOutput
188
- | UpdateUserCommandOutput;
189
-
190
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
191
- /**
192
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
193
- */
194
- requestHandler?: __HttpHandler;
195
-
196
- /**
197
- * A constructor for a class implementing the {@link __Hash} interface
198
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
199
- * @internal
200
- */
201
- sha256?: __HashConstructor;
202
-
203
- /**
204
- * The function that will be used to convert strings into HTTP endpoints.
205
- * @internal
206
- */
207
- urlParser?: __UrlParser;
208
-
209
- /**
210
- * A function that can calculate the length of a request body.
211
- * @internal
212
- */
213
- bodyLengthChecker?: (body: any) => number | undefined;
214
-
215
- /**
216
- * A function that converts a stream into an array of bytes.
217
- * @internal
218
- */
219
- streamCollector?: __StreamCollector;
220
-
221
- /**
222
- * The function that will be used to convert a base64-encoded string to a byte array.
223
- * @internal
224
- */
225
- base64Decoder?: __Decoder;
226
-
227
- /**
228
- * The function that will be used to convert binary data to a base64-encoded string.
229
- * @internal
230
- */
231
- base64Encoder?: __Encoder;
232
-
233
- /**
234
- * The function that will be used to convert a UTF8-encoded string to a byte array.
235
- * @internal
236
- */
237
- utf8Decoder?: __Decoder;
238
-
239
- /**
240
- * The function that will be used to convert binary data to a UTF-8 encoded string.
241
- * @internal
242
- */
243
- utf8Encoder?: __Encoder;
244
-
245
- /**
246
- * The runtime environment.
247
- * @internal
248
- */
249
- runtime?: string;
250
-
251
- /**
252
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
253
- * trait of an operation.
254
- */
255
- disableHostPrefix?: boolean;
256
-
257
- /**
258
- * Value for how many times a request will be made at most in case of retry.
259
- */
260
- maxAttempts?: number | __Provider<number>;
261
-
262
- /**
263
- * Specifies which retry algorithm to use.
264
- */
265
- retryMode?: string | __Provider<string>;
266
-
267
- /**
268
- * Optional logger for logging debug/info/warn/error.
269
- */
270
- logger?: __Logger;
271
-
272
- /**
273
- * Unique service identifier.
274
- * @internal
275
- */
276
- serviceId?: string;
277
-
278
- /**
279
- * The AWS region to which this client will send requests
280
- */
281
- region?: string | __Provider<string>;
282
-
283
- /**
284
- * Default credentials provider; Not available in browser runtime.
285
- * @internal
286
- */
287
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
288
-
289
- /**
290
- * Fetch related hostname, signing name or signing region with given region.
291
- * @internal
292
- */
293
- regionInfoProvider?: RegionInfoProvider;
294
-
295
- /**
296
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
297
- * @internal
298
- */
299
- defaultUserAgentProvider?: Provider<__UserAgent>;
300
- }
301
-
302
- type MemoryDBClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
303
- ClientDefaults &
304
- RegionInputConfig &
305
- EndpointsInputConfig &
306
- RetryInputConfig &
307
- HostHeaderInputConfig &
308
- AwsAuthInputConfig &
309
- UserAgentInputConfig;
310
- /**
311
- * The configuration interface of MemoryDBClient class constructor that set the region, credentials and other options.
312
- */
313
- export interface MemoryDBClientConfig extends MemoryDBClientConfigType {}
314
-
315
- type MemoryDBClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
316
- Required<ClientDefaults> &
317
- RegionResolvedConfig &
318
- EndpointsResolvedConfig &
319
- RetryResolvedConfig &
320
- HostHeaderResolvedConfig &
321
- AwsAuthResolvedConfig &
322
- UserAgentResolvedConfig;
323
- /**
324
- * The resolved configuration interface of MemoryDBClient class. This is resolved and normalized from the {@link MemoryDBClientConfig | constructor configuration interface}.
325
- */
326
- export interface MemoryDBClientResolvedConfig extends MemoryDBClientResolvedConfigType {}
327
-
328
- /**
329
- * <p>MemoryDB for Redis is a fully managed, Redis-compatible, in-memory database that delivers ultra-fast performance and Multi-AZ durability for modern applications built using microservices architectures.
330
- *
331
- * MemoryDB stores the entire database in-memory, enabling low latency and high throughput data access. It is compatible with Redis, a popular open source data store, enabling you to leverage Redis’ flexible and friendly data structures, APIs, and commands.</p>
332
- */
333
- export class MemoryDBClient extends __Client<
334
- __HttpHandlerOptions,
335
- ServiceInputTypes,
336
- ServiceOutputTypes,
337
- MemoryDBClientResolvedConfig
338
- > {
339
- /**
340
- * The resolved configuration of MemoryDBClient class. This is resolved and normalized from the {@link MemoryDBClientConfig | constructor configuration interface}.
341
- */
342
- readonly config: MemoryDBClientResolvedConfig;
343
-
344
- constructor(configuration: MemoryDBClientConfig) {
345
- const _config_0 = __getRuntimeConfig(configuration);
346
- const _config_1 = resolveRegionConfig(_config_0);
347
- const _config_2 = resolveEndpointsConfig(_config_1);
348
- const _config_3 = resolveRetryConfig(_config_2);
349
- const _config_4 = resolveHostHeaderConfig(_config_3);
350
- const _config_5 = resolveAwsAuthConfig(_config_4);
351
- const _config_6 = resolveUserAgentConfig(_config_5);
352
- super(_config_6);
353
- this.config = _config_6;
354
- this.middlewareStack.use(getRetryPlugin(this.config));
355
- this.middlewareStack.use(getContentLengthPlugin(this.config));
356
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
357
- this.middlewareStack.use(getLoggerPlugin(this.config));
358
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
359
- this.middlewareStack.use(getUserAgentPlugin(this.config));
360
- }
361
-
362
- /**
363
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
364
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
365
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
366
- */
367
- destroy(): void {
368
- super.destroy();
369
- }
370
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MemoryDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MemoryDBClient";
15
- import { BatchUpdateClusterRequest, BatchUpdateClusterResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1BatchUpdateClusterCommand,
18
- serializeAws_json1_1BatchUpdateClusterCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface BatchUpdateClusterCommandInput extends BatchUpdateClusterRequest {}
22
- export interface BatchUpdateClusterCommandOutput extends BatchUpdateClusterResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Apply the service update to a list of clusters supplied. For more information on service updates and applying them, see <a href="https://docs.aws.amazon.com/MemoryDB/latest/devguide/managing-updates.html#applying-updates">Applying the service updates</a>.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { MemoryDBClient, BatchUpdateClusterCommand } from "@aws-sdk/client-memorydb"; // ES Modules import
30
- * // const { MemoryDBClient, BatchUpdateClusterCommand } = require("@aws-sdk/client-memorydb"); // CommonJS import
31
- * const client = new MemoryDBClient(config);
32
- * const command = new BatchUpdateClusterCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link BatchUpdateClusterCommandInput} for command's `input` shape.
37
- * @see {@link BatchUpdateClusterCommandOutput} for command's `response` shape.
38
- * @see {@link MemoryDBClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class BatchUpdateClusterCommand extends $Command<
42
- BatchUpdateClusterCommandInput,
43
- BatchUpdateClusterCommandOutput,
44
- MemoryDBClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: BatchUpdateClusterCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: MemoryDBClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<BatchUpdateClusterCommandInput, BatchUpdateClusterCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "MemoryDBClient";
69
- const commandName = "BatchUpdateClusterCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: BatchUpdateClusterRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: BatchUpdateClusterResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: BatchUpdateClusterCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1BatchUpdateClusterCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<BatchUpdateClusterCommandOutput> {
90
- return deserializeAws_json1_1BatchUpdateClusterCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,95 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MemoryDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MemoryDBClient";
15
- import { CopySnapshotRequest, CopySnapshotResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1CopySnapshotCommand,
18
- serializeAws_json1_1CopySnapshotCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface CopySnapshotCommandInput extends CopySnapshotRequest {}
22
- export interface CopySnapshotCommandOutput extends CopySnapshotResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Makes a copy of an existing snapshot.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { MemoryDBClient, CopySnapshotCommand } from "@aws-sdk/client-memorydb"; // ES Modules import
30
- * // const { MemoryDBClient, CopySnapshotCommand } = require("@aws-sdk/client-memorydb"); // CommonJS import
31
- * const client = new MemoryDBClient(config);
32
- * const command = new CopySnapshotCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link CopySnapshotCommandInput} for command's `input` shape.
37
- * @see {@link CopySnapshotCommandOutput} for command's `response` shape.
38
- * @see {@link MemoryDBClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
- export class CopySnapshotCommand extends $Command<
42
- CopySnapshotCommandInput,
43
- CopySnapshotCommandOutput,
44
- MemoryDBClientResolvedConfig
45
- > {
46
- // Start section: command_properties
47
- // End section: command_properties
48
-
49
- constructor(readonly input: CopySnapshotCommandInput) {
50
- // Start section: command_constructor
51
- super();
52
- // End section: command_constructor
53
- }
54
-
55
- /**
56
- * @internal
57
- */
58
- resolveMiddleware(
59
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
60
- configuration: MemoryDBClientResolvedConfig,
61
- options?: __HttpHandlerOptions
62
- ): Handler<CopySnapshotCommandInput, CopySnapshotCommandOutput> {
63
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
64
-
65
- const stack = clientStack.concat(this.middlewareStack);
66
-
67
- const { logger } = configuration;
68
- const clientName = "MemoryDBClient";
69
- const commandName = "CopySnapshotCommand";
70
- const handlerExecutionContext: HandlerExecutionContext = {
71
- logger,
72
- clientName,
73
- commandName,
74
- inputFilterSensitiveLog: CopySnapshotRequest.filterSensitiveLog,
75
- outputFilterSensitiveLog: CopySnapshotResponse.filterSensitiveLog,
76
- };
77
- const { requestHandler } = configuration;
78
- return stack.resolve(
79
- (request: FinalizeHandlerArguments<any>) =>
80
- requestHandler.handle(request.request as __HttpRequest, options || {}),
81
- handlerExecutionContext
82
- );
83
- }
84
-
85
- private serialize(input: CopySnapshotCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
86
- return serializeAws_json1_1CopySnapshotCommand(input, context);
87
- }
88
-
89
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CopySnapshotCommandOutput> {
90
- return deserializeAws_json1_1CopySnapshotCommand(output, context);
91
- }
92
-
93
- // Start section: command_body_extra
94
- // End section: command_body_extra
95
- }
@@ -1,92 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { MemoryDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MemoryDBClient";
15
- import { CreateACLRequest, CreateACLResponse } from "../models/models_0";
16
- import { deserializeAws_json1_1CreateACLCommand, serializeAws_json1_1CreateACLCommand } from "../protocols/Aws_json1_1";
17
-
18
- export interface CreateACLCommandInput extends CreateACLRequest {}
19
- export interface CreateACLCommandOutput extends CreateACLResponse, __MetadataBearer {}
20
-
21
- /**
22
- * <p>Creates an Access Control List. For more information, see <a href="https://docs.aws.amazon.com/MemoryDB/latest/devguide/clusters.acls.html">Authenticating users with Access Contol Lists (ACLs)</a>.</p>
23
- * @example
24
- * Use a bare-bones client and the command you need to make an API call.
25
- * ```javascript
26
- * import { MemoryDBClient, CreateACLCommand } from "@aws-sdk/client-memorydb"; // ES Modules import
27
- * // const { MemoryDBClient, CreateACLCommand } = require("@aws-sdk/client-memorydb"); // CommonJS import
28
- * const client = new MemoryDBClient(config);
29
- * const command = new CreateACLCommand(input);
30
- * const response = await client.send(command);
31
- * ```
32
- *
33
- * @see {@link CreateACLCommandInput} for command's `input` shape.
34
- * @see {@link CreateACLCommandOutput} for command's `response` shape.
35
- * @see {@link MemoryDBClientResolvedConfig | config} for command's `input` shape.
36
- *
37
- */
38
- export class CreateACLCommand extends $Command<
39
- CreateACLCommandInput,
40
- CreateACLCommandOutput,
41
- MemoryDBClientResolvedConfig
42
- > {
43
- // Start section: command_properties
44
- // End section: command_properties
45
-
46
- constructor(readonly input: CreateACLCommandInput) {
47
- // Start section: command_constructor
48
- super();
49
- // End section: command_constructor
50
- }
51
-
52
- /**
53
- * @internal
54
- */
55
- resolveMiddleware(
56
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
57
- configuration: MemoryDBClientResolvedConfig,
58
- options?: __HttpHandlerOptions
59
- ): Handler<CreateACLCommandInput, CreateACLCommandOutput> {
60
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
61
-
62
- const stack = clientStack.concat(this.middlewareStack);
63
-
64
- const { logger } = configuration;
65
- const clientName = "MemoryDBClient";
66
- const commandName = "CreateACLCommand";
67
- const handlerExecutionContext: HandlerExecutionContext = {
68
- logger,
69
- clientName,
70
- commandName,
71
- inputFilterSensitiveLog: CreateACLRequest.filterSensitiveLog,
72
- outputFilterSensitiveLog: CreateACLResponse.filterSensitiveLog,
73
- };
74
- const { requestHandler } = configuration;
75
- return stack.resolve(
76
- (request: FinalizeHandlerArguments<any>) =>
77
- requestHandler.handle(request.request as __HttpRequest, options || {}),
78
- handlerExecutionContext
79
- );
80
- }
81
-
82
- private serialize(input: CreateACLCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
83
- return serializeAws_json1_1CreateACLCommand(input, context);
84
- }
85
-
86
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateACLCommandOutput> {
87
- return deserializeAws_json1_1CreateACLCommand(output, context);
88
- }
89
-
90
- // Start section: command_body_extra
91
- // End section: command_body_extra
92
- }