@aws-solutions-constructs/aws-iot-lambda 1.147.0 → 1.150.0

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.
Files changed (4) hide show
  1. package/.jsii +9 -9
  2. package/README.md +74 -27
  3. package/lib/index.js +1 -1
  4. package/package.json +12 -12
package/.jsii CHANGED
@@ -8,11 +8,11 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "@aws-cdk/aws-iam": "1.147.0",
12
- "@aws-cdk/aws-iot": "1.147.0",
13
- "@aws-cdk/aws-lambda": "1.147.0",
14
- "@aws-cdk/core": "1.147.0",
15
- "@aws-solutions-constructs/core": "1.147.0",
11
+ "@aws-cdk/aws-iam": "1.150.0",
12
+ "@aws-cdk/aws-iot": "1.150.0",
13
+ "@aws-cdk/aws-lambda": "1.150.0",
14
+ "@aws-cdk/core": "1.150.0",
15
+ "@aws-solutions-constructs/core": "1.150.0",
16
16
  "constructs": "^3.2.0"
17
17
  },
18
18
  "dependencyClosure": {
@@ -1664,7 +1664,7 @@
1664
1664
  },
1665
1665
  "description": "CDK Constructs for AWS IoT to AWS Lambda integration",
1666
1666
  "homepage": "https://github.com/awslabs/aws-solutions-constructs.git",
1667
- "jsiiVersion": "1.55.1 (build 07d2d90)",
1667
+ "jsiiVersion": "1.56.0 (build 55e7d15)",
1668
1668
  "keywords": [
1669
1669
  "aws",
1670
1670
  "cdk",
@@ -1683,7 +1683,7 @@
1683
1683
  },
1684
1684
  "name": "@aws-solutions-constructs/aws-iot-lambda",
