Skip to content

Commit 73a9ef4

Browse files
author
awstools
committed
feat(client-memorydb): Amazon MemoryDB SDK now supports all APIs for Multi-Region. Please refer to the updated Amazon MemoryDB public documentation for detailed information on API usage.
1 parent 79dd462 commit 73a9ef4

31 files changed

+2469
-128
lines changed

clients/client-memorydb/README.md

+42-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
AWS SDK for JavaScript MemoryDB Client for Node.js, Browser and React Native.
88

9-
<p>MemoryDB for Redis is a fully managed, Redis-compatible, in-memory database that delivers ultra-fast performance and Multi-AZ durability for modern applications built using microservices architectures.
9+
<p>MemoryDB is a fully managed, Redis OSS-compatible, in-memory database that delivers ultra-fast performance and Multi-AZ durability for modern applications built using microservices architectures.
1010

11-
MemoryDB stores the entire database in-memory, enabling low latency and high throughput data access. It is compatible with Redis, a popular open source data store, enabling you to leverage Redis’ flexible and friendly data structures, APIs, and commands.</p>
11+
MemoryDB stores the entire database in-memory, enabling low latency and high throughput data access. It is compatible with Redis OSS, a popular open source data store, enabling you to leverage Redis OSS’ flexible and friendly data structures, APIs, and commands.</p>
1212

1313
## Installing
1414

@@ -236,6 +236,14 @@ CreateCluster
236236

237237
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/CreateClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/CreateClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/CreateClusterCommandOutput/)
238238

239+
</details>
240+
<details>
241+
<summary>
242+
CreateMultiRegionCluster
243+
</summary>
244+
245+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/CreateMultiRegionClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/CreateMultiRegionClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/CreateMultiRegionClusterCommandOutput/)
246+
239247
</details>
240248
<details>
241249
<summary>
@@ -284,6 +292,14 @@ DeleteCluster
284292

285293
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/DeleteClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/DeleteClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/DeleteClusterCommandOutput/)
286294

295+
</details>
296+
<details>
297+
<summary>
298+
DeleteMultiRegionCluster
299+
</summary>
300+
301+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/DeleteMultiRegionClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/DeleteMultiRegionClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/DeleteMultiRegionClusterCommandOutput/)
302+
287303
</details>
288304
<details>
289305
<summary>
@@ -348,6 +364,14 @@ DescribeEvents
348364

349365
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/DescribeEventsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/DescribeEventsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/DescribeEventsCommandOutput/)
350366

367+
</details>
368+
<details>
369+
<summary>
370+
DescribeMultiRegionClusters
371+
</summary>
372+
373+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/DescribeMultiRegionClustersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/DescribeMultiRegionClustersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/DescribeMultiRegionClustersCommandOutput/)
374+
351375
</details>
352376
<details>
353377
<summary>
@@ -420,6 +444,14 @@ FailoverShard
420444

421445
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/FailoverShardCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/FailoverShardCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/FailoverShardCommandOutput/)
422446

447+
</details>
448+
<details>
449+
<summary>
450+
ListAllowedMultiRegionClusterUpdates
451+
</summary>
452+
453+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/ListAllowedMultiRegionClusterUpdatesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/ListAllowedMultiRegionClusterUpdatesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/ListAllowedMultiRegionClusterUpdatesCommandOutput/)
454+
423455
</details>
424456
<details>
425457
<summary>
@@ -484,6 +516,14 @@ UpdateCluster
484516

485517
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/UpdateClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/UpdateClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/UpdateClusterCommandOutput/)
486518

519+
</details>
520+
<details>
521+
<summary>
522+
UpdateMultiRegionCluster
523+
</summary>
524+
525+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/memorydb/command/UpdateMultiRegionClusterCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/UpdateMultiRegionClusterCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-memorydb/Interface/UpdateMultiRegionClusterCommandOutput/)
526+
487527
</details>
488528
<details>
489529
<summary>

clients/client-memorydb/src/MemoryDB.ts

