@aws-solutions-constructs/aws-eventbridge-lambda 2.85.1 → 2.85.3

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/.jsii CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "@aws-solutions-constructs/core": "2.85.1",
11
+ "@aws-solutions-constructs/core": "2.85.3",
12
12
  "aws-cdk-lib": "^2.193.0",
13
13
  "constructs": "^10.0.0"
14
14
  },
@@ -3993,7 +3993,7 @@
3993
3993
  },
3994
3994
  "name": "@aws-solutions-constructs/aws-eventbridge-lambda",
3995
3995
  "readme": {
3996
- "markdown": "# aws-eventbridge-lambda module\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![Stability: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)\n\n---\n<!--END STABILITY BANNER-->\n\n| **Reference Documentation**:| <span style=\"font-weight: normal\">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|\n|:-------------|:-------------|\n<div style=\"height:8px\"></div>\n\n| **Language** | **Package** |\n|:-------------|-----------------|\n|![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_eventbridge_lambda`|\n|![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-eventbridge-lambda`|\n|![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.eventbridgelambda`|\n\n## Overview\nThis AWS Solutions Construct implements an AWS EventBridge rule and an AWS Lambda function.\n\nHere is a minimal deployable pattern definition:\n\nTypescript\n``` typescript\nimport { Construct } from 'constructs';\nimport { Stack, StackProps, Duration } from 'aws-cdk-lib';\nimport { EventbridgeToLambdaProps, EventbridgeToLambda } from '@aws-solutions-constructs/aws-eventbridge-lambda';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\nimport * as events from 'aws-cdk-lib/aws-events';\n\nconst constructProps: EventbridgeToLambdaProps = {\n lambdaFunctionProps: {\n code: lambda.Code.fromAsset(`lambda`),\n runtime: lambda.Runtime.NODEJS_20_X,\n handler: 'index.handler'\n },\n eventRuleProps: {\n schedule: events.Schedule.rate(Duration.minutes(5))\n }\n};\n\nnew EventbridgeToLambda(this, 'test-eventbridge-lambda', constructProps);\n```\n\nPython\n``` python\nfrom aws_solutions_constructs.aws_eventbridge_lambda import EventbridgeToLambda, EventbridgeToLambdaProps\nfrom aws_cdk import (\n aws_lambda as _lambda,\n aws_events as events,\n Duration,\n Stack\n)\nfrom constructs import Construct\n\nEventbridgeToLambda(self, 'test-eventbridge-lambda',\n lambda_function_props=_lambda.FunctionProps(\n code=_lambda.Code.from_asset('lambda'),\n runtime=_lambda.Runtime.PYTHON_3_11,\n handler='index.handler'\n ),\n event_rule_props=events.RuleProps(\n schedule=events.Schedule.rate(\n Duration.minutes(5))\n ))\n```\n\nJava\n``` java\nimport software.constructs.Construct;\n\nimport software.amazon.awscdk.Stack;\nimport software.amazon.awscdk.StackProps;\nimport software.amazon.awscdk.Duration;\nimport software.amazon.awscdk.services.events.*;\nimport software.amazon.awscdk.services.lambda.*;\nimport software.amazon.awscdk.services.lambda.Runtime;\nimport software.amazon.awsconstructs.services.eventbridgelambda.*;\n\nnew EventbridgeToLambda(this, \"test-eventbridge-lambda\",\n new EventbridgeToLambdaProps.Builder()\n .lambdaFunctionProps(new FunctionProps.Builder()\n .runtime(Runtime.NODEJS_20_X)\n .code(Code.fromAsset(\"lambda\"))\n .handler(\"index.handler\")\n .build())\n .eventRuleProps(new RuleProps.Builder()\n .schedule(Schedule.rate(Duration.minutes(5)))\n .build())\n .build());\n```\n\n## Pattern Construct Props\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|\n|lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|\n|existingEventBusInterface?|[`events.IEventBus`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.IEventBus.html)| Optional user-provided custom EventBus for construct to use. Providing both this and `eventBusProps` results an error.|\n|eventBusProps?|[`events.EventBusProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBusProps.html)|Optional user-provided properties to override the default properties when creating a custom EventBus. Setting this value to `{}` will create a custom EventBus using all default properties. If neither this nor `existingEventBusInterface` is provided the construct will use the `default` EventBus. Providing both this and `existingEventBusInterface` results an error.|\n|eventRuleProps|[`events.RuleProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.RuleProps.html)|User provided eventRuleProps to override the defaults|\n\n## Pattern Properties\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|eventBus?|[`events.IEventBus`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.IEventBus.html)|Returns the instance of events.IEventBus used by the construct|\n|eventsRule|[`events.Rule`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.Rule.html)|Returns an instance of events.Rule created by the construct|\n|lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of lambda.Function created by the construct|\n\n## Default settings\n\nOut of the box implementation of the Construct without any override will set the following defaults:\n\n### Amazon EventBridge Rule\n* Grant least privilege permissions to EventBridge rule to trigger the Lambda Function\n\n### AWS Lambda Function\n* Configure limited privilege access IAM role for Lambda function\n* Enable reusing connections with Keep-Alive for NodeJs Lambda function\n* Enable X-Ray Tracing\n* Set Environment Variables\n* AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)\n\n## Architecture\n![Architecture Diagram](architecture.png)\n\n***\n&copy; Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n"
3996
+ "markdown": "Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-eventbridge-lambda/README.adoc)\n"
3997
3997
  },
