@jaypie/constructs 1.1.63 → 1.1.64

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.
@@ -36,5 +36,6 @@ export declare class JaypieEnvSecret extends Construct implements ISecret {
36
36
  addToResourcePolicy(statement: PolicyStatement): AddToResourcePolicyResult;
37
37
  denyAccountRootDelete(): void;
38
38
  attach(target: ISecretAttachmentTarget): ISecret;
39
+ cfnDynamicReferenceKey(options?: Parameters<ISecret["cfnDynamicReferenceKey"]>[0]): string;
39
40
  get envKey(): string | undefined;
40
41
  }
@@ -50,6 +50,10 @@ export declare class JaypieQueuedLambda extends Construct implements lambda.IFun
50
50
  };
51
51
  get stack(): Stack;
52
52
  applyRemovalPolicy(policy: RemovalPolicy): void;
53
+ get queueRef(): {
54
+ queueUrl: string;
55
+ queueArn: string;
56
+ };
53
57
  get fifo(): boolean;
54
58
  get queueArn(): string;
55
59
  get queueName(): string;
package/dist/esm/index.js CHANGED
@@ -870,7 +870,9 @@ class JaypieAppStack extends JaypieStack {
870
870
  class JaypieLambda extends Construct {
871
871
  constructor(scope, id, props) {
872
872
  super(scope, id);
873
- const { allowAllOutbound, allowPublicSubnet, architecture = lambda.Architecture.X86_64, code, datadogApiKeyArn, deadLetterQueue, deadLetterQueueEnabled, deadLetterTopic, description, environment: initialEnvironment = {}, envSecrets = {}, ephemeralStorageSize, 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 = CDK$2.ROLE.PROCESSING, runtime = lambda.Runtime.NODEJS_22_X, runtimeManagementMode, secrets = [], securityGroups, timeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), tracing, vendorTag, vpc, vpcSubnets, } = props;
873
+ const { allowAllOutbound, allowPublicSubnet, architecture = lambda.Architecture.X86_64, code, datadogApiKeyArn, deadLetterQueue, deadLetterQueueEnabled, deadLetterTopic, description, environment: initialEnvironment = {}, envSecrets = {}, ephemeralStorageSize, 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 = CDK$2.ROLE.PROCESSING, runtime = new lambda.Runtime("nodejs24.x", lambda.RuntimeFamily.NODEJS, {
874
+ supportsInlineCode: true,
875
+ }), runtimeManagementMode, secrets = [], securityGroups, timeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), tracing, vendorTag, vpc, vpcSubnets, } = props;
874
876
  // Get base environment with defaults
875
877
  const environment = jaypieLambdaEnv({ initialEnvironment });
876
878
  const codeAsset = typeof code === "string" ? lambda.Code.fromAsset(code) : code;
@@ -1093,7 +1095,9 @@ class JaypieLambda extends Construct {
1093
1095
  class JaypieQueuedLambda extends Construct {
1094
1096
  constructor(scope, id, props) {
1095
1097
  super(scope, id);
1096
- 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 = lambda.Runtime.NODEJS_22_X, runtimeManagementMode, secrets = [], securityGroups, timeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), tracing, vendorTag, visibilityTimeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), vpc, vpcSubnets, } = props;
1098
+ 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, {
1099
+ supportsInlineCode: true,
1100
+ }), runtimeManagementMode, secrets = [], securityGroups, timeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), tracing, vendorTag, visibilityTimeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), vpc, vpcSubnets, } = props;
1097
1101
  // Create SQS Queue
1098
1102
  this._queue = new sqs.Queue(this, "Queue", {
1099
1103
  fifo,
@@ -1261,6 +1265,12 @@ class JaypieQueuedLambda extends Construct {
1261
1265
  this._queue.applyRemovalPolicy(policy);
1262
1266
  }
1263
1267
  // IQueue implementation
1268
+ get queueRef() {
1269
+ return {
1270
+ queueUrl: this._queue.queueUrl,
1271
+ queueArn: this._queue.queueArn,
1272
+ };
1273
+ }
1264
1274
  get fifo() {
1265
1275
  return this._queue.fifo;
1266
1276
  }
@@ -1981,6 +1991,9 @@ class JaypieEnvSecret extends Construct {
1981
1991
  attach(target) {
1982
1992
  return this._secret.attach(target);
1983
1993
  }
1994
+ cfnDynamicReferenceKey(options) {
1995
+ return this._secret.cfnDynamicReferenceKey(options);
1996
+ }
1984
1997
  get envKey() {
1985
1998
  return this._envKey;
1986
1999
  }