GetReplicationGroup
Use this data source to get information about an Elasticache Replication Group.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var bar = Output.Create(Aws.ElastiCache.GetReplicationGroup.InvokeAsync(new Aws.ElastiCache.GetReplicationGroupArgs
{
ReplicationGroupId = "example",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elasticache"
"github.com/pulumi/pulumi/sdk/v2/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
})
}import pulumi
import pulumi_aws as aws
bar = aws.elasticache.get_replication_group(replication_group_id="example")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bar = pulumi.output(aws.elasticache.getReplicationGroup({
replicationGroupId: "example",
}, { async: true }));Using GetReplicationGroup
function getReplicationGroup(args: GetReplicationGroupArgs, opts?: InvokeOptions): Promise<GetReplicationGroupResult>function get_replication_group(replication_group_id=None, opts=None)func LookupReplicationGroup(ctx *Context, args *LookupReplicationGroupArgs, opts ...InvokeOption) (*LookupReplicationGroupResult, error)Note: This function is named
LookupReplicationGroupin the Go SDK.
public static class GetReplicationGroup {
public static Task<GetReplicationGroupResult> InvokeAsync(GetReplicationGroupArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Replication
Group stringId The identifier for the replication group.
- Replication
Group stringId The identifier for the replication group.
- replication
Group stringId The identifier for the replication group.
- replication_
group_ strid The identifier for the replication group.
GetReplicationGroup Result
The following output properties are available:
- Auth
Token boolEnabled A flag that enables using an AuthToken (password) when issuing Redis commands.
- Automatic
Failover boolEnabled A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- Configuration
Endpoint stringAddress The configuration endpoint address to allow host discovery.
- Id string
The provider-assigned unique ID for this managed resource.
- Member
Clusters List<string> The identifiers of all the nodes that are part of this replication group.
- Node
Type string The cluster node type.
- Number
Cache intClusters The number of cache clusters that the replication group has.
- Port int
The port number on which the configuration endpoint will accept connections.
- Primary
Endpoint stringAddress The endpoint of the primary node in this node group (shard).
- Replication
Group stringDescription The description of the replication group.
- Replication
Group stringId The identifier for the replication group.
- Snapshot
Retention intLimit The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- Snapshot
Window string The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- Auth
Token boolEnabled A flag that enables using an AuthToken (password) when issuing Redis commands.
- Automatic
Failover boolEnabled A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- Configuration
Endpoint stringAddress The configuration endpoint address to allow host discovery.
- Id string
The provider-assigned unique ID for this managed resource.
- Member
Clusters []string The identifiers of all the nodes that are part of this replication group.
- Node
Type string The cluster node type.
- Number
Cache intClusters The number of cache clusters that the replication group has.
- Port int
The port number on which the configuration endpoint will accept connections.
- Primary
Endpoint stringAddress The endpoint of the primary node in this node group (shard).
- Replication
Group stringDescription The description of the replication group.
- Replication
Group stringId The identifier for the replication group.
- Snapshot
Retention intLimit The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- Snapshot
Window string The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- auth
Token booleanEnabled A flag that enables using an AuthToken (password) when issuing Redis commands.
- automatic
Failover booleanEnabled A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- configuration
Endpoint stringAddress The configuration endpoint address to allow host discovery.
- id string
The provider-assigned unique ID for this managed resource.
- member
Clusters string[] The identifiers of all the nodes that are part of this replication group.
- node
Type string The cluster node type.
- number
Cache numberClusters The number of cache clusters that the replication group has.
- port number
The port number on which the configuration endpoint will accept connections.
- primary
Endpoint stringAddress The endpoint of the primary node in this node group (shard).
- replication
Group stringDescription The description of the replication group.
- replication
Group stringId The identifier for the replication group.
- snapshot
Retention numberLimit The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshot
Window string The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
- auth_
token_ boolenabled A flag that enables using an AuthToken (password) when issuing Redis commands.
- automatic_
failover_ boolenabled A flag whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails.
- configuration_
endpoint_ straddress The configuration endpoint address to allow host discovery.
- id str
The provider-assigned unique ID for this managed resource.
- member_
clusters List[str] The identifiers of all the nodes that are part of this replication group.
- node_
type str The cluster node type.
- number_
cache_ floatclusters The number of cache clusters that the replication group has.
- port float
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).
- replication_
group_ strdescription The description of the replication group.
- replication_
group_ strid The identifier for the replication group.
- snapshot_
retention_ floatlimit The number of days for which ElastiCache retains automatic cache cluster snapshots before deleting them.
- snapshot_
window str The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.