@aws-cdk/aws-iotevents-actions-alpha 2.40.0-alpha.0 → 2.41.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 +4 -4
- package/.jsii.tabl.json.gz +0 -0
- package/lib/clear-timer-action.js +1 -1
- package/lib/lambda-invoke-action.js +1 -1
- package/lib/reset-timer-action.js +1 -1
- package/lib/set-timer-action.js +1 -1
- package/lib/set-variable-action.js +1 -1
- package/lib/timer-duration.js +1 -1
- package/package.json +9 -9
- package/.jsii.tabl.json +0 -689
package/.jsii
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"url": "https://aws.amazon.com"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@aws-cdk/aws-iotevents-alpha": "2.
|
|
12
|
-
"aws-cdk-lib": "^2.
|
|
11
|
+
"@aws-cdk/aws-iotevents-alpha": "2.41.0-alpha.0",
|
|
12
|
+
"aws-cdk-lib": "^2.41.0",
|
|
13
13
|
"constructs": "^10.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencyClosure": {
|
|
@@ -3056,7 +3056,7 @@
|
|
|
3056
3056
|
"stability": "experimental"
|
|
3057
3057
|
},
|
|
3058
3058
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
3059
|
-
"jsiiVersion": "1.
|
|
3059
|
+
"jsiiVersion": "1.67.0 (build 2c027f5)",
|
|
3060
3060
|
"keywords": [
|
|
3061
3061
|
"aws",
|
|
3062
3062
|
"cdk",
|
|
@@ -3421,6 +3421,6 @@
|
|
|
3421
3421
|
"symbolId": "lib/timer-duration:TimerDuration"
|
|
3422
3422
|
}
|
|
3423
3423
|
},
|
|
3424
|
-
"version": "2.
|
|
3424
|
+
"version": "2.41.0-alpha.0",
|
|
3425
3425
|
"fingerprint": "**********"
|
|
3426
3426
|
}
|
|
Binary file
|
|
@@ -28,5 +28,5 @@ class ClearTimerAction {
|
|
|
28
28
|
}
|
|
29
29
|
exports.ClearTimerAction = ClearTimerAction;
|
|
30
30
|
_a = JSII_RTTI_SYMBOL_1;
|
|
31
|
-
ClearTimerAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.ClearTimerAction", version: "2.
|
|
31
|
+
ClearTimerAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.ClearTimerAction", version: "2.41.0-alpha.0" };
|
|
32
32
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xlYXItdGltZXItYWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY2xlYXItdGltZXItYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBR0E7O0dBRUc7QUFDSCxNQUFhLGdCQUFnQjtJQUMzQjs7T0FFRztJQUNILFlBQTZCLFNBQWlCO1FBQWpCLGNBQVMsR0FBVCxTQUFTLENBQVE7S0FBSTtJQUVsRDs7T0FFRztJQUNJLEtBQUssQ0FBQyxNQUFpQixFQUFFLFFBQXFDO1FBQ25FLE9BQU87WUFDTCxhQUFhLEVBQUU7Z0JBQ2IsVUFBVSxFQUFFO29CQUNWLFNBQVMsRUFBRSxJQUFJLENBQUMsU0FBUztpQkFDMUI7YUFDRjtTQUNGLENBQUM7S0FDSDs7QUFqQkgsNENBa0JDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgaW90ZXZlbnRzIGZyb20gJ0Bhd3MtY2RrL2F3cy1pb3RldmVudHMtYWxwaGEnO1xuaW1wb3J0IHsgQ29uc3RydWN0IH0gZnJvbSAnY29uc3RydWN0cyc7XG5cbi8qKlxuICogVGhlIGFjdGlvbiB0byBkZWxldGUgYW4gZXhpc3RpbmcgdGltZXIuXG4gKi9cbmV4cG9ydCBjbGFzcyBDbGVhclRpbWVyQWN0aW9uIGltcGxlbWVudHMgaW90ZXZlbnRzLklBY3Rpb24ge1xuICAvKipcbiAgICogQHBhcmFtIHRpbWVyTmFtZSB0aGUgbmFtZSBvZiB0aGUgdGltZXJcbiAgICovXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgdGltZXJOYW1lOiBzdHJpbmcpIHt9XG5cbiAgLyoqXG4gICAqIEBpbnRlcm5hbFxuICAgKi9cbiAgcHVibGljIF9iaW5kKF9zY29wZTogQ29uc3RydWN0LCBfb3B0aW9uczogaW90ZXZlbnRzLkFjdGlvbkJpbmRPcHRpb25zKTogaW90ZXZlbnRzLkFjdGlvbkNvbmZpZyB7XG4gICAgcmV0dXJuIHtcbiAgICAgIGNvbmZpZ3VyYXRpb246IHtcbiAgICAgICAgY2xlYXJUaW1lcjoge1xuICAgICAgICAgIHRpbWVyTmFtZTogdGhpcy50aW1lck5hbWUsXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
|
|
@@ -29,5 +29,5 @@ class LambdaInvokeAction {
|
|
|
29
29
|
}
|
|
30
30
|
exports.LambdaInvokeAction = LambdaInvokeAction;
|
|
31
31
|
_a = JSII_RTTI_SYMBOL_1;
|
|
32
|
-
LambdaInvokeAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.LambdaInvokeAction", version: "2.
|
|
32
|
+
LambdaInvokeAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.LambdaInvokeAction", version: "2.41.0-alpha.0" };
|
|
33
33
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFtYmRhLWludm9rZS1hY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJsYW1iZGEtaW52b2tlLWFjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUlBOztHQUVHO0FBQ0gsTUFBYSxrQkFBa0I7SUFDN0I7O09BRUc7SUFDSCxZQUE2QixJQUFzQjtRQUF0QixTQUFJLEdBQUosSUFBSSxDQUFrQjtLQUNsRDtJQUVEOztPQUVHO0lBQ0ksS0FBSyxDQUFDLE1BQWlCLEVBQUUsT0FBb0M7UUFDbEUsSUFBSSxDQUFDLElBQUksQ0FBQyxXQUFXLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3BDLE9BQU87WUFDTCxhQUFhLEVBQUU7Z0JBQ2IsTUFBTSxFQUFFO29CQUNOLFdBQVcsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLFdBQVc7aUJBQ25DO2FBQ0Y7U0FDRixDQUFDO0tBQ0g7O0FBbkJILGdEQW9CQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGlvdGV2ZW50cyBmcm9tICdAYXdzLWNkay9hd3MtaW90ZXZlbnRzLWFscGhhJztcbmltcG9ydCAqIGFzIGxhbWJkYSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtbGFtYmRhJztcbmltcG9ydCB7IENvbnN0cnVjdCB9IGZyb20gJ2NvbnN0cnVjdHMnO1xuXG4vKipcbiAqIFRoZSBhY3Rpb24gdG8gd3JpdGUgdGhlIGRhdGEgdG8gYW4gQVdTIExhbWJkYSBmdW5jdGlvbi5cbiAqL1xuZXhwb3J0IGNsYXNzIExhbWJkYUludm9rZUFjdGlvbiBpbXBsZW1lbnRzIGlvdGV2ZW50cy5JQWN0aW9uIHtcbiAgLyoqXG4gICAqIEBwYXJhbSBmdW5jIHRoZSBBV1MgTGFtYmRhIGZ1bmN0aW9uIHRvIGJlIGludm9rZWQgYnkgdGhpcyBhY3Rpb25cbiAgICovXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgZnVuYzogbGFtYmRhLklGdW5jdGlvbikge1xuICB9XG5cbiAgLyoqXG4gICAqIEBpbnRlcm5hbFxuICAgKi9cbiAgcHVibGljIF9iaW5kKF9zY29wZTogQ29uc3RydWN0LCBvcHRpb25zOiBpb3RldmVudHMuQWN0aW9uQmluZE9wdGlvbnMpOiBpb3RldmVudHMuQWN0aW9uQ29uZmlnIHtcbiAgICB0aGlzLmZ1bmMuZ3JhbnRJbnZva2Uob3B0aW9ucy5yb2xlKTtcbiAgICByZXR1cm4ge1xuICAgICAgY29uZmlndXJhdGlvbjoge1xuICAgICAgICBsYW1iZGE6IHtcbiAgICAgICAgICBmdW5jdGlvbkFybjogdGhpcy5mdW5jLmZ1bmN0aW9uQXJuLFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9O1xuICB9XG59XG4iXX0=
|
|
@@ -28,5 +28,5 @@ class ResetTimerAction {
|
|
|
28
28
|
}
|
|
29
29
|
exports.ResetTimerAction = ResetTimerAction;
|
|
30
30
|
_a = JSII_RTTI_SYMBOL_1;
|
|
31
|
-
ResetTimerAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.ResetTimerAction", version: "2.
|
|
31
|
+
ResetTimerAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.ResetTimerAction", version: "2.41.0-alpha.0" };
|
|
32
32
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzZXQtdGltZXItYWN0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVzZXQtdGltZXItYWN0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBR0E7O0dBRUc7QUFDSCxNQUFhLGdCQUFnQjtJQUMzQjs7T0FFRztJQUNILFlBQTZCLFNBQWlCO1FBQWpCLGNBQVMsR0FBVCxTQUFTLENBQVE7S0FBSTtJQUVsRDs7T0FFRztJQUNJLEtBQUssQ0FBQyxNQUFpQixFQUFFLFFBQXFDO1FBQ25FLE9BQU87WUFDTCxhQUFhLEVBQUU7Z0JBQ2IsVUFBVSxFQUFFO29CQUNWLFNBQVMsRUFBRSxJQUFJLENBQUMsU0FBUztpQkFDMUI7YUFDRjtTQUNGLENBQUM7S0FDSDs7QUFqQkgsNENBa0JDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgaW90ZXZlbnRzIGZyb20gJ0Bhd3MtY2RrL2F3cy1pb3RldmVudHMtYWxwaGEnO1xuaW1wb3J0IHsgQ29uc3RydWN0IH0gZnJvbSAnY29uc3RydWN0cyc7XG5cbi8qKlxuICogVGhlIGFjdGlvbiB0byByZXNldCBhbiBleGlzdGluZyB0aW1lci5cbiAqL1xuZXhwb3J0IGNsYXNzIFJlc2V0VGltZXJBY3Rpb24gaW1wbGVtZW50cyBpb3RldmVudHMuSUFjdGlvbiB7XG4gIC8qKlxuICAgKiBAcGFyYW0gdGltZXJOYW1lIHRoZSBuYW1lIG9mIHRoZSB0aW1lclxuICAgKi9cbiAgY29uc3RydWN0b3IocHJpdmF0ZSByZWFkb25seSB0aW1lck5hbWU6IHN0cmluZykge31cblxuICAvKipcbiAgICogQGludGVybmFsXG4gICAqL1xuICBwdWJsaWMgX2JpbmQoX3Njb3BlOiBDb25zdHJ1Y3QsIF9vcHRpb25zOiBpb3RldmVudHMuQWN0aW9uQmluZE9wdGlvbnMpOiBpb3RldmVudHMuQWN0aW9uQ29uZmlnIHtcbiAgICByZXR1cm4ge1xuICAgICAgY29uZmlndXJhdGlvbjoge1xuICAgICAgICByZXNldFRpbWVyOiB7XG4gICAgICAgICAgdGltZXJOYW1lOiB0aGlzLnRpbWVyTmFtZSxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfTtcbiAgfVxufVxuIl19
|
package/lib/set-timer-action.js
CHANGED
|
@@ -41,5 +41,5 @@ class SetTimerAction {
|
|
|
41
41
|
}
|
|
42
42
|
exports.SetTimerAction = SetTimerAction;
|
|
43
43
|
_a = JSII_RTTI_SYMBOL_1;
|
|
44
|
-
SetTimerAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.SetTimerAction", version: "2.
|
|
44
|
+
SetTimerAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.SetTimerAction", version: "2.41.0-alpha.0" };
|
|
45
45
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0LXRpbWVyLWFjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNldC10aW1lci1hY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBSUE7O0dBRUc7QUFDSCxNQUFhLGNBQWM7SUFDekI7OztPQUdHO0lBQ0gsWUFDbUIsU0FBaUIsRUFDakIsYUFBNEI7UUFENUIsY0FBUyxHQUFULFNBQVMsQ0FBUTtRQUNqQixrQkFBYSxHQUFiLGFBQWEsQ0FBZTs7Ozs7OytDQVBwQyxjQUFjOzs7O0tBU3hCO0lBRUQ7O09BRUc7SUFDSSxLQUFLLENBQUMsTUFBaUIsRUFBRSxRQUFxQztRQUNuRSxPQUFPO1lBQ0wsYUFBYSxFQUFFO2dCQUNiLFFBQVEsRUFBRTtvQkFDUixTQUFTLEVBQUUsSUFBSSxDQUFDLFNBQVM7b0JBQ3pCLGtCQUFrQixFQUFFLElBQUksQ0FBQyxhQUFhLENBQUMsS0FBSyxFQUFFO2lCQUMvQzthQUNGO1NBQ0YsQ0FBQztLQUNIOztBQXZCSCx3Q0F3QkMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBpb3RldmVudHMgZnJvbSAnQGF3cy1jZGsvYXdzLWlvdGV2ZW50cy1hbHBoYSc7XG5pbXBvcnQgeyBDb25zdHJ1Y3QgfSBmcm9tICdjb25zdHJ1Y3RzJztcbmltcG9ydCB7IFRpbWVyRHVyYXRpb24gfSBmcm9tICcuL3RpbWVyLWR1cmF0aW9uJztcblxuLyoqXG4gKiBUaGUgYWN0aW9uIHRvIGNyZWF0ZSBhIHRpbWVyIHdpdGggZHVyYXRpb24gaW4gc2Vjb25kcy5cbiAqL1xuZXhwb3J0IGNsYXNzIFNldFRpbWVyQWN0aW9uIGltcGxlbWVudHMgaW90ZXZlbnRzLklBY3Rpb24ge1xuICAvKipcbiAgICogQHBhcmFtIHRpbWVyTmFtZSB0aGUgbmFtZSBvZiB0aGUgdGltZXJcbiAgICogQHBhcmFtIHRpbWVyRHVyYXRpb24gdGhlIGR1cmF0aW9uIG9mIHRoZSB0aW1lclxuICAgKi9cbiAgY29uc3RydWN0b3IoXG4gICAgcHJpdmF0ZSByZWFkb25seSB0aW1lck5hbWU6IHN0cmluZyxcbiAgICBwcml2YXRlIHJlYWRvbmx5IHRpbWVyRHVyYXRpb246IFRpbWVyRHVyYXRpb24sXG4gICkge1xuICB9XG5cbiAgLyoqXG4gICAqIEBpbnRlcm5hbFxuICAgKi9cbiAgcHVibGljIF9iaW5kKF9zY29wZTogQ29uc3RydWN0LCBfb3B0aW9uczogaW90ZXZlbnRzLkFjdGlvbkJpbmRPcHRpb25zKTogaW90ZXZlbnRzLkFjdGlvbkNvbmZpZyB7XG4gICAgcmV0dXJuIHtcbiAgICAgIGNvbmZpZ3VyYXRpb246IHtcbiAgICAgICAgc2V0VGltZXI6IHtcbiAgICAgICAgICB0aW1lck5hbWU6IHRoaXMudGltZXJOYW1lLFxuICAgICAgICAgIGR1cmF0aW9uRXhwcmVzc2lvbjogdGhpcy50aW1lckR1cmF0aW9uLl9iaW5kKCksXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgIH07XG4gIH1cbn1cbiJdfQ==
|
|
@@ -31,5 +31,5 @@ class SetVariableAction {
|
|
|
31
31
|
}
|
|
32
32
|
exports.SetVariableAction = SetVariableAction;
|
|
33
33
|
_a = JSII_RTTI_SYMBOL_1;
|
|
34
|
-
SetVariableAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction", version: "2.
|
|
34
|
+
SetVariableAction[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction", version: "2.41.0-alpha.0" };
|
|
35
35
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0LXZhcmlhYmxlLWFjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNldC12YXJpYWJsZS1hY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFHQTs7R0FFRztBQUNILE1BQWEsaUJBQWlCO0lBQzVCOzs7T0FHRztJQUNILFlBQTZCLFlBQW9CLEVBQW1CLEtBQTJCO1FBQWxFLGlCQUFZLEdBQVosWUFBWSxDQUFRO1FBQW1CLFVBQUssR0FBTCxLQUFLLENBQXNCO0tBQzlGO0lBRUQ7O09BRUc7SUFDSSxLQUFLLENBQUMsTUFBaUIsRUFBRSxRQUFxQztRQUNuRSxPQUFPO1lBQ0wsYUFBYSxFQUFFO2dCQUNiLFdBQVcsRUFBRTtvQkFDWCxZQUFZLEVBQUUsSUFBSSxDQUFDLFlBQVk7b0JBQy9CLEtBQUssRUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLFFBQVEsRUFBRTtpQkFDN0I7YUFDRjtTQUNGLENBQUM7S0FDSDs7QUFwQkgsOENBcUJDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgaW90ZXZlbnRzIGZyb20gJ0Bhd3MtY2RrL2F3cy1pb3RldmVudHMtYWxwaGEnO1xuaW1wb3J0IHsgQ29uc3RydWN0IH0gZnJvbSAnY29uc3RydWN0cyc7XG5cbi8qKlxuICogVGhlIGFjdGlvbiB0byBjcmVhdGUgYSB2YXJpYWJsZSB3aXRoIGEgc3BlY2lmaWVkIHZhbHVlLlxuICovXG5leHBvcnQgY2xhc3MgU2V0VmFyaWFibGVBY3Rpb24gaW1wbGVtZW50cyBpb3RldmVudHMuSUFjdGlvbiB7XG4gIC8qKlxuICAgKiBAcGFyYW0gdmFyaWFibGVOYW1lIHRoZSBuYW1lIG9mIHRoZSB2YXJpYWJsZVxuICAgKiBAcGFyYW0gdmFsdWUgdGhlIG5ldyB2YWx1ZSBvZiB0aGUgdmFyaWFibGVcbiAgICovXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgdmFyaWFibGVOYW1lOiBzdHJpbmcsIHByaXZhdGUgcmVhZG9ubHkgdmFsdWU6IGlvdGV2ZW50cy5FeHByZXNzaW9uKSB7XG4gIH1cblxuICAvKipcbiAgICogQGludGVybmFsXG4gICAqL1xuICBwdWJsaWMgX2JpbmQoX3Njb3BlOiBDb25zdHJ1Y3QsIF9vcHRpb25zOiBpb3RldmVudHMuQWN0aW9uQmluZE9wdGlvbnMpOiBpb3RldmVudHMuQWN0aW9uQ29uZmlnIHtcbiAgICByZXR1cm4ge1xuICAgICAgY29uZmlndXJhdGlvbjoge1xuICAgICAgICBzZXRWYXJpYWJsZToge1xuICAgICAgICAgIHZhcmlhYmxlTmFtZTogdGhpcy52YXJpYWJsZU5hbWUsXG4gICAgICAgICAgdmFsdWU6IHRoaXMudmFsdWUuZXZhbHVhdGUoKSxcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgfTtcbiAgfVxufVxuIl19
|
package/lib/timer-duration.js
CHANGED
|
@@ -40,7 +40,7 @@ class TimerDuration {
|
|
|
40
40
|
}
|
|
41
41
|
exports.TimerDuration = TimerDuration;
|
|
42
42
|
_a = JSII_RTTI_SYMBOL_1;
|
|
43
|
-
TimerDuration[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.TimerDuration", version: "2.
|
|
43
|
+
TimerDuration[_a] = { fqn: "@aws-cdk/aws-iotevents-actions-alpha.TimerDuration", version: "2.41.0-alpha.0" };
|
|
44
44
|
class TimerDurationImpl extends TimerDuration {
|
|
45
45
|
constructor(durationExpression) {
|
|
46
46
|
super();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-cdk/aws-iotevents-actions-alpha",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.41.0-alpha.0",
|
|
4
4
|
"description": "Receipt Detector Model actions for AWS IoT Events",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -74,21 +74,21 @@
|
|
|
74
74
|
},
|
|
75
75
|
"license": "Apache-2.0",
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@aws-cdk/cdk-build-tools": "2.
|
|
78
|
-
"@aws-cdk/integ-runner": "2.
|
|
79
|
-
"@aws-cdk/pkglint": "2.
|
|
77
|
+
"@aws-cdk/cdk-build-tools": "2.41.0",
|
|
78
|
+
"@aws-cdk/integ-runner": "2.41.0",
|
|
79
|
+
"@aws-cdk/pkglint": "2.41.0",
|
|
80
80
|
"@types/jest": "^27.5.2",
|
|
81
81
|
"jest": "^27.5.1",
|
|
82
|
-
"aws-cdk-lib": "2.
|
|
82
|
+
"aws-cdk-lib": "2.41.0",
|
|
83
83
|
"constructs": "^10.0.0",
|
|
84
|
-
"@aws-cdk/integ-tests-alpha": "2.
|
|
85
|
-
"@aws-cdk/aws-iotevents-alpha": "2.
|
|
84
|
+
"@aws-cdk/integ-tests-alpha": "2.41.0-alpha.0",
|
|
85
|
+
"@aws-cdk/aws-iotevents-alpha": "2.41.0-alpha.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {},
|
|
88
88
|
"homepage": "https://github.com/aws/aws-cdk",
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@aws-cdk/aws-iotevents-alpha": "2.
|
|
91
|
-
"aws-cdk-lib": "^2.
|
|
90
|
+
"@aws-cdk/aws-iotevents-alpha": "2.41.0-alpha.0",
|
|
91
|
+
"aws-cdk-lib": "^2.41.0",
|
|
92
92
|
"constructs": "^10.0.0"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
package/.jsii.tabl.json
DELETED
|
@@ -1,689 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "2",
|
|
3
|
-
"toolVersion": "1.66.0",
|
|
4
|
-
"snippets": {
|
|
5
|
-
"fc6dc0841f59abcbd3b89d67d5a85899a6d2f7207e37fc85998e9ac0bcee354b": {
|
|
6
|
-
"translations": {
|
|
7
|
-
"python": {
|
|
8
|
-
"source": "import aws_cdk.aws_iotevents_alpha as iotevents\nimport aws_cdk.aws_iotevents_actions_alpha as actions\n\n# input: iotevents.IInput\n\nstate = iotevents.State(\n state_name=\"MyState\",\n on_enter=[iotevents.Event(\n event_name=\"test-event\",\n condition=iotevents.Expression.current_input(input),\n actions=[\n actions.SetTimerAction(\"MyTimer\", {\n \"duration\": cdk.Duration.seconds(60)\n })\n ]\n )]\n)",
|
|
9
|
-
"version": "2"
|
|
10
|
-
},
|
|
11
|
-
"csharp": {
|
|
12
|
-
"source": "using Amazon.CDK.AWS.IoTEvents.Alpha;\nusing Amazon.CDK.AWS.IoTEvents.Actions.Alpha;\n\nIInput input;\n\nState state = new State(new StateProps {\n StateName = \"MyState\",\n OnEnter = new [] { new Event {\n EventName = \"test-event\",\n Condition = Expression.CurrentInput(input),\n Actions = new [] {\n new SetTimerAction(\"MyTimer\", new Dictionary<string, object> {\n { \"duration\", cdk.Duration.Seconds(60) }\n }) }\n } }\n});",
|
|
13
|
-
"version": "1"
|
|
14
|
-
},
|
|
15
|
-
"java": {
|
|
16
|
-
"source": "import software.amazon.awscdk.services.iotevents.alpha.*;\nimport software.amazon.awscdk.services.iotevents.actions.alpha.*;\n\nIInput input;\n\nState state = State.Builder.create()\n .stateName(\"MyState\")\n .onEnter(List.of(Event.builder()\n .eventName(\"test-event\")\n .condition(Expression.currentInput(input))\n .actions(List.of(\n new SetTimerAction(\"MyTimer\", Map.of(\n \"duration\", cdk.Duration.seconds(60)))))\n .build()))\n .build();",
|
|
17
|
-
"version": "1"
|
|
18
|
-
},
|
|
19
|
-
"go": {
|
|
20
|
-
"source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\nimport actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"\n\nvar input iInput\n\nstate := iotevents.NewState(&stateProps{\n\tstateName: jsii.String(\"MyState\"),\n\tonEnter: []event{\n\t\t&event{\n\t\t\teventName: jsii.String(\"test-event\"),\n\t\t\tcondition: iotevents.expression.currentInput(input),\n\t\t\tactions: []iAction{\n\t\t\t\tactions.NewSetTimerAction(jsii.String(\"MyTimer\"), map[string]interface{}{\n\t\t\t\t\t\"duration\": cdk.Duration_seconds(jsii.Number(60)),\n\t\t\t\t}),\n\t\t\t},\n\t\t},\n\t},\n})",
|
|
21
|
-
"version": "1"
|
|
22
|
-
},
|
|
23
|
-
"$": {
|
|
24
|
-
"source": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
|
|
25
|
-
"version": "0"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"location": {
|
|
29
|
-
"api": {
|
|
30
|
-
"api": "moduleReadme",
|
|
31
|
-
"moduleFqn": "@aws-cdk/aws-iotevents-actions-alpha"
|
|
32
|
-
},
|
|
33
|
-
"field": {
|
|
34
|
-
"field": "markdown",
|
|
35
|
-
"line": 35
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"didCompile": false,
|
|
39
|
-
"fqnsReferenced": [
|
|
40
|
-
"@aws-cdk/aws-iotevents-actions-alpha.SetTimerAction",
|
|
41
|
-
"@aws-cdk/aws-iotevents-actions-alpha.TimerDuration",
|
|
42
|
-
"@aws-cdk/aws-iotevents-alpha.Expression",
|
|
43
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
|
|
44
|
-
"@aws-cdk/aws-iotevents-alpha.IInput",
|
|
45
|
-
"@aws-cdk/aws-iotevents-alpha.State",
|
|
46
|
-
"@aws-cdk/aws-iotevents-alpha.StateProps"
|
|
47
|
-
],
|
|
48
|
-
"fullSource": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
|
|
49
|
-
"syntaxKindCounter": {
|
|
50
|
-
"8": 1,
|
|
51
|
-
"10": 5,
|
|
52
|
-
"75": 23,
|
|
53
|
-
"130": 1,
|
|
54
|
-
"153": 1,
|
|
55
|
-
"169": 1,
|
|
56
|
-
"192": 2,
|
|
57
|
-
"193": 3,
|
|
58
|
-
"194": 6,
|
|
59
|
-
"196": 2,
|
|
60
|
-
"197": 2,
|
|
61
|
-
"225": 2,
|
|
62
|
-
"242": 2,
|
|
63
|
-
"243": 2,
|
|
64
|
-
"254": 2,
|
|
65
|
-
"255": 2,
|
|
66
|
-
"256": 2,
|
|
67
|
-
"281": 6,
|
|
68
|
-
"290": 1
|
|
69
|
-
},
|
|
70
|
-
"fqnsFingerprint": "48e50a49af3b5e9a04db9d56541e6e8c085e79c300a451bf1a59eca0cadf6db9"
|
|
71
|
-
},
|
|
72
|
-
"dd7c802b0c91d7071531c530569e661c47f104c714b45eb34bc596f4dfdc8e9f": {
|
|
73
|
-
"translations": {
|
|
74
|
-
"python": {
|
|
75
|
-
"source": "actions.SetTimerAction(\"MyTimer\",\n duration_expression=iotevents.Expression.input_attribute(input, \"payload.durationSeconds\")\n)",
|
|
76
|
-
"version": "2"
|
|
77
|
-
},
|
|
78
|
-
"csharp": {
|
|
79
|
-
"source": "new actions.SetTimerAction(\"MyTimer\", new Struct {\n DurationExpression = iotevents.Expression.InputAttribute(input, \"payload.durationSeconds\")\n});",
|
|
80
|
-
"version": "1"
|
|
81
|
-
},
|
|
82
|
-
"java": {
|
|
83
|
-
"source": "SetTimerAction.Builder.create(\"MyTimer\")\n .durationExpression(iotevents.Expression.inputAttribute(input, \"payload.durationSeconds\"))\n .build();",
|
|
84
|
-
"version": "1"
|
|
85
|
-
},
|
|
86
|
-
"go": {
|
|
87
|
-
"source": "actions.NewSetTimerAction(jsii.String(\"MyTimer\"), map[string]interface{}{\n\t\"durationExpression\": iotevents.Expression_inputAttribute(input, jsii.String(\"payload.durationSeconds\")),\n})",
|
|
88
|
-
"version": "1"
|
|
89
|
-
},
|
|
90
|
-
"$": {
|
|
91
|
-
"source": "new actions.SetTimerAction('MyTimer', {\n durationExpression: iotevents.Expression.inputAttribute(input, 'payload.durationSeconds'),\n})",
|
|
92
|
-
"version": "0"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"location": {
|
|
96
|
-
"api": {
|
|
97
|
-
"api": "moduleReadme",
|
|
98
|
-
"moduleFqn": "@aws-cdk/aws-iotevents-actions-alpha"
|
|
99
|
-
},
|
|
100
|
-
"field": {
|
|
101
|
-
"field": "markdown",
|
|
102
|
-
"line": 57
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"didCompile": false,
|
|
106
|
-
"fqnsReferenced": [],
|
|
107
|
-
"fullSource": "new actions.SetTimerAction('MyTimer', {\n durationExpression: iotevents.Expression.inputAttribute(input, 'payload.durationSeconds'),\n})",
|
|
108
|
-
"syntaxKindCounter": {
|
|
109
|
-
"10": 2,
|
|
110
|
-
"75": 7,
|
|
111
|
-
"193": 1,
|
|
112
|
-
"194": 3,
|
|
113
|
-
"196": 1,
|
|
114
|
-
"197": 1,
|
|
115
|
-
"226": 1,
|
|
116
|
-
"281": 1,
|
|
117
|
-
"290": 1
|
|
118
|
-
},
|
|
119
|
-
"fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
120
|
-
},
|
|
121
|
-
"77de278a9fd44b29208213a14b8008c8eddba966679f046e01f3b1b0934911a6": {
|
|
122
|
-
"translations": {
|
|
123
|
-
"python": {
|
|
124
|
-
"source": "online = iotevents.State(\n state_name=\"Online\",\n on_enter=[{\n \"event_name\": \"enter-event\",\n \"condition\": iotevents.Expression.current_input(input),\n \"actions\": [\n actions.SetTimerAction(\"MyTimer\",\n duration=cdk.Duration.seconds(60)\n )\n ]\n }],\n on_input=[{\n \"event_name\": \"input-event\",\n \"condition\": iotevents.Expression.current_input(input),\n \"actions\": [\n actions.ResetTimerAction(\"MyTimer\")\n ]\n }],\n on_exit=[{\n \"event_name\": \"exit-event\",\n \"actions\": [\n actions.ClearTimerAction(\"MyTimer\")\n ]\n }]\n)\noffline = iotevents.State(state_name=\"Offline\")\n\nonline.transition_to(offline, when=iotevents.Expression.timeout(\"MyTimer\"))\noffline.transition_to(online, when=iotevents.Expression.current_input(input))",
|
|
125
|
-
"version": "2"
|
|
126
|
-
},
|
|
127
|
-
"csharp": {
|
|
128
|
-
"source": "var online = new iotevents.State(new Struct {\n StateName = \"Online\",\n OnEnter = new [] { new Struct {\n EventName = \"enter-event\",\n Condition = iotevents.Expression.CurrentInput(input),\n Actions = new [] {\n new actions.SetTimerAction(\"MyTimer\", new Struct {\n Duration = cdk.Duration.Seconds(60)\n }) }\n } },\n OnInput = new [] { new Struct {\n EventName = \"input-event\",\n Condition = iotevents.Expression.CurrentInput(input),\n Actions = new [] {\n new actions.ResetTimerAction(\"MyTimer\") }\n } },\n OnExit = new [] { new Struct {\n EventName = \"exit-event\",\n Actions = new [] {\n new actions.ClearTimerAction(\"MyTimer\") }\n } }\n});\nvar offline = new iotevents.State(new Struct { StateName = \"Offline\" });\n\nonline.TransitionTo(offline, new Struct { When = iotevents.Expression.Timeout(\"MyTimer\") });\noffline.TransitionTo(online, new Struct { When = iotevents.Expression.CurrentInput(input) });",
|
|
129
|
-
"version": "1"
|
|
130
|
-
},
|
|
131
|
-
"java": {
|
|
132
|
-
"source": "Object online = State.Builder.create()\n .stateName(\"Online\")\n .onEnter(List.of(Map.of(\n \"eventName\", \"enter-event\",\n \"condition\", iotevents.Expression.currentInput(input),\n \"actions\", List.of(\n SetTimerAction.Builder.create(\"MyTimer\")\n .duration(cdk.Duration.seconds(60))\n .build()))))\n .onInput(List.of(Map.of(\n \"eventName\", \"input-event\",\n \"condition\", iotevents.Expression.currentInput(input),\n \"actions\", List.of(\n new ResetTimerAction(\"MyTimer\")))))\n .onExit(List.of(Map.of(\n \"eventName\", \"exit-event\",\n \"actions\", List.of(\n new ClearTimerAction(\"MyTimer\")))))\n .build();\nObject offline = State.Builder.create().stateName(\"Offline\").build();\n\nonline.transitionTo(offline, Map.of(\"when\", iotevents.Expression.timeout(\"MyTimer\")));\noffline.transitionTo(online, Map.of(\"when\", iotevents.Expression.currentInput(input)));",
|
|
133
|
-
"version": "1"
|
|
134
|
-
},
|
|
135
|
-
"go": {
|
|
136
|
-
"source": "online := iotevents.NewState(map[string]interface{}{\n\t\"stateName\": jsii.String(\"Online\"),\n\t\"onEnter\": []map[string]interface{}{\n\t\tmap[string]interface{}{\n\t\t\t\"eventName\": jsii.String(\"enter-event\"),\n\t\t\t\"condition\": iotevents.Expression_currentInput(input),\n\t\t\t\"actions\": []interface{}{\n\t\t\t\tactions.NewSetTimerAction(jsii.String(\"MyTimer\"), map[string]interface{}{\n\t\t\t\t\t\"duration\": cdk.Duration_seconds(jsii.Number(60)),\n\t\t\t\t}),\n\t\t\t},\n\t\t},\n\t},\n\t\"onInput\": []map[string]interface{}{\n\t\tmap[string]interface{}{\n\t\t\t\"eventName\": jsii.String(\"input-event\"),\n\t\t\t\"condition\": iotevents.Expression_currentInput(input),\n\t\t\t\"actions\": []interface{}{\n\t\t\t\tactions.NewResetTimerAction(jsii.String(\"MyTimer\")),\n\t\t\t},\n\t\t},\n\t},\n\t\"onExit\": []map[string]interface{}{\n\t\tmap[string]interface{}{\n\t\t\t\"eventName\": jsii.String(\"exit-event\"),\n\t\t\t\"actions\": []interface{}{\n\t\t\t\tactions.NewClearTimerAction(jsii.String(\"MyTimer\")),\n\t\t\t},\n\t\t},\n\t},\n})\noffline := iotevents.NewState(map[string]*string{\n\t\"stateName\": jsii.String(\"Offline\"),\n})\n\nonline.transitionTo(offline, map[string]interface{}{\n\t\"when\": iotevents.Expression_timeout(jsii.String(\"MyTimer\")),\n})\noffline.transitionTo(online, map[string]interface{}{\n\t\"when\": iotevents.Expression_currentInput(input),\n})",
|
|
137
|
-
"version": "1"
|
|
138
|
-
},
|
|
139
|
-
"$": {
|
|
140
|
-
"source": "const online = new iotevents.State({\n stateName: 'Online',\n onEnter: [{\n eventName: 'enter-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n onInput: [{\n eventName: 'input-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.ResetTimerAction('MyTimer'),\n ],\n }],\n onExit: [{\n eventName: 'exit-event',\n actions: [\n new actions.ClearTimerAction('MyTimer'),\n ],\n }],\n});\nconst offline = new iotevents.State({ stateName: 'Offline' });\n\nonline.transitionTo(offline, { when: iotevents.Expression.timeout('MyTimer') });\noffline.transitionTo(online, { when: iotevents.Expression.currentInput(input) });",
|
|
141
|
-
"version": "0"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"location": {
|
|
145
|
-
"api": {
|
|
146
|
-
"api": "moduleReadme",
|
|
147
|
-
"moduleFqn": "@aws-cdk/aws-iotevents-actions-alpha"
|
|
148
|
-
},
|
|
149
|
-
"field": {
|
|
150
|
-
"field": "markdown",
|
|
151
|
-
"line": 67
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"didCompile": false,
|
|
155
|
-
"fqnsReferenced": [],
|
|
156
|
-
"fullSource": "const online = new iotevents.State({\n stateName: 'Online',\n onEnter: [{\n eventName: 'enter-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n onInput: [{\n eventName: 'input-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.ResetTimerAction('MyTimer'),\n ],\n }],\n onExit: [{\n eventName: 'exit-event',\n actions: [\n new actions.ClearTimerAction('MyTimer'),\n ],\n }],\n});\nconst offline = new iotevents.State({ stateName: 'Offline' });\n\nonline.transitionTo(offline, { when: iotevents.Expression.timeout('MyTimer') });\noffline.transitionTo(online, { when: iotevents.Expression.currentInput(input) });",
|
|
157
|
-
"syntaxKindCounter": {
|
|
158
|
-
"8": 1,
|
|
159
|
-
"10": 9,
|
|
160
|
-
"75": 52,
|
|
161
|
-
"192": 6,
|
|
162
|
-
"193": 8,
|
|
163
|
-
"194": 17,
|
|
164
|
-
"196": 7,
|
|
165
|
-
"197": 5,
|
|
166
|
-
"225": 2,
|
|
167
|
-
"226": 2,
|
|
168
|
-
"242": 2,
|
|
169
|
-
"243": 2,
|
|
170
|
-
"281": 16,
|
|
171
|
-
"290": 1
|
|
172
|
-
},
|
|
173
|
-
"fqnsFingerprint": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
174
|
-
},
|
|
175
|
-
"2e81c18dfd06d13d7d0075434595a3b97f4d7134dc6943a17e60546f61a85961": {
|
|
176
|
-
"translations": {
|
|
177
|
-
"python": {
|
|
178
|
-
"source": "import aws_cdk.aws_iotevents_alpha as iotevents\nimport aws_cdk.aws_iotevents_actions_alpha as actions\n\n# input: iotevents.IInput\n\nstate = iotevents.State(\n state_name=\"MyState\",\n on_enter=[iotevents.Event(\n event_name=\"test-event\",\n condition=iotevents.Expression.current_input(input),\n actions=[\n actions.SetVariableAction(\"MyVariable\",\n iotevents.Expression.input_attribute(input, \"payload.temperature\"))\n ]\n )]\n)",
|
|
179
|
-
"version": "2"
|
|
180
|
-
},
|
|
181
|
-
"csharp": {
|
|
182
|
-
"source": "using Amazon.CDK.AWS.IoTEvents.Alpha;\nusing Amazon.CDK.AWS.IoTEvents.Actions.Alpha;\n\nIInput input;\n\nState state = new State(new StateProps {\n StateName = \"MyState\",\n OnEnter = new [] { new Event {\n EventName = \"test-event\",\n Condition = Expression.CurrentInput(input),\n Actions = new [] {\n new SetVariableAction(\"MyVariable\", Expression.InputAttribute(input, \"payload.temperature\")) }\n } }\n});",
|
|
183
|
-
"version": "1"
|
|
184
|
-
},
|
|
185
|
-
"java": {
|
|
186
|
-
"source": "import software.amazon.awscdk.services.iotevents.alpha.*;\nimport software.amazon.awscdk.services.iotevents.actions.alpha.*;\n\nIInput input;\n\nState state = State.Builder.create()\n .stateName(\"MyState\")\n .onEnter(List.of(Event.builder()\n .eventName(\"test-event\")\n .condition(Expression.currentInput(input))\n .actions(List.of(\n new SetVariableAction(\"MyVariable\", Expression.inputAttribute(input, \"payload.temperature\"))))\n .build()))\n .build();",
|
|
187
|
-
"version": "1"
|
|
188
|
-
},
|
|
189
|
-
"go": {
|
|
190
|
-
"source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\nimport actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"\n\nvar input iInput\n\nstate := iotevents.NewState(&stateProps{\n\tstateName: jsii.String(\"MyState\"),\n\tonEnter: []event{\n\t\t&event{\n\t\t\teventName: jsii.String(\"test-event\"),\n\t\t\tcondition: iotevents.expression.currentInput(input),\n\t\t\tactions: []iAction{\n\t\t\t\tactions.NewSetVariableAction(jsii.String(\"MyVariable\"), iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\"))),\n\t\t\t},\n\t\t},\n\t},\n})",
|
|
191
|
-
"version": "1"
|
|
192
|
-
},
|
|
193
|
-
"$": {
|
|
194
|
-
"source": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n }],\n});",
|
|
195
|
-
"version": "0"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"location": {
|
|
199
|
-
"api": {
|
|
200
|
-
"api": "moduleReadme",
|
|
201
|
-
"moduleFqn": "@aws-cdk/aws-iotevents-actions-alpha"
|
|
202
|
-
},
|
|
203
|
-
"field": {
|
|
204
|
-
"field": "markdown",
|
|
205
|
-
"line": 104
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
"didCompile": true,
|
|
209
|
-
"fqnsReferenced": [
|
|
210
|
-
"@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction",
|
|
211
|
-
"@aws-cdk/aws-iotevents-alpha.Expression",
|
|
212
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
|
|
213
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#inputAttribute",
|
|
214
|
-
"@aws-cdk/aws-iotevents-alpha.IInput",
|
|
215
|
-
"@aws-cdk/aws-iotevents-alpha.State",
|
|
216
|
-
"@aws-cdk/aws-iotevents-alpha.StateProps"
|
|
217
|
-
],
|
|
218
|
-
"fullSource": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n }],\n});",
|
|
219
|
-
"syntaxKindCounter": {
|
|
220
|
-
"10": 6,
|
|
221
|
-
"75": 23,
|
|
222
|
-
"130": 1,
|
|
223
|
-
"153": 1,
|
|
224
|
-
"169": 1,
|
|
225
|
-
"192": 2,
|
|
226
|
-
"193": 2,
|
|
227
|
-
"194": 6,
|
|
228
|
-
"196": 2,
|
|
229
|
-
"197": 2,
|
|
230
|
-
"225": 2,
|
|
231
|
-
"242": 2,
|
|
232
|
-
"243": 2,
|
|
233
|
-
"254": 2,
|
|
234
|
-
"255": 2,
|
|
235
|
-
"256": 2,
|
|
236
|
-
"281": 5,
|
|
237
|
-
"290": 1
|
|
238
|
-
},
|
|
239
|
-
"fqnsFingerprint": "99cc18bb5e6edc4242470e956a077ac0a487ddb07ce2c8ba98a5517e506e4d5d"
|
|
240
|
-
},
|
|
241
|
-
"37d0a214abe7a2298a1ab5db51ef8090274727e97df91f78ab2f8b40d06216ba": {
|
|
242
|
-
"translations": {
|
|
243
|
-
"python": {
|
|
244
|
-
"source": "import aws_cdk.aws_iotevents_alpha as iotevents\nimport aws_cdk.aws_iotevents_actions_alpha as actions\nimport aws_cdk.aws_lambda as lambda_\n\n# input: iotevents.IInput\n# func: lambda.IFunction\n\nstate = iotevents.State(\n state_name=\"MyState\",\n on_enter=[iotevents.Event(\n event_name=\"test-event\",\n condition=iotevents.Expression.current_input(input),\n actions=[actions.LambdaInvokeAction(func)]\n )]\n)",
|
|
245
|
-
"version": "2"
|
|
246
|
-
},
|
|
247
|
-
"csharp": {
|
|
248
|
-
"source": "using Amazon.CDK.AWS.IoTEvents.Alpha;\nusing Amazon.CDK.AWS.IoTEvents.Actions.Alpha;\nusing Amazon.CDK.AWS.Lambda;\n\nIInput input;\nIFunction func;\n\nState state = new State(new StateProps {\n StateName = \"MyState\",\n OnEnter = new [] { new Event {\n EventName = \"test-event\",\n Condition = Expression.CurrentInput(input),\n Actions = new [] { new LambdaInvokeAction(func) }\n } }\n});",
|
|
249
|
-
"version": "1"
|
|
250
|
-
},
|
|
251
|
-
"java": {
|
|
252
|
-
"source": "import software.amazon.awscdk.services.iotevents.alpha.*;\nimport software.amazon.awscdk.services.iotevents.actions.alpha.*;\nimport software.amazon.awscdk.services.lambda.*;\n\nIInput input;\nIFunction func;\n\nState state = State.Builder.create()\n .stateName(\"MyState\")\n .onEnter(List.of(Event.builder()\n .eventName(\"test-event\")\n .condition(Expression.currentInput(input))\n .actions(List.of(new LambdaInvokeAction(func)))\n .build()))\n .build();",
|
|
253
|
-
"version": "1"
|
|
254
|
-
},
|
|
255
|
-
"go": {
|
|
256
|
-
"source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\nimport actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"\nimport lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar input iInput\nvar func iFunction\n\nstate := iotevents.NewState(&stateProps{\n\tstateName: jsii.String(\"MyState\"),\n\tonEnter: []event{\n\t\t&event{\n\t\t\teventName: jsii.String(\"test-event\"),\n\t\t\tcondition: iotevents.expression.currentInput(input),\n\t\t\tactions: []iAction{\n\t\t\t\tactions.NewLambdaInvokeAction(func),\n\t\t\t},\n\t\t},\n\t},\n})",
|
|
257
|
-
"version": "1"
|
|
258
|
-
},
|
|
259
|
-
"$": {
|
|
260
|
-
"source": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\ndeclare const input: iotevents.IInput;\ndeclare const func: lambda.IFunction;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [new actions.LambdaInvokeAction(func)],\n }],\n});",
|
|
261
|
-
"version": "0"
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
"location": {
|
|
265
|
-
"api": {
|
|
266
|
-
"api": "moduleReadme",
|
|
267
|
-
"moduleFqn": "@aws-cdk/aws-iotevents-actions-alpha"
|
|
268
|
-
},
|
|
269
|
-
"field": {
|
|
270
|
-
"field": "markdown",
|
|
271
|
-
"line": 130
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
"didCompile": true,
|
|
275
|
-
"fqnsReferenced": [
|
|
276
|
-
"@aws-cdk/aws-iotevents-actions-alpha.LambdaInvokeAction",
|
|
277
|
-
"@aws-cdk/aws-iotevents-alpha.Expression",
|
|
278
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
|
|
279
|
-
"@aws-cdk/aws-iotevents-alpha.IInput",
|
|
280
|
-
"@aws-cdk/aws-iotevents-alpha.State",
|
|
281
|
-
"@aws-cdk/aws-iotevents-alpha.StateProps",
|
|
282
|
-
"aws-cdk-lib.aws_lambda.IFunction"
|
|
283
|
-
],
|
|
284
|
-
"fullSource": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\ndeclare const input: iotevents.IInput;\ndeclare const func: lambda.IFunction;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [new actions.LambdaInvokeAction(func)],\n }],\n});",
|
|
285
|
-
"syntaxKindCounter": {
|
|
286
|
-
"10": 5,
|
|
287
|
-
"75": 24,
|
|
288
|
-
"130": 2,
|
|
289
|
-
"153": 2,
|
|
290
|
-
"169": 2,
|
|
291
|
-
"192": 2,
|
|
292
|
-
"193": 2,
|
|
293
|
-
"194": 4,
|
|
294
|
-
"196": 1,
|
|
295
|
-
"197": 2,
|
|
296
|
-
"225": 3,
|
|
297
|
-
"242": 3,
|
|
298
|
-
"243": 3,
|
|
299
|
-
"254": 3,
|
|
300
|
-
"255": 3,
|
|
301
|
-
"256": 3,
|
|
302
|
-
"281": 5,
|
|
303
|
-
"290": 1
|
|
304
|
-
},
|
|
305
|
-
"fqnsFingerprint": "5359839fe2eec139951a916497efc56cb670f6e1d6c207d17ac42bca177bcd24"
|
|
306
|
-
},
|
|
307
|
-
"79b2f6db1fcd82f161089d9672b3296f6e967484c059d5b6a17b1ef5c35f9c42": {
|
|
308
|
-
"translations": {
|
|
309
|
-
"python": {
|
|
310
|
-
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iotevents_actions_alpha as iotevents_actions_alpha\n\nclear_timer_action = iotevents_actions_alpha.ClearTimerAction(\"timerName\")",
|
|
311
|
-
"version": "2"
|
|
312
|
-
},
|
|
313
|
-
"csharp": {
|
|
314
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IoTEvents.Actions.Alpha;\n\nClearTimerAction clearTimerAction = new ClearTimerAction(\"timerName\");",
|
|
315
|
-
"version": "1"
|
|
316
|
-
},
|
|
317
|
-
"java": {
|
|
318
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iotevents.actions.alpha.*;\n\nClearTimerAction clearTimerAction = new ClearTimerAction(\"timerName\");",
|
|
319
|
-
"version": "1"
|
|
320
|
-
},
|
|
321
|
-
"go": {
|
|
322
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iotevents_actions_alpha \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"\n\nclearTimerAction := iotevents_actions_alpha.NewClearTimerAction(jsii.String(\"timerName\"))",
|
|
323
|
-
"version": "1"
|
|
324
|
-
},
|
|
325
|
-
"$": {
|
|
326
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iotevents_actions_alpha from '@aws-cdk/aws-iotevents-actions-alpha';\nconst clearTimerAction = new iotevents_actions_alpha.ClearTimerAction('timerName');",
|
|
327
|
-
"version": "0"
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
"location": {
|
|
331
|
-
"api": {
|
|
332
|
-
"api": "type",
|
|
333
|
-
"fqn": "@aws-cdk/aws-iotevents-actions-alpha.ClearTimerAction"
|
|
334
|
-
},
|
|
335
|
-
"field": {
|
|
336
|
-
"field": "example"
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
"didCompile": true,
|
|
340
|
-
"fqnsReferenced": [
|
|
341
|
-
"@aws-cdk/aws-iotevents-actions-alpha.ClearTimerAction"
|
|
342
|
-
],
|
|
343
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iotevents_actions_alpha from '@aws-cdk/aws-iotevents-actions-alpha';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst clearTimerAction = new iotevents_actions_alpha.ClearTimerAction('timerName');\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
|
344
|
-
"syntaxKindCounter": {
|
|
345
|
-
"10": 2,
|
|
346
|
-
"75": 4,
|
|
347
|
-
"194": 1,
|
|
348
|
-
"197": 1,
|
|
349
|
-
"225": 1,
|
|
350
|
-
"242": 1,
|
|
351
|
-
"243": 1,
|
|
352
|
-
"254": 1,
|
|
353
|
-
"255": 1,
|
|
354
|
-
"256": 1,
|
|
355
|
-
"290": 1
|
|
356
|
-
},
|
|
357
|
-
"fqnsFingerprint": "e028083b30a49fd32dd9bae45b8ef50e0e57f4f79adbdf07decfcbbd9f38146a"
|
|
358
|
-
},
|
|
359
|
-
"21a69fd5df30c8d929c5deeba55c0dcd670d338b0d7fd6cb4e3f2e0ab3955de7": {
|
|
360
|
-
"translations": {
|
|
361
|
-
"python": {
|
|
362
|
-
"source": "import aws_cdk.aws_iotevents_alpha as iotevents\nimport aws_cdk.aws_iotevents_actions_alpha as actions\nimport aws_cdk.aws_lambda as lambda_\n\n# func: lambda.IFunction\n\n\ninput = iotevents.Input(self, \"MyInput\",\n input_name=\"my_input\", # optional\n attribute_json_paths=[\"payload.deviceId\", \"payload.temperature\"]\n)\n\nwarm_state = iotevents.State(\n state_name=\"warm\",\n on_enter=[iotevents.Event(\n event_name=\"test-enter-event\",\n condition=iotevents.Expression.current_input(input),\n actions=[actions.LambdaInvokeAction(func)]\n )],\n on_input=[iotevents.Event( # optional\n event_name=\"test-input-event\",\n actions=[actions.LambdaInvokeAction(func)])],\n on_exit=[iotevents.Event( # optional\n event_name=\"test-exit-event\",\n actions=[actions.LambdaInvokeAction(func)])]\n)\ncold_state = iotevents.State(\n state_name=\"cold\"\n)\n\n# transit to coldState when temperature is less than 15\nwarm_state.transition_to(cold_state,\n event_name=\"to_coldState\", # optional property, default by combining the names of the States\n when=iotevents.Expression.lt(\n iotevents.Expression.input_attribute(input, \"payload.temperature\"),\n iotevents.Expression.from_string(\"15\")),\n executing=[actions.LambdaInvokeAction(func)]\n)\n# transit to warmState when temperature is greater than or equal to 15\ncold_state.transition_to(warm_state,\n when=iotevents.Expression.gte(\n iotevents.Expression.input_attribute(input, \"payload.temperature\"),\n iotevents.Expression.from_string(\"15\"))\n)\n\niotevents.DetectorModel(self, \"MyDetectorModel\",\n detector_model_name=\"test-detector-model\", # optional\n description=\"test-detector-model-description\", # optional property, default is none\n evaluation_method=iotevents.EventEvaluation.SERIAL, # optional property, default is iotevents.EventEvaluation.BATCH\n detector_key=\"payload.deviceId\", # optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initial_state=warm_state\n)",
|
|
363
|
-
"version": "2"
|
|
364
|
-
},
|
|
365
|
-
"csharp": {
|
|
366
|
-
"source": "using Amazon.CDK.AWS.IoTEvents.Alpha;\nusing Amazon.CDK.AWS.IoTEvents.Actions.Alpha;\nusing Amazon.CDK.AWS.Lambda;\n\nIFunction func;\n\n\nInput input = new Input(this, \"MyInput\", new InputProps {\n InputName = \"my_input\", // optional\n AttributeJsonPaths = new [] { \"payload.deviceId\", \"payload.temperature\" }\n});\n\nState warmState = new State(new StateProps {\n StateName = \"warm\",\n OnEnter = new [] { new Event {\n EventName = \"test-enter-event\",\n Condition = Expression.CurrentInput(input),\n Actions = new [] { new LambdaInvokeAction(func) }\n } },\n OnInput = new [] { new Event { // optional\n EventName = \"test-input-event\",\n Actions = new [] { new LambdaInvokeAction(func) } } },\n OnExit = new [] { new Event { // optional\n EventName = \"test-exit-event\",\n Actions = new [] { new LambdaInvokeAction(func) } } }\n});\nState coldState = new State(new StateProps {\n StateName = \"cold\"\n});\n\n// transit to coldState when temperature is less than 15\nwarmState.TransitionTo(coldState, new TransitionOptions {\n EventName = \"to_coldState\", // optional property, default by combining the names of the States\n When = Expression.Lt(Expression.InputAttribute(input, \"payload.temperature\"), Expression.FromString(\"15\")),\n Executing = new [] { new LambdaInvokeAction(func) }\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.TransitionTo(warmState, new TransitionOptions {\n When = Expression.Gte(Expression.InputAttribute(input, \"payload.temperature\"), Expression.FromString(\"15\"))\n});\n\nnew DetectorModel(this, \"MyDetectorModel\", new DetectorModelProps {\n DetectorModelName = \"test-detector-model\", // optional\n Description = \"test-detector-model-description\", // optional property, default is none\n EvaluationMethod = EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n DetectorKey = \"payload.deviceId\", // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n InitialState = warmState\n});",
|
|
367
|
-
"version": "1"
|
|
368
|
-
},
|
|
369
|
-
"java": {
|
|
370
|
-
"source": "import software.amazon.awscdk.services.iotevents.alpha.*;\nimport software.amazon.awscdk.services.iotevents.actions.alpha.*;\nimport software.amazon.awscdk.services.lambda.*;\n\nIFunction func;\n\n\nInput input = Input.Builder.create(this, \"MyInput\")\n .inputName(\"my_input\") // optional\n .attributeJsonPaths(List.of(\"payload.deviceId\", \"payload.temperature\"))\n .build();\n\nState warmState = State.Builder.create()\n .stateName(\"warm\")\n .onEnter(List.of(Event.builder()\n .eventName(\"test-enter-event\")\n .condition(Expression.currentInput(input))\n .actions(List.of(new LambdaInvokeAction(func)))\n .build()))\n .onInput(List.of(Event.builder() // optional\n .eventName(\"test-input-event\")\n .actions(List.of(new LambdaInvokeAction(func))).build()))\n .onExit(List.of(Event.builder() // optional\n .eventName(\"test-exit-event\")\n .actions(List.of(new LambdaInvokeAction(func))).build()))\n .build();\nState coldState = State.Builder.create()\n .stateName(\"cold\")\n .build();\n\n// transit to coldState when temperature is less than 15\nwarmState.transitionTo(coldState, TransitionOptions.builder()\n .eventName(\"to_coldState\") // optional property, default by combining the names of the States\n .when(Expression.lt(Expression.inputAttribute(input, \"payload.temperature\"), Expression.fromString(\"15\")))\n .executing(List.of(new LambdaInvokeAction(func)))\n .build());\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, TransitionOptions.builder()\n .when(Expression.gte(Expression.inputAttribute(input, \"payload.temperature\"), Expression.fromString(\"15\")))\n .build());\n\nDetectorModel.Builder.create(this, \"MyDetectorModel\")\n .detectorModelName(\"test-detector-model\") // optional\n .description(\"test-detector-model-description\") // optional property, default is none\n .evaluationMethod(EventEvaluation.SERIAL) // optional property, default is iotevents.EventEvaluation.BATCH\n .detectorKey(\"payload.deviceId\") // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n .initialState(warmState)\n .build();",
|
|
371
|
-
"version": "1"
|
|
372
|
-
},
|
|
373
|
-
"go": {
|
|
374
|
-
"source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\nimport actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"\nimport lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar func iFunction\n\n\ninput := iotevents.NewInput(this, jsii.String(\"MyInput\"), &inputProps{\n\tinputName: jsii.String(\"my_input\"),\n\t // optional\n\tattributeJsonPaths: []*string{\n\t\tjsii.String(\"payload.deviceId\"),\n\t\tjsii.String(\"payload.temperature\"),\n\t},\n})\n\nwarmState := iotevents.NewState(&stateProps{\n\tstateName: jsii.String(\"warm\"),\n\tonEnter: []event{\n\t\t&event{\n\t\t\teventName: jsii.String(\"test-enter-event\"),\n\t\t\tcondition: iotevents.expression.currentInput(input),\n\t\t\tactions: []iAction{\n\t\t\t\tactions.NewLambdaInvokeAction(func),\n\t\t\t},\n\t\t},\n\t},\n\tonInput: []*event{\n\t\t&event{\n\t\t\t // optional\n\t\t\teventName: jsii.String(\"test-input-event\"),\n\t\t\tactions: []*iAction{\n\t\t\t\tactions.NewLambdaInvokeAction(func),\n\t\t\t},\n\t\t},\n\t},\n\tonExit: []*event{\n\t\t&event{\n\t\t\t // optional\n\t\t\teventName: jsii.String(\"test-exit-event\"),\n\t\t\tactions: []*iAction{\n\t\t\t\tactions.NewLambdaInvokeAction(func),\n\t\t\t},\n\t\t},\n\t},\n})\ncoldState := iotevents.NewState(&stateProps{\n\tstateName: jsii.String(\"cold\"),\n})\n\n// transit to coldState when temperature is less than 15\nwarmState.transitionTo(coldState, &transitionOptions{\n\teventName: jsii.String(\"to_coldState\"),\n\t // optional property, default by combining the names of the States\n\twhen: iotevents.*expression.lt(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"15\"))),\n\texecuting: []*iAction{\n\t\tactions.NewLambdaInvokeAction(func),\n\t},\n})\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, &transitionOptions{\n\twhen: iotevents.*expression.gte(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"15\"))),\n})\n\niotevents.NewDetectorModel(this, jsii.String(\"MyDetectorModel\"), &detectorModelProps{\n\tdetectorModelName: jsii.String(\"test-detector-model\"),\n\t // optional\n\tdescription: jsii.String(\"test-detector-model-description\"),\n\t // optional property, default is none\n\tevaluationMethod: iotevents.eventEvaluation_SERIAL,\n\t // optional property, default is iotevents.EventEvaluation.BATCH\n\tdetectorKey: jsii.String(\"payload.deviceId\"),\n\t // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n\tinitialState: warmState,\n})",
|
|
375
|
-
"version": "1"
|
|
376
|
-
},
|
|
377
|
-
"$": {
|
|
378
|
-
"source": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\ndeclare const func: lambda.IFunction;\n\nconst input = new iotevents.Input(this, 'MyInput', {\n inputName: 'my_input', // optional\n attributeJsonPaths: ['payload.deviceId', 'payload.temperature'],\n});\n\nconst warmState = new iotevents.State({\n stateName: 'warm',\n onEnter: [{\n eventName: 'test-enter-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [new actions.LambdaInvokeAction(func)], // optional\n }],\n onInput: [{ // optional\n eventName: 'test-input-event',\n actions: [new actions.LambdaInvokeAction(func)],\n }],\n onExit: [{ // optional\n eventName: 'test-exit-event',\n actions: [new actions.LambdaInvokeAction(func)],\n }],\n});\nconst coldState = new iotevents.State({\n stateName: 'cold',\n});\n\n// transit to coldState when temperature is less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
|
|
379
|
-
"version": "0"
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
"location": {
|
|
383
|
-
"api": {
|
|
384
|
-
"api": "type",
|
|
385
|
-
"fqn": "@aws-cdk/aws-iotevents-actions-alpha.LambdaInvokeAction"
|
|
386
|
-
},
|
|
387
|
-
"field": {
|
|
388
|
-
"field": "example"
|
|
389
|
-
}
|
|
390
|
-
},
|
|
391
|
-
"didCompile": true,
|
|
392
|
-
"fqnsReferenced": [
|
|
393
|
-
"@aws-cdk/aws-iotevents-actions-alpha.LambdaInvokeAction",
|
|
394
|
-
"@aws-cdk/aws-iotevents-alpha.DetectorModel",
|
|
395
|
-
"@aws-cdk/aws-iotevents-alpha.DetectorModelProps",
|
|
396
|
-
"@aws-cdk/aws-iotevents-alpha.EventEvaluation",
|
|
397
|
-
"@aws-cdk/aws-iotevents-alpha.EventEvaluation#SERIAL",
|
|
398
|
-
"@aws-cdk/aws-iotevents-alpha.Expression",
|
|
399
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
|
|
400
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#fromString",
|
|
401
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#gte",
|
|
402
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#inputAttribute",
|
|
403
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#lt",
|
|
404
|
-
"@aws-cdk/aws-iotevents-alpha.IInput",
|
|
405
|
-
"@aws-cdk/aws-iotevents-alpha.Input",
|
|
406
|
-
"@aws-cdk/aws-iotevents-alpha.InputProps",
|
|
407
|
-
"@aws-cdk/aws-iotevents-alpha.State",
|
|
408
|
-
"@aws-cdk/aws-iotevents-alpha.State#transitionTo",
|
|
409
|
-
"@aws-cdk/aws-iotevents-alpha.StateProps",
|
|
410
|
-
"@aws-cdk/aws-iotevents-alpha.TransitionOptions",
|
|
411
|
-
"aws-cdk-lib.aws_lambda.IFunction",
|
|
412
|
-
"constructs.Construct"
|
|
413
|
-
],
|
|
414
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\nimport * as lambda from 'aws-cdk-lib/aws-lambda';\n\ndeclare const func: lambda.IFunction;\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';\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 input = new iotevents.Input(this, 'MyInput', {\n inputName: 'my_input', // optional\n attributeJsonPaths: ['payload.deviceId', 'payload.temperature'],\n});\n\nconst warmState = new iotevents.State({\n stateName: 'warm',\n onEnter: [{\n eventName: 'test-enter-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [new actions.LambdaInvokeAction(func)], // optional\n }],\n onInput: [{ // optional\n eventName: 'test-input-event',\n actions: [new actions.LambdaInvokeAction(func)],\n }],\n onExit: [{ // optional\n eventName: 'test-exit-event',\n actions: [new actions.LambdaInvokeAction(func)],\n }],\n});\nconst coldState = new iotevents.State({\n stateName: 'cold',\n});\n\n// transit to coldState when temperature is less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}",
|
|
415
|
-
"syntaxKindCounter": {
|
|
416
|
-
"10": 21,
|
|
417
|
-
"75": 86,
|
|
418
|
-
"104": 2,
|
|
419
|
-
"130": 1,
|
|
420
|
-
"153": 1,
|
|
421
|
-
"169": 1,
|
|
422
|
-
"192": 8,
|
|
423
|
-
"193": 9,
|
|
424
|
-
"194": 26,
|
|
425
|
-
"196": 9,
|
|
426
|
-
"197": 8,
|
|
427
|
-
"225": 4,
|
|
428
|
-
"226": 3,
|
|
429
|
-
"242": 4,
|
|
430
|
-
"243": 4,
|
|
431
|
-
"254": 3,
|
|
432
|
-
"255": 3,
|
|
433
|
-
"256": 3,
|
|
434
|
-
"281": 23,
|
|
435
|
-
"290": 1
|
|
436
|
-
},
|
|
437
|
-
"fqnsFingerprint": "5b75c9ecf5c84b706214a4145ee71eb19bedb88f88735ac62e2ac676f562a3a9"
|
|
438
|
-
},
|
|
439
|
-
"b08e23d86afa2e0d9188298e07a0f1237377d8e0e2273f83d6dc87ca1a5252a8": {
|
|
440
|
-
"translations": {
|
|
441
|
-
"python": {
|
|
442
|
-
"source": "# The code below shows an example of how to instantiate this type.\n# The values are placeholders you should change.\nimport aws_cdk.aws_iotevents_actions_alpha as iotevents_actions_alpha\n\nreset_timer_action = iotevents_actions_alpha.ResetTimerAction(\"timerName\")",
|
|
443
|
-
"version": "2"
|
|
444
|
-
},
|
|
445
|
-
"csharp": {
|
|
446
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nusing Amazon.CDK.AWS.IoTEvents.Actions.Alpha;\n\nResetTimerAction resetTimerAction = new ResetTimerAction(\"timerName\");",
|
|
447
|
-
"version": "1"
|
|
448
|
-
},
|
|
449
|
-
"java": {
|
|
450
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport software.amazon.awscdk.services.iotevents.actions.alpha.*;\n\nResetTimerAction resetTimerAction = new ResetTimerAction(\"timerName\");",
|
|
451
|
-
"version": "1"
|
|
452
|
-
},
|
|
453
|
-
"go": {
|
|
454
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport iotevents_actions_alpha \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"\n\nresetTimerAction := iotevents_actions_alpha.NewResetTimerAction(jsii.String(\"timerName\"))",
|
|
455
|
-
"version": "1"
|
|
456
|
-
},
|
|
457
|
-
"$": {
|
|
458
|
-
"source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iotevents_actions_alpha from '@aws-cdk/aws-iotevents-actions-alpha';\nconst resetTimerAction = new iotevents_actions_alpha.ResetTimerAction('timerName');",
|
|
459
|
-
"version": "0"
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
"location": {
|
|
463
|
-
"api": {
|
|
464
|
-
"api": "type",
|
|
465
|
-
"fqn": "@aws-cdk/aws-iotevents-actions-alpha.ResetTimerAction"
|
|
466
|
-
},
|
|
467
|
-
"field": {
|
|
468
|
-
"field": "example"
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
"didCompile": true,
|
|
472
|
-
"fqnsReferenced": [
|
|
473
|
-
"@aws-cdk/aws-iotevents-actions-alpha.ResetTimerAction"
|
|
474
|
-
],
|
|
475
|
-
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\n// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iotevents_actions_alpha from '@aws-cdk/aws-iotevents-actions-alpha';\n/// !hide\n// Hoisted imports ended before !hide marker above\nimport { Construct } from \"constructs\";\nclass MyConstruct extends Construct {\nconstructor(scope: Construct, id: string) {\nsuper(scope, id);\n// Code snippet begins after !show marker below\n/// !show\n\nconst resetTimerAction = new iotevents_actions_alpha.ResetTimerAction('timerName');\n/// !hide\n// Code snippet ended before !hide marker above\n} }",
|
|
476
|
-
"syntaxKindCounter": {
|
|
477
|
-
"10": 2,
|
|
478
|
-
"75": 4,
|
|
479
|
-
"194": 1,
|
|
480
|
-
"197": 1,
|
|
481
|
-
"225": 1,
|
|
482
|
-
"242": 1,
|
|
483
|
-
"243": 1,
|
|
484
|
-
"254": 1,
|
|
485
|
-
"255": 1,
|
|
486
|
-
"256": 1,
|
|
487
|
-
"290": 1
|
|
488
|
-
},
|
|
489
|
-
"fqnsFingerprint": "2132f04b0ef13dbefebd472bbb4b94b85cdb054c0a6079bab869794dbbe86968"
|
|
490
|
-
},
|
|
491
|
-
"e7653e7fdade87884ad142e7a1b65e7517e0ac9b5a1036ef95828a503697e569": {
|
|
492
|
-
"translations": {
|
|
493
|
-
"python": {
|
|
494
|
-
"source": "import aws_cdk.aws_iotevents_alpha as iotevents\nimport aws_cdk.aws_iotevents_actions_alpha as actions\n\n# input: iotevents.IInput\n\nstate = iotevents.State(\n state_name=\"MyState\",\n on_enter=[iotevents.Event(\n event_name=\"test-event\",\n condition=iotevents.Expression.current_input(input),\n actions=[\n actions.SetTimerAction(\"MyTimer\", {\n \"duration\": cdk.Duration.seconds(60)\n })\n ]\n )]\n)",
|
|
495
|
-
"version": "2"
|
|
496
|
-
},
|
|
497
|
-
"csharp": {
|
|
498
|
-
"source": "using Amazon.CDK.AWS.IoTEvents.Alpha;\nusing Amazon.CDK.AWS.IoTEvents.Actions.Alpha;\n\nIInput input;\n\nState state = new State(new StateProps {\n StateName = \"MyState\",\n OnEnter = new [] { new Event {\n EventName = \"test-event\",\n Condition = Expression.CurrentInput(input),\n Actions = new [] {\n new SetTimerAction(\"MyTimer\", new Dictionary<string, object> {\n { \"duration\", cdk.Duration.Seconds(60) }\n }) }\n } }\n});",
|
|
499
|
-
"version": "1"
|
|
500
|
-
},
|
|
501
|
-
"java": {
|
|
502
|
-
"source": "import software.amazon.awscdk.services.iotevents.alpha.*;\nimport software.amazon.awscdk.services.iotevents.actions.alpha.*;\n\nIInput input;\n\nState state = State.Builder.create()\n .stateName(\"MyState\")\n .onEnter(List.of(Event.builder()\n .eventName(\"test-event\")\n .condition(Expression.currentInput(input))\n .actions(List.of(\n new SetTimerAction(\"MyTimer\", Map.of(\n \"duration\", cdk.Duration.seconds(60)))))\n .build()))\n .build();",
|
|
503
|
-
"version": "1"
|
|
504
|
-
},
|
|
505
|
-
"go": {
|
|
506
|
-
"source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\nimport actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"\n\nvar input iInput\n\nstate := iotevents.NewState(&stateProps{\n\tstateName: jsii.String(\"MyState\"),\n\tonEnter: []event{\n\t\t&event{\n\t\t\teventName: jsii.String(\"test-event\"),\n\t\t\tcondition: iotevents.expression.currentInput(input),\n\t\t\tactions: []iAction{\n\t\t\t\tactions.NewSetTimerAction(jsii.String(\"MyTimer\"), map[string]interface{}{\n\t\t\t\t\t\"duration\": cdk.Duration_seconds(jsii.Number(60)),\n\t\t\t\t}),\n\t\t\t},\n\t\t},\n\t},\n})",
|
|
507
|
-
"version": "1"
|
|
508
|
-
},
|
|
509
|
-
"$": {
|
|
510
|
-
"source": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
|
|
511
|
-
"version": "0"
|
|
512
|
-
}
|
|
513
|
-
},
|
|
514
|
-
"location": {
|
|
515
|
-
"api": {
|
|
516
|
-
"api": "type",
|
|
517
|
-
"fqn": "@aws-cdk/aws-iotevents-actions-alpha.SetTimerAction"
|
|
518
|
-
},
|
|
519
|
-
"field": {
|
|
520
|
-
"field": "example"
|
|
521
|
-
}
|
|
522
|
-
},
|
|
523
|
-
"didCompile": false,
|
|
524
|
-
"fqnsReferenced": [
|
|
525
|
-
"@aws-cdk/aws-iotevents-actions-alpha.SetTimerAction",
|
|
526
|
-
"@aws-cdk/aws-iotevents-actions-alpha.TimerDuration",
|
|
527
|
-
"@aws-cdk/aws-iotevents-alpha.Expression",
|
|
528
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
|
|
529
|
-
"@aws-cdk/aws-iotevents-alpha.IInput",
|
|
530
|
-
"@aws-cdk/aws-iotevents-alpha.State",
|
|
531
|
-
"@aws-cdk/aws-iotevents-alpha.StateProps"
|
|
532
|
-
],
|
|
533
|
-
"fullSource": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
|
|
534
|
-
"syntaxKindCounter": {
|
|
535
|
-
"8": 1,
|
|
536
|
-
"10": 5,
|
|
537
|
-
"75": 23,
|
|
538
|
-
"130": 1,
|
|
539
|
-
"153": 1,
|
|
540
|
-
"169": 1,
|
|
541
|
-
"192": 2,
|
|
542
|
-
"193": 3,
|
|
543
|
-
"194": 6,
|
|
544
|
-
"196": 2,
|
|
545
|
-
"197": 2,
|
|
546
|
-
"225": 2,
|
|
547
|
-
"242": 2,
|
|
548
|
-
"243": 2,
|
|
549
|
-
"254": 2,
|
|
550
|
-
"255": 2,
|
|
551
|
-
"256": 2,
|
|
552
|
-
"281": 6,
|
|
553
|
-
"290": 1
|
|
554
|
-
},
|
|
555
|
-
"fqnsFingerprint": "48e50a49af3b5e9a04db9d56541e6e8c085e79c300a451bf1a59eca0cadf6db9"
|
|
556
|
-
},
|
|
557
|
-
"05ff783364afb1f2efa9d385277ad1cf09b460e9001f9870a7e562abad8956a3": {
|
|
558
|
-
"translations": {
|
|
559
|
-
"python": {
|
|
560
|
-
"source": "import aws_cdk.aws_iotevents_alpha as iotevents\nimport aws_cdk.aws_iotevents_actions_alpha as actions\n\n# input: iotevents.IInput\n\nstate = iotevents.State(\n state_name=\"MyState\",\n on_enter=[iotevents.Event(\n event_name=\"test-event\",\n condition=iotevents.Expression.current_input(input),\n actions=[\n actions.SetVariableAction(\"MyVariable\",\n iotevents.Expression.input_attribute(input, \"payload.temperature\"))\n ]\n )]\n)",
|
|
561
|
-
"version": "2"
|
|
562
|
-
},
|
|
563
|
-
"csharp": {
|
|
564
|
-
"source": "using Amazon.CDK.AWS.IoTEvents.Alpha;\nusing Amazon.CDK.AWS.IoTEvents.Actions.Alpha;\n\nIInput input;\n\nState state = new State(new StateProps {\n StateName = \"MyState\",\n OnEnter = new [] { new Event {\n EventName = \"test-event\",\n Condition = Expression.CurrentInput(input),\n Actions = new [] {\n new SetVariableAction(\"MyVariable\", Expression.InputAttribute(input, \"payload.temperature\")) }\n } }\n});",
|
|
565
|
-
"version": "1"
|
|
566
|
-
},
|
|
567
|
-
"java": {
|
|
568
|
-
"source": "import software.amazon.awscdk.services.iotevents.alpha.*;\nimport software.amazon.awscdk.services.iotevents.actions.alpha.*;\n\nIInput input;\n\nState state = State.Builder.create()\n .stateName(\"MyState\")\n .onEnter(List.of(Event.builder()\n .eventName(\"test-event\")\n .condition(Expression.currentInput(input))\n .actions(List.of(\n new SetVariableAction(\"MyVariable\", Expression.inputAttribute(input, \"payload.temperature\"))))\n .build()))\n .build();",
|
|
569
|
-
"version": "1"
|
|
570
|
-
},
|
|
571
|
-
"go": {
|
|
572
|
-
"source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\nimport actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"\n\nvar input iInput\n\nstate := iotevents.NewState(&stateProps{\n\tstateName: jsii.String(\"MyState\"),\n\tonEnter: []event{\n\t\t&event{\n\t\t\teventName: jsii.String(\"test-event\"),\n\t\t\tcondition: iotevents.expression.currentInput(input),\n\t\t\tactions: []iAction{\n\t\t\t\tactions.NewSetVariableAction(jsii.String(\"MyVariable\"), iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\"))),\n\t\t\t},\n\t\t},\n\t},\n})",
|
|
573
|
-
"version": "1"
|
|
574
|
-
},
|
|
575
|
-
"$": {
|
|
576
|
-
"source": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n }],\n});",
|
|
577
|
-
"version": "0"
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
"location": {
|
|
581
|
-
"api": {
|
|
582
|
-
"api": "type",
|
|
583
|
-
"fqn": "@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction"
|
|
584
|
-
},
|
|
585
|
-
"field": {
|
|
586
|
-
"field": "example"
|
|
587
|
-
}
|
|
588
|
-
},
|
|
589
|
-
"didCompile": true,
|
|
590
|
-
"fqnsReferenced": [
|
|
591
|
-
"@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction",
|
|
592
|
-
"@aws-cdk/aws-iotevents-alpha.Expression",
|
|
593
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
|
|
594
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#inputAttribute",
|
|
595
|
-
"@aws-cdk/aws-iotevents-alpha.IInput",
|
|
596
|
-
"@aws-cdk/aws-iotevents-alpha.State",
|
|
597
|
-
"@aws-cdk/aws-iotevents-alpha.StateProps"
|
|
598
|
-
],
|
|
599
|
-
"fullSource": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n }],\n});",
|
|
600
|
-
"syntaxKindCounter": {
|
|
601
|
-
"10": 6,
|
|
602
|
-
"75": 23,
|
|
603
|
-
"130": 1,
|
|
604
|
-
"153": 1,
|
|
605
|
-
"169": 1,
|
|
606
|
-
"192": 2,
|
|
607
|
-
"193": 2,
|
|
608
|
-
"194": 6,
|
|
609
|
-
"196": 2,
|
|
610
|
-
"197": 2,
|
|
611
|
-
"225": 2,
|
|
612
|
-
"242": 2,
|
|
613
|
-
"243": 2,
|
|
614
|
-
"254": 2,
|
|
615
|
-
"255": 2,
|
|
616
|
-
"256": 2,
|
|
617
|
-
"281": 5,
|
|
618
|
-
"290": 1
|
|
619
|
-
},
|
|
620
|
-
"fqnsFingerprint": "99cc18bb5e6edc4242470e956a077ac0a487ddb07ce2c8ba98a5517e506e4d5d"
|
|
621
|
-
},
|
|
622
|
-
"3190e9613cfe4dbcd7b30492bba7db4317b9366d66f633a2db01005f88cdef34": {
|
|
623
|
-
"translations": {
|
|
624
|
-
"python": {
|
|
625
|
-
"source": "import aws_cdk.aws_iotevents_alpha as iotevents\nimport aws_cdk.aws_iotevents_actions_alpha as actions\n\n# input: iotevents.IInput\n\nstate = iotevents.State(\n state_name=\"MyState\",\n on_enter=[iotevents.Event(\n event_name=\"test-event\",\n condition=iotevents.Expression.current_input(input),\n actions=[\n actions.SetTimerAction(\"MyTimer\", {\n \"duration\": cdk.Duration.seconds(60)\n })\n ]\n )]\n)",
|
|
626
|
-
"version": "2"
|
|
627
|
-
},
|
|
628
|
-
"csharp": {
|
|
629
|
-
"source": "using Amazon.CDK.AWS.IoTEvents.Alpha;\nusing Amazon.CDK.AWS.IoTEvents.Actions.Alpha;\n\nIInput input;\n\nState state = new State(new StateProps {\n StateName = \"MyState\",\n OnEnter = new [] { new Event {\n EventName = \"test-event\",\n Condition = Expression.CurrentInput(input),\n Actions = new [] {\n new SetTimerAction(\"MyTimer\", new Dictionary<string, object> {\n { \"duration\", cdk.Duration.Seconds(60) }\n }) }\n } }\n});",
|
|
630
|
-
"version": "1"
|
|
631
|
-
},
|
|
632
|
-
"java": {
|
|
633
|
-
"source": "import software.amazon.awscdk.services.iotevents.alpha.*;\nimport software.amazon.awscdk.services.iotevents.actions.alpha.*;\n\nIInput input;\n\nState state = State.Builder.create()\n .stateName(\"MyState\")\n .onEnter(List.of(Event.builder()\n .eventName(\"test-event\")\n .condition(Expression.currentInput(input))\n .actions(List.of(\n new SetTimerAction(\"MyTimer\", Map.of(\n \"duration\", cdk.Duration.seconds(60)))))\n .build()))\n .build();",
|
|
634
|
-
"version": "1"
|
|
635
|
-
},
|
|
636
|
-
"go": {
|
|
637
|
-
"source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\nimport actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"\n\nvar input iInput\n\nstate := iotevents.NewState(&stateProps{\n\tstateName: jsii.String(\"MyState\"),\n\tonEnter: []event{\n\t\t&event{\n\t\t\teventName: jsii.String(\"test-event\"),\n\t\t\tcondition: iotevents.expression.currentInput(input),\n\t\t\tactions: []iAction{\n\t\t\t\tactions.NewSetTimerAction(jsii.String(\"MyTimer\"), map[string]interface{}{\n\t\t\t\t\t\"duration\": cdk.Duration_seconds(jsii.Number(60)),\n\t\t\t\t}),\n\t\t\t},\n\t\t},\n\t},\n})",
|
|
638
|
-
"version": "1"
|
|
639
|
-
},
|
|
640
|
-
"$": {
|
|
641
|
-
"source": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
|
|
642
|
-
"version": "0"
|
|
643
|
-
}
|
|
644
|
-
},
|
|
645
|
-
"location": {
|
|
646
|
-
"api": {
|
|
647
|
-
"api": "type",
|
|
648
|
-
"fqn": "@aws-cdk/aws-iotevents-actions-alpha.TimerDuration"
|
|
649
|
-
},
|
|
650
|
-
"field": {
|
|
651
|
-
"field": "example"
|
|
652
|
-
}
|
|
653
|
-
},
|
|
654
|
-
"didCompile": false,
|
|
655
|
-
"fqnsReferenced": [
|
|
656
|
-
"@aws-cdk/aws-iotevents-actions-alpha.SetTimerAction",
|
|
657
|
-
"@aws-cdk/aws-iotevents-actions-alpha.TimerDuration",
|
|
658
|
-
"@aws-cdk/aws-iotevents-alpha.Expression",
|
|
659
|
-
"@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
|
|
660
|
-
"@aws-cdk/aws-iotevents-alpha.IInput",
|
|
661
|
-
"@aws-cdk/aws-iotevents-alpha.State",
|
|
662
|
-
"@aws-cdk/aws-iotevents-alpha.StateProps"
|
|
663
|
-
],
|
|
664
|
-
"fullSource": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as actions from '@aws-cdk/aws-iotevents-actions-alpha';\n\ndeclare const input: iotevents.IInput;\n\nconst state = new iotevents.State({\n stateName: 'MyState',\n onEnter: [{\n eventName: 'test-event',\n condition: iotevents.Expression.currentInput(input),\n actions: [\n new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
|
|
665
|
-
"syntaxKindCounter": {
|
|
666
|
-
"8": 1,
|
|
667
|
-
"10": 5,
|
|
668
|
-
"75": 23,
|
|
669
|
-
"130": 1,
|
|
670
|
-
"153": 1,
|
|
671
|
-
"169": 1,
|
|
672
|
-
"192": 2,
|
|
673
|
-
"193": 3,
|
|
674
|
-
"194": 6,
|
|
675
|
-
"196": 2,
|
|
676
|
-
"197": 2,
|
|
677
|
-
"225": 2,
|
|
678
|
-
"242": 2,
|
|
679
|
-
"243": 2,
|
|
680
|
-
"254": 2,
|
|
681
|
-
"255": 2,
|
|
682
|
-
"256": 2,
|
|
683
|
-
"281": 6,
|
|
684
|
-
"290": 1
|
|
685
|
-
},
|
|
686
|
-
"fqnsFingerprint": "48e50a49af3b5e9a04db9d56541e6e8c085e79c300a451bf1a59eca0cadf6db9"
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}
|