GetBootstrapBrokers
Source:
src/AWS/Kafka/GetBootstrapBrokers.ts
Runtime binding for the GetBootstrapBrokers operation (IAM action
kafka:GetBootstrapBrokers), scoped to one ServerlessCluster.
Resolves the cluster’s bootstrap broker connection strings at runtime —
for MSK Serverless the SASL/IAM string
(BootstrapBrokerStringSaslIam) is the one Kafka clients connect to.
Provide the implementation with
Effect.provide(AWS.Kafka.GetBootstrapBrokersHttp).
Connecting to a Cluster
Section titled “Connecting to a Cluster”const getBootstrapBrokers = yield* Kafka.GetBootstrapBrokers(cluster);
const brokers = yield* getBootstrapBrokers();// brokers.BootstrapBrokerStringSaslIam → "b-1.….kafka-serverless.…:9098"