@aws-cdk/aws-iot-alpha 2.6.0-alpha.0 → 2.7.0-alpha.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.
package/.jsii CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "aws-cdk-lib": "^2.6.0",
11
+ "aws-cdk-lib": "^2.7.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -2868,12 +2868,15 @@
2868
2868
  "compiledWithDeprecationWarnings": true,
2869
2869
  "pacmak": {
2870
2870
  "hasDefaultInterfaces": true
2871
+ },
2872
+ "rosetta": {
2873
+ "strict": true
2871
2874
  }
2872
2875
  }
2873
2876
  },
2874
2877
  "name": "@aws-cdk/aws-iot-alpha",
2875
2878
  "readme": {
2876
- "markdown": "# AWS IoT Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nAWS IoT Core lets you connect billions of IoT devices and route trillions of\nmessages to AWS services without managing infrastructure.\n\n## Installation\n\nInstall the module:\n\n```console\n$ npm i @aws-cdk/aws-iot\n```\n\nImport it into your code:\n\n```ts\nimport * as iot from '@aws-cdk/aws-iot-alpha';\n```\n\n## `TopicRule`\n\nCreate a topic rule that give your devices the ability to interact with AWS services.\nYou can create a topic rule with an action that invoke the Lambda action as following:\n\n```ts\nimport * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n topicRuleName: 'MyTopicRule', // optional\n description: 'invokes the lambda function', // optional\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});\n```\n\nOr, you can add an action after constructing the `TopicRule` instance as following:\n\n```ts\nconst topicRule = new iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n});\ntopicRule.addAction(new actions.LambdaFunctionAction(func))\n```\n\nYou can also supply `errorAction` as following,\nand the IoT Rule will trigger it if a rule's action is unable to perform:\n\n```ts\nimport * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as logs from 'aws-cdk-lib/aws-logs';\n\nconst logGroup = new logs.LogGroup(this, 'MyLogGroup');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n errorAction: new actions.CloudWatchLogsAction(logGroup),\n});\n```\n\nIf you wanna make the topic rule disable, add property `enabled: false` as following:\n\n```ts\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n enabled: false,\n});\n```\n\nSee also [@aws-cdk/aws-iot-actions](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-iot-actions-readme.html) for other actions.\n"
2879
+ "markdown": "# AWS IoT Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n![cdk-constructs: Experimental](https://img.shields.io/badge/cdk--constructs-experimental-important.svg?style=for-the-badge)\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nAWS IoT Core lets you connect billions of IoT devices and route trillions of\nmessages to AWS services without managing infrastructure.\n\n## Installation\n\nInstall the module:\n\n```console\n$ npm i @aws-cdk/aws-iot\n```\n\nImport it into your code:\n\n```ts nofixture\nimport * as iot from '@aws-cdk/aws-iot-alpha';\n```\n\n## `TopicRule`\n\nCreate a topic rule that give your devices the ability to interact with AWS services.\nYou can create a topic rule with an action that invoke the Lambda action as following:\n\n```ts\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n topicRuleName: 'MyTopicRule', // optional\n description: 'invokes the lambda function', // optional\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});\n```\n\nOr, you can add an action after constructing the `TopicRule` instance as following:\n\n```ts\ndeclare const func: lambda.Function;\n\nconst topicRule = new iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n});\ntopicRule.addAction(new actions.LambdaFunctionAction(func));\n```\n\nYou can also supply `errorAction` as following,\nand the IoT Rule will trigger it if a rule's action is unable to perform:\n\n```ts\nimport * as logs from 'aws-cdk-lib/aws-logs';\n\nconst logGroup = new logs.LogGroup(this, 'MyLogGroup');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n errorAction: new actions.CloudWatchLogsAction(logGroup),\n});\n```\n\nIf you wanna make the topic rule disable, add property `enabled: false` as following:\n\n```ts\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n enabled: false,\n});\n```\n\nSee also [@aws-cdk/aws-iot-actions](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-iot-actions-readme.html) for other actions.\n"
2877
2880
  },
2878
2881
  "repository": {
2879
2882
  "directory": "packages/individual-packages/aws-iot",
@@ -3059,7 +3062,7 @@
3059
3062
  "custom": {
3060
3063
  "exampleMetadata": "infused"
3061
3064
  },
3062
- "example": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
3065
+ "example": "const bucket = new s3.Bucket(this, 'MyBucket');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n actions: [\n new actions.S3PutObjectAction(bucket, {\n accessControl: s3.BucketAccessControl.PUBLIC_READ,\n }),\n ],\n});",
3063
3066
  "stability": "experimental",
3064
3067
  "summary": "Defines AWS IoT SQL."
3065
3068
  },
@@ -3253,7 +3256,7 @@
3253
3256
  "custom": {
3254
3257
  "exampleMetadata": "infused"
3255
3258
  },
3256
- "example": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
3259
+ "example": "const bucket = new s3.Bucket(this, 'MyBucket');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n actions: [\n new actions.S3PutObjectAction(bucket, {\n accessControl: s3.BucketAccessControl.PUBLIC_READ,\n }),\n ],\n});",
3257
3260
  "stability": "experimental",
3258
3261
  "summary": "Defines an AWS IoT Rule in this stack."
3259
3262
  },
@@ -3415,7 +3418,7 @@
3415
3418
  "custom": {
3416
3419
  "exampleMetadata": "infused"
3417
3420
  },
3418
- "example": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
3421
+ "example": "const bucket = new s3.Bucket(this, 'MyBucket');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n actions: [\n new actions.S3PutObjectAction(bucket, {\n accessControl: s3.BucketAccessControl.PUBLIC_READ,\n }),\n ],\n});",
3419
3422
  "stability": "experimental",
3420
3423
  "summary": "Properties for defining an AWS IoT Rule."
3421
3424
  },
@@ -3543,6 +3546,6 @@
3543
3546
  "symbolId": "lib/topic-rule:TopicRuleProps"
3544
3547
  }
3545
3548
  },
3546
- "version": "2.6.0-alpha.0",
3549
+ "version": "2.7.0-alpha.0",
3547
3550
  "fingerprint": "**********"
3548
3551
  }
package/.jsii.tabl.json CHANGED
@@ -44,22 +44,22 @@
44
44
  },
45
45
  "fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
46
46
  },
