Skip to content

Commit

Permalink
feat(client-memorydb): Amazon MemoryDB SDK now supports all APIs for …
Browse files Browse the repository at this point in the history
…Multi-Region. Please refer to the updated Amazon MemoryDB public documentation for detailed information on API usage.
  • Loading branch information
awstools committed Dec 2, 2024
1 parent 79dd462 commit 73a9ef4
Show file tree
Hide file tree
Showing 31 changed files with 2,469 additions and 128 deletions.
44 changes: 42 additions & 2 deletions clients/client-memorydb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

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

<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.
<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.

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>
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>

## Installing

Expand Down Expand Up @@ -236,6 +236,14 @@ CreateCluster

[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/)

</details>
<details>
<summary>
CreateMultiRegionCluster
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -284,6 +292,14 @@ DeleteCluster

[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/)

</details>
<details>
<summary>
DeleteMultiRegionCluster
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -348,6 +364,14 @@ DescribeEvents

[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/)

</details>
<details>
<summary>
DescribeMultiRegionClusters
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -420,6 +444,14 @@ FailoverShard

[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/)

</details>
<details>
<summary>
ListAllowedMultiRegionClusterUpdates
</summary>

[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/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -484,6 +516,14 @@ UpdateCluster

[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/)

</details>
<details>
<summary>
UpdateMultiRegionCluster
</summary>

[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/)

</details>
<details>
<summary>
Expand Down
120 changes: 118 additions & 2 deletions clients/client-memorydb/src/MemoryDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ import {
CreateClusterCommandInput,
CreateClusterCommandOutput,
} from "./commands/CreateClusterCommand";
import {
CreateMultiRegionClusterCommand,
CreateMultiRegionClusterCommandInput,
CreateMultiRegionClusterCommandOutput,
} from "./commands/CreateMultiRegionClusterCommand";
import {
CreateParameterGroupCommand,
CreateParameterGroupCommandInput,
Expand All @@ -40,6 +45,11 @@ import {
DeleteClusterCommandInput,
DeleteClusterCommandOutput,
} from "./commands/DeleteClusterCommand";
import {
DeleteMultiRegionClusterCommand,
DeleteMultiRegionClusterCommandInput,
DeleteMultiRegionClusterCommandOutput,
} from "./commands/DeleteMultiRegionClusterCommand";
import {
DeleteParameterGroupCommand,
DeleteParameterGroupCommandInput,
Expand Down Expand Up @@ -76,6 +86,11 @@ import {
DescribeEventsCommandInput,
DescribeEventsCommandOutput,
} from "./commands/DescribeEventsCommand";
import {
DescribeMultiRegionClustersCommand,
DescribeMultiRegionClustersCommandInput,
DescribeMultiRegionClustersCommandOutput,
} from "./commands/DescribeMultiRegionClustersCommand";
import {
DescribeParameterGroupsCommand,
DescribeParameterGroupsCommandInput,
Expand Down Expand Up @@ -121,6 +136,11 @@ import {
FailoverShardCommandInput,
FailoverShardCommandOutput,
} from "./commands/FailoverShardCommand";
import {
ListAllowedMultiRegionClusterUpdatesCommand,
ListAllowedMultiRegionClusterUpdatesCommandInput,
ListAllowedMultiRegionClusterUpdatesCommandOutput,
} from "./commands/ListAllowedMultiRegionClusterUpdatesCommand";
import {
ListAllowedNodeTypeUpdatesCommand,
ListAllowedNodeTypeUpdatesCommandInput,
Expand Down Expand Up @@ -149,6 +169,11 @@ import {
UpdateClusterCommandInput,
UpdateClusterCommandOutput,
} from "./commands/UpdateClusterCommand";
import {
UpdateMultiRegionClusterCommand,
UpdateMultiRegionClusterCommandInput,
UpdateMultiRegionClusterCommandOutput,
} from "./commands/UpdateMultiRegionClusterCommand";
import {
UpdateParameterGroupCommand,
UpdateParameterGroupCommandInput,
Expand All @@ -167,12 +192,14 @@ const commands = {
CopySnapshotCommand,
CreateACLCommand,
CreateClusterCommand,
CreateMultiRegionClusterCommand,
CreateParameterGroupCommand,
CreateSnapshotCommand,
CreateSubnetGroupCommand,
CreateUserCommand,
DeleteACLCommand,
DeleteClusterCommand,
DeleteMultiRegionClusterCommand,
DeleteParameterGroupCommand,
DeleteSnapshotCommand,
DeleteSubnetGroupCommand,
Expand All @@ -181,6 +208,7 @@ const commands = {
DescribeClustersCommand,
DescribeEngineVersionsCommand,
DescribeEventsCommand,
DescribeMultiRegionClustersCommand,
DescribeParameterGroupsCommand,
DescribeParametersCommand,
DescribeReservedNodesCommand,
Expand All @@ -190,6 +218,7 @@ const commands = {
DescribeSubnetGroupsCommand,
DescribeUsersCommand,
FailoverShardCommand,
ListAllowedMultiRegionClusterUpdatesCommand,
ListAllowedNodeTypeUpdatesCommand,
ListTagsCommand,
PurchaseReservedNodesOfferingCommand,
Expand All @@ -198,6 +227,7 @@ const commands = {
UntagResourceCommand,
UpdateACLCommand,
UpdateClusterCommand,
UpdateMultiRegionClusterCommand,
UpdateParameterGroupCommand,
UpdateSubnetGroupCommand,
UpdateUserCommand,
Expand Down Expand Up @@ -254,6 +284,23 @@ export interface MemoryDB {
cb: (err: any, data?: CreateClusterCommandOutput) => void
): void;

/**
* @see {@link CreateMultiRegionClusterCommand}
*/
createMultiRegionCluster(
args: CreateMultiRegionClusterCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateMultiRegionClusterCommandOutput>;
createMultiRegionCluster(
args: CreateMultiRegionClusterCommandInput,
cb: (err: any, data?: CreateMultiRegionClusterCommandOutput) => void
): void;
createMultiRegionCluster(
args: CreateMultiRegionClusterCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateMultiRegionClusterCommandOutput) => void
): void;

/**
* @see {@link CreateParameterGroupCommand}
*/
Expand Down Expand Up @@ -335,6 +382,23 @@ export interface MemoryDB {
cb: (err: any, data?: DeleteClusterCommandOutput) => void
): void;

/**
* @see {@link DeleteMultiRegionClusterCommand}
*/
deleteMultiRegionCluster(
args: DeleteMultiRegionClusterCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteMultiRegionClusterCommandOutput>;
deleteMultiRegionCluster(
args: DeleteMultiRegionClusterCommandInput,
cb: (err: any, data?: DeleteMultiRegionClusterCommandOutput) => void
): void;
deleteMultiRegionCluster(
args: DeleteMultiRegionClusterCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteMultiRegionClusterCommandOutput) => void
): void;

/**
* @see {@link DeleteParameterGroupCommand}
*/
Expand Down Expand Up @@ -457,6 +521,24 @@ export interface MemoryDB {
cb: (err: any, data?: DescribeEventsCommandOutput) => void
): void;

/**
* @see {@link DescribeMultiRegionClustersCommand}
*/
describeMultiRegionClusters(): Promise<DescribeMultiRegionClustersCommandOutput>;
describeMultiRegionClusters(
args: DescribeMultiRegionClustersCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeMultiRegionClustersCommandOutput>;
describeMultiRegionClusters(
args: DescribeMultiRegionClustersCommandInput,
cb: (err: any, data?: DescribeMultiRegionClustersCommandOutput) => void
): void;
describeMultiRegionClusters(
args: DescribeMultiRegionClustersCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeMultiRegionClustersCommandOutput) => void
): void;

/**
* @see {@link DescribeParameterGroupsCommand}
*/
Expand Down Expand Up @@ -605,6 +687,23 @@ export interface MemoryDB {
cb: (err: any, data?: FailoverShardCommandOutput) => void
): void;

/**
* @see {@link ListAllowedMultiRegionClusterUpdatesCommand}
*/
listAllowedMultiRegionClusterUpdates(
args: ListAllowedMultiRegionClusterUpdatesCommandInput,
options?: __HttpHandlerOptions
): Promise<ListAllowedMultiRegionClusterUpdatesCommandOutput>;
listAllowedMultiRegionClusterUpdates(
args: ListAllowedMultiRegionClusterUpdatesCommandInput,
cb: (err: any, data?: ListAllowedMultiRegionClusterUpdatesCommandOutput) => void
): void;
listAllowedMultiRegionClusterUpdates(
args: ListAllowedMultiRegionClusterUpdatesCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListAllowedMultiRegionClusterUpdatesCommandOutput) => void
): void;

/**
* @see {@link ListAllowedNodeTypeUpdatesCommand}
*/
Expand Down Expand Up @@ -711,6 +810,23 @@ export interface MemoryDB {
cb: (err: any, data?: UpdateClusterCommandOutput) => void
): void;

/**
* @see {@link UpdateMultiRegionClusterCommand}
*/
updateMultiRegionCluster(
args: UpdateMultiRegionClusterCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateMultiRegionClusterCommandOutput>;
updateMultiRegionCluster(
args: UpdateMultiRegionClusterCommandInput,
cb: (err: any, data?: UpdateMultiRegionClusterCommandOutput) => void
): void;
updateMultiRegionCluster(
args: UpdateMultiRegionClusterCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateMultiRegionClusterCommandOutput) => void
): void;

/**
* @see {@link UpdateParameterGroupCommand}
*/
Expand Down Expand Up @@ -758,9 +874,9 @@ export interface MemoryDB {
}

/**
* <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.
* <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.
*
* 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>
* 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>
* @public
*/
export class MemoryDB extends MemoryDBClient implements MemoryDB {}
Expand Down
Loading

0 comments on commit 73a9ef4

Please sign in to comment.