AWS appsync documentation change
Summary
Added data source integration documentation and restructured content
Security assessment
Adds functionality documentation for data source integrations but doesn't introduce or modify security controls
Diff
diff --git a/appsync/latest/eventapi/channel-namespace-handlers.md b/appsync/latest/eventapi/channel-namespace-handlers.md index df539a205..ec3167847 100644 --- a//appsync/latest/eventapi/channel-namespace-handlers.md +++ b//appsync/latest/eventapi/channel-namespace-handlers.md @@ -5 +5 @@ -Using the onPublish event handlerUsing the onSubscribe event handler +Using the onPublish event handlerUsing the onSubscribe event handlerData source integration @@ -140,0 +141,18 @@ Now clients can only subscribe to channels that match the pattern `/messages/inb +## Data source integration + +You can integrate data sources in your channel namespaces. This allows you to interact with data sources like DynamoDB tables and Lambda functions. + +A handler that interacts with a data source has the following format: + + + export const onPublish = { + request(ctx) { + // request code + }, + response(ctx) { + // response code + } + } + +To learn how to use event handlers to interact with your data source, see [Writing event handlers](./writing-event-handlers.html). + @@ -147 +165 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please -Channel namespace authorization +Channel namespaces @@ -149 +167 @@ Channel namespace authorization -Authorizing and authenticating Event APIs +Data sources