ConnectRead
Source:
src/AWS/DAX/Connect.ts
Read-only runtime access to a DAX Cluster’s data plane.
Grants the read-side DAX IAM actions (dax:GetItem, dax:BatchGetItem,
dax:Query, dax:Scan, plus the protocol actions every DAX client
needs) on the cluster ARN, publishes the discovery endpoint as environment
variables on the host Function, and resolves a typed
ClusterConnectionInfo at runtime.
The DAX data plane is VPC-only — the host Function must be attached to the
cluster’s VPC and allowed ingress by the cluster’s security groups.
Provide the implementation with Effect.provide(AWS.DAX.ConnectReadHttp).
Connecting to a Cluster
Section titled “Connecting to a Cluster”const connect = yield* DAX.ConnectRead(cluster);// inside a handler:const { url, tls } = yield* connect;