# ServerlessCacheReference

A reference to a ServerlessCache resource.

- Source: Generated at build time
- Type last changed: v2.231.0 · 1 Dec 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticache as interfaces_elasticache } from 'aws-cdk-lib/interfaces';
const serverlessCacheReference: interfaces_elasticache.ServerlessCacheReference = {
  serverlessCacheArn: 'serverlessCacheArn',
  serverlessCacheName: 'serverlessCacheName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_elasticache as interfaces_elasticache

serverless_cache_reference = interfaces_elasticache.ServerlessCacheReference(
    serverless_cache_arn="serverlessCacheArn",
    serverless_cache_name="serverlessCacheName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.elasticache.*;

ServerlessCacheReference serverlessCacheReference = ServerlessCacheReference.builder()
        .serverlessCacheArn("serverlessCacheArn")
        .serverlessCacheName("serverlessCacheName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.ElastiCache;

var serverlessCacheReference = new ServerlessCacheReference {
    ServerlessCacheArn = "serverlessCacheArn",
    ServerlessCacheName = "serverlessCacheName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

serverlessCacheReference := &ServerlessCacheReference{
	ServerlessCacheArn: jsii.String("serverlessCacheArn"),
	ServerlessCacheName: jsii.String("serverlessCacheName"),
}
```

## Properties

- `serverlessCacheArn`: string (required) — The ARN of the ServerlessCache resource.

- `serverlessCacheName`: string (required) — The ServerlessCacheName of the ServerlessCache resource.
