Skip to content

Conversation

@sam-goodwin
Copy link
Contributor

Summary

  • Add 8 missing SQS data plane operations that can be used from Lambda functions:

    • receiveMessage - Receive messages from a queue
    • deleteMessage - Delete a single message
    • deleteMessageBatch - Delete multiple messages at once
    • changeMessageVisibility - Change visibility timeout for a message
    • changeMessageVisibilityBatch - Change visibility for multiple messages
    • sendMessageBatch - Send multiple messages at once
    • purgeQueue - Purge all messages from a queue
    • getQueueAttributes - Get queue attributes at runtime
  • Each operation follows the established pattern with:

    • A typed Capability interface
    • A Binding declaration for Lambda functions
    • An Effect-based function with proper type inference
    • A provider that sets up environment variables and IAM policy statements
  • Add comprehensive integration tests that deploy a Lambda function to test all SQS operations

Test plan

  • Run bun run test:live -- -t "SQS data plane" to verify all operations work against real AWS
  • Verify TypeScript compilation passes (note: there's a pre-existing error in egress-only-igw.provider.ts unrelated to this PR)

🤖 Generated with Claude Code

sam-goodwin and others added 2 commits January 11, 2026 17:52
Add the following SQS data plane operations that were missing:
- receiveMessage: Receive messages from a queue
- deleteMessage: Delete a single message
- deleteMessageBatch: Delete multiple messages
- changeMessageVisibility: Change visibility timeout for a message
- changeMessageVisibilityBatch: Change visibility for multiple messages
- sendMessageBatch: Send multiple messages at once
- purgeQueue: Purge all messages from a queue
- getQueueAttributes: Get queue attributes at runtime

Each operation includes:
- A typed Capability interface
- A Binding declaration for Lambda functions
- An Effect-based function with proper type inference
- A provider that sets up environment variables and IAM policies

Also adds comprehensive integration tests that deploy a Lambda function
to test all SQS operations against real AWS infrastructure.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The DependencyViolation error is not in the typed error union from
deleteEgressOnlyInternetGateway, but may still occur at runtime.
Cast the error to allow the comparison.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 12, 2026

Open in StackBlitz

npm i https://pkg.pr.new/alchemy-run/alchemy-effect@32

commit: 4fedccf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants