AWS v6.60.0 published on Tuesday, Nov 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:elasticache/getServerlessCache:getServerlessCache
arguments:
# arguments dictionary
The 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.
- Cache
Usage GetLimits Serverless Cache Cache Usage Limits - The cache usage limits for storage and ElastiCache Processing Units for the cache. See
cache_usage_limits
Block for details. - Create
Time string - Timestamp of when the serverless cache was created.
- Daily
Snapshot 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
Get
Serverless Cache Endpoint - Represents the information required for client programs to connect to the cache. See
endpoint
Block for details. - Engine string
- Name of the cache engine.
- Full
Engine 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.
- Kms
Key stringId - ARN of the customer managed key for encrypting the data at rest.
- Major
Engine stringVersion - The version number of the engine the serverless cache is compatible with.
- Name string
- Reader
Endpoint GetServerless Cache Reader Endpoint - Represents the information required for client programs to connect to a cache node. See
reader_endpoint
Block for details. - Security
Group List<string>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 string
- The current status of the serverless cache.
- Subnet
Ids List<string> - A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- User
Group 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.
- Cache
Usage GetLimits Serverless Cache Cache Usage Limits - The cache usage limits for storage and ElastiCache Processing Units for the cache. See
cache_usage_limits
Block for details. - Create
Time string - Timestamp of when the serverless cache was created.
- Daily
Snapshot 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
Get
Serverless Cache Endpoint - Represents the information required for client programs to connect to the cache. See
endpoint
Block for details. - Engine string
- Name of the cache engine.
- Full
Engine 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.
- Kms
Key stringId - ARN of the customer managed key for encrypting the data at rest.
- Major
Engine stringVersion - The version number of the engine the serverless cache is compatible with.
- Name string
- Reader
Endpoint GetServerless Cache Reader Endpoint - Represents the information required for client programs to connect to a cache node. See
reader_endpoint
Block for details. - Security
Group []stringIds - 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 string
- The current status of the serverless cache.
- Subnet
Ids []string - A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- User
Group 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.
- cache
Usage GetLimits Serverless Cache Cache Usage Limits - The cache usage limits for storage and ElastiCache Processing Units for the cache. See
cache_usage_limits
Block for details. - create
Time String - Timestamp of when the serverless cache was created.
- daily
Snapshot 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
Get
Serverless Cache Endpoint - Represents the information required for client programs to connect to the cache. See
endpoint
Block for details. - engine String
- Name of the cache engine.
- full
Engine 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.
- kms
Key StringId - ARN of the customer managed key for encrypting the data at rest.
- major
Engine StringVersion - The version number of the engine the serverless cache is compatible with.
- name String
- reader
Endpoint GetServerless Cache Reader Endpoint - Represents the information required for client programs to connect to a cache node. See
reader_endpoint
Block for details. - security
Group List<String>Ids - A list of the one or more VPC security groups associated with the serverless cache.
- snapshot
Retention 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.
- subnet
Ids List<String> - A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- user
Group 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.
- cache
Usage GetLimits Serverless Cache Cache Usage Limits - The cache usage limits for storage and ElastiCache Processing Units for the cache. See
cache_usage_limits
Block for details. - create
Time string - Timestamp of when the serverless cache was created.
- daily
Snapshot 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
Get
Serverless Cache Endpoint - Represents the information required for client programs to connect to the cache. See
endpoint
Block for details. - engine string
- Name of the cache engine.
- full
Engine 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.
- kms
Key stringId - ARN of the customer managed key for encrypting the data at rest.
- major
Engine stringVersion - The version number of the engine the serverless cache is compatible with.
- name string
- reader
Endpoint GetServerless Cache Reader Endpoint - Represents the information required for client programs to connect to a cache node. See
reader_endpoint
Block for details. - security
Group string[]Ids - A list of the one or more VPC security groups associated with the serverless cache.
- snapshot
Retention 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.
- subnet
Ids string[] - A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- user
Group 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_limits
Block 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
Get
Serverless Cache Endpoint - Represents the information required for client programs to connect to the cache. See
endpoint
Block 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_endpoint
Block 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.
- cache
Usage Property MapLimits - The cache usage limits for storage and ElastiCache Processing Units for the cache. See
cache_usage_limits
Block for details. - create
Time String - Timestamp of when the serverless cache was created.
- daily
Snapshot 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
endpoint
Block for details. - engine String
- Name of the cache engine.
- full
Engine 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.
- kms
Key StringId - ARN of the customer managed key for encrypting the data at rest.
- major
Engine StringVersion - The version number of the engine the serverless cache is compatible with.
- name String
- reader
Endpoint Property Map - Represents the information required for client programs to connect to a cache node. See
reader_endpoint
Block for details. - security
Group List<String>Ids - A list of the one or more VPC security groups associated with the serverless cache.
- snapshot
Retention 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.
- subnet
Ids List<String> - A list of the identifiers of the subnets where the VPC endpoint for the serverless cache are deployed.
- user
Group StringId - The identifier of the UserGroup associated with the serverless cache. Available for Redis only.
Supporting Types
GetServerlessCacheCacheUsageLimits
- Data
Storage GetServerless Cache Cache Usage Limits Data Storage - The maximum data storage limit in the cache, expressed in Gigabytes. See
data_storage
Block 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_second
Block for details.
- Data
Storage GetServerless Cache Cache Usage Limits Data Storage - The maximum data storage limit in the cache, expressed in Gigabytes. See
data_storage
Block 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_second
Block for details.
- data
Storage GetServerless Cache Cache Usage Limits Data Storage - The maximum data storage limit in the cache, expressed in Gigabytes. See
data_storage
Block 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_second
Block for details.
- data
Storage GetServerless Cache Cache Usage Limits Data Storage - The maximum data storage limit in the cache, expressed in Gigabytes. See
data_storage
Block 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_second
Block for details.
- data_
storage GetServerless Cache Cache Usage Limits Data Storage - The maximum data storage limit in the cache, expressed in Gigabytes. See
data_storage
Block 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_second
Block for details.
- data
Storage Property Map - The maximum data storage limit in the cache, expressed in Gigabytes. See
data_storage
Block for details. - ecpu
Per Property MapSecond - The configured number of ElastiCache Processing Units (ECPU) the cache can consume per second. See
ecpu_per_second
Block 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
aws
Terraform Provider.