
AWS AppSync が CDK L2 コンストラクトをリリースし、WebSocket API の作成を簡素化
本記事は、2025 年 2 月 6 日にAWS公式サイトの What’s New with AWS? に掲載された英語記事を自動翻訳したものです。
ニュース内容
AWS AppSync イベントを使用すると、開発者はインフラストラクチャや接続状態を管理することなく、何百万ものサブスクライバーにリアルタイムデータをブロードキャストできるサーバーレス WebSocket API を作成できます。開発者は API を作成し、スケールやファンアウトの処理を心配することなくイベントを公開するだけです。本日、AWS AppSync は AWS AppSync イベント用の AWS Cloud Development Kit (CDK) L2 コンストラクトのリリースを発表しました。
これにより、開発者はインフラストラクチャをコードとして使用して、イベント API とチャネル名前空間をプログラムで作成および管理できるようになります。これらの新しいコンストラクトにより、イベント API の作成とアクセス制御の管理のプロセスが簡素化され、リアルタイム機能をアプリケーションに統合する際の複雑さが軽減されます。
新しい L2 コンストラクトは、より高度な抽象化を提供し、開発者が使い慣れたプログラミング言語を使用して AppSync イベント API とそれに関連するチャネル名前空間を簡単に定義できるようにします。開発者は、AWS Lambda 関数などの AWS リソースに特定のチャネル名前空間へのアクセスを簡単に許可できるようになり、サービス間の統合が合理化されます。これにより、複雑な IAM 権限を手動で構成する必要がなくなり、セキュリティの誤った構成の可能性が軽減されます。
これらの CDK L2 コンストラクトは、AWS AppSync が利用可能なすべての AWS リージョンで利用できます。新しい AWS AppSync イベント CDK L2 コンストラクトの使用を開始するには、AWS CDK API リファレンスのドキュメントをご覧ください。
原文
AWS AppSync Events allows developers to create serverless WebSocket APIs that can broadcast real-time data to millions of subscribers without managing infrastructure or connection state. Developers simply create their API, and publish events without having the worry about scale and handling fan-out. Today, AWS AppSync announces the release of AWS Cloud Development Kit (CDK) L2 constructs for AWS AppSync Events, enabling developers to programmatically create and manage Event APIs and channel namespaces using infrastructure as code. These new constructs simplify the process of creating Event APIs and managing access controls, reducing the complexity of integrating real-time capabilities into applications.
The new L2 constructs provide a higher-level abstraction that makes it easier for developers to define AppSync Event APIs and their associated channel namespaces using familiar programming languages. Developers can now easily grant access to specific channel namespaces to AWS resources such as AWS Lambda functions, streamlining the integration between services. This eliminates the need to manually configure complex IAM permissions and reduces the potential for security misconfigurations.
These CDK L2 constructs are available in all AWS Regions where AWS AppSync is available. To get started with the new AWS AppSync Events CDK L2 constructs, visit the AWS CDK API Reference documentation.
引用元:AWS AppSync releases CDK L2 constructs to simplify creating WebSocket APIs