AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.elasticache.getCluster
Explore with Pulumi AI
Use this data source to get information about an ElastiCache Cluster
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const myCluster = aws.elasticache.getCluster({
clusterId: "my-cluster-id",
});
import pulumi
import pulumi_aws as aws
my_cluster = aws.elasticache.get_cluster(cluster_id="my-cluster-id")
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.LookupCluster(ctx, &elasticache.LookupClusterArgs{
ClusterId: "my-cluster-id",
}, 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 myCluster = Aws.ElastiCache.GetCluster.Invoke(new()
{
ClusterId = "my-cluster-id",
});
});
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.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 myCluster = ElasticacheFunctions.getCluster(GetClusterArgs.builder()
.clusterId("my-cluster-id")
.build());
}
}
variables:
myCluster:
fn::invoke:
Function: aws:elasticache:getCluster
Arguments:
clusterId: my-cluster-id
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(cluster_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterResult
def get_cluster_output(cluster_id: 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:elasticache/getCluster:getCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - Group identifier.
- Dictionary<string, string>
- Tags assigned to the resource
- Cluster
Id string - Group identifier.
- map[string]string
- Tags assigned to the resource
- cluster
Id String - Group identifier.
- Map<String,String>
- Tags assigned to the resource
- cluster
Id string - Group identifier.
- {[key: string]: string}
- Tags assigned to the resource
- cluster_
id str - Group identifier.
- Mapping[str, str]
- Tags assigned to the resource
- cluster
Id String - Group identifier.
- Map<String>
- Tags assigned to the resource
getCluster Result
The following output properties are available:
- Arn string
- Availability
Zone string - Availability Zone for the cache cluster.
- Cache
Nodes List<GetCluster Cache Node> - List of node objects including
id
,address
,port
,availability_zone
andoutpost_arn
. Referenceable e.g., as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}
- Cluster
Address string - (Memcached only) DNS name of the cache cluster without the port appended.
- Cluster
Id string - Configuration
Endpoint string - (Memcached only) Configuration endpoint to allow host discovery.
- Engine string
- Name of the cache engine.
- Engine
Version string - Version number of the cache engine.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Discovery string - The IP version advertised in the discovery protocol.
- Log
Delivery List<GetConfigurations Cluster Log Delivery Configuration> - Redis SLOWLOG or Redis Engine Log delivery settings.
- Maintenance
Window string - Specifies the weekly time range for when maintenance on the cache cluster is performed.
- Network
Type string - The IP versions for cache cluster connections.
- Node
Type string - The cluster node type.
- Notification
Topic stringArn - An ARN of an SNS topic that ElastiCache notifications get sent to.
- Num
Cache intNodes - The number of cache nodes that the cache cluster has.
- Parameter
Group stringName - Name of the parameter group associated with this cache cluster.
- Port int
- The port number on which each of the cache nodes will accept connections.
- Preferred
Outpost stringArn - The outpost ARN in which the cache cluster was created if created in outpost.
- Replication
Group stringId - The replication group to which this cache cluster belongs.
- Security
Group List<string>Ids - List VPC security groups associated with the cache cluster.
- Snapshot
Retention intLimit - The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- Snapshot
Window string - Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the cache cluster.
- Subnet
Group stringName - Name of the subnet group associated to the cache cluster.
- Dictionary<string, string>
- Tags assigned to the resource
- Arn string
- Availability
Zone string - Availability Zone for the cache cluster.
- Cache
Nodes []GetCluster Cache Node - List of node objects including
id
,address
,port
,availability_zone
andoutpost_arn
. Referenceable e.g., as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}
- Cluster
Address string - (Memcached only) DNS name of the cache cluster without the port appended.
- Cluster
Id string - Configuration
Endpoint string - (Memcached only) Configuration endpoint to allow host discovery.
- Engine string
- Name of the cache engine.
- Engine
Version string - Version number of the cache engine.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Discovery string - The IP version advertised in the discovery protocol.
- Log
Delivery []GetConfigurations Cluster Log Delivery Configuration - Redis SLOWLOG or Redis Engine Log delivery settings.
- Maintenance
Window string - Specifies the weekly time range for when maintenance on the cache cluster is performed.
- Network
Type string - The IP versions for cache cluster connections.
- Node
Type string - The cluster node type.
- Notification
Topic stringArn - An ARN of an SNS topic that ElastiCache notifications get sent to.
- Num
Cache intNodes - The number of cache nodes that the cache cluster has.
- Parameter
Group stringName - Name of the parameter group associated with this cache cluster.
- Port int
- The port number on which each of the cache nodes will accept connections.
- Preferred
Outpost stringArn - The outpost ARN in which the cache cluster was created if created in outpost.
- Replication
Group stringId - The replication group to which this cache cluster belongs.
- Security
Group []stringIds - List VPC security groups associated with the cache cluster.
- Snapshot
Retention intLimit - The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- Snapshot
Window string - Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the cache cluster.
- Subnet
Group stringName - Name of the subnet group associated to the cache cluster.
- map[string]string
- Tags assigned to the resource
- arn String
- availability
Zone String - Availability Zone for the cache cluster.
- cache
Nodes List<GetCluster Cache Node> - List of node objects including
id
,address
,port
,availability_zone
andoutpost_arn
. Referenceable e.g., as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}
- cluster
Address String - (Memcached only) DNS name of the cache cluster without the port appended.
- cluster
Id String - configuration
Endpoint String - (Memcached only) Configuration endpoint to allow host discovery.
- engine String
- Name of the cache engine.
- engine
Version String - Version number of the cache engine.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Discovery String - The IP version advertised in the discovery protocol.
- log
Delivery List<GetConfigurations Cluster Log Delivery Configuration> - Redis SLOWLOG or Redis Engine Log delivery settings.
- maintenance
Window String - Specifies the weekly time range for when maintenance on the cache cluster is performed.
- network
Type String - The IP versions for cache cluster connections.
- node
Type String - The cluster node type.
- notification
Topic StringArn - An ARN of an SNS topic that ElastiCache notifications get sent to.
- num
Cache IntegerNodes - The number of cache nodes that the cache cluster has.
- parameter
Group StringName - Name of the parameter group associated with this cache cluster.
- port Integer
- The port number on which each of the cache nodes will accept connections.
- preferred
Outpost StringArn - The outpost ARN in which the cache cluster was created if created in outpost.
- replication
Group StringId - The replication group to which this cache cluster belongs.
- security
Group List<String>Ids - List VPC security groups associated with the cache cluster.
- snapshot
Retention IntegerLimit - The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- snapshot
Window String - Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the cache cluster.
- subnet
Group StringName - Name of the subnet group associated to the cache cluster.
- Map<String,String>
- Tags assigned to the resource
- arn string
- availability
Zone string - Availability Zone for the cache cluster.
- cache
Nodes GetCluster Cache Node[] - List of node objects including
id
,address
,port
,availability_zone
andoutpost_arn
. Referenceable e.g., as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}
- cluster
Address string - (Memcached only) DNS name of the cache cluster without the port appended.
- cluster
Id string - configuration
Endpoint string - (Memcached only) Configuration endpoint to allow host discovery.
- engine string
- Name of the cache engine.
- engine
Version string - Version number of the cache engine.
- id string
- The provider-assigned unique ID for this managed resource.
- ip
Discovery string - The IP version advertised in the discovery protocol.
- log
Delivery GetConfigurations Cluster Log Delivery Configuration[] - Redis SLOWLOG or Redis Engine Log delivery settings.
- maintenance
Window string - Specifies the weekly time range for when maintenance on the cache cluster is performed.
- network
Type string - The IP versions for cache cluster connections.
- node
Type string - The cluster node type.
- notification
Topic stringArn - An ARN of an SNS topic that ElastiCache notifications get sent to.
- num
Cache numberNodes - The number of cache nodes that the cache cluster has.
- parameter
Group stringName - Name of the parameter group associated with this cache cluster.
- port number
- The port number on which each of the cache nodes will accept connections.
- preferred
Outpost stringArn - The outpost ARN in which the cache cluster was created if created in outpost.
- replication
Group stringId - The replication group to which this cache cluster belongs.
- security
Group string[]Ids - List VPC security groups associated with the cache cluster.
- snapshot
Retention numberLimit - The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- snapshot
Window string - Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the cache cluster.
- subnet
Group stringName - Name of the subnet group associated to the cache cluster.
- {[key: string]: string}
- Tags assigned to the resource
- arn str
- availability_
zone str - Availability Zone for the cache cluster.
- cache_
nodes Sequence[GetCluster Cache Node] - List of node objects including
id
,address
,port
,availability_zone
andoutpost_arn
. Referenceable e.g., as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}
- cluster_
address str - (Memcached only) DNS name of the cache cluster without the port appended.
- cluster_
id str - configuration_
endpoint str - (Memcached only) Configuration endpoint to allow host discovery.
- engine str
- Name of the cache engine.
- engine_
version str - Version number of the cache engine.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
discovery str - The IP version advertised in the discovery protocol.
- log_
delivery_ Sequence[Getconfigurations Cluster Log Delivery Configuration] - Redis SLOWLOG or Redis Engine Log delivery settings.
- maintenance_
window str - Specifies the weekly time range for when maintenance on the cache cluster is performed.
- network_
type str - The IP versions for cache cluster connections.
- node_
type str - The cluster node type.
- notification_
topic_ strarn - An ARN of an SNS topic that ElastiCache notifications get sent to.
- num_
cache_ intnodes - The number of cache nodes that the cache cluster has.
- parameter_
group_ strname - Name of the parameter group associated with this cache cluster.
- port int
- The port number on which each of the cache nodes will accept connections.
- preferred_
outpost_ strarn - The outpost ARN in which the cache cluster was created if created in outpost.
- replication_
group_ strid - The replication group to which this cache cluster belongs.
- security_
group_ Sequence[str]ids - List VPC security groups associated with the cache cluster.
- snapshot_
retention_ intlimit - The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- snapshot_
window str - Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the cache cluster.
- subnet_
group_ strname - Name of the subnet group associated to the cache cluster.
- Mapping[str, str]
- Tags assigned to the resource
- arn String
- availability
Zone String - Availability Zone for the cache cluster.
- cache
Nodes List<Property Map> - List of node objects including
id
,address
,port
,availability_zone
andoutpost_arn
. Referenceable e.g., as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}
- cluster
Address String - (Memcached only) DNS name of the cache cluster without the port appended.
- cluster
Id String - configuration
Endpoint String - (Memcached only) Configuration endpoint to allow host discovery.
- engine String
- Name of the cache engine.
- engine
Version String - Version number of the cache engine.
- id String
- The provider-assigned unique ID for this managed resource.
- ip
Discovery String - The IP version advertised in the discovery protocol.
- log
Delivery List<Property Map>Configurations - Redis SLOWLOG or Redis Engine Log delivery settings.
- maintenance
Window String - Specifies the weekly time range for when maintenance on the cache cluster is performed.
- network
Type String - The IP versions for cache cluster connections.
- node
Type String - The cluster node type.
- notification
Topic StringArn - An ARN of an SNS topic that ElastiCache notifications get sent to.
- num
Cache NumberNodes - The number of cache nodes that the cache cluster has.
- parameter
Group StringName - Name of the parameter group associated with this cache cluster.
- port Number
- The port number on which each of the cache nodes will accept connections.
- preferred
Outpost StringArn - The outpost ARN in which the cache cluster was created if created in outpost.
- replication
Group StringId - The replication group to which this cache cluster belongs.
- security
Group List<String>Ids - List VPC security groups associated with the cache cluster.
- snapshot
Retention NumberLimit - The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- snapshot
Window String - Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of the cache cluster.
- subnet
Group StringName - Name of the subnet group associated to the cache cluster.
- Map<String>
- Tags assigned to the resource
Supporting Types
GetClusterCacheNode
- Address string
- Availability
Zone string - Availability Zone for the cache cluster.
- Id string
- Outpost
Arn string - Port int
- The port number on which each of the cache nodes will accept connections.
- Address string
- Availability
Zone string - Availability Zone for the cache cluster.
- Id string
- Outpost
Arn string - Port int
- The port number on which each of the cache nodes will accept connections.
- address String
- availability
Zone String - Availability Zone for the cache cluster.
- id String
- outpost
Arn String - port Integer
- The port number on which each of the cache nodes will accept connections.
- address string
- availability
Zone string - Availability Zone for the cache cluster.
- id string
- outpost
Arn string - port number
- The port number on which each of the cache nodes will accept connections.
- address str
- availability_
zone str - Availability Zone for the cache cluster.
- id str
- outpost_
arn str - port int
- The port number on which each of the cache nodes will accept connections.
- address String
- availability
Zone String - Availability Zone for the cache cluster.
- id String
- outpost
Arn String - port Number
- The port number on which each of the cache nodes will accept connections.
GetClusterLogDeliveryConfiguration
- Destination string
- Destination
Type string - Log
Format string - Log
Type string
- Destination string
- Destination
Type string - Log
Format string - Log
Type string
- destination String
- destination
Type String - log
Format String - log
Type String
- destination string
- destination
Type string - log
Format string - log
Type string
- destination str
- destination_
type str - log_
format str - log_
type str
- destination String
- destination
Type String - log
Format String - log
Type String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.