GetCluster
Use this data source to get information about an Elasticache Cluster
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var myCluster = Output.Create(Aws.ElastiCache.GetCluster.InvokeAsync(new Aws.ElastiCache.GetClusterArgs
{
ClusterId = "my-cluster-id",
}));
}
}
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.LookupCluster(ctx, &elasticache.LookupClusterArgs{
ClusterId: "my-cluster-id",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
my_cluster = aws.elasticache.get_cluster(cluster_id="my-cluster-id")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const myCluster = pulumi.output(aws.elasticache.getCluster({
clusterId: "my-cluster-id",
}, { async: true }));Using GetCluster
function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>function get_cluster(cluster_id=None, tags=None, opts=None)func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)Note: This function is named
LookupClusterin the Go SDK.
public static class GetCluster {
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- cluster_
id str Group identifier.
- Dict[str, str]
The tags assigned to the resource
GetCluster Result
The following output properties are available:
- Arn string
- Availability
Zone string The Availability Zone for the cache cluster.
- Cache
Nodes List<GetCluster Cache Node> List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}- Cluster
Address string (Memcached only) The DNS name of the cache cluster without the port appended.
- Cluster
Id string - Configuration
Endpoint string (Memcached only) The 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.
- Maintenance
Window string Specifies the weekly time range for when maintenance on the cache cluster is performed.
- Node
Type string The cluster node type.
- Notification
Topic stringArn An Amazon Resource Name (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.
- 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.
- Security
Group List<string>Names List of security group names associated with this cache cluster.
- Snapshot
Retention intLimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- Snapshot
Window string The 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>
The tags assigned to the resource
- Arn string
- Availability
Zone string The Availability Zone for the cache cluster.
- Cache
Nodes []GetCluster Cache Node List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}- Cluster
Address string (Memcached only) The DNS name of the cache cluster without the port appended.
- Cluster
Id string - Configuration
Endpoint string (Memcached only) The 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.
- Maintenance
Window string Specifies the weekly time range for when maintenance on the cache cluster is performed.
- Node
Type string The cluster node type.
- Notification
Topic stringArn An Amazon Resource Name (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.
- Replication
Group stringId The replication group to which this cache cluster belongs.
- Security
Group []stringIds List VPC security groups associated with the cache cluster.
- Security
Group []stringNames List of security group names associated with this cache cluster.
- Snapshot
Retention intLimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- Snapshot
Window string The 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
The tags assigned to the resource
- arn string
- availability
Zone string The Availability Zone for the cache cluster.
- cache
Nodes GetCluster Cache Node[] List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}- cluster
Address string (Memcached only) The DNS name of the cache cluster without the port appended.
- cluster
Id string - configuration
Endpoint string (Memcached only) The 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.
- maintenance
Window string Specifies the weekly time range for when maintenance on the cache cluster is performed.
- node
Type string The cluster node type.
- notification
Topic stringArn An Amazon Resource Name (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.
- 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.
- security
Group string[]Names List of security group names associated with this cache cluster.
- snapshot
Retention numberLimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- snapshot
Window string The 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}
The tags assigned to the resource
- arn str
- availability_
zone str The Availability Zone for the cache cluster.
- cache_
nodes List[GetCluster Cache Node] List of node objects including
id,address,portandavailability_zone. Referenceable e.g. as${data.aws_elasticache_cluster.bar.cache_nodes.0.address}- cluster_
address str (Memcached only) The DNS name of the cache cluster without the port appended.
- cluster_
id str - configuration_
endpoint str (Memcached only) The 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.
- maintenance_
window str Specifies the weekly time range for when maintenance on the cache cluster is performed.
- node_
type str The cluster node type.
- notification_
topic_ strarn An Amazon Resource Name (ARN) of an SNS topic that ElastiCache notifications get sent to.
- num_
cache_ floatnodes The number of cache nodes that the cache cluster has.
- parameter_
group_ strname Name of the parameter group associated with this cache cluster.
- port float
The port number on which each of the cache nodes will accept connections.
- replication_
group_ strid The replication group to which this cache cluster belongs.
- security_
group_ List[str]ids List VPC security groups associated with the cache cluster.
- security_
group_ List[str]names List of security group names associated with this cache cluster.
- snapshot_
retention_ floatlimit The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them.
- snapshot_
window str The 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.
- Dict[str, str]
The tags assigned to the resource
Supporting Types
GetClusterCacheNode
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.