PutRecord
Source:
src/AWS/Firehose/PutRecord.ts
Writes a single data record into a Firehose delivery stream.
Grants firehose:PutRecord on the bound delivery stream. The data blob
can be up to 1,000 KiB; Firehose buffers records before delivering them to
the destination, so use a delimiter (e.g. \n) to disambiguate records.
Putting Records
Section titled “Putting Records”// initconst putRecord = yield* AWS.Firehose.PutRecord(deliveryStream);
return { fetch: Effect.gen(function* () { // runtime const response = yield* putRecord({ Record: { Data: new TextEncoder().encode("hello\n") }, }); return HttpServerResponse.json({ recordId: response.RecordId }); }),};