47
- "06505bc09008fc9fb6f43c457c5c2d3bf694418908770aae816db8107a5f3c0a": {
47
+ "c0dd3a8abe50054a48d9630d82e6b4b266c7578cc43d525bdafaad328cbb62d9": {
48
48
  "translations": {
49
49
  "python": {
50
- "source": "import aws_cdk.aws_iot_alpha as iot\nimport aws_cdk.aws_iot_actions_alpha as actions\nimport aws_cdk.aws_lambda as lambda_\n\nfunc = lambda_.Function(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_inline(\"\"\"\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };\"\"\")\n)\n\niot.TopicRule(self, \"TopicRule\",\n topic_rule_name=\"MyTopicRule\", # optional\n description=\"invokes the lambda function\", # optional\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n actions=[actions.LambdaFunctionAction(func)]\n)",
50
+ "source": "func = lambda_.Function(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_inline(\"\"\"\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };\"\"\")\n)\n\niot.TopicRule(self, \"TopicRule\",\n topic_rule_name=\"MyTopicRule\", # optional\n description=\"invokes the lambda function\", # optional\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n actions=[actions.LambdaFunctionAction(func)]\n)",
51
51
  "version": "1"
52
52
  },
53
53
  "csharp": {
54
- "source": "using Amazon.CDK.AWS.IoT.Alpha;\nusing Amazon.CDK.AWS.IoT.Actions.Alpha;\nusing Amazon.CDK.AWS.Lambda;\n\nFunction func = new Function(this, \"MyFunction\", new FunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromInline(@\"\n exports.handler = (event) => {\n console.log(\"\"It is test for lambda action of AWS IoT Rule.\"\", event);\n };\")\n});\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n TopicRuleName = \"MyTopicRule\", // optional\n Description = \"invokes the lambda function\", // optional\n Sql = IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n Actions = new [] { new LambdaFunctionAction(func) }\n});",
54
+ "source": "Function func = new Function(this, \"MyFunction\", new FunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromInline(@\"\n exports.handler = (event) => {\n console.log(\"\"It is test for lambda action of AWS IoT Rule.\"\", event);\n };\")\n});\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n TopicRuleName = \"MyTopicRule\", // optional\n Description = \"invokes the lambda function\", // optional\n Sql = IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n Actions = new [] { new LambdaFunctionAction(func) }\n});",
55
55
  "version": "1"
56
56
  },
57
57
  "java": {
58
- "source": "import software.amazon.awscdk.services.iot.alpha.*;\nimport software.amazon.awscdk.services.iot.actions.alpha.*;\nimport software.amazon.awscdk.services.lambda.*;\n\nFunction func = Function.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromInline(\"\\n exports.handler = (event) => {\\n console.log(\\\"It is test for lambda action of AWS IoT Rule.\\\", event);\\n };\"))\n .build();\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .topicRuleName(\"MyTopicRule\") // optional\n .description(\"invokes the lambda function\") // optional\n .sql(IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"))\n .actions(List.of(new LambdaFunctionAction(func)))\n .build();",
58
+ "source": "Function func = Function.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromInline(\"\\n exports.handler = (event) => {\\n console.log(\\\"It is test for lambda action of AWS IoT Rule.\\\", event);\\n };\"))\n .build();\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .topicRuleName(\"MyTopicRule\") // optional\n .description(\"invokes the lambda function\") // optional\n .sql(IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"))\n .actions(List.of(new LambdaFunctionAction(func)))\n .build();",
59
59
  "version": "1"
60
60
  },
61
61
  "$": {
62
- "source": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n topicRuleName: 'MyTopicRule', // optional\n description: 'invokes the lambda function', // optional\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
62
+ "source": "const func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n topicRuleName: 'MyTopicRule', // optional\n description: 'invokes the lambda function', // optional\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
63
63
  "version": "0"
64
64
  }
65
65
  },
@@ -73,7 +73,7 @@
73
73
  "line": 40
74
74
  }
75
75
  },
76
- "didCompile": false,
76
+ "didCompile": true,
77
77
  "fqnsReferenced": [
78
78
  "@aws-cdk/aws-iot-actions-alpha.LambdaFunctionAction",
79
79
  "@aws-cdk/aws-iot-alpha.IotSql",
@@ -88,11 +88,11 @@
88
88
  "aws-cdk-lib.aws_lambda.Runtime",
89
89
  "aws-cdk-lib.aws_lambda.Runtime#NODEJS_14_X"
90
90
  ],
91
- "fullSource": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n topicRuleName: 'MyTopicRule', // optional\n description: 'invokes the lambda function', // optional\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
91
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n topicRuleName: 'MyTopicRule', // optional\n description: 'invokes the lambda function', // optional\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
92
92
  "syntaxKindCounter": {
93
- "10": 9,
93
+ "10": 6,
94
94
  "14": 1,
95
- "75": 27,
95
+ "75": 24,
96
96
  "104": 2,
97
97
  "192": 1,
98
98
  "193": 2,
@@ -103,30 +103,26 @@
103
103
  "226": 1,
104
104
  "242": 1,
105
105
  "243": 1,
106
- "254": 3,
107
- "255": 3,
108
- "256": 3,
109
- "281": 7,
110
- "290": 1
106
+ "281": 7
111
107
  },
112
- "fqnsFingerprint": "a47ff018a0d2cc171849954128da8928f8a63fe9151d5cc7fb8ca0e8744feb70"
108
+ "fqnsFingerprint": "0d33432034a3744eb23bcbdbb2dcecafa9f9c7dae1cda0cabeaed0e5f2a80315"
113
109
  },
114
- "08bab462d95928b7e71c616d9141f23217b8bc63886cbbb87ef7c6ea6678ce8d": {
110
+ "8d423264b18bf84ebd96ef345dff9fb3f2c3344e6d7f2b0cf7b8f8b5bd3b740b": {
115
111
  "translations": {
116
112
  "python": {
117
- "source": "topic_rule = iot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\")\n)\ntopic_rule.add_action(actions.LambdaFunctionAction(func))",
113
+ "source": "# func is of type Function\n\n\ntopic_rule = iot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\")\n)\ntopic_rule.add_action(actions.LambdaFunctionAction(func))",
118
114
  "version": "1"
119
115
  },
120
116
  "csharp": {
121
- "source": "var topicRule = new iot.TopicRule(this, \"TopicRule\", new Struct {\n Sql = iot.IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\")\n});\ntopicRule.AddAction(new actions.LambdaFunctionAction(func));",
117
+ "source": "Function func;\n\n\nTopicRule topicRule = new TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\")\n});\ntopicRule.AddAction(new LambdaFunctionAction(func));",
122
118
  "version": "1"
123
119
  },
124
120
  "java": {
125
- "source": "Object topicRule = TopicRule.Builder.create(this, \"TopicRule\")\n .sql(iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"))\n .build();\ntopicRule.addAction(new LambdaFunctionAction(func));",
121
+ "source": "Function func;\n\n\nTopicRule topicRule = TopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"))\n .build();\ntopicRule.addAction(new LambdaFunctionAction(func));",
126
122
  "version": "1"
127
123
  },
128
124
  "$": {
129
- "source": "const topicRule = new iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n});\ntopicRule.addAction(new actions.LambdaFunctionAction(func))",
125
+ "source": "declare const func: lambda.Function;\n\nconst topicRule = new iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n});\ntopicRule.addAction(new actions.LambdaFunctionAction(func));",
130
126
  "version": "0"
131
127
  }
132
128
  },
@@ -137,45 +133,57 @@
137
133
  },
138
134
  "field": {
139
135
  "field": "markdown",
140
- "line": 65
136
+ "line": 61
141
137
  }
142
138
  },
143
- "didCompile": false,
144
- "fqnsReferenced": [],
145
- "fullSource": "const topicRule = new iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n});\ntopicRule.addAction(new actions.LambdaFunctionAction(func))",
139
+ "didCompile": true,
140
+ "fqnsReferenced": [
141
+ "@aws-cdk/aws-iot-actions-alpha.LambdaFunctionAction",
142
+ "@aws-cdk/aws-iot-alpha.IAction",
143
+ "@aws-cdk/aws-iot-alpha.IotSql",
144
+ "@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
145
+ "@aws-cdk/aws-iot-alpha.TopicRule",
146
+ "@aws-cdk/aws-iot-alpha.TopicRule#addAction",
147
+ "@aws-cdk/aws-iot-alpha.TopicRuleProps",
148
+ "aws-cdk-lib.aws_lambda.IFunction"
149
+ ],
150
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\ndeclare const func: lambda.Function;\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst topicRule = new iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n});\ntopicRule.addAction(new actions.LambdaFunctionAction(func));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
146
151
  "syntaxKindCounter": {
147
152
  "10": 2,
148
- "75": 12,
153
+ "75": 15,
149
154
  "104": 1,
155
+ "130": 1,
156
+ "153": 1,
157
+ "169": 1,
150
158
  "193": 1,
151
159
  "194": 5,
152
160
  "196": 2,
153
161
  "197": 2,
154
- "225": 1,
162
+ "225": 2,
155
163
  "226": 1,
156
- "242": 1,
157
- "243": 1,
164
+ "242": 2,
165
+ "243": 2,
158
166
  "281": 1,
159
167
  "290": 1
160
168
  },
