GetDeleteEventsByEventTypeStatus
Source:
src/AWS/FraudDetector/GetDeleteEventsByEventTypeStatus.ts
Check the status of an asynchronous bulk event delete started by
DeleteEventsByEventType on a bound Amazon Fraud Detector event type — the
effectful status poll made from a deployed Lambda or Task.
Purging Stored Events
Section titled “Purging Stored Events”Provide the GetDeleteEventsByEventTypeStatusHttp implementation layer on
the Function effect, bind the event type in the init phase, then call the
returned client at runtime. The binding grants
frauddetector:GetDeleteEventsByEventTypeStatus on the event type and
injects its eventTypeName automatically.
// initconst getDeleteStatus = yield* FraudDetector.GetDeleteEventsByEventTypeStatus(eventType);
return { fetch: Effect.gen(function* () { // runtime const { eventsDeletionStatus } = yield* getDeleteStatus({}); return HttpServerResponse.json({ status: eventsDeletionStatus }); }),};// on the Function effect:// .pipe(Effect.provide(FraudDetector.GetDeleteEventsByEventTypeStatusHttp))