@aws-sdk/client-memorydb 3.696.0 → 3.703.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 (55) hide show
  1. package/README.md +42 -2
  2. package/dist-cjs/index.js +319 -0
  3. package/dist-es/MemoryDB.js +10 -0
  4. package/dist-es/commands/CreateMultiRegionClusterCommand.js +22 -0
  5. package/dist-es/commands/DeleteMultiRegionClusterCommand.js +22 -0
  6. package/dist-es/commands/DescribeMultiRegionClustersCommand.js +22 -0
  7. package/dist-es/commands/ListAllowedMultiRegionClusterUpdatesCommand.js +22 -0
  8. package/dist-es/commands/UpdateMultiRegionClusterCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +52 -0
  11. package/dist-es/pagination/DescribeMultiRegionClustersPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +2 -1
  13. package/dist-es/protocols/Aws_json1_1.js +147 -1
  14. package/dist-types/MemoryDB.d.ts +38 -2
  15. package/dist-types/MemoryDBClient.d.ts +9 -4
  16. package/dist-types/commands/BatchUpdateClusterCommand.d.ts +1 -0
  17. package/dist-types/commands/CopySnapshotCommand.d.ts +2 -0
  18. package/dist-types/commands/CreateClusterCommand.d.ts +8 -0
  19. package/dist-types/commands/CreateMultiRegionClusterCommand.d.ts +121 -0
  20. package/dist-types/commands/CreateSnapshotCommand.d.ts +2 -0
  21. package/dist-types/commands/DeleteClusterCommand.d.ts +8 -1
  22. package/dist-types/commands/DeleteMultiRegionClusterCommand.d.ts +99 -0
  23. package/dist-types/commands/DeleteSnapshotCommand.d.ts +2 -0
  24. package/dist-types/commands/DescribeACLsCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeClustersCommand.d.ts +1 -0
  26. package/dist-types/commands/DescribeEngineVersionsCommand.d.ts +1 -1
  27. package/dist-types/commands/DescribeMultiRegionClustersCommand.d.ts +108 -0
  28. package/dist-types/commands/DescribeServiceUpdatesCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeSnapshotsCommand.d.ts +2 -0
  30. package/dist-types/commands/FailoverShardCommand.d.ts +1 -0
  31. package/dist-types/commands/ListAllowedMultiRegionClusterUpdatesCommand.d.ts +85 -0
  32. package/dist-types/commands/ListTagsCommand.d.ts +7 -2
  33. package/dist-types/commands/TagResourceCommand.d.ts +9 -0
  34. package/dist-types/commands/UntagResourceCommand.d.ts +10 -1
  35. package/dist-types/commands/UpdateClusterCommand.d.ts +1 -0
  36. package/dist-types/commands/UpdateMultiRegionClusterCommand.d.ts +113 -0
  37. package/dist-types/commands/index.d.ts +5 -0
  38. package/dist-types/index.d.ts +2 -2
  39. package/dist-types/models/models_0.d.ts +412 -46
  40. package/dist-types/pagination/DescribeMultiRegionClustersPaginator.d.ts +7 -0
  41. package/dist-types/pagination/index.d.ts +2 -1
  42. package/dist-types/protocols/Aws_json1_1.d.ts +45 -0
  43. package/dist-types/ts3.4/MemoryDB.d.ts +92 -0
  44. package/dist-types/ts3.4/MemoryDBClient.d.ts +30 -0
  45. package/dist-types/ts3.4/commands/CreateMultiRegionClusterCommand.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/DeleteMultiRegionClusterCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/DescribeMultiRegionClustersCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/ListAllowedMultiRegionClusterUpdatesCommand.d.ts +51 -0
  49. package/dist-types/ts3.4/commands/UpdateMultiRegionClusterCommand.d.ts +51 -0
  50. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  51. package/dist-types/ts3.4/models/models_0.d.ts +119 -0
  52. package/dist-types/ts3.4/pagination/DescribeMultiRegionClustersPaginator.d.ts +11 -0
  53. package/dist-types/ts3.4/pagination/index.d.ts +2 -1
  54. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  55. package/package.json +4 -4