161
- "fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
169
+ "fqnsFingerprint": "b1a5dae7e9140ac51b0f756f6a4533248c439b7d6114487ee4291613b64d2d1b"
162
170
  },
163
- "f53a39bb7f087c11bf7334ebee21a2f22b8a013bc1592403087fa111495efb98": {
171
+ "d00de3b61505786f1520d5a3ae725275f8b4e2a343cf3712973b8463c04ad016": {
164
172
  "translations": {
165
173
  "python": {
166
- "source": "import aws_cdk.aws_iot_alpha as iot\nimport aws_cdk.aws_iot_actions_alpha as actions\nimport aws_cdk.aws_logs as logs\n\nlog_group = logs.LogGroup(self, \"MyLogGroup\")\n\niot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n error_action=actions.CloudWatchLogsAction(log_group)\n)",
174
+ "source": "import aws_cdk.aws_logs as logs\n\n\nlog_group = logs.LogGroup(self, \"MyLogGroup\")\n\niot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n error_action=actions.CloudWatchLogsAction(log_group)\n)",
167
175
  "version": "1"
168
176
  },
169
177
  "csharp": {
170
- "source": "using Amazon.CDK.AWS.IoT.Alpha;\nusing Amazon.CDK.AWS.IoT.Actions.Alpha;\nusing Amazon.CDK.AWS.Logs;\n\nLogGroup logGroup = new LogGroup(this, \"MyLogGroup\");\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n ErrorAction = new CloudWatchLogsAction(logGroup)\n});",
178
+ "source": "using Amazon.CDK.AWS.Logs;\n\n\nLogGroup logGroup = new LogGroup(this, \"MyLogGroup\");\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n ErrorAction = new CloudWatchLogsAction(logGroup)\n});",
171
179
  "version": "1"
172
180
  },
173
181
  "java": {
174
- "source": "import software.amazon.awscdk.services.iot.alpha.*;\nimport software.amazon.awscdk.services.iot.actions.alpha.*;\nimport software.amazon.awscdk.services.logs.*;\n\nLogGroup logGroup = new LogGroup(this, \"MyLogGroup\");\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"))\n .errorAction(new CloudWatchLogsAction(logGroup))\n .build();",
182
+ "source": "import software.amazon.awscdk.services.logs.*;\n\n\nLogGroup logGroup = new LogGroup(this, \"MyLogGroup\");\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"))\n .errorAction(new CloudWatchLogsAction(logGroup))\n .build();",
175
183
  "version": "1"
176
184
  },
177
185
  "$": {
178
- "source": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as logs from 'aws-cdk-lib/aws-logs';\n\nconst logGroup = new logs.LogGroup(this, 'MyLogGroup');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n errorAction: new actions.CloudWatchLogsAction(logGroup),\n});",
186
+ "source": "import * as logs from 'aws-cdk-lib/aws-logs';\n\nconst logGroup = new logs.LogGroup(this, 'MyLogGroup');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n errorAction: new actions.CloudWatchLogsAction(logGroup),\n});",
179
187
  "version": "0"
180
188
  }
181
189
  },
@@ -186,10 +194,10 @@
186
194
  },
187
195
  "field": {
188
196
  "field": "markdown",
189
- "line": 75
197
+ "line": 73
190
198
  }
191
199
  },
192
- "didCompile": false,
200
+ "didCompile": true,
193
201
  "fqnsReferenced": [
194
202
  "@aws-cdk/aws-iot-actions-alpha.CloudWatchLogsAction",
195
203
  "@aws-cdk/aws-iot-alpha.IAction",
@@ -200,10 +208,10 @@
200
208
  "aws-cdk-lib.aws_logs.ILogGroup",
201
209
  "aws-cdk-lib.aws_logs.LogGroup"
202
210
  ],
203
- "fullSource": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as logs from 'aws-cdk-lib/aws-logs';\n\nconst logGroup = new logs.LogGroup(this, 'MyLogGroup');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n errorAction: new actions.CloudWatchLogsAction(logGroup),\n});",
211
+ "fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as logs from 'aws-cdk-lib/aws-logs';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst logGroup = new logs.LogGroup(this, 'MyLogGroup');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n errorAction: new actions.CloudWatchLogsAction(logGroup),\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
204
212
  "syntaxKindCounter": {
205
- "10": 6,
206
- "75": 16,
213
+ "10": 4,
214
+ "75": 14,
207
215
  "104": 2,
208
216
  "193": 1,
209
217
  "194": 5,
@@ -213,13 +221,13 @@
213
221
  "226": 1,
214
222
  "242": 1,
215
223
  "243": 1,
216
- "254": 3,
217
- "255": 3,
218
- "256": 3,
224
+ "254": 1,
225
+ "255": 1,
226
+ "256": 1,
219
227
  "281": 2,
220
228
  "290": 1
221
229
  },
222
- "fqnsFingerprint": "0388b29c1ae28f54e547168aa8461aaa1c95d577e11350c847cff6aa6d64d13c"
230
+ "fqnsFingerprint": "4bb4f81b5a02f8acf1d9056154724f87da0d30c1999a32734175e929c7709e35"
223
231
  },
224
232
  "13a44d58d3cf9be7a9d0210c8f7b3044c28662dd037a3f848b740dd78ba1c33d": {
225
233
  "translations": {
@@ -228,11 +236,11 @@
228
236
  "version": "1"
229
237
  },
230
238
  "csharp": {
231
- "source": "new iot.TopicRule(this, \"TopicRule\", new Struct {\n Sql = iot.IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n Enabled = false\n});",
239
+ "source": "new TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n Enabled = false\n});",
232
240
  "version": "1"
233
241
  },
234
242
  "java": {
235
- "source": "TopicRule.Builder.create(this, \"TopicRule\")\n .sql(iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"))\n .enabled(false)\n .build();",
243
+ "source": "TopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"))\n .enabled(false)\n .build();",
236
244
  "version": "1"
237
245
  },
238
246
  "$": {
@@ -247,12 +255,17 @@
247
255
  },
248
256
  "field": {
249
257
  "field": "markdown",
250
- "line": 90
258
+ "line": 86
251
259
  }
252
260
  },
253
- "didCompile": false,
254
- "fqnsReferenced": [],
255
- "fullSource": "new iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n enabled: false,\n});",
261
+ "didCompile": true,
262
+ "fqnsReferenced": [
263
+ "@aws-cdk/aws-iot-alpha.IotSql",
264
+ "@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
265
+ "@aws-cdk/aws-iot-alpha.TopicRule",
266
+ "@aws-cdk/aws-iot-alpha.TopicRuleProps"
267
+ ],
268
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'\"),\n enabled: false,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
256
269
  "syntaxKindCounter": {
257
270
  "10": 2,
258
271
  "75": 7,
@@ -263,10 +276,9 @@
263
276
  "196": 1,
264
277
  "197": 1,
265
278
  "226": 1,
266
- "281": 2,
267
- "290": 1
279
+ "281": 2
268
280
  },
269
- "fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
281
+ "fqnsFingerprint": "a44f0d464b91b59972005a20163f75b30e267df9f0ef69381b3253a7b8c4c1dd"
270
282
  },
271
283
  "478bc6ac05a0df94d2a93853923e4a64d07e327bee9751731f1e0c3c563fc8dd": {
272
284
  "translations": {
@@ -322,22 +334,22 @@
322
334
  },
323
335
  "fqnsFingerprint": "d602ae531ef9ba8278dc8ee1977d20130977336ab00c11fb2f69300b03689683"
324
336
  },
