AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.elasticache.getServerlessCache
Explore with Pulumi AI
Use this data source to get information about an ElastiCache Serverless Cache.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.elasticache.getServerlessCache({
    name: "example",
});
import pulumi
import pulumi_aws as aws
example = aws.elasticache.get_serverless_cache(name="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.LookupServerlessCache(ctx, &elasticache.LookupServerlessCacheArgs{
			Name: "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 example = Aws.ElastiCache.GetServerlessCache.Invoke(new()
    {
        Name = "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.GetServerlessCacheArgs;
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 = ElasticacheFunctions.getServerlessCache(GetServerlessCacheArgs.builder()
            .name("example")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:elasticache:getServerlessCache
      arguments:
        name: example
Using getServerlessCache
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 getServerlessCache(args: GetServerlessCacheArgs, opts?: InvokeOptions): Promise<GetServerlessCacheResult>
function getServerlessCacheOutput(args: GetServerlessCacheOutputArgs, opts?: InvokeOptions): Output<GetServerlessCacheResult>def get_serverless_cache(name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetServerlessCacheResult
def get_serverless_cache_output(name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetServerlessCacheResult]func LookupServerlessCache(ctx *Context, args *LookupServerlessCacheArgs, opts ...InvokeOption) (*LookupServerlessCacheResult, error)
func LookupServerlessCacheOutput(ctx *Context, args *LookupServerlessCacheOutputArgs, opts ...InvokeOption) LookupServerlessCacheResultOutput> Note: This function is named LookupServerlessCache in the Go SDK.
public static class GetServerlessCache 
{
    public static Task<GetServerlessCacheResult> InvokeAsync(GetServerlessCacheArgs args, InvokeOptions? opts = null)
    public static Output<GetServerlessCacheResult> Invoke(GetServerlessCacheInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServerlessCacheResult> getServerlessCache(GetServerlessCacheArgs args, InvokeOptions options)
public static Output<GetServerlessCacheResult> getServerlessCache(GetServerlessCacheArgs args, InvokeOptions options)
fn::invoke:
  function: aws:elasticache/getServerlessCache:getServerlessCache
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Identifier for the serverless cache.
- Name string
- Identifier for the serverless cache.
- name String
- Identifier for the serverless cache.
- name string
- Identifier for the serverless cache.
- name str
- Identifier for the serverless cache.
- name String
- Identifier for the serverless cache.
getServerlessCache Result
The following output properties are available:
- Arn string
- The Amazon Resource Name (ARN) of the serverless cache.
- CacheUsage GetLimits Serverless Cache Cache Usage Limits 
- The cache usage limits for storage and ElastiCache Processing Units for the cache. See cache_usage_limitsBlock for details.
- CreateTime string
- Timestamp of when the serverless cache was created.
- DailySnapshot stringTime 
- The daily time that snapshots will be created from the new serverless cache. Only available for engine types "redis"and"valkey".
- Description string
- Description of the serverless cache.
- Endpoint
GetServerless Cache Endpoint 
- Represents the information required for client programs to connect to the cache. See endpointBlock for details.
- Engine string
- Name of the cache engine.
- FullEngine stringVersion 
- The name and version number of the engine the serverless cache is compatible with.
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringId 
- ARN of the customer managed key for encrypting the data at rest.
- MajorEngine stringVersion 
- The version number of the engine the serverless cache is compatible with.
- Name string
- ReaderEndpoint GetServerless Cache Reader Endpoint 
- Represents the information required for client programs to connect to a cache node. See reader_endpointBlock for details.
- SecurityGroup List<string>Ids 
- A list of the one or more VPC security groups associated with the serverless cache.
- SnapshotRetention intLimit 
- The number of snapshots that will be retained for the serverless cache. Available for Redis only.
- Status string
- The current status of the serverless cache.
- SubnetIds List<string>
- A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- UserGroup stringId 
- The identifier of the UserGroup associated with the serverless cache. Available for Redis only.
- Arn string
- The Amazon Resource Name (ARN) of the serverless cache.
- CacheUsage GetLimits Serverless Cache Cache Usage Limits 
- The cache usage limits for storage and ElastiCache Processing Units for the cache. See cache_usage_limitsBlock for details.
- CreateTime string
- Timestamp of when the serverless cache was created.
- DailySnapshot stringTime 
- The daily time that snapshots will be created from the new serverless cache. Only available for engine types "redis"and"valkey".
- Description string
- Description of the serverless cache.
- Endpoint
GetServerless Cache Endpoint 
- Represents the information required for client programs to connect to the cache. See endpointBlock for details.
- Engine string
- Name of the cache engine.
- FullEngine stringVersion 
- The name and version number of the engine the serverless cache is compatible with.
- Id string
- The provider-assigned unique ID for this managed resource.
- KmsKey stringId 
- ARN of the customer managed key for encrypting the data at rest.
- MajorEngine stringVersion 
- The version number of the engine the serverless cache is compatible with.
- Name string
- ReaderEndpoint GetServerless Cache Reader Endpoint 
- Represents the information required for client programs to connect to a cache node. See reader_endpointBlock for details.
- SecurityGroup []stringIds 
- A list of the one or more VPC security groups associated with the serverless cache.
- SnapshotRetention intLimit 
- The number of snapshots that will be retained for the serverless cache. Available for Redis only.
- Status string
- The current status of the serverless cache.
- SubnetIds []string
- A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- UserGroup stringId 
- The identifier of the UserGroup associated with the serverless cache. Available for Redis only.
- arn String
- The Amazon Resource Name (ARN) of the serverless cache.
- cacheUsage GetLimits Serverless Cache Cache Usage Limits 
- The cache usage limits for storage and ElastiCache Processing Units for the cache. See cache_usage_limitsBlock for details.
- createTime String
- Timestamp of when the serverless cache was created.
- dailySnapshot StringTime 
- The daily time that snapshots will be created from the new serverless cache. Only available for engine types "redis"and"valkey".
- description String
- Description of the serverless cache.
- endpoint
GetServerless Cache Endpoint 
- Represents the information required for client programs to connect to the cache. See endpointBlock for details.
- engine String
- Name of the cache engine.
- fullEngine StringVersion 
- The name and version number of the engine the serverless cache is compatible with.
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringId 
- ARN of the customer managed key for encrypting the data at rest.
- majorEngine StringVersion 
- The version number of the engine the serverless cache is compatible with.
- name String
- readerEndpoint GetServerless Cache Reader Endpoint 
- Represents the information required for client programs to connect to a cache node. See reader_endpointBlock for details.
- securityGroup List<String>Ids 
- A list of the one or more VPC security groups associated with the serverless cache.
- snapshotRetention IntegerLimit 
- The number of snapshots that will be retained for the serverless cache. Available for Redis only.
- status String
- The current status of the serverless cache.
- subnetIds List<String>
- A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- userGroup StringId 
- The identifier of the UserGroup associated with the serverless cache. Available for Redis only.
- arn string
- The Amazon Resource Name (ARN) of the serverless cache.
- cacheUsage GetLimits Serverless Cache Cache Usage Limits 
- The cache usage limits for storage and ElastiCache Processing Units for the cache. See cache_usage_limitsBlock for details.
- createTime string
- Timestamp of when the serverless cache was created.
- dailySnapshot stringTime 
- The daily time that snapshots will be created from the new serverless cache. Only available for engine types "redis"and"valkey".
- description string
- Description of the serverless cache.
- endpoint
GetServerless Cache Endpoint 
- Represents the information required for client programs to connect to the cache. See endpointBlock for details.
- engine string
- Name of the cache engine.
- fullEngine stringVersion 
- The name and version number of the engine the serverless cache is compatible with.
- id string
- The provider-assigned unique ID for this managed resource.
- kmsKey stringId 
- ARN of the customer managed key for encrypting the data at rest.
- majorEngine stringVersion 
- The version number of the engine the serverless cache is compatible with.
- name string
- readerEndpoint GetServerless Cache Reader Endpoint 
- Represents the information required for client programs to connect to a cache node. See reader_endpointBlock for details.
- securityGroup string[]Ids 
- A list of the one or more VPC security groups associated with the serverless cache.
- snapshotRetention numberLimit 
- The number of snapshots that will be retained for the serverless cache. Available for Redis only.
- status string
- The current status of the serverless cache.
- subnetIds string[]
- A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- userGroup stringId 
- The identifier of the UserGroup associated with the serverless cache. Available for Redis only.
- arn str
- The Amazon Resource Name (ARN) of the serverless cache.
- cache_usage_ Getlimits Serverless Cache Cache Usage Limits 
- The cache usage limits for storage and ElastiCache Processing Units for the cache. See cache_usage_limitsBlock for details.
- create_time str
- Timestamp of when the serverless cache was created.
- daily_snapshot_ strtime 
- The daily time that snapshots will be created from the new serverless cache. Only available for engine types "redis"and"valkey".
- description str
- Description of the serverless cache.
- endpoint
GetServerless Cache Endpoint 
- Represents the information required for client programs to connect to the cache. See endpointBlock for details.
- engine str
- Name of the cache engine.
- full_engine_ strversion 
- The name and version number of the engine the serverless cache is compatible with.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_key_ strid 
- ARN of the customer managed key for encrypting the data at rest.
- major_engine_ strversion 
- The version number of the engine the serverless cache is compatible with.
- name str
- reader_endpoint GetServerless Cache Reader Endpoint 
- Represents the information required for client programs to connect to a cache node. See reader_endpointBlock for details.
- security_group_ Sequence[str]ids 
- A list of the one or more VPC security groups associated with the serverless cache.
- snapshot_retention_ intlimit 
- The number of snapshots that will be retained for the serverless cache. Available for Redis only.
- status str
- The current status of the serverless cache.
- subnet_ids Sequence[str]
- A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- user_group_ strid 
- The identifier of the UserGroup associated with the serverless cache. Available for Redis only.
- arn String
- The Amazon Resource Name (ARN) of the serverless cache.
- cacheUsage Property MapLimits 
- The cache usage limits for storage and ElastiCache Processing Units for the cache. See cache_usage_limitsBlock for details.
- createTime String
- Timestamp of when the serverless cache was created.
- dailySnapshot StringTime 
- The daily time that snapshots will be created from the new serverless cache. Only available for engine types "redis"and"valkey".
- description String
- Description of the serverless cache.
- endpoint Property Map
- Represents the information required for client programs to connect to the cache. See endpointBlock for details.
- engine String
- Name of the cache engine.
- fullEngine StringVersion 
- The name and version number of the engine the serverless cache is compatible with.
- id String
- The provider-assigned unique ID for this managed resource.
- kmsKey StringId 
- ARN of the customer managed key for encrypting the data at rest.
- majorEngine StringVersion 
- The version number of the engine the serverless cache is compatible with.
- name String
- readerEndpoint Property Map
- Represents the information required for client programs to connect to a cache node. See reader_endpointBlock for details.
- securityGroup List<String>Ids 
- A list of the one or more VPC security groups associated with the serverless cache.
- snapshotRetention NumberLimit 
- The number of snapshots that will be retained for the serverless cache. Available for Redis only.
- status String
- The current status of the serverless cache.
- subnetIds List<String>
- A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- userGroup StringId 
- The identifier of the UserGroup associated with the serverless cache. Available for Redis only.
Supporting Types
GetServerlessCacheCacheUsageLimits     
- DataStorage GetServerless Cache Cache Usage Limits Data Storage 
- The maximum data storage limit in the cache, expressed in Gigabytes. See data_storageBlock for details.
- EcpuPer GetSecond Serverless Cache Cache Usage Limits Ecpu Per Second 
- The configured number of ElastiCache Processing Units (ECPU) the cache can consume per second. See ecpu_per_secondBlock for details.
- DataStorage GetServerless Cache Cache Usage Limits Data Storage 
- The maximum data storage limit in the cache, expressed in Gigabytes. See data_storageBlock for details.
- EcpuPer GetSecond Serverless Cache Cache Usage Limits Ecpu Per Second 
- The configured number of ElastiCache Processing Units (ECPU) the cache can consume per second. See ecpu_per_secondBlock for details.
- dataStorage GetServerless Cache Cache Usage Limits Data Storage 
- The maximum data storage limit in the cache, expressed in Gigabytes. See data_storageBlock for details.
- ecpuPer GetSecond Serverless Cache Cache Usage Limits Ecpu Per Second 
- The configured number of ElastiCache Processing Units (ECPU) the cache can consume per second. See ecpu_per_secondBlock for details.
- dataStorage GetServerless Cache Cache Usage Limits Data Storage 
- The maximum data storage limit in the cache, expressed in Gigabytes. See data_storageBlock for details.
- ecpuPer GetSecond Serverless Cache Cache Usage Limits Ecpu Per Second 
- The configured number of ElastiCache Processing Units (ECPU) the cache can consume per second. See ecpu_per_secondBlock for details.
- data_storage GetServerless Cache Cache Usage Limits Data Storage 
- The maximum data storage limit in the cache, expressed in Gigabytes. See data_storageBlock for details.
- ecpu_per_ Getsecond Serverless Cache Cache Usage Limits Ecpu Per Second 
- The configured number of ElastiCache Processing Units (ECPU) the cache can consume per second. See ecpu_per_secondBlock for details.
- dataStorage Property Map
- The maximum data storage limit in the cache, expressed in Gigabytes. See data_storageBlock for details.
- ecpuPer Property MapSecond 
- The configured number of ElastiCache Processing Units (ECPU) the cache can consume per second. See ecpu_per_secondBlock for details.
GetServerlessCacheCacheUsageLimitsDataStorage       
GetServerlessCacheCacheUsageLimitsEcpuPerSecond        
GetServerlessCacheEndpoint   
GetServerlessCacheReaderEndpoint    
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.