@aws-sdk/client-memorydb 3.238.0 → 3.241.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 (96) hide show
  1. package/dist-cjs/MemoryDB.js +45 -0
  2. package/dist-cjs/commands/DescribeReservedNodesCommand.js +46 -0
  3. package/dist-cjs/commands/DescribeReservedNodesOfferingsCommand.js +46 -0
  4. package/dist-cjs/commands/PurchaseReservedNodesOfferingCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/endpoint/ruleset.js +3 -3
  7. package/dist-cjs/index.js +1 -0
  8. package/dist-cjs/models/models_0.js +92 -4
  9. package/dist-cjs/pagination/DescribeACLsPaginator.js +36 -0
  10. package/dist-cjs/pagination/DescribeClustersPaginator.js +36 -0
  11. package/dist-cjs/pagination/DescribeEngineVersionsPaginator.js +36 -0
  12. package/dist-cjs/pagination/DescribeEventsPaginator.js +36 -0
  13. package/dist-cjs/pagination/DescribeParameterGroupsPaginator.js +36 -0
  14. package/dist-cjs/pagination/DescribeParametersPaginator.js +36 -0
  15. package/dist-cjs/pagination/DescribeReservedNodesOfferingsPaginator.js +36 -0
  16. package/dist-cjs/pagination/DescribeReservedNodesPaginator.js +36 -0
  17. package/dist-cjs/pagination/DescribeServiceUpdatesPaginator.js +36 -0
  18. package/dist-cjs/pagination/DescribeSnapshotsPaginator.js +36 -0
  19. package/dist-cjs/pagination/DescribeSubnetGroupsPaginator.js +36 -0
  20. package/dist-cjs/pagination/DescribeUsersPaginator.js +36 -0
  21. package/dist-cjs/pagination/Interfaces.js +2 -0
  22. package/dist-cjs/pagination/index.js +16 -0
  23. package/dist-cjs/protocols/Aws_json1_1.js +342 -2
  24. package/dist-es/MemoryDB.js +45 -0
  25. package/dist-es/commands/DescribeReservedNodesCommand.js +42 -0
  26. package/dist-es/commands/DescribeReservedNodesOfferingsCommand.js +42 -0
  27. package/dist-es/commands/PurchaseReservedNodesOfferingCommand.js +42 -0
  28. package/dist-es/commands/index.js +3 -0
  29. package/dist-es/endpoint/ruleset.js +3 -3
  30. package/dist-es/index.js +1 -0
  31. package/dist-es/models/models_0.js +75 -0
  32. package/dist-es/pagination/DescribeACLsPaginator.js +32 -0
  33. package/dist-es/pagination/DescribeClustersPaginator.js +32 -0
  34. package/dist-es/pagination/DescribeEngineVersionsPaginator.js +32 -0
  35. package/dist-es/pagination/DescribeEventsPaginator.js +32 -0
  36. package/dist-es/pagination/DescribeParameterGroupsPaginator.js +32 -0
  37. package/dist-es/pagination/DescribeParametersPaginator.js +32 -0
  38. package/dist-es/pagination/DescribeReservedNodesOfferingsPaginator.js +32 -0
  39. package/dist-es/pagination/DescribeReservedNodesPaginator.js +32 -0
  40. package/dist-es/pagination/DescribeServiceUpdatesPaginator.js +32 -0
  41. package/dist-es/pagination/DescribeSnapshotsPaginator.js +32 -0
  42. package/dist-es/pagination/DescribeSubnetGroupsPaginator.js +32 -0
  43. package/dist-es/pagination/DescribeUsersPaginator.js +32 -0
  44. package/dist-es/pagination/Interfaces.js +1 -0
  45. package/dist-es/pagination/index.js +13 -0
  46. package/dist-es/protocols/Aws_json1_1.js +335 -1
  47. package/dist-types/MemoryDB.d.ts +21 -1
  48. package/dist-types/MemoryDBClient.d.ts +5 -2
  49. package/dist-types/commands/DescribeReservedNodesCommand.d.ts +37 -0
  50. package/dist-types/commands/DescribeReservedNodesOfferingsCommand.d.ts +37 -0
  51. package/dist-types/commands/PurchaseReservedNodesOfferingCommand.d.ts +37 -0
  52. package/dist-types/commands/TagResourceCommand.d.ts +0 -1
  53. package/dist-types/commands/index.d.ts +3 -0
  54. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  55. package/dist-types/index.d.ts +1 -0
  56. package/dist-types/models/models_0.d.ts +275 -2
  57. package/dist-types/pagination/DescribeACLsPaginator.d.ts +4 -0
  58. package/dist-types/pagination/DescribeClustersPaginator.d.ts +4 -0
  59. package/dist-types/pagination/DescribeEngineVersionsPaginator.d.ts +4 -0
  60. package/dist-types/pagination/DescribeEventsPaginator.d.ts +4 -0
  61. package/dist-types/pagination/DescribeParameterGroupsPaginator.d.ts +4 -0
  62. package/dist-types/pagination/DescribeParametersPaginator.d.ts +4 -0
  63. package/dist-types/pagination/DescribeReservedNodesOfferingsPaginator.d.ts +4 -0
  64. package/dist-types/pagination/DescribeReservedNodesPaginator.d.ts +4 -0
  65. package/dist-types/pagination/DescribeServiceUpdatesPaginator.d.ts +4 -0
  66. package/dist-types/pagination/DescribeSnapshotsPaginator.d.ts +4 -0
  67. package/dist-types/pagination/DescribeSubnetGroupsPaginator.d.ts +4 -0
  68. package/dist-types/pagination/DescribeUsersPaginator.d.ts +4 -0
  69. package/dist-types/pagination/Interfaces.d.ts +6 -0
  70. package/dist-types/pagination/index.d.ts +13 -0
  71. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  72. package/dist-types/ts3.4/MemoryDB.d.ts +51 -0
  73. package/dist-types/ts3.4/MemoryDBClient.d.ts +18 -0
  74. package/dist-types/ts3.4/commands/DescribeReservedNodesCommand.d.ts +41 -0
  75. package/dist-types/ts3.4/commands/DescribeReservedNodesOfferingsCommand.d.ts +41 -0
  76. package/dist-types/ts3.4/commands/PurchaseReservedNodesOfferingCommand.d.ts +41 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  78. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  79. package/dist-types/ts3.4/index.d.ts +1 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +115 -0
  81. package/dist-types/ts3.4/pagination/DescribeACLsPaginator.d.ts +11 -0
  82. package/dist-types/ts3.4/pagination/DescribeClustersPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/DescribeEngineVersionsPaginator.d.ts +11 -0
  84. package/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +11 -0
  85. package/dist-types/ts3.4/pagination/DescribeParameterGroupsPaginator.d.ts +11 -0
  86. package/dist-types/ts3.4/pagination/DescribeParametersPaginator.d.ts +11 -0
  87. package/dist-types/ts3.4/pagination/DescribeReservedNodesOfferingsPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/DescribeReservedNodesPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/DescribeServiceUpdatesPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/DescribeSnapshotsPaginator.d.ts +11 -0
  91. package/dist-types/ts3.4/pagination/DescribeSubnetGroupsPaginator.d.ts +11 -0
  92. package/dist-types/ts3.4/pagination/DescribeUsersPaginator.d.ts +11 -0
  93. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  94. package/dist-types/ts3.4/pagination/index.d.ts +13 -0
  95. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  96. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { MemoryDBServiceException as __BaseException } from "../models/MemoryDBServiceException";