325
- "e5111ee5cd857f4d3a3edb49316373dcf10cb4c7036fa61d14214a48671f1777": {
337
+ "86055c5721007e078123e3fb066748718248c4742d0e0f9c39baa6a6a73bbdbf": {
326
338
  "translations": {
327
339
  "python": {
328
- "source": "import aws_cdk.aws_iot_alpha as iot\nimport aws_cdk.aws_iot_actions_alpha as actions\nimport aws_cdk.aws_lambda as lambda_\n\nfunc = lambda_.Function(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_inline(\"\"\"\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };\"\"\")\n)\n\niot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions=[actions.LambdaFunctionAction(func)]\n)",
340
+ "source": "bucket = s3.Bucket(self, \"MyBucket\")\n\niot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT * FROM 'device/+/data'\"),\n actions=[\n actions.S3PutObjectAction(bucket,\n access_control=s3.BucketAccessControl.PUBLIC_READ\n )\n ]\n)",
329
341
  "version": "1"
330
342
  },
331
343
  "csharp": {
332
- "source": "using Amazon.CDK.AWS.IoT.Alpha;\nusing Amazon.CDK.AWS.IoT.Actions.Alpha;\nusing Amazon.CDK.AWS.Lambda;\n\nFunction func = new Function(this, \"MyFunction\", new FunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromInline(@\"\n exports.handler = (event) => {\n console.log(\"\"It is test for lambda action of AWS IoT Rule.\"\", event);\n };\")\n});\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n Actions = new [] { new LambdaFunctionAction(func) }\n});",
344
+ "source": "Bucket bucket = new Bucket(this, \"MyBucket\");\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n Actions = new [] {\n new S3PutObjectAction(bucket, new S3PutObjectActionProps {\n AccessControl = BucketAccessControl.PUBLIC_READ\n }) }\n});",
333
345
  "version": "1"
334
346
  },
335
347
  "java": {
336
- "source": "import software.amazon.awscdk.services.iot.alpha.*;\nimport software.amazon.awscdk.services.iot.actions.alpha.*;\nimport software.amazon.awscdk.services.lambda.*;\n\nFunction func = Function.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromInline(\"\\n exports.handler = (event) => {\\n console.log(\\\"It is test for lambda action of AWS IoT Rule.\\\", event);\\n };\"))\n .build();\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"))\n .actions(List.of(new LambdaFunctionAction(func)))\n .build();",
348
+ "source": "Bucket bucket = new Bucket(this, \"MyBucket\");\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"))\n .actions(List.of(\n S3PutObjectAction.Builder.create(bucket)\n .accessControl(BucketAccessControl.PUBLIC_READ)\n .build()))\n .build();",
337
349
  "version": "1"
338
350
  },
339
351
  "$": {
340
- "source": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
352
+ "source": "const bucket = new s3.Bucket(this, 'MyBucket');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n actions: [\n new actions.S3PutObjectAction(bucket, {\n accessControl: s3.BucketAccessControl.PUBLIC_READ,\n }),\n ],\n});",
341
353
  "version": "0"
342
354
  }
343
355
  },
@@ -350,43 +362,36 @@
350
362
  "field": "example"
351
363
  }
352
364
  },
353
- "didCompile": false,
365
+ "didCompile": true,
354
366
  "fqnsReferenced": [
355
- "@aws-cdk/aws-iot-actions-alpha.LambdaFunctionAction",
367
+ "@aws-cdk/aws-iot-actions-alpha.S3PutObjectAction",
368
+ "@aws-cdk/aws-iot-actions-alpha.S3PutObjectActionProps",
356
369
  "@aws-cdk/aws-iot-alpha.IotSql",
357
370
  "@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
358
371
  "@aws-cdk/aws-iot-alpha.TopicRule",
359
372
  "@aws-cdk/aws-iot-alpha.TopicRuleProps",
360
- "aws-cdk-lib.aws_lambda.Code",
361
- "aws-cdk-lib.aws_lambda.Code#fromInline",
362
- "aws-cdk-lib.aws_lambda.Function",
363
- "aws-cdk-lib.aws_lambda.FunctionProps",
364
- "aws-cdk-lib.aws_lambda.IFunction",
365
- "aws-cdk-lib.aws_lambda.Runtime",
366
- "aws-cdk-lib.aws_lambda.Runtime#NODEJS_14_X"
373
+ "aws-cdk-lib.aws_s3.Bucket",
374
+ "aws-cdk-lib.aws_s3.BucketAccessControl",
375
+ "aws-cdk-lib.aws_s3.BucketAccessControl#PUBLIC_READ",
376
+ "aws-cdk-lib.aws_s3.IBucket"
367
377
  ],
368
- "fullSource": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
378
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\nconst bucket = new s3.Bucket(this, 'MyBucket');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n actions: [\n new actions.S3PutObjectAction(bucket, {\n accessControl: s3.BucketAccessControl.PUBLIC_READ,\n }),\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
369
379
  "syntaxKindCounter": {
370
- "10": 7,
371
- "14": 1,
372
- "75": 25,
380
+ "10": 3,
381
+ "75": 17,
373
382
  "104": 2,
374
383
  "192": 1,
375
384
  "193": 2,
376
- "194": 9,
377
- "196": 2,
385
+ "194": 7,
386
+ "196": 1,
378
387
  "197": 3,
379
388
  "225": 1,
380
389
  "226": 1,
381
390
  "242": 1,
382
391
  "243": 1,
383
- "254": 3,
384
- "255": 3,
385
- "256": 3,
386
- "281": 5,
387
- "290": 1
392
+ "281": 3
388
393
  },
389
- "fqnsFingerprint": "a47ff018a0d2cc171849954128da8928f8a63fe9151d5cc7fb8ca0e8744feb70"
394
+ "fqnsFingerprint": "8de4d616d2832bdfeb637c890564308848c6632aa4d722f134b6e984d83ffc70"
390
395
  },
391
396
  "74bb7d4294a32fb4614b808694f4a4dfebbd13621b825e7ac033eae8fb48f256": {
392
397
  "translations": {
@@ -438,22 +443,22 @@
438
443
  },
439
444
  "fqnsFingerprint": "eadc2b7fe175a20273b81ae34142e534e05517c13b710d61c3bdc4ce4b7df5c3"
440
445
  },
441
- "2cf8594367c3c49d7e1fb61e5d9b78eeae26802e36c83af9d7a69e1ee32b4da4": {
446
+ "ec35ff31cf8fb80d6f2a857bf4719550d667425110d1fbdba6e9026714af4d32": {
442
447
  "translations": {
443
448
  "python": {
444
- "source": "import aws_cdk.aws_iot_alpha as iot\nimport aws_cdk.aws_iot_actions_alpha as actions\nimport aws_cdk.aws_lambda as lambda_\n\nfunc = lambda_.Function(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_inline(\"\"\"\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };\"\"\")\n)\n\niot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions=[actions.LambdaFunctionAction(func)]\n)",
449
+ "source": "bucket = s3.Bucket(self, \"MyBucket\")\n\niot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT * FROM 'device/+/data'\"),\n actions=[\n actions.S3PutObjectAction(bucket,\n access_control=s3.BucketAccessControl.PUBLIC_READ\n )\n ]\n)",
445
450
  "version": "1"
446
451
  },
447
452
  "csharp": {
448
- "source": "using Amazon.CDK.AWS.IoT.Alpha;\nusing Amazon.CDK.AWS.IoT.Actions.Alpha;\nusing Amazon.CDK.AWS.Lambda;\n\nFunction func = new Function(this, \"MyFunction\", new FunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromInline(@\"\n exports.handler = (event) => {\n console.log(\"\"It is test for lambda action of AWS IoT Rule.\"\", event);\n };\")\n});\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n Actions = new [] { new LambdaFunctionAction(func) }\n});",
453
+ "source": "Bucket bucket = new Bucket(this, \"MyBucket\");\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n Actions = new [] {\n new S3PutObjectAction(bucket, new S3PutObjectActionProps {\n AccessControl = BucketAccessControl.PUBLIC_READ\n }) }\n});",
449
454
  "version": "1"
450
455
  },
451
456
  "java": {
452
- "source": "import software.amazon.awscdk.services.iot.alpha.*;\nimport software.amazon.awscdk.services.iot.actions.alpha.*;\nimport software.amazon.awscdk.services.lambda.*;\n\nFunction func = Function.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromInline(\"\\n exports.handler = (event) => {\\n console.log(\\\"It is test for lambda action of AWS IoT Rule.\\\", event);\\n };\"))\n .build();\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"))\n .actions(List.of(new LambdaFunctionAction(func)))\n .build();",
457
+ "source": "Bucket bucket = new Bucket(this, \"MyBucket\");\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"))\n .actions(List.of(\n S3PutObjectAction.Builder.create(bucket)\n .accessControl(BucketAccessControl.PUBLIC_READ)\n .build()))\n .build();",
453
458
  "version": "1"
