AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.elasticache.getReplicationGroup
Explore with Pulumi AI
Use this data source to get information about an ElastiCache Replication Group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bar = aws.elasticache.getReplicationGroup({
    replicationGroupId: "example",
});
import pulumi
import pulumi_aws as aws
bar = aws.elasticache.get_replication_group(replication_group_id="example")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/elasticache"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := elasticache.LookupReplicationGroup(ctx, &elasticache.LookupReplicationGroupArgs{
			ReplicationGroupId: "example",
		}, 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 bar = Aws.ElastiCache.GetReplicationGroup.Invoke(new()
    {
        ReplicationGroupId = "example",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.elasticache.ElasticacheFunctions;
import com.pulumi.aws.elasticache.inputs.GetReplicationGroupArgs;
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 bar = ElasticacheFunctions.getReplicationGroup(GetReplicationGroupArgs.builder()
            .replicationGroupId("example")
            .build());
    }
}
variables:
  bar:
    fn::invoke:
      function: aws:elasticache:getReplicationGroup
      arguments:
        replicationGroupId: example
Using getReplicationGroup
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 getReplicationGroup(args: GetReplicationGroupArgs, opts?: InvokeOptions): Promise<GetReplicationGroupResult>
function getReplicationGroupOutput(args: GetReplicationGroupOutputArgs, opts?: InvokeOptions): Output<GetReplicationGroupResult>def get_replication_group(replication_group_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetReplicationGroupResult
def get_replication_group_output(replication_group_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetReplicationGroupResult]func LookupReplicationGroup(ctx *Context, args *LookupReplicationGroupArgs, opts ...InvokeOption) (*LookupReplicationGroupResult, error)
func LookupReplicationGroupOutput(ctx *Context, args *LookupReplicationGroupOutputArgs, opts ...InvokeOption) LookupReplicationGroupResultOutput> Note: This function is named LookupReplicationGroup in the Go SDK.
public static class GetReplicationGroup 
{
    public static Task<GetReplicationGroupResult> InvokeAsync(GetReplicationGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetReplicationGroupResult> Invoke(GetReplicationGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReplicationGroupResult> getReplicationGroup(GetReplicationGroupArgs args, InvokeOptions options)
public static Output<GetReplicationGroupResult> getReplicationGroup(GetReplicationGroupArgs args, InvokeOptions options)
fn::invoke:
  function: aws:elasticache/getReplicationGroup:getReplicationGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ReplicationGroup stringId 
- Identifier for the replication group.
- ReplicationGroup stringId 
- Identifier for the replication group.
- replicationGroup StringId 
- Identifier for the replication group.
- replicationGroup stringId 
- Identifier for the replication group.
- replication_group_ strid 
- Identifier for the replication group.
- replicationGroup StringId 
- Identifier for the replication group.
getReplicationGroup Result
The following output properties are available:
- Arn string
- ARN of the created ElastiCache Replication Group.
- AuthToken boolEnabled 
- Whether an AuthToken (password) is enabled.
- AutomaticFailover boolEnabled 
- A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- ClusterMode string
- Whether cluster mode is enabled or disabled.
- ConfigurationEndpoint stringAddress 
- The configuration endpoint address to allow host discovery.
- Description string
- Description of the replication group.
- Id string
- The provider-assigned unique ID for this managed resource.
- LogDelivery List<GetConfigurations Replication Group Log Delivery Configuration> 
- Redis SLOWLOG or Redis Engine Log delivery settings.
- MemberClusters List<string>
- Identifiers of all the nodes that are part of this replication group.
- MultiAz boolEnabled 
- Whether Multi-AZ Support is enabled for the replication group.
- NodeType string
- The cluster node type.
- NumCache intClusters 
- The number of cache clusters that the replication group has.
- NumNode intGroups 
- Number of node groups (shards) for the replication group.
- Port int
- The port number on which the configuration endpoint will accept connections.
- PrimaryEndpoint stringAddress 
- The endpoint of the primary node in this node group (shard).
- ReaderEndpoint stringAddress 
- The endpoint of the reader node in this node group (shard).
- ReplicasPer intNode Group 
- Number of replica nodes in each node group.
- ReplicationGroup stringId 
- SnapshotRetention intLimit 
- The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- SnapshotWindow string
- Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- Arn string
- ARN of the created ElastiCache Replication Group.
- AuthToken boolEnabled 
- Whether an AuthToken (password) is enabled.
- AutomaticFailover boolEnabled 
- A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- ClusterMode string
- Whether cluster mode is enabled or disabled.
- ConfigurationEndpoint stringAddress 
- The configuration endpoint address to allow host discovery.
- Description string
- Description of the replication group.
- Id string
- The provider-assigned unique ID for this managed resource.
- LogDelivery []GetConfigurations Replication Group Log Delivery Configuration 
- Redis SLOWLOG or Redis Engine Log delivery settings.
- MemberClusters []string
- Identifiers of all the nodes that are part of this replication group.
- MultiAz boolEnabled 
- Whether Multi-AZ Support is enabled for the replication group.
- NodeType string
- The cluster node type.
- NumCache intClusters 
- The number of cache clusters that the replication group has.
- NumNode intGroups 
- Number of node groups (shards) for the replication group.
- Port int
- The port number on which the configuration endpoint will accept connections.
- PrimaryEndpoint stringAddress 
- The endpoint of the primary node in this node group (shard).
- ReaderEndpoint stringAddress 
- The endpoint of the reader node in this node group (shard).
- ReplicasPer intNode Group 
- Number of replica nodes in each node group.
- ReplicationGroup stringId 
- SnapshotRetention intLimit 
- The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- SnapshotWindow string
- Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- arn String
- ARN of the created ElastiCache Replication Group.
- authToken BooleanEnabled 
- Whether an AuthToken (password) is enabled.
- automaticFailover BooleanEnabled 
- A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- clusterMode String
- Whether cluster mode is enabled or disabled.
- configurationEndpoint StringAddress 
- The configuration endpoint address to allow host discovery.
- description String
- Description of the replication group.
- id String
- The provider-assigned unique ID for this managed resource.
- logDelivery List<GetConfigurations Replication Group Log Delivery Configuration> 
- Redis SLOWLOG or Redis Engine Log delivery settings.
- memberClusters List<String>
- Identifiers of all the nodes that are part of this replication group.
- multiAz BooleanEnabled 
- Whether Multi-AZ Support is enabled for the replication group.
- nodeType String
- The cluster node type.
- numCache IntegerClusters 
- The number of cache clusters that the replication group has.
- numNode IntegerGroups 
- Number of node groups (shards) for the replication group.
- port Integer
- The port number on which the configuration endpoint will accept connections.
- primaryEndpoint StringAddress 
- The endpoint of the primary node in this node group (shard).
- readerEndpoint StringAddress 
- The endpoint of the reader node in this node group (shard).
- replicasPer IntegerNode Group 
- Number of replica nodes in each node group.
- replicationGroup StringId 
- snapshotRetention IntegerLimit 
- The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshotWindow String
- Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- arn string
- ARN of the created ElastiCache Replication Group.
- authToken booleanEnabled 
- Whether an AuthToken (password) is enabled.
- automaticFailover booleanEnabled 
- A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- clusterMode string
- Whether cluster mode is enabled or disabled.
- configurationEndpoint stringAddress 
- The configuration endpoint address to allow host discovery.
- description string
- Description of the replication group.
- id string
- The provider-assigned unique ID for this managed resource.
- logDelivery GetConfigurations Replication Group Log Delivery Configuration[] 
- Redis SLOWLOG or Redis Engine Log delivery settings.
- memberClusters string[]
- Identifiers of all the nodes that are part of this replication group.
- multiAz booleanEnabled 
- Whether Multi-AZ Support is enabled for the replication group.
- nodeType string
- The cluster node type.
- numCache numberClusters 
- The number of cache clusters that the replication group has.
- numNode numberGroups 
- Number of node groups (shards) for the replication group.
- port number
- The port number on which the configuration endpoint will accept connections.
- primaryEndpoint stringAddress 
- The endpoint of the primary node in this node group (shard).
- readerEndpoint stringAddress 
- The endpoint of the reader node in this node group (shard).
- replicasPer numberNode Group 
- Number of replica nodes in each node group.
- replicationGroup stringId 
- snapshotRetention numberLimit 
- The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshotWindow string
- Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- arn str
- ARN of the created ElastiCache Replication Group.
- auth_token_ boolenabled 
- Whether an AuthToken (password) is enabled.
- automatic_failover_ boolenabled 
- A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- cluster_mode str
- Whether cluster mode is enabled or disabled.
- configuration_endpoint_ straddress 
- The configuration endpoint address to allow host discovery.
- description str
- Description of the replication group.
- id str
- The provider-assigned unique ID for this managed resource.
- log_delivery_ Sequence[Getconfigurations Replication Group Log Delivery Configuration] 
- Redis SLOWLOG or Redis Engine Log delivery settings.
- member_clusters Sequence[str]
- Identifiers of all the nodes that are part of this replication group.
- multi_az_ boolenabled 
- Whether Multi-AZ Support is enabled for the replication group.
- node_type str
- The cluster node type.
- num_cache_ intclusters 
- The number of cache clusters that the replication group has.
- num_node_ intgroups 
- Number of node groups (shards) for the replication group.
- port int
- The port number on which the configuration endpoint will accept connections.
- primary_endpoint_ straddress 
- The endpoint of the primary node in this node group (shard).
- reader_endpoint_ straddress 
- The endpoint of the reader node in this node group (shard).
- replicas_per_ intnode_ group 
- Number of replica nodes in each node group.
- replication_group_ strid 
- snapshot_retention_ intlimit 
- The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshot_window str
- Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- arn String
- ARN of the created ElastiCache Replication Group.
- authToken BooleanEnabled 
- Whether an AuthToken (password) is enabled.
- automaticFailover BooleanEnabled 
- A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- clusterMode String
- Whether cluster mode is enabled or disabled.
- configurationEndpoint StringAddress 
- The configuration endpoint address to allow host discovery.
- description String
- Description of the replication group.
- id String
- The provider-assigned unique ID for this managed resource.
- logDelivery List<Property Map>Configurations 
- Redis SLOWLOG or Redis Engine Log delivery settings.
- memberClusters List<String>
- Identifiers of all the nodes that are part of this replication group.
- multiAz BooleanEnabled 
- Whether Multi-AZ Support is enabled for the replication group.
- nodeType String
- The cluster node type.
- numCache NumberClusters 
- The number of cache clusters that the replication group has.
- numNode NumberGroups 
- Number of node groups (shards) for the replication group.
- port Number
- The port number on which the configuration endpoint will accept connections.
- primaryEndpoint StringAddress 
- The endpoint of the primary node in this node group (shard).
- readerEndpoint StringAddress 
- The endpoint of the reader node in this node group (shard).
- replicasPer NumberNode Group 
- Number of replica nodes in each node group.
- replicationGroup StringId 
- snapshotRetention NumberLimit 
- The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshotWindow String
- Daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
Supporting Types
GetReplicationGroupLogDeliveryConfiguration     
- Destination string
- DestinationType string
- LogFormat string
- LogType string
- Destination string
- DestinationType string
- LogFormat string
- LogType string
- destination String
- destinationType String
- logFormat String
- logType String
- destination string
- destinationType string
- logFormat string
- logType string
- destination str
- destination_type str
- log_format str
- log_type str
- destination String
- destinationType String
- logFormat String
- logType String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.