package/dist-cjs/index.js CHANGED
@@ -34,6 +34,7 @@ __export(src_exports, {
34
34
  CopySnapshotCommand: () => CopySnapshotCommand,
35
35
  CreateACLCommand: () => CreateACLCommand,
36
36
  CreateClusterCommand: () => CreateClusterCommand,
37
+ CreateMultiRegionClusterCommand: () => CreateMultiRegionClusterCommand,
37
38
  CreateParameterGroupCommand: () => CreateParameterGroupCommand,
38
39
  CreateSnapshotCommand: () => CreateSnapshotCommand,
39
40
  CreateSubnetGroupCommand: () => CreateSubnetGroupCommand,
@@ -42,6 +43,7 @@ __export(src_exports, {
42
43
  DefaultUserRequired: () => DefaultUserRequired,
43
44
  DeleteACLCommand: () => DeleteACLCommand,
44
45
  DeleteClusterCommand: () => DeleteClusterCommand,
46
+ DeleteMultiRegionClusterCommand: () => DeleteMultiRegionClusterCommand,
45
47
  DeleteParameterGroupCommand: () => DeleteParameterGroupCommand,
46
48
  DeleteSnapshotCommand: () => DeleteSnapshotCommand,
47
49
  DeleteSubnetGroupCommand: () => DeleteSubnetGroupCommand,
@@ -50,6 +52,7 @@ __export(src_exports, {
50
52
  DescribeClustersCommand: () => DescribeClustersCommand,
51
53
  DescribeEngineVersionsCommand: () => DescribeEngineVersionsCommand,
52
54
  DescribeEventsCommand: () => DescribeEventsCommand,
55
+ DescribeMultiRegionClustersCommand: () => DescribeMultiRegionClustersCommand,
53
56
  DescribeParameterGroupsCommand: () => DescribeParameterGroupsCommand,
54
57
  DescribeParametersCommand: () => DescribeParametersCommand,
55
58
  DescribeReservedNodesCommand: () => DescribeReservedNodesCommand,
@@ -67,6 +70,7 @@ __export(src_exports, {
67
70
  InvalidClusterStateFault: () => InvalidClusterStateFault,
68
71
  InvalidCredentialsException: () => InvalidCredentialsException,
69
72
  InvalidKMSKeyFault: () => InvalidKMSKeyFault,
73
+ InvalidMultiRegionClusterStateFault: () => InvalidMultiRegionClusterStateFault,
70
74
  InvalidNodeStateFault: () => InvalidNodeStateFault,
71
75
  InvalidParameterCombinationException: () => InvalidParameterCombinationException,
72
76
  InvalidParameterGroupStateFault: () => InvalidParameterGroupStateFault,
@@ -75,11 +79,15 @@ __export(src_exports, {
75
79
  InvalidSubnet: () => InvalidSubnet,
76
80
  InvalidUserStateFault: () => InvalidUserStateFault,
77
81
  InvalidVPCNetworkStateFault: () => InvalidVPCNetworkStateFault,
82
+ ListAllowedMultiRegionClusterUpdatesCommand: () => ListAllowedMultiRegionClusterUpdatesCommand,
78
83
  ListAllowedNodeTypeUpdatesCommand: () => ListAllowedNodeTypeUpdatesCommand,
79
84
  ListTagsCommand: () => ListTagsCommand,
80
85
  MemoryDB: () => MemoryDB,
81
86
  MemoryDBClient: () => MemoryDBClient,
82
87
  MemoryDBServiceException: () => MemoryDBServiceException,
88
+ MultiRegionClusterAlreadyExistsFault: () => MultiRegionClusterAlreadyExistsFault,
89
+ MultiRegionClusterNotFoundFault: () => MultiRegionClusterNotFoundFault,
90
+ MultiRegionParameterGroupNotFoundFault: () => MultiRegionParameterGroupNotFoundFault,
83
91
  NoOperationFault: () => NoOperationFault,
84
92
  NodeQuotaForClusterExceededFault: () => NodeQuotaForClusterExceededFault,
85
93
  NodeQuotaForCustomerExceededFault: () => NodeQuotaForCustomerExceededFault,
@@ -116,7 +124,9 @@ __export(src_exports, {
116
124
  UntagResourceCommand: () => UntagResourceCommand,
117
125
  UpdateACLCommand: () => UpdateACLCommand,
118
126
  UpdateClusterCommand: () => UpdateClusterCommand,
127
+ UpdateMultiRegionClusterCommand: () => UpdateMultiRegionClusterCommand,
119
128
  UpdateParameterGroupCommand: () => UpdateParameterGroupCommand,
129
+ UpdateStrategy: () => UpdateStrategy,
120
130
  UpdateSubnetGroupCommand: () => UpdateSubnetGroupCommand,
121
131
  UpdateUserCommand: () => UpdateUserCommand,
122
132
  UserAlreadyExistsFault: () => UserAlreadyExistsFault,
@@ -127,6 +137,7 @@ __export(src_exports, {
127
137
  paginateDescribeClusters: () => paginateDescribeClusters,
128
138
  paginateDescribeEngineVersions: () => paginateDescribeEngineVersions,
129
139
  paginateDescribeEvents: () => paginateDescribeEvents,
140
+ paginateDescribeMultiRegionClusters: () => paginateDescribeMultiRegionClusters,
130
141
  paginateDescribeParameterGroups: () => paginateDescribeParameterGroups,
131
142
  paginateDescribeParameters: () => paginateDescribeParameters,
132
143
  paginateDescribeReservedNodes: () => paginateDescribeReservedNodes,
@@ -657,6 +668,23 @@ var _InvalidCredentialsException = class _InvalidCredentialsException extends Me
657
668
  };
658
669
  __name(_InvalidCredentialsException, "InvalidCredentialsException");
659
670
  var InvalidCredentialsException = _InvalidCredentialsException;
671
+ var _InvalidMultiRegionClusterStateFault = class _InvalidMultiRegionClusterStateFault extends MemoryDBServiceException {
672
+ /**
673
+ * @internal
674
+ */
675
+ constructor(opts) {
676
+ super({
677
+ name: "InvalidMultiRegionClusterStateFault",
678
+ $fault: "client",
679
+ ...opts
680
+ });
681
+ this.name = "InvalidMultiRegionClusterStateFault";
682
+ this.$fault = "client";
683
+ Object.setPrototypeOf(this, _InvalidMultiRegionClusterStateFault.prototype);
684
+ }
685
+ };
686
+ __name(_InvalidMultiRegionClusterStateFault, "InvalidMultiRegionClusterStateFault");
687
+ var InvalidMultiRegionClusterStateFault = _InvalidMultiRegionClusterStateFault;
660
688
  var _InvalidVPCNetworkStateFault = class _InvalidVPCNetworkStateFault extends MemoryDBServiceException {
661
689
  /**
662
690
  * @internal
@@ -674,6 +702,23 @@ var _InvalidVPCNetworkStateFault = class _InvalidVPCNetworkStateFault extends Me
674
702
  };
675
703
  __name(_InvalidVPCNetworkStateFault, "InvalidVPCNetworkStateFault");
676
704
  var InvalidVPCNetworkStateFault = _InvalidVPCNetworkStateFault;
705
+ var _MultiRegionClusterNotFoundFault = class _MultiRegionClusterNotFoundFault extends MemoryDBServiceException {
706
+ /**
707
+ * @internal
708
+ */
709
+ constructor(opts) {
710
+ super({
711
+ name: "MultiRegionClusterNotFoundFault",
712
+ $fault: "client",
713
+ ...opts
714
+ });
715
+ this.name = "MultiRegionClusterNotFoundFault";
716
+ this.$fault = "client";
717
+ Object.setPrototypeOf(this, _MultiRegionClusterNotFoundFault.prototype);
718
+ }
719
+ };
720
+ __name(_MultiRegionClusterNotFoundFault, "MultiRegionClusterNotFoundFault");
721
+ var MultiRegionClusterNotFoundFault = _MultiRegionClusterNotFoundFault;
677
722
  var _NodeQuotaForClusterExceededFault = class _NodeQuotaForClusterExceededFault extends MemoryDBServiceException {
678
723
  /**
679
724
  * @internal
@@ -759,6 +804,40 @@ var _SubnetGroupNotFoundFault = class _SubnetGroupNotFoundFault extends MemoryDB
759
804
  };
760
805
  __name(_SubnetGroupNotFoundFault, "SubnetGroupNotFoundFault");
761
806
  var SubnetGroupNotFoundFault = _SubnetGroupNotFoundFault;
807
+ var _MultiRegionClusterAlreadyExistsFault = class _MultiRegionClusterAlreadyExistsFault extends MemoryDBServiceException {
808
+ /**
809
+ * @internal
810
+ */
811
+ constructor(opts) {
812
+ super({
813
+ name: "MultiRegionClusterAlreadyExistsFault",
814
+ $fault: "client",
815
+ ...opts
816
+ });
817
+ this.name = "MultiRegionClusterAlreadyExistsFault";
818
+ this.$fault = "client";
819
+ Object.setPrototypeOf(this, _MultiRegionClusterAlreadyExistsFault.prototype);
820
+ }
821
+ };
822
+ __name(_MultiRegionClusterAlreadyExistsFault, "MultiRegionClusterAlreadyExistsFault");
823
+ var MultiRegionClusterAlreadyExistsFault = _MultiRegionClusterAlreadyExistsFault;
824
+ var _MultiRegionParameterGroupNotFoundFault = class _MultiRegionParameterGroupNotFoundFault extends MemoryDBServiceException {
825
+ /**
826
+ * @internal
827
+ */
828
+ constructor(opts) {
829
+ super({
830
+ name: "MultiRegionParameterGroupNotFoundFault",
831
+ $fault: "client",
832
+ ...opts
833
+ });
834
+ this.name = "MultiRegionParameterGroupNotFoundFault";
835
+ this.$fault = "client";
836
+ Object.setPrototypeOf(this, _MultiRegionParameterGroupNotFoundFault.prototype);
837
+ }
838
+ };
839
+ __name(_MultiRegionParameterGroupNotFoundFault, "MultiRegionParameterGroupNotFoundFault");
840
+ var MultiRegionParameterGroupNotFoundFault = _MultiRegionParameterGroupNotFoundFault;
762
841
  var _InvalidParameterGroupStateFault = class _InvalidParameterGroupStateFault extends MemoryDBServiceException {
763
842
  /**
764
843
  * @internal
@@ -1221,6 +1300,10 @@ var _NoOperationFault = class _NoOperationFault extends MemoryDBServiceException
1221
1300
  };
1222
1301
  __name(_NoOperationFault, "NoOperationFault");
1223
1302
  var NoOperationFault = _NoOperationFault;
1303
+ var UpdateStrategy = {
1304
+ COORDINATED: "coordinated",
1305
+ UNCOORDINATED: "uncoordinated"
1306
+ };
1224
1307
  var _SubnetInUse = class _SubnetInUse extends MemoryDBServiceException {
1225
1308
  /**
1226
1309
  * @internal
@@ -1264,6 +1347,12 @@ var se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
1264
1347
  body = JSON.stringify((0, import_smithy_client._json)(input));
1265
1348
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1266
1349
  }, "se_CreateClusterCommand");
1350
+ var se_CreateMultiRegionClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
1351
+ const headers = sharedHeaders("CreateMultiRegionCluster");
1352
+ let body;
1353
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1354
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1355
+ }, "se_CreateMultiRegionClusterCommand");
1267
1356
  var se_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
1268
1357
  const headers = sharedHeaders("CreateParameterGroup");
1269
1358
  let body;
@@ -1300,6 +1389,12 @@ var se_DeleteClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
1300
1389
  body = JSON.stringify((0, import_smithy_client._json)(input));
1301
1390
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1302
1391
  }, "se_DeleteClusterCommand");
1392
+ var se_DeleteMultiRegionClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
1393
+ const headers = sharedHeaders("DeleteMultiRegionCluster");
1394
+ let body;
1395
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1396
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1397
+ }, "se_DeleteMultiRegionClusterCommand");
1303
1398
  var se_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
1304
1399
  const headers = sharedHeaders("DeleteParameterGroup");
1305
1400
  let body;
@@ -1348,6 +1443,12 @@ var se_DescribeEventsCommand = /* @__PURE__ */ __name(async (input, context) =>
1348
1443
  body = JSON.stringify(se_DescribeEventsRequest(input, context));
1349
1444
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1350
1445
  }, "se_DescribeEventsCommand");
1446
+ var se_DescribeMultiRegionClustersCommand = /* @__PURE__ */ __name(async (input, context) => {
1447
+ const headers = sharedHeaders("DescribeMultiRegionClusters");
1448
+ let body;
1449
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1450
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1451
+ }, "se_DescribeMultiRegionClustersCommand");
1351
1452
  var se_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
1352
1453
  const headers = sharedHeaders("DescribeParameterGroups");
1353
1454
  let body;
@@ -1402,6 +1503,12 @@ var se_FailoverShardCommand = /* @__PURE__ */ __name(async (input, context) => {
1402
1503
  body = JSON.stringify((0, import_smithy_client._json)(input));
1403
1504
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1404
1505
  }, "se_FailoverShardCommand");
1506
+ var se_ListAllowedMultiRegionClusterUpdatesCommand = /* @__PURE__ */ __name(async (input, context) => {
1507
+ const headers = sharedHeaders("ListAllowedMultiRegionClusterUpdates");
1508
+ let body;
1509
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1510
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1511
+ }, "se_ListAllowedMultiRegionClusterUpdatesCommand");
1405
1512
  var se_ListAllowedNodeTypeUpdatesCommand = /* @__PURE__ */ __name(async (input, context) => {
1406
1513
  const headers = sharedHeaders("ListAllowedNodeTypeUpdates");
1407
1514
  let body;
@@ -1450,6 +1557,12 @@ var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
1450
1557
  body = JSON.stringify((0, import_smithy_client._json)(input));
1451
1558
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
1452
1559
  }, "se_UpdateClusterCommand");
1560
+ var se_UpdateMultiRegionClusterCommand = /* @__PURE__ */ __name(async (input, context) => {
1561
+ const headers = sharedHeaders("UpdateMultiRegionCluster");
1562
+ let body;
1563
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1564
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1565
+ }, "se_UpdateMultiRegionClusterCommand");
1453
1566
  var se_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
1454
1567
  const headers = sharedHeaders("UpdateParameterGroup");
1455
1568
  let body;
@@ -1520,6 +1633,19 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
1520
1633
  };
1521
1634
  return response;
1522
1635
  }, "de_CreateClusterCommand");
1636
+ var de_CreateMultiRegionClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1637
+ if (output.statusCode >= 300) {
1638
+ return de_CommandError(output, context);
1639
+ }
1640
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1641
+ let contents = {};
1642
+ contents = (0, import_smithy_client._json)(data);
1643
+ const response = {
1644
+ $metadata: deserializeMetadata(output),
1645
+ ...contents
1646
+ };
1647
+ return response;
1648
+ }, "de_CreateMultiRegionClusterCommand");
1523
1649
  var de_CreateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1524
1650
  if (output.statusCode >= 300) {
1525
1651
  return de_CommandError(output, context);
@@ -1598,6 +1724,19 @@ var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
1598
1724
  };
1599
1725
  return response;
1600
1726
  }, "de_DeleteClusterCommand");
1727
+ var de_DeleteMultiRegionClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
1728
+ if (output.statusCode >= 300) {
1729
+ return de_CommandError(output, context);
1730
+ }
1731
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1732
+ let contents = {};
1733
+ contents = (0, import_smithy_client._json)(data);
1734
+ const response = {
1735
+ $metadata: deserializeMetadata(output),
1736
+ ...contents
1737
+ };
1738
+ return response;
1739
+ }, "de_DeleteMultiRegionClusterCommand");
1601
1740
  var de_DeleteParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1602
1741
  if (output.statusCode >= 300) {
1603
1742
  return de_CommandError(output, context);
@@ -1702,6 +1841,19 @@ var de_DescribeEventsCommand = /* @__PURE__ */ __name(async (output, context) =>
1702
1841
  };
1703
1842
  return response;
1704
1843
  }, "de_DescribeEventsCommand");
1844
+ var de_DescribeMultiRegionClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
1845
+ if (output.statusCode >= 300) {
1846
+ return de_CommandError(output, context);
1847
+ }
1848
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1849
+ let contents = {};
1850
+ contents = (0, import_smithy_client._json)(data);
1851
+ const response = {
1852
+ $metadata: deserializeMetadata(output),
1853
+ ...contents
1854
+ };
1855
+ return response;
1856
+ }, "de_DescribeMultiRegionClustersCommand");
1705
1857
  var de_DescribeParameterGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1706
1858
  if (output.statusCode >= 300) {
1707
1859
  return de_CommandError(output, context);
@@ -1819,6 +1971,19 @@ var de_FailoverShardCommand = /* @__PURE__ */ __name(async (output, context) =>
1819
1971
  };
1820
1972
  return response;
1821
1973
  }, "de_FailoverShardCommand");
