ConnectCacheCluster
Source:
src/AWS/ElastiCache/ConnectCacheCluster.ts
Runtime binding for a provisioned Memcached cluster.
At deploy time it publishes all node endpoints as
ELASTICACHE_{LOGICAL_ID}_ENDPOINTS on the host Function. Passing VPC
options attaches the host Lambda to the cache network. ElastiCache data
plane access is controlled by security groups, not IAM.
Connecting from a Lambda
Section titled “Connecting from a Lambda”const connect = yield* AWS.ElastiCache.ConnectCacheCluster(cache, { subnetIds: privateSubnetIds, securityGroupIds: [functionSecurityGroup.groupId],});
// inside the handler:const { endpoints } = yield* connect;const endpoint = endpoints[0];