Skip to content

feat(parser): add schema for Amazon Connect Outbound Campaigns - #5502

Merged
svozza merged 2 commits into
mainfrom
feat/parser-connect-outbound-campaigns
Jul 27, 2026
Merged

svozza merged 2 commits into
mainfrom
feat/parser-connect-outbound-campaigns

Conversation

@dreamorosi

Copy link
Copy Markdown
Contributor

Summary

Adds a built-in Zod schema to the parser package for the payload sent by Amazon Connect Outbound Campaigns when invoking a Lambda function through a custom action block in a journey flow. The schema is based on the request structure published in the official AWS documentation.

Changes

  • Add ConnectOutboundCampaignsSchema and ConnectOutboundCampaignsCustomerProfileSchema in packages/parser/src/schemas/connect-outbound-campaigns.ts
  • Keep CustomerData typed as a JSON string since its contents are campaign-defined; the per-profile schema is exported separately so customers can parse it by extending it with the JSONStringified helper
  • Add inferred types ConnectOutboundCampaignsEvent and ConnectOutboundCampaignsCustomerProfile
  • Add test fixture taken from the documented example payload and unit tests covering valid parse, missing required fields, and the JSONStringified extension path
  • Add the new schema to the built-in schemas table in docs/features/parser.md

Issue number: closes #5501 (refs aws-powertools/powertools-lambda-python#7976)


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

Add ConnectOutboundCampaignsSchema and
ConnectOutboundCampaignsCustomerProfileSchema to parse the payload sent
by Amazon Connect Outbound Campaigns when invoking a Lambda function
via a custom action block in a journey flow.

The schema follows the request structure published in the official
AWS documentation. CustomerData is kept as a JSON string since its
contents are campaign-defined; users can parse it by extending the
customer profile schema with the JSONStringified helper.

Refs: aws-powertools/powertools-lambda-python#7976
@svozza
svozza merged commit 30d7beb into main Jul 27, 2026
38 checks passed
@svozza
svozza deleted the feat/parser-connect-outbound-campaigns branch July 27, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L PRs between 100-499 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Amazon Connect Outbound Campaigns event schema for Parser

2 participants