1974
+ var de_ListAllowedMultiRegionClusterUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1975
+ if (output.statusCode >= 300) {
1976
+ return de_CommandError(output, context);
1977
+ }
1978
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1979
+ let contents = {};
1980
+ contents = (0, import_smithy_client._json)(data);
1981
+ const response = {
1982
+ $metadata: deserializeMetadata(output),
1983
+ ...contents
1984
+ };
1985
+ return response;
1986
+ }, "de_ListAllowedMultiRegionClusterUpdatesCommand");
1822
1987
  var de_ListAllowedNodeTypeUpdatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1823
1988
  if (output.statusCode >= 300) {
1824
1989
  return de_CommandError(output, context);
@@ -1923,6 +2088,19 @@ var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
1923
2088
  };
1924
2089
  return response;
1925
2090
  }, "de_UpdateClusterCommand");
2091
+ var de_UpdateMultiRegionClusterCommand = /* @__PURE__ */ __name(async (output, context) => {
2092
+ if (output.statusCode >= 300) {
2093
+ return de_CommandError(output, context);
2094
+ }
2095
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
2096
+ let contents = {};
2097
+ contents = (0, import_smithy_client._json)(data);
2098
+ const response = {
2099
+ $metadata: deserializeMetadata(output),
2100
+ ...contents
2101
+ };
2102
+ return response;
2103
+ }, "de_UpdateMultiRegionClusterCommand");
1926
2104
  var de_UpdateParameterGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1927
