Skip to content

PublishWhatsAppFlow

Source: src/AWS/SocialMessaging/PublishWhatsAppFlow.ts

Runtime binding for social-messaging:PublishWhatsAppFlow.

Publishes a DRAFT WhatsApp Flow on the bound account so it can be sent to users. Published flows can no longer be edited, only deprecated.

The deploy-time half grants social-messaging:PublishWhatsAppFlow on the bound WABA’s ARN and the runtime half injects the linked account id into every request. Provide the implementation with Effect.provide(AWS.SocialMessaging.PublishWhatsAppFlowHttp).

// init — bind the operation to the linked WABA
const publishFlow = yield* AWS.SocialMessaging.PublishWhatsAppFlow(account);
// runtime
yield* publishFlow({ flowId: "1234567890" });