@aws-solutions-constructs/aws-iot-lambda 2.85.2 → 2.85.4
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 +4 -4
- package/README.adoc +198 -0
- package/README.md +1 -144
- package/lib/index.js +1 -1
- package/package.json +5 -4
- /package/{architecture.png → aws-iot-lambda.png} +0 -0
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.
|
|
11
|
+
"@aws-solutions-constructs/core": "2.85.4",
|
|
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-iot-lambda",
|
|
3995
3995
|
"readme": {
|
|
3996
|
-
"markdown": "
|
|
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-iot-lambda/README.adoc)\n"
|
|
3997
3997
|
},
|
|
3998
3998
|
"repository": {
|
|
3999
3999
|
"directory": "source/patterns/@aws-solutions-constructs/aws-iot-lambda",
|
|
@@ -4172,6 +4172,6 @@
|
|
|
4172
4172
|
"symbolId": "lib/index:IotToLambdaProps"
|
|
4173
4173
|
}
|
|
4174
4174
|
},
|
|
4175
|
-
"version": "2.85.
|
|
4176
|
-
"fingerprint": "
|
|
4175
|
+
"version": "2.85.4",
|
|
4176
|
+
"fingerprint": "1tenLGF7zXuaNPQIUs5eOjj/xdRZsDxX5ZnqPmswOJo="
|
|
4177
4177
|
}
|
package/README.adoc
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
//!!NODE_ROOT <section>
|
|
2
|
+
//== aws-iot-lambda module
|
|
3
|
+
|
|
4
|
+
[.topic]
|
|
5
|
+
= aws-iot-lambda
|
|
6
|
+
:info_doctype: section
|
|
7
|
+
:info_title: aws-iot-lambda
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
image:https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge[Stability:Experimental]
|
|
11
|
+
|
|
12
|
+
____
|
|
13
|
+
All classes are under active development and subject to non-backward
|
|
14
|
+
compatible changes or removal in any future version. These are not
|
|
15
|
+
subject to the https://semver.org/[Semantic Versioning] model. This
|
|
16
|
+
means that while you may use them, you may need to update your source
|
|
17
|
+
code when upgrading to a newer version of this package.
|
|
18
|
+
____
|
|
19
|
+
|
|
20
|
+
[width="100%",cols="<50%,<50%",options="header",]
|
|
21
|
+
|===
|
|
22
|
+
|*Reference Documentation*:
|
|
23
|
+
|https://docs.aws.amazon.com/solutions/latest/constructs/
|
|
24
|
+
|===
|
|
25
|
+
|
|
26
|
+
[width="100%",cols="<46%,54%",options="header",]
|
|
27
|
+
|===
|
|
28
|
+
|*Language* |*Package*
|
|
29
|
+
|image:https://docs.aws.amazon.com/cdk/api/latest/img/python32.png[Python
|
|
30
|
+
Logo] Python |`aws_solutions_constructs.aws_iot_lambda`
|
|
31
|
+
|
|
32
|
+
|image:https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png[Typescript
|
|
33
|
+
Logo] Typescript |`@aws-solutions-constructs/aws-iot-lambda`
|
|
34
|
+
|
|
35
|
+
|image:https://docs.aws.amazon.com/cdk/api/latest/img/java32.png[Java
|
|
36
|
+
Logo] Java |`software.amazon.awsconstructs.services.iotlambda`
|
|
37
|
+
|===
|
|
38
|
+
|
|
39
|
+
== Overview
|
|
40
|
+
|
|
41
|
+
This AWS Solutions Construct implements an AWS IoT MQTT topic rule and
|
|
42
|
+
an AWS Lambda function pattern.
|
|
43
|
+
|
|
44
|
+
Here is a minimal deployable pattern definition:
|
|
45
|
+
|
|
46
|
+
====
|
|
47
|
+
[role="tablist"]
|
|
48
|
+
Typescript::
|
|
49
|
+
+
|
|
50
|
+
[source,typescript]
|
|
51
|
+
----
|
|
52
|
+
import { Construct } from 'constructs';
|
|
53
|
+
import { Stack, StackProps } from 'aws-cdk-lib';
|
|
54
|
+
import { IotToLambdaProps, IotToLambda } from '@aws-solutions-constructs/aws-iot-lambda';
|
|
55
|
+
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
56
|
+
|
|
57
|
+
const constructProps: IotToLambdaProps = {
|
|
58
|
+
lambdaFunctionProps: {
|
|
59
|
+
code: lambda.Code.fromAsset(`lambda`),
|
|
60
|
+
runtime: lambda.Runtime.NODEJS_20_X,
|
|
61
|
+
handler: 'index.handler'
|
|
62
|
+
},
|
|
63
|
+
iotTopicRuleProps: {
|
|
64
|
+
topicRulePayload: {
|
|
65
|
+
ruleDisabled: false,
|
|
66
|
+
description: "Processing of DTC messages from the AWS Connected Vehicle Solution.",
|
|
67
|
+
sql: "SELECT * FROM 'connectedcar/dtc/#'",
|
|
68
|
+
actions: []
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
new IotToLambda(this, 'test-iot-lambda-integration', constructProps);
|
|
74
|
+
----
|
|
75
|
+
|
|
76
|
+
Python::
|
|
77
|
+
+
|
|
78
|
+
[source,python]
|
|
79
|
+
----
|
|
80
|
+
from aws_solutions_constructs.aws_iot_lambda import IotToLambdaProps, IotToLambda
|
|
81
|
+
from aws_cdk import (
|
|
82
|
+
aws_iot as iot,
|
|
83
|
+
aws_lambda as _lambda,
|
|
84
|
+
Stack
|
|
85
|
+
)
|
|
86
|
+
from constructs import Construct
|
|
87
|
+
|
|
88
|
+
IotToLambda(self, 'test_iot_lambda',
|
|
89
|
+
lambda_function_props=_lambda.FunctionProps(
|
|
90
|
+
code=_lambda.Code.from_asset('lambda'),
|
|
91
|
+
runtime=_lambda.Runtime.PYTHON_3_11,
|
|
92
|
+
handler='index.handler'
|
|
93
|
+
),
|
|
94
|
+
iot_topic_rule_props=iot.CfnTopicRuleProps(
|
|
95
|
+
topic_rule_payload=iot.CfnTopicRule.TopicRulePayloadProperty(
|
|
96
|
+
rule_disabled=False,
|
|
97
|
+
description="Sends data to kinesis data stream",
|
|
98
|
+
sql="SELECT * FROM 'solutions/construct'",
|
|
99
|
+
actions=[]
|
|
100
|
+
)
|
|
101
|
+
))
|
|
102
|
+
----
|
|
103
|
+
|
|
104
|
+
Java::
|
|
105
|
+
+
|
|
106
|
+
[source,java]
|
|
107
|
+
----
|
|
108
|
+
import software.constructs.Construct;
|
|
109
|
+
import java.util.List;
|
|
110
|
+
|
|
111
|
+
import software.amazon.awscdk.Stack;
|
|
112
|
+
import software.amazon.awscdk.StackProps;
|
|
113
|
+
import software.amazon.awscdk.services.lambda.*;
|
|
114
|
+
import software.amazon.awscdk.services.lambda.Runtime;
|
|
115
|
+
import software.amazon.awscdk.services.iot.*;
|
|
116
|
+
import software.amazon.awscdk.services.iot.CfnTopicRule.TopicRulePayloadProperty;
|
|
117
|
+
import software.amazon.awsconstructs.services.iotlambda.*;
|
|
118
|
+
|
|
119
|
+
new IotToLambda(this, "test-iot-lambda-integration", new IotToLambdaProps.Builder()
|
|
120
|
+
.lambdaFunctionProps(new FunctionProps.Builder()
|
|
121
|
+
.runtime(Runtime.NODEJS_20_X)
|
|
122
|
+
.code(Code.fromAsset("lambda"))
|
|
123
|
+
.handler("index.handler")
|
|
124
|
+
.build())
|
|
125
|
+
.iotTopicRuleProps(new CfnTopicRuleProps.Builder()
|
|
126
|
+
.topicRulePayload(new TopicRulePayloadProperty.Builder()
|
|
127
|
+
.ruleDisabled(false)
|
|
128
|
+
.description("Processing of DTC messages from the AWS Connected Vehicle Solution.")
|
|
129
|
+
.sql("SELECT * FROM 'connectedcar/dtc/#'")
|
|
130
|
+
.actions(List.of())
|
|
131
|
+
.build())
|
|
132
|
+
.build())
|
|
133
|
+
.build());
|
|
134
|
+
----
|
|
135
|
+
====
|
|
136
|
+
|
|
137
|
+
== Pattern Construct Props
|
|
138
|
+
|
|
139
|
+
[width="100%",cols="<30%,<35%,35%",options="header",]
|
|
140
|
+
|===
|
|
141
|
+
|*Name* |*Type* |*Description*
|
|
142
|
+
|existingLambdaObj?
|
|
143
|
+
|https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html[`lambda.Function`]
|
|
144
|
+
|Existing instance of Lambda Function object, providing both this and
|
|
145
|
+
`lambdaFunctionProps` will cause an error.
|
|
146
|
+
|
|
147
|
+
|lambdaFunctionProps?
|
|
148
|
+
|https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.FunctionProps.html[`lambda.FunctionProps`]
|
|
149
|
+
|User provided props to override the default props for the Lambda
|
|
150
|
+
function.
|
|
151
|
+
|
|
152
|
+
|iotTopicRuleProps?
|
|
153
|
+
|https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnTopicRuleProps.html[`iot.CfnTopicRuleProps`]
|
|
154
|
+
|User provided CfnTopicRuleProps to override the defaults
|
|
155
|
+
|===
|
|
156
|
+
|
|
157
|
+
== Pattern Properties
|
|
158
|
+
|
|
159
|
+
[width="100%",cols="<30%,<35%,35%",options="header",]
|
|
160
|
+
|===
|
|
161
|
+
|*Name* |*Type* |*Description*
|
|
162
|
+
|iotTopicRule
|
|
163
|
+
|https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnTopicRule.html[`iot.CfnTopicRule`]
|
|
164
|
+
|Returns an instance of iot.CfnTopicRule created by the construct
|
|
165
|
+
|
|
166
|
+
|lambdaFunction
|
|
167
|
+
|https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Function.html[`lambda.Function`]
|
|
168
|
+
|Returns an instance of lambda.Function created by the construct
|
|
169
|
+
|===
|
|
170
|
+
|
|
171
|
+
== Default settings
|
|
172
|
+
|
|
173
|
+
Out of the box implementation of the Construct without any override will
|
|
174
|
+
set the following defaults:
|
|
175
|
+
|
|
176
|
+
=== Amazon IoT Rule
|
|
177
|
+
|
|
178
|
+
* Configure least privilege access IAM role for Amazon IoT
|
|
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
|
|
187
|
+
and higher functions)
|
|
188
|
+
|
|
189
|
+
== Architecture
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
image::aws-iot-lambda.png["Diagram showing the IoT rule, Lambda function, 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,144 +1 @@
|
|
|
1
|
-
|
|
2
|
-
<!--BEGIN STABILITY BANNER-->
|
|
3
|
-
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-

|
|
7
|
-
|
|
8
|
-
> All classes are under active development and subject to non-backward compatible changes or removal in any
|
|
9
|
-
> future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.
|
|
10
|
-
> This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
<!--END STABILITY BANNER-->
|
|
14
|
-
|
|
15
|
-
| **Reference Documentation**:| <span style="font-weight: normal">https://docs.aws.amazon.com/solutions/latest/constructs/</span>|
|
|
16
|
-
|:-------------|:-------------|
|
|
17
|
-
<div style="height:8px"></div>
|
|
18
|
-
|
|
19
|
-
| **Language** | **Package** |
|
|
20
|
-
|:-------------|-----------------|
|
|
21
|
-
| Python|`aws_solutions_constructs.aws_iot_lambda`|
|
|
22
|
-
| Typescript|`@aws-solutions-constructs/aws-iot-lambda`|
|
|
23
|
-
| Java|`software.amazon.awsconstructs.services.iotlambda`|
|
|
24
|
-
|
|
25
|
-
## Overview
|
|
26
|
-
This AWS Solutions Construct implements an AWS IoT MQTT topic rule and an AWS Lambda function pattern.
|
|
27
|
-
|
|
28
|
-
Here is a minimal deployable pattern definition:
|
|
29
|
-
|
|
30
|
-
Typescript
|
|
31
|
-
``` typescript
|
|
32
|
-
import { Construct } from 'constructs';
|
|
33
|
-
import { Stack, StackProps } from 'aws-cdk-lib';
|
|
34
|
-
import { IotToLambdaProps, IotToLambda } from '@aws-solutions-constructs/aws-iot-lambda';
|
|
35
|
-
import * as lambda from 'aws-cdk-lib/aws-lambda';
|
|
36
|
-
|
|
37
|
-
const constructProps: IotToLambdaProps = {
|
|
38
|
-
lambdaFunctionProps: {
|
|
39
|
-
code: lambda.Code.fromAsset(`lambda`),
|
|
40
|
-
runtime: lambda.Runtime.NODEJS_20_X,
|
|
41
|
-
handler: 'index.handler'
|
|
42
|
-
},
|
|
43
|
-
iotTopicRuleProps: {
|
|
44
|
-
topicRulePayload: {
|
|
45
|
-
ruleDisabled: false,
|
|
46
|
-
description: "Processing of DTC messages from the AWS Connected Vehicle Solution.",
|
|
47
|
-
sql: "SELECT * FROM 'connectedcar/dtc/#'",
|
|
48
|
-
actions: []
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
new IotToLambda(this, 'test-iot-lambda-integration', constructProps);
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
Python
|
|
57
|
-
``` python
|
|
58
|
-
from aws_solutions_constructs.aws_iot_lambda import IotToLambdaProps, IotToLambda
|
|
59
|
-
from aws_cdk import (
|
|
60
|
-
aws_iot as iot,
|
|
61
|
-
aws_lambda as _lambda,
|
|
62
|
-
Stack
|
|
63
|
-
)
|
|
64
|
-
from constructs import Construct
|
|
65
|
-
|
|
66
|
-
IotToLambda(self, 'test_iot_lambda',
|
|
67
|
-
lambda_function_props=_lambda.FunctionProps(
|
|
68
|
-
code=_lambda.Code.from_asset('lambda'),
|
|
69
|
-
runtime=_lambda.Runtime.PYTHON_3_11,
|
|
70
|
-
handler='index.handler'
|
|
71
|
-
),
|
|
72
|
-
iot_topic_rule_props=iot.CfnTopicRuleProps(
|
|
73
|
-
topic_rule_payload=iot.CfnTopicRule.TopicRulePayloadProperty(
|
|
74
|
-
rule_disabled=False,
|
|
75
|
-
description="Sends data to kinesis data stream",
|
|
76
|
-
sql="SELECT * FROM 'solutions/construct'",
|
|
77
|
-
actions=[]
|
|
78
|
-
)
|
|
79
|
-
))
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Java
|
|
83
|
-
``` java
|
|
84
|
-
import software.constructs.Construct;
|
|
85
|
-
import java.util.List;
|
|
86
|
-
|
|
87
|
-
import software.amazon.awscdk.Stack;
|
|
88
|
-
import software.amazon.awscdk.StackProps;
|
|
89
|
-
import software.amazon.awscdk.services.lambda.*;
|
|
90
|
-
import software.amazon.awscdk.services.lambda.Runtime;
|
|
91
|
-
import software.amazon.awscdk.services.iot.*;
|
|
92
|
-
import software.amazon.awscdk.services.iot.CfnTopicRule.TopicRulePayloadProperty;
|
|
93
|
-
import software.amazon.awsconstructs.services.iotlambda.*;
|
|
94
|
-
|
|
95
|
-
new IotToLambda(this, "test-iot-lambda-integration", new IotToLambdaProps.Builder()
|
|
96
|
-
.lambdaFunctionProps(new FunctionProps.Builder()
|
|
97
|
-
.runtime(Runtime.NODEJS_20_X)
|
|
98
|
-
.code(Code.fromAsset("lambda"))
|
|
99
|
-
.handler("index.handler")
|
|
100
|
-
.build())
|
|
101
|
-
.iotTopicRuleProps(new CfnTopicRuleProps.Builder()
|
|
102
|
-
.topicRulePayload(new TopicRulePayloadProperty.Builder()
|
|
103
|
-
.ruleDisabled(false)
|
|
104
|
-
.description("Processing of DTC messages from the AWS Connected Vehicle Solution.")
|
|
105
|
-
.sql("SELECT * FROM 'connectedcar/dtc/#'")
|
|
106
|
-
.actions(List.of())
|
|
107
|
-
.build())
|
|
108
|
-
.build())
|
|
109
|
-
.build());
|
|
110
|
-
```
|
|
111
|
-
## Pattern Construct Props
|
|
112
|
-
|
|
113
|
-
| **Name** | **Type** | **Description** |
|
|
114
|
-
|:-------------|:----------------|-----------------|
|
|
115
|
-
|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.|
|
|
116
|
-
|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.|
|
|
117
|
-
|iotTopicRuleProps?|[`iot.CfnTopicRuleProps`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnTopicRuleProps.html)|User provided CfnTopicRuleProps to override the defaults|
|
|
118
|
-
|
|
119
|
-
## Pattern Properties
|
|
120
|
-
|
|
121
|
-
| **Name** | **Type** | **Description** |
|
|
122
|
-
|:-------------|:----------------|-----------------|
|
|
123
|
-
|iotTopicRule|[`iot.CfnTopicRule`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iot.CfnTopicRule.html)|Returns an instance of iot.CfnTopicRule created by the construct|
|
|
124
|
-
|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|
|
|
125
|
-
|
|
126
|
-
## Default settings
|
|
127
|
-
|
|
128
|
-
Out of the box implementation of the Construct without any override will set the following defaults:
|
|
129
|
-
|
|
130
|
-
### Amazon IoT Rule
|
|
131
|
-
* Configure least privilege access IAM role for Amazon IoT
|
|
132
|
-
|
|
133
|
-
### AWS Lambda Function
|
|
134
|
-
* Configure limited privilege access IAM role for Lambda function
|
|
135
|
-
* Enable reusing connections with Keep-Alive for NodeJs Lambda function
|
|
136
|
-
* Enable X-Ray Tracing
|
|
137
|
-
* Set Environment Variables
|
|
138
|
-
* AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
|
|
139
|
-
|
|
140
|
-
## Architecture
|
|
141
|
-

|
|
142
|
-
|
|
143
|
-
***
|
|
144
|
-
© 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-iot-lambda/README.adoc)
|
package/lib/index.js
CHANGED
|
@@ -41,5 +41,5 @@ class IotToLambda extends constructs_1.Construct {
|
|
|
41
41
|
}
|
|
42
42
|
exports.IotToLambda = IotToLambda;
|
|
43
43
|
_a = JSII_RTTI_SYMBOL_1;
|
|
44
|
-
IotToLambda[_a] = { fqn: "@aws-solutions-constructs/aws-iot-lambda.IotToLambda", version: "2.85.
|
|
44
|
+
IotToLambda[_a] = { fqn: "@aws-solutions-constructs/aws-iot-lambda.IotToLambda", version: "2.85.4" };
|
|
45
45
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQWNBLDJDQUEyQztBQUMzQywyQ0FBMkM7QUFDM0Msd0ZBQXdGO0FBQ3hGLDJDQUF1QztBQUN2QywyREFBMkQ7QUFDM0QseURBQStEO0FBMEIvRCxNQUFhLFdBQVksU0FBUSxzQkFBUztJQUl4Qzs7Ozs7OztPQU9HO0lBQ0gsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUF1QjtRQUMvRCxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ2pCLFFBQVEsQ0FBQyxnQkFBZ0IsQ0FBQyxLQUF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kZWZhdWx0cy5EZWZhdWx0Q2ZuVG9waWNSdWxlUHJvcHMoW3tcbiAgICAgIGxhbWJkYToge1xuICAgICAgICBmdW5jdGlvbkFybjogdGhpcy5sYW1iZGFGdW5jdGlvbi5mdW5jdGlvbkFyblxuICAgICAgfVxuICAgIH1dKTtcbiAgICBjb25zdCBpb3RUb3BpY1Byb3BzID0gb3ZlcnJpZGVQcm9wcyhkZWZhdWx0SW90VG9waWNQcm9wcywgcHJvcHMuaW90VG9waWNSdWxlUHJvcHMsIHRydWUpO1xuXG4gICAgLy8gQ3JlYXRlIHRoZSBJb1QgdG9waWMgcnVsZVxuICAgIHRoaXMuaW90VG9waWNSdWxlID0gbmV3IGlvdC5DZm5Ub3BpY1J1bGUodGhpcywgJ0lvdFRvcGljJywgaW90VG9waWNQcm9wcyk7XG5cbiAgICBkZWZhdWx0cy5hZGRQZXJtaXNzaW9uKHRoaXMubGFtYmRhRnVuY3Rpb24sIFwiQXdzSW90TGFtYmRhSW52b2tlUGVybWlzc2lvblwiLCB7XG4gICAgICBwcmluY2lwYWw6IG5ldyBpYW0uU2VydmljZVByaW5jaXBhbCgnaW90LmFtYXpvbmF3cy5jb20nKSxcbiAgICAgIHNvdXJjZUFybjogdGhpcy5pb3RUb3BpY1J1bGUuYXR0ckFyblxuICAgIH0pO1xuICB9XG59XG4iXX0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-solutions-constructs/aws-iot-lambda",
|
|
3
|
-
"version": "2.85.
|
|
3
|
+
"version": "2.85.4",
|
|
4
4
|
"description": "CDK Constructs for AWS IoT to AWS Lambda integration",
|
|
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.
|
|
58
|
+
"@aws-solutions-constructs/core": "2.85.4",
|
|
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.
|
|
82
|
+
"@aws-solutions-constructs/core": "2.85.4",
|
|
82
83
|
"constructs": "^10.0.0",
|
|
83
84
|
"aws-cdk-lib": "^2.193.0"
|
|
84
85
|
},
|
|
File without changes
|