2105
  if (output.statusCode >= 300) {
1928
2106
  return de_CommandError(output, context);
@@ -2029,9 +2207,15 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2029
2207
  case "InvalidCredentialsException":
2030
2208
  case "com.amazonaws.memorydb#InvalidCredentialsException":
2031
2209
  throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
2210
+ case "InvalidMultiRegionClusterStateFault":
2211
+ case "com.amazonaws.memorydb#InvalidMultiRegionClusterStateFault":
2212
+ throw await de_InvalidMultiRegionClusterStateFaultRes(parsedOutput, context);
2032
2213
  case "InvalidVPCNetworkStateFault":
2033
2214
  case "com.amazonaws.memorydb#InvalidVPCNetworkStateFault":
2034
2215
  throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
2216
+ case "MultiRegionClusterNotFoundFault":
2217
+ case "com.amazonaws.memorydb#MultiRegionClusterNotFoundFault":
2218
+ throw await de_MultiRegionClusterNotFoundFaultRes(parsedOutput, context);
2035
2219
  case "NodeQuotaForClusterExceededFault":
2036
2220
  case "com.amazonaws.memorydb#NodeQuotaForClusterExceededFault":
2037
2221
  throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
@@ -2047,6 +2231,12 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2047
2231
  case "SubnetGroupNotFoundFault":
2048
2232
  case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
2049
2233
  throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
2234
+ case "MultiRegionClusterAlreadyExistsFault":
2235
+ case "com.amazonaws.memorydb#MultiRegionClusterAlreadyExistsFault":
2236
+ throw await de_MultiRegionClusterAlreadyExistsFaultRes(parsedOutput, context);
2237
+ case "MultiRegionParameterGroupNotFoundFault":
2238
+ case "com.amazonaws.memorydb#MultiRegionParameterGroupNotFoundFault":
2239
+ throw await de_MultiRegionParameterGroupNotFoundFaultRes(parsedOutput, context);
2050
2240
  case "InvalidParameterGroupStateFault":
2051
2241
  case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
2052
2242
  throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
@@ -2272,6 +2462,15 @@ var de_InvalidKMSKeyFaultRes = /* @__PURE__ */ __name(async (parsedOutput, conte
2272
2462
  });
2273
2463
  return (0, import_smithy_client.decorateServiceException)(exception, body);
2274
2464
  }, "de_InvalidKMSKeyFaultRes");