3998
3998
  "repository": {
3999
3999
  "directory": "source/patterns/@aws-solutions-constructs/aws-eventbridge-lambda",
@@ -4217,6 +4217,6 @@
4217
4217
  "symbolId": "lib/index:EventbridgeToLambdaProps"
4218
4218
  }
4219
4219
  },
4220
- "version": "2.85.1",
4221
- "fingerprint": "m4P+/UhhW5st0uK2A5O1L+ztHmy2+bmdNBXWJOdiom0="
4220
+ "version": "2.85.3",
4221
+ "fingerprint": "agBbqsNJT6j+xNDtAKaYnpc9TICslMto3DansOUorUo="
4222
4222
  }
package/README.adoc ADDED
@@ -0,0 +1,198 @@
1
+ //!!NODE_ROOT <section>
2
+ //== aws-eventbridge-lambda module
3
+
4
+ [.topic]
5
+ = aws-eventbridge-lambda
6
+ :info_doctype: section
7
+ :info_title: aws-eventbridge-lambda
8
+
9
+
10
+ image:https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge[Stability:Stable]
11
+
12
+ [width="100%",cols="<50%,<50%",options="header",]
13
+ |===
14
+ |*Reference Documentation*:
15
+ |https://docs.aws.amazon.com/solutions/latest/constructs/
16
+ |===
17
+
18
+ [width="100%",cols="<46%,54%",options="header",]
19
+ |===
20
+ |*Language* |*Package*
21
+ |image:https://docs.aws.amazon.com/cdk/api/latest/img/python32.png[Python
22
+ Logo] Python
23
+ |`aws_solutions_constructs.aws_eventbridge_lambda`
24
+
25
+ |image:https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png[Typescript
26
+ Logo] Typescript |`@aws-solutions-constructs/aws-eventbridge-lambda`
27
+
28
+ |image:https://docs.aws.amazon.com/cdk/api/latest/img/java32.png[Java
29
+ Logo] Java |`software.amazon.awsconstructs.services.eventbridgelambda`
30
+ |===
31
+
32
+ == Overview
33
+
34
+ This AWS Solutions Construct implements an AWS EventBridge rule and an
35
+ AWS Lambda function.
36
+
37
+ Here is a minimal deployable pattern definition:
38
+
39
+ ====
40
+ [role="tablist"]
41
+ Typescript::
42
+ +
43
+ [source,typescript]
44
+ ----
45
+ import { Construct } from 'constructs';
46
+ import { Stack, StackProps, Duration } from 'aws-cdk-lib';
47
+ import { EventbridgeToLambdaProps, EventbridgeToLambda } from '@aws-solutions-constructs/aws-eventbridge-lambda';
48
+ import * as lambda from 'aws-cdk-lib/aws-lambda';
49
+ import * as events from 'aws-cdk-lib/aws-events';
50
+
51
+ const constructProps: EventbridgeToLambdaProps = {
52
+ lambdaFunctionProps: {
53
+ code: lambda.Code.fromAsset(`lambda`),
54
+ runtime: lambda.Runtime.NODEJS_20_X,
55
+ handler: 'index.handler'
56
+ },
57
+ eventRuleProps: {
58
+ schedule: events.Schedule.rate(Duration.minutes(5))
59
+ }
60
+ };
61
+
62
+ new EventbridgeToLambda(this, 'test-eventbridge-lambda', constructProps);
63
+ ----
64
+
65
+ Python::
66
+ +
67
+ [source,python]
68
+ ----
69
+ from aws_solutions_constructs.aws_eventbridge_lambda import EventbridgeToLambda, EventbridgeToLambdaProps
70
+ from aws_cdk import (
71
+ aws_lambda as _lambda,
72
+ aws_events as events,
73
+ Duration,
74
+ Stack
75
+ )
76
+ from constructs import Construct
77
+
78
+ EventbridgeToLambda(self, 'test-eventbridge-lambda',
79
+ lambda_function_props=_lambda.FunctionProps(
80
+ code=_lambda.Code.from_asset('lambda'),
81
+ runtime=_lambda.Runtime.PYTHON_3_11,
82
+ handler='index.handler'
83
+ ),
84
+ event_rule_props=events.RuleProps(
85
+ schedule=events.Schedule.rate(
86
+ Duration.minutes(5))
87
+ ))
88
+ ----
89
+
90
+ Java::
91
+ +
92
+ [source,java]
93
+ ----
94
+ import software.constructs.Construct;
95
+
96
+ import software.amazon.awscdk.Stack;
97
+ import software.amazon.awscdk.StackProps;
98
+ import software.amazon.awscdk.Duration;
99
+ import software.amazon.awscdk.services.events.*;
100
+ import software.amazon.awscdk.services.lambda.*;
101
+ import software.amazon.awscdk.services.lambda.Runtime;
102
+ import software.amazon.awsconstructs.services.eventbridgelambda.*;
103
+
104
+ new EventbridgeToLambda(this, "test-eventbridge-lambda",
105
+ new EventbridgeToLambdaProps.Builder()
106
+ .lambdaFunctionProps(new FunctionProps.Builder()
107
+ .runtime(Runtime.NODEJS_20_X)
108
+ .code(Code.fromAsset("lambda"))
109
+ .handler("index.handler")
110
+ .build())
111
+ .eventRuleProps(new RuleProps.Builder()
112
+ .schedule(Schedule.rate(Duration.minutes(5)))
113
+ .build())
114
+ .build());
115
+ ----
116
+ ====
117
+
118
+ == Pattern Construct Props
119
+
120
+ [width="100%",cols="<30%,<35%,35%",options="header",]
121
+ |===
122
+ |*Name* |*Type* |*Description*
123
+ |existingLambdaObj?
124
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html[`lambda.Function`]
125
+ |Existing instance of Lambda Function object, providing both this and
126
+ `lambdaFunctionProps` will cause an error.
127
+
128
+ |lambdaFunctionProps?
129
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html[`lambda.FunctionProps`]
130
+ |User provided props to override the default props for the Lambda
131
+ function.
132
+
133
+ |existingEventBusInterface?
134
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.IEventBus.html[`events.IEventBus`]
135
+ |Optional user-provided custom EventBus for construct to use. Providing
136
+ both this and `eventBusProps` results an error.
137
+
138
+ |eventBusProps?
139
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBusProps.html[`events.EventBusProps`]
140
+ |Optional user-provided properties to override the default properties
141
+ when creating a custom EventBus. Setting this value to `{}` will
142
+ create a custom EventBus using all default properties. If neither this
143
+ nor `existingEventBusInterface` is provided the construct will use the
144
+ `default` EventBus. Providing both this and `existingEventBusInterface`
145
+ results an error.
146
+
147
+ |eventRuleProps
148
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.RuleProps.html[`events.RuleProps`]
149
+ |User provided eventRuleProps to override the defaults
150
+ |===
151
+
152
+ == Pattern Properties
153
+
154
+ [width="100%",cols="<30%,<35%,35%",options="header",]
155
+ |===
156
+ |*Name* |*Type* |*Description*
157
+ |eventBus?
158
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.IEventBus.html[`events.IEventBus`]
159
+ |Returns the instance of events.IEventBus used by the construct
160
+
161
+ |eventsRule
162
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.Rule.html[`events.Rule`]
163
+ |Returns an instance of events.Rule created by the construct
164
+
165
+ |lambdaFunction
166
+ |https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html[`lambda.Function`]
167
+ |Returns an instance of lambda.Function created by the construct
168
+ |===
169
+
170
+ == Default settings
171
+
172
+ Out of the box implementation of the Construct without any override will
173
+ set the following defaults:
174
+
175
+ === Amazon EventBridge Rule
176
+
177
+ * Grant least privilege permissions to EventBridge rule to trigger the
178
+ Lambda Function
179
+
180
+ === AWS Lambda Function
181
+
182
+ * Configure limited privilege access IAM role for Lambda function
183
+ * Enable reusing connections with Keep-Alive for NodeJs Lambda function
184
+ * Enable X-Ray Tracing
185
+ * Set Environment Variables
186
+ * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and
187
+ higher functions)
188
+
189
+ == Architecture
190
+
191
+
192
+ image::aws-eventbridge-lambda.png["Diagram showing the EventBridge rule, Lambda function, CloudWatch log group and IAM role created by the construct",scaledwidth=100%]
193
+
194
+ // github block
195
+
196
+ '''''
197
+
198
+ © Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
package/README.md CHANGED
@@ -1,132 +1 @@
1
- # aws-eventbridge-lambda module
2
- <!--BEGIN STABILITY BANNER-->
3
-
4
- ---
5
-
6
- ![Stability: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge)
7
-
8
- ---
9
- <!--END STABILITY BANNER-->
10
-
11
- | **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
12
- |:-------------|:-------------|
13
- <div style="height:8px"></div>
14
-
15
- | **Language** | **Package** |
16
- |:-------------|-----------------|
17
- |![Python Logo](https://docs.aws.amazon.com/cdk/api/latest/img/python32.png) Python|`aws_solutions_constructs.aws_eventbridge_lambda`|
18
- |![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-eventbridge-lambda`|
19
- |![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.eventbridgelambda`|
20
-
21
- ## Overview
22
- This AWS Solutions Construct implements an AWS EventBridge rule and an AWS Lambda function.
23
-
24
- Here is a minimal deployable pattern definition:
25
-
26
- Typescript
27
- ``` typescript
28
- import { Construct } from 'constructs';
29
- import { Stack, StackProps, Duration } from 'aws-cdk-lib';
30
- import { EventbridgeToLambdaProps, EventbridgeToLambda } from '@aws-solutions-constructs/aws-eventbridge-lambda';
31
- import * as lambda from 'aws-cdk-lib/aws-lambda';
32
- import * as events from 'aws-cdk-lib/aws-events';
33
-
34
- const constructProps: EventbridgeToLambdaProps = {
35
- lambdaFunctionProps: {
36
- code: lambda.Code.fromAsset(`lambda`),
37
- runtime: lambda.Runtime.NODEJS_20_X,
38
- handler: 'index.handler'
39
- },
40
- eventRuleProps: {
41
- schedule: events.Schedule.rate(Duration.minutes(5))
42
- }
43
- };
44
-
45
- new EventbridgeToLambda(this, 'test-eventbridge-lambda', constructProps);
46
- ```
47
-
48
- Python
49
- ``` python
50
- from aws_solutions_constructs.aws_eventbridge_lambda import EventbridgeToLambda, EventbridgeToLambdaProps
51
- from aws_cdk import (
52
- aws_lambda as _lambda,
53
- aws_events as events,
54
- Duration,
55
- Stack
56
- )
57
- from constructs import Construct
58
-
59
- EventbridgeToLambda(self, 'test-eventbridge-lambda',
60
- lambda_function_props=_lambda.FunctionProps(
61
- code=_lambda.Code.from_asset('lambda'),
62
- runtime=_lambda.Runtime.PYTHON_3_11,
63
- handler='index.handler'
64
- ),
65
- event_rule_props=events.RuleProps(
66
- schedule=events.Schedule.rate(
67
- Duration.minutes(5))
68
- ))
69
- ```
70
-
71
- Java
72
- ``` java
73
- import software.constructs.Construct;
74
-
75
- import software.amazon.awscdk.Stack;
76
- import software.amazon.awscdk.StackProps;
77
- import software.amazon.awscdk.Duration;
78
- import software.amazon.awscdk.services.events.*;
79
- import software.amazon.awscdk.services.lambda.*;
80
- import software.amazon.awscdk.services.lambda.Runtime;
81
- import software.amazon.awsconstructs.services.eventbridgelambda.*;
82
-
83
- new EventbridgeToLambda(this, "test-eventbridge-lambda",
84
- new EventbridgeToLambdaProps.Builder()
85
- .lambdaFunctionProps(new FunctionProps.Builder()
86
- .runtime(Runtime.NODEJS_20_X)
87
- .code(Code.fromAsset("lambda"))
88
- .handler("index.handler")
89
- .build())
90
- .eventRuleProps(new RuleProps.Builder()
91
- .schedule(Schedule.rate(Duration.minutes(5)))
92
- .build())
93
- .build());
94
- ```
95
-
96
- ## Pattern Construct Props
97
-
98
- | **Name** | **Type** | **Description** |
99
- |:-------------|:----------------|-----------------|
100
- |existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Existing instance of Lambda Function object, providing both this and `lambdaFunctionProps` will cause an error.|
101
- |lambdaFunctionProps?|[`lambda.FunctionProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|
102
- |existingEventBusInterface?|[`events.IEventBus`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.IEventBus.html)| Optional user-provided custom EventBus for construct to use. Providing both this and `eventBusProps` results an error.|
103
- |eventBusProps?|[`events.EventBusProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.EventBusProps.html)|Optional user-provided properties to override the default properties when creating a custom EventBus. Setting this value to `{}` will create a custom EventBus using all default properties. If neither this nor `existingEventBusInterface` is provided the construct will use the `default` EventBus. Providing both this and `existingEventBusInterface` results an error.|
104
- |eventRuleProps|[`events.RuleProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.RuleProps.html)|User provided eventRuleProps to override the defaults|
105
-
106
- ## Pattern Properties
107
-
108
- | **Name** | **Type** | **Description** |
109
- |:-------------|:----------------|-----------------|
110
- |eventBus?|[`events.IEventBus`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.IEventBus.html)|Returns the instance of events.IEventBus used by the construct|
111
- |eventsRule|[`events.Rule`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events.Rule.html)|Returns an instance of events.Rule created by the construct|
112
- |lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html)|Returns an instance of lambda.Function created by the construct|
113
-
114
- ## Default settings
115
-
116
- Out of the box implementation of the Construct without any override will set the following defaults:
117
-
118
- ### Amazon EventBridge Rule
119
- * Grant least privilege permissions to EventBridge rule to trigger the Lambda Function
120
-
121
- ### AWS Lambda Function
122
- * Configure limited privilege access IAM role for Lambda function
123
- * Enable reusing connections with Keep-Alive for NodeJs Lambda function
124
- * Enable X-Ray Tracing
125
- * Set Environment Variables
126
- * AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
127
-
128
- ## Architecture
129
- ![Architecture Diagram](architecture.png)
130
-
131
- ***
132
- &copy; Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
1
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-eventbridge-lambda/README.adoc)
package/lib/index.js CHANGED
@@ -47,5 +47,5 @@ class EventbridgeToLambda extends constructs_1.Construct {
47
47
  }
48
48
  exports.EventbridgeToLambda = EventbridgeToLambda;
49
49
  _a = JSII_RTTI_SYMBOL_1;
50
- EventbridgeToLambda[_a] = { fqn: "@aws-solutions-constructs/aws-eventbridge-lambda.EventbridgeToLambda", version: "2.85.1" };
50
+ EventbridgeToLambda[_a] = { fqn: "@aws-solutions-constructs/aws-eventbridge-lambda.EventbridgeToLambda", version: "2.85.3" };
51
51
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQWNBLGlEQUFpRDtBQUNqRCwyREFBMkQ7QUFDM0QsMkNBQTJDO0FBQzNDLHdGQUF3RjtBQUN4RiwyQ0FBdUM7QUFDdkMseURBQStEO0FBc0MvRCxNQUFhLG1CQUFvQixTQUFRLHNCQUFTO0lBS2hEOzs7Ozs7T0FNRztJQUNILFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsS0FBK0I7UUFDdkUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUNqQixRQUFRLENBQUMsZ0JBQWdCLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDakMsUUFBUSxDQUFDLHFCQUFxQixDQUFDLEtBQUssQ0FBQyxDQUFDO1FBRXRDLElBQUksQ0FBQyxjQUFjLEdBQUcsUUFBUSxDQUFDLG1CQUFtQixDQUFDLElBQUksRUFBRTtZQUN2RCxpQkFBaUIsRUFBRSxLQUFLLENBQUMsaUJBQWlCO1lBQzFDLG1CQUFtQixFQUFFLEtBQUssQ0FBQyxtQkFBbUI7U0FDL0MsQ0FBQy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dXNQcm9wczogcHJvcHMuZXZlbnRCdXNQcm9wc1xuICAgIH0pO1xuXG4gICAgY29uc3QgZGVmYXVsdEV2ZW50c1J1bGVQcm9wcyA9IGRlZmF1bHRzLkRlZmF1bHRFdmVudHNSdWxlUHJvcHMoW2xhbWJkYUZ1bmNdLCB0aGlzLmV2ZW50QnVzKTtcbiAgICBjb25zdCBldmVudHNSdWxlUHJvcHMgPSBvdmVycmlkZVByb3BzKGRlZmF1bHRFdmVudHNSdWxlUHJvcHMsIHByb3BzLmV2ZW50UnVsZVByb3BzLCB0cnVlKTtcblxuICAgIHRoaXMuZXZlbnRzUnVsZSA9IG5ldyBldmVudHMuUnVsZSh0aGlzLCAnRXZlbnRzUnVsZScsIGV2ZW50c1J1bGVQcm9wcyk7XG5cbiAgICBkZWZhdWx0cy5hZGRQZXJtaXNzaW9uKHRoaXMubGFtYmRhRnVuY3Rpb24sIFwiQXdzRXZlbnRzTGFtYmRhSW52b2tlUGVybWlzc2lvblwiLCB7XG4gICAgICBwcmluY2lwYWw6IG5ldyBpYW0uU2VydmljZVByaW5jaXBhbCgnZXZlbnRzLmFtYXpvbmF3cy5jb20nKSxcbiAgICAgIHNvdXJjZUFybjogdGhpcy5ldmVudHNSdWxlLnJ1bGVBcm5cbiAgICB9KTtcbiAgfVxufSJdfQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-solutions-constructs/aws-eventbridge-lambda",
3
- "version": "2.85.1",
3
+ "version": "2.85.3",
4
4
  "description": "CDK Constructs for deploying AWS Events Rule that inveokes AWS Lambda",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -22,12 +22,13 @@
22
22
  "test": "jest --coverage",
23
23
  "clean": "tsc -b --clean",
24
24
  "watch": "tsc -b -w",
25
+ "asciidoc": "asciidoctor --failure-level WARNING -o /dev/null README.adoc",
25
26
  "integ": "integ-runner --update-on-failed",
26
27
  "integ-no-clean": "integ-runner --update-on-failed --no-clean",
27
28
  "integ-assert": "integ-runner",
28
29
  "jsii": "jsii",
29
30
  "jsii-pacmak": "jsii-pacmak",
30
- "build+lint+test": "npm run jsii && npm run lint && npm test && npm run integ-assert",
31
+ "build+lint+test": "npm run jsii && npm run lint && npm run asciidoc && npm test && npm run integ-assert",
31
32
  "blt": "npm run build+lint+test",
32
33
  "snapshot-update": "npm run jsii && npm test -- -u && npm run integ-assert"
33
34
  },
@@ -54,7 +55,7 @@
54
55
  }
55
56
  },
56
57
  "dependencies": {
57
- "@aws-solutions-constructs/core": "2.85.1",
58
+ "@aws-solutions-constructs/core": "2.85.3",
58
59
  "constructs": "^10.0.0"
59
60
  },
60
61
  "devDependencies": {
@@ -78,7 +79,7 @@
78
79
  ]
79
80
  },
80
81
  "peerDependencies": {
81
- "@aws-solutions-constructs/core": "2.85.1",
82
+ "@aws-solutions-constructs/core": "2.85.3",
82
83
  "constructs": "^10.0.0",
83
84
  "aws-cdk-lib": "^2.193.0"
84
85
  },