@aws-sdk/client-memorydb 3.699.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 +1 -1
@@ -3,12 +3,14 @@ import { BatchUpdateClusterCommand, } from "./commands/BatchUpdateClusterCommand
3
3
  import { CopySnapshotCommand, } from "./commands/CopySnapshotCommand";
4
4
  import { CreateACLCommand } from "./commands/CreateACLCommand";
5
5
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
6
+ import { CreateMultiRegionClusterCommand, } from "./commands/CreateMultiRegionClusterCommand";
6
7
  import { CreateParameterGroupCommand, } from "./commands/CreateParameterGroupCommand";
7
8
  import { CreateSnapshotCommand, } from "./commands/CreateSnapshotCommand";
8
9
  import { CreateSubnetGroupCommand, } from "./commands/CreateSubnetGroupCommand";
9
10
  import { CreateUserCommand } from "./commands/CreateUserCommand";
10
11
  import { DeleteACLCommand } from "./commands/DeleteACLCommand";
11
12
  import { DeleteClusterCommand, } from "./commands/DeleteClusterCommand";
13
+ import { DeleteMultiRegionClusterCommand, } from "./commands/DeleteMultiRegionClusterCommand";
12
14
  import { DeleteParameterGroupCommand, } from "./commands/DeleteParameterGroupCommand";
13
15
  import { DeleteSnapshotCommand, } from "./commands/DeleteSnapshotCommand";
14
16
  import { DeleteSubnetGroupCommand, } from "./commands/DeleteSubnetGroupCommand";
@@ -17,6 +19,7 @@ import { DescribeACLsCommand, } from "./commands/DescribeACLsCommand";
17
19
  import { DescribeClustersCommand, } from "./commands/DescribeClustersCommand";
18
20
  import { DescribeEngineVersionsCommand, } from "./commands/DescribeEngineVersionsCommand";
19
21
  import { DescribeEventsCommand, } from "./commands/DescribeEventsCommand";
22
+ import { DescribeMultiRegionClustersCommand, } from "./commands/DescribeMultiRegionClustersCommand";
20
23
  import { DescribeParameterGroupsCommand, } from "./commands/DescribeParameterGroupsCommand";
21
24
  import { DescribeParametersCommand, } from "./commands/DescribeParametersCommand";
22
25
  import { DescribeReservedNodesCommand, } from "./commands/DescribeReservedNodesCommand";
@@ -26,6 +29,7 @@ import { DescribeSnapshotsCommand, } from "./commands/DescribeSnapshotsCommand";
26
29
  import { DescribeSubnetGroupsCommand, } from "./commands/DescribeSubnetGroupsCommand";
27
30
  import { DescribeUsersCommand, } from "./commands/DescribeUsersCommand";
28
31
  import { FailoverShardCommand, } from "./commands/FailoverShardCommand";
32
+ import { ListAllowedMultiRegionClusterUpdatesCommand, } from "./commands/ListAllowedMultiRegionClusterUpdatesCommand";
29
33
  import { ListAllowedNodeTypeUpdatesCommand, } from "./commands/ListAllowedNodeTypeUpdatesCommand";
30
34
  import { ListTagsCommand } from "./commands/ListTagsCommand";
31
35
  import { PurchaseReservedNodesOfferingCommand, } from "./commands/PurchaseReservedNodesOfferingCommand";
@@ -34,6 +38,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
34
38
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
35
39
  import { UpdateACLCommand } from "./commands/UpdateACLCommand";
36
40
  import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
41
+ import { UpdateMultiRegionClusterCommand, } from "./commands/UpdateMultiRegionClusterCommand";
37
42
  import { UpdateParameterGroupCommand, } from "./commands/UpdateParameterGroupCommand";
38
43
  import { UpdateSubnetGroupCommand, } from "./commands/UpdateSubnetGroupCommand";
39
44
  import { UpdateUserCommand } from "./commands/UpdateUserCommand";