2465
+ var de_InvalidMultiRegionClusterStateFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2466
+ const body = parsedOutput.body;
2467
+ const deserialized = (0, import_smithy_client._json)(body);
2468
+ const exception = new InvalidMultiRegionClusterStateFault({
2469
+ $metadata: deserializeMetadata(parsedOutput),
2470
+ ...deserialized
2471
+ });
2472
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2473
+ }, "de_InvalidMultiRegionClusterStateFaultRes");
2275
2474
  var de_InvalidNodeStateFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2276
2475
  const body = parsedOutput.body;
2277
2476
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2344,6 +2543,33 @@ var de_InvalidVPCNetworkStateFaultRes = /* @__PURE__ */ __name(async (parsedOutp
2344
2543
  });
2345
2544
  return (0, import_smithy_client.decorateServiceException)(exception, body);
2346
2545
  }, "de_InvalidVPCNetworkStateFaultRes");
2546
+ var de_MultiRegionClusterAlreadyExistsFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2547
+ const body = parsedOutput.body;
2548
+ const deserialized = (0, import_smithy_client._json)(body);
2549
+ const exception = new MultiRegionClusterAlreadyExistsFault({
2550
+ $metadata: deserializeMetadata(parsedOutput),
2551
+ ...deserialized
2552
+ });
2553
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2554
+ }, "de_MultiRegionClusterAlreadyExistsFaultRes");
2555
+ var de_MultiRegionClusterNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2556
+ const body = parsedOutput.body;
2557
+ const deserialized = (0, import_smithy_client._json)(body);
2558
+ const exception = new MultiRegionClusterNotFoundFault({
2559
+ $metadata: deserializeMetadata(parsedOutput),
2560
+ ...deserialized
2561
+ });
2562
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2563
+ }, "de_MultiRegionClusterNotFoundFaultRes");
2564
+ var de_MultiRegionParameterGroupNotFoundFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2565
+ const body = parsedOutput.body;
2566
+ const deserialized = (0, import_smithy_client._json)(body);
2567
+ const exception = new MultiRegionParameterGroupNotFoundFault({
2568
+ $metadata: deserializeMetadata(parsedOutput),
2569
+ ...deserialized
2570
+ });
2571
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2572
+ }, "de_MultiRegionParameterGroupNotFoundFaultRes");
2347
2573
  var de_NodeQuotaForClusterExceededFaultRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2348