+118-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ import {
1818
CreateClusterCommandInput,
1919
CreateClusterCommandOutput,
2020
} from "./commands/CreateClusterCommand";
21+
import {
22+
CreateMultiRegionClusterCommand,
23+
CreateMultiRegionClusterCommandInput,
24+
CreateMultiRegionClusterCommandOutput,
25+
} from "./commands/CreateMultiRegionClusterCommand";
2126
import {
2227
CreateParameterGroupCommand,
2328
CreateParameterGroupCommandInput,
@@ -40,6 +45,11 @@ import {
4045
DeleteClusterCommandInput,
4146
DeleteClusterCommandOutput,
4247
} from "./commands/DeleteClusterCommand";
48+
import {
49+
DeleteMultiRegionClusterCommand,
50+
DeleteMultiRegionClusterCommandInput,
51+
DeleteMultiRegionClusterCommandOutput,
52+
} from "./commands/DeleteMultiRegionClusterCommand";
4353
import {
4454
DeleteParameterGroupCommand,
4555
DeleteParameterGroupCommandInput,
@@ -76,6 +86,11 @@ import {
7686
DescribeEventsCommandInput,
7787
DescribeEventsCommandOutput,
7888
} from "./commands/DescribeEventsCommand";
89+
import {
90+
DescribeMultiRegionClustersCommand,
91+
DescribeMultiRegionClustersCommandInput,
92+
DescribeMultiRegionClustersCommandOutput,
93+
} from "./commands/DescribeMultiRegionClustersCommand";
7994
import {
8095
DescribeParameterGroupsCommand,
8196
DescribeParameterGroupsCommandInput,
@@ -121,6 +136,11 @@ import {
121136
FailoverShardCommandInput,
122137
FailoverShardCommandOutput,
123138
} from "./commands/FailoverShardCommand";
139+
import {
140+
ListAllowedMultiRegionClusterUpdatesCommand,
141+
ListAllowedMultiRegionClusterUpdatesCommandInput,
142+
ListAllowedMultiRegionClusterUpdatesCommandOutput,
143+
} from "./commands/ListAllowedMultiRegionClusterUpdatesCommand";
124144
import {
125145
ListAllowedNodeTypeUpdatesCommand,
126146
ListAllowedNodeTypeUpdatesCommandInput,
@@ -149,6 +169,11 @@ import {
149169
UpdateClusterCommandInput,
150170
UpdateClusterCommandOutput,
151171
} from "./commands/UpdateClusterCommand";
172+
import {
173+
UpdateMultiRegionClusterCommand,
174+
UpdateMultiRegionClusterCommandInput,
175+
UpdateMultiRegionClusterCommandOutput,
176+
} from "./commands/UpdateMultiRegionClusterCommand";
152177
import {
153178
UpdateParameterGroupCommand,
154179
UpdateParameterGroupCommandInput,
@@ -167,12 +192,14 @@ const commands = {
167192
CopySnapshotCommand,
168193
CreateACLCommand,
169194
CreateClusterCommand,
195+
CreateMultiRegionClusterCommand,
170196
CreateParameterGroupCommand,
171197
CreateSnapshotCommand,
172198
CreateSubnetGroupCommand,
173199
CreateUserCommand,
174200
DeleteACLCommand,
175201
DeleteClusterCommand,
202+
DeleteMultiRegionClusterCommand,
176203
DeleteParameterGroupCommand,
177204
DeleteSnapshotCommand,
178205
DeleteSubnetGroupCommand,
@@ -181,6 +208,7 @@ const commands = {
181208
DescribeClustersCommand,
182209
DescribeEngineVersionsCommand,
183210
DescribeEventsCommand,
211+
DescribeMultiRegionClustersCommand,
184212
DescribeParameterGroupsCommand,
185213
DescribeParametersCommand,
186214
DescribeReservedNodesCommand,
@@ -190,6 +218,7 @@ const commands = {
190218
DescribeSubnetGroupsCommand,
191219
DescribeUsersCommand,
192220
FailoverShardCommand,
221+
ListAllowedMultiRegionClusterUpdatesCommand,
193222
ListAllowedNodeTypeUpdatesCommand,
194223
ListTagsCommand,
195224
PurchaseReservedNodesOfferingCommand,
@@ -198,6 +227,7 @@ const commands = {
198227
UntagResourceCommand,
199228
UpdateACLCommand,
200229
UpdateClusterCommand,
230+
UpdateMultiRegionClusterCommand,
201231
UpdateParameterGroupCommand,
202232
UpdateSubnetGroupCommand,
203233
UpdateUserCommand,
@@ -254,6 +284,23 @@ export interface MemoryDB {
254284
cb: (err: any, data?: CreateClusterCommandOutput) => void
255285
): void;
256286

287+
/**
288+
* @see {@link CreateMultiRegionClusterCommand}
289+
*/
290+
createMultiRegionCluster(
291+
args: CreateMultiRegionClusterCommandInput,
292+
options?: __HttpHandlerOptions
293+
): Promise<CreateMultiRegionClusterCommandOutput>;
294+
createMultiRegionCluster(
295+
args: CreateMultiRegionClusterCommandInput,
296+
cb: (err: any, data?: CreateMultiRegionClusterCommandOutput) => void
297+
): void;
298+
createMultiRegionCluster(
299+
args: CreateMultiRegionClusterCommandInput,
300+
options: __HttpHandlerOptions,
301+
cb: (err: any, data?: CreateMultiRegionClusterCommandOutput) => void
302+
): void;
303+
257304
/**
258305
* @see {@link CreateParameterGroupCommand}
259306
*/
@@ -335,6 +382,23 @@ export interface MemoryDB {
335382
cb: (err: any, data?: DeleteClusterCommandOutput) => void
336383
): void;
337384

385+
/**
386+
* @see {@link DeleteMultiRegionClusterCommand}
387+
*/
388+
deleteMultiRegionCluster(
389+
args: DeleteMultiRegionClusterCommandInput,
390+
options?: __HttpHandlerOptions
391+
): Promise<DeleteMultiRegionClusterCommandOutput>;
392+
deleteMultiRegionCluster(
393+
args: DeleteMultiRegionClusterCommandInput,
394+
cb: (err: any, data?: DeleteMultiRegionClusterCommandOutput) => void
395+
): void;
396+
deleteMultiRegionCluster(
397+
args: DeleteMultiRegionClusterCommandInput,
398+
options: __HttpHandlerOptions,
399+
cb: (err: any, data?: DeleteMultiRegionClusterCommandOutput) => void
400+
): void;
401+
338402
/**
339403
* @see {@link DeleteParameterGroupCommand}
340404
*/
@@ -457,6 +521,24 @@ export interface MemoryDB {
457521
cb: (err: any, data?: DescribeEventsCommandOutput) => void
458522
): void;
459523

524+
/**
525+
* @see {@link DescribeMultiRegionClustersCommand}
526+
*/
527+
describeMultiRegionClusters(): Promise<DescribeMultiRegionClustersCommandOutput>;
528+
describeMultiRegionClusters(
529+
args: DescribeMultiRegionClustersCommandInput,
530+
options?: __HttpHandlerOptions
531+
): Promise<DescribeMultiRegionClustersCommandOutput>;
532+
describeMultiRegionClusters(
533+
args: DescribeMultiRegionClustersCommandInput,
534+
cb: (err: any, data?: DescribeMultiRegionClustersCommandOutput) => void
535+
): void;
536+
describeMultiRegionClusters(
537+
args: DescribeMultiRegionClustersCommandInput,
538+
options: __HttpHandlerOptions,
539+
cb: (err: any, data?: DescribeMultiRegionClustersCommandOutput) => void
540+
): void;
541+
460542
/**
461543
* @see {@link DescribeParameterGroupsCommand}
462544
*/
@@ -605,6 +687,23 @@ export interface MemoryDB {
605687
cb: (err: any, data?: FailoverShardCommandOutput) => void
606688
): void;
607689

690+
/**
691+
* @see {@link ListAllowedMultiRegionClusterUpdatesCommand}
692+
*/
693+
listAllowedMultiRegionClusterUpdates(
694+
args: ListAllowedMultiRegionClusterUpdatesCommandInput,
695+
options?: __HttpHandlerOptions
696+
): Promise<ListAllowedMultiRegionClusterUpdatesCommandOutput>;
697+
listAllowedMultiRegionClusterUpdates(
698+
args: ListAllowedMultiRegionClusterUpdatesCommandInput,
699+
cb: (err: any, data?: ListAllowedMultiRegionClusterUpdatesCommandOutput) => void
700+
): void;
701+
listAllowedMultiRegionClusterUpdates(
702+
args: ListAllowedMultiRegionClusterUpdatesCommandInput,
703+
options: __HttpHandlerOptions,
704+
cb: (err: any, data?: ListAllowedMultiRegionClusterUpdatesCommandOutput) => void
705+
): void;
706+
608707
/**
609708
* @see {@link ListAllowedNodeTypeUpdatesCommand}
610709
*/
@@ -711,6 +810,23 @@ export interface MemoryDB {
711810
cb: (err: any, data?: UpdateClusterCommandOutput) => void
712811
): void;
713812

813+
/**
814+
* @see {@link UpdateMultiRegionClusterCommand}
815+
*/
816+
updateMultiRegionCluster(
817+
args: UpdateMultiRegionClusterCommandInput,
818+
options?: __HttpHandlerOptions
819+
): Promise<UpdateMultiRegionClusterCommandOutput>;
820+
updateMultiRegionCluster(
821+
args: UpdateMultiRegionClusterCommandInput,
822+
cb: (err: any, data?: UpdateMultiRegionClusterCommandOutput) => void
823+
): void;
824+
updateMultiRegionCluster(
825+
args: UpdateMultiRegionClusterCommandInput,
826+
options: __HttpHandlerOptions,
827+
cb: (err: any, data?: UpdateMultiRegionClusterCommandOutput) => void
828+
): void;
829+
714830
/**
715831
* @see {@link UpdateParameterGroupCommand}
716832
*/
@@ -758,9 +874,9 @@ export interface MemoryDB {
758874
}
759875

760876
/**
761-
* <p>MemoryDB for Redis is a fully managed, Redis-compatible, in-memory database that delivers ultra-fast performance and Multi-AZ durability for modern applications built using microservices architectures.
877+
* <p>MemoryDB is a fully managed, Redis OSS-compatible, in-memory database that delivers ultra-fast performance and Multi-AZ durability for modern applications built using microservices architectures.
762878
*
763-
* MemoryDB stores the entire database in-memory, enabling low latency and high throughput data access. It is compatible with Redis, a popular open source data store, enabling you to leverage Redis’ flexible and friendly data structures, APIs, and commands.</p>
879+
* MemoryDB stores the entire database in-memory, enabling low latency and high throughput data access. It is compatible with Redis OSS, a popular open source data store, enabling you to leverage Redis OSS’ flexible and friendly data structures, APIs, and commands.</p>
764880
* @public
765881
*/
766882
export class MemoryDB extends MemoryDBClient implements MemoryDB {}

0 commit comments

Comments
 (0)