whats_app_flow_assets
Creates, updates, deletes, gets or lists a whats_app_flow_assets resource.
Overview
| Name | whats_app_flow_assets |
| Type | Resource |
| Id | aws.socialmessaging.whats_app_flow_assets |
Fields
The following fields are returned by SELECT queries:
- list_whats_app_flow_assets
| Name | Datatype | Description |
|---|---|---|
name | string | The filename of the asset (for example, flow.json). |
asset_type | string | The type of asset. Currently the only supported value is FLOW_JSON. |
download_url | string | A presigned URL from Meta for downloading the asset. The URL expires after a short period. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_whats_app_flow_assets | select | id, flowId, region | nextToken, maxResults | Lists the assets (Flow JSON definition) of a WhatsApp Flow with presigned download URLs. Download URLs are generated by Meta and expire after a short period. |
update_whats_app_flow_assets | update | region, id, flowId, flowJson | Updates the Flow JSON definition (assets) of a WhatsApp Flow. Updating a published Flow's assets reverts it to DRAFT status, requiring re-publishing. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
flowId | string | The unique identifier of the Flow whose assets to list. |
id | string | The ID of the WhatsApp Business Account associated with this Flow. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | The maximum number of results to return per page. |
nextToken | string | The token for the next page of results. |
SELECT examples
- list_whats_app_flow_assets
Lists the assets (Flow JSON definition) of a WhatsApp Flow with presigned download URLs. Download URLs are generated by Meta and expire after a short period.
SELECT
name,
asset_type,
download_url
FROM aws.socialmessaging.whats_app_flow_assets
WHERE id = '{{ id }}' -- required
AND flowId = '{{ flowId }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;
UPDATE examples
- update_whats_app_flow_assets
Updates the Flow JSON definition (assets) of a WhatsApp Flow. Updating a published Flow's assets reverts it to DRAFT status, requiring re-publishing.
UPDATE aws.socialmessaging.whats_app_flow_assets
SET
id = '{{ id }}',
flowId = '{{ flowId }}',
flowJson = '{{ flowJson }}'
WHERE
region = '{{ region }}' --required
AND id = '{{ id }}' --required
AND flowId = '{{ flowId }}' --required
AND flowJson = '{{ flowJson }}' --required
RETURNING
validation_errors;