2574
  const body = parsedOutput.body;
2349
2575
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2645,6 +2871,7 @@ var de_Cluster = /* @__PURE__ */ __name((output, context) => {
2645
2871
  EngineVersion: import_smithy_client.expectString,
2646
2872
  KmsKeyId: import_smithy_client.expectString,
2647
2873
  MaintenanceWindow: import_smithy_client.expectString,
2874
+ MultiRegionClusterName: import_smithy_client.expectString,
2648
2875
  Name: import_smithy_client.expectString,
2649
2876
  NodeType: import_smithy_client.expectString,
2650
2877
  NumberOfShards: import_smithy_client.expectInt32,
@@ -2668,6 +2895,8 @@ var de_ClusterConfiguration = /* @__PURE__ */ __name((output, context) => {
2668
2895
  Engine: import_smithy_client.expectString,
2669
2896
  EngineVersion: import_smithy_client.expectString,
2670
2897
  MaintenanceWindow: import_smithy_client.expectString,
2898
+ MultiRegionClusterName: import_smithy_client.expectString,
2899
+ MultiRegionParameterGroupName: import_smithy_client.expectString,
2671
2900
  Name: import_smithy_client.expectString,
2672
2901
  NodeType: import_smithy_client.expectString,
2673
2902
  NumShards: import_smithy_client.expectInt32,
@@ -3009,6 +3238,20 @@ var _CreateClusterCommand = class _CreateClusterCommand extends import_smithy_cl
3009
3238
  __name(_CreateClusterCommand, "CreateClusterCommand");
3010
3239
  var CreateClusterCommand = _CreateClusterCommand;
3011
3240
 
3241
+ // src/commands/CreateMultiRegionClusterCommand.ts
3242
+
3243
+
3244
+
3245
+ var _CreateMultiRegionClusterCommand = class _CreateMultiRegionClusterCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3246
+ return [
3247
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3248
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3249
+ ];
3250
+ }).s("AmazonMemoryDB", "CreateMultiRegionCluster", {}).n("MemoryDBClient", "CreateMultiRegionClusterCommand").f(void 0, void 0).ser(se_CreateMultiRegionClusterCommand).de(de_CreateMultiRegionClusterCommand).build() {
3251
+ };
3252
+ __name(_CreateMultiRegionClusterCommand, "CreateMultiRegionClusterCommand");
3253
+ var CreateMultiRegionClusterCommand = _CreateMultiRegionClusterCommand;
3254
+
3012
3255
  // src/commands/CreateParameterGroupCommand.ts
3013
3256
 
3014
3257
 
@@ -3093,6 +3336,20 @@ var _DeleteClusterCommand = class _DeleteClusterCommand extends import_smithy_cl
3093
3336
  __name(_DeleteClusterCommand, "DeleteClusterCommand");
3094
3337
  var DeleteClusterCommand = _DeleteClusterCommand;
3095
3338
 
3339
+ // src/commands/DeleteMultiRegionClusterCommand.ts
3340
+
3341
+
3342
+
3343
+ var _DeleteMultiRegionClusterCommand = class _DeleteMultiRegionClusterCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3344
+ return [
3345
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3346
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3347
+ ];
3348
+ }).s("AmazonMemoryDB", "DeleteMultiRegionCluster", {}).n("MemoryDBClient", "DeleteMultiRegionClusterCommand").f(void 0, void 0).ser(se_DeleteMultiRegionClusterCommand).de(de_DeleteMultiRegionClusterCommand).build() {
3349
+ };
3350
+ __name(_DeleteMultiRegionClusterCommand, "DeleteMultiRegionClusterCommand");
3351
+ var DeleteMultiRegionClusterCommand = _DeleteMultiRegionClusterCommand;
3352
+
3096
3353
  // src/commands/DeleteParameterGroupCommand.ts
3097
3354
 
3098
3355
 
@@ -3205,6 +3462,20 @@ var _DescribeEventsCommand = class _DescribeEventsCommand extends import_smithy_
3205
3462
  __name(_DescribeEventsCommand, "DescribeEventsCommand");
3206
3463
  var DescribeEventsCommand = _DescribeEventsCommand;
3207
3464
 