1685
1685
  "readme": {
1686
- "markdown": "# aws-iot-lambda module\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)\n\n> All classes are under active development and subject to non-backward compatible changes or removal in any\n> future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.\n> 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.\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_iot_lambda`|\n|![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-iot-lambda`|\n|![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.iotlambda`|\n\nThis AWS Solutions Construct implements an AWS IoT MQTT topic rule and an AWS Lambda function pattern.\n\nHere is a minimal deployable pattern definition in Typescript:\n\n``` javascript\nconst { IotToLambdaProps, IotToLambda } from '@aws-solutions-constructs/aws-iot-lambda';\n\nconst props: IotToLambdaProps = {\n lambdaFunctionProps: {\n code: lambda.Code.fromAsset(`${__dirname}/lambda`),\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler'\n },\n iotTopicRuleProps: {\n topicRulePayload: {\n ruleDisabled: false,\n description: \"Processing of DTC messages from the AWS Connected Vehicle Solution.\",\n sql: \"SELECT * FROM 'connectedcar/dtc/#'\",\n actions: []\n }\n }\n};\n\nnew IotToLambda(this, 'test-iot-lambda-integration', props);\n```\n\n## Initializer\n\n``` text\nnew IotToLambda(scope: Construct, id: string, props: IotToLambdaProps);\n```\n\n_Parameters_\n\n* scope [`Construct`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.Construct.html)\n* id `string`\n* props [`IotToLambdaProps`](#pattern-construct-props)\n\n## Pattern Construct Props\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_aws-lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|\n|iotTopicRuleProps?|[`iot.CfnTopicRuleProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-iot.CfnTopicRuleProps.html)|User provided CfnTopicRuleProps to override the defaults|\n\n## Pattern Properties\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|iotTopicRule|[`iot.CfnTopicRule`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-iot.CfnTopicRule.html)|Returns an instance of iot.CfnTopicRule created by the construct|\n|lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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 IoT Rule\n* Configure least privilege access IAM role for Amazon IoT\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 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved."
1686
+ "markdown": "# aws-iot-lambda module\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)\n\n> All classes are under active development and subject to non-backward compatible changes or removal in any\n> future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.\n> 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.\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_iot_lambda`|\n|![Typescript Logo](https://docs.aws.amazon.com/cdk/api/latest/img/typescript32.png) Typescript|`@aws-solutions-constructs/aws-iot-lambda`|\n|![Java Logo](https://docs.aws.amazon.com/cdk/api/latest/img/java32.png) Java|`software.amazon.awsconstructs.services.iotlambda`|\n\nThis AWS Solutions Construct implements an AWS IoT MQTT topic rule and an AWS Lambda function pattern.\n\nHere is a minimal deployable pattern definition:\n\nTypescript\n``` javascript\nimport { Construct } from 'constructs';\nimport { Stack, StackProps } from 'aws-cdk-lib';\nimport { IotToLambdaProps, IotToLambda } from '@aws-solutions-constructs/aws-iot-lambda';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst constructProps: IotToLambdaProps = {\n lambdaFunctionProps: {\n code: lambda.Code.fromAsset(`lambda`),\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler'\n },\n iotTopicRuleProps: {\n topicRulePayload: {\n ruleDisabled: false,\n description: \"Processing of DTC messages from the AWS Connected Vehicle Solution.\",\n sql: \"SELECT * FROM 'connectedcar/dtc/#'\",\n actions: []\n }\n }\n};\n\nnew IotToLambda(this, 'test-iot-lambda-integration', constructProps);\n```\n\nPython\n``` python\nfrom aws_solutions_constructs.aws_iot_lambda import IotToLambdaProps, IotToLambda\nfrom aws_cdk import (\n aws_iot as iot,\n aws_lambda as _lambda,\n Stack\n)\nfrom constructs import Construct\n\nIotToLambda(self, 'test_iot_lambda',\n lambda_function_props=_lambda.FunctionProps(\n code=_lambda.Code.from_asset('lambda'),\n runtime=_lambda.Runtime.PYTHON_3_9,\n handler='index.handler'\n ),\n iot_topic_rule_props=iot.CfnTopicRuleProps(\n topic_rule_payload=iot.CfnTopicRule.TopicRulePayloadProperty(\n rule_disabled=False,\n description=\"Sends data to kinesis data stream\",\n sql=\"SELECT * FROM 'solutions/construct'\",\n actions=[]\n )\n ))\n```\n\nJava\n``` java\nimport software.constructs.Construct;\nimport java.util.List;\n\nimport software.amazon.awscdk.Stack;\nimport software.amazon.awscdk.StackProps;\nimport software.amazon.awscdk.services.lambda.*;\nimport software.amazon.awscdk.services.lambda.Runtime;\nimport software.amazon.awscdk.services.iot.*;\nimport software.amazon.awscdk.services.iot.CfnTopicRule.TopicRulePayloadProperty;\nimport software.amazon.awsconstructs.services.iotlambda.*;\n\nnew IotToLambda(this, \"test-iot-lambda-integration\", new IotToLambdaProps.Builder()\n .lambdaFunctionProps(new FunctionProps.Builder()\n .runtime(Runtime.NODEJS_14_X)\n .code(Code.fromAsset(\"lambda\"))\n .handler(\"index.handler\")\n .build())\n .iotTopicRuleProps(new CfnTopicRuleProps.Builder()\n .topicRulePayload(new TopicRulePayloadProperty.Builder()\n .ruleDisabled(false)\n .description(\"Processing of DTC messages from the AWS Connected Vehicle Solution.\")\n .sql(\"SELECT * FROM 'connectedcar/dtc/#'\")\n .actions(List.of())\n .build())\n .build())\n .build());\n```\n## Pattern Construct Props\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|existingLambdaObj?|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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/latest/docs/@aws-cdk_aws-lambda.FunctionProps.html)|User provided props to override the default props for the Lambda function.|\n|iotTopicRuleProps?|[`iot.CfnTopicRuleProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-iot.CfnTopicRuleProps.html)|User provided CfnTopicRuleProps to override the defaults|\n\n## Pattern Properties\n\n| **Name** | **Type** | **Description** |\n|:-------------|:----------------|-----------------|\n|iotTopicRule|[`iot.CfnTopicRule`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-iot.CfnTopicRule.html)|Returns an instance of iot.CfnTopicRule created by the construct|\n|lambdaFunction|[`lambda.Function`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_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 IoT Rule\n* Configure least privilege access IAM role for Amazon IoT\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 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved."
1687
1687
  },