454
459
  },
455
460
  "$": {
456
- "source": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
461
+ "source": "const bucket = new s3.Bucket(this, 'MyBucket');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n actions: [\n new actions.S3PutObjectAction(bucket, {\n accessControl: s3.BucketAccessControl.PUBLIC_READ,\n }),\n ],\n});",
457
462
  "version": "0"
458
463
  }
459
464
  },
@@ -466,60 +471,53 @@
466
471
  "field": "example"
467
472
  }
468
473
  },
469
- "didCompile": false,
474
+ "didCompile": true,
470
475
  "fqnsReferenced": [
471
- "@aws-cdk/aws-iot-actions-alpha.LambdaFunctionAction",
476
+ "@aws-cdk/aws-iot-actions-alpha.S3PutObjectAction",
477
+ "@aws-cdk/aws-iot-actions-alpha.S3PutObjectActionProps",
472
478
  "@aws-cdk/aws-iot-alpha.IotSql",
473
479
  "@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
474
480
  "@aws-cdk/aws-iot-alpha.TopicRule",
475
481
  "@aws-cdk/aws-iot-alpha.TopicRuleProps",
476
- "aws-cdk-lib.aws_lambda.Code",
477
- "aws-cdk-lib.aws_lambda.Code#fromInline",
478
- "aws-cdk-lib.aws_lambda.Function",
479
- "aws-cdk-lib.aws_lambda.FunctionProps",
480
- "aws-cdk-lib.aws_lambda.IFunction",
481
- "aws-cdk-lib.aws_lambda.Runtime",
482
- "aws-cdk-lib.aws_lambda.Runtime#NODEJS_14_X"
482
+ "aws-cdk-lib.aws_s3.Bucket",
483
+ "aws-cdk-lib.aws_s3.BucketAccessControl",
484
+ "aws-cdk-lib.aws_s3.BucketAccessControl#PUBLIC_READ",
485
+ "aws-cdk-lib.aws_s3.IBucket"
483
486
  ],
484
- "fullSource": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
487
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\nconst bucket = new s3.Bucket(this, 'MyBucket');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n actions: [\n new actions.S3PutObjectAction(bucket, {\n accessControl: s3.BucketAccessControl.PUBLIC_READ,\n }),\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
485
488
  "syntaxKindCounter": {
486
- "10": 7,
487
- "14": 1,
488
- "75": 25,
489
+ "10": 3,
490
+ "75": 17,
489
491
  "104": 2,
490
492
  "192": 1,
491
493
  "193": 2,
492
- "194": 9,
493
- "196": 2,
494
+ "194": 7,
495
+ "196": 1,
494
496
  "197": 3,
495
497
  "225": 1,
496
498
  "226": 1,
497
499
  "242": 1,
498
500
  "243": 1,
499
- "254": 3,
500
- "255": 3,
501
- "256": 3,
502
- "281": 5,
503
- "290": 1
501
+ "281": 3
504
502
  },
505
- "fqnsFingerprint": "a47ff018a0d2cc171849954128da8928f8a63fe9151d5cc7fb8ca0e8744feb70"
503
+ "fqnsFingerprint": "8de4d616d2832bdfeb637c890564308848c6632aa4d722f134b6e984d83ffc70"
506
504
  },
507
- "f07bef2ad7a0246f85faf9a4b05ce7c6daba90954b3030b391f1fb3df22b8785": {
505
+ "c8e9ba7c954601111cd6c8ba2df9489198e5c315310b087bef54677756077f96": {
508
506
  "translations": {
509
507
  "python": {
510
- "source": "import aws_cdk.aws_iot_alpha as iot\nimport aws_cdk.aws_iot_actions_alpha as actions\nimport aws_cdk.aws_lambda as lambda_\n\nfunc = lambda_.Function(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_14_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_inline(\"\"\"\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };\"\"\")\n)\n\niot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions=[actions.LambdaFunctionAction(func)]\n)",
508
+ "source": "bucket = s3.Bucket(self, \"MyBucket\")\n\niot.TopicRule(self, \"TopicRule\",\n sql=iot.IotSql.from_string_as_ver20160323(\"SELECT * FROM 'device/+/data'\"),\n actions=[\n actions.S3PutObjectAction(bucket,\n access_control=s3.BucketAccessControl.PUBLIC_READ\n )\n ]\n)",
511
509
  "version": "1"
512
510
  },
513
511
  "csharp": {
514
- "source": "using Amazon.CDK.AWS.IoT.Alpha;\nusing Amazon.CDK.AWS.IoT.Actions.Alpha;\nusing Amazon.CDK.AWS.Lambda;\n\nFunction func = new Function(this, \"MyFunction\", new FunctionProps {\n Runtime = Runtime.NODEJS_14_X,\n Handler = \"index.handler\",\n Code = Code.FromInline(@\"\n exports.handler = (event) => {\n console.log(\"\"It is test for lambda action of AWS IoT Rule.\"\", event);\n };\")\n});\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n Actions = new [] { new LambdaFunctionAction(func) }\n});",
512
+ "source": "Bucket bucket = new Bucket(this, \"MyBucket\");\n\nnew TopicRule(this, \"TopicRule\", new TopicRuleProps {\n Sql = IotSql.FromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n Actions = new [] {\n new S3PutObjectAction(bucket, new S3PutObjectActionProps {\n AccessControl = BucketAccessControl.PUBLIC_READ\n }) }\n});",
515
513
  "version": "1"
516
514
  },
517
515
  "java": {
518
- "source": "import software.amazon.awscdk.services.iot.alpha.*;\nimport software.amazon.awscdk.services.iot.actions.alpha.*;\nimport software.amazon.awscdk.services.lambda.*;\n\nFunction func = Function.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_14_X)\n .handler(\"index.handler\")\n .code(Code.fromInline(\"\\n exports.handler = (event) => {\\n console.log(\\\"It is test for lambda action of AWS IoT Rule.\\\", event);\\n };\"))\n .build();\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"))\n .actions(List.of(new LambdaFunctionAction(func)))\n .build();",
516
+ "source": "Bucket bucket = new Bucket(this, \"MyBucket\");\n\nTopicRule.Builder.create(this, \"TopicRule\")\n .sql(IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"))\n .actions(List.of(\n S3PutObjectAction.Builder.create(bucket)\n .accessControl(BucketAccessControl.PUBLIC_READ)\n .build()))\n .build();",
519
517
  "version": "1"
520
518
  },