3465
+ // src/commands/DescribeMultiRegionClustersCommand.ts
3466
+
3467
+
3468
+
3469
+ var _DescribeMultiRegionClustersCommand = class _DescribeMultiRegionClustersCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3470
+ return [
3471
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3472
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3473
+ ];
3474
+ }).s("AmazonMemoryDB", "DescribeMultiRegionClusters", {}).n("MemoryDBClient", "DescribeMultiRegionClustersCommand").f(void 0, void 0).ser(se_DescribeMultiRegionClustersCommand).de(de_DescribeMultiRegionClustersCommand).build() {
3475
+ };
3476
+ __name(_DescribeMultiRegionClustersCommand, "DescribeMultiRegionClustersCommand");
3477
+ var DescribeMultiRegionClustersCommand = _DescribeMultiRegionClustersCommand;
3478
+
3208
3479
  // src/commands/DescribeParameterGroupsCommand.ts
3209
3480
 
3210
3481
 
@@ -3331,6 +3602,20 @@ var _FailoverShardCommand = class _FailoverShardCommand extends import_smithy_cl
3331
3602
  __name(_FailoverShardCommand, "FailoverShardCommand");
3332
3603
  var FailoverShardCommand = _FailoverShardCommand;
3333
3604
 
3605
+ // src/commands/ListAllowedMultiRegionClusterUpdatesCommand.ts
3606
+
3607
+
3608
+
3609
+ var _ListAllowedMultiRegionClusterUpdatesCommand = class _ListAllowedMultiRegionClusterUpdatesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3610
+ return [
3611
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3612
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3613
+ ];
3614
+ }).s("AmazonMemoryDB", "ListAllowedMultiRegionClusterUpdates", {}).n("MemoryDBClient", "ListAllowedMultiRegionClusterUpdatesCommand").f(void 0, void 0).ser(se_ListAllowedMultiRegionClusterUpdatesCommand).de(de_ListAllowedMultiRegionClusterUpdatesCommand).build() {
3615
+ };
3616
+ __name(_ListAllowedMultiRegionClusterUpdatesCommand, "ListAllowedMultiRegionClusterUpdatesCommand");
3617
+ var ListAllowedMultiRegionClusterUpdatesCommand = _ListAllowedMultiRegionClusterUpdatesCommand;
3618
+
3334
3619
  // src/commands/ListAllowedNodeTypeUpdatesCommand.ts
3335
3620
 
3336
3621
 
@@ -3443,6 +3728,20 @@ var _UpdateClusterCommand = class _UpdateClusterCommand extends import_smithy_cl
3443
3728
  __name(_UpdateClusterCommand, "UpdateClusterCommand");
3444
3729
  var UpdateClusterCommand = _UpdateClusterCommand;
3445
3730
 
3731
+ // src/commands/UpdateMultiRegionClusterCommand.ts
3732
+
3733
+
3734
+
3735
+ var _UpdateMultiRegionClusterCommand = class _UpdateMultiRegionClusterCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3736
+ return [
3737
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3738
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3739
+ ];
3740
+ }).s("AmazonMemoryDB", "UpdateMultiRegionCluster", {}).n("MemoryDBClient", "UpdateMultiRegionClusterCommand").f(void 0, void 0).ser(se_UpdateMultiRegionClusterCommand).de(de_UpdateMultiRegionClusterCommand).build() {
3741
+ };
3742
+ __name(_UpdateMultiRegionClusterCommand, "UpdateMultiRegionClusterCommand");
3743
+ var UpdateMultiRegionClusterCommand = _UpdateMultiRegionClusterCommand;
3744
+
3446
3745
  // src/commands/UpdateParameterGroupCommand.ts
3447
3746
 
3448
3747
 