@@ -43,12 +48,14 @@ const commands = {
43
48
  CopySnapshotCommand,
44
49
  CreateACLCommand,
45
50
  CreateClusterCommand,
51
+ CreateMultiRegionClusterCommand,
46
52
  CreateParameterGroupCommand,
47
53
  CreateSnapshotCommand,
48
54
  CreateSubnetGroupCommand,
49
55
  CreateUserCommand,
50
56
  DeleteACLCommand,
51
57
  DeleteClusterCommand,
58
+ DeleteMultiRegionClusterCommand,
52
59
  DeleteParameterGroupCommand,
53
60
  DeleteSnapshotCommand,
54
61
  DeleteSubnetGroupCommand,
@@ -57,6 +64,7 @@ const commands = {
57
64
  DescribeClustersCommand,
58
65
  DescribeEngineVersionsCommand,
59
66
  DescribeEventsCommand,
67
+ DescribeMultiRegionClustersCommand,
60
68
  DescribeParameterGroupsCommand,
61
69
  DescribeParametersCommand,
62
70
  DescribeReservedNodesCommand,
@@ -66,6 +74,7 @@ const commands = {
66
74
  DescribeSubnetGroupsCommand,
67
75
  DescribeUsersCommand,
68
76
  FailoverShardCommand,
77
+ ListAllowedMultiRegionClusterUpdatesCommand,
69
78
  ListAllowedNodeTypeUpdatesCommand,
70
79
  ListTagsCommand,
71
80
  PurchaseReservedNodesOfferingCommand,
@@ -74,6 +83,7 @@ const commands = {
74
83
  UntagResourceCommand,
75
84
  UpdateACLCommand,
76
85
  UpdateClusterCommand,
86
+ UpdateMultiRegionClusterCommand,
77
87
  UpdateParameterGroupCommand,
78
88
  UpdateSubnetGroupCommand,
79
89
  UpdateUserCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateMultiRegionClusterCommand, se_CreateMultiRegionClusterCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class CreateMultiRegionClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonMemoryDB", "CreateMultiRegionCluster", {})
17
+ .n("MemoryDBClient", "CreateMultiRegionClusterCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateMultiRegionClusterCommand)
20
+ .de(de_CreateMultiRegionClusterCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteMultiRegionClusterCommand, se_DeleteMultiRegionClusterCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DeleteMultiRegionClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonMemoryDB", "DeleteMultiRegionCluster", {})
17
+ .n("MemoryDBClient", "DeleteMultiRegionClusterCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteMultiRegionClusterCommand)
20
+ .de(de_DeleteMultiRegionClusterCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DescribeMultiRegionClustersCommand, se_DescribeMultiRegionClustersCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DescribeMultiRegionClustersCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonMemoryDB", "DescribeMultiRegionClusters", {})
17
+ .n("MemoryDBClient", "DescribeMultiRegionClustersCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DescribeMultiRegionClustersCommand)
20
+ .de(de_DescribeMultiRegionClustersCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListAllowedMultiRegionClusterUpdatesCommand, se_ListAllowedMultiRegionClusterUpdatesCommand, } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListAllowedMultiRegionClusterUpdatesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonMemoryDB", "ListAllowedMultiRegionClusterUpdates", {})
17
+ .n("MemoryDBClient", "ListAllowedMultiRegionClusterUpdatesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_ListAllowedMultiRegionClusterUpdatesCommand)
20
+ .de(de_ListAllowedMultiRegionClusterUpdatesCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateMultiRegionClusterCommand, se_UpdateMultiRegionClusterCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UpdateMultiRegionClusterCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("AmazonMemoryDB", "UpdateMultiRegionCluster", {})
17
+ .n("MemoryDBClient", "UpdateMultiRegionClusterCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateMultiRegionClusterCommand)
20
+ .de(de_UpdateMultiRegionClusterCommand)
21
+ .build() {
22
+ }
@@ -2,12 +2,14 @@ export * from "./BatchUpdateClusterCommand";
2
2
  export * from "./CopySnapshotCommand";
3
3
  export * from "./CreateACLCommand";
4
4
  export * from "./CreateClusterCommand";
5
+ export * from "./CreateMultiRegionClusterCommand";
5
6
  export * from "./CreateParameterGroupCommand";
6
7
  export * from "./CreateSnapshotCommand";
7
8
  export * from "./CreateSubnetGroupCommand";
8
9
  export * from "./CreateUserCommand";
9
10
  export * from "./DeleteACLCommand";
10
11
  export * from "./DeleteClusterCommand";
12
+ export * from "./DeleteMultiRegionClusterCommand";
11
13
  export * from "./DeleteParameterGroupCommand";
12
14
  export * from "./DeleteSnapshotCommand";
13
15
  export * from "./DeleteSubnetGroupCommand";
@@ -16,6 +18,7 @@ export * from "./DescribeACLsCommand";
16
18
  export * from "./DescribeClustersCommand";
17
19
  export * from "./DescribeEngineVersionsCommand";
18
20
  export * from "./DescribeEventsCommand";
21
+ export * from "./DescribeMultiRegionClustersCommand";
19
22
  export * from "./DescribeParameterGroupsCommand";
20
23
  export * from "./DescribeParametersCommand";
21
24
  export * from "./DescribeReservedNodesCommand";
@@ -25,6 +28,7 @@ export * from "./DescribeSnapshotsCommand";
25
28
  export * from "./DescribeSubnetGroupsCommand";
26
29
  export * from "./DescribeUsersCommand";
27
30
  export * from "./FailoverShardCommand";
31
+ export * from "./ListAllowedMultiRegionClusterUpdatesCommand";
28
32
  export * from "./ListAllowedNodeTypeUpdatesCommand";
29
33
  export * from "./ListTagsCommand";
30
34
  export * from "./PurchaseReservedNodesOfferingCommand";
@@ -33,6 +37,7 @@ export * from "./TagResourceCommand";
33
37
  export * from "./UntagResourceCommand";
34
38
  export * from "./UpdateACLCommand";
35
39
  export * from "./UpdateClusterCommand";
40
+ export * from "./UpdateMultiRegionClusterCommand";
36
41
  export * from "./UpdateParameterGroupCommand";
37
42
  export * from "./UpdateSubnetGroupCommand";
38
43
  export * from "./UpdateUserCommand";
@@ -253,6 +253,18 @@ export class InvalidCredentialsException extends __BaseException {
253
253
  Object.setPrototypeOf(this, InvalidCredentialsException.prototype);
254
254
  }
255
255
  }
256
+ export class InvalidMultiRegionClusterStateFault extends __BaseException {
257
+ constructor(opts) {
258
+ super({
259
+ name: "InvalidMultiRegionClusterStateFault",
260
+ $fault: "client",
261
+ ...opts,
262
+ });
263
+ this.name = "InvalidMultiRegionClusterStateFault";
264
+ this.$fault = "client";
265
+ Object.setPrototypeOf(this, InvalidMultiRegionClusterStateFault.prototype);
266
+ }
267
+ }
256
268
  export class InvalidVPCNetworkStateFault extends __BaseException {
257
269
  constructor(opts) {
258
270
  super({
@@ -265,6 +277,18 @@ export class InvalidVPCNetworkStateFault extends __BaseException {
265
277
  Object.setPrototypeOf(this, InvalidVPCNetworkStateFault.prototype);
266
278
  }
267
279
  }
280
+ export class MultiRegionClusterNotFoundFault extends __BaseException {
281
+ constructor(opts) {
282
+ super({
283
+ name: "MultiRegionClusterNotFoundFault",
284
+ $fault: "client",
285
+ ...opts,
286
+ });
287
+ this.name = "MultiRegionClusterNotFoundFault";
288
+ this.$fault = "client";
289
+ Object.setPrototypeOf(this, MultiRegionClusterNotFoundFault.prototype);
290
+ }
291
+ }
268
292
  export class NodeQuotaForClusterExceededFault extends __BaseException {
269
293
  constructor(opts) {
270
294
  super({
@@ -325,6 +349,30 @@ export class SubnetGroupNotFoundFault extends __BaseException {
325
349
  Object.setPrototypeOf(this, SubnetGroupNotFoundFault.prototype);
326
350
  }
327
351
  }
352
+ export class MultiRegionClusterAlreadyExistsFault extends __BaseException {
353
+ constructor(opts) {
354
+ super({
355
+ name: "MultiRegionClusterAlreadyExistsFault",
356
+ $fault: "client",
357
+ ...opts,
358
+ });
359
+ this.name = "MultiRegionClusterAlreadyExistsFault";
360
+ this.$fault = "client";
361
+ Object.setPrototypeOf(this, MultiRegionClusterAlreadyExistsFault.prototype);
362
+ }
363
+ }
364
+ export class MultiRegionParameterGroupNotFoundFault extends __BaseException {
365
+ constructor(opts) {
366
+ super({
367
+ name: "MultiRegionParameterGroupNotFoundFault",
368
+ $fault: "client",
369
+ ...opts,
370
+ });
371
+ this.name = "MultiRegionParameterGroupNotFoundFault";
372
+ this.$fault = "client";
373
+ Object.setPrototypeOf(this, MultiRegionParameterGroupNotFoundFault.prototype);
374
+ }
375
+ }
328
376
  export class InvalidParameterGroupStateFault extends __BaseException {
329
377
  constructor(opts) {
330
378
  super({
@@ -657,6 +705,10 @@ export class NoOperationFault extends __BaseException {
657
705
  Object.setPrototypeOf(this, NoOperationFault.prototype);
658
706
  }
659
707
  }
708
+ export const UpdateStrategy = {
709
+ COORDINATED: "coordinated",
710
+ UNCOORDINATED: "uncoordinated",
711
+ };
660
712
  export class SubnetInUse extends __BaseException {
661
713
  constructor(opts) {
662
714
  super({
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { DescribeMultiRegionClustersCommand, } from "../commands/DescribeMultiRegionClustersCommand";
3
+ import { MemoryDBClient } from "../MemoryDBClient";
4
+ export const paginateDescribeMultiRegionClusters = createPaginator(MemoryDBClient, DescribeMultiRegionClustersCommand, "NextToken", "NextToken", "MaxResults");
@@ -2,12 +2,13 @@ export * from "./DescribeACLsPaginator";
2
2
  export * from "./DescribeClustersPaginator";
3
3
  export * from "./DescribeEngineVersionsPaginator";
4
4
  export * from "./DescribeEventsPaginator";
5
+ export * from "./DescribeMultiRegionClustersPaginator";
5
6
  export * from "./DescribeParameterGroupsPaginator";
6
7
  export * from "./DescribeParametersPaginator";
7
8
  export * from "./DescribeReservedNodesOfferingsPaginator";
8
9
  export * from "./DescribeReservedNodesPaginator";
9
10
  export * from "./DescribeServiceUpdatesPaginator";
10
- export * from "./DescribeSnapshotsPaginator";
11
11
  export * from "./Interfaces";
12
+ export * from "./DescribeSnapshotsPaginator";
12
13
  export * from "./DescribeSubnetGroupsPaginator";
13
14
  export * from "./DescribeUsersPaginator";
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { MemoryDBServiceException as __BaseException } from "../models/MemoryDBServiceException";
5
- 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
+ import { ACLAlreadyExistsFault, ACLNotFoundFault, ACLQuotaExceededFault, APICallRateForCustomerExceededFault, ClusterAlreadyExistsFault, ClusterNotFoundFault, ClusterQuotaForCustomerExceededFault, DefaultUserRequired, DuplicateUserNameFault, InsufficientClusterCapacityFault, InvalidACLStateFault, InvalidARNFault, InvalidClusterStateFault, InvalidCredentialsException, InvalidKMSKeyFault, InvalidMultiRegionClusterStateFault, InvalidNodeStateFault, InvalidParameterCombinationException, InvalidParameterGroupStateFault, InvalidParameterValueException, InvalidSnapshotStateFault, InvalidSubnet, InvalidUserStateFault, InvalidVPCNetworkStateFault, MultiRegionClusterAlreadyExistsFault, MultiRegionClusterNotFoundFault, MultiRegionParameterGroupNotFoundFault, 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";
6
6
  export const se_BatchUpdateClusterCommand = async (input, context) => {
7
7
  const headers = sharedHeaders("BatchUpdateCluster");
8
8
  let body;
@@ -27,6 +27,12 @@ export const se_CreateClusterCommand = async (input, context) => {
27
27
  body = JSON.stringify(_json(input));
28
28
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
29
  };
30
+ export const se_CreateMultiRegionClusterCommand = async (input, context) => {
31
+ const headers = sharedHeaders("CreateMultiRegionCluster");
32
+ let body;
33
+ body = JSON.stringify(_json(input));
34
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
+ };
30
36
  export const se_CreateParameterGroupCommand = async (input, context) => {
31
37
  const headers = sharedHeaders("CreateParameterGroup");
32
38
  let body;
@@ -63,6 +69,12 @@ export const se_DeleteClusterCommand = async (input, context) => {
63
69
  body = JSON.stringify(_json(input));
64
70
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
71
  };
72
+ export const se_DeleteMultiRegionClusterCommand = async (input, context) => {
73
+ const headers = sharedHeaders("DeleteMultiRegionCluster");
74
+ let body;
75
+ body = JSON.stringify(_json(input));
76
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
+ };
66
78
  export const se_DeleteParameterGroupCommand = async (input, context) => {
67
79
  const headers = sharedHeaders("DeleteParameterGroup");
68
80
  let body;
@@ -111,6 +123,12 @@ export const se_DescribeEventsCommand = async (input, context) => {
111
123
  body = JSON.stringify(se_DescribeEventsRequest(input, context));
112
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
125
  };
126
+ export const se_DescribeMultiRegionClustersCommand = async (input, context) => {
127
+ const headers = sharedHeaders("DescribeMultiRegionClusters");
128
+ let body;
129
+ body = JSON.stringify(_json(input));
130
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
+ };
114
132
  export const se_DescribeParameterGroupsCommand = async (input, context) => {
115
133
  const headers = sharedHeaders("DescribeParameterGroups");
116
134
  let body;
@@ -165,6 +183,12 @@ export const se_FailoverShardCommand = async (input, context) => {
165
183
  body = JSON.stringify(_json(input));
166
184
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
185
  };
186
+ export const se_ListAllowedMultiRegionClusterUpdatesCommand = async (input, context) => {
187
+ const headers = sharedHeaders("ListAllowedMultiRegionClusterUpdates");
188
+ let body;
189
+ body = JSON.stringify(_json(input));
190
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
+ };
168
192
  export const se_ListAllowedNodeTypeUpdatesCommand = async (input, context) => {
169
193
  const headers = sharedHeaders("ListAllowedNodeTypeUpdates");
170
194
  let body;
@@ -213,6 +237,12 @@ export const se_UpdateClusterCommand = async (input, context) => {
213
237
  body = JSON.stringify(_json(input));
214
238
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
239
  };
240
+ export const se_UpdateMultiRegionClusterCommand = async (input, context) => {
241
+ const headers = sharedHeaders("UpdateMultiRegionCluster");
242
+ let body;
243
+ body = JSON.stringify(_json(input));
244
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
+ };
216
246
  export const se_UpdateParameterGroupCommand = async (input, context) => {
217
247
  const headers = sharedHeaders("UpdateParameterGroup");
218
248
  let body;
@@ -283,6 +313,19 @@ export const de_CreateClusterCommand = async (output, context) => {
283
313
  };
284
314
  return response;
285
315
  };
316
+ export const de_CreateMultiRegionClusterCommand = async (output, context) => {
317
+ if (output.statusCode >= 300) {
318
+ return de_CommandError(output, context);
319
+ }
320
+ const data = await parseBody(output.body, context);
321
+ let contents = {};
322
+ contents = _json(data);
323
+ const response = {
324
+ $metadata: deserializeMetadata(output),
325
+ ...contents,
326
+ };
327
+ return response;
328
+ };
286
329
  export const de_CreateParameterGroupCommand = async (output, context) => {
287
330
  if (output.statusCode >= 300) {
288
331
  return de_CommandError(output, context);
@@ -361,6 +404,19 @@ export const de_DeleteClusterCommand = async (output, context) => {
361
404
  };
362
405
  return response;
363
406
  };
407
+ export const de_DeleteMultiRegionClusterCommand = async (output, context) => {
408
+ if (output.statusCode >= 300) {
409
+ return de_CommandError(output, context);
410
+ }
411
+ const data = await parseBody(output.body, context);
412
+ let contents = {};
413
+ contents = _json(data);
414
+ const response = {
415
+ $metadata: deserializeMetadata(output),
416
+ ...contents,
417
+ };
418
+ return response;
419
+ };
364
420
  export const de_DeleteParameterGroupCommand = async (output, context) => {
365
421
  if (output.statusCode >= 300) {
366
422
  return de_CommandError(output, context);
@@ -465,6 +521,19 @@ export const de_DescribeEventsCommand = async (output, context) => {
465
521
  };
466
522
  return response;
467
523
  };
524
+ export const de_DescribeMultiRegionClustersCommand = async (output, context) => {
525
+ if (output.statusCode >= 300) {
526
+ return de_CommandError(output, context);
527
+ }
528
+ const data = await parseBody(output.body, context);
529
+ let contents = {};
530
+ contents = _json(data);
531
+ const response = {
532
+ $metadata: deserializeMetadata(output),
533
+ ...contents,
534
+ };
535
+ return response;
536
+ };
468
537
  export const de_DescribeParameterGroupsCommand = async (output, context) => {
469
538
  if (output.statusCode >= 300) {
470
539
  return de_CommandError(output, context);
@@ -582,6 +651,19 @@ export const de_FailoverShardCommand = async (output, context) => {
582
651
  };
583
652
  return response;
584
653
  };
654
+ export const de_ListAllowedMultiRegionClusterUpdatesCommand = async (output, context) => {
655
+ if (output.statusCode >= 300) {
656
+ return de_CommandError(output, context);
657
+ }
658
+ const data = await parseBody(output.body, context);
659
+ let contents = {};
660
+ contents = _json(data);
661
+ const response = {
662
+ $metadata: deserializeMetadata(output),
663
+ ...contents,
664
+ };
665
+ return response;
666
+ };
585
667
  export const de_ListAllowedNodeTypeUpdatesCommand = async (output, context) => {
586
668
  if (output.statusCode >= 300) {
587
669
  return de_CommandError(output, context);
@@ -686,6 +768,19 @@ export const de_UpdateClusterCommand = async (output, context) => {
686
768
  };
687
769
  return response;
688
770
  };
771
+ export const de_UpdateMultiRegionClusterCommand = async (output, context) => {
772
+ if (output.statusCode >= 300) {
773
+ return de_CommandError(output, context);
774
+ }
775
+ const data = await parseBody(output.body, context);
776
+ let contents = {};
777
+ contents = _json(data);
778
+ const response = {
779
+ $metadata: deserializeMetadata(output),
780
+ ...contents,
781
+ };
782
+ return response;
783
+ };
689
784
  export const de_UpdateParameterGroupCommand = async (output, context) => {
690
785
  if (output.statusCode >= 300) {
691
786
  return de_CommandError(output, context);
@@ -792,9 +887,15 @@ const de_CommandError = async (output, context) => {
792
887
  case "InvalidCredentialsException":
793
888
  case "com.amazonaws.memorydb#InvalidCredentialsException":
794
889
  throw await de_InvalidCredentialsExceptionRes(parsedOutput, context);
890
+ case "InvalidMultiRegionClusterStateFault":
891
+ case "com.amazonaws.memorydb#InvalidMultiRegionClusterStateFault":
892
+ throw await de_InvalidMultiRegionClusterStateFaultRes(parsedOutput, context);
795
893
  case "InvalidVPCNetworkStateFault":
796
894
  case "com.amazonaws.memorydb#InvalidVPCNetworkStateFault":
797
895
  throw await de_InvalidVPCNetworkStateFaultRes(parsedOutput, context);
896
+ case "MultiRegionClusterNotFoundFault":
897
+ case "com.amazonaws.memorydb#MultiRegionClusterNotFoundFault":
898
+ throw await de_MultiRegionClusterNotFoundFaultRes(parsedOutput, context);
798
899
  case "NodeQuotaForClusterExceededFault":
799
900
  case "com.amazonaws.memorydb#NodeQuotaForClusterExceededFault":
800
901
  throw await de_NodeQuotaForClusterExceededFaultRes(parsedOutput, context);
@@ -810,6 +911,12 @@ const de_CommandError = async (output, context) => {
810
911
  case "SubnetGroupNotFoundFault":
811
912
  case "com.amazonaws.memorydb#SubnetGroupNotFoundFault":
812
913
  throw await de_SubnetGroupNotFoundFaultRes(parsedOutput, context);
914
+ case "MultiRegionClusterAlreadyExistsFault":
915
+ case "com.amazonaws.memorydb#MultiRegionClusterAlreadyExistsFault":
916
+ throw await de_MultiRegionClusterAlreadyExistsFaultRes(parsedOutput, context);
917
+ case "MultiRegionParameterGroupNotFoundFault":
918
+ case "com.amazonaws.memorydb#MultiRegionParameterGroupNotFoundFault":
919
+ throw await de_MultiRegionParameterGroupNotFoundFaultRes(parsedOutput, context);
813
920
  case "InvalidParameterGroupStateFault":
814
921
  case "com.amazonaws.memorydb#InvalidParameterGroupStateFault":
815
922
  throw await de_InvalidParameterGroupStateFaultRes(parsedOutput, context);
@@ -1035,6 +1142,15 @@ const de_InvalidKMSKeyFaultRes = async (parsedOutput, context) => {
1035
1142
  });
1036
1143
  return __decorateServiceException(exception, body);
1037
1144
  };
1145
+ const de_InvalidMultiRegionClusterStateFaultRes = async (parsedOutput, context) => {
1146
+ const body = parsedOutput.body;
1147
+ const deserialized = _json(body);
1148
+ const exception = new InvalidMultiRegionClusterStateFault({
1149
+ $metadata: deserializeMetadata(parsedOutput),
1150
+ ...deserialized,
1151
+ });
1152
+ return __decorateServiceException(exception, body);
1153
+ };
1038
1154
  const de_InvalidNodeStateFaultRes = async (parsedOutput, context) => {
1039
1155
  const body = parsedOutput.body;
1040
1156
  const deserialized = _json(body);
@@ -1107,6 +1223,33 @@ const de_InvalidVPCNetworkStateFaultRes = async (parsedOutput, context) => {
1107
1223
  });
1108
1224
  return __decorateServiceException(exception, body);
1109
1225
  };
1226
+ const de_MultiRegionClusterAlreadyExistsFaultRes = async (parsedOutput, context) => {
1227
+ const body = parsedOutput.body;
1228
+ const deserialized = _json(body);
1229
+ const exception = new MultiRegionClusterAlreadyExistsFault({
1230
+ $metadata: deserializeMetadata(parsedOutput),
1231
+ ...deserialized,
1232
+ });
1233
+ return __decorateServiceException(exception, body);
1234
+ };
1235
+ const de_MultiRegionClusterNotFoundFaultRes = async (parsedOutput, context) => {
1236
+ const body = parsedOutput.body;
1237
+ const deserialized = _json(body);
1238
+ const exception = new MultiRegionClusterNotFoundFault({
1239
+ $metadata: deserializeMetadata(parsedOutput),
1240
+ ...deserialized,
1241
+ });
1242
+ return __decorateServiceException(exception, body);
1243
+ };
1244
+ const de_MultiRegionParameterGroupNotFoundFaultRes = async (parsedOutput, context) => {
1245
+ const body = parsedOutput.body;
1246
+ const deserialized = _json(body);
1247
+ const exception = new MultiRegionParameterGroupNotFoundFault({
1248
+ $metadata: deserializeMetadata(parsedOutput),
1249
+ ...deserialized,
1250
+ });
1251
+ return __decorateServiceException(exception, body);
1252
+ };
1110
1253
  const de_NodeQuotaForClusterExceededFaultRes = async (parsedOutput, context) => {
1111
1254
  const body = parsedOutput.body;
1112
1255
  const deserialized = _json(body);
@@ -1408,6 +1551,7 @@ const de_Cluster = (output, context) => {
1408
1551
  EngineVersion: __expectString,
1409
1552
  KmsKeyId: __expectString,
1410
1553
  MaintenanceWindow: __expectString,
1554
+ MultiRegionClusterName: __expectString,
1411
1555
  Name: __expectString,
1412
1556
  NodeType: __expectString,
1413
1557
  NumberOfShards: __expectInt32,
@@ -1431,6 +1575,8 @@ const de_ClusterConfiguration = (output, context) => {
1431
1575
  Engine: __expectString,
1432
1576
  EngineVersion: __expectString,
1433
1577
  MaintenanceWindow: __expectString,
1578
+ MultiRegionClusterName: __expectString,
1579
+ MultiRegionParameterGroupName: __expectString,
1434
1580
  Name: __expectString,
1435
1581
  NodeType: __expectString,
1436
1582
  NumShards: __expectInt32,