521
519
  "$": {
522
- "source": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
520
+ "source": "const bucket = new s3.Bucket(this, 'MyBucket');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n actions: [\n new actions.S3PutObjectAction(bucket, {\n accessControl: s3.BucketAccessControl.PUBLIC_READ,\n }),\n ],\n});",
523
521
  "version": "0"
524
522
  }
525
523
  },
@@ -532,43 +530,36 @@
532
530
  "field": "example"
533
531
  }
534
532
  },
535
- "didCompile": false,
533
+ "didCompile": true,
536
534
  "fqnsReferenced": [
537
- "@aws-cdk/aws-iot-actions-alpha.LambdaFunctionAction",
535
+ "@aws-cdk/aws-iot-actions-alpha.S3PutObjectAction",
536
+ "@aws-cdk/aws-iot-actions-alpha.S3PutObjectActionProps",
538
537
  "@aws-cdk/aws-iot-alpha.IotSql",
539
538
  "@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
540
539
  "@aws-cdk/aws-iot-alpha.TopicRule",
541
540
  "@aws-cdk/aws-iot-alpha.TopicRuleProps",
542
- "aws-cdk-lib.aws_lambda.Code",
543
- "aws-cdk-lib.aws_lambda.Code#fromInline",
544
- "aws-cdk-lib.aws_lambda.Function",
545
- "aws-cdk-lib.aws_lambda.FunctionProps",
546
- "aws-cdk-lib.aws_lambda.IFunction",
547
- "aws-cdk-lib.aws_lambda.Runtime",
548
- "aws-cdk-lib.aws_lambda.Runtime#NODEJS_14_X"
541
+ "aws-cdk-lib.aws_s3.Bucket",
542
+ "aws-cdk-lib.aws_s3.BucketAccessControl",
543
+ "aws-cdk-lib.aws_s3.BucketAccessControl#PUBLIC_READ",
544
+ "aws-cdk-lib.aws_s3.IBucket"
549
545
  ],
550
- "fullSource": "import * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\nconst func = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_14_X,\n handler: 'index.handler',\n code: lambda.Code.fromInline(`\n exports.handler = (event) => {\n console.log(\"It is test for lambda action of AWS IoT Rule.\", event);\n };`\n ),\n});\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT topic(2) as device_id, timestamp() as timestamp, temperature FROM 'device/+/data'\"),\n actions: [new actions.LambdaFunctionAction(func)],\n});",
546
+ "fullSource": "// Fixture with packages imported, but nothing else\nimport { Stack } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\nimport * as actions from '@aws-cdk/aws-iot-actions-alpha';\nimport * as iot from '@aws-cdk/aws-iot-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\nimport * as s3 from 'aws-cdk-lib/aws-s3';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n // Code snippet begins after !show marker below\n/// !show\nconst bucket = new s3.Bucket(this, 'MyBucket');\n\nnew iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\"SELECT * FROM 'device/+/data'\"),\n actions: [\n new actions.S3PutObjectAction(bucket, {\n accessControl: s3.BucketAccessControl.PUBLIC_READ,\n }),\n ],\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
551
547
  "syntaxKindCounter": {
552
- "10": 7,
553
- "14": 1,
554
- "75": 25,
548
+ "10": 3,
549
+ "75": 17,
555
550
  "104": 2,
556
551
  "192": 1,
557
552
  "193": 2,
558
- "194": 9,
559
- "196": 2,
553
+ "194": 7,
554
+ "196": 1,
560
555
  "197": 3,
561
556
  "225": 1,
562
557
  "226": 1,
563
558
  "242": 1,
564
559
  "243": 1,
565
- "254": 3,
566
- "255": 3,
567
- "256": 3,
568
- "281": 5,
569
- "290": 1
560
+ "281": 3
570
561
  },
571
- "fqnsFingerprint": "a47ff018a0d2cc171849954128da8928f8a63fe9151d5cc7fb8ca0e8744feb70"
562
+ "fqnsFingerprint": "8de4d616d2832bdfeb637c890564308848c6632aa4d722f134b6e984d83ffc70"
572
563
  }
573
564
  }
574
565
  }
package/README.md CHANGED
@@ -28,7 +28,7 @@ $ npm i @aws-cdk/aws-iot
28
28
 
29
29
  Import it into your code:
30
30
 
31
- ```ts
31
+ ```ts nofixture
32
32
  import * as iot from '@aws-cdk/aws-iot-alpha';
33
33
  ```
34
34
 
@@ -38,10 +38,6 @@ Create a topic rule that give your devices the ability to interact with AWS serv
38
38
  You can create a topic rule with an action that invoke the Lambda action as following:
39
39
 
40
40
  ```ts
