cdk-serverless 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/constructs/assets/hierarchy.js +1 -1
- package/docs/constructs/assets/navigation.js +1 -1
- package/docs/constructs/assets/search.js +1 -1
- package/docs/constructs/classes/GraphQlApi.html +4 -3
- package/docs/constructs/classes/McpAuth.html +1 -1
- package/docs/constructs/classes/McpCognitoAuth.html +1 -1
- package/docs/constructs/classes/RestApi.html +1 -1
- package/docs/constructs/classes/SingleTableDatastore.html +1 -1
- package/docs/constructs/classes/Workflow.html +1 -1
- package/docs/constructs/hierarchy.html +5 -5
- package/docs/constructs/interfaces/LambdaResolverOptions.html +72 -0
- package/docs/constructs/interfaces/RestApiProps.html +1 -1
- package/docs/constructs/modules.html +2 -2
- package/docs/lambda/assets/hierarchy.js +1 -1
- package/docs/lambda/assets/navigation.js +1 -1
- package/docs/lambda/assets/search.js +1 -1
- package/docs/lambda/classes/errors.BadRequestError.html +1 -1
- package/docs/lambda/classes/errors.ForbiddenError.html +1 -1
- package/docs/lambda/classes/errors.HttpError.html +1 -1
- package/docs/lambda/classes/errors.NotFoundError.html +1 -1
- package/docs/lambda/classes/errors.UnauthenticatedError.html +1 -1
- package/docs/lambda/classes/errors.appsync.AppSyncError.html +1 -1
- package/docs/lambda/classes/errors.appsync.ConflictError.html +1 -1
- package/docs/lambda/classes/errors.appsync.ForbiddenError.html +1 -1
- package/docs/lambda/classes/errors.appsync.NotFoundError.html +1 -1
- package/docs/lambda/classes/errors.appsync.ValidationError.html +1 -1
- package/docs/lambda/functions/api.createAppSyncBatchHandler.html +57 -0
- package/docs/lambda/hierarchy.html +14 -10
- package/docs/lambda/interfaces/api.AppSyncBatchHandlerContext.html +89 -0
- package/docs/lambda/interfaces/api.AppSyncHandlerContext.html +6 -0
- package/docs/lambda/modules/api.html +6 -6
- package/docs/lambda/types/api.AppSyncBatchHandler.html +53 -0
- package/lib/constructs/graphql.d.ts +23 -1
- package/lib/constructs/graphql.js +26 -2
- package/lib/lambda/handler.d.ts +28 -0
- package/lib/lambda/handler.js +101 -38
- package/llm.md +12 -0
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<section class="tsd-panel tsd-comment">
|
|
15
15
|
<div class="tsd-comment tsd-typography"><p>Represents a 401 Unauthenticated error.</p>
|
|
16
16
|
</div></section>
|
|
17
|
-
<section class="tsd-panel tsd-hierarchy" data-refl="
|
|
17
|
+
<section class="tsd-panel tsd-hierarchy" data-refl="407">
|
|
18
18
|
<h4>Hierarchy (<a href="../hierarchy.html#errors.UnauthenticatedError">View Summary</a>)</h4>
|
|
19
19
|
<ul class="tsd-hierarchy">
|
|
20
20
|
<li class="tsd-hierarchy-item"><a href="errors.HttpError.html" class="tsd-signature-type tsd-kind-class">HttpError</a>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
direct-Lambda error envelope so AppSync surfaces the error as a GraphQL error
|
|
19
19
|
on a successful Lambda invocation.</p>
|
|
20
20
|
</div></section>
|
|
21
|
-
<section class="tsd-panel tsd-hierarchy" data-refl="
|
|
21
|
+
<section class="tsd-panel tsd-hierarchy" data-refl="459">
|
|
22
22
|
<h4>Hierarchy (<a href="../hierarchy.html#errors.appsync.AppSyncError">View Summary</a>)</h4>
|
|
23
23
|
<ul class="tsd-hierarchy">
|
|
24
24
|
<li class="tsd-hierarchy-item"><span class="tsd-signature-type">Error</span>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<section class="tsd-panel tsd-comment">
|
|
16
16
|
<div class="tsd-comment tsd-typography"><p>Represents a Conflict AppSync error.</p>
|
|
17
17
|
</div></section>
|
|
18
|
-
<section class="tsd-panel tsd-hierarchy" data-refl="
|
|
18
|
+
<section class="tsd-panel tsd-hierarchy" data-refl="536">
|
|
19
19
|
<h4>Hierarchy (<a href="../hierarchy.html#errors.appsync.ConflictError">View Summary</a>)</h4>
|
|
20
20
|
<ul class="tsd-hierarchy">
|
|
21
21
|
<li class="tsd-hierarchy-item"><a href="errors.appsync.AppSyncError.html" class="tsd-signature-type tsd-kind-class">AppSyncError</a>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<section class="tsd-panel tsd-comment">
|
|
16
16
|
<div class="tsd-comment tsd-typography"><p>Represents a Forbidden AppSync error.</p>
|
|
17
17
|
</div></section>
|
|
18
|
-
<section class="tsd-panel tsd-hierarchy" data-refl="
|
|
18
|
+
<section class="tsd-panel tsd-hierarchy" data-refl="479">
|
|
19
19
|
<h4>Hierarchy (<a href="../hierarchy.html#errors.appsync.ForbiddenError">View Summary</a>)</h4>
|
|
20
20
|
<ul class="tsd-hierarchy">
|
|
21
21
|
<li class="tsd-hierarchy-item"><a href="errors.appsync.AppSyncError.html" class="tsd-signature-type tsd-kind-class">AppSyncError</a>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<section class="tsd-panel tsd-comment">
|
|
16
16
|
<div class="tsd-comment tsd-typography"><p>Represents a NotFound AppSync error.</p>
|
|
17
17
|
</div></section>
|
|
18
|
-
<section class="tsd-panel tsd-hierarchy" data-refl="
|
|
18
|
+
<section class="tsd-panel tsd-hierarchy" data-refl="498">
|
|
19
19
|
<h4>Hierarchy (<a href="../hierarchy.html#errors.appsync.NotFoundError">View Summary</a>)</h4>
|
|
20
20
|
<ul class="tsd-hierarchy">
|
|
21
21
|
<li class="tsd-hierarchy-item"><a href="errors.appsync.AppSyncError.html" class="tsd-signature-type tsd-kind-class">AppSyncError</a>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<section class="tsd-panel tsd-comment">
|
|
16
16
|
<div class="tsd-comment tsd-typography"><p>Represents a ValidationError AppSync error.</p>
|
|
17
17
|
</div></section>
|
|
18
|
-
<section class="tsd-panel tsd-hierarchy" data-refl="
|
|
18
|
+
<section class="tsd-panel tsd-hierarchy" data-refl="517">
|
|
19
19
|
<h4>Hierarchy (<a href="../hierarchy.html#errors.appsync.ValidationError">View Summary</a>)</h4>
|
|
20
20
|
<ul class="tsd-hierarchy">
|
|
21
21
|
<li class="tsd-hierarchy-item"><a href="errors.appsync.AppSyncError.html" class="tsd-signature-type tsd-kind-class">AppSyncError</a>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>createAppSyncBatchHandler | cdk-serverless</title><meta name="description" content="Documentation for cdk-serverless"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">cdk-serverless</a>
|
|
3
|
+
<div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
|
+
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
|
+
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
6
|
+
<div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
|
|
7
|
+
<div class="container container-main">
|
|
8
|
+
<div class="col-content">
|
|
9
|
+
<div class="tsd-page-title">
|
|
10
|
+
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
|
+
<li><a href="../modules/api.html">api</a></li>
|
|
12
|
+
<li><a href="" aria-current="page">createAppSyncBatchHandler</a></li></ul>
|
|
13
|
+
<h1>Function createAppSyncBatchHandler</h1></div>
|
|
14
|
+
<section class="tsd-panel">
|
|
15
|
+
<ul class="tsd-signatures">
|
|
16
|
+
<li class="">
|
|
17
|
+
<div class="tsd-signature tsd-anchor-link" id="createappsyncbatchhandler"><span class="tsd-kind-call-signature">createAppSyncBatchHandler</span><span class="tsd-signature-symbol"><</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlert">T</a><span class="tsd-signature-symbol">,</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlerr">R</a><span class="tsd-signature-symbol">,</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlers">S</a> <span class="tsd-signature-keyword">extends</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">handler</span><span class="tsd-signature-symbol">:</span> <a href="../types/api.AppSyncBatchHandler.html" class="tsd-signature-type tsd-kind-type-alias">AppSyncBatchHandler</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlert">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlerr">R</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlers">S</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">AppSyncBatchResolverHandler</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlert">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlerr">R</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlers">S</a><span class="tsd-signature-symbol">></span><a href="#createappsyncbatchhandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div>
|
|
18
|
+
<div class="tsd-description">
|
|
19
|
+
<div class="tsd-comment tsd-typography"><p>Creates a batched AppSync resolver handler from the given AppSyncBatchHandler.
|
|
20
|
+
Returns a function that can be used as an AppSync BatchInvoke resolver: array
|
|
21
|
+
in, array out, order preserved.</p>
|
|
22
|
+
<p>It mirrors createAppSyncHandler's context and auth plumbing but operates on an
|
|
23
|
+
array of events. Authentication runs once per batch off the first event, and
|
|
24
|
+
the context carries both the first event (ctx.event = events[0]) and the full
|
|
25
|
+
ctx.events array. The handler returns R[] in the same order as the input events.</p>
|
|
26
|
+
</div>
|
|
27
|
+
<section class="tsd-panel">
|
|
28
|
+
<h4>Type Parameters</h4>
|
|
29
|
+
<ul class="tsd-type-parameter-list">
|
|
30
|
+
<li><span id="createappsyncbatchhandlert"><span class="tsd-kind-type-parameter">T</span></span></li>
|
|
31
|
+
<li><span id="createappsyncbatchhandlerr"><span class="tsd-kind-type-parameter">R</span></span></li>
|
|
32
|
+
<li><span id="createappsyncbatchhandlers"><span class="tsd-kind-type-parameter">S</span> <span class="tsd-signature-keyword">extends</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span> = <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span></span></li></ul></section>
|
|
33
|
+
<div class="tsd-parameters">
|
|
34
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
35
|
+
<ul class="tsd-parameter-list">
|
|
36
|
+
<li><span><span class="tsd-kind-parameter">handler</span>: <a href="../types/api.AppSyncBatchHandler.html" class="tsd-signature-type tsd-kind-type-alias">AppSyncBatchHandler</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlert">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlerr">R</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlers">S</a><span class="tsd-signature-symbol">></span></span>
|
|
37
|
+
<div class="tsd-comment tsd-typography"><p>The AppSyncBatchHandler to use as the resolver.</p>
|
|
38
|
+
</div></li></ul></div>
|
|
39
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">AppSyncBatchResolverHandler</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlert">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlerr">R</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#createappsyncbatchhandlers">S</a><span class="tsd-signature-symbol">></span></h4></div></li></ul></section></div>
|
|
40
|
+
<div class="col-sidebar">
|
|
41
|
+
<div class="page-menu">
|
|
42
|
+
<div class="tsd-navigation settings">
|
|
43
|
+
<details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
44
|
+
<h3>Settings</h3></summary>
|
|
45
|
+
<div class="tsd-accordion-details">
|
|
46
|
+
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
47
|
+
<ul id="tsd-filter-options">
|
|
48
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
49
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
50
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div>
|
|
51
|
+
<div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
52
|
+
<div class="site-menu">
|
|
53
|
+
<nav class="tsd-navigation"><a href="../modules.html">cdk-serverless</a>
|
|
54
|
+
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
55
|
+
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
56
|
+
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
57
|
+
<div class="overlay"></div></body></html>
|
|
@@ -10,19 +10,23 @@
|
|
|
10
10
|
<h1>cdk-serverless</h1></div>
|
|
11
11
|
<h2>Hierarchy Summary</h2>
|
|
12
12
|
<ul class="tsd-full-hierarchy">
|
|
13
|
-
<li data-refl="
|
|
13
|
+
<li data-refl="459" id="errors.appsync.AppSyncError"><a href="classes/errors.appsync.AppSyncError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>AppSyncError</a>
|
|
14
14
|
<ul>
|
|
15
|
-
<li data-refl="
|
|
16
|
-
<li data-refl="
|
|
17
|
-
<li data-refl="
|
|
18
|
-
<li data-refl="
|
|
15
|
+
<li data-refl="479" id="errors.appsync.ForbiddenError"><a href="classes/errors.appsync.ForbiddenError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>ForbiddenError</a></li>
|
|
16
|
+
<li data-refl="498" id="errors.appsync.NotFoundError"><a href="classes/errors.appsync.NotFoundError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>NotFoundError</a></li>
|
|
17
|
+
<li data-refl="517" id="errors.appsync.ValidationError"><a href="classes/errors.appsync.ValidationError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>ValidationError</a></li>
|
|
18
|
+
<li data-refl="536" id="errors.appsync.ConflictError"><a href="classes/errors.appsync.ConflictError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>ConflictError</a></li></ul></li></ul>
|
|
19
19
|
<ul class="tsd-full-hierarchy">
|
|
20
|
-
<li data-refl="
|
|
20
|
+
<li data-refl="333" id="api.AppSyncHandlerContext"><a href="interfaces/api.AppSyncHandlerContext.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>AppSyncHandlerContext</a>
|
|
21
21
|
<ul>
|
|
22
|
-
<li data-refl="
|
|
23
|
-
<
|
|
24
|
-
<li data-refl="
|
|
25
|
-
<
|
|
22
|
+
<li data-refl="350" id="api.AppSyncBatchHandlerContext"><a href="interfaces/api.AppSyncBatchHandlerContext.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="assets/icons.svg#icon-256"></use></svg>AppSyncBatchHandlerContext</a></li></ul></li></ul>
|
|
23
|
+
<ul class="tsd-full-hierarchy">
|
|
24
|
+
<li data-refl="372" id="errors.HttpError"><a href="classes/errors.HttpError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>HttpError</a>
|
|
25
|
+
<ul>
|
|
26
|
+
<li data-refl="390" id="errors.BadRequestError"><a href="classes/errors.BadRequestError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>BadRequestError</a></li>
|
|
27
|
+
<li data-refl="407" id="errors.UnauthenticatedError"><a href="classes/errors.UnauthenticatedError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>UnauthenticatedError</a></li>
|
|
28
|
+
<li data-refl="424" id="errors.ForbiddenError"><a href="classes/errors.ForbiddenError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>ForbiddenError</a></li>
|
|
29
|
+
<li data-refl="441" id="errors.NotFoundError"><a href="classes/errors.NotFoundError.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>NotFoundError</a></li></ul></li></ul>
|
|
26
30
|
<ul class="tsd-full-hierarchy">
|
|
27
31
|
<li data-refl="2" id="auth.JwtAuthorizer"><a href="classes/auth.JwtAuthorizer.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Class"><use href="assets/icons.svg#icon-128"></use></svg>JwtAuthorizer</a>
|
|
28
32
|
<ul>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>AppSyncBatchHandlerContext | cdk-serverless</title><meta name="description" content="Documentation for cdk-serverless"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">cdk-serverless</a>
|
|
3
|
+
<div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
|
+
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
|
+
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
6
|
+
<div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
|
|
7
|
+
<div class="container container-main">
|
|
8
|
+
<div class="col-content">
|
|
9
|
+
<div class="tsd-page-title">
|
|
10
|
+
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
|
+
<li><a href="../modules/api.html">api</a></li>
|
|
12
|
+
<li><a href="" aria-current="page">AppSyncBatchHandlerContext</a></li></ul>
|
|
13
|
+
<h1>Interface AppSyncBatchHandlerContext<T, S></h1></div>
|
|
14
|
+
<section class="tsd-panel tsd-comment">
|
|
15
|
+
<div class="tsd-comment tsd-typography"><p>The context for a batched AppSync resolver function.
|
|
16
|
+
Extends AppSyncHandlerContext so handler code that reads ctx.event.arguments /
|
|
17
|
+
ctx.event.identity keeps working against the first event, and additionally
|
|
18
|
+
exposes the full batch of events so the handler can map over it.</p>
|
|
19
|
+
</div></section>
|
|
20
|
+
<div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">AppSyncBatchHandlerContext</span><span class="tsd-signature-symbol"><</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#t">T</a><span class="tsd-signature-symbol">,</span><br/> <a class="tsd-signature-type tsd-kind-type-parameter" href="#s">S</a> <span class="tsd-signature-keyword">extends</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">=</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#cognitoauth">cognitoAuth</a><span class="tsd-signature-symbol">:</span> <a href="../classes/auth.CognitoAuthorizer.html" class="tsd-signature-type tsd-kind-class">CognitoAuthorizer</a><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#event">event</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">AppSyncResolverEvent</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#t">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#s">S</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#events">events</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">AppSyncResolverEvent</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#t">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#s">S</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#lambdacontext">lambdaContext</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Context</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#logger">logger</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">LambdaLog</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div>
|
|
21
|
+
<section class="tsd-panel">
|
|
22
|
+
<h4>Type Parameters</h4>
|
|
23
|
+
<ul class="tsd-type-parameter-list">
|
|
24
|
+
<li><span id="t"><span class="tsd-kind-type-parameter">T</span></span></li>
|
|
25
|
+
<li><span id="s"><span class="tsd-kind-type-parameter">S</span> <span class="tsd-signature-keyword">extends</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span> = <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span></span></li></ul></section>
|
|
26
|
+
<section class="tsd-panel tsd-hierarchy" data-refl="350">
|
|
27
|
+
<h4>Hierarchy (<a href="../hierarchy.html#api.AppSyncBatchHandlerContext">View Summary</a>)</h4>
|
|
28
|
+
<ul class="tsd-hierarchy">
|
|
29
|
+
<li class="tsd-hierarchy-item"><a href="api.AppSyncHandlerContext.html" class="tsd-signature-type tsd-kind-interface">AppSyncHandlerContext</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#t">T</a><span class="tsd-signature-symbol">></span>
|
|
30
|
+
<ul class="tsd-hierarchy">
|
|
31
|
+
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">AppSyncBatchHandlerContext</span></li></ul></li></ul></section>
|
|
32
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
33
|
+
<section class="tsd-panel tsd-index-panel">
|
|
34
|
+
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
35
|
+
<h5 class="tsd-index-heading uppercase">Index</h5></summary>
|
|
36
|
+
<div class="tsd-accordion-details">
|
|
37
|
+
<section class="tsd-index-section">
|
|
38
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="properties">Properties<a href="#properties" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
39
|
+
<div class="tsd-index-list"><a href="#cognitoauth" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cognito<wbr/>Auth</span></a>
|
|
40
|
+
<a href="#event" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>event</span></a>
|
|
41
|
+
<a href="#events" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>events</span></a>
|
|
42
|
+
<a href="#lambdacontext" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>lambda<wbr/>Context</span></a>
|
|
43
|
+
<a href="#logger" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>logger</span></a>
|
|
44
|
+
</div></section></div></details></section></section>
|
|
45
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
46
|
+
<h2 class="tsd-anchor-link" id="properties-1">Properties<a href="#properties-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary>
|
|
47
|
+
<section>
|
|
48
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
49
|
+
<h3 class="tsd-anchor-link" id="cognitoauth"><span>cognito<wbr/>Auth</span><a href="#cognitoauth" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
50
|
+
<div class="tsd-signature"><span class="tsd-kind-property">cognitoAuth</span><span class="tsd-signature-symbol">:</span> <a href="../classes/auth.CognitoAuthorizer.html" class="tsd-signature-type tsd-kind-class">CognitoAuthorizer</a></div><aside class="tsd-sources">
|
|
51
|
+
<p>Inherited from <a href="api.AppSyncHandlerContext.html">AppSyncHandlerContext</a>.<a href="api.AppSyncHandlerContext.html#cognitoauth">cognitoAuth</a></p></aside></section>
|
|
52
|
+
<section class="tsd-panel tsd-member">
|
|
53
|
+
<h3 class="tsd-anchor-link" id="event"><span>event</span><a href="#event" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
54
|
+
<div class="tsd-signature"><span class="tsd-kind-property">event</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">AppSyncResolverEvent</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#t">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#s">S</a><span class="tsd-signature-symbol">></span></div><aside class="tsd-sources">
|
|
55
|
+
<p>Overrides <a href="api.AppSyncHandlerContext.html">AppSyncHandlerContext</a>.<a href="api.AppSyncHandlerContext.html#event">event</a></p></aside></section>
|
|
56
|
+
<section class="tsd-panel tsd-member">
|
|
57
|
+
<h3 class="tsd-anchor-link" id="events"><span>events</span><a href="#events" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
58
|
+
<div class="tsd-signature"><span class="tsd-kind-property">events</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">AppSyncResolverEvent</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#t">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#s">S</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">[]</span></div></section>
|
|
59
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
60
|
+
<h3 class="tsd-anchor-link" id="lambdacontext"><span>lambda<wbr/>Context</span><a href="#lambdacontext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
61
|
+
<div class="tsd-signature"><span class="tsd-kind-property">lambdaContext</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Context</span></div><aside class="tsd-sources">
|
|
62
|
+
<p>Inherited from <a href="api.AppSyncHandlerContext.html">AppSyncHandlerContext</a>.<a href="api.AppSyncHandlerContext.html#lambdacontext">lambdaContext</a></p></aside></section>
|
|
63
|
+
<section class="tsd-panel tsd-member tsd-is-inherited">
|
|
64
|
+
<h3 class="tsd-anchor-link" id="logger"><span>logger</span><a href="#logger" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3>
|
|
65
|
+
<div class="tsd-signature"><span class="tsd-kind-property">logger</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">LambdaLog</span></div><aside class="tsd-sources">
|
|
66
|
+
<p>Inherited from <a href="api.AppSyncHandlerContext.html">AppSyncHandlerContext</a>.<a href="api.AppSyncHandlerContext.html#logger">logger</a></p></aside></section></section></details></div>
|
|
67
|
+
<div class="col-sidebar">
|
|
68
|
+
<div class="page-menu">
|
|
69
|
+
<div class="tsd-navigation settings">
|
|
70
|
+
<details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
71
|
+
<h3>Settings</h3></summary>
|
|
72
|
+
<div class="tsd-accordion-details">
|
|
73
|
+
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
74
|
+
<ul id="tsd-filter-options">
|
|
75
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
76
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
77
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div>
|
|
78
|
+
<div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
79
|
+
<details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
80
|
+
<h3>On This Page</h3></summary>
|
|
81
|
+
<div class="tsd-accordion-details">
|
|
82
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary>
|
|
83
|
+
<div><a href="#cognitoauth" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cognito<wbr/>Auth</span></a><a href="#event"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>event</span></a><a href="#events"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>events</span></a><a href="#lambdacontext" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>lambda<wbr/>Context</span></a><a href="#logger" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>logger</span></a></div></details></div></details></div>
|
|
84
|
+
<div class="site-menu">
|
|
85
|
+
<nav class="tsd-navigation"><a href="../modules.html">cdk-serverless</a>
|
|
86
|
+
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
87
|
+
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
88
|
+
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
89
|
+
<div class="overlay"></div></body></html>
|
|
@@ -20,6 +20,12 @@ Contains information about the event, lambda context, logger, and Cognito author
|
|
|
20
20
|
<h4>Type Parameters</h4>
|
|
21
21
|
<ul class="tsd-type-parameter-list">
|
|
22
22
|
<li><span id="t"><span class="tsd-kind-type-parameter">T</span></span></li></ul></section>
|
|
23
|
+
<section class="tsd-panel tsd-hierarchy" data-refl="333">
|
|
24
|
+
<h4>Hierarchy (<a href="../hierarchy.html#api.AppSyncHandlerContext">View Summary</a>)</h4>
|
|
25
|
+
<ul class="tsd-hierarchy">
|
|
26
|
+
<li class="tsd-hierarchy-item"><span class="tsd-hierarchy-target">AppSyncHandlerContext</span>
|
|
27
|
+
<ul class="tsd-hierarchy">
|
|
28
|
+
<li class="tsd-hierarchy-item"><a href="api.AppSyncBatchHandlerContext.html" class="tsd-signature-type tsd-kind-interface">AppSyncBatchHandlerContext</a></li></ul></li></ul></section>
|
|
23
29
|
<section class="tsd-panel-group tsd-index-group">
|
|
24
30
|
<section class="tsd-panel tsd-index-panel">
|
|
25
31
|
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
<li><a href="" aria-current="page">api</a></li></ul>
|
|
12
12
|
<h1>Namespace api</h1></div>
|
|
13
13
|
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Interfaces"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
14
|
-
<h2 class="tsd-anchor-link" id="interfaces">Interfaces<a href="#interfaces" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary" id="appsynchandlercontext"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.AppSyncHandlerContext.html">AppSyncHandlerContext</a><a href="#appsynchandlercontext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="httphandlercontext"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.HttpHandlerContext.html">HttpHandlerContext</a><a href="#httphandlercontext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="httpresponsecontext"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.HttpResponseContext.html">HttpResponseContext</a><a href="#httpresponsecontext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="operation"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.Operation.html">Operation</a><a href="#operation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="operationwithrequestbody"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.OperationWithRequestBody.html">OperationWithRequestBody</a><a href="#operationwithrequestbody" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details>
|
|
14
|
+
<h2 class="tsd-anchor-link" id="interfaces">Interfaces<a href="#interfaces" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary" id="appsyncbatchhandlercontext"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.AppSyncBatchHandlerContext.html">AppSyncBatchHandlerContext</a><a href="#appsyncbatchhandlercontext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="appsynchandlercontext"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.AppSyncHandlerContext.html">AppSyncHandlerContext</a><a href="#appsynchandlercontext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="httphandlercontext"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.HttpHandlerContext.html">HttpHandlerContext</a><a href="#httphandlercontext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="httpresponsecontext"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.HttpResponseContext.html">HttpResponseContext</a><a href="#httpresponsecontext" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="operation"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.Operation.html">Operation</a><a href="#operation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="operationwithrequestbody"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><a href="../interfaces/api.OperationWithRequestBody.html">OperationWithRequestBody</a><a href="#operationwithrequestbody" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details>
|
|
15
15
|
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Type Aliases"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
16
|
-
<h2 class="tsd-anchor-link" id="type-aliases">Type Aliases<a href="#type-aliases" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary" id="apigatewayv1handler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><a href="../types/api.APIGatewayv1Handler.html">APIGatewayv1Handler</a><a href="#apigatewayv1handler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="appsynchandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><a href="../types/api.AppSyncHandler.html">AppSyncHandler</a><a href="#appsynchandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="httphandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><a href="../types/api.HttpHandler.html">HttpHandler</a><a href="#httphandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details>
|
|
16
|
+
<h2 class="tsd-anchor-link" id="type-aliases">Type Aliases<a href="#type-aliases" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary" id="apigatewayv1handler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><a href="../types/api.APIGatewayv1Handler.html">APIGatewayv1Handler</a><a href="#apigatewayv1handler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="appsyncbatchhandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><a href="../types/api.AppSyncBatchHandler.html">AppSyncBatchHandler</a><a href="#appsyncbatchhandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="appsynchandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><a href="../types/api.AppSyncHandler.html">AppSyncHandler</a><a href="#appsynchandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="httphandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><a href="../types/api.HttpHandler.html">HttpHandler</a><a href="#httphandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details>
|
|
17
17
|
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Functions"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
18
|
-
<h2 class="tsd-anchor-link" id="functions">Functions<a href="#functions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary" id="createappsynchandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createAppSyncHandler.html">createAppSyncHandler</a><a href="#createappsynchandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="createhttphandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createHttpHandler.html">createHttpHandler</a><a href="#createhttphandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="createopenapihandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createOpenApiHandler.html">createOpenApiHandler</a><a href="#createopenapihandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="createopenapihandlerwithrequestbody"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createOpenApiHandlerWithRequestBody.html">createOpenApiHandlerWithRequestBody</a><a href="#createopenapihandlerwithrequestbody" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="createopenapihandlerwithrequestbodynoresponse"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createOpenApiHandlerWithRequestBodyNoResponse.html">createOpenApiHandlerWithRequestBodyNoResponse</a><a href="#createopenapihandlerwithrequestbodynoresponse" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details></div>
|
|
18
|
+
<h2 class="tsd-anchor-link" id="functions">Functions<a href="#functions" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h2></summary><dl class="tsd-member-summaries"><dt class="tsd-member-summary" id="createappsyncbatchhandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createAppSyncBatchHandler.html">createAppSyncBatchHandler</a><a href="#createappsyncbatchhandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="createappsynchandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createAppSyncHandler.html">createAppSyncHandler</a><a href="#createappsynchandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="createhttphandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createHttpHandler.html">createHttpHandler</a><a href="#createhttphandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="createopenapihandler"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createOpenApiHandler.html">createOpenApiHandler</a><a href="#createopenapihandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="createopenapihandlerwithrequestbody"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createOpenApiHandlerWithRequestBody.html">createOpenApiHandlerWithRequestBody</a><a href="#createopenapihandlerwithrequestbody" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd><dt class="tsd-member-summary" id="createopenapihandlerwithrequestbodynoresponse"><span class="tsd-member-summary-name"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><a href="../functions/api.createOpenApiHandlerWithRequestBodyNoResponse.html">createOpenApiHandlerWithRequestBodyNoResponse</a><a href="#createopenapihandlerwithrequestbodynoresponse" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></span></dt><dd class="tsd-member-summary"></dd></dl></details></div>
|
|
19
19
|
<div class="col-sidebar">
|
|
20
20
|
<div class="page-menu">
|
|
21
21
|
<div class="tsd-navigation settings">
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
<h3>On This Page</h3></summary>
|
|
33
33
|
<div class="tsd-accordion-details">
|
|
34
34
|
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Interfaces"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Interfaces</summary>
|
|
35
|
-
<div><a href="#appsynchandlercontext"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>App<wbr/>Sync<wbr/>Handler<wbr/>Context</span></a><a href="#httphandlercontext"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>Http<wbr/>Handler<wbr/>Context</span></a><a href="#httpresponsecontext"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>Http<wbr/>Response<wbr/>Context</span></a><a href="#operation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>Operation</span></a><a href="#operationwithrequestbody"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>Operation<wbr/>With<wbr/>Request<wbr/>Body</span></a></div></details>
|
|
35
|
+
<div><a href="#appsyncbatchhandlercontext"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>App<wbr/>Sync<wbr/>Batch<wbr/>Handler<wbr/>Context</span></a><a href="#appsynchandlercontext"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>App<wbr/>Sync<wbr/>Handler<wbr/>Context</span></a><a href="#httphandlercontext"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>Http<wbr/>Handler<wbr/>Context</span></a><a href="#httpresponsecontext"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>Http<wbr/>Response<wbr/>Context</span></a><a href="#operation"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>Operation</span></a><a href="#operationwithrequestbody"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Interface"><use href="../assets/icons.svg#icon-256"></use></svg><span>Operation<wbr/>With<wbr/>Request<wbr/>Body</span></a></div></details>
|
|
36
36
|
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Type Aliases"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Type Aliases</summary>
|
|
37
|
-
<div><a href="#apigatewayv1handler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>API<wbr/>Gatewayv1<wbr/>Handler</span></a><a href="#appsynchandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>App<wbr/>Sync<wbr/>Handler</span></a><a href="#httphandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Http<wbr/>Handler</span></a></div></details>
|
|
37
|
+
<div><a href="#apigatewayv1handler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>API<wbr/>Gatewayv1<wbr/>Handler</span></a><a href="#appsyncbatchhandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>App<wbr/>Sync<wbr/>Batch<wbr/>Handler</span></a><a href="#appsynchandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>App<wbr/>Sync<wbr/>Handler</span></a><a href="#httphandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Type Alias"><use href="../assets/icons.svg#icon-2097152"></use></svg><span>Http<wbr/>Handler</span></a></div></details>
|
|
38
38
|
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Functions"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Functions</summary>
|
|
39
|
-
<div><a href="#createappsynchandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>App<wbr/>Sync<wbr/>Handler</span></a><a href="#createhttphandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>Http<wbr/>Handler</span></a><a href="#createopenapihandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>Open<wbr/>Api<wbr/>Handler</span></a><a href="#createopenapihandlerwithrequestbody"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>Open<wbr/>Api<wbr/>Handler<wbr/>With<wbr/>Request<wbr/>Body</span></a><a href="#createopenapihandlerwithrequestbodynoresponse"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>Open<wbr/>Api<wbr/>Handler<wbr/>With<wbr/>Request<wbr/>Body<wbr/>No<wbr/>Response</span></a></div></details></div></details></div>
|
|
39
|
+
<div><a href="#createappsyncbatchhandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>App<wbr/>Sync<wbr/>Batch<wbr/>Handler</span></a><a href="#createappsynchandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>App<wbr/>Sync<wbr/>Handler</span></a><a href="#createhttphandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>Http<wbr/>Handler</span></a><a href="#createopenapihandler"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>Open<wbr/>Api<wbr/>Handler</span></a><a href="#createopenapihandlerwithrequestbody"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>Open<wbr/>Api<wbr/>Handler<wbr/>With<wbr/>Request<wbr/>Body</span></a><a href="#createopenapihandlerwithrequestbodynoresponse"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Function"><use href="../assets/icons.svg#icon-64"></use></svg><span>create<wbr/>Open<wbr/>Api<wbr/>Handler<wbr/>With<wbr/>Request<wbr/>Body<wbr/>No<wbr/>Response</span></a></div></details></div></details></div>
|
|
40
40
|
<div class="site-menu">
|
|
41
41
|
<nav class="tsd-navigation"><a href="../modules.html">cdk-serverless</a>
|
|
42
42
|
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>AppSyncBatchHandler | cdk-serverless</title><meta name="description" content="Documentation for cdk-serverless"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container"><a href="../index.html" class="title">cdk-serverless</a>
|
|
3
|
+
<div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
|
|
4
|
+
<ul role="listbox" id="tsd-search-results"></ul>
|
|
5
|
+
<div id="tsd-search-status" aria-live="polite" aria-atomic="true">
|
|
6
|
+
<div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
|
|
7
|
+
<div class="container container-main">
|
|
8
|
+
<div class="col-content">
|
|
9
|
+
<div class="tsd-page-title">
|
|
10
|
+
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
|
+
<li><a href="../modules/api.html">api</a></li>
|
|
12
|
+
<li><a href="" aria-current="page">AppSyncBatchHandler</a></li></ul>
|
|
13
|
+
<h1>Type Alias AppSyncBatchHandler<T, R, S></h1></div>
|
|
14
|
+
<div class="tsd-signature"><span class="tsd-kind-type-alias">AppSyncBatchHandler</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">context</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/api.AppSyncBatchHandlerContext.html" class="tsd-signature-type tsd-kind-interface">AppSyncBatchHandlerContext</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#t">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#s">S</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#r">R</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></div>
|
|
15
|
+
<div class="tsd-comment tsd-typography"><p>A function that handles an AppSync BatchInvoke event.
|
|
16
|
+
Receives the batch context and returns the responses in source order.</p>
|
|
17
|
+
</div>
|
|
18
|
+
<section class="tsd-panel">
|
|
19
|
+
<h4>Type Parameters</h4>
|
|
20
|
+
<ul class="tsd-type-parameter-list">
|
|
21
|
+
<li><span id="t"><span class="tsd-kind-type-parameter">T</span></span></li>
|
|
22
|
+
<li><span id="r"><span class="tsd-kind-type-parameter">R</span></span></li>
|
|
23
|
+
<li><span id="s"><span class="tsd-kind-type-parameter">S</span> <span class="tsd-signature-keyword">extends</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span> = <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span></span></li></ul></section>
|
|
24
|
+
<div class="tsd-type-declaration">
|
|
25
|
+
<h4>Type Declaration</h4>
|
|
26
|
+
<ul class="tsd-parameters">
|
|
27
|
+
<li class="tsd-parameter-signature">
|
|
28
|
+
<ul class="tsd-signatures">
|
|
29
|
+
<li class="tsd-signature" id="__type"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">context</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/api.AppSyncBatchHandlerContext.html" class="tsd-signature-type tsd-kind-interface">AppSyncBatchHandlerContext</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#t">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#s">S</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#r">R</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></li>
|
|
30
|
+
<li class="tsd-description">
|
|
31
|
+
<div class="tsd-parameters">
|
|
32
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
33
|
+
<ul class="tsd-parameter-list">
|
|
34
|
+
<li><span><span class="tsd-kind-parameter">context</span>: <a href="../interfaces/api.AppSyncBatchHandlerContext.html" class="tsd-signature-type tsd-kind-interface">AppSyncBatchHandlerContext</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#t">T</a><span class="tsd-signature-symbol">,</span> <a class="tsd-signature-type tsd-kind-type-parameter" href="#s">S</a><span class="tsd-signature-symbol">></span></span></li></ul></div>
|
|
35
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="#r">R</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4></li></ul></li></ul></div></div>
|
|
36
|
+
<div class="col-sidebar">
|
|
37
|
+
<div class="page-menu">
|
|
38
|
+
<div class="tsd-navigation settings">
|
|
39
|
+
<details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
40
|
+
<h3>Settings</h3></summary>
|
|
41
|
+
<div class="tsd-accordion-details">
|
|
42
|
+
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
43
|
+
<ul id="tsd-filter-options">
|
|
44
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
|
|
45
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
|
|
46
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div>
|
|
47
|
+
<div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
48
|
+
<div class="site-menu">
|
|
49
|
+
<nav class="tsd-navigation"><a href="../modules.html">cdk-serverless</a>
|
|
50
|
+
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
51
|
+
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
52
|
+
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
53
|
+
<div class="overlay"></div></body></html>
|
|
@@ -40,6 +40,28 @@ export interface GraphQlApiProps extends BaseApiProps {
|
|
|
40
40
|
*/
|
|
41
41
|
typedErrors?: boolean;
|
|
42
42
|
}
|
|
43
|
+
export interface LambdaResolverOptions {
|
|
44
|
+
/**
|
|
45
|
+
* If set, addLambdaResolver wires an AppSync BatchInvoke resolver instead of a
|
|
46
|
+
* single invoke. The generated UNIT resolver gets MaxBatchSize set to this
|
|
47
|
+
* value, a BatchInvoke request template
|
|
48
|
+
* (MappingTemplate.lambdaRequest('$utils.toJson($context)', 'BatchInvoke')) and
|
|
49
|
+
* a MappingTemplate.lambdaResult() response template, so AppSync groups up to
|
|
50
|
+
* this many field invocations into one Lambda call. Pair this with
|
|
51
|
+
* createAppSyncBatchHandler, whose handler receives the batched events.
|
|
52
|
+
*
|
|
53
|
+
* When both maxBatchSize and `typedErrors` are set, maxBatchSize wins for this
|
|
54
|
+
* field. The field gets the UNIT BatchInvoke resolver rather than the
|
|
55
|
+
* typedErrors APPSYNC_JS pipeline, because the BatchInvoke mapping templates
|
|
56
|
+
* have no equivalent on that pipeline. Typed errors thrown by a batch handler
|
|
57
|
+
* are not converted to GraphQL errors. They rethrow and fail the invocation,
|
|
58
|
+
* so a batch handler should not rely on the typed-error-to-GraphQL-error
|
|
59
|
+
* conversion.
|
|
60
|
+
*
|
|
61
|
+
* @default - undefined (single invoke, the pre-batch behaviour; no MaxBatchSize and no mapping templates)
|
|
62
|
+
*/
|
|
63
|
+
readonly maxBatchSize?: number;
|
|
64
|
+
}
|
|
43
65
|
export interface VtlResolverOptions {
|
|
44
66
|
/**
|
|
45
67
|
* The datasource the VTL resolver targets
|
|
@@ -139,7 +161,7 @@ export declare class GraphQlApi<RESOLVERS> extends BaseApi {
|
|
|
139
161
|
* getFunctionForOperation
|
|
140
162
|
*/
|
|
141
163
|
getFunctionForOperation<TYPE extends keyof RESOLVERS, FIELDTYPE extends NonNullable<RESOLVERS[TYPE]>>(typeName: TYPE, fieldName: keyof FIELDTYPE): LambdaFunction;
|
|
142
|
-
addLambdaResolver<TYPE extends keyof RESOLVERS, FIELDTYPE extends NonNullable<RESOLVERS[TYPE]>>(typeName: TYPE, fieldName: keyof FIELDTYPE): LambdaFunction;
|
|
164
|
+
addLambdaResolver<TYPE extends keyof RESOLVERS, FIELDTYPE extends NonNullable<RESOLVERS[TYPE]>>(typeName: TYPE, fieldName: keyof FIELDTYPE, options?: LambdaResolverOptions): LambdaFunction;
|
|
143
165
|
addDynamoDbVtlResolver<TYPE extends keyof RESOLVERS, FIELDTYPE extends NonNullable<RESOLVERS[TYPE]>>(typeName: TYPE, fieldName: keyof FIELDTYPE, options?: Omit<VtlResolverOptions, 'dataSource'>): void;
|
|
144
166
|
addDynamoDbJSResolver<TYPE extends keyof RESOLVERS, FIELDTYPE extends NonNullable<RESOLVERS[TYPE]>>(typeName: TYPE, fieldName: keyof FIELDTYPE, options?: JsResolverOptions): void;
|
|
145
167
|
addJSResolver<TYPE extends keyof RESOLVERS, FIELDTYPE extends NonNullable<RESOLVERS[TYPE]>>(typeName: TYPE, fieldName: keyof FIELDTYPE, dataSource: aws_appsync.BaseDataSource, options?: JsResolverOptions): void;
|