stacktape 3.0.0-rc.1 → 3.0.0-rc.3
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/bin/stacktape.js +1 -1
- package/package.json +1 -1
- package/sdk.d.ts +41 -0
package/bin/stacktape.js
CHANGED
|
@@ -168,7 +168,7 @@ async function ensureBinary() {
|
|
|
168
168
|
|
|
169
169
|
let cacheDir;
|
|
170
170
|
try {
|
|
171
|
-
const localDir = join(__dirname, '..', '
|
|
171
|
+
const localDir = join(__dirname, '..', 'bin');
|
|
172
172
|
mkdirSync(localDir, { recursive: true });
|
|
173
173
|
accessSync(localDir, constants.W_OK);
|
|
174
174
|
cacheDir = localDir;
|
package/package.json
CHANGED
package/sdk.d.ts
CHANGED
|
@@ -14165,6 +14165,47 @@ export interface LambdaFunctionProps {
|
|
|
14165
14165
|
tags?: CloudformationTag[];
|
|
14166
14166
|
destinations?: LambdaFunctionDestinations;
|
|
14167
14167
|
logging?: LambdaFunctionLogging1;
|
|
14168
|
+
/**
|
|
14169
|
+
* #### Configures the provisioned concurrency for the function.
|
|
14170
|
+
*
|
|
14171
|
+
* ---
|
|
14172
|
+
*
|
|
14173
|
+
* This is the number of pre-initialized execution environments allocated to your function.
|
|
14174
|
+
* These execution environments are ready to respond immediately to incoming function requests.
|
|
14175
|
+
* Provisioned concurrency is useful for reducing cold start latencies for functions and designed to make functions available with double-digit millisecond response times.
|
|
14176
|
+
* Generally, interactive workloads benefit the most from the feature.
|
|
14177
|
+
* Those are applications with users initiating requests, such as web and mobile applications, and are the most sensitive to latency.
|
|
14178
|
+
* Asynchronous workloads, such as data processing pipelines, are often less latency sensitive and so do not usually need provisioned concurrency.
|
|
14179
|
+
* Configuring provisioned concurrency incurs additional charges to your AWS account.
|
|
14180
|
+
*/
|
|
14181
|
+
provisionedConcurrency?: number;
|
|
14182
|
+
/**
|
|
14183
|
+
* #### Configures the reserved concurrency for the function.
|
|
14184
|
+
*
|
|
14185
|
+
* ---
|
|
14186
|
+
*
|
|
14187
|
+
* This sets both the maximum and minimum number of concurrent instances allocated to your function.
|
|
14188
|
+
* When a function has reserved concurrency, no other function can use that concurrency.
|
|
14189
|
+
* Reserved concurrency is useful for ensuring that your most critical functions always have enough concurrency to handle incoming requests.
|
|
14190
|
+
* Additionally, reserved concurrency can be used for limiting concurrency to prevent overwhelming downstream resources, like database connections.
|
|
14191
|
+
* Reserved concurrency acts as both a lower and upper bound - it reserves the specified capacity exclusively for your function while also preventing it from scaling beyond that limit.
|
|
14192
|
+
* Configuring reserved concurrency for a function incurs no additional charges.
|
|
14193
|
+
*/
|
|
14194
|
+
reservedConcurrency?: number;
|
|
14195
|
+
/**
|
|
14196
|
+
* #### A list of layers to add to the function.
|
|
14197
|
+
*
|
|
14198
|
+
* ---
|
|
14199
|
+
*
|
|
14200
|
+
* A Lambda layer is a .zip file archive that contains supplementary code or data.
|
|
14201
|
+
* Layers usually contain library dependencies, a custom runtime, or configuration files.
|
|
14202
|
+
*
|
|
14203
|
+
* Using layers:
|
|
14204
|
+
* 1. Package your layer content. This means creating a .zip file archive. For more information, see [Packaging your layer content](https://docs.aws.amazon.com/lambda/latest/dg/packaging-layers.html).
|
|
14205
|
+
* 2. Create the layer in Lambda. For more information, see [Creating and deleting layers in Lambda](https://docs.aws.amazon.com/lambda/latest/dg/creating-deleting-layers.html)
|
|
14206
|
+
* 3. Get the layer ARN and put it in the `layers` property of the function.
|
|
14207
|
+
*/
|
|
14208
|
+
layers?: string[];
|
|
14168
14209
|
deployment?: LambdaDeploymentConfig;
|
|
14169
14210
|
/**
|
|
14170
14211
|
* #### A list of additional alarms to associate with this function.
|