Skip to content

ListWhatsAppFlowAssets

Source: src/AWS/SocialMessaging/ListWhatsAppFlowAssets.ts

Runtime binding for social-messaging:ListWhatsAppFlowAssets.

Lists the assets (Flow JSON) of a WhatsApp Flow on the bound account, with download URLs.

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

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