@jaypie/constructs 1.1.29 → 1.1.30
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/dist/esm/index.js
CHANGED
|
@@ -273,7 +273,7 @@ class JaypieAppStack extends JaypieStack {
|
|
|
273
273
|
class JaypieLambda extends Construct {
|
|
274
274
|
constructor(scope, id, props) {
|
|
275
275
|
super(scope, id);
|
|
276
|
-
const { code, datadogApiKeyArn, environment: initialEnvironment = {}, envSecrets = {}, handler = "index.handler", layers = [], logRetention = CDK$2.LAMBDA.LOG_RETENTION, memorySize = CDK$2.LAMBDA.MEMORY_SIZE, paramsAndSecrets, paramsAndSecretsOptions, reservedConcurrentExecutions, roleTag = CDK$2.ROLE.PROCESSING, runtime = lambda.Runtime.NODEJS_22_X, secrets = [], timeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), vendorTag, } = props;
|
|
276
|
+
const { code, datadogApiKeyArn, environment: initialEnvironment = {}, envSecrets = {}, handler = "index.handler", layers = [], logRetention = CDK$2.LAMBDA.LOG_RETENTION, memorySize = CDK$2.LAMBDA.MEMORY_SIZE, paramsAndSecrets, paramsAndSecretsOptions, provisionedConcurrentExecutions, reservedConcurrentExecutions, roleTag = CDK$2.ROLE.PROCESSING, runtime = lambda.Runtime.NODEJS_22_X, secrets = [], timeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), vendorTag, } = props;
|
|
277
277
|
// Create a mutable copy of the environment variables
|
|
278
278
|
let environment = { ...initialEnvironment };
|
|
279
279
|
// Default environment variables from process.env if present
|
|
@@ -389,6 +389,14 @@ class JaypieLambda extends Construct {
|
|
|
389
389
|
const datadogApiKey = secretsmanager.Secret.fromSecretCompleteArn(this, "DatadogApiKeyGrant", resolvedDatadogApiKeyArn);
|
|
390
390
|
datadogApiKey.grantRead(this._lambda);
|
|
391
391
|
}
|
|
392
|
+
// Configure provisioned concurrency if specified
|
|
393
|
+
if (provisionedConcurrentExecutions !== undefined) {
|
|
394
|
+
new lambda.Alias(this, "ProvisionedAlias", {
|
|
395
|
+
aliasName: "provisioned",
|
|
396
|
+
version: this._lambda.currentVersion,
|
|
397
|
+
provisionedConcurrentExecutions,
|
|
398
|
+
});
|
|
399
|
+
}
|
|
392
400
|
if (roleTag) {
|
|
393
401
|
Tags.of(this._lambda).add(CDK$2.TAG.ROLE, roleTag);
|
|
394
402
|
}
|