@@ -3491,12 +3790,14 @@ var commands = {
3491
3790
  CopySnapshotCommand,
3492
3791
  CreateACLCommand,
3493
3792
  CreateClusterCommand,
3793
+ CreateMultiRegionClusterCommand,
3494
3794
  CreateParameterGroupCommand,
3495
3795
  CreateSnapshotCommand,
3496
3796
  CreateSubnetGroupCommand,
3497
3797
  CreateUserCommand,
3498
3798
  DeleteACLCommand,
3499
3799
  DeleteClusterCommand,
3800
+ DeleteMultiRegionClusterCommand,
3500
3801
  DeleteParameterGroupCommand,
3501
3802
  DeleteSnapshotCommand,
3502
3803
  DeleteSubnetGroupCommand,
@@ -3505,6 +3806,7 @@ var commands = {
3505
3806
  DescribeClustersCommand,
3506
3807
  DescribeEngineVersionsCommand,
3507
3808
  DescribeEventsCommand,
3809
+ DescribeMultiRegionClustersCommand,
3508
3810
  DescribeParameterGroupsCommand,
3509
3811
  DescribeParametersCommand,
3510
3812
  DescribeReservedNodesCommand,
@@ -3514,6 +3816,7 @@ var commands = {
3514
3816
  DescribeSubnetGroupsCommand,
3515
3817
  DescribeUsersCommand,
3516
3818
  FailoverShardCommand,
3819
+ ListAllowedMultiRegionClusterUpdatesCommand,
3517
3820
  ListAllowedNodeTypeUpdatesCommand,
3518
3821
  ListTagsCommand,
3519
3822
  PurchaseReservedNodesOfferingCommand,
@@ -3522,6 +3825,7 @@ var commands = {
3522
3825
  UntagResourceCommand,
3523
3826
  UpdateACLCommand,
3524
3827
  UpdateClusterCommand,
3828
+ UpdateMultiRegionClusterCommand,
3525
3829
  UpdateParameterGroupCommand,
3526
3830
  UpdateSubnetGroupCommand,
3527
3831
  UpdateUserCommand
@@ -3548,6 +3852,10 @@ var paginateDescribeEngineVersions = (0, import_core.createPaginator)(MemoryDBCl
3548
3852
 
3549
3853
  var paginateDescribeEvents = (0, import_core.createPaginator)(MemoryDBClient, DescribeEventsCommand, "NextToken", "NextToken", "MaxResults");
3550
3854
 
3855
+ // src/pagination/DescribeMultiRegionClustersPaginator.ts
3856
+
3857
+ var paginateDescribeMultiRegionClusters = (0, import_core.createPaginator)(MemoryDBClient, DescribeMultiRegionClustersCommand, "NextToken", "NextToken", "MaxResults");
3858
+
3551
3859
  // src/pagination/DescribeParameterGroupsPaginator.ts
3552
3860
 
3553
3861
  var paginateDescribeParameterGroups = (0, import_core.createPaginator)(MemoryDBClient, DescribeParameterGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -3591,12 +3899,14 @@ var paginateDescribeUsers = (0, import_core.createPaginator)(MemoryDBClient, Des
3591
3899
  CopySnapshotCommand,
3592
3900
  CreateACLCommand,
3593
3901
  CreateClusterCommand,
3902
+ CreateMultiRegionClusterCommand,
3594
3903
  CreateParameterGroupCommand,
3595
3904
  CreateSnapshotCommand,
3596
3905
  CreateSubnetGroupCommand,
3597
3906
  CreateUserCommand,
3598
3907
  DeleteACLCommand,
3599
3908
  DeleteClusterCommand,
3909
+ DeleteMultiRegionClusterCommand,
3600
3910
  DeleteParameterGroupCommand,
3601
3911
  DeleteSnapshotCommand,
3602
3912
  DeleteSubnetGroupCommand,
@@ -3605,6 +3915,7 @@ var paginateDescribeUsers = (0, import_core.createPaginator)(MemoryDBClient, Des
3605
3915
  DescribeClustersCommand,
3606
3916
  DescribeEngineVersionsCommand,
3607
3917
  DescribeEventsCommand,
3918
+ DescribeMultiRegionClustersCommand,
3608
3919
  DescribeParameterGroupsCommand,
3609
3920
  DescribeParametersCommand,
3610
3921
  DescribeReservedNodesCommand,
@@ -3614,6 +3925,7 @@ var paginateDescribeUsers = (0, import_core.createPaginator)(MemoryDBClient, Des
3614
3925
  DescribeSubnetGroupsCommand,
3615
3926
  DescribeUsersCommand,
3616
3927
  FailoverShardCommand,
3928
+ ListAllowedMultiRegionClusterUpdatesCommand,
3617
3929
  ListAllowedNodeTypeUpdatesCommand,
3618
3930
  ListTagsCommand,
3619
3931
  PurchaseReservedNodesOfferingCommand,
@@ -3622,6 +3934,7 @@ var paginateDescribeUsers = (0, import_core.createPaginator)(MemoryDBClient, Des
3622
3934
  UntagResourceCommand,
3623
3935
  UpdateACLCommand,
3624
3936
  UpdateClusterCommand,
3937
+ UpdateMultiRegionClusterCommand,
3625
3938
  UpdateParameterGroupCommand,
3626
3939
  UpdateSubnetGroupCommand,
3627
3940
  UpdateUserCommand,
@@ -3629,6 +3942,7 @@ var paginateDescribeUsers = (0, import_core.createPaginator)(MemoryDBClient, Des
3629
3942
  paginateDescribeClusters,
3630
3943
  paginateDescribeEngineVersions,
3631
3944
  paginateDescribeEvents,
3945
+ paginateDescribeMultiRegionClusters,
3632
3946
  paginateDescribeParameterGroups,
3633
3947
  paginateDescribeParameters,
3634
3948
  paginateDescribeReservedNodesOfferings,
@@ -3660,12 +3974,16 @@ var paginateDescribeUsers = (0, import_core.createPaginator)(MemoryDBClient, Des
3660
3974
  InsufficientClusterCapacityFault,
3661
3975
  InvalidACLStateFault,
3662
3976
  InvalidCredentialsException,
3977
+ InvalidMultiRegionClusterStateFault,
3663
3978
  InvalidVPCNetworkStateFault,
3979
+ MultiRegionClusterNotFoundFault,
3664
3980
  NodeQuotaForClusterExceededFault,
3665
3981
  NodeQuotaForCustomerExceededFault,
3666
3982
  ParameterGroupNotFoundFault,
3667
3983
  ShardsPerClusterQuotaExceededFault,
3668
3984
  SubnetGroupNotFoundFault,
3985
+ MultiRegionClusterAlreadyExistsFault,
3986
+ MultiRegionParameterGroupNotFoundFault,
3669
3987
  InvalidParameterGroupStateFault,
3670
3988
  ParameterGroupAlreadyExistsFault,
3671
3989
  ParameterGroupQuotaExceededFault,
@@ -3696,6 +4014,7 @@ var paginateDescribeUsers = (0, import_core.createPaginator)(MemoryDBClient, Des
3696
4014
  TagNotFoundFault,
3697
4015
  InvalidNodeStateFault,
3698
4016
  NoOperationFault,
4017
+ UpdateStrategy,
3699
4018
  SubnetInUse
3700
4019
  });
3701
4020