@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/esm/index.js CHANGED
@@ -1557,7 +1557,7 @@ class JaypieQueuedLambda extends Construct {
1557
1557
  super(scope, id);
1558
1558
  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.Runtime("nodejs24.x", lambda.RuntimeFamily.NODEJS, {
1559
1559
  supportsInlineCode: true,
1560
- }), runtimeManagementMode, secrets = [], securityGroups, timeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), tracing, vendorTag, visibilityTimeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), vpc, vpcSubnets, } = props;
1560
+ }), runtimeManagementMode, secrets = [], securityGroups, tables = [], timeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), tracing, vendorTag, visibilityTimeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), vpc, vpcSubnets, } = props;
1561
1561
  // Create SQS Queue
1562
1562
  this._queue = new sqs.Queue(this, "Queue", {
1563
1563
  fifo,
@@ -1582,10 +1582,7 @@ class JaypieQueuedLambda extends Construct {
1582
1582
  deadLetterQueueEnabled,
1583
1583
  deadLetterTopic,
1584
1584
  description,
1585
- environment: {
1586
- ...environment,
1587
- CDK_ENV_QUEUE_URL: this._queue.queueUrl,
1588
- },
1585
+ environment,
1589
1586
  envSecrets,
1590
1587
  ephemeralStorageSize,
1591
1588
  filesystem,
@@ -1608,12 +1605,16 @@ class JaypieQueuedLambda extends Construct {
1608
1605
  runtimeManagementMode,
1609
1606
  secrets,
1610
1607
  securityGroups,
1608
+ tables,
1611
1609
  timeout,
1612
1610
  tracing,
1613
1611
  vendorTag,
1614
1612
  vpc,
1615
1613
  vpcSubnets,
1616
1614
  });
1615
+ // Add queue URL to Lambda environment after construction
1616
+ // (environment prop is passed through to JaypieLambda which handles array/object resolution)
1617
+ this._lambdaConstruct.addEnvironment("CDK_ENV_QUEUE_URL", this._queue.queueUrl);
1617
1618
  // Set up queue and lambda integration
1618
1619
  this._queue.grantConsumeMessages(this._lambdaConstruct);
1619
1620
  this._queue.grantSendMessages(this._lambdaConstruct);