41
- import * as iot from '@aws-cdk/aws-iot-alpha';
42
- import * as actions from '@aws-cdk/aws-iot-actions-alpha';
43
- import * as lambda from 'aws-cdk-lib/aws-lambda';
44
-
45
41
  const func = new lambda.Function(this, 'MyFunction', {
46
42
  runtime: lambda.Runtime.NODEJS_14_X,
47
43
  handler: 'index.handler',
@@ -63,18 +59,18 @@ new iot.TopicRule(this, 'TopicRule', {
63
59
  Or, you can add an action after constructing the `TopicRule` instance as following:
64
60
 
65
61
  ```ts
62
+ declare const func: lambda.Function;
63
+
66
64
  const topicRule = new iot.TopicRule(this, 'TopicRule', {
67
65
  sql: iot.IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"),
68
66
  });
69
- topicRule.addAction(new actions.LambdaFunctionAction(func))
67
+ topicRule.addAction(new actions.LambdaFunctionAction(func));
70
68
  ```
71
69
 
72
70
  You can also supply `errorAction` as following,
73
71
  and the IoT Rule will trigger it if a rule's action is unable to perform:
74
72
 
75
73
  ```ts
76
- import * as iot from '@aws-cdk/aws-iot-alpha';
77
- import * as actions from '@aws-cdk/aws-iot-actions-alpha';
78
74
  import * as logs from 'aws-cdk-lib/aws-logs';
79
75
 
80
76
  const logGroup = new logs.LogGroup(this, 'MyLogGroup');
package/lib/iot-sql.js CHANGED
@@ -45,7 +45,7 @@ class IotSql {
45
45
  }
46
46
  exports.IotSql = IotSql;
47
47
  _a = JSII_RTTI_SYMBOL_1;
48
- IotSql[_a] = { fqn: "@aws-cdk/aws-iot-alpha.IotSql", version: "2.6.0-alpha.0" };
48
+ IotSql[_a] = { fqn: "@aws-cdk/aws-iot-alpha.IotSql", version: "2.7.0-alpha.0" };
49
49
  class IotSqlImpl extends IotSql {
50
50
  constructor(version, sql) {
51
51
  super();
package/lib/topic-rule.js CHANGED
@@ -90,5 +90,5 @@ class TopicRule extends aws_cdk_lib_1.Resource {
90
90
  }
91
91
  exports.TopicRule = TopicRule;
92
92
  _a = JSII_RTTI_SYMBOL_1;
93
- TopicRule[_a] = { fqn: "@aws-cdk/aws-iot-alpha.TopicRule", version: "2.6.0-alpha.0" };
93
+ TopicRule[_a] = { fqn: "@aws-cdk/aws-iot-alpha.TopicRule", version: "2.7.0-alpha.0" };
94
94
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9waWMtcnVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRvcGljLXJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsNkNBQTBFO0FBSTFFLGlEQUFtRDs7Ozs7O0FBaUNuRCxNQUFhLFNBQVUsU0FBUSxzQkFBUTs7OztJQTBCckMsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUFxQjs7UUFDN0QsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUU7WUFDZixZQUFZLEVBQUUsS0FBSyxDQUFDLGFBQWE7U0FDbEMsQ0FBQyxDQUFDO1FBTFksWUFBTyxHQUFrQyxFQUFFLENBQUM7O1FBTzNELE1BQU0sU0FBUyxHQUFHLEtBQUssQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRXZDLE1BQU0sUUFBUSxHQUFHLElBQUksc0JBQVksQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQ2xELFFBQVEsRUFBRSxJQUFJLENBQUMsWUFBWTtZQUMzQixnQkFBZ0IsRUFBRTtnQkFDaEIsT0FBTyxFQUFFLGtCQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsT0FBTyxFQUFFLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQztnQkFDbEQsZ0JBQWdCLEVBQUUsU0FBUyxDQUFDLGdCQUFnQjtnQkFDNUMsV0FBVyxFQUFFLEtBQUssQ0FBQyxXQUFXO2dCQUM5QixXQUFXLFFBQUUsS0FBSyxDQUFDLFdBQVcsMENBQUUsSUFBSSxDQUFDLElBQUksRUFBRSxhQUFhO2dCQUN4RCxZQUFZLEVBQUUsS0FBSyxDQUFDLE9BQU8sS0FBSyxTQUFTLENBQUMsQ0FBQyxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUMsT0FBTztnQkFDdEUsR0FBRyxFQUFFLFNBQVMsQ0FBQyxHQUFHO2FBQ25CO1NBQ0YsQ0FBQyxDQUFDO1FBRUgsSUFBSSxDQUFDLFlBQVksR0FBRyxJQUFJLENBQUMsdUJBQXVCLENBQUMsUUFBUSxDQUFDLE9BQU8sRUFBRTtZQUNqRSxPQUFPLEVBQUUsS0FBSztZQUNkLFFBQVEsRUFBRSxNQUFNO1lBQ2hCLFlBQVksRUFBRSxJQUFJLENBQUMsWUFBWTtTQUNoQyxDQUFDLENBQUM7UUFDSCxJQUFJLENBQUMsYUFBYSxHQUFHLElBQUksQ0FBQyx3QkFBd0IsQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLENBQUM7UUFFakUsTUFBQSxLQUFLLENBQUMsT0FBTywwQ0FBRSxPQUFPLENBQUMsTUFBTSxDQUFDLEVBQUU7WUFDOUIsSUFBSSxDQUFDLFNBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUN6QixDQUFDLEVBQUU7S0FDSjs7Ozs7Ozs7O0lBckRNLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxLQUFnQixFQUFFLEVBQVUsRUFBRSxZQUFvQjtRQUMvRSxNQUFNLEtBQUssR0FBRyxtQkFBSyxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsQ0FBQyxRQUFRLENBQUMsWUFBWSxFQUFFLHVCQUFTLENBQUMsbUJBQW1CLENBQUMsQ0FBQztRQUNwRixJQUFJLENBQUMsS0FBSyxDQUFDLFlBQVksRUFBRTtZQUN2QixNQUFNLElBQUksS0FBSyxDQUFDLG9DQUFvQyxZQUFZLEdBQUcsQ0FBQyxDQUFDO1NBQ3RFO1FBQ0QsTUFBTSxZQUFZLEdBQUcsS0FBSyxDQUFDLFlBQVksQ0FBQztRQUV4QyxNQUFNLE1BQU8sU0FBUSxzQkFBUTtZQUE3Qjs7Z0JBQ2tCLGlCQUFZLEdBQUcsWUFBWSxDQUFDO2dCQUM1QixrQkFBYSxHQUFHLFlBQVksQ0FBQztZQUMvQyxDQUFDO1NBQUE7UUFDRCxPQUFPLElBQUksTUFBTSxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUU7WUFDM0Isa0JBQWtCLEVBQUUsWUFBWTtTQUNqQyxDQUFDLENBQUM7S0FDSjs7Ozs7OztJQTBDTSxTQUFTLENBQUMsTUFBZTs7UUFDOUIsTUFBTSxFQUFFLGFBQWEsRUFBRSxHQUFHLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7UUFFNUMsTUFBTSxJQUFJLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUN4QyxJQUFJLElBQUksQ0FBQyxNQUFNLEtBQUssQ0FBQyxFQUFFO1lBQ3JCLE1BQU0sSUFBSSxLQUFLLENBQUMsK0NBQStDLENBQUMsQ0FBQztTQUNsRTtRQUNELElBQUksSUFBSSxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUU7WUFDbkIsTUFBTSxJQUFJLEtBQUssQ0FBQywyREFBMkQsSUFBSSxFQUFFLENBQUMsQ0FBQztTQUNwRjtRQUVELElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxDQUFDO0tBQ2xDOztBQXRFSCw4QkF1RUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBBcm5Gb3JtYXQsIFJlc291cmNlLCBTdGFjaywgSVJlc291cmNlLCBMYXp5IH0gZnJvbSAnYXdzLWNkay1saWInO1xuaW1wb3J0IHsgQ29uc3RydWN0IH0gZnJvbSAnY29uc3RydWN0cyc7XG5pbXBvcnQgeyBJQWN0aW9uIH0gZnJvbSAnLi9hY3Rpb24nO1xuaW1wb3J0IHsgSW90U3FsIH0gZnJvbSAnLi9pb3Qtc3FsJztcbmltcG9ydCB7IENmblRvcGljUnVsZSB9IGZyb20gJ2F3cy1jZGstbGliL2F3cy1pb3QnO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgaW50ZXJmYWNlIElUb3BpY1J1bGUgZXh0ZW5kcyBJUmVzb3VyY2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHRvcGljUnVsZUFybjogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgdG9waWNSdWxlTmFtZTogc3RyaW5nO1xufVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuZXhwb3J0IGludGVyZmFjZSBUb3BpY1J1bGVQcm9wcyB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgdG9waWNSdWxlTmFtZT86IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBhY3Rpb25zPzogSUFjdGlvbltdO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZGVzY3JpcHRpb24/OiBzdHJpbmc7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgZXJyb3JBY3Rpb24/OiBJQWN0aW9uO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IGVuYWJsZWQ/OiBib29sZWFuXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHNxbDogSW90U3FsO1xufVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgY2xhc3MgVG9waWNSdWxlIGV4dGVuZHMgUmVzb3VyY2UgaW1wbGVtZW50cyBJVG9waWNSdWxlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcHVibGljIHN0YXRpYyBmcm9tVG9waWNSdWxlQXJuKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcsIHRvcGljUnVsZUFybjogc3RyaW5nKTogSVRvcGljUnVsZSB7XG4gICAgY29uc3QgcGFydHMgPSBTdGFjay5vZihzY29wZSkuc3BsaXRBcm4odG9waWNSdWxlQXJuLCBBcm5Gb3JtYXQuU0xBU0hfUkVTT1VSQ0VfTkFNRSk7XG4gICAgaWYgKCFwYXJ0cy5yZXNvdXJjZU5hbWUpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgTWlzc2luZyB0b3BpYyBydWxlIG5hbWUgaW4gQVJOOiAnJHt0b3BpY1J1bGVBcm59J2ApO1xuICAgIH1cbiAgICBjb25zdCByZXNvdXJjZU5hbWUgPSBwYXJ0cy5yZXNvdXJjZU5hbWU7XG5cbiAgICBjbGFzcyBJbXBvcnQgZXh0ZW5kcyBSZXNvdXJjZSBpbXBsZW1lbnRzIElUb3BpY1J1bGUge1xuICAgICAgcHVibGljIHJlYWRvbmx5IHRvcGljUnVsZUFybiA9IHRvcGljUnVsZUFybjtcbiAgICAgIHB1YmxpYyByZWFkb25seSB0b3BpY1J1bGVOYW1lID0gcmVzb3VyY2VOYW1lO1xuICAgIH1cbiAgICByZXR1cm4gbmV3IEltcG9ydChzY29wZSwgaWQsIHtcbiAgICAgIGVudmlyb25tZW50RnJvbUFybjogdG9waWNSdWxlQXJuLFxuICAgIH0pO1xuICB9XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcHVibGljIHJlYWRvbmx5IHRvcGljUnVsZUFybjogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBwdWJsaWMgcmVhZG9ubHkgdG9waWNSdWxlTmFtZTogc3RyaW5nO1xuXG4gIHByaXZhdGUgcmVhZG9ubHkgYWN0aW9uczogQ2ZuVG9waWNSdWxlLkFjdGlvblByb3BlcnR5W10gPSBbXTtcblxuICBjb25zdHJ1Y3RvcihzY29wZTogQ29uc3RydWN0LCBpZDogc3RyaW5nLCBwcm9wczogVG9waWNSdWxlUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQsIHtcbiAgICAgIHBoeXNpY2FsTmFtZTogcHJvcHMudG9waWNSdWxlTmFtZSxcbiAgICB9KTtcblxuICAgIGNvbnN0IHNxbENvbmZpZyA9IHByb3BzLnNxbC5iaW5kKHRoaXMpO1xuXG4gICAgY29uc3QgcmVzb3VyY2UgPSBuZXcgQ2ZuVG9waWNSdWxlKHRoaXMsICdSZXNvdXJjZScsIHtcbiAgICAgIHJ1bGVOYW1lOiB0aGlzLnBoeXNpY2FsTmFtZSxcbiAgICAgIHRvcGljUnVsZVBheWxvYWQ6IHtcbiAgICAgICAgYWN0aW9uczogTGF6eS5hbnkoeyBwcm9kdWNlOiAoKSA9PiB0aGlzLmFjdGlvbnMgfSksXG4gICAgICAgIGF3c0lvdFNxbFZlcnNpb246IHNxbENvbmZpZy5hd3NJb3RTcWxWZXJzaW9uLFxuICAgICAgICBkZXNjcmlwdGlvbjogcHJvcHMuZGVzY3JpcHRpb24sXG4gICAgICAgIGVycm9yQWN0aW9uOiBwcm9wcy5lcnJvckFjdGlvbj8uYmluZCh0aGlzKS5jb25maWd1cmF0aW9uLFxuICAgICAgICBydWxlRGlzYWJsZWQ6IHByb3BzLmVuYWJsZWQgPT09IHVuZGVmaW5lZCA/IHVuZGVmaW5lZCA6ICFwcm9wcy5lbmFibGVkLFxuICAgICAgICBzcWw6IHNxbENvbmZpZy5zcWwsXG4gICAgICB9LFxuICAgIH0pO1xuXG4gICAgdGhpcy50b3BpY1J1bGVBcm4gPSB0aGlzLmdldFJlc291cmNlQXJuQXR0cmlidXRlKHJlc291cmNlLmF0dHJBcm4sIHtcbiAgICAgIHNlcnZpY2U6ICdpb3QnLFxuICAgICAgcmVzb3VyY2U6ICdydWxlJyxcbiAgICAgIHJlc291cmNlTmFtZTogdGhpcy5waHlzaWNhbE5hbWUsXG4gICAgfSk7XG4gICAgdGhpcy50b3BpY1J1bGVOYW1lID0gdGhpcy5nZXRSZXNvdXJjZU5hbWVBdHRyaWJ1dGUocmVzb3VyY2UucmVmKTtcblxuICAgIHByb3BzLmFjdGlvbnM/LmZvckVhY2goYWN0aW9uID0+IHtcbiAgICAgIHRoaXMuYWRkQWN0aW9uKGFjdGlvbik7XG4gICAgfSk7XG4gIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHB1YmxpYyBhZGRBY3Rpb24oYWN0aW9uOiBJQWN0aW9uKTogdm9pZCB7XG4gICAgY29uc3QgeyBjb25maWd1cmF0aW9uIH0gPSBhY3Rpb24uYmluZCh0aGlzKTtcblxuICAgIGNvbnN0IGtleXMgPSBPYmplY3Qua2V5cyhjb25maWd1cmF0aW9uKTtcbiAgICBpZiAoa2V5cy5sZW5ndGggPT09IDApIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcignQW4gYWN0aW9uIHByb3BlcnR5IGNhbm5vdCBiZSBhbiBlbXB0eSBvYmplY3QuJyk7XG4gICAgfVxuICAgIGlmIChrZXlzLmxlbmd0aCA+IDEpIHtcbiAgICAgIHRocm93IG5ldyBFcnJvcihgQW4gYWN0aW9uIHByb3BlcnR5IGNhbm5vdCBoYXZlIG11bHRpcGxlIGtleXMsIHJlY2VpdmVkOiAke2tleXN9YCk7XG4gICAgfVxuXG4gICAgdGhpcy5hY3Rpb25zLnB1c2goY29uZmlndXJhdGlvbik7XG4gIH1cbn1cbiJdfQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-iot-alpha",
3
- "version": "2.6.0-alpha.0",
3
+ "version": "2.7.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "The CDK Construct Library for AWS::IoT",
6
6
  "main": "lib/index.js",
@@ -33,7 +33,14 @@
33
33
  "packageName": "awscdkiotalpha"
34
34
  }
35
35
  },
36
- "projectReferences": true
36
+ "projectReferences": true,
37
+ "metadata": {
38
+ "jsii": {
39
+ "rosetta": {
40
+ "strict": true
41
+ }
42
+ }
43
+ }
37
44
  },
38
45
  "repository": {
39
46
  "type": "git",
@@ -74,19 +81,19 @@
74
81
  },
75
82
  "license": "Apache-2.0",
76
83
  "devDependencies": {
77
- "@aws-cdk/cdk-build-tools": "2.6.0",
78
- "@aws-cdk/cdk-integ-tools": "2.6.0",
79
- "@aws-cdk/cfn2ts": "2.6.0",
80
- "@aws-cdk/pkglint": "2.6.0",
81
- "@types/jest": "^27.0.3",
82
- "jest": "^27.4.5",
83
- "aws-cdk-lib": "2.6.0",
84
+ "@aws-cdk/cdk-build-tools": "2.7.0",
85
+ "@aws-cdk/cdk-integ-tools": "2.7.0",
86
+ "@aws-cdk/cfn2ts": "2.7.0",
87
+ "@aws-cdk/pkglint": "2.7.0",
88
+ "@types/jest": "^27.4.0",
89
+ "jest": "^27.4.7",
90
+ "aws-cdk-lib": "2.7.0",
84
91
  "constructs": "^10.0.0"
85
92
  },
86
93
  "dependencies": {},
87
94
  "homepage": "https://github.com/aws/aws-cdk",
88
95
  "peerDependencies": {
89
- "aws-cdk-lib": "^2.6.0",
96
+ "aws-cdk-lib": "^2.7.0",
90
97
  "constructs": "^10.0.0"
91
98
  },
92
99
  "engines": {
@@ -0,0 +1,14 @@
1
+ // Fixture with packages imported, but nothing else
2
+ import { Stack } from 'aws-cdk-lib';
3
+ import { Construct } from 'constructs';
4
+ import * as actions from '@aws-cdk/aws-iot-actions-alpha';
5
+ import * as iot from '@aws-cdk/aws-iot-alpha';
6
+ import * as lambda from 'aws-cdk-lib/aws-lambda';
7
+ import * as s3 from 'aws-cdk-lib/aws-s3';
8
+
9
+ class Fixture extends Stack {
10
+ constructor(scope: Construct, id: string) {
11
+ super(scope, id);
12
+ /// here
13
+ }
14
+ }