@jaypie/constructs 1.1.44 → 1.1.45

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.
@@ -11,7 +11,6 @@ export interface JaypieLambdaProps {
11
11
  allowPublicSubnet?: boolean;
12
12
  architecture?: lambda.Architecture;
13
13
  code: lambda.Code | string;
14
- codeSigningConfig?: lambda.ICodeSigningConfig;
15
14
  datadogApiKeyArn?: string;
16
15
  deadLetterQueue?: import("aws-cdk-lib/aws-sqs").IQueue;
17
16
  deadLetterQueueEnabled?: boolean;
@@ -20,7 +19,6 @@ export interface JaypieLambdaProps {
20
19
  environment?: {
21
20
  [key: string]: string;
22
21
  };
23
- environmentEncryption?: import("aws-cdk-lib/aws-kms").IKey;
24
22
  envSecrets?: {
25
23
  [key: string]: secretsmanager.ISecret;
26
24
  };
@@ -75,6 +73,7 @@ export declare class JaypieLambda extends Construct implements lambda.IFunction
75
73
  get latestVersion(): lambda.IVersion;
76
74
  get permissionsNode(): import("constructs").Node;
77
75
  get resourceArnsForGrantInvoke(): string[];
76
+ get functionRef(): lambda.FunctionRef;
78
77
  addEventSource(source: lambda.IEventSource): void;
79
78
  addEventSourceMapping(id: string, options: lambda.EventSourceMappingOptions): lambda.EventSourceMapping;
80
79
  addFunctionUrl(options?: lambda.FunctionUrlOptions): lambda.FunctionUrl;
@@ -27,6 +27,7 @@ export declare class JaypieQueuedLambda extends Construct implements lambda.IFun
27
27
  get latestVersion(): lambda.IVersion;
28
28
  get permissionsNode(): import("constructs").Node;
29
29
  get resourceArnsForGrantInvoke(): string[];
30
+ get functionRef(): lambda.FunctionRef;
30
31
  addEventSource(source: lambda.IEventSource): void;
31
32
  addEventSourceMapping(id: string, options: lambda.EventSourceMappingOptions): lambda.EventSourceMapping;
32
33
  addFunctionUrl(options?: lambda.FunctionUrlOptions): lambda.FunctionUrl;
package/dist/esm/index.js CHANGED
@@ -446,7 +446,7 @@ class JaypieAppStack extends JaypieStack {
446
446
  class JaypieLambda extends Construct {
447
447
  constructor(scope, id, props) {
448
448
  super(scope, id);
449
- const { allowAllOutbound, allowPublicSubnet, architecture = lambda.Architecture.X86_64, code, codeSigningConfig, datadogApiKeyArn, deadLetterQueue, deadLetterQueueEnabled, deadLetterTopic, description, environment: initialEnvironment = {}, environmentEncryption, envSecrets = {}, ephemeralStorageSize, filesystem, handler = "index.handler", initialPolicy, layers = [], logRetention = CDK$2.LAMBDA.LOG_RETENTION, logRetentionRole, logRetentionRetryOptions, 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;
449
+ const { allowAllOutbound, allowPublicSubnet, architecture = lambda.Architecture.X86_64, code, datadogApiKeyArn, deadLetterQueue, deadLetterQueueEnabled, deadLetterTopic, description, environment: initialEnvironment = {}, envSecrets = {}, ephemeralStorageSize, filesystem, handler = "index.handler", initialPolicy, layers = [], logRetention = CDK$2.LAMBDA.LOG_RETENTION, logRetentionRole, logRetentionRetryOptions, 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;
450
450
  // Get base environment with defaults
451
451
  const environment = jaypieLambdaEnv({ initialEnvironment });
452
452
  const codeAsset = typeof code === "string" ? lambda.Code.fromAsset(code) : code;
@@ -477,7 +477,6 @@ class JaypieLambda extends Construct {
477
477
  allowPublicSubnet,
478
478
  architecture,
479
479
  code: codeAsset,
480
- codeSigningConfig,
481
480
  deadLetterQueue,
482
481
  deadLetterQueueEnabled,
483
482
  deadLetterTopic,
@@ -487,7 +486,6 @@ class JaypieLambda extends Construct {
487
486
  ...secretsEnvironment,
488
487
  ...jaypieSecretsEnvironment,
489
488
  },
490
- environmentEncryption,
491
489
  ephemeralStorageSize,
492
490
  filesystem,
493
491
  handler,
@@ -592,6 +590,9 @@ class JaypieLambda extends Construct {
592
590
  get resourceArnsForGrantInvoke() {
593
591
  return this._reference.resourceArnsForGrantInvoke;
594
592
  }
593
+ get functionRef() {
594
+ return this._reference.functionRef;
595
+ }
595
596
  addEventSource(source) {
596
597
  this._reference.addEventSource(source);
597
598
  }
@@ -660,7 +661,7 @@ class JaypieLambda extends Construct {
660
661
  class JaypieQueuedLambda extends Construct {
661
662
  constructor(scope, id, props) {
662
663
  super(scope, id);
663
- const { allowAllOutbound, allowPublicSubnet, architecture, batchSize = 1, code, codeSigningConfig, datadogApiKeyArn, deadLetterQueue, deadLetterQueueEnabled, deadLetterTopic, description, environment = {}, environmentEncryption, envSecrets = {}, ephemeralStorageSize, fifo = true, filesystem, handler = "index.handler", initialPolicy, layers = [], logRetention = CDK$2.LAMBDA.LOG_RETENTION, logRetentionRole, logRetentionRetryOptions, 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;
664
+ const { allowAllOutbound, allowPublicSubnet, architecture, batchSize = 1, code, datadogApiKeyArn, deadLetterQueue, deadLetterQueueEnabled, deadLetterTopic, description, environment = {}, envSecrets = {}, ephemeralStorageSize, fifo = true, filesystem, handler = "index.handler", initialPolicy, layers = [], logRetention = CDK$2.LAMBDA.LOG_RETENTION, logRetentionRole, logRetentionRetryOptions, 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;
664
665
  // Create SQS Queue
665
666
  this._queue = new sqs.Queue(this, "Queue", {
666
667
  fifo,
@@ -680,7 +681,6 @@ class JaypieQueuedLambda extends Construct {
680
681
  allowPublicSubnet,
681
682
  architecture,
682
683
  code,
683
- codeSigningConfig,
684
684
  datadogApiKeyArn,
685
685
  deadLetterQueue,
686
686
  deadLetterQueueEnabled,
@@ -690,7 +690,6 @@ class JaypieQueuedLambda extends Construct {
690
690
  ...environment,
691
691
  CDK_ENV_QUEUE_URL: this._queue.queueUrl,
692
692
  },
693
- environmentEncryption,
694
693
  envSecrets,
695
694
  ephemeralStorageSize,
696
695
  filesystem,
@@ -765,6 +764,9 @@ class JaypieQueuedLambda extends Construct {
765
764
  get resourceArnsForGrantInvoke() {
766
765
  return this._lambdaConstruct.resourceArnsForGrantInvoke;
767
766
  }
767
+ get functionRef() {
768
+ return this._lambdaConstruct.functionRef;
769
+ }
768
770
  addEventSource(source) {
769
771
  this._lambdaConstruct.addEventSource(source);
770
772
  }