Skip to content

DeprecateWhatsAppFlow

Source: src/AWS/SocialMessaging/DeprecateWhatsAppFlow.ts

Runtime binding for social-messaging:DeprecateWhatsAppFlow.

Deprecates a published WhatsApp Flow on the bound account so it can no longer be sent to users.

The deploy-time half grants social-messaging:DeprecateWhatsAppFlow 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.DeprecateWhatsAppFlowHttp).

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