@nikovirtala/projen-constructs 0.3.79 → 0.3.80
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/.jsii +263 -130
- package/docs/api/classes/Bundler.html +33 -6
- package/docs/api/classes/Colima.html +4 -0
- package/docs/api/classes/LambdaFunctionCodeBundle.html +22 -2
- package/docs/api/classes/LambdaFunctionConstructGenerator.html +4 -0
- package/docs/api/classes/LocalStack.html +4 -0
- package/docs/api/functions/convertToPosixPath.html +2 -0
- package/docs/api/functions/renderBundleName.html +9 -1
- package/docs/api/interfaces/Bundle.html +12 -3
- package/docs/api/interfaces/BundlerOptions.html +40 -4
- package/docs/api/interfaces/BundlingOptions.html +139 -12
- package/docs/api/interfaces/LambdaFunctionCodeBundleOptions.html +53 -5
- package/docs/api/interfaces/LambdaFunctionCodeBundlerOptions.html +26 -3
- package/docs/api/interfaces/LambdaFunctionConstructGeneratorOptions.html +90 -8
- package/docs/api/interfaces/LocalStackOptions.html +46 -4
- package/lib/components/bundle-lambda-function-code.d.ts +243 -0
- package/lib/components/bundle-lambda-function-code.js +75 -5
- package/lib/components/colima.d.ts +5 -0
- package/lib/components/colima.js +7 -2
- package/lib/components/homebrew.js +1 -1
- package/lib/components/lambda-function-construct-generator.d.ts +54 -0
- package/lib/components/lambda-function-construct-generator.js +7 -2
- package/lib/components/localstack.d.ts +32 -0
- package/lib/components/localstack.js +14 -2
- package/lib/components/mise.js +1 -1
- package/lib/components/typedoc.js +1 -1
- package/lib/components/vitest.js +1 -1
- package/lib/project-generator.js +1 -1
- package/lib/projects/awscdk-construct-library.generated.js +1 -1
- package/lib/projects/awscdk-typescript-app.generated.js +1 -1
- package/lib/projects/jsii.generated.js +1 -1
- package/lib/projects/typescript.generated.js +1 -1
- package/package.json +1 -1
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
11
|
<li><a href="" aria-current="page">LambdaFunctionCodeBundleOptions</a></li></ul>
|
|
12
12
|
<h1>Interface LambdaFunctionCodeBundleOptions</h1></div>
|
|
13
|
+
<section class="tsd-panel tsd-comment">
|
|
14
|
+
<div class="tsd-comment tsd-typography"><p>Options for <code>LambdaFunctionCodeBundle</code>.</p>
|
|
15
|
+
</div></section>
|
|
13
16
|
<div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">LambdaFunctionCodeBundleOptions</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#bundlingoptions">bundlingOptions</a><span class="tsd-signature-symbol">?:</span> <a href="BundlingOptions.html" class="tsd-signature-type tsd-kind-interface">BundlingOptions</a><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#constructfile">constructFile</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#constructname">constructName</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#entrypoint">entrypoint</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#extension">extension</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div>
|
|
14
17
|
<section class="tsd-panel-group tsd-index-group">
|
|
15
18
|
<section class="tsd-panel tsd-index-panel">
|
|
@@ -29,19 +32,64 @@
|
|
|
29
32
|
<section>
|
|
30
33
|
<section class="tsd-panel tsd-member">
|
|
31
34
|
<h3 class="tsd-anchor-link" id="bundlingoptions"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>bundling<wbr/>Options</span><a href="#bundlingoptions" 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>
|
|
32
|
-
<div class="tsd-signature"><span class="tsd-kind-property">bundlingOptions</span><span class="tsd-signature-symbol">?:</span> <a href="BundlingOptions.html" class="tsd-signature-type tsd-kind-interface">BundlingOptions</a></div
|
|
35
|
+
<div class="tsd-signature"><span class="tsd-kind-property">bundlingOptions</span><span class="tsd-signature-symbol">?:</span> <a href="BundlingOptions.html" class="tsd-signature-type tsd-kind-interface">BundlingOptions</a></div>
|
|
36
|
+
<div class="tsd-comment tsd-typography"><p>Bundling options for this AWS Lambda Function.</p>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="tsd-comment tsd-typography">
|
|
39
|
+
<div class="tsd-tag-default">
|
|
40
|
+
<h4 class="tsd-anchor-link" id="default">Default<a href="#default" 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></h4><ul>
|
|
41
|
+
<li>the defaults of <code>BundlingOptions</code></li>
|
|
42
|
+
</ul>
|
|
43
|
+
</div></div></section>
|
|
33
44
|
<section class="tsd-panel tsd-member">
|
|
34
45
|
<h3 class="tsd-anchor-link" id="constructfile"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>construct<wbr/>File</span><a href="#constructfile" 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>
|
|
35
|
-
<div class="tsd-signature"><span class="tsd-kind-property">constructFile</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div
|
|
46
|
+
<div class="tsd-signature"><span class="tsd-kind-property">constructFile</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
47
|
+
<div class="tsd-comment tsd-typography"><p>The name of the generated TypeScript source file. This file should also be
|
|
48
|
+
under the source tree.</p>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="tsd-comment tsd-typography">
|
|
51
|
+
<div class="tsd-tag-default">
|
|
52
|
+
<h4 class="tsd-anchor-link" id="default-1">Default<a href="#default-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></h4><ul>
|
|
53
|
+
<li>The path of the entrypoint file, with the <code>-code.ts</code> suffix
|
|
54
|
+
instead of the extension (e.g. <code>src/foo-code.ts</code>).</li>
|
|
55
|
+
</ul>
|
|
56
|
+
</div></div></section>
|
|
36
57
|
<section class="tsd-panel tsd-member">
|
|
37
58
|
<h3 class="tsd-anchor-link" id="constructname"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>construct<wbr/>Name</span><a href="#constructname" 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>
|
|
38
|
-
<div class="tsd-signature"><span class="tsd-kind-property">constructName</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div
|
|
59
|
+
<div class="tsd-signature"><span class="tsd-kind-property">constructName</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
60
|
+
<div class="tsd-comment tsd-typography"><p>The name of the generated <code>aws_lambda.Code</code> constant.</p>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="tsd-comment tsd-typography">
|
|
63
|
+
<div class="tsd-tag-default">
|
|
64
|
+
<h4 class="tsd-anchor-link" id="default-2">Default<a href="#default-2" 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></h4><ul>
|
|
65
|
+
<li>A pascal cased version of the name of the entrypoint file, with
|
|
66
|
+
the suffix <code>FunctionCode</code> (e.g. <code>ResizeImageFunctionCode</code>).</li>
|
|
67
|
+
</ul>
|
|
68
|
+
</div></div></section>
|
|
39
69
|
<section class="tsd-panel tsd-member">
|
|
40
70
|
<h3 class="tsd-anchor-link" id="entrypoint"><code class="tsd-tag">Readonly</code><span>entrypoint</span><a href="#entrypoint" 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>
|
|
41
|
-
<div class="tsd-signature"><span class="tsd-kind-property">entrypoint</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div
|
|
71
|
+
<div class="tsd-signature"><span class="tsd-kind-property">entrypoint</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
72
|
+
<div class="tsd-comment tsd-typography"><p>A path from the project root directory to a TypeScript file which contains
|
|
73
|
+
the AWS Lambda handler entrypoint (exports a <code>handler</code> function).</p>
|
|
74
|
+
<p>This is relative to the root directory of the project.</p>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="tsd-comment tsd-typography">
|
|
77
|
+
<div class="tsd-tag-example">
|
|
78
|
+
<h4 class="tsd-anchor-link" id="example">Example<a href="#example" 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></h4><pre><code class="ts"><span class="hl-2">"src/subdir/foo.lambda.ts"</span>
|
|
79
|
+
</code><button type="button">Copy</button></pre>
|
|
80
|
+
|
|
81
|
+
</div></div></section>
|
|
42
82
|
<section class="tsd-panel tsd-member">
|
|
43
83
|
<h3 class="tsd-anchor-link" id="extension"><code class="tsd-tag">Readonly</code><span>extension</span><a href="#extension" 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>
|
|
44
|
-
<div class="tsd-signature"><span class="tsd-kind-property">extension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div
|
|
84
|
+
<div class="tsd-signature"><span class="tsd-kind-property">extension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
85
|
+
<div class="tsd-comment tsd-typography"><p>Suffix for AWS Lambda handlers.</p>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="tsd-comment tsd-typography">
|
|
88
|
+
<div class="tsd-tag-example">
|
|
89
|
+
<h4 class="tsd-anchor-link" id="example-1">Example<a href="#example-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></h4><pre><code class="ts"><span class="hl-2">".lambda.ts"</span>
|
|
90
|
+
</code><button type="button">Copy</button></pre>
|
|
91
|
+
|
|
92
|
+
</div></div></section></section></details></div>
|
|
45
93
|
<div class="col-sidebar">
|
|
46
94
|
<div class="page-menu">
|
|
47
95
|
<div class="tsd-navigation settings">
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
11
|
<li><a href="" aria-current="page">LambdaFunctionCodeBundlerOptions</a></li></ul>
|
|
12
12
|
<h1>Interface LambdaFunctionCodeBundlerOptions</h1></div>
|
|
13
|
+
<section class="tsd-panel tsd-comment">
|
|
14
|
+
<div class="tsd-comment tsd-typography"><p>Options for <code>LambdaFunctionCodeBundler</code></p>
|
|
15
|
+
</div></section>
|
|
13
16
|
<div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">LambdaFunctionCodeBundlerOptions</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#bundleoptions">bundleOptions</a><span class="tsd-signature-symbol">?:</span> <a href="LambdaFunctionCodeBundleOptions.html" class="tsd-signature-type tsd-kind-interface">LambdaFunctionCodeBundleOptions</a><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#extension">extension</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#srcdir">srcdir</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div>
|
|
14
17
|
<section class="tsd-panel-group tsd-index-group">
|
|
15
18
|
<section class="tsd-panel tsd-index-panel">
|
|
@@ -27,13 +30,33 @@
|
|
|
27
30
|
<section>
|
|
28
31
|
<section class="tsd-panel tsd-member">
|
|
29
32
|
<h3 class="tsd-anchor-link" id="bundleoptions"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>bundle<wbr/>Options</span><a href="#bundleoptions" 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>
|
|
30
|
-
<div class="tsd-signature"><span class="tsd-kind-property">bundleOptions</span><span class="tsd-signature-symbol">?:</span> <a href="LambdaFunctionCodeBundleOptions.html" class="tsd-signature-type tsd-kind-interface">LambdaFunctionCodeBundleOptions</a></div
|
|
33
|
+
<div class="tsd-signature"><span class="tsd-kind-property">bundleOptions</span><span class="tsd-signature-symbol">?:</span> <a href="LambdaFunctionCodeBundleOptions.html" class="tsd-signature-type tsd-kind-interface">LambdaFunctionCodeBundleOptions</a></div>
|
|
34
|
+
<div class="tsd-comment tsd-typography"><p>Options for AWS Lambda Function bundling, applied to every discovered entrypoint.</p>
|
|
35
|
+
<p>The <code>entrypoint</code> and <code>extension</code> given here are ignored: each bundle uses its
|
|
36
|
+
discovered entrypoint and the <code>extension</code> of the bundler.</p>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="tsd-comment tsd-typography">
|
|
39
|
+
<div class="tsd-tag-default">
|
|
40
|
+
<h4 class="tsd-anchor-link" id="default">Default<a href="#default" 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></h4><ul>
|
|
41
|
+
<li>the defaults of <code>LambdaFunctionCodeBundleOptions</code></li>
|
|
42
|
+
</ul>
|
|
43
|
+
</div></div></section>
|
|
31
44
|
<section class="tsd-panel tsd-member">
|
|
32
45
|
<h3 class="tsd-anchor-link" id="extension"><code class="tsd-tag">Readonly</code><span>extension</span><a href="#extension" 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>
|
|
33
|
-
<div class="tsd-signature"><span class="tsd-kind-property">extension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div
|
|
46
|
+
<div class="tsd-signature"><span class="tsd-kind-property">extension</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
47
|
+
<div class="tsd-comment tsd-typography"><p>Locate files with the given extension.</p>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="tsd-comment tsd-typography">
|
|
50
|
+
<div class="tsd-tag-example">
|
|
51
|
+
<h4 class="tsd-anchor-link" id="example">Example<a href="#example" 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></h4><pre><code class="ts"><span class="hl-2">".lambda.ts"</span>
|
|
52
|
+
</code><button type="button">Copy</button></pre>
|
|
53
|
+
|
|
54
|
+
</div></div></section>
|
|
34
55
|
<section class="tsd-panel tsd-member">
|
|
35
56
|
<h3 class="tsd-anchor-link" id="srcdir"><code class="tsd-tag">Readonly</code><span>srcdir</span><a href="#srcdir" 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>
|
|
36
|
-
<div class="tsd-signature"><span class="tsd-kind-property">srcdir</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div
|
|
57
|
+
<div class="tsd-signature"><span class="tsd-kind-property">srcdir</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
58
|
+
<div class="tsd-comment tsd-typography"><p>Project source tree (relative to project output directory).</p>
|
|
59
|
+
</div></section></section></details></div>
|
|
37
60
|
<div class="col-sidebar">
|
|
38
61
|
<div class="page-menu">
|
|
39
62
|
<div class="tsd-navigation settings">
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
11
|
<li><a href="" aria-current="page">LambdaFunctionConstructGeneratorOptions</a></li></ul>
|
|
12
12
|
<h1>Interface LambdaFunctionConstructGeneratorOptions</h1></div>
|
|
13
|
+
<section class="tsd-panel tsd-comment">
|
|
14
|
+
<div class="tsd-comment tsd-typography"><p>Options for the LambdaFunctionConstructGenerator</p>
|
|
15
|
+
</div></section>
|
|
13
16
|
<div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">LambdaFunctionConstructGeneratorOptions</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#adddependencies">addDependencies</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#baseconstructclass">baseConstructClass</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#baseconstructimport">baseConstructImport</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#baseconstructpackage">baseConstructPackage</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#esbuildoptions">esbuildOptions</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">BuildOptions</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#filepattern">filePattern</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#outputdir">outputDir</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#sourcedir">sourceDir</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div>
|
|
14
17
|
<section class="tsd-panel-group tsd-index-group">
|
|
15
18
|
<section class="tsd-panel tsd-index-panel">
|
|
@@ -32,28 +35,107 @@
|
|
|
32
35
|
<section>
|
|
33
36
|
<section class="tsd-panel tsd-member">
|
|
34
37
|
<h3 class="tsd-anchor-link" id="adddependencies"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>add<wbr/>Dependencies</span><a href="#adddependencies" 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>
|
|
35
|
-
<div class="tsd-signature"><span class="tsd-kind-property">addDependencies</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div
|
|
38
|
+
<div class="tsd-signature"><span class="tsd-kind-property">addDependencies</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div>
|
|
39
|
+
<div class="tsd-comment tsd-typography"><p>Whether to automatically add the required dependencies</p>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="tsd-comment tsd-typography">
|
|
42
|
+
<div class="tsd-tag-default">
|
|
43
|
+
<h4 class="tsd-anchor-link" id="default">Default<a href="#default" 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></h4><pre><code class="ts"><span class="hl-3">true</span>
|
|
44
|
+
</code><button type="button">Copy</button></pre>
|
|
45
|
+
|
|
46
|
+
</div></div></section>
|
|
36
47
|
<section class="tsd-panel tsd-member">
|
|
37
48
|
<h3 class="tsd-anchor-link" id="baseconstructclass"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>base<wbr/>Construct<wbr/>Class</span><a href="#baseconstructclass" 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>
|
|
38
|
-
<div class="tsd-signature"><span class="tsd-kind-property">baseConstructClass</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div
|
|
49
|
+
<div class="tsd-signature"><span class="tsd-kind-property">baseConstructClass</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
50
|
+
<div class="tsd-comment tsd-typography"><p>Name of the construct class to extend</p>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="tsd-comment tsd-typography">
|
|
53
|
+
<div class="tsd-tag-example">
|
|
54
|
+
<h4 class="tsd-anchor-link" id="example">Example<a href="#example" 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></h4><pre><code class="ts"><span class="hl-2">"NodejsFunction"</span>
|
|
55
|
+
</code><button type="button">Copy</button></pre>
|
|
56
|
+
|
|
57
|
+
</div>
|
|
58
|
+
<div class="tsd-tag-default">
|
|
59
|
+
<h4 class="tsd-anchor-link" id="default-1">Default<a href="#default-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></h4><pre><code class="ts"><span class="hl-2">"aws_lambda.Function"</span>
|
|
60
|
+
</code><button type="button">Copy</button></pre>
|
|
61
|
+
|
|
62
|
+
</div></div></section>
|
|
39
63
|
<section class="tsd-panel tsd-member">
|
|
40
64
|
<h3 class="tsd-anchor-link" id="baseconstructimport"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>base<wbr/>Construct<wbr/>Import</span><a href="#baseconstructimport" 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>
|
|
41
|
-
<div class="tsd-signature"><span class="tsd-kind-property">baseConstructImport</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div
|
|
65
|
+
<div class="tsd-signature"><span class="tsd-kind-property">baseConstructImport</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
66
|
+
<div class="tsd-comment tsd-typography"><p>Import statement for the base construct</p>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="tsd-comment tsd-typography">
|
|
69
|
+
<div class="tsd-tag-example">
|
|
70
|
+
<h4 class="tsd-anchor-link" id="example-1">Example<a href="#example-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></h4><pre><code class="ts"><span class="hl-2">"import { NodejsFunction } from 'aws-cdk-lib/aws-lambda-nodejs';"</span>
|
|
71
|
+
</code><button type="button">Copy</button></pre>
|
|
72
|
+
|
|
73
|
+
</div>
|
|
74
|
+
<div class="tsd-tag-default">
|
|
75
|
+
<h4 class="tsd-anchor-link" id="default-2">Default<a href="#default-2" 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></h4><pre><code class="ts"><span class="hl-2">"import { aws_lambda } from 'aws-cdk-lib';"</span>
|
|
76
|
+
</code><button type="button">Copy</button></pre>
|
|
77
|
+
|
|
78
|
+
</div></div></section>
|
|
42
79
|
<section class="tsd-panel tsd-member">
|
|
43
80
|
<h3 class="tsd-anchor-link" id="baseconstructpackage"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>base<wbr/>Construct<wbr/>Package</span><a href="#baseconstructpackage" 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>
|
|
44
|
-
<div class="tsd-signature"><span class="tsd-kind-property">baseConstructPackage</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div
|
|
81
|
+
<div class="tsd-signature"><span class="tsd-kind-property">baseConstructPackage</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
82
|
+
<div class="tsd-comment tsd-typography"><p>Package name to add as dependency for the base construct</p>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="tsd-comment tsd-typography">
|
|
85
|
+
<div class="tsd-tag-example">
|
|
86
|
+
<h4 class="tsd-anchor-link" id="example-2">Example<a href="#example-2" 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></h4><pre><code class="ts"><span class="hl-2">"aws-cdk-lib"</span>
|
|
87
|
+
</code><button type="button">Copy</button></pre>
|
|
88
|
+
|
|
89
|
+
</div>
|
|
90
|
+
<div class="tsd-tag-default">
|
|
91
|
+
<h4 class="tsd-anchor-link" id="default-3">Default<a href="#default-3" 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></h4><pre><code class="ts"><span class="hl-2">"aws-cdk-lib"</span>
|
|
92
|
+
</code><button type="button">Copy</button></pre>
|
|
93
|
+
|
|
94
|
+
</div></div></section>
|
|
45
95
|
<section class="tsd-panel tsd-member">
|
|
46
96
|
<h3 class="tsd-anchor-link" id="esbuildoptions"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>esbuild<wbr/>Options</span><a href="#esbuildoptions" 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>
|
|
47
|
-
<div class="tsd-signature"><span class="tsd-kind-property">esbuildOptions</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">BuildOptions</span></div
|
|
97
|
+
<div class="tsd-signature"><span class="tsd-kind-property">esbuildOptions</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">BuildOptions</span></div>
|
|
98
|
+
<div class="tsd-comment tsd-typography"><p>esbuild options to customize the bundling process</p>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="tsd-comment tsd-typography">
|
|
101
|
+
<div class="tsd-tag-default">
|
|
102
|
+
<h4 class="tsd-anchor-link" id="default-4">Default<a href="#default-4" 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></h4><pre><code class="ts"><span class="hl-1">{}</span>
|
|
103
|
+
</code><button type="button">Copy</button></pre>
|
|
104
|
+
|
|
105
|
+
</div></div></section>
|
|
48
106
|
<section class="tsd-panel tsd-member">
|
|
49
107
|
<h3 class="tsd-anchor-link" id="filepattern"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>file<wbr/>Pattern</span><a href="#filepattern" 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">filePattern</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div
|
|
108
|
+
<div class="tsd-signature"><span class="tsd-kind-property">filePattern</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
109
|
+
<div class="tsd-comment tsd-typography"><p>File pattern to identify Lambda Function handlers</p>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="tsd-comment tsd-typography">
|
|
112
|
+
<div class="tsd-tag-default">
|
|
113
|
+
<h4 class="tsd-anchor-link" id="default-5">Default<a href="#default-5" 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></h4><pre><code class="ts"><span class="hl-2">"*.lambda.ts"</span>
|
|
114
|
+
</code><button type="button">Copy</button></pre>
|
|
115
|
+
|
|
116
|
+
</div></div></section>
|
|
51
117
|
<section class="tsd-panel tsd-member">
|
|
52
118
|
<h3 class="tsd-anchor-link" id="outputdir"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>output<wbr/>Dir</span><a href="#outputdir" 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>
|
|
53
|
-
<div class="tsd-signature"><span class="tsd-kind-property">outputDir</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div
|
|
119
|
+
<div class="tsd-signature"><span class="tsd-kind-property">outputDir</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
120
|
+
<div class="tsd-comment tsd-typography"><p>Output directory where Lambda Function constructs will be generated</p>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="tsd-comment tsd-typography">
|
|
123
|
+
<div class="tsd-tag-default">
|
|
124
|
+
<h4 class="tsd-anchor-link" id="default-6">Default<a href="#default-6" 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></h4><pre><code class="ts"><span class="hl-2">"src/constructs/lambda"</span>
|
|
125
|
+
</code><button type="button">Copy</button></pre>
|
|
126
|
+
|
|
127
|
+
</div></div></section>
|
|
54
128
|
<section class="tsd-panel tsd-member">
|
|
55
129
|
<h3 class="tsd-anchor-link" id="sourcedir"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>source<wbr/>Dir</span><a href="#sourcedir" 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>
|
|
56
|
-
<div class="tsd-signature"><span class="tsd-kind-property">sourceDir</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div
|
|
130
|
+
<div class="tsd-signature"><span class="tsd-kind-property">sourceDir</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
131
|
+
<div class="tsd-comment tsd-typography"><p>Source directory where Lambda Function handlers are located</p>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="tsd-comment tsd-typography">
|
|
134
|
+
<div class="tsd-tag-default">
|
|
135
|
+
<h4 class="tsd-anchor-link" id="default-7">Default<a href="#default-7" 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></h4><pre><code class="ts"><span class="hl-2">"src/handlers"</span>
|
|
136
|
+
</code><button type="button">Copy</button></pre>
|
|
137
|
+
|
|
138
|
+
</div></div></section></section></details></div>
|
|
57
139
|
<div class="col-sidebar">
|
|
58
140
|
<div class="page-menu">
|
|
59
141
|
<div class="tsd-navigation settings">
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
<ul class="tsd-breadcrumb" aria-label="Breadcrumb">
|
|
11
11
|
<li><a href="" aria-current="page">LocalStackOptions</a></li></ul>
|
|
12
12
|
<h1>Interface LocalStackOptions</h1></div>
|
|
13
|
+
<section class="tsd-panel tsd-comment">
|
|
14
|
+
<div class="tsd-comment tsd-typography"><p>Options for LocalStack component.</p>
|
|
15
|
+
</div></section>
|
|
13
16
|
<div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">LocalStackOptions</span> <span class="tsd-signature-symbol">{</span><br/> <a class="tsd-kind-property" href="#debug">debug</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#imagetag">imageTag</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#port">port</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br/> <a class="tsd-kind-property" href="#services">services</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span></div>
|
|
14
17
|
<section class="tsd-panel-group tsd-index-group">
|
|
15
18
|
<section class="tsd-panel tsd-index-panel">
|
|
@@ -28,16 +31,55 @@
|
|
|
28
31
|
<section>
|
|
29
32
|
<section class="tsd-panel tsd-member">
|
|
30
33
|
<h3 class="tsd-anchor-link" id="debug"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>debug</span><a href="#debug" 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>
|
|
31
|
-
<div class="tsd-signature"><span class="tsd-kind-property">debug</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div
|
|
34
|
+
<div class="tsd-signature"><span class="tsd-kind-property">debug</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div>
|
|
35
|
+
<div class="tsd-comment tsd-typography"><p>Enable LocalStack debug mode.</p>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="tsd-comment tsd-typography">
|
|
38
|
+
<div class="tsd-tag-default">
|
|
39
|
+
<h4 class="tsd-anchor-link" id="default">Default<a href="#default" 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></h4><pre><code class="ts"><span class="hl-3">false</span>
|
|
40
|
+
</code><button type="button">Copy</button></pre>
|
|
41
|
+
|
|
42
|
+
</div></div></section>
|
|
32
43
|
<section class="tsd-panel tsd-member">
|
|
33
44
|
<h3 class="tsd-anchor-link" id="imagetag"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>image<wbr/>Tag</span><a href="#imagetag" 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>
|
|
34
|
-
<div class="tsd-signature"><span class="tsd-kind-property">imageTag</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div
|
|
45
|
+
<div class="tsd-signature"><span class="tsd-kind-property">imageTag</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
46
|
+
<div class="tsd-comment tsd-typography"><p>LocalStack Docker image tag, e.g. <code>"4.9"</code> to pin a version.</p>
|
|
47
|
+
<p>When set, LocalStack starts with the <code>localstack/localstack:<imageTag></code> image, passed to
|
|
48
|
+
<code>localstack start</code> through the <code>IMAGE_NAME</code> environment variable. That's the community
|
|
49
|
+
image, even if a <code>LOCALSTACK_AUTH_TOKEN</code> would otherwise select the Pro image.</p>
|
|
50
|
+
<p>Must be a valid Docker tag.</p>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="tsd-comment tsd-typography">
|
|
53
|
+
<div class="tsd-tag-default">
|
|
54
|
+
<h4 class="tsd-anchor-link" id="default-1">Default<a href="#default-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></h4><pre><code class="ts"><span class="hl-1">- </span><span class="hl-5">the</span><span class="hl-1"> </span><span class="hl-5">LocalStack</span><span class="hl-1"> </span><span class="hl-4">CLI</span><span class="hl-2">'s default imag</span><span class="hl-9">e</span>
|
|
55
|
+
</code><button type="button">Copy</button></pre>
|
|
56
|
+
|
|
57
|
+
</div>
|
|
58
|
+
<div class="tsd-tag-see">
|
|
59
|
+
<h4 class="tsd-anchor-link" id="see">See<a href="#see" 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></h4><p><a href="https://docs.localstack.cloud/aws/customization/configuration-options/">https://docs.localstack.cloud/aws/customization/configuration-options/</a></p>
|
|
60
|
+
</div></div></section>
|
|
35
61
|
<section class="tsd-panel tsd-member">
|
|
36
62
|
<h3 class="tsd-anchor-link" id="port"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>port</span><a href="#port" 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>
|
|
37
|
-
<div class="tsd-signature"><span class="tsd-kind-property">port</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div
|
|
63
|
+
<div class="tsd-signature"><span class="tsd-kind-property">port</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div>
|
|
64
|
+
<div class="tsd-comment tsd-typography"><p>LocalStack gateway port.</p>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="tsd-comment tsd-typography">
|
|
67
|
+
<div class="tsd-tag-default">
|
|
68
|
+
<h4 class="tsd-anchor-link" id="default-2">Default<a href="#default-2" 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></h4><pre><code class="ts"><span class="hl-6">4566</span>
|
|
69
|
+
</code><button type="button">Copy</button></pre>
|
|
70
|
+
|
|
71
|
+
</div></div></section>
|
|
38
72
|
<section class="tsd-panel tsd-member">
|
|
39
73
|
<h3 class="tsd-anchor-link" id="services"><code class="tsd-tag">Optional</code> <code class="tsd-tag">Readonly</code><span>services</span><a href="#services" 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>
|
|
40
|
-
<div class="tsd-signature"><span class="tsd-kind-property">services</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div
|
|
74
|
+
<div class="tsd-signature"><span class="tsd-kind-property">services</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></div>
|
|
75
|
+
<div class="tsd-comment tsd-typography"><p>LocalStack services to enable.</p>
|
|
76
|
+
</div>
|
|
77
|
+
<div class="tsd-comment tsd-typography">
|
|
78
|
+
<div class="tsd-tag-default">
|
|
79
|
+
<h4 class="tsd-anchor-link" id="default-3">Default<a href="#default-3" 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></h4><pre><code class="ts"><span class="hl-1">- </span><span class="hl-5">all</span><span class="hl-1"> </span><span class="hl-5">services</span><span class="hl-1"> </span><span class="hl-5">enabled</span>
|
|
80
|
+
</code><button type="button">Copy</button></pre>
|
|
81
|
+
|
|
82
|
+
</div></div></section></section></details></div>
|
|
41
83
|
<div class="col-sidebar">
|
|
42
84
|
<div class="page-menu">
|
|
43
85
|
<div class="tsd-navigation settings">
|