1688
1688
  "repository": {
1689
1689
  "directory": "source/patterns/@aws-solutions-constructs/aws-iot-lambda",
@@ -1862,6 +1862,6 @@
1862
1862
  "symbolId": "lib/index:IotToLambdaProps"
1863
1863
  }
1864
1864
  },
1865
- "version": "1.147.0",
1866
- "fingerprint": "9ckkC8hz5DwEkD2gIygEYn6fVAcT3pycDqW7M6ygURY="
1865
+ "version": "1.150.0",
1866
+ "fingerprint": "bEVAlH5uzegr/TfOd351wBj9Wdy0CCjlNM2bUC3HxuE="
1867
1867
  }
package/README.md CHANGED
@@ -24,42 +24,89 @@
24
24
 
25
25
  This AWS Solutions Construct implements an AWS IoT MQTT topic rule and an AWS Lambda function pattern.
26
26
 
27
- Here is a minimal deployable pattern definition in Typescript:
27
+ Here is a minimal deployable pattern definition:
28
28
 
29
+ Typescript
29
30
  ``` javascript
30
- const { IotToLambdaProps, IotToLambda } from '@aws-solutions-constructs/aws-iot-lambda';
31
-
32
- const props: IotToLambdaProps = {
33
- lambdaFunctionProps: {
34
- code: lambda.Code.fromAsset(`${__dirname}/lambda`),
35
- runtime: lambda.Runtime.NODEJS_14_X,
36
- handler: 'index.handler'
37
- },
38
- iotTopicRuleProps: {
39
- topicRulePayload: {
40
- ruleDisabled: false,
41
- description: "Processing of DTC messages from the AWS Connected Vehicle Solution.",
42
- sql: "SELECT * FROM 'connectedcar/dtc/#'",
43
- actions: []
44
- }
31
+ import { Construct } from 'constructs';
32
+ import { Stack, StackProps } from 'aws-cdk-lib';
33
+ import { IotToLambdaProps, IotToLambda } from '@aws-solutions-constructs/aws-iot-lambda';
34
+ import * as lambda from 'aws-cdk-lib/aws-lambda';
35
+
36
+ const constructProps: IotToLambdaProps = {
37
+ lambdaFunctionProps: {
38
+ code: lambda.Code.fromAsset(`lambda`),
39
+ runtime: lambda.Runtime.NODEJS_14_X,
40
+ handler: 'index.handler'
41
+ },
42
+ iotTopicRuleProps: {
43
+ topicRulePayload: {
44
+ ruleDisabled: false,
45
+ description: "Processing of DTC messages from the AWS Connected Vehicle Solution.",
46
+ sql: "SELECT * FROM 'connectedcar/dtc/#'",
47
+ actions: []
45
48
  }
49
+ }
46
50
  };
47
51
 
48
- new IotToLambda(this, 'test-iot-lambda-integration', props);
52
+ new IotToLambda(this, 'test-iot-lambda-integration', constructProps);
49
53
  ```
50
54
 
