@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/cjs/index.cjs
CHANGED
|
@@ -684,12 +684,15 @@ class JaypieLambda extends constructs.Construct {
|
|
|
684
684
|
applyRemovalPolicy(policy) {
|
|
685
685
|
this._reference.applyRemovalPolicy(policy);
|
|
686
686
|
}
|
|
687
|
+
addEnvironment(key, value) {
|
|
688
|
+
this._lambda.addEnvironment(key, value);
|
|
689
|
+
}
|
|
687
690
|
}
|
|
688
691
|
|
|
689
692
|
class JaypieQueuedLambda extends constructs.Construct {
|
|
690
693
|
constructor(scope, id, props) {
|
|
691
694
|
super(scope, id);
|
|
692
|
-
const { batchSize = 1, code, environment = {}, envSecrets = {}, fifo = true, handler = "index.handler", layers = [], logRetention = cdk.CDK.LAMBDA.LOG_RETENTION, memorySize = cdk.CDK.LAMBDA.MEMORY_SIZE, paramsAndSecrets, reservedConcurrentExecutions, roleTag, runtime = lambda__namespace.Runtime.NODEJS_22_X, secrets = [], timeout = cdk$1.Duration.seconds(cdk.CDK.DURATION.LAMBDA_WORKER), vendorTag, visibilityTimeout = cdk$1.Duration.seconds(cdk.CDK.DURATION.LAMBDA_WORKER), } = props;
|
|
695
|
+
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.CDK.LAMBDA.LOG_RETENTION, logRetentionRole, logRetentionRetryOptions, maxEventAge, memorySize = cdk.CDK.LAMBDA.MEMORY_SIZE, paramsAndSecrets, paramsAndSecretsOptions, profiling, profilingGroup, provisionedConcurrentExecutions, reservedConcurrentExecutions, retryAttempts, roleTag, runtime = lambda__namespace.Runtime.NODEJS_22_X, runtimeManagementMode, secrets = [], securityGroups, timeout = cdk$1.Duration.seconds(cdk.CDK.DURATION.LAMBDA_WORKER), tracing, vendorTag, visibilityTimeout = cdk$1.Duration.seconds(cdk.CDK.DURATION.LAMBDA_WORKER), vpc, vpcSubnets, } = props;
|
|
693
696
|
// Create SQS Queue
|
|
694
697
|
this._queue = new sqs__namespace.Queue(this, "Queue", {
|
|
695
698
|
fifo,
|
|
@@ -705,23 +708,49 @@ class JaypieQueuedLambda extends constructs.Construct {
|
|
|
705
708
|
}
|
|
706
709
|
// Create Lambda with JaypieLambda
|
|
707
710
|
this._lambdaConstruct = new JaypieLambda(this, "Function", {
|
|
711
|
+
allowAllOutbound,
|
|
712
|
+
allowPublicSubnet,
|
|
713
|
+
architecture,
|
|
708
714
|
code,
|
|
715
|
+
codeSigningConfig,
|
|
716
|
+
datadogApiKeyArn,
|
|
717
|
+
deadLetterQueue,
|
|
718
|
+
deadLetterQueueEnabled,
|
|
719
|
+
deadLetterTopic,
|
|
720
|
+
description,
|
|
709
721
|
environment: {
|
|
710
722
|
...environment,
|
|
711
723
|
CDK_ENV_QUEUE_URL: this._queue.queueUrl,
|
|
712
724
|
},
|
|
725
|
+
environmentEncryption,
|
|
713
726
|
envSecrets,
|
|
727
|
+
ephemeralStorageSize,
|
|
728
|
+
filesystem,
|
|
714
729
|
handler,
|
|
730
|
+
initialPolicy,
|
|
715
731
|
layers,
|
|
716
732
|
logRetention,
|
|
733
|
+
logRetentionRole,
|
|
734
|
+
logRetentionRetryOptions,
|
|
735
|
+
maxEventAge,
|
|
717
736
|
memorySize,
|
|
718
737
|
paramsAndSecrets,
|
|
738
|
+
paramsAndSecretsOptions,
|
|
739
|
+
profiling,
|
|
740
|
+
profilingGroup,
|
|
741
|
+
provisionedConcurrentExecutions,
|
|
719
742
|
reservedConcurrentExecutions,
|
|
743
|
+
retryAttempts,
|
|
720
744
|
roleTag,
|
|
721
745
|
runtime,
|
|
746
|
+
runtimeManagementMode,
|
|
722
747
|
secrets,
|
|
748
|
+
securityGroups,
|
|
723
749
|
timeout,
|
|
750
|
+
tracing,
|
|
724
751
|
vendorTag,
|
|
752
|
+
vpc,
|
|
753
|
+
vpcSubnets,
|
|
725
754
|
});
|
|
726
755
|
// Set up queue and lambda integration
|
|
727
756
|
this._queue.grantConsumeMessages(this._lambdaConstruct);
|
|
@@ -737,9 +766,6 @@ class JaypieQueuedLambda extends constructs.Construct {
|
|
|
737
766
|
get lambda() {
|
|
738
767
|
return this._lambdaConstruct.lambda;
|
|
739
768
|
}
|
|
740
|
-
get code() {
|
|
741
|
-
return this._lambdaConstruct.code;
|
|
742
|
-
}
|
|
743
769
|
// IFunction implementation
|
|
744
770
|
get functionArn() {
|
|
745
771
|
return this._lambdaConstruct.functionArn;
|
|
@@ -892,6 +918,9 @@ class JaypieQueuedLambda extends constructs.Construct {
|
|
|
892
918
|
metricSentMessageSize(props) {
|
|
893
919
|
return this._queue.metricSentMessageSize(props);
|
|
894
920
|
}
|
|
921
|
+
addEnvironment(key, value) {
|
|
922
|
+
this._lambdaConstruct.addEnvironment(key, value);
|
|
923
|
+
}
|
|
895
924
|
}
|
|
896
925
|
|
|
897
926
|
class JaypieBucketQueuedLambda extends JaypieQueuedLambda {
|