4
- import { ACLAlreadyExistsFault, ACLNotFoundFault, ACLQuotaExceededFault, APICallRateForCustomerExceededFault, ClusterAlreadyExistsFault, ClusterNotFoundFault, ClusterQuotaForCustomerExceededFault, DefaultUserRequired, DuplicateUserNameFault, InsufficientClusterCapacityFault, InvalidACLStateFault, InvalidARNFault, InvalidClusterStateFault, InvalidCredentialsException, InvalidKMSKeyFault, InvalidNodeStateFault, InvalidParameterCombinationException, InvalidParameterGroupStateFault, InvalidParameterValueException, InvalidSnapshotStateFault, InvalidSubnet, InvalidUserStateFault, InvalidVPCNetworkStateFault, NodeQuotaForClusterExceededFault, NodeQuotaForCustomerExceededFault, NoOperationFault, ParameterGroupAlreadyExistsFault, ParameterGroupNotFoundFault, ParameterGroupQuotaExceededFault, ServiceLinkedRoleNotFoundFault, ServiceUpdateNotFoundFault, ShardNotFoundFault, ShardsPerClusterQuotaExceededFault, SnapshotAlreadyExistsFault, SnapshotNotFoundFault, SnapshotQuotaExceededFault, SubnetGroupAlreadyExistsFault, SubnetGroupInUseFault, SubnetGroupNotFoundFault, SubnetGroupQuotaExceededFault, SubnetInUse, SubnetNotAllowedFault, SubnetQuotaExceededFault, TagNotFoundFault, TagQuotaPerResourceExceeded, TestFailoverNotAvailableFault, UserAlreadyExistsFault, UserNotFoundFault, UserQuotaExceededFault, } from "../models/models_0";
4
+ import { ACLAlreadyExistsFault, ACLNotFoundFault, ACLQuotaExceededFault, APICallRateForCustomerExceededFault, ClusterAlreadyExistsFault, ClusterNotFoundFault, ClusterQuotaForCustomerExceededFault, DefaultUserRequired, DuplicateUserNameFault, InsufficientClusterCapacityFault, InvalidACLStateFault, InvalidARNFault, InvalidClusterStateFault, InvalidCredentialsException, InvalidKMSKeyFault, InvalidNodeStateFault, InvalidParameterCombinationException, InvalidParameterGroupStateFault, InvalidParameterValueException, InvalidSnapshotStateFault, InvalidSubnet, InvalidUserStateFault, InvalidVPCNetworkStateFault, NodeQuotaForClusterExceededFault, NodeQuotaForCustomerExceededFault, NoOperationFault, ParameterGroupAlreadyExistsFault, ParameterGroupNotFoundFault, ParameterGroupQuotaExceededFault, ReservedNodeAlreadyExistsFault, ReservedNodeNotFoundFault, ReservedNodeQuotaExceededFault, ReservedNodesOfferingNotFoundFault, ServiceLinkedRoleNotFoundFault, ServiceUpdateNotFoundFault, ShardNotFoundFault, ShardsPerClusterQuotaExceededFault, SnapshotAlreadyExistsFault, SnapshotNotFoundFault, SnapshotQuotaExceededFault, SubnetGroupAlreadyExistsFault, SubnetGroupInUseFault, SubnetGroupNotFoundFault, SubnetGroupQuotaExceededFault, SubnetInUse, SubnetNotAllowedFault, SubnetQuotaExceededFault, TagNotFoundFault, TagQuotaPerResourceExceeded, TestFailoverNotAvailableFault, UserAlreadyExistsFault, UserNotFoundFault, UserQuotaExceededFault, } from "../models/models_0";
5
5
  export const serializeAws_json1_1BatchUpdateClusterCommand = async (input, context) => {
6
6
  const headers = {
7
7
  "content-type": "application/x-amz-json-1.1",
@@ -182,6 +182,24 @@ export const serializeAws_json1_1DescribeParametersCommand = async (input, conte
182
182
  body = JSON.stringify(serializeAws_json1_1DescribeParametersRequest(input, context));
183
183
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
184
184
  };
185
+ export const serializeAws_json1_1DescribeReservedNodesCommand = async (input, context) => {
186
+ const headers = {
187
+ "content-type": "application/x-amz-json-1.1",
188
+ "x-amz-target": "AmazonMemoryDB.DescribeReservedNodes",
189
+ };
190
+ let body;
191
+ body = JSON.stringify(serializeAws_json1_1DescribeReservedNodesRequest(input, context));
192
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
193
+ };
194
+ export const serializeAws_json1_1DescribeReservedNodesOfferingsCommand = async (input, context) => {
195
+ const headers = {
196
+ "content-type": "application/x-amz-json-1.1",
197
+ "x-amz-target": "AmazonMemoryDB.DescribeReservedNodesOfferings",
198
+ };
199
+ let body;
200
+ body = JSON.stringify(serializeAws_json1_1DescribeReservedNodesOfferingsRequest(input, context));
201
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
202
+ };
185
203
  export const serializeAws_json1_1DescribeServiceUpdatesCommand = async (input, context) => {
186
204
  const headers = {
187
205
  "content-type": "application/x-amz-json-1.1",
@@ -245,6 +263,15 @@ export const serializeAws_json1_1ListTagsCommand = async (input, context) => {
245
263
  body = JSON.stringify(serializeAws_json1_1ListTagsRequest(input, context));
246
264
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
247
265
  };
266
+ export const serializeAws_json1_1PurchaseReservedNodesOfferingCommand = async (input, context) => {
267
+ const headers = {
268
+ "content-type": "application/x-amz-json-1.1",
269
+ "x-amz-target": "AmazonMemoryDB.PurchaseReservedNodesOffering",
270
+ };
271
+ let body;
272
+ body = JSON.stringify(serializeAws_json1_1PurchaseReservedNodesOfferingRequest(input, context));
273
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
+ };
248
275
  export const serializeAws_json1_1ResetParameterGroupCommand = async (input, context) => {
249
276
  const headers = {
250
277
  "content-type": "application/x-amz-json-1.1",
@@ -1235,6 +1262,90 @@ const deserializeAws_json1_1DescribeParametersCommandError = async (output, cont
1235
1262
  });
1236
1263
  }
1237
1264
  };
1265
+ export const deserializeAws_json1_1DescribeReservedNodesCommand = async (output, context) => {
1266
+ if (output.statusCode >= 300) {
1267
+ return deserializeAws_json1_1DescribeReservedNodesCommandError(output, context);
1268
+ }
1269
+ const data = await parseBody(output.body, context);
1270
+ let contents = {};
1271
+ contents = deserializeAws_json1_1DescribeReservedNodesResponse(data, context);
1272
+ const response = {
1273
+ $metadata: deserializeMetadata(output),
1274
+ ...contents,
1275
+ };
1276
+ return Promise.resolve(response);
1277
+ };
1278
+ const deserializeAws_json1_1DescribeReservedNodesCommandError = async (output, context) => {
1279
+ const parsedOutput = {
1280
+ ...output,
1281
+ body: await parseErrorBody(output.body, context),
1282
+ };
1283
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1284
+ switch (errorCode) {
1285
+ case "InvalidParameterCombinationException":
1286
+ case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1287
+ throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
1288
+ case "InvalidParameterValueException":
1289
+ case "com.amazonaws.memorydb#InvalidParameterValueException":
1290
+ throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
1291
+ case "ReservedNodeNotFoundFault":
1292
+ case "com.amazonaws.memorydb#ReservedNodeNotFoundFault":
1293
+ throw await deserializeAws_json1_1ReservedNodeNotFoundFaultResponse(parsedOutput, context);
1294
+ case "ServiceLinkedRoleNotFoundFault":
1295
+ case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1296
+ throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
1297
+ default:
1298
+ const parsedBody = parsedOutput.body;
1299
+ throwDefaultError({
1300
+ output,
1301
+ parsedBody,
1302
+ exceptionCtor: __BaseException,
1303
+ errorCode,
1304
+ });
1305
+ }
1306
+ };
1307
+ export const deserializeAws_json1_1DescribeReservedNodesOfferingsCommand = async (output, context) => {
1308
+ if (output.statusCode >= 300) {
1309
+ return deserializeAws_json1_1DescribeReservedNodesOfferingsCommandError(output, context);
1310
+ }
1311
+ const data = await parseBody(output.body, context);
1312
+ let contents = {};
1313
+ contents = deserializeAws_json1_1DescribeReservedNodesOfferingsResponse(data, context);
1314
+ const response = {
1315
+ $metadata: deserializeMetadata(output),
1316
+ ...contents,
1317
+ };
1318
+ return Promise.resolve(response);
1319
+ };
1320
+ const deserializeAws_json1_1DescribeReservedNodesOfferingsCommandError = async (output, context) => {
1321
+ const parsedOutput = {
1322
+ ...output,
1323
+ body: await parseErrorBody(output.body, context),
1324
+ };
1325
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1326
+ switch (errorCode) {
1327
+ case "InvalidParameterCombinationException":
1328
+ case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1329
+ throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
1330
+ case "InvalidParameterValueException":
1331
+ case "com.amazonaws.memorydb#InvalidParameterValueException":
1332
+ throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
1333
+ case "ReservedNodesOfferingNotFoundFault":
1334
+ case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
1335
+ throw await deserializeAws_json1_1ReservedNodesOfferingNotFoundFaultResponse(parsedOutput, context);
1336
+ case "ServiceLinkedRoleNotFoundFault":
1337
+ case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1338
+ throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
1339
+ default:
1340
+ const parsedBody = parsedOutput.body;
1341
+ throwDefaultError({
1342
+ output,
1343
+ parsedBody,
1344
+ exceptionCtor: __BaseException,
1345
+ errorCode,
1346
+ });
1347
+ }
1348
+ };
1238
1349
  export const deserializeAws_json1_1DescribeServiceUpdatesCommand = async (output, context) => {
1239
1350
  if (output.statusCode >= 300) {
1240
1351
  return deserializeAws_json1_1DescribeServiceUpdatesCommandError(output, context);
@@ -1538,6 +1649,57 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
1538
1649
  });
1539
1650
  }
1540
1651
  };
1652
+ export const deserializeAws_json1_1PurchaseReservedNodesOfferingCommand = async (output, context) => {
1653
+ if (output.statusCode >= 300) {
1654
+ return deserializeAws_json1_1PurchaseReservedNodesOfferingCommandError(output, context);
1655
+ }
1656
+ const data = await parseBody(output.body, context);
1657
+ let contents = {};
1658
+ contents = deserializeAws_json1_1PurchaseReservedNodesOfferingResponse(data, context);
1659
+ const response = {
1660
+ $metadata: deserializeMetadata(output),
1661
+ ...contents,
1662
+ };
1663
+ return Promise.resolve(response);
1664
+ };
1665
+ const deserializeAws_json1_1PurchaseReservedNodesOfferingCommandError = async (output, context) => {
1666
+ const parsedOutput = {
1667
+ ...output,
1668
+ body: await parseErrorBody(output.body, context),
1669
+ };
1670
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1671
+ switch (errorCode) {
1672
+ case "InvalidParameterCombinationException":
1673
+ case "com.amazonaws.memorydb#InvalidParameterCombinationException":
1674
+ throw await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context);
1675
+ case "InvalidParameterValueException":
1676
+ case "com.amazonaws.memorydb#InvalidParameterValueException":
1677
+ throw await deserializeAws_json1_1InvalidParameterValueExceptionResponse(parsedOutput, context);
1678
+ case "ReservedNodeAlreadyExistsFault":
1679
+ case "com.amazonaws.memorydb#ReservedNodeAlreadyExistsFault":
1680
+ throw await deserializeAws_json1_1ReservedNodeAlreadyExistsFaultResponse(parsedOutput, context);
1681
+ case "ReservedNodeQuotaExceededFault":
1682
+ case "com.amazonaws.memorydb#ReservedNodeQuotaExceededFault":
1683
+ throw await deserializeAws_json1_1ReservedNodeQuotaExceededFaultResponse(parsedOutput, context);
1684
+ case "ReservedNodesOfferingNotFoundFault":
1685
+ case "com.amazonaws.memorydb#ReservedNodesOfferingNotFoundFault":
1686
+ throw await deserializeAws_json1_1ReservedNodesOfferingNotFoundFaultResponse(parsedOutput, context);
1687
+ case "ServiceLinkedRoleNotFoundFault":
1688
+ case "com.amazonaws.memorydb#ServiceLinkedRoleNotFoundFault":
1689
+ throw await deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse(parsedOutput, context);
1690
+ case "TagQuotaPerResourceExceeded":
1691
+ case "com.amazonaws.memorydb#TagQuotaPerResourceExceeded":
1692
+ throw await deserializeAws_json1_1TagQuotaPerResourceExceededResponse(parsedOutput, context);
1693
+ default:
1694
+ const parsedBody = parsedOutput.body;
1695
+ throwDefaultError({
1696
+ output,
1697
+ parsedBody,
1698
+ exceptionCtor: __BaseException,
1699
+ errorCode,
1700
+ });
1701
+ }
1702
+ };
1541
1703
  export const deserializeAws_json1_1ResetParameterGroupCommand = async (output, context) => {
1542
1704
  if (output.statusCode >= 300) {
1543
1705
  return deserializeAws_json1_1ResetParameterGroupCommandError(output, context);
@@ -2228,6 +2390,42 @@ const deserializeAws_json1_1ParameterGroupQuotaExceededFaultResponse = async (pa
2228
2390
  });
2229
2391
  return __decorateServiceException(exception, body);
2230
2392
  };
