AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.memorydb.getCluster
Explore with Pulumi AI
Provides information about a MemoryDB Cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.memorydb.getCluster({
    name: "my-cluster",
});
import pulumi
import pulumi_aws as aws
example = aws.memorydb.get_cluster(name="my-cluster")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/memorydb"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := memorydb.LookupCluster(ctx, &memorydb.LookupClusterArgs{
			Name: "my-cluster",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.MemoryDb.GetCluster.Invoke(new()
    {
        Name = "my-cluster",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.memorydb.MemorydbFunctions;
import com.pulumi.aws.memorydb.inputs.GetClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = MemorydbFunctions.getCluster(GetClusterArgs.builder()
            .name("my-cluster")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:memorydb:getCluster
      arguments:
        name: my-cluster
Using getCluster
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>
function getClusterOutput(args: GetClusterOutputArgs, opts?: InvokeOptions): Output<GetClusterResult>def get_cluster(name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(name: Optional[pulumi.Input[str]] = None,
                tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetClusterResult]func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)
func LookupClusterOutput(ctx *Context, args *LookupClusterOutputArgs, opts ...InvokeOption) LookupClusterResultOutput> Note: This function is named LookupCluster in the Go SDK.
public static class GetCluster 
{
    public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
    public static Output<GetClusterResult> Invoke(GetClusterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
public static Output<GetClusterResult> getCluster(GetClusterArgs args, InvokeOptions options)
fn::invoke:
  function: aws:memorydb/getCluster:getCluster
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Name of the cluster.
- Dictionary<string, string>
- Map of tags assigned to the cluster.
- Name string
- Name of the cluster.
- map[string]string
- Map of tags assigned to the cluster.
- name String
- Name of the cluster.
- Map<String,String>
- Map of tags assigned to the cluster.
- name string
- Name of the cluster.
- {[key: string]: string}
- Map of tags assigned to the cluster.
- name str
- Name of the cluster.
- Mapping[str, str]
- Map of tags assigned to the cluster.
- name String
- Name of the cluster.
- Map<String>
- Map of tags assigned to the cluster.
getCluster Result
The following output properties are available:
- AclName string
- Name of the Access Control List associated with the cluster.
- Arn string
- ARN of the cluster.
- AutoMinor boolVersion Upgrade 
- True when the cluster allows automatic minor version upgrades.
- ClusterEndpoints List<GetCluster Cluster Endpoint> 
- DataTiering bool
- True when data tiering is enabled.
- Description string
- Description for the cluster.
- Engine string
- Engine that will run on cluster nodes.
- EnginePatch stringVersion 
- Patch version number of the engine used by the cluster.
- EngineVersion string
- Version number of the engine used by the cluster.
- FinalSnapshot stringName 
- Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringArn 
- ARN of the KMS key used to encrypt the cluster at rest.
- MaintenanceWindow string
- Weekly time range during which maintenance on the cluster is performed. Specify as a range in the format ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). Example:sun:23:00-mon:01:30.
- Name string
- Name of this node.
- NodeType string
- Compute and memory capacity of the nodes in the cluster.
- NumReplicas intPer Shard 
- The number of replicas to apply to each shard.
- NumShards int
- Number of shards in the cluster.
- ParameterGroup stringName 
- The name of the parameter group associated with the cluster.
- Port int
- Port number that this node is listening on.
- SecurityGroup List<string>Ids 
- Set of VPC Security Group ID-s associated with this cluster.
- 
List<GetCluster Shard> 
- Set of shards in this cluster.
- SnapshotRetention intLimit 
- The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to 0, automatic backups are disabled.
- SnapshotWindow string
- Daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00.
- SnsTopic stringArn 
- ARN of the SNS topic to which cluster notifications are sent.
- SubnetGroup stringName 
- The name of the subnet group used for the cluster.
- Dictionary<string, string>
- Map of tags assigned to the cluster.
- TlsEnabled bool
- When true, in-transit encryption is enabled for the cluster.
- AclName string
- Name of the Access Control List associated with the cluster.
- Arn string
- ARN of the cluster.
- AutoMinor boolVersion Upgrade 
- True when the cluster allows automatic minor version upgrades.
- ClusterEndpoints []GetCluster Cluster Endpoint 
- DataTiering bool
- True when data tiering is enabled.
- Description string
- Description for the cluster.
- Engine string
- Engine that will run on cluster nodes.
- EnginePatch stringVersion 
- Patch version number of the engine used by the cluster.
- EngineVersion string
- Version number of the engine used by the cluster.
- FinalSnapshot stringName 
- Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringArn 
- ARN of the KMS key used to encrypt the cluster at rest.
- MaintenanceWindow string
- Weekly time range during which maintenance on the cluster is performed. Specify as a range in the format ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). Example:sun:23:00-mon:01:30.
- Name string
- Name of this node.
- NodeType string
- Compute and memory capacity of the nodes in the cluster.
- NumReplicas intPer Shard 
- The number of replicas to apply to each shard.
- NumShards int
- Number of shards in the cluster.
- ParameterGroup stringName 
- The name of the parameter group associated with the cluster.
- Port int
- Port number that this node is listening on.
- SecurityGroup []stringIds 
- Set of VPC Security Group ID-s associated with this cluster.
- 
[]GetCluster Shard 
- Set of shards in this cluster.
- SnapshotRetention intLimit 
- The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to 0, automatic backups are disabled.
- SnapshotWindow string
- Daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00.
- SnsTopic stringArn 
- ARN of the SNS topic to which cluster notifications are sent.
- SubnetGroup stringName 
- The name of the subnet group used for the cluster.
- map[string]string
- Map of tags assigned to the cluster.
- TlsEnabled bool
- When true, in-transit encryption is enabled for the cluster.
- aclName String
- Name of the Access Control List associated with the cluster.
- arn String
- ARN of the cluster.
- autoMinor BooleanVersion Upgrade 
- True when the cluster allows automatic minor version upgrades.
- clusterEndpoints List<GetCluster Cluster Endpoint> 
- dataTiering Boolean
- True when data tiering is enabled.
- description String
- Description for the cluster.
- engine String
- Engine that will run on cluster nodes.
- enginePatch StringVersion 
- Patch version number of the engine used by the cluster.
- engineVersion String
- Version number of the engine used by the cluster.
- finalSnapshot StringName 
- Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringArn 
- ARN of the KMS key used to encrypt the cluster at rest.
- maintenanceWindow String
- Weekly time range during which maintenance on the cluster is performed. Specify as a range in the format ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). Example:sun:23:00-mon:01:30.
- name String
- Name of this node.
- nodeType String
- Compute and memory capacity of the nodes in the cluster.
- numReplicas IntegerPer Shard 
- The number of replicas to apply to each shard.
- numShards Integer
- Number of shards in the cluster.
- parameterGroup StringName 
- The name of the parameter group associated with the cluster.
- port Integer
- Port number that this node is listening on.
- securityGroup List<String>Ids 
- Set of VPC Security Group ID-s associated with this cluster.
- 
List<GetCluster Shard> 
- Set of shards in this cluster.
- snapshotRetention IntegerLimit 
- The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to 0, automatic backups are disabled.
- snapshotWindow String
- Daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00.
- snsTopic StringArn 
- ARN of the SNS topic to which cluster notifications are sent.
- subnetGroup StringName 
- The name of the subnet group used for the cluster.
- Map<String,String>
- Map of tags assigned to the cluster.
- tlsEnabled Boolean
- When true, in-transit encryption is enabled for the cluster.
- aclName string
- Name of the Access Control List associated with the cluster.
- arn string
- ARN of the cluster.
- autoMinor booleanVersion Upgrade 
- True when the cluster allows automatic minor version upgrades.
- clusterEndpoints GetCluster Cluster Endpoint[] 
- dataTiering boolean
- True when data tiering is enabled.
- description string
- Description for the cluster.
- engine string
- Engine that will run on cluster nodes.
- enginePatch stringVersion 
- Patch version number of the engine used by the cluster.
- engineVersion string
- Version number of the engine used by the cluster.
- finalSnapshot stringName 
- Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- id string
- The provider-assigned unique ID for this managed resource.
- kmsKey stringArn 
- ARN of the KMS key used to encrypt the cluster at rest.
- maintenanceWindow string
- Weekly time range during which maintenance on the cluster is performed. Specify as a range in the format ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). Example:sun:23:00-mon:01:30.
- name string
- Name of this node.
- nodeType string
- Compute and memory capacity of the nodes in the cluster.
- numReplicas numberPer Shard 
- The number of replicas to apply to each shard.
- numShards number
- Number of shards in the cluster.
- parameterGroup stringName 
- The name of the parameter group associated with the cluster.
- port number
- Port number that this node is listening on.
- securityGroup string[]Ids 
- Set of VPC Security Group ID-s associated with this cluster.
- 
GetCluster Shard[] 
- Set of shards in this cluster.
- snapshotRetention numberLimit 
- The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to 0, automatic backups are disabled.
- snapshotWindow string
- Daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00.
- snsTopic stringArn 
- ARN of the SNS topic to which cluster notifications are sent.
- subnetGroup stringName 
- The name of the subnet group used for the cluster.
- {[key: string]: string}
- Map of tags assigned to the cluster.
- tlsEnabled boolean
- When true, in-transit encryption is enabled for the cluster.
- acl_name str
- Name of the Access Control List associated with the cluster.
- arn str
- ARN of the cluster.
- auto_minor_ boolversion_ upgrade 
- True when the cluster allows automatic minor version upgrades.
- cluster_endpoints Sequence[GetCluster Cluster Endpoint] 
- data_tiering bool
- True when data tiering is enabled.
- description str
- Description for the cluster.
- engine str
- Engine that will run on cluster nodes.
- engine_patch_ strversion 
- Patch version number of the engine used by the cluster.
- engine_version str
- Version number of the engine used by the cluster.
- final_snapshot_ strname 
- Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_key_ strarn 
- ARN of the KMS key used to encrypt the cluster at rest.
- maintenance_window str
- Weekly time range during which maintenance on the cluster is performed. Specify as a range in the format ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). Example:sun:23:00-mon:01:30.
- name str
- Name of this node.
- node_type str
- Compute and memory capacity of the nodes in the cluster.
- num_replicas_ intper_ shard 
- The number of replicas to apply to each shard.
- num_shards int
- Number of shards in the cluster.
- parameter_group_ strname 
- The name of the parameter group associated with the cluster.
- port int
- Port number that this node is listening on.
- security_group_ Sequence[str]ids 
- Set of VPC Security Group ID-s associated with this cluster.
- 
Sequence[GetCluster Shard] 
- Set of shards in this cluster.
- snapshot_retention_ intlimit 
- The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to 0, automatic backups are disabled.
- snapshot_window str
- Daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00.
- sns_topic_ strarn 
- ARN of the SNS topic to which cluster notifications are sent.
- subnet_group_ strname 
- The name of the subnet group used for the cluster.
- Mapping[str, str]
- Map of tags assigned to the cluster.
- tls_enabled bool
- When true, in-transit encryption is enabled for the cluster.
- aclName String
- Name of the Access Control List associated with the cluster.
- arn String
- ARN of the cluster.
- autoMinor BooleanVersion Upgrade 
- True when the cluster allows automatic minor version upgrades.
- clusterEndpoints List<Property Map>
- dataTiering Boolean
- True when data tiering is enabled.
- description String
- Description for the cluster.
- engine String
- Engine that will run on cluster nodes.
- enginePatch StringVersion 
- Patch version number of the engine used by the cluster.
- engineVersion String
- Version number of the engine used by the cluster.
- finalSnapshot StringName 
- Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made.
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringArn 
- ARN of the KMS key used to encrypt the cluster at rest.
- maintenanceWindow String
- Weekly time range during which maintenance on the cluster is performed. Specify as a range in the format ddd:hh24:mi-ddd:hh24:mi(24H Clock UTC). Example:sun:23:00-mon:01:30.
- name String
- Name of this node.
- nodeType String
- Compute and memory capacity of the nodes in the cluster.
- numReplicas NumberPer Shard 
- The number of replicas to apply to each shard.
- numShards Number
- Number of shards in the cluster.
- parameterGroup StringName 
- The name of the parameter group associated with the cluster.
- port Number
- Port number that this node is listening on.
- securityGroup List<String>Ids 
- Set of VPC Security Group ID-s associated with this cluster.
- List<Property Map>
- Set of shards in this cluster.
- snapshotRetention NumberLimit 
- The number of days for which MemoryDB retains automatic snapshots before deleting them. When set to 0, automatic backups are disabled.
- snapshotWindow String
- Daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. Example: 05:00-09:00.
- snsTopic StringArn 
- ARN of the SNS topic to which cluster notifications are sent.
- subnetGroup StringName 
- The name of the subnet group used for the cluster.
- Map<String>
- Map of tags assigned to the cluster.
- tlsEnabled Boolean
- When true, in-transit encryption is enabled for the cluster.
Supporting Types
GetClusterClusterEndpoint   
GetClusterShard  
- Name string
- Name of the cluster.
- Nodes
List<GetCluster Shard Node> 
- Set of nodes in this shard.
- NumNodes int
- Number of individual nodes in this shard.
- Slots string
- Keyspace for this shard. Example: 0-16383.
- Name string
- Name of the cluster.
- Nodes
[]GetCluster Shard Node 
- Set of nodes in this shard.
- NumNodes int
- Number of individual nodes in this shard.
- Slots string
- Keyspace for this shard. Example: 0-16383.
- name String
- Name of the cluster.
- nodes
List<GetCluster Shard Node> 
- Set of nodes in this shard.
- numNodes Integer
- Number of individual nodes in this shard.
- slots String
- Keyspace for this shard. Example: 0-16383.
- name string
- Name of the cluster.
- nodes
GetCluster Shard Node[] 
- Set of nodes in this shard.
- numNodes number
- Number of individual nodes in this shard.
- slots string
- Keyspace for this shard. Example: 0-16383.
- name str
- Name of the cluster.
- nodes
Sequence[GetCluster Shard Node] 
- Set of nodes in this shard.
- num_nodes int
- Number of individual nodes in this shard.
- slots str
- Keyspace for this shard. Example: 0-16383.
- name String
- Name of the cluster.
- nodes List<Property Map>
- Set of nodes in this shard.
- numNodes Number
- Number of individual nodes in this shard.
- slots String
- Keyspace for this shard. Example: 0-16383.
GetClusterShardNode   
- AvailabilityZone string
- The Availability Zone in which the node resides.
- CreateTime string
- The date and time when the node was created. Example: 2022-01-01T21:00:00Z.
- Endpoints
List<GetCluster Shard Node Endpoint> 
- Name string
- Name of the cluster.
- AvailabilityZone string
- The Availability Zone in which the node resides.
- CreateTime string
- The date and time when the node was created. Example: 2022-01-01T21:00:00Z.
- Endpoints
[]GetCluster Shard Node Endpoint 
- Name string
- Name of the cluster.
- availabilityZone String
- The Availability Zone in which the node resides.
- createTime String
- The date and time when the node was created. Example: 2022-01-01T21:00:00Z.
- endpoints
List<GetCluster Shard Node Endpoint> 
- name String
- Name of the cluster.
- availabilityZone string
- The Availability Zone in which the node resides.
- createTime string
- The date and time when the node was created. Example: 2022-01-01T21:00:00Z.
- endpoints
GetCluster Shard Node Endpoint[] 
- name string
- Name of the cluster.
- availability_zone str
- The Availability Zone in which the node resides.
- create_time str
- The date and time when the node was created. Example: 2022-01-01T21:00:00Z.
- endpoints
Sequence[GetCluster Shard Node Endpoint] 
- name str
- Name of the cluster.
- availabilityZone String
- The Availability Zone in which the node resides.
- createTime String
- The date and time when the node was created. Example: 2022-01-01T21:00:00Z.
- endpoints List<Property Map>
- name String
- Name of the cluster.
GetClusterShardNodeEndpoint    
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.