ServerlessCacheReference Struct
A reference to a ServerlessCache resource.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
serverlessCacheArnstringserverless_cache_arnstrserverlessCacheArnStringServerlessCacheArnstringServerlessCacheArn*string required #The ARN of the ServerlessCache resource.
serverlessCacheNamestringserverless_cache_namestrserverlessCacheNameStringServerlessCacheNamestringServerlessCacheName*string required #The ServerlessCacheName of the ServerlessCache resource.