- Navigation GuideYou are on a Client landing page. Commands (operations) are listed on this page. The Client constructor type is linked at the bottom.
MemoryDBClient
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 OSS, a popular open source data store, enabling you to leverage Redis OSS’ flexible and friendly data structures, APIs, and commands.
Installation
npm install @aws-sdk/client-memorydb
yarn add @aws-sdk/client-memorydb
pnpm add @aws-sdk/client-memorydb
MemoryDBClient Operations
Command | Summary |
---|
Command | Summary |
---|---|
BatchUpdateClusterCommand | Apply the service update to a list of clusters supplied. For more information on service updates and applying them, see Applying the service updates . |
CopySnapshotCommand | Makes a copy of an existing snapshot. |
CreateACLCommand | Creates an Access Control List. For more information, see Authenticating users with Access Contol Lists (ACLs) . |
CreateClusterCommand | Creates a cluster. All nodes in the cluster run the same protocol-compliant engine software. |
CreateMultiRegionClusterCommand | Creates a new multi-Region cluster. |
CreateParameterGroupCommand | Creates a new MemoryDB parameter group. A parameter group is a collection of parameters and their values that are applied to all of the nodes in any cluster. For more information, see Configuring engine parameters using parameter groups . |
CreateSnapshotCommand | Creates a copy of an entire cluster at a specific moment in time. |
CreateSubnetGroupCommand | Creates a subnet group. A subnet group is a collection of subnets (typically private) that you can designate for your clusters running in an Amazon Virtual Private Cloud (VPC) environment.When you create a cluster in an Amazon VPC, you must specify a subnet group. MemoryDB uses that subnet group to choose a subnet and IP addresses within that subnet to associate with your nodes. For more information, see Subnets and subnet groups . |
CreateUserCommand | Creates a MemoryDB user. For more information, see Authenticating users with Access Contol Lists (ACLs) . |
DeleteACLCommand | Deletes an Access Control List. The ACL must first be disassociated from the cluster before it can be deleted. For more information, see Authenticating users with Access Contol Lists (ACLs) . |
DeleteClusterCommand | Deletes a cluster. It also deletes all associated nodes and node endpoints. |
DeleteMultiRegionClusterCommand | Deletes an existing multi-Region cluster. |
DeleteParameterGroupCommand | Deletes the specified parameter group. You cannot delete a parameter group if it is associated with any clusters. You cannot delete the default parameter groups in your account. |
DeleteSnapshotCommand | Deletes an existing snapshot. When you receive a successful response from this operation, MemoryDB immediately begins deleting the snapshot; you cannot cancel or revert this operation. |
DeleteSubnetGroupCommand | Deletes a subnet group. You cannot delete a default subnet group or one that is associated with any clusters. |
DeleteUserCommand | Deletes a user. The user will be removed from all ACLs and in turn removed from all clusters. |
DescribeACLsCommand | Returns a list of ACLs. |
DescribeClustersCommand | Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific cluster if a cluster name is supplied. |
DescribeEngineVersionsCommand | Returns a list of the available Redis OSS engine versions. |
DescribeEventsCommand | Returns events related to clusters, security groups, and parameter groups. You can obtain events specific to a particular cluster, security group, or parameter group by providing the name as a parameter.By default, only the events occurring within the last hour are returned; however, you can retrieve up to 14 days' worth of events if necessary. |
DescribeMultiRegionClustersCommand | Returns details about one or more multi-Region clusters. |
DescribeParameterGroupsCommand | Returns a list of parameter group descriptions. If a parameter group name is specified, the list contains only the descriptions for that group. |
DescribeParametersCommand | Returns the detailed parameter list for a particular parameter group. |
DescribeReservedNodesCommand | Returns information about reserved nodes for this account, or about a specified reserved node. |
DescribeReservedNodesOfferingsCommand | Lists available reserved node offerings. |
DescribeServiceUpdatesCommand | Returns details of the service updates. |
DescribeSnapshotsCommand | Returns information about cluster snapshots. By default, DescribeSnapshots lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cluster. |
DescribeSubnetGroupsCommand | Returns a list of subnet group descriptions. If a subnet group name is specified, the list contains only the description of that group. |
DescribeUsersCommand | Returns a list of users. |
FailoverShardCommand | Used to failover a shard. This API is designed for testing the behavior of your application in case of MemoryDB failover. It is not designed to be used as a production-level tool for initiating a failover to overcome a problem you may have with the cluster. Moreover, in certain conditions such as large scale operational events, Amazon may block this API. |
ListAllowedMultiRegionClusterUpdatesCommand | Lists the allowed updates for a multi-Region cluster. |
ListAllowedNodeTypeUpdatesCommand | Lists all available node types that you can scale to from your cluster's current node type.When you use the UpdateCluster operation to scale your cluster, the value of the NodeType parameter must be one of the node types returned by this operation. |
ListTagsCommand | Lists all tags currently on a named resource.A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track your MemoryDB resources. For more information, see Tagging your MemoryDB resources . |
PurchaseReservedNodesOfferingCommand | Allows you to purchase a reserved node offering. Reserved nodes are not eligible for cancellation and are non-refundable. |
ResetParameterGroupCommand | Modifies the parameters of a parameter group to the engine or system default value. You can reset specific parameters by submitting a list of parameter names. To reset the entire parameter group, specify the AllParameters and ParameterGroupName parameters. |
TagResourceCommand | A tag is a key-value pair where the key and value are case-sensitive. You can use tags to categorize and track all your MemoryDB resources.When you add or remove tags on clusters, those actions will be replicated to all nodes in the cluster. For more information, seeResource-level permissions . For example, you can use cost-allocation tags to your MemoryDB resources, Amazon generates a cost allocation report as a comma-separated value (CSV) file with your usage and costs aggregated by your tags. You can apply tags that represent business categories (such as cost centers, application names, or owners) to organize your costs across multiple services.For more information, see Using Cost Allocation Tags . |
UntagResourceCommand | Use this operation to remove tags on a resource. |
UpdateACLCommand | Changes the list of users that belong to the Access Control List. |
UpdateClusterCommand | Modifies the settings for a cluster. You can use this operation to change one or more cluster configuration settings by specifying the settings and the new values. |
UpdateMultiRegionClusterCommand | Updates the configuration of an existing multi-Region cluster. |
UpdateParameterGroupCommand | Updates the parameters of a parameter group. You can modify up to 20 parameters in a single request by submitting a list parameter name and value pairs. |
UpdateSubnetGroupCommand | Updates a subnet group. For more information, see Updating a subnet group |
UpdateUserCommand | Changes user password(s) and/or access string. |
MemoryDBClient Configuration
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
defaultsMode Optional | DefaultsMode | Provider<DefaultsMode> | The @smithy/smithy-client#DefaultsMode that will be used to determine how certain default configuration options are resolved in the SDK. |
disableHostPrefix Optional | boolean | Disable dynamically changing the endpoint of the client based on the hostPrefix trait of an operation. |
extensions Optional | RuntimeExtension[] | Optional extensions |
logger Optional | Logger | Optional logger for logging debug/info/warn/error. |
maxAttempts Optional | number | Provider<number> | Value for how many times a request will be made at most in case of retry. |
profile Optional | string | Setting a client profile is similar to setting a value for the AWS_PROFILE environment variable. Setting a profile on a client in code only affects the single client instance, unlike AWS_PROFILE.When set, and only for environments where an AWS configuration file exists, fields configurable by this file will be retrieved from the specified profile within that file. Conflicting code configuration and environment variables will still have higher priority.For client credential resolution that involves checking the AWS configuration file, the client's profile (this value) will be used unless a different profile is set in the credential provider options. |
region Optional | string | Provider<string> | The AWS region to which this client will send requests |
requestHandler Optional | __HttpHandlerUserInput | The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs. |
retryMode Optional | string | Provider<string> | Specifies which retry algorithm to use. |
useDualstackEndpoint Optional | boolean | Provider<boolean> | Enables IPv6/IPv4 dualstack endpoint. |
useFipsEndpoint Optional | boolean | Provider<boolean> | Enables FIPS compatible endpoints. |
Additional config fields are described in the full configuration type: MemoryDBClientConfig