@jaypie/constructs 1.1.43 → 1.1.44
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/JaypieLambda.d.ts +1 -0
- package/dist/cjs/JaypieQueuedLambda.d.ts +1 -1
- package/dist/cjs/index.cjs +33 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/JaypieLambda.d.ts +1 -0
- package/dist/esm/JaypieQueuedLambda.d.ts +1 -1
- package/dist/esm/index.js +33 -4
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -17,7 +17,6 @@ export declare class JaypieQueuedLambda extends Construct implements lambda.IFun
|
|
|
17
17
|
constructor(scope: Construct, id: string, props: JaypieQueuedLambdaProps);
|
|
18
18
|
get queue(): sqs.Queue;
|
|
19
19
|
get lambda(): lambda.Function;
|
|
20
|
-
get code(): lambda.Code;
|
|
21
20
|
get functionArn(): string;
|
|
22
21
|
get functionName(): string;
|
|
23
22
|
get grantPrincipal(): import("aws-cdk-lib/aws-iam").IPrincipal;
|
|
@@ -69,4 +68,5 @@ export declare class JaypieQueuedLambda extends Construct implements lambda.IFun
|
|
|
69
68
|
metricNumberOfMessagesReceived(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
70
69
|
metricNumberOfMessagesSent(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
71
70
|
metricSentMessageSize(props?: cloudwatch.MetricOptions): cloudwatch.Metric;
|
|
71
|
+
addEnvironment(key: string, value: string): void;
|
|
72
72
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -652,12 +652,15 @@ class JaypieLambda extends Construct {
|
|
|
652
652
|
applyRemovalPolicy(policy) {
|
|
653
653
|
this._reference.applyRemovalPolicy(policy);
|
|
654
654
|
}
|
|
655
|
+
addEnvironment(key, value) {
|
|
656
|
+
this._lambda.addEnvironment(key, value);
|
|
657
|
+
}
|
|
655
658
|
}
|
|
656
659
|
|
|
657
660
|
class JaypieQueuedLambda extends Construct {
|
|
658
661
|
constructor(scope, id, props) {
|
|
659
662
|
super(scope, id);
|
|
660
|
-
const { batchSize = 1, code, environment = {}, envSecrets = {}, fifo = true, handler = "index.handler", layers = [], logRetention = CDK$2.LAMBDA.LOG_RETENTION, memorySize = CDK$2.LAMBDA.MEMORY_SIZE, paramsAndSecrets, reservedConcurrentExecutions, roleTag, runtime = lambda.Runtime.NODEJS_22_X, secrets = [], timeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), vendorTag, visibilityTimeout = Duration.seconds(CDK$2.DURATION.LAMBDA_WORKER), } = props;
|
|
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;
|
|
661
664
|
// Create SQS Queue
|
|
662
665
|
this._queue = new sqs.Queue(this, "Queue", {
|
|
663
666
|
fifo,
|
|
@@ -673,23 +676,49 @@ class JaypieQueuedLambda extends Construct {
|
|
|
673
676
|
}
|
|
674
677
|
// Create Lambda with JaypieLambda
|
|
675
678
|
this._lambdaConstruct = new JaypieLambda(this, "Function", {
|
|
679
|
+
allowAllOutbound,
|
|
680
|
+
allowPublicSubnet,
|
|
681
|
+
architecture,
|
|
676
682
|
code,
|
|
683
|
+
codeSigningConfig,
|
|
684
|
+
datadogApiKeyArn,
|
|
685
|
+
deadLetterQueue,
|
|
686
|
+
deadLetterQueueEnabled,
|
|
687
|
+
deadLetterTopic,
|
|
688
|
+
description,
|
|
677
689
|
environment: {
|
|
678
690
|
...environment,
|
|
679
691
|
CDK_ENV_QUEUE_URL: this._queue.queueUrl,
|
|
680
692
|
},
|
|
693
|
+
environmentEncryption,
|
|
681
694
|
envSecrets,
|
|
695
|
+
ephemeralStorageSize,
|
|
696
|
+
filesystem,
|
|
682
697
|
handler,
|
|
698
|
+
initialPolicy,
|
|
683
699
|
layers,
|
|
684
700
|
logRetention,
|
|
701
|
+
logRetentionRole,
|
|
702
|
+
logRetentionRetryOptions,
|
|
703
|
+
maxEventAge,
|
|
685
704
|
memorySize,
|
|
686
705
|
paramsAndSecrets,
|
|
706
|
+
paramsAndSecretsOptions,
|
|
707
|
+
profiling,
|
|
708
|
+
profilingGroup,
|
|
709
|
+
provisionedConcurrentExecutions,
|
|
687
710
|
reservedConcurrentExecutions,
|
|
711
|
+
retryAttempts,
|
|
688
712
|
roleTag,
|
|
689
713
|
runtime,
|
|
714
|
+
runtimeManagementMode,
|
|
690
715
|
secrets,
|
|
716
|
+
securityGroups,
|
|
691
717
|
timeout,
|
|
718
|
+
tracing,
|
|
692
719
|
vendorTag,
|
|
720
|
+
vpc,
|
|
721
|
+
vpcSubnets,
|
|
693
722
|
});
|
|
694
723
|
// Set up queue and lambda integration
|
|
695
724
|
this._queue.grantConsumeMessages(this._lambdaConstruct);
|
|
@@ -705,9 +734,6 @@ class JaypieQueuedLambda extends Construct {
|
|
|
705
734
|
get lambda() {
|
|
706
735
|
return this._lambdaConstruct.lambda;
|
|
707
736
|
}
|
|
708
|
-
get code() {
|
|
709
|
-
return this._lambdaConstruct.code;
|
|
710
|
-
}
|
|
711
737
|
// IFunction implementation
|
|
712
738
|
get functionArn() {
|
|
713
739
|
return this._lambdaConstruct.functionArn;
|
|
@@ -860,6 +886,9 @@ class JaypieQueuedLambda extends Construct {
|
|
|
860
886
|
metricSentMessageSize(props) {
|
|
861
887
|
return this._queue.metricSentMessageSize(props);
|
|
862
888
|
}
|
|
889
|
+
addEnvironment(key, value) {
|
|
890
|
+
this._lambdaConstruct.addEnvironment(key, value);
|
|
891
|
+
}
|
|
863
892
|
}
|
|
864
893
|
|
|
865
894
|
class JaypieBucketQueuedLambda extends JaypieQueuedLambda {
|