AWS Amplify は、サーバー側の AWS Lambda 関数で TypeScript データクライアントの使用をサポートするようになりました
本記事は、2025 年 1 月 28 日にAWS公式サイトの What’s New with AWS? に掲載された英語記事を自動翻訳したものです。
ニュース内容
AWS Amplify により、開発者は AWS Lambda 関数内で Amplify Data クライアントを使用できるようになりました。この新しい機能により、フロントエンドアプリケーションで使用するのと同じ型セーフなデータ操作を Lambda 関数で直接利用できるようになり、生の GraphQL クエリを記述する必要がなくなります。
Lambda関数の Amplify Data クライアントにより、アプリケーションスタック全体で一貫したデータアクセスパターンが実現します。個別の GraphQL 実装を管理する代わりに、TypeScript を完全にサポートした同じ使い慣れたクライアント側構文を使用して、データをクエリおよび変更できるようになりました。この統一されたアプローチにより、開発時間が短縮され、エラーが最小限に抑えられ、コードベースの保守性が向上します。
この機能は、AWS Amplify がサポートされているすべての AWS リージョンで利用できるようになりました。
開始するには、AWS Amplify のドキュメントにアクセスして、Lambda 関数に Amplify Data クライアントを統合する方法を確認してください。
原文
AWS Amplify now enables developers to use the Amplify Data client within AWS Lambda functions. This new capability allows you to leverage the same type-safe data operations you use in your frontend applications directly in your Lambda functions, eliminating the need to write raw GraphQL queries.
The Amplify Data client in Lambda functions brings a consistent data access pattern across your entire application stack. Instead of managing separate GraphQL implementations, you can now use the same familiar client-side syntax to query and mutate data with full TypeScript support. This unified approach reduces development time, minimizes errors, and makes your codebase more maintainable.
This feature is now available in all AWS regions where AWS Amplify is supported.
To get started, visit the AWS Amplify documentation to learn how to integrate the Amplify Data client in your Lambda functions.
引用元:AWS Amplify now supports using the TypeScript Data client in server-side AWS Lambda functions