@jaypie/constructs 1.2.36 → 1.2.38
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/cjs/index.cjs +6 -5
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +6 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1593,7 +1593,7 @@ class JaypieQueuedLambda extends constructs.Construct {
|
|
|
1593
1593
|
super(scope, id);
|
|
1594
1594
|
const { allowAllOutbound, allowPublicSubnet, architecture, batchSize = 1, code, datadogApiKeyArn, deadLetterQueue, deadLetterQueueEnabled, deadLetterTopic, description, environment = {}, envSecrets = {}, ephemeralStorageSize, fifo = true, filesystem, handler = "index.handler", initialPolicy, layers = [], logGroup, logRetention = CDK$2.LAMBDA.LOG_RETENTION, maxEventAge, memorySize = CDK$2.LAMBDA.MEMORY_SIZE, paramsAndSecrets, paramsAndSecretsOptions, profiling, profilingGroup, provisionedConcurrentExecutions, reservedConcurrentExecutions, retryAttempts, roleTag, runtime = new lambda__namespace.Runtime("nodejs24.x", lambda__namespace.RuntimeFamily.NODEJS, {
|
|
1595
1595
|
supportsInlineCode: true,
|
|
1596
|
-
}), runtimeManagementMode, secrets = [], securityGroups, timeout = cdk.Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), tracing, vendorTag, visibilityTimeout = cdk.Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), vpc, vpcSubnets, } = props;
|
|
1596
|
+
}), runtimeManagementMode, secrets = [], securityGroups, tables = [], timeout = cdk.Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), tracing, vendorTag, visibilityTimeout = cdk.Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), vpc, vpcSubnets, } = props;
|
|
1597
1597
|
// Create SQS Queue
|
|
1598
1598
|
this._queue = new sqs__namespace.Queue(this, "Queue", {
|
|
1599
1599
|
fifo,
|
|
@@ -1618,10 +1618,7 @@ class JaypieQueuedLambda extends constructs.Construct {
|
|
|
1618
1618
|
deadLetterQueueEnabled,
|
|
1619
1619
|
deadLetterTopic,
|
|
1620
1620
|
description,
|
|
1621
|
-
environment
|
|
1622
|
-
...environment,
|
|
1623
|
-
CDK_ENV_QUEUE_URL: this._queue.queueUrl,
|
|
1624
|
-
},
|
|
1621
|
+
environment,
|
|
1625
1622
|
envSecrets,
|
|
1626
1623
|
ephemeralStorageSize,
|
|
1627
1624
|
filesystem,
|
|
@@ -1644,12 +1641,16 @@ class JaypieQueuedLambda extends constructs.Construct {
|
|
|
1644
1641
|
runtimeManagementMode,
|
|
1645
1642
|
secrets,
|
|
1646
1643
|
securityGroups,
|
|
1644
|
+
tables,
|
|
1647
1645
|
timeout,
|
|
1648
1646
|
tracing,
|
|
1649
1647
|
vendorTag,
|
|
1650
1648
|
vpc,
|
|
1651
1649
|
vpcSubnets,
|
|
1652
1650
|
});
|
|
1651
|
+
// Add queue URL to Lambda environment after construction
|
|
1652
|
+
// (environment prop is passed through to JaypieLambda which handles array/object resolution)
|
|
1653
|
+
this._lambdaConstruct.addEnvironment("CDK_ENV_QUEUE_URL", this._queue.queueUrl);
|
|
1653
1654
|
// Set up queue and lambda integration
|
|
1654
1655
|
this._queue.grantConsumeMessages(this._lambdaConstruct);
|
|
1655
1656
|
this._queue.grantSendMessages(this._lambdaConstruct);
|