@aws-cdk/aws-iot-alpha 2.0.0-alpha.8 → 2.3.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 +90 -6
- package/.jsii.tabl.json +470 -0
- package/README.md +1 -1
- package/lib/iot-sql.js +1 -1
- package/lib/topic-rule.js +1 -1
- package/package.json +9 -9
- package/rosetta/_generated.ts-fixture +6 -0
package/.jsii
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"aws-cdk-lib": "^2.3.0",
|
|
12
12
|
"constructs": "^10.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencyClosure": {
|
|
@@ -105,6 +105,19 @@
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
+
"aws-cdk-lib.aws_amplifyuibuilder": {
|
|
109
|
+
"targets": {
|
|
110
|
+
"dotnet": {
|
|
111
|
+
"namespace": "Amazon.CDK.AWS.AmplifyUIBuilder"
|
|
112
|
+
},
|
|
113
|
+
"java": {
|
|
114
|
+
"package": "software.amazon.awscdk.services.amplifyuibuilder"
|
|
115
|
+
},
|
|
116
|
+
"python": {
|
|
117
|
+
"module": "aws_cdk.aws_amplifyuibuilder"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
108
121
|
"aws-cdk-lib.aws_apigateway": {
|
|
109
122
|
"targets": {
|
|
110
123
|
"dotnet": {
|
|
@@ -1120,6 +1133,19 @@
|
|
|
1120
1133
|
}
|
|
1121
1134
|
}
|
|
1122
1135
|
},
|
|
1136
|
+
"aws-cdk-lib.aws_evidently": {
|
|
1137
|
+
"targets": {
|
|
1138
|
+
"dotnet": {
|
|
1139
|
+
"namespace": "Amazon.CDK.AWS.Evidently"
|
|
1140
|
+
},
|
|
1141
|
+
"java": {
|
|
1142
|
+
"package": "software.amazon.awscdk.services.evidently"
|
|
1143
|
+
},
|
|
1144
|
+
"python": {
|
|
1145
|
+
"module": "aws_cdk.aws_evidently"
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1123
1149
|
"aws-cdk-lib.aws_finspace": {
|
|
1124
1150
|
"targets": {
|
|
1125
1151
|
"dotnet": {
|
|
@@ -1601,6 +1627,19 @@
|
|
|
1601
1627
|
}
|
|
1602
1628
|
}
|
|
1603
1629
|
},
|
|
1630
|
+
"aws-cdk-lib.aws_lex": {
|
|
1631
|
+
"targets": {
|
|
1632
|
+
"dotnet": {
|
|
1633
|
+
"namespace": "Amazon.CDK.AWS.Lex"
|
|
1634
|
+
},
|
|
1635
|
+
"java": {
|
|
1636
|
+
"package": "software.amazon.awscdk.services.lex"
|
|
1637
|
+
},
|
|
1638
|
+
"python": {
|
|
1639
|
+
"module": "aws_cdk.aws_lex"
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
1604
1643
|
"aws-cdk-lib.aws_licensemanager": {
|
|
1605
1644
|
"targets": {
|
|
1606
1645
|
"dotnet": {
|
|
@@ -2030,6 +2069,19 @@
|
|
|
2030
2069
|
}
|
|
2031
2070
|
}
|
|
2032
2071
|
},
|
|
2072
|
+
"aws-cdk-lib.aws_refactorspaces": {
|
|
2073
|
+
"targets": {
|
|
2074
|
+
"dotnet": {
|
|
2075
|
+
"namespace": "Amazon.CDK.AWS.RefactorSpaces"
|
|
2076
|
+
},
|
|
2077
|
+
"java": {
|
|
2078
|
+
"package": "software.amazon.awscdk.services.refactorspaces"
|
|
2079
|
+
},
|
|
2080
|
+
"python": {
|
|
2081
|
+
"module": "aws_cdk.aws_refactorspaces"
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
},
|
|
2033
2085
|
"aws-cdk-lib.aws_rekognition": {
|
|
2034
2086
|
"targets": {
|
|
2035
2087
|
"dotnet": {
|
|
@@ -2043,6 +2095,19 @@
|
|
|
2043
2095
|
}
|
|
2044
2096
|
}
|
|
2045
2097
|
},
|
|
2098
|
+
"aws-cdk-lib.aws_resiliencehub": {
|
|
2099
|
+
"targets": {
|
|
2100
|
+
"dotnet": {
|
|
2101
|
+
"namespace": "Amazon.CDK.AWS.ResilienceHub"
|
|
2102
|
+
},
|
|
2103
|
+
"java": {
|
|
2104
|
+
"package": "software.amazon.awscdk.services.resiliencehub"
|
|
2105
|
+
},
|
|
2106
|
+
"python": {
|
|
2107
|
+
"module": "aws_cdk.aws_resiliencehub"
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2046
2111
|
"aws-cdk-lib.aws_resourcegroups": {
|
|
2047
2112
|
"targets": {
|
|
2048
2113
|
"dotnet": {
|
|
@@ -2147,6 +2212,19 @@
|
|
|
2147
2212
|
}
|
|
2148
2213
|
}
|
|
2149
2214
|
},
|
|
2215
|
+
"aws-cdk-lib.aws_rum": {
|
|
2216
|
+
"targets": {
|
|
2217
|
+
"dotnet": {
|
|
2218
|
+
"namespace": "Amazon.CDK.AWS.RUM"
|
|
2219
|
+
},
|
|
2220
|
+
"java": {
|
|
2221
|
+
"package": "software.amazon.awscdk.services.rum"
|
|
2222
|
+
},
|
|
2223
|
+
"python": {
|
|
2224
|
+
"module": "aws_cdk.aws_rum"
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
},
|
|
2150
2228
|
"aws-cdk-lib.aws_s3": {
|
|
2151
2229
|
"targets": {
|
|
2152
2230
|
"dotnet": {
|
|
@@ -2777,7 +2855,7 @@
|
|
|
2777
2855
|
"stability": "experimental"
|
|
2778
2856
|
},
|
|
2779
2857
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
2780
|
-
"jsiiVersion": "1.
|
|
2858
|
+
"jsiiVersion": "1.47.0 (build 86d2c33)",
|
|
2781
2859
|
"keywords": [
|
|
2782
2860
|
"aws",
|
|
2783
2861
|
"cdk",
|
|
@@ -2795,7 +2873,7 @@
|
|
|
2795
2873
|
},
|
|
2796
2874
|
"name": "@aws-cdk/aws-iot-alpha",
|
|
2797
2875
|
"readme": {
|
|
2798
|
-
"markdown": "# AWS IoT Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\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
|
|
2876
|
+
"markdown": "# AWS IoT Construct Library\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\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"
|
|
2799
2877
|
},
|
|
2800
2878
|
"repository": {
|
|
2801
2879
|
"directory": "packages/individual-packages/aws-iot",
|
|
@@ -2839,7 +2917,10 @@
|
|
|
2839
2917
|
"docs": {
|
|
2840
2918
|
"stability": "experimental",
|
|
2841
2919
|
"summary": "Properties for an topic rule action.",
|
|
2842
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iot_alpha from '@aws-cdk/aws-iot-alpha';\n\nconst actionConfig: iot_alpha.ActionConfig = {\n configuration: {\n cloudwatchAlarm: {\n alarmName: 'alarmName',\n roleArn: 'roleArn',\n stateReason: 'stateReason',\n stateValue: 'stateValue',\n },\n cloudwatchLogs: {\n logGroupName: 'logGroupName',\n roleArn: 'roleArn',\n },\n cloudwatchMetric: {\n metricName: 'metricName',\n metricNamespace: 'metricNamespace',\n metricUnit: 'metricUnit',\n metricValue: 'metricValue',\n roleArn: 'roleArn',\n\n // the properties below are optional\n metricTimestamp: 'metricTimestamp',\n },\n dynamoDb: {\n hashKeyField: 'hashKeyField',\n hashKeyValue: 'hashKeyValue',\n roleArn: 'roleArn',\n tableName: 'tableName',\n\n // the properties below are optional\n hashKeyType: 'hashKeyType',\n payloadField: 'payloadField',\n rangeKeyField: 'rangeKeyField',\n rangeKeyType: 'rangeKeyType',\n rangeKeyValue: 'rangeKeyValue',\n },\n dynamoDBv2: {\n putItem: {\n tableName: 'tableName',\n },\n roleArn: 'roleArn',\n },\n elasticsearch: {\n endpoint: 'endpoint',\n id: 'id',\n index: 'index',\n roleArn: 'roleArn',\n type: 'type',\n },\n firehose: {\n deliveryStreamName: 'deliveryStreamName',\n roleArn: 'roleArn',\n\n // the properties below are optional\n batchMode: false,\n separator: 'separator',\n },\n http: {\n url: 'url',\n\n // the properties below are optional\n auth: {\n sigv4: {\n roleArn: 'roleArn',\n serviceName: 'serviceName',\n signingRegion: 'signingRegion',\n },\n },\n confirmationUrl: 'confirmationUrl',\n headers: [{\n key: 'key',\n value: 'value',\n }],\n },\n iotAnalytics: {\n channelName: 'channelName',\n roleArn: 'roleArn',\n\n // the properties below are optional\n batchMode: false,\n },\n iotEvents: {\n inputName: 'inputName',\n roleArn: 'roleArn',\n\n // the properties below are optional\n batchMode: false,\n messageId: 'messageId',\n },\n iotSiteWise: {\n putAssetPropertyValueEntries: [{\n propertyValues: [{\n timestamp: {\n timeInSeconds: 'timeInSeconds',\n\n // the properties below are optional\n offsetInNanos: 'offsetInNanos',\n },\n value: {\n booleanValue: 'booleanValue',\n doubleValue: 'doubleValue',\n integerValue: 'integerValue',\n stringValue: 'stringValue',\n },\n\n // the properties below are optional\n quality: 'quality',\n }],\n\n // the properties below are optional\n assetId: 'assetId',\n entryId: 'entryId',\n propertyAlias: 'propertyAlias',\n propertyId: 'propertyId',\n }],\n roleArn: 'roleArn',\n },\n kafka: {\n clientProperties: {\n clientPropertiesKey: 'clientProperties',\n },\n destinationArn: 'destinationArn',\n topic: 'topic',\n\n // the properties below are optional\n key: 'key',\n partition: 'partition',\n },\n kinesis: {\n roleArn: 'roleArn',\n streamName: 'streamName',\n\n // the properties below are optional\n partitionKey: 'partitionKey',\n },\n lambda: {\n functionArn: 'functionArn',\n },\n openSearch: {\n endpoint: 'endpoint',\n id: 'id',\n index: 'index',\n roleArn: 'roleArn',\n type: 'type',\n },\n republish: {\n roleArn: 'roleArn',\n topic: 'topic',\n\n // the properties below are optional\n qos: 123,\n },\n s3: {\n bucketName: 'bucketName',\n key: 'key',\n roleArn: 'roleArn',\n\n // the properties below are optional\n cannedAcl: 'cannedAcl',\n },\n sns: {\n roleArn: 'roleArn',\n targetArn: 'targetArn',\n\n // the properties below are optional\n messageFormat: 'messageFormat',\n },\n sqs: {\n queueUrl: 'queueUrl',\n roleArn: 'roleArn',\n\n // the properties below are optional\n useBase64: false,\n },\n stepFunctions: {\n roleArn: 'roleArn',\n stateMachineName: 'stateMachineName',\n\n // the properties below are optional\n executionNamePrefix: 'executionNamePrefix',\n },\n timestream: {\n databaseName: 'databaseName',\n dimensions: [{\n name: 'name',\n value: 'value',\n }],\n roleArn: 'roleArn',\n tableName: 'tableName',\n\n // the properties below are optional\n batchMode: false,\n timestamp: {\n unit: 'unit',\n value: 'value',\n },\n },\n },\n};"
|
|
2920
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iot_alpha from '@aws-cdk/aws-iot-alpha';\n\nconst actionConfig: iot_alpha.ActionConfig = {\n configuration: {\n cloudwatchAlarm: {\n alarmName: 'alarmName',\n roleArn: 'roleArn',\n stateReason: 'stateReason',\n stateValue: 'stateValue',\n },\n cloudwatchLogs: {\n logGroupName: 'logGroupName',\n roleArn: 'roleArn',\n },\n cloudwatchMetric: {\n metricName: 'metricName',\n metricNamespace: 'metricNamespace',\n metricUnit: 'metricUnit',\n metricValue: 'metricValue',\n roleArn: 'roleArn',\n\n // the properties below are optional\n metricTimestamp: 'metricTimestamp',\n },\n dynamoDb: {\n hashKeyField: 'hashKeyField',\n hashKeyValue: 'hashKeyValue',\n roleArn: 'roleArn',\n tableName: 'tableName',\n\n // the properties below are optional\n hashKeyType: 'hashKeyType',\n payloadField: 'payloadField',\n rangeKeyField: 'rangeKeyField',\n rangeKeyType: 'rangeKeyType',\n rangeKeyValue: 'rangeKeyValue',\n },\n dynamoDBv2: {\n putItem: {\n tableName: 'tableName',\n },\n roleArn: 'roleArn',\n },\n elasticsearch: {\n endpoint: 'endpoint',\n id: 'id',\n index: 'index',\n roleArn: 'roleArn',\n type: 'type',\n },\n firehose: {\n deliveryStreamName: 'deliveryStreamName',\n roleArn: 'roleArn',\n\n // the properties below are optional\n batchMode: false,\n separator: 'separator',\n },\n http: {\n url: 'url',\n\n // the properties below are optional\n auth: {\n sigv4: {\n roleArn: 'roleArn',\n serviceName: 'serviceName',\n signingRegion: 'signingRegion',\n },\n },\n confirmationUrl: 'confirmationUrl',\n headers: [{\n key: 'key',\n value: 'value',\n }],\n },\n iotAnalytics: {\n channelName: 'channelName',\n roleArn: 'roleArn',\n\n // the properties below are optional\n batchMode: false,\n },\n iotEvents: {\n inputName: 'inputName',\n roleArn: 'roleArn',\n\n // the properties below are optional\n batchMode: false,\n messageId: 'messageId',\n },\n iotSiteWise: {\n putAssetPropertyValueEntries: [{\n propertyValues: [{\n timestamp: {\n timeInSeconds: 'timeInSeconds',\n\n // the properties below are optional\n offsetInNanos: 'offsetInNanos',\n },\n value: {\n booleanValue: 'booleanValue',\n doubleValue: 'doubleValue',\n integerValue: 'integerValue',\n stringValue: 'stringValue',\n },\n\n // the properties below are optional\n quality: 'quality',\n }],\n\n // the properties below are optional\n assetId: 'assetId',\n entryId: 'entryId',\n propertyAlias: 'propertyAlias',\n propertyId: 'propertyId',\n }],\n roleArn: 'roleArn',\n },\n kafka: {\n clientProperties: {\n clientPropertiesKey: 'clientProperties',\n },\n destinationArn: 'destinationArn',\n topic: 'topic',\n\n // the properties below are optional\n key: 'key',\n partition: 'partition',\n },\n kinesis: {\n roleArn: 'roleArn',\n streamName: 'streamName',\n\n // the properties below are optional\n partitionKey: 'partitionKey',\n },\n lambda: {\n functionArn: 'functionArn',\n },\n openSearch: {\n endpoint: 'endpoint',\n id: 'id',\n index: 'index',\n roleArn: 'roleArn',\n type: 'type',\n },\n republish: {\n roleArn: 'roleArn',\n topic: 'topic',\n\n // the properties below are optional\n qos: 123,\n },\n s3: {\n bucketName: 'bucketName',\n key: 'key',\n roleArn: 'roleArn',\n\n // the properties below are optional\n cannedAcl: 'cannedAcl',\n },\n sns: {\n roleArn: 'roleArn',\n targetArn: 'targetArn',\n\n // the properties below are optional\n messageFormat: 'messageFormat',\n },\n sqs: {\n queueUrl: 'queueUrl',\n roleArn: 'roleArn',\n\n // the properties below are optional\n useBase64: false,\n },\n stepFunctions: {\n roleArn: 'roleArn',\n stateMachineName: 'stateMachineName',\n\n // the properties below are optional\n executionNamePrefix: 'executionNamePrefix',\n },\n timestream: {\n databaseName: 'databaseName',\n dimensions: [{\n name: 'name',\n value: 'value',\n }],\n roleArn: 'roleArn',\n tableName: 'tableName',\n\n // the properties below are optional\n batchMode: false,\n timestamp: {\n unit: 'unit',\n value: 'value',\n },\n },\n },\n};",
|
|
2921
|
+
"custom": {
|
|
2922
|
+
"exampleMetadata": "fixture=_generated"
|
|
2923
|
+
}
|
|
2843
2924
|
},
|
|
2844
2925
|
"fqn": "@aws-cdk/aws-iot-alpha.ActionConfig",
|
|
2845
2926
|
"kind": "interface",
|
|
@@ -3114,7 +3195,10 @@
|
|
|
3114
3195
|
"docs": {
|
|
3115
3196
|
"stability": "experimental",
|
|
3116
3197
|
"summary": "The type returned from the `bind()` method in {@link IotSql}.",
|
|
3117
|
-
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iot_alpha from '@aws-cdk/aws-iot-alpha';\n\nconst iotSqlConfig: iot_alpha.IotSqlConfig = {\n awsIotSqlVersion: 'awsIotSqlVersion',\n sql: 'sql',\n};"
|
|
3198
|
+
"example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iot_alpha from '@aws-cdk/aws-iot-alpha';\n\nconst iotSqlConfig: iot_alpha.IotSqlConfig = {\n awsIotSqlVersion: 'awsIotSqlVersion',\n sql: 'sql',\n};",
|
|
3199
|
+
"custom": {
|
|
3200
|
+
"exampleMetadata": "fixture=_generated"
|
|
3201
|
+
}
|
|
3118
3202
|
},
|
|
3119
3203
|
"fqn": "@aws-cdk/aws-iot-alpha.IotSqlConfig",
|
|
3120
3204
|
"kind": "interface",
|
|
@@ -3450,6 +3534,6 @@
|
|
|
3450
3534
|
"symbolId": "lib/topic-rule:TopicRuleProps"
|
|
3451
3535
|
}
|
|
3452
3536
|
},
|
|
3453
|
-
"version": "2.
|
|
3537
|
+
"version": "2.3.0-alpha.0",
|
|
3454
3538
|
"fingerprint": "**********"
|
|
3455
3539
|
}
|
package/.jsii.tabl.json
ADDED
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2",
|
|
3
|
+
"toolVersion": "1.47.0",
|
|
4
|
+
"snippets": {
|
|
5
|
+
"7853339f23a0899c4aadcc10ca624d49862a77ce30da2ab0947af22332c8ec71": {
|
|
6
|
+
"translations": {
|
|
7
|
+
"python": {
|
|
8
|
+
"source": "import aws_cdk.aws_iot_alpha as iot",
|
|
9
|
+
"version": "1"
|
|
10
|
+
},
|
|
11
|
+
"csharp": {
|
|
12
|
+
"source": "using Amazon.CDK.AWS.IoT.Alpha;",
|
|
13
|
+
"version": "1"
|
|
14
|
+
},
|
|
15
|
+
"java": {
|
|
16
|
+
"source": "import software.amazon.awscdk.services.iot.alpha.*;",
|
|
17
|
+
"version": "1"
|
|
18
|
+
},
|
|
19
|
+
"$": {
|
|
20
|
+
"source": "import * as iot from '@aws-cdk/aws-iot-alpha';",
|
|
21
|
+
"version": "0"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"location": {
|
|
25
|
+
"api": {
|
|
26
|
+
"api": "moduleReadme",
|
|
27
|
+
"moduleFqn": "@aws-cdk/aws-iot-alpha"
|
|
28
|
+
},
|
|
29
|
+
"field": {
|
|
30
|
+
"field": "markdown",
|
|
31
|
+
"line": 31
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"didCompile": true,
|
|
35
|
+
"fqnsReferenced": [],
|
|
36
|
+
"fullSource": "import * as iot from '@aws-cdk/aws-iot-alpha';",
|
|
37
|
+
"syntaxKindCounter": {
|
|
38
|
+
"10": 1,
|
|
39
|
+
"75": 1,
|
|
40
|
+
"254": 1,
|
|
41
|
+
"255": 1,
|
|
42
|
+
"256": 1,
|
|
43
|
+
"290": 1
|
|
44
|
+
},
|
|
45
|
+
"fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
46
|
+
},
|
|
47
|
+
"06505bc09008fc9fb6f43c457c5c2d3bf694418908770aae816db8107a5f3c0a": {
|
|
48
|
+
"translations": {
|
|
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)",
|
|
51
|
+
"version": "1"
|
|
52
|
+
},
|
|
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});",
|
|
55
|
+
"version": "1"
|
|
56
|
+
},
|
|
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();",
|
|
59
|
+
"version": "1"
|
|
60
|
+
},
|
|
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});",
|
|
63
|
+
"version": "0"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"location": {
|
|
67
|
+
"api": {
|
|
68
|
+
"api": "moduleReadme",
|
|
69
|
+
"moduleFqn": "@aws-cdk/aws-iot-alpha"
|
|
70
|
+
},
|
|
71
|
+
"field": {
|
|
72
|
+
"field": "markdown",
|
|
73
|
+
"line": 40
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"didCompile": false,
|
|
77
|
+
"fqnsReferenced": [
|
|
78
|
+
"@aws-cdk/aws-iot-actions-alpha.LambdaFunctionAction",
|
|
79
|
+
"@aws-cdk/aws-iot-alpha.IotSql",
|
|
80
|
+
"@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
|
|
81
|
+
"@aws-cdk/aws-iot-alpha.TopicRule",
|
|
82
|
+
"@aws-cdk/aws-iot-alpha.TopicRuleProps",
|
|
83
|
+
"aws-cdk-lib.aws_lambda.Code",
|
|
84
|
+
"aws-cdk-lib.aws_lambda.Code#fromInline",
|
|
85
|
+
"aws-cdk-lib.aws_lambda.Function",
|
|
86
|
+
"aws-cdk-lib.aws_lambda.FunctionProps",
|
|
87
|
+
"aws-cdk-lib.aws_lambda.IFunction",
|
|
88
|
+
"aws-cdk-lib.aws_lambda.Runtime",
|
|
89
|
+
"aws-cdk-lib.aws_lambda.Runtime#NODEJS_14_X"
|
|
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});",
|
|
92
|
+
"syntaxKindCounter": {
|
|
93
|
+
"10": 9,
|
|
94
|
+
"14": 1,
|
|
95
|
+
"75": 27,
|
|
96
|
+
"104": 2,
|
|
97
|
+
"192": 1,
|
|
98
|
+
"193": 2,
|
|
99
|
+
"194": 9,
|
|
100
|
+
"196": 2,
|
|
101
|
+
"197": 3,
|
|
102
|
+
"225": 1,
|
|
103
|
+
"226": 1,
|
|
104
|
+
"242": 1,
|
|
105
|
+
"243": 1,
|
|
106
|
+
"254": 3,
|
|
107
|
+
"255": 3,
|
|
108
|
+
"256": 3,
|
|
109
|
+
"281": 7,
|
|
110
|
+
"290": 1
|
|
111
|
+
},
|
|
112
|
+
"fqnsFingerprint": "a144ed6ed2260f3ee46597ef881459c2ff16e4a4302864ef3c8730a6ee5999f3"
|
|
113
|
+
},
|
|
114
|
+
"08bab462d95928b7e71c616d9141f23217b8bc63886cbbb87ef7c6ea6678ce8d": {
|
|
115
|
+
"translations": {
|
|
116
|
+
"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))",
|
|
118
|
+
"version": "1"
|
|
119
|
+
},
|
|
120
|
+
"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));",
|
|
122
|
+
"version": "1"
|
|
123
|
+
},
|
|
124
|
+
"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));",
|
|
126
|
+
"version": "1"
|
|
127
|
+
},
|
|
128
|
+
"$": {
|
|
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))",
|
|
130
|
+
"version": "0"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"location": {
|
|
134
|
+
"api": {
|
|
135
|
+
"api": "moduleReadme",
|
|
136
|
+
"moduleFqn": "@aws-cdk/aws-iot-alpha"
|
|
137
|
+
},
|
|
138
|
+
"field": {
|
|
139
|
+
"field": "markdown",
|
|
140
|
+
"line": 65
|
|
141
|
+
}
|
|
142
|
+
},
|
|
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))",
|
|
146
|
+
"syntaxKindCounter": {
|
|
147
|
+
"10": 2,
|
|
148
|
+
"75": 12,
|
|
149
|
+
"104": 1,
|
|
150
|
+
"193": 1,
|
|
151
|
+
"194": 5,
|
|
152
|
+
"196": 2,
|
|
153
|
+
"197": 2,
|
|
154
|
+
"225": 1,
|
|
155
|
+
"226": 1,
|
|
156
|
+
"242": 1,
|
|
157
|
+
"243": 1,
|
|
158
|
+
"281": 1,
|
|
159
|
+
"290": 1
|
|
160
|
+
},
|
|
161
|
+
"fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
162
|
+
},
|
|
163
|
+
"f53a39bb7f087c11bf7334ebee21a2f22b8a013bc1592403087fa111495efb98": {
|
|
164
|
+
"translations": {
|
|
165
|
+
"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)",
|
|
167
|
+
"version": "1"
|
|
168
|
+
},
|
|
169
|
+
"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});",
|
|
171
|
+
"version": "1"
|
|
172
|
+
},
|
|
173
|
+
"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();",
|
|
175
|
+
"version": "1"
|
|
176
|
+
},
|
|
177
|
+
"$": {
|
|
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});",
|
|
179
|
+
"version": "0"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"location": {
|
|
183
|
+
"api": {
|
|
184
|
+
"api": "moduleReadme",
|
|
185
|
+
"moduleFqn": "@aws-cdk/aws-iot-alpha"
|
|
186
|
+
},
|
|
187
|
+
"field": {
|
|
188
|
+
"field": "markdown",
|
|
189
|
+
"line": 75
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"didCompile": false,
|
|
193
|
+
"fqnsReferenced": [
|
|
194
|
+
"@aws-cdk/aws-iot-actions-alpha.CloudWatchLogsAction",
|
|
195
|
+
"@aws-cdk/aws-iot-alpha.IAction",
|
|
196
|
+
"@aws-cdk/aws-iot-alpha.IotSql",
|
|
197
|
+
"@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
|
|
198
|
+
"@aws-cdk/aws-iot-alpha.TopicRule",
|
|
199
|
+
"@aws-cdk/aws-iot-alpha.TopicRuleProps",
|
|
200
|
+
"aws-cdk-lib.aws_logs.ILogGroup",
|
|
201
|
+
"aws-cdk-lib.aws_logs.LogGroup"
|
|
202
|
+
],
|
|
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});",
|
|
204
|
+
"syntaxKindCounter": {
|
|
205
|
+
"10": 6,
|
|
206
|
+
"75": 16,
|
|
207
|
+
"104": 2,
|
|
208
|
+
"193": 1,
|
|
209
|
+
"194": 5,
|
|
210
|
+
"196": 1,
|
|
211
|
+
"197": 3,
|
|
212
|
+
"225": 1,
|
|
213
|
+
"226": 1,
|
|
214
|
+
"242": 1,
|
|
215
|
+
"243": 1,
|
|
216
|
+
"254": 3,
|
|
217
|
+
"255": 3,
|
|
218
|
+
"256": 3,
|
|
219
|
+
"281": 2,
|
|
220
|
+
"290": 1
|
|
221
|
+
},
|
|
222
|
+
"fqnsFingerprint": "e3623d75a9efde9076679168343556f17fb328e7de6288d336992f67f95ee0db"
|
|
223
|
+
},
|
|
224
|
+
"13a44d58d3cf9be7a9d0210c8f7b3044c28662dd037a3f848b740dd78ba1c33d": {
|
|
225
|
+
"translations": {
|
|
226
|
+
"python": {
|
|
227
|
+
"source": "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 enabled=False\n)",
|
|
228
|
+
"version": "1"
|
|
229
|
+
},
|
|
230
|
+
"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});",
|
|
232
|
+
"version": "1"
|
|
233
|
+
},
|
|
234
|
+
"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();",
|
|
236
|
+
"version": "1"
|
|
237
|
+
},
|
|
238
|
+
"$": {
|
|
239
|
+
"source": "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});",
|
|
240
|
+
"version": "0"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"location": {
|
|
244
|
+
"api": {
|
|
245
|
+
"api": "moduleReadme",
|
|
246
|
+
"moduleFqn": "@aws-cdk/aws-iot-alpha"
|
|
247
|
+
},
|
|
248
|
+
"field": {
|
|
249
|
+
"field": "markdown",
|
|
250
|
+
"line": 90
|
|
251
|
+
}
|
|
252
|
+
},
|
|
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});",
|
|
256
|
+
"syntaxKindCounter": {
|
|
257
|
+
"10": 2,
|
|
258
|
+
"75": 7,
|
|
259
|
+
"91": 1,
|
|
260
|
+
"104": 1,
|
|
261
|
+
"193": 1,
|
|
262
|
+
"194": 3,
|
|
263
|
+
"196": 1,
|
|
264
|
+
"197": 1,
|
|
265
|
+
"226": 1,
|
|
266
|
+
"281": 2,
|
|
267
|
+
"290": 1
|
|
268
|
+
},
|
|
269
|
+
"fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
270
|
+
},
|
|
271
|
+
"e5111ee5cd857f4d3a3edb49316373dcf10cb4c7036fa61d14214a48671f1777": {
|
|
272
|
+
"translations": {
|
|
273
|
+
"python": {
|
|
274
|
+
"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)",
|
|
275
|
+
"version": "1"
|
|
276
|
+
},
|
|
277
|
+
"csharp": {
|
|
278
|
+
"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});",
|
|
279
|
+
"version": "1"
|
|
280
|
+
},
|
|
281
|
+
"java": {
|
|
282
|
+
"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();",
|
|
283
|
+
"version": "1"
|
|
284
|
+
},
|
|
285
|
+
"$": {
|
|
286
|
+
"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});",
|
|
287
|
+
"version": "0"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"location": {
|
|
291
|
+
"api": {
|
|
292
|
+
"api": "type",
|
|
293
|
+
"fqn": "@aws-cdk/aws-iot-alpha.IotSql"
|
|
294
|
+
},
|
|
295
|
+
"field": {
|
|
296
|
+
"field": "example"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"didCompile": false,
|
|
300
|
+
"fqnsReferenced": [
|
|
301
|
+
"@aws-cdk/aws-iot-actions-alpha.LambdaFunctionAction",
|
|
302
|
+
"@aws-cdk/aws-iot-alpha.IotSql",
|
|
303
|
+
"@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
|
|
304
|
+
"@aws-cdk/aws-iot-alpha.TopicRule",
|
|
305
|
+
"@aws-cdk/aws-iot-alpha.TopicRuleProps",
|
|
306
|
+
"aws-cdk-lib.aws_lambda.Code",
|
|
307
|
+
"aws-cdk-lib.aws_lambda.Code#fromInline",
|
|
308
|
+
"aws-cdk-lib.aws_lambda.Function",
|
|
309
|
+
"aws-cdk-lib.aws_lambda.FunctionProps",
|
|
310
|
+
"aws-cdk-lib.aws_lambda.IFunction",
|
|
311
|
+
"aws-cdk-lib.aws_lambda.Runtime",
|
|
312
|
+
"aws-cdk-lib.aws_lambda.Runtime#NODEJS_14_X"
|
|
313
|
+
],
|
|
314
|
+
"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});",
|
|
315
|
+
"syntaxKindCounter": {
|
|
316
|
+
"10": 7,
|
|
317
|
+
"14": 1,
|
|
318
|
+
"75": 25,
|
|
319
|
+
"104": 2,
|
|
320
|
+
"192": 1,
|
|
321
|
+
"193": 2,
|
|
322
|
+
"194": 9,
|
|
323
|
+
"196": 2,
|
|
324
|
+
"197": 3,
|
|
325
|
+
"225": 1,
|
|
326
|
+
"226": 1,
|
|
327
|
+
"242": 1,
|
|
328
|
+
"243": 1,
|
|
329
|
+
"254": 3,
|
|
330
|
+
"255": 3,
|
|
331
|
+
"256": 3,
|
|
332
|
+
"281": 5,
|
|
333
|
+
"290": 1
|
|
334
|
+
},
|
|
335
|
+
"fqnsFingerprint": "a144ed6ed2260f3ee46597ef881459c2ff16e4a4302864ef3c8730a6ee5999f3"
|
|
336
|
+
},
|
|
337
|
+
"2cf8594367c3c49d7e1fb61e5d9b78eeae26802e36c83af9d7a69e1ee32b4da4": {
|
|
338
|
+
"translations": {
|
|
339
|
+
"python": {
|
|
340
|
+
"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)",
|
|
341
|
+
"version": "1"
|
|
342
|
+
},
|
|
343
|
+
"csharp": {
|
|
344
|
+
"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});",
|
|
345
|
+
"version": "1"
|
|
346
|
+
},
|
|
347
|
+
"java": {
|
|
348
|
+
"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();",
|
|
349
|
+
"version": "1"
|
|
350
|
+
},
|
|
351
|
+
"$": {
|
|
352
|
+
"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});",
|
|
353
|
+
"version": "0"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"location": {
|
|
357
|
+
"api": {
|
|
358
|
+
"api": "type",
|
|
359
|
+
"fqn": "@aws-cdk/aws-iot-alpha.TopicRule"
|
|
360
|
+
},
|
|
361
|
+
"field": {
|
|
362
|
+
"field": "example"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"didCompile": false,
|
|
366
|
+
"fqnsReferenced": [
|
|
367
|
+
"@aws-cdk/aws-iot-actions-alpha.LambdaFunctionAction",
|
|
368
|
+
"@aws-cdk/aws-iot-alpha.IotSql",
|
|
369
|
+
"@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
|
|
370
|
+
"@aws-cdk/aws-iot-alpha.TopicRule",
|
|
371
|
+
"@aws-cdk/aws-iot-alpha.TopicRuleProps",
|
|
372
|
+
"aws-cdk-lib.aws_lambda.Code",
|
|
373
|
+
"aws-cdk-lib.aws_lambda.Code#fromInline",
|
|
374
|
+
"aws-cdk-lib.aws_lambda.Function",
|
|
375
|
+
"aws-cdk-lib.aws_lambda.FunctionProps",
|
|
376
|
+
"aws-cdk-lib.aws_lambda.IFunction",
|
|
377
|
+
"aws-cdk-lib.aws_lambda.Runtime",
|
|
378
|
+
"aws-cdk-lib.aws_lambda.Runtime#NODEJS_14_X"
|
|
379
|
+
],
|
|
380
|
+
"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});",
|
|
381
|
+
"syntaxKindCounter": {
|
|
382
|
+
"10": 7,
|
|
383
|
+
"14": 1,
|
|
384
|
+
"75": 25,
|
|
385
|
+
"104": 2,
|
|
386
|
+
"192": 1,
|
|
387
|
+
"193": 2,
|
|
388
|
+
"194": 9,
|
|
389
|
+
"196": 2,
|
|
390
|
+
"197": 3,
|
|
391
|
+
"225": 1,
|
|
392
|
+
"226": 1,
|
|
393
|
+
"242": 1,
|
|
394
|
+
"243": 1,
|
|
395
|
+
"254": 3,
|
|
396
|
+
"255": 3,
|
|
397
|
+
"256": 3,
|
|
398
|
+
"281": 5,
|
|
399
|
+
"290": 1
|
|
400
|
+
},
|
|
401
|
+
"fqnsFingerprint": "a144ed6ed2260f3ee46597ef881459c2ff16e4a4302864ef3c8730a6ee5999f3"
|
|
402
|
+
},
|
|
403
|
+
"f07bef2ad7a0246f85faf9a4b05ce7c6daba90954b3030b391f1fb3df22b8785": {
|
|
404
|
+
"translations": {
|
|
405
|
+
"python": {
|
|
406
|
+
"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)",
|
|
407
|
+
"version": "1"
|
|
408
|
+
},
|
|
409
|
+
"csharp": {
|
|
410
|
+
"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});",
|
|
411
|
+
"version": "1"
|
|
412
|
+
},
|
|
413
|
+
"java": {
|
|
414
|
+
"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();",
|
|
415
|
+
"version": "1"
|
|
416
|
+
},
|
|
417
|
+
"$": {
|
|
418
|
+
"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});",
|
|
419
|
+
"version": "0"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"location": {
|
|
423
|
+
"api": {
|
|
424
|
+
"api": "type",
|
|
425
|
+
"fqn": "@aws-cdk/aws-iot-alpha.TopicRuleProps"
|
|
426
|
+
},
|
|
427
|
+
"field": {
|
|
428
|
+
"field": "example"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
"didCompile": false,
|
|
432
|
+
"fqnsReferenced": [
|
|
433
|
+
"@aws-cdk/aws-iot-actions-alpha.LambdaFunctionAction",
|
|
434
|
+
"@aws-cdk/aws-iot-alpha.IotSql",
|
|
435
|
+
"@aws-cdk/aws-iot-alpha.IotSql#fromStringAsVer20160323",
|
|
436
|
+
"@aws-cdk/aws-iot-alpha.TopicRule",
|
|
437
|
+
"@aws-cdk/aws-iot-alpha.TopicRuleProps",
|
|
438
|
+
"aws-cdk-lib.aws_lambda.Code",
|
|
439
|
+
"aws-cdk-lib.aws_lambda.Code#fromInline",
|
|
440
|
+
"aws-cdk-lib.aws_lambda.Function",
|
|
441
|
+
"aws-cdk-lib.aws_lambda.FunctionProps",
|
|
442
|
+
"aws-cdk-lib.aws_lambda.IFunction",
|
|
443
|
+
"aws-cdk-lib.aws_lambda.Runtime",
|
|
444
|
+
"aws-cdk-lib.aws_lambda.Runtime#NODEJS_14_X"
|
|
445
|
+
],
|
|
446
|
+
"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});",
|
|
447
|
+
"syntaxKindCounter": {
|
|
448
|
+
"10": 7,
|
|
449
|
+
"14": 1,
|
|
450
|
+
"75": 25,
|
|
451
|
+
"104": 2,
|
|
452
|
+
"192": 1,
|
|
453
|
+
"193": 2,
|
|
454
|
+
"194": 9,
|
|
455
|
+
"196": 2,
|
|
456
|
+
"197": 3,
|
|
457
|
+
"225": 1,
|
|
458
|
+
"226": 1,
|
|
459
|
+
"242": 1,
|
|
460
|
+
"243": 1,
|
|
461
|
+
"254": 3,
|
|
462
|
+
"255": 3,
|
|
463
|
+
"256": 3,
|
|
464
|
+
"281": 5,
|
|
465
|
+
"290": 1
|
|
466
|
+
},
|
|
467
|
+
"fqnsFingerprint": "a144ed6ed2260f3ee46597ef881459c2ff16e4a4302864ef3c8730a6ee5999f3"
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ const func = new lambda.Function(this, 'MyFunction', {
|
|
|
54
54
|
|
|
55
55
|
new iot.TopicRule(this, 'TopicRule', {
|
|
56
56
|
topicRuleName: 'MyTopicRule', // optional
|
|
57
|
-
description: 'invokes the lambda
|
|
57
|
+
description: 'invokes the lambda function', // optional
|
|
58
58
|
sql: iot.IotSql.fromStringAsVer20160323("SELECT topic(2) as device_id, timestamp() as timestamp FROM 'device/+/data'"),
|
|
59
59
|
actions: [new actions.LambdaFunctionAction(func)],
|
|
60
60
|
});
|
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.
|
|
48
|
+
IotSql[_a] = { fqn: "@aws-cdk/aws-iot-alpha.IotSql", version: "2.3.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.
|
|
93
|
+
TopicRule[_a] = { fqn: "@aws-cdk/aws-iot-alpha.TopicRule", version: "2.3.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.
|
|
3
|
+
"version": "2.3.0-alpha.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The CDK Construct Library for AWS::IoT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -74,19 +74,19 @@
|
|
|
74
74
|
},
|
|
75
75
|
"license": "Apache-2.0",
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@aws-cdk/cdk-build-tools": "2.
|
|
78
|
-
"@aws-cdk/cdk-integ-tools": "2.
|
|
79
|
-
"@aws-cdk/cfn2ts": "2.
|
|
80
|
-
"@aws-cdk/pkglint": "2.
|
|
81
|
-
"@types/jest": "^27.0.
|
|
82
|
-
"jest": "^27.3
|
|
83
|
-
"aws-cdk-lib": "2.
|
|
77
|
+
"@aws-cdk/cdk-build-tools": "2.3.0",
|
|
78
|
+
"@aws-cdk/cdk-integ-tools": "2.3.0",
|
|
79
|
+
"@aws-cdk/cfn2ts": "2.3.0",
|
|
80
|
+
"@aws-cdk/pkglint": "2.3.0",
|
|
81
|
+
"@types/jest": "^27.0.3",
|
|
82
|
+
"jest": "^27.4.3",
|
|
83
|
+
"aws-cdk-lib": "2.3.0",
|
|
84
84
|
"constructs": "^10.0.0"
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {},
|
|
87
87
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"aws-cdk-lib": "^2.
|
|
89
|
+
"aws-cdk-lib": "^2.3.0",
|
|
90
90
|
"constructs": "^10.0.0"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|