51
- ## Initializer
52
-
53
- ``` text
54
- new IotToLambda(scope: Construct, id: string, props: IotToLambdaProps);
55
+ Python
56
+ ``` python
57
+ from aws_solutions_constructs.aws_iot_lambda import IotToLambdaProps, IotToLambda
58
+ from aws_cdk import (
59
+ aws_iot as iot,
60
+ aws_lambda as _lambda,
61
+ Stack
62
+ )
63
+ from constructs import Construct
64
+
65
+ IotToLambda(self, 'test_iot_lambda',
66
+ lambda_function_props=_lambda.FunctionProps(
67
+ code=_lambda.Code.from_asset('lambda'),
68
+ runtime=_lambda.Runtime.PYTHON_3_9,
69
+ handler='index.handler'
70
+ ),
71
+ iot_topic_rule_props=iot.CfnTopicRuleProps(
72
+ topic_rule_payload=iot.CfnTopicRule.TopicRulePayloadProperty(
73
+ rule_disabled=False,
74
+ description="Sends data to kinesis data stream",
75
+ sql="SELECT * FROM 'solutions/construct'",
76
+ actions=[]
77
+ )
78
+ ))
55
79
  ```
56
80
 
57
- _Parameters_
58
-
59
- * scope [`Construct`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_core.Construct.html)
60
- * id `string`
61
- * props [`IotToLambdaProps`](#pattern-construct-props)
62
-
81
+ Java
82
+ ``` java
83
+ import software.constructs.Construct;
84
+ import java.util.List;
85
+
86
+ import software.amazon.awscdk.Stack;
87
+ import software.amazon.awscdk.StackProps;
88
+ import software.amazon.awscdk.services.lambda.*;
89
+ import software.amazon.awscdk.services.lambda.Runtime;
90
+ import software.amazon.awscdk.services.iot.*;
91
+ import software.amazon.awscdk.services.iot.CfnTopicRule.TopicRulePayloadProperty;
92
+ import software.amazon.awsconstructs.services.iotlambda.*;
93
+
94
+ new IotToLambda(this, "test-iot-lambda-integration", new IotToLambdaProps.Builder()
95
+ .lambdaFunctionProps(new FunctionProps.Builder()
96
+ .runtime(Runtime.NODEJS_14_X)
97
+ .code(Code.fromAsset("lambda"))
98
+ .handler("index.handler")
99
+ .build())
100
+ .iotTopicRuleProps(new CfnTopicRuleProps.Builder()
101
+ .topicRulePayload(new TopicRulePayloadProperty.Builder()
102
+ .ruleDisabled(false)
103
+ .description("Processing of DTC messages from the AWS Connected Vehicle Solution.")
104
+ .sql("SELECT * FROM 'connectedcar/dtc/#'")
105
+ .actions(List.of())
106
+ .build())
107
+ .build())
108
+ .build());
109
+ ```
63
110
  ## Pattern Construct Props
64
111
 
65
112
  | **Name** | **Type** | **Description** |
package/lib/index.js CHANGED
@@ -41,5 +41,5 @@ class IotToLambda extends core_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: "1.147.0" };
44
+ IotToLambda[_a] = { fqn: "@aws-solutions-constructs/aws-iot-lambda.IotToLambda", version: "1.150.0" };
45
45
  //# sourceMapping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25hd3MuY29tJyksXG4gICAgICBzb3VyY2VBcm46IHRoaXMuaW90VG9waWNSdWxlLmF0dHJBcm5cbiAgICB9KTtcbiAgfVxufVxuIl19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-solutions-constructs/aws-iot-lambda",
3
- "version": "1.147.0",
3
+ "version": "1.150.0",
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",
@@ -53,15 +53,15 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@aws-cdk/aws-iot": "1.147.0",
57
- "@aws-cdk/aws-lambda": "1.147.0",
58
- "@aws-cdk/aws-iam": "1.147.0",
59
- "@aws-cdk/core": "1.147.0",
60
- "@aws-solutions-constructs/core": "1.147.0",
56
+ "@aws-cdk/aws-iot": "1.150.0",
57
+ "@aws-cdk/aws-lambda": "1.150.0",
58
+ "@aws-cdk/aws-iam": "1.150.0",
59
+ "@aws-cdk/core": "1.150.0",
60
+ "@aws-solutions-constructs/core": "1.150.0",
61
61
  "constructs": "^3.2.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@aws-cdk/assert": "1.147.0",
64
+ "@aws-cdk/assert": "1.150.0",
65
65
  "@types/jest": "^27.4.0",
66
66
  "@types/node": "^10.3.0"
67
67
  },
@@ -80,11 +80,11 @@
80
80
  ]
81
81
  },
82
82
  "peerDependencies": {
83
- "@aws-cdk/aws-iot": "1.147.0",
84
- "@aws-cdk/aws-lambda": "1.147.0",
85
- "@aws-cdk/core": "1.147.0",
86
- "@aws-solutions-constructs/core": "1.147.0",
87
- "@aws-cdk/aws-iam": "1.147.0",
83
+ "@aws-cdk/aws-iot": "1.150.0",
84
+ "@aws-cdk/aws-lambda": "1.150.0",
85
+ "@aws-cdk/core": "1.150.0",
86
+ "@aws-solutions-constructs/core": "1.150.0",
87
+ "@aws-cdk/aws-iam": "1.150.0",
88
88
  "constructs": "^3.2.0"
89
89
  },
90
90
  "keywords": [