2393
+ const deserializeAws_json1_1ReservedNodeAlreadyExistsFaultResponse = async (parsedOutput, context) => {
2394
+ const body = parsedOutput.body;
2395
+ const deserialized = deserializeAws_json1_1ReservedNodeAlreadyExistsFault(body, context);
2396
+ const exception = new ReservedNodeAlreadyExistsFault({
2397
+ $metadata: deserializeMetadata(parsedOutput),
2398
+ ...deserialized,
2399
+ });
2400
+ return __decorateServiceException(exception, body);
2401
+ };
2402
+ const deserializeAws_json1_1ReservedNodeNotFoundFaultResponse = async (parsedOutput, context) => {
2403
+ const body = parsedOutput.body;
2404
+ const deserialized = deserializeAws_json1_1ReservedNodeNotFoundFault(body, context);
2405
+ const exception = new ReservedNodeNotFoundFault({
2406
+ $metadata: deserializeMetadata(parsedOutput),
2407
+ ...deserialized,
2408
+ });
2409
+ return __decorateServiceException(exception, body);
2410
+ };
2411
+ const deserializeAws_json1_1ReservedNodeQuotaExceededFaultResponse = async (parsedOutput, context) => {
2412
+ const body = parsedOutput.body;
2413
+ const deserialized = deserializeAws_json1_1ReservedNodeQuotaExceededFault(body, context);
2414
+ const exception = new ReservedNodeQuotaExceededFault({
2415
+ $metadata: deserializeMetadata(parsedOutput),
2416
+ ...deserialized,
2417
+ });
2418
+ return __decorateServiceException(exception, body);
2419
+ };
2420
+ const deserializeAws_json1_1ReservedNodesOfferingNotFoundFaultResponse = async (parsedOutput, context) => {
2421
+ const body = parsedOutput.body;
2422
+ const deserialized = deserializeAws_json1_1ReservedNodesOfferingNotFoundFault(body, context);
2423
+ const exception = new ReservedNodesOfferingNotFoundFault({
2424
+ $metadata: deserializeMetadata(parsedOutput),
2425
+ ...deserialized,
2426
+ });
2427
+ return __decorateServiceException(exception, body);
2428
+ };
2231
2429
  const deserializeAws_json1_1ServiceLinkedRoleNotFoundFaultResponse = async (parsedOutput, context) => {
2232
2430
  const body = parsedOutput.body;
2233
2431
  const deserialized = deserializeAws_json1_1ServiceLinkedRoleNotFoundFault(body, context);
@@ -2591,6 +2789,27 @@ const serializeAws_json1_1DescribeParametersRequest = (input, context) => {
2591
2789
  ...(input.ParameterGroupName != null && { ParameterGroupName: input.ParameterGroupName }),
2592
2790
  };
2593
2791
  };
2792
+ const serializeAws_json1_1DescribeReservedNodesOfferingsRequest = (input, context) => {
2793
+ return {
2794
+ ...(input.Duration != null && { Duration: input.Duration }),
2795
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2796
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2797
+ ...(input.NodeType != null && { NodeType: input.NodeType }),
2798
+ ...(input.OfferingType != null && { OfferingType: input.OfferingType }),
2799
+ ...(input.ReservedNodesOfferingId != null && { ReservedNodesOfferingId: input.ReservedNodesOfferingId }),
2800
+ };
2801
+ };
2802
+ const serializeAws_json1_1DescribeReservedNodesRequest = (input, context) => {
2803
+ return {
2804
+ ...(input.Duration != null && { Duration: input.Duration }),
2805
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
2806
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
2807
+ ...(input.NodeType != null && { NodeType: input.NodeType }),
2808
+ ...(input.OfferingType != null && { OfferingType: input.OfferingType }),
2809
+ ...(input.ReservationId != null && { ReservationId: input.ReservationId }),
2810
+ ...(input.ReservedNodesOfferingId != null && { ReservedNodesOfferingId: input.ReservedNodesOfferingId }),
2811
+ };
2812
+ };
2594
2813
  const serializeAws_json1_1DescribeServiceUpdatesRequest = (input, context) => {
2595
2814
  return {
2596
2815
  ...(input.ClusterNames != null && {
@@ -2697,6 +2916,14 @@ const serializeAws_json1_1PasswordListInput = (input, context) => {
2697
2916
  return entry;
2698
2917
  });
2699
2918
  };
2919
+ const serializeAws_json1_1PurchaseReservedNodesOfferingRequest = (input, context) => {
2920
+ return {
2921
+ ...(input.NodeCount != null && { NodeCount: input.NodeCount }),
2922
+ ...(input.ReservationId != null && { ReservationId: input.ReservationId }),
2923
+ ...(input.ReservedNodesOfferingId != null && { ReservedNodesOfferingId: input.ReservedNodesOfferingId }),
2924
+ ...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
2925
+ };
2926
+ };
2700
2927
  const serializeAws_json1_1ReplicaConfigurationRequest = (input, context) => {
2701
2928
  return {
2702
2929
  ...(input.ReplicaCount != null && { ReplicaCount: input.ReplicaCount }),
@@ -3137,6 +3364,20 @@ const deserializeAws_json1_1DescribeParametersResponse = (output, context) => {
3137
3364
  Parameters: output.Parameters != null ? deserializeAws_json1_1ParametersList(output.Parameters, context) : undefined,
3138
3365
  };
3139
3366
  };
3367
+ const deserializeAws_json1_1DescribeReservedNodesOfferingsResponse = (output, context) => {
3368
+ return {
3369
+ NextToken: __expectString(output.NextToken),
3370
+ ReservedNodesOfferings: output.ReservedNodesOfferings != null
3371
+ ? deserializeAws_json1_1ReservedNodesOfferingList(output.ReservedNodesOfferings, context)
3372
+ : undefined,
3373
+ };
3374
+ };
3375
+ const deserializeAws_json1_1DescribeReservedNodesResponse = (output, context) => {
3376
+ return {
3377
+ NextToken: __expectString(output.NextToken),
3378
+ ReservedNodes: output.ReservedNodes != null ? deserializeAws_json1_1ReservedNodeList(output.ReservedNodes, context) : undefined,
3379
+ };
3380
+ };
3140
3381
  const deserializeAws_json1_1DescribeServiceUpdatesResponse = (output, context) => {
3141
3382
  return {
3142
3383
  NextToken: __expectString(output.NextToken),
@@ -3419,6 +3660,99 @@ const deserializeAws_json1_1PendingModifiedServiceUpdateList = (output, context)
3419
3660
  });
3420
3661
  return retVal;
3421
3662
  };
3663
+ const deserializeAws_json1_1PurchaseReservedNodesOfferingResponse = (output, context) => {
3664
+ return {
3665
+ ReservedNode: output.ReservedNode != null ? deserializeAws_json1_1ReservedNode(output.ReservedNode, context) : undefined,
3666
+ };
3667
+ };
3668
+ const deserializeAws_json1_1RecurringCharge = (output, context) => {
3669
+ return {
3670
+ RecurringChargeAmount: __limitedParseDouble(output.RecurringChargeAmount),
3671
+ RecurringChargeFrequency: __expectString(output.RecurringChargeFrequency),
3672
+ };
3673
+ };
3674
+ const deserializeAws_json1_1RecurringChargeList = (output, context) => {
3675
+ const retVal = (output || [])
3676
+ .filter((e) => e != null)
3677
+ .map((entry) => {
3678
+ if (entry === null) {
3679
+ return null;
3680
+ }
3681
+ return deserializeAws_json1_1RecurringCharge(entry, context);
3682
+ });
3683
+ return retVal;
3684
+ };
3685
+ const deserializeAws_json1_1ReservedNode = (output, context) => {
3686
+ return {
3687
+ ARN: __expectString(output.ARN),
3688
+ Duration: __expectInt32(output.Duration),
3689
+ FixedPrice: __limitedParseDouble(output.FixedPrice),
3690
+ NodeCount: __expectInt32(output.NodeCount),
3691
+ NodeType: __expectString(output.NodeType),
3692
+ OfferingType: __expectString(output.OfferingType),
3693
+ RecurringCharges: output.RecurringCharges != null
3694
+ ? deserializeAws_json1_1RecurringChargeList(output.RecurringCharges, context)
3695
+ : undefined,
3696
+ ReservationId: __expectString(output.ReservationId),
3697
+ ReservedNodesOfferingId: __expectString(output.ReservedNodesOfferingId),
3698
+ StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
3699
+ State: __expectString(output.State),
3700
+ };
3701
+ };
3702
+ const deserializeAws_json1_1ReservedNodeAlreadyExistsFault = (output, context) => {
3703
+ return {
3704
+ message: __expectString(output.message),
3705
+ };
3706
+ };
3707
+ const deserializeAws_json1_1ReservedNodeList = (output, context) => {
3708
+ const retVal = (output || [])
3709
+ .filter((e) => e != null)
3710
+ .map((entry) => {
3711
+ if (entry === null) {
3712
+ return null;
3713
+ }
3714
+ return deserializeAws_json1_1ReservedNode(entry, context);
3715
+ });
3716
+ return retVal;
3717
+ };
3718
+ const deserializeAws_json1_1ReservedNodeNotFoundFault = (output, context) => {
3719
+ return {
3720
+ message: __expectString(output.message),
3721
+ };
3722
+ };
3723
+ const deserializeAws_json1_1ReservedNodeQuotaExceededFault = (output, context) => {
3724
+ return {
3725
+ message: __expectString(output.message),
3726
+ };
3727
+ };
3728
+ const deserializeAws_json1_1ReservedNodesOffering = (output, context) => {
3729
+ return {
3730
+ Duration: __expectInt32(output.Duration),
3731
+ FixedPrice: __limitedParseDouble(output.FixedPrice),
3732
+ NodeType: __expectString(output.NodeType),
3733
+ OfferingType: __expectString(output.OfferingType),
3734
+ RecurringCharges: output.RecurringCharges != null
3735
+ ? deserializeAws_json1_1RecurringChargeList(output.RecurringCharges, context)
3736
+ : undefined,
3737
+ ReservedNodesOfferingId: __expectString(output.ReservedNodesOfferingId),
3738
+ };
3739
+ };
3740
+ const deserializeAws_json1_1ReservedNodesOfferingList = (output, context) => {
3741
+ const retVal = (output || [])
3742
+ .filter((e) => e != null)
3743
+ .map((entry) => {
3744
+ if (entry === null) {
3745
+ return null;
3746
+ }
3747
+ return deserializeAws_json1_1ReservedNodesOffering(entry, context);
3748
+ });
3749
+ return retVal;
3750
+ };
3751
+ const deserializeAws_json1_1ReservedNodesOfferingNotFoundFault = (output, context) => {
3752
+ return {
3753
+ message: __expectString(output.message),
3754
+ };
3755
+ };
3422
3756
  const deserializeAws_json1_1ResetParameterGroupResponse = (output, context) => {
3423
3757
  return {
3424
3758
  ParameterGroup: output.ParameterGroup != null ? deserializeAws_json1_1ParameterGroup(output.ParameterGroup, context) : undefined,
@@ -19,6 +19,8 @@ import { DescribeEngineVersionsCommandInput, DescribeEngineVersionsCommandOutput
19
19
  import { DescribeEventsCommandInput, DescribeEventsCommandOutput } from "./commands/DescribeEventsCommand";
20
20
  import { DescribeParameterGroupsCommandInput, DescribeParameterGroupsCommandOutput } from "./commands/DescribeParameterGroupsCommand";
21
21
  import { DescribeParametersCommandInput, DescribeParametersCommandOutput } from "./commands/DescribeParametersCommand";
22
+ import { DescribeReservedNodesCommandInput, DescribeReservedNodesCommandOutput } from "./commands/DescribeReservedNodesCommand";
23
+ import { DescribeReservedNodesOfferingsCommandInput, DescribeReservedNodesOfferingsCommandOutput } from "./commands/DescribeReservedNodesOfferingsCommand";
22
24
  import { DescribeServiceUpdatesCommandInput, DescribeServiceUpdatesCommandOutput } from "./commands/DescribeServiceUpdatesCommand";
23
25
  import { DescribeSnapshotsCommandInput, DescribeSnapshotsCommandOutput } from "./commands/DescribeSnapshotsCommand";
24
26
  import { DescribeSubnetGroupsCommandInput, DescribeSubnetGroupsCommandOutput } from "./commands/DescribeSubnetGroupsCommand";
@@ -26,6 +28,7 @@ import { DescribeUsersCommandInput, DescribeUsersCommandOutput } from "./command
26
28
  import { FailoverShardCommandInput, FailoverShardCommandOutput } from "./commands/FailoverShardCommand";
27
29
  import { ListAllowedNodeTypeUpdatesCommandInput, ListAllowedNodeTypeUpdatesCommandOutput } from "./commands/ListAllowedNodeTypeUpdatesCommand";
28
30
  import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
31
+ import { PurchaseReservedNodesOfferingCommandInput, PurchaseReservedNodesOfferingCommandOutput } from "./commands/PurchaseReservedNodesOfferingCommand";
29
32
  import { ResetParameterGroupCommandInput, ResetParameterGroupCommandOutput } from "./commands/ResetParameterGroupCommand";
30
33
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
31
34
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -170,6 +173,18 @@ export declare class MemoryDB extends MemoryDBClient {
170
173
  describeParameters(args: DescribeParametersCommandInput, options?: __HttpHandlerOptions): Promise<DescribeParametersCommandOutput>;
171
174
  describeParameters(args: DescribeParametersCommandInput, cb: (err: any, data?: DescribeParametersCommandOutput) => void): void;
172
175
  describeParameters(args: DescribeParametersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeParametersCommandOutput) => void): void;
176
+ /**
177
+ * <p>Returns information about reserved nodes for this account, or about a specified reserved node.</p>
178
+ */
179
+ describeReservedNodes(args: DescribeReservedNodesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeReservedNodesCommandOutput>;
180
+ describeReservedNodes(args: DescribeReservedNodesCommandInput, cb: (err: any, data?: DescribeReservedNodesCommandOutput) => void): void;
181
+ describeReservedNodes(args: DescribeReservedNodesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeReservedNodesCommandOutput) => void): void;
182
+ /**
183
+ * <p>Lists available reserved node offerings.</p>
184
+ */
185
+ describeReservedNodesOfferings(args: DescribeReservedNodesOfferingsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeReservedNodesOfferingsCommandOutput>;
186
+ describeReservedNodesOfferings(args: DescribeReservedNodesOfferingsCommandInput, cb: (err: any, data?: DescribeReservedNodesOfferingsCommandOutput) => void): void;
187
+ describeReservedNodesOfferings(args: DescribeReservedNodesOfferingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeReservedNodesOfferingsCommandOutput) => void): void;
173
188
  /**
174
189
  * <p>Returns details of the service updates</p>
175
190
  */
@@ -220,6 +235,12 @@ export declare class MemoryDB extends MemoryDBClient {
220
235
  listTags(args: ListTagsCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsCommandOutput>;
221
236
  listTags(args: ListTagsCommandInput, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
222
237
  listTags(args: ListTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
238
+ /**
239
+ * <p>Allows you to purchase a reserved node offering. Reserved nodes are not eligible for cancellation and are non-refundable.</p>
240
+ */
241
+ purchaseReservedNodesOffering(args: PurchaseReservedNodesOfferingCommandInput, options?: __HttpHandlerOptions): Promise<PurchaseReservedNodesOfferingCommandOutput>;
242
+ purchaseReservedNodesOffering(args: PurchaseReservedNodesOfferingCommandInput, cb: (err: any, data?: PurchaseReservedNodesOfferingCommandOutput) => void): void;
243
+ purchaseReservedNodesOffering(args: PurchaseReservedNodesOfferingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PurchaseReservedNodesOfferingCommandOutput) => void): void;
223
244
  /**
224
245
  * <p>Modifies the parameters of a parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire parameter group, specify the AllParameters and ParameterGroupName parameters.</p>
225
246
  */
@@ -232,7 +253,6 @@ export declare class MemoryDB extends MemoryDBClient {
232
253
  * When you add or remove tags on clusters, those actions will be replicated to all nodes in the cluster. For more information, see
233
254
  *
234
255
  * <a href="https://docs.aws.amazon.com/MemoryDB/latest/devguide/iam.resourcelevelpermissions.html">Resource-level permissions</a>.</p>
235
- *
236
256
  * <p>For example, you can use cost-allocation tags to your MemoryDB resources, Amazon generates a cost allocation report as a comma-separated value
237
257
  * (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories
238
258
  * (such as cost centers, application names, or owners) to organize your costs across multiple services.
@@ -27,6 +27,8 @@ import { DescribeEngineVersionsCommandInput, DescribeEngineVersionsCommandOutput
27
27
  import { DescribeEventsCommandInput, DescribeEventsCommandOutput } from "./commands/DescribeEventsCommand";
28
28
  import { DescribeParameterGroupsCommandInput, DescribeParameterGroupsCommandOutput } from "./commands/DescribeParameterGroupsCommand";
29
29
  import { DescribeParametersCommandInput, DescribeParametersCommandOutput } from "./commands/DescribeParametersCommand";
30
+ import { DescribeReservedNodesCommandInput, DescribeReservedNodesCommandOutput } from "./commands/DescribeReservedNodesCommand";
31
+ import { DescribeReservedNodesOfferingsCommandInput, DescribeReservedNodesOfferingsCommandOutput } from "./commands/DescribeReservedNodesOfferingsCommand";
30
32
  import { DescribeServiceUpdatesCommandInput, DescribeServiceUpdatesCommandOutput } from "./commands/DescribeServiceUpdatesCommand";
31
33
  import { DescribeSnapshotsCommandInput, DescribeSnapshotsCommandOutput } from "./commands/DescribeSnapshotsCommand";
32
34
  import { DescribeSubnetGroupsCommandInput, DescribeSubnetGroupsCommandOutput } from "./commands/DescribeSubnetGroupsCommand";
@@ -34,6 +36,7 @@ import { DescribeUsersCommandInput, DescribeUsersCommandOutput } from "./command
34
36
  import { FailoverShardCommandInput, FailoverShardCommandOutput } from "./commands/FailoverShardCommand";
35
37
  import { ListAllowedNodeTypeUpdatesCommandInput, ListAllowedNodeTypeUpdatesCommandOutput } from "./commands/ListAllowedNodeTypeUpdatesCommand";
36
38
  import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
39
+ import { PurchaseReservedNodesOfferingCommandInput, PurchaseReservedNodesOfferingCommandOutput } from "./commands/PurchaseReservedNodesOfferingCommand";
37
40
  import { ResetParameterGroupCommandInput, ResetParameterGroupCommandOutput } from "./commands/ResetParameterGroupCommand";
38
41
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
39
42
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -43,8 +46,8 @@ import { UpdateParameterGroupCommandInput, UpdateParameterGroupCommandOutput } f
43
46
  import { UpdateSubnetGroupCommandInput, UpdateSubnetGroupCommandOutput } from "./commands/UpdateSubnetGroupCommand";
44
47
  import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
45
48
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
46
- export declare type ServiceInputTypes = BatchUpdateClusterCommandInput | CopySnapshotCommandInput | CreateACLCommandInput | CreateClusterCommandInput | CreateParameterGroupCommandInput | CreateSnapshotCommandInput | CreateSubnetGroupCommandInput | CreateUserCommandInput | DeleteACLCommandInput | DeleteClusterCommandInput | DeleteParameterGroupCommandInput | DeleteSnapshotCommandInput | DeleteSubnetGroupCommandInput | DeleteUserCommandInput | DescribeACLsCommandInput | DescribeClustersCommandInput | DescribeEngineVersionsCommandInput | DescribeEventsCommandInput | DescribeParameterGroupsCommandInput | DescribeParametersCommandInput | DescribeServiceUpdatesCommandInput | DescribeSnapshotsCommandInput | DescribeSubnetGroupsCommandInput | DescribeUsersCommandInput | FailoverShardCommandInput | ListAllowedNodeTypeUpdatesCommandInput | ListTagsCommandInput | ResetParameterGroupCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateACLCommandInput | UpdateClusterCommandInput | UpdateParameterGroupCommandInput | UpdateSubnetGroupCommandInput | UpdateUserCommandInput;
47
- export declare type ServiceOutputTypes = BatchUpdateClusterCommandOutput | CopySnapshotCommandOutput | CreateACLCommandOutput | CreateClusterCommandOutput | CreateParameterGroupCommandOutput | CreateSnapshotCommandOutput | CreateSubnetGroupCommandOutput | CreateUserCommandOutput | DeleteACLCommandOutput | DeleteClusterCommandOutput | DeleteParameterGroupCommandOutput | DeleteSnapshotCommandOutput | DeleteSubnetGroupCommandOutput | DeleteUserCommandOutput | DescribeACLsCommandOutput | DescribeClustersCommandOutput | DescribeEngineVersionsCommandOutput | DescribeEventsCommandOutput | DescribeParameterGroupsCommandOutput | DescribeParametersCommandOutput | DescribeServiceUpdatesCommandOutput | DescribeSnapshotsCommandOutput | DescribeSubnetGroupsCommandOutput | DescribeUsersCommandOutput | FailoverShardCommandOutput | ListAllowedNodeTypeUpdatesCommandOutput | ListTagsCommandOutput | ResetParameterGroupCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateACLCommandOutput | UpdateClusterCommandOutput | UpdateParameterGroupCommandOutput | UpdateSubnetGroupCommandOutput | UpdateUserCommandOutput;
49
+ export declare type ServiceInputTypes = BatchUpdateClusterCommandInput | CopySnapshotCommandInput | CreateACLCommandInput | CreateClusterCommandInput | CreateParameterGroupCommandInput | CreateSnapshotCommandInput | CreateSubnetGroupCommandInput | CreateUserCommandInput | DeleteACLCommandInput | DeleteClusterCommandInput | DeleteParameterGroupCommandInput | DeleteSnapshotCommandInput | DeleteSubnetGroupCommandInput | DeleteUserCommandInput | DescribeACLsCommandInput | DescribeClustersCommandInput | DescribeEngineVersionsCommandInput | DescribeEventsCommandInput | DescribeParameterGroupsCommandInput | DescribeParametersCommandInput | DescribeReservedNodesCommandInput | DescribeReservedNodesOfferingsCommandInput | DescribeServiceUpdatesCommandInput | DescribeSnapshotsCommandInput | DescribeSubnetGroupsCommandInput | DescribeUsersCommandInput | FailoverShardCommandInput | ListAllowedNodeTypeUpdatesCommandInput | ListTagsCommandInput | PurchaseReservedNodesOfferingCommandInput | ResetParameterGroupCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateACLCommandInput | UpdateClusterCommandInput | UpdateParameterGroupCommandInput | UpdateSubnetGroupCommandInput | UpdateUserCommandInput;
50
+ export declare type ServiceOutputTypes = BatchUpdateClusterCommandOutput | CopySnapshotCommandOutput | CreateACLCommandOutput | CreateClusterCommandOutput | CreateParameterGroupCommandOutput | CreateSnapshotCommandOutput | CreateSubnetGroupCommandOutput | CreateUserCommandOutput | DeleteACLCommandOutput | DeleteClusterCommandOutput | DeleteParameterGroupCommandOutput | DeleteSnapshotCommandOutput | DeleteSubnetGroupCommandOutput | DeleteUserCommandOutput | DescribeACLsCommandOutput | DescribeClustersCommandOutput | DescribeEngineVersionsCommandOutput | DescribeEventsCommandOutput | DescribeParameterGroupsCommandOutput | DescribeParametersCommandOutput | DescribeReservedNodesCommandOutput | DescribeReservedNodesOfferingsCommandOutput | DescribeServiceUpdatesCommandOutput | DescribeSnapshotsCommandOutput | DescribeSubnetGroupsCommandOutput | DescribeUsersCommandOutput | FailoverShardCommandOutput | ListAllowedNodeTypeUpdatesCommandOutput | ListTagsCommandOutput | PurchaseReservedNodesOfferingCommandOutput | ResetParameterGroupCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateACLCommandOutput | UpdateClusterCommandOutput | UpdateParameterGroupCommandOutput | UpdateSubnetGroupCommandOutput | UpdateUserCommandOutput;
48
51
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
49
52
  /**
50
53
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,37 @@
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 { MemoryDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MemoryDBClient";
5
+ import { DescribeReservedNodesRequest, DescribeReservedNodesResponse } from "../models/models_0";
6
+ export interface DescribeReservedNodesCommandInput extends DescribeReservedNodesRequest {
7
+ }
8
+ export interface DescribeReservedNodesCommandOutput extends DescribeReservedNodesResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Returns information about reserved nodes for this account, or about a specified reserved node.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { MemoryDBClient, DescribeReservedNodesCommand } from "@aws-sdk/client-memorydb"; // ES Modules import
16
+ * // const { MemoryDBClient, DescribeReservedNodesCommand } = require("@aws-sdk/client-memorydb"); // CommonJS import
17
+ * const client = new MemoryDBClient(config);
18
+ * const command = new DescribeReservedNodesCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link DescribeReservedNodesCommandInput} for command's `input` shape.
23
+ * @see {@link DescribeReservedNodesCommandOutput} for command's `response` shape.
24
+ * @see {@link MemoryDBClientResolvedConfig | config} for MemoryDBClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class DescribeReservedNodesCommand extends $Command<DescribeReservedNodesCommandInput, DescribeReservedNodesCommandOutput, MemoryDBClientResolvedConfig> {
28
+ readonly input: DescribeReservedNodesCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: DescribeReservedNodesCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MemoryDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeReservedNodesCommandInput, DescribeReservedNodesCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,37 @@
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 { MemoryDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MemoryDBClient";
5
+ import { DescribeReservedNodesOfferingsRequest, DescribeReservedNodesOfferingsResponse } from "../models/models_0";
6
+ export interface DescribeReservedNodesOfferingsCommandInput extends DescribeReservedNodesOfferingsRequest {
7
+ }
8
+ export interface DescribeReservedNodesOfferingsCommandOutput extends DescribeReservedNodesOfferingsResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Lists available reserved node offerings.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { MemoryDBClient, DescribeReservedNodesOfferingsCommand } from "@aws-sdk/client-memorydb"; // ES Modules import
16
+ * // const { MemoryDBClient, DescribeReservedNodesOfferingsCommand } = require("@aws-sdk/client-memorydb"); // CommonJS import
17
+ * const client = new MemoryDBClient(config);
18
+ * const command = new DescribeReservedNodesOfferingsCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link DescribeReservedNodesOfferingsCommandInput} for command's `input` shape.
23
+ * @see {@link DescribeReservedNodesOfferingsCommandOutput} for command's `response` shape.
24
+ * @see {@link MemoryDBClientResolvedConfig | config} for MemoryDBClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class DescribeReservedNodesOfferingsCommand extends $Command<DescribeReservedNodesOfferingsCommandInput, DescribeReservedNodesOfferingsCommandOutput, MemoryDBClientResolvedConfig> {
28
+ readonly input: DescribeReservedNodesOfferingsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: DescribeReservedNodesOfferingsCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MemoryDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeReservedNodesOfferingsCommandInput, DescribeReservedNodesOfferingsCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -0,0 +1,37 @@
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 { MemoryDBClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MemoryDBClient";
5
+ import { PurchaseReservedNodesOfferingRequest, PurchaseReservedNodesOfferingResponse } from "../models/models_0";
6
+ export interface PurchaseReservedNodesOfferingCommandInput extends PurchaseReservedNodesOfferingRequest {
7
+ }
8
+ export interface PurchaseReservedNodesOfferingCommandOutput extends PurchaseReservedNodesOfferingResponse, __MetadataBearer {
9
+ }
10
+ /**
11
+ * <p>Allows you to purchase a reserved node offering. Reserved nodes are not eligible for cancellation and are non-refundable.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { MemoryDBClient, PurchaseReservedNodesOfferingCommand } from "@aws-sdk/client-memorydb"; // ES Modules import
16
+ * // const { MemoryDBClient, PurchaseReservedNodesOfferingCommand } = require("@aws-sdk/client-memorydb"); // CommonJS import
17
+ * const client = new MemoryDBClient(config);
18
+ * const command = new PurchaseReservedNodesOfferingCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link PurchaseReservedNodesOfferingCommandInput} for command's `input` shape.
23
+ * @see {@link PurchaseReservedNodesOfferingCommandOutput} for command's `response` shape.
24
+ * @see {@link MemoryDBClientResolvedConfig | config} for MemoryDBClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class PurchaseReservedNodesOfferingCommand extends $Command<PurchaseReservedNodesOfferingCommandInput, PurchaseReservedNodesOfferingCommandOutput, MemoryDBClientResolvedConfig> {
28
+ readonly input: PurchaseReservedNodesOfferingCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: PurchaseReservedNodesOfferingCommandInput);
31
+ /**
32
+ * @internal
33
+ */
34
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MemoryDBClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PurchaseReservedNodesOfferingCommandInput, PurchaseReservedNodesOfferingCommandOutput>;
35
+ private serialize;
36
+ private deserialize;
37
+ }
@@ -13,7 +13,6 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
13
13
  * When you add or remove tags on clusters, those actions will be replicated to all nodes in the cluster. For more information, see
14
14
  *
15
15
  * <a href="https://docs.aws.amazon.com/MemoryDB/latest/devguide/iam.resourcelevelpermissions.html">Resource-level permissions</a>.</p>
16
- *
17
16
  * <p>For example, you can use cost-allocation tags to your MemoryDB resources, Amazon generates a cost allocation report as a comma-separated value
18
17
  * (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories
19
18
  * (such as cost centers, application names, or owners) to organize your costs across multiple services.
@@ -18,6 +18,8 @@ export * from "./DescribeEngineVersionsCommand";
18
18
  export * from "./DescribeEventsCommand";
19
19
  export * from "./DescribeParameterGroupsCommand";
20
20
  export * from "./DescribeParametersCommand";
21
+ export * from "./DescribeReservedNodesCommand";
22
+ export * from "./DescribeReservedNodesOfferingsCommand";
21
23
  export * from "./DescribeServiceUpdatesCommand";
22
24
  export * from "./DescribeSnapshotsCommand";
23
25
  export * from "./DescribeSubnetGroupsCommand";
@@ -25,6 +27,7 @@ export * from "./DescribeUsersCommand";
25
27
  export * from "./FailoverShardCommand";
26
28
  export * from "./ListAllowedNodeTypeUpdatesCommand";
27
29
  export * from "./ListTagsCommand";
30
+ export * from "./PurchaseReservedNodesOfferingCommand";
28
31
  export * from "./ResetParameterGroupCommand";
29
32
  export * from "./TagResourceCommand";
30
33
  export * from "./UntagResourceCommand";