@aws-cdk/aws-iotevents-alpha 2.16.0-alpha.0 → 2.17.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.jsii CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "https://aws.amazon.com"
9
9
  },
10
10
  "dependencies": {
11
- "aws-cdk-lib": "^2.16.0",
11
+ "aws-cdk-lib": "^2.17.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -2043,6 +2043,19 @@
2043
2043
  }
2044
2044
  }
2045
2045
  },
2046
+ "aws-cdk-lib.aws_personalize": {
2047
+ "targets": {
2048
+ "dotnet": {
2049
+ "namespace": "Amazon.CDK.AWS.Personalize"
2050
+ },
2051
+ "java": {
2052
+ "package": "software.amazon.awscdk.services.personalize"
2053
+ },
2054
+ "python": {
2055
+ "module": "aws_cdk.aws_personalize"
2056
+ }
2057
+ }
2058
+ },
2046
2059
  "aws-cdk-lib.aws_pinpoint": {
2047
2060
  "targets": {
2048
2061
  "dotnet": {
@@ -3429,7 +3442,7 @@
3429
3442
  "custom": {
3430
3443
  "exampleMetadata": "infused"
3431
3444
  },
3432
- "example": "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 10\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('10'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('20'),\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});",
3445
+ "example": "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 actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n ],\n }],\n});",
3433
3446
  "see": "https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html",
3434
3447
  "stability": "experimental",
3435
3448
  "summary": "Expression for events in Detector Model state."
@@ -4080,7 +4093,7 @@
4080
4093
  "custom": {
4081
4094
  "exampleMetadata": "infused"
4082
4095
  },
4083
- "example": "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 10\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('10'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('20'),\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});",
4096
+ "example": "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 actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n ],\n }],\n});",
4084
4097
  "stability": "experimental",
4085
4098
  "summary": "Defines a state of a detector."
4086
4099
  },
@@ -4168,7 +4181,7 @@
4168
4181
  "custom": {
4169
4182
  "exampleMetadata": "infused"
4170
4183
  },
4171
- "example": "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 10\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('10'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('20'),\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});",
4184
+ "example": "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 actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n ],\n }],\n});",
4172
4185
  "stability": "experimental",
4173
4186
  "summary": "Properties for defining a state of a detector."
4174
4187
  },
@@ -4352,6 +4365,6 @@
4352
4365
  "symbolId": "lib/state:TransitionOptions"
4353
4366
  }
4354
4367
  },
4355
- "version": "2.16.0-alpha.0",
4368
+ "version": "2.17.0-alpha.0",
4356
4369
  "fingerprint": "**********"
4357
4370
  }
package/.jsii.tabl.json CHANGED
@@ -117,7 +117,7 @@
117
117
  "281": 23,
118
118
  "290": 1
119
119
  },
120
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
120
+ "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
121
121
  },
122
122
  "d85a7e5e892cdb1a876abe348db57360034479abb95e7fe40ce3182878d25875": {
123
123
  "translations": {
@@ -175,7 +175,7 @@
175
175
  "256": 2,
176
176
  "290": 1
177
177
  },
178
- "fqnsFingerprint": "c23c44b644893ce9b77d6f3314de04896f09d364be63c6697749d44be32c5a12"
178
+ "fqnsFingerprint": "7b6f85b242cca789db43a338893de9c0c352c469e7b47ae0e986b750fe73cc95"
179
179
  },
180
180
  "9cb494b0be43c5c9bd6c3dbe081787055c9f1cd78921e3c35d7f5602798d5322": {
181
181
  "translations": {
@@ -229,7 +229,7 @@
229
229
  "281": 1,
230
230
  "290": 1
231
231
  },
232
- "fqnsFingerprint": "4b60f052f8b6f23860429ac862ef85068c6687467aecfa050494227cb3a29912"
232
+ "fqnsFingerprint": "f7ca2813937c04c19889f9fb5e79f86a9b4eebd8da1774984f11d947951de0c6"
233
233
  },
234
234
  "5a661e2425d516be4407efee50a19360f63e15bb1cc32635a032d3f985854b6d": {
235
235
  "translations": {
@@ -356,7 +356,7 @@
356
356
  "281": 23,
357
357
  "290": 1
358
358
  },
359
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
359
+ "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
360
360
  },
361
361
  "ab88c36fdb00c7b33321f3aac6efcc6ded02f883dc8bc01aa81e0a7077f77b32": {
362
362
  "translations": {
@@ -430,7 +430,7 @@
430
430
  "281": 23,
431
431
  "290": 1
432
432
  },
433
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
433
+ "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
434
434
  },
435
435
  "d826d52c39e72e0f171be749e9b4124fccfa91b80c2570f6767193205208b50a": {
436
436
  "translations": {
@@ -483,7 +483,7 @@
483
483
  "281": 3,
484
484
  "290": 1
485
485
  },
486
- "fqnsFingerprint": "13db38f027f317aed53856ffa6f88cf83d289a56564c20b1a631c882ced20ea7"
486
+ "fqnsFingerprint": "d876055290fb6d6eff54b6d378386c5f6b1bc4a05567960c235d96743ece2f96"
487
487
  },
488
488
  "ba01fbaeaaa05d38b8f1b5ac8787ffe1b271ce296abd4890ebe91a816a44df60": {
489
489
  "translations": {
@@ -557,24 +557,24 @@
557
557
  "281": 23,
558
558
  "290": 1
559
559
  },
560
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
560
+ "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
561
561
  },
562
- "6a794fb862b5fcbb5029738a276cdd8183c7f3f30ab0eb1683192d1811acb35f": {
562
+ "22a3fc319122ec2fadc144c02ca76ebdacd7b5834f2deb01fcc3d859273be013": {
563
563
  "translations": {
564
564
  "python": {
565
- "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 10\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.eq(\n iotevents.Expression.input_attribute(input, \"payload.temperature\"),\n iotevents.Expression.from_string(\"10\")),\n executing=[actions.LambdaInvokeAction(func)]\n)\n# transit to warmState when temperature is 20\ncold_state.transition_to(warm_state,\n when=iotevents.Expression.eq(\n iotevents.Expression.input_attribute(input, \"payload.temperature\"),\n iotevents.Expression.from_string(\"20\"))\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)",
565
+ "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=[actions, [\n actions.SetVariableAction(\"MyVariable\",\n iotevents.Expression.input_attribute(input, \"payload.temperature\"))\n ]\n ]\n )]\n)",
566
566
  "version": "2"
567
567
  },
568
568
  "csharp": {
569
- "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 10\nwarmState.TransitionTo(coldState, new TransitionOptions {\n EventName = \"to_coldState\", // optional property, default by combining the names of the States\n When = Expression.Eq(Expression.InputAttribute(input, \"payload.temperature\"), Expression.FromString(\"10\")),\n Executing = new [] { new LambdaInvokeAction(func) }\n});\n// transit to warmState when temperature is 20\ncoldState.TransitionTo(warmState, new TransitionOptions {\n When = Expression.Eq(Expression.InputAttribute(input, \"payload.temperature\"), Expression.FromString(\"20\"))\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});",
569
+ "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 [] { actions, new [] {\n new SetVariableAction(\"MyVariable\", Expression.InputAttribute(input, \"payload.temperature\")) } }\n } }\n});",
570
570
  "version": "1"
571
571
  },
572
572
  "java": {
573
- "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 10\nwarmState.transitionTo(coldState, TransitionOptions.builder()\n .eventName(\"to_coldState\") // optional property, default by combining the names of the States\n .when(Expression.eq(Expression.inputAttribute(input, \"payload.temperature\"), Expression.fromString(\"10\")))\n .executing(List.of(new LambdaInvokeAction(func)))\n .build());\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, TransitionOptions.builder()\n .when(Expression.eq(Expression.inputAttribute(input, \"payload.temperature\"), Expression.fromString(\"20\")))\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();",
573
+ "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(actions, List.of(\n new SetVariableAction(\"MyVariable\", Expression.inputAttribute(input, \"payload.temperature\")))))\n .build()))\n .build();",
574
574
  "version": "1"
575
575
  },
576
576
  "$": {
577
- "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 10\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('10'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('20'),\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});",
577
+ "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 actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n ],\n }],\n});",
578
578
  "version": "0"
579
579
  }
580
580
  },
@@ -587,51 +587,38 @@
587
587
  "field": "example"
588
588
  }
589
589
  },
590
- "didCompile": true,
590
+ "didCompile": false,
591
591
  "fqnsReferenced": [
592
- "@aws-cdk/aws-iotevents-actions-alpha.LambdaInvokeAction",
593
- "@aws-cdk/aws-iotevents-alpha.DetectorModel",
594
- "@aws-cdk/aws-iotevents-alpha.DetectorModelProps",
595
- "@aws-cdk/aws-iotevents-alpha.EventEvaluation",
596
- "@aws-cdk/aws-iotevents-alpha.EventEvaluation#SERIAL",
592
+ "@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction",
597
593
  "@aws-cdk/aws-iotevents-alpha.Expression",
598
594
  "@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
599
- "@aws-cdk/aws-iotevents-alpha.Expression#eq",
600
- "@aws-cdk/aws-iotevents-alpha.Expression#fromString",
601
595
  "@aws-cdk/aws-iotevents-alpha.Expression#inputAttribute",
602
596
  "@aws-cdk/aws-iotevents-alpha.IInput",
603
- "@aws-cdk/aws-iotevents-alpha.Input",
604
- "@aws-cdk/aws-iotevents-alpha.InputProps",
605
597
  "@aws-cdk/aws-iotevents-alpha.State",
606
- "@aws-cdk/aws-iotevents-alpha.State#transitionTo",
607
- "@aws-cdk/aws-iotevents-alpha.StateProps",
608
- "@aws-cdk/aws-iotevents-alpha.TransitionOptions",
609
- "aws-cdk-lib.aws_lambda.IFunction"
598
+ "@aws-cdk/aws-iotevents-alpha.StateProps"
610
599
  ],
611
- "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 10\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('10'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('20'),\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}",
600
+ "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 actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n ],\n }],\n});",
612
601
  "syntaxKindCounter": {
613
- "10": 21,
614
- "75": 86,
615
- "104": 2,
602
+ "10": 6,
603
+ "75": 24,
616
604
  "130": 1,
617
605
  "153": 1,
618
606
  "169": 1,
619
- "192": 8,
620
- "193": 9,
621
- "194": 26,
622
- "196": 9,
623
- "197": 8,
624
- "225": 4,
625
- "226": 3,
626
- "242": 4,
627
- "243": 4,
628
- "254": 3,
629
- "255": 3,
630
- "256": 3,
631
- "281": 23,
607
+ "192": 3,
608
+ "193": 2,
609
+ "194": 6,
610
+ "196": 2,
611
+ "197": 2,
612
+ "225": 2,
613
+ "242": 2,
614
+ "243": 2,
615
+ "254": 2,
616
+ "255": 2,
617
+ "256": 2,
618
+ "281": 5,
632
619
  "290": 1
633
620
  },
634
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
621
+ "fqnsFingerprint": "2623699685719a77bff1e5d9bfd763a2f87ee4df48dc738529b3b7dde22e5c3a"
635
622
  },
636
623
  "f0cdfe5941e7a22f9aa305b902ca0e450b4c1131ed6d11c2438107ccc0733ea1": {
637
624
  "translations": {
@@ -705,7 +692,7 @@
705
692
  "281": 23,
706
693
  "290": 1
707
694
  },
708
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
695
+ "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
709
696
  },
710
697
  "833dd237b47b3631a61758ba59f707174b5ae295918de2c9566289e9f5d7ae7a": {
711
698
  "translations": {
@@ -779,24 +766,24 @@
779
766
  "281": 23,
780
767
  "290": 1
781
768
  },
782
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
769
+ "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
783
770
  },
784
- "3d54efc0e83b080a65f3649cf0b79f77b552b6168507d51f65425296de12420f": {
771
+ "4da6ba49fc535dfaf9731525afcb884b6b732dca23f6efa4af5799b71a2c35fc": {
785
772
  "translations": {
786
773
  "python": {
787
- "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 10\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.eq(\n iotevents.Expression.input_attribute(input, \"payload.temperature\"),\n iotevents.Expression.from_string(\"10\")),\n executing=[actions.LambdaInvokeAction(func)]\n)\n# transit to warmState when temperature is 20\ncold_state.transition_to(warm_state,\n when=iotevents.Expression.eq(\n iotevents.Expression.input_attribute(input, \"payload.temperature\"),\n iotevents.Expression.from_string(\"20\"))\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)",
774
+ "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=[actions, [\n actions.SetVariableAction(\"MyVariable\",\n iotevents.Expression.input_attribute(input, \"payload.temperature\"))\n ]\n ]\n )]\n)",
788
775
  "version": "2"
789
776
  },
790
777
  "csharp": {
791
- "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 10\nwarmState.TransitionTo(coldState, new TransitionOptions {\n EventName = \"to_coldState\", // optional property, default by combining the names of the States\n When = Expression.Eq(Expression.InputAttribute(input, \"payload.temperature\"), Expression.FromString(\"10\")),\n Executing = new [] { new LambdaInvokeAction(func) }\n});\n// transit to warmState when temperature is 20\ncoldState.TransitionTo(warmState, new TransitionOptions {\n When = Expression.Eq(Expression.InputAttribute(input, \"payload.temperature\"), Expression.FromString(\"20\"))\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});",
778
+ "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 [] { actions, new [] {\n new SetVariableAction(\"MyVariable\", Expression.InputAttribute(input, \"payload.temperature\")) } }\n } }\n});",
792
779
  "version": "1"
793
780
  },
794
781
  "java": {
795
- "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 10\nwarmState.transitionTo(coldState, TransitionOptions.builder()\n .eventName(\"to_coldState\") // optional property, default by combining the names of the States\n .when(Expression.eq(Expression.inputAttribute(input, \"payload.temperature\"), Expression.fromString(\"10\")))\n .executing(List.of(new LambdaInvokeAction(func)))\n .build());\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, TransitionOptions.builder()\n .when(Expression.eq(Expression.inputAttribute(input, \"payload.temperature\"), Expression.fromString(\"20\")))\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();",
782
+ "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(actions, List.of(\n new SetVariableAction(\"MyVariable\", Expression.inputAttribute(input, \"payload.temperature\")))))\n .build()))\n .build();",
796
783
  "version": "1"
797
784
  },
798
785
  "$": {
799
- "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 10\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('10'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('20'),\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});",
786
+ "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 actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n ],\n }],\n});",
800
787
  "version": "0"
801
788
  }
802
789
  },
@@ -809,68 +796,55 @@
809
796
  "field": "example"
810
797
  }
811
798
  },
812
- "didCompile": true,
799
+ "didCompile": false,
813
800
  "fqnsReferenced": [
814
- "@aws-cdk/aws-iotevents-actions-alpha.LambdaInvokeAction",
815
- "@aws-cdk/aws-iotevents-alpha.DetectorModel",
816
- "@aws-cdk/aws-iotevents-alpha.DetectorModelProps",
817
- "@aws-cdk/aws-iotevents-alpha.EventEvaluation",
818
- "@aws-cdk/aws-iotevents-alpha.EventEvaluation#SERIAL",
801
+ "@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction",
819
802
  "@aws-cdk/aws-iotevents-alpha.Expression",
820
803
  "@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
821
- "@aws-cdk/aws-iotevents-alpha.Expression#eq",
822
- "@aws-cdk/aws-iotevents-alpha.Expression#fromString",
823
804
  "@aws-cdk/aws-iotevents-alpha.Expression#inputAttribute",
824
805
  "@aws-cdk/aws-iotevents-alpha.IInput",
825
- "@aws-cdk/aws-iotevents-alpha.Input",
826
- "@aws-cdk/aws-iotevents-alpha.InputProps",
827
806
  "@aws-cdk/aws-iotevents-alpha.State",
828
- "@aws-cdk/aws-iotevents-alpha.State#transitionTo",
829
- "@aws-cdk/aws-iotevents-alpha.StateProps",
830
- "@aws-cdk/aws-iotevents-alpha.TransitionOptions",
831
- "aws-cdk-lib.aws_lambda.IFunction"
807
+ "@aws-cdk/aws-iotevents-alpha.StateProps"
832
808
  ],
833
- "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 10\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('10'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('20'),\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}",
809
+ "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 actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n ],\n }],\n});",
834
810
  "syntaxKindCounter": {
835
- "10": 21,
836
- "75": 86,
837
- "104": 2,
811
+ "10": 6,
812
+ "75": 24,
838
813
  "130": 1,
839
814
  "153": 1,
840
815
  "169": 1,
841
- "192": 8,
842
- "193": 9,
843
- "194": 26,
844
- "196": 9,
845
- "197": 8,
846
- "225": 4,
847
- "226": 3,
848
- "242": 4,
849
- "243": 4,
850
- "254": 3,
851
- "255": 3,
852
- "256": 3,
853
- "281": 23,
816
+ "192": 3,
817
+ "193": 2,
818
+ "194": 6,
819
+ "196": 2,
820
+ "197": 2,
821
+ "225": 2,
822
+ "242": 2,
823
+ "243": 2,
824
+ "254": 2,
825
+ "255": 2,
826
+ "256": 2,
827
+ "281": 5,
854
828
  "290": 1
855
829
  },
856
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
830
+ "fqnsFingerprint": "2623699685719a77bff1e5d9bfd763a2f87ee4df48dc738529b3b7dde22e5c3a"
857
831
  },
858
- "c590446bb644ef5b9a3216159ab9ea31baa0db85991c0bc33ed6834f399d84b4": {
832
+ "83394b2e287899f8923406ee7821847ec382ac3f3bdc6fa5ec43d46fbea1dbad": {
859
833
  "translations": {
860
834
  "python": {
861
- "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 10\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.eq(\n iotevents.Expression.input_attribute(input, \"payload.temperature\"),\n iotevents.Expression.from_string(\"10\")),\n executing=[actions.LambdaInvokeAction(func)]\n)\n# transit to warmState when temperature is 20\ncold_state.transition_to(warm_state,\n when=iotevents.Expression.eq(\n iotevents.Expression.input_attribute(input, \"payload.temperature\"),\n iotevents.Expression.from_string(\"20\"))\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)",
835
+ "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=[actions, [\n actions.SetVariableAction(\"MyVariable\",\n iotevents.Expression.input_attribute(input, \"payload.temperature\"))\n ]\n ]\n )]\n)",
862
836
  "version": "2"
863
837
  },
864
838
  "csharp": {
865
- "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 10\nwarmState.TransitionTo(coldState, new TransitionOptions {\n EventName = \"to_coldState\", // optional property, default by combining the names of the States\n When = Expression.Eq(Expression.InputAttribute(input, \"payload.temperature\"), Expression.FromString(\"10\")),\n Executing = new [] { new LambdaInvokeAction(func) }\n});\n// transit to warmState when temperature is 20\ncoldState.TransitionTo(warmState, new TransitionOptions {\n When = Expression.Eq(Expression.InputAttribute(input, \"payload.temperature\"), Expression.FromString(\"20\"))\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});",
839
+ "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 [] { actions, new [] {\n new SetVariableAction(\"MyVariable\", Expression.InputAttribute(input, \"payload.temperature\")) } }\n } }\n});",
866
840
  "version": "1"
867
841
  },
868
842
  "java": {
869
- "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 10\nwarmState.transitionTo(coldState, TransitionOptions.builder()\n .eventName(\"to_coldState\") // optional property, default by combining the names of the States\n .when(Expression.eq(Expression.inputAttribute(input, \"payload.temperature\"), Expression.fromString(\"10\")))\n .executing(List.of(new LambdaInvokeAction(func)))\n .build());\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, TransitionOptions.builder()\n .when(Expression.eq(Expression.inputAttribute(input, \"payload.temperature\"), Expression.fromString(\"20\")))\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();",
843
+ "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(actions, List.of(\n new SetVariableAction(\"MyVariable\", Expression.inputAttribute(input, \"payload.temperature\")))))\n .build()))\n .build();",
870
844
  "version": "1"
871
845
  },
872
846
  "$": {
873
- "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 10\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('10'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('20'),\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});",
847
+ "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 actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n ],\n }],\n});",
874
848
  "version": "0"
875
849
  }
876
850
  },
@@ -883,51 +857,38 @@
883
857
  "field": "example"
884
858
  }
885
859
  },
886
- "didCompile": true,
860
+ "didCompile": false,
887
861
  "fqnsReferenced": [
888
- "@aws-cdk/aws-iotevents-actions-alpha.LambdaInvokeAction",
889
- "@aws-cdk/aws-iotevents-alpha.DetectorModel",
890
- "@aws-cdk/aws-iotevents-alpha.DetectorModelProps",
891
- "@aws-cdk/aws-iotevents-alpha.EventEvaluation",
892
- "@aws-cdk/aws-iotevents-alpha.EventEvaluation#SERIAL",
862
+ "@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction",
893
863
  "@aws-cdk/aws-iotevents-alpha.Expression",
894
864
  "@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
895
- "@aws-cdk/aws-iotevents-alpha.Expression#eq",
896
- "@aws-cdk/aws-iotevents-alpha.Expression#fromString",
897
865
  "@aws-cdk/aws-iotevents-alpha.Expression#inputAttribute",
898
866
  "@aws-cdk/aws-iotevents-alpha.IInput",
899
- "@aws-cdk/aws-iotevents-alpha.Input",
900
- "@aws-cdk/aws-iotevents-alpha.InputProps",
901
867
  "@aws-cdk/aws-iotevents-alpha.State",
902
- "@aws-cdk/aws-iotevents-alpha.State#transitionTo",
903
- "@aws-cdk/aws-iotevents-alpha.StateProps",
904
- "@aws-cdk/aws-iotevents-alpha.TransitionOptions",
905
- "aws-cdk-lib.aws_lambda.IFunction"
868
+ "@aws-cdk/aws-iotevents-alpha.StateProps"
906
869
  ],
907
- "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 10\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('10'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.eq(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('20'),\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}",
870
+ "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 actions: [\n new actions.SetVariableAction(\n 'MyVariable',\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n ),\n ],\n ],\n }],\n});",
908
871
  "syntaxKindCounter": {
909
- "10": 21,
910
- "75": 86,
911
- "104": 2,
872
+ "10": 6,
873
+ "75": 24,
912
874
  "130": 1,
913
875
  "153": 1,
914
876
  "169": 1,
915
- "192": 8,
916
- "193": 9,
917
- "194": 26,
918
- "196": 9,
919
- "197": 8,
920
- "225": 4,
921
- "226": 3,
922
- "242": 4,
923
- "243": 4,
924
- "254": 3,
925
- "255": 3,
926
- "256": 3,
927
- "281": 23,
877
+ "192": 3,
878
+ "193": 2,
879
+ "194": 6,
880
+ "196": 2,
881
+ "197": 2,
882
+ "225": 2,
883
+ "242": 2,
884
+ "243": 2,
885
+ "254": 2,
886
+ "255": 2,
887
+ "256": 2,
888
+ "281": 5,
928
889
  "290": 1
929
890
  },
930
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
891
+ "fqnsFingerprint": "2623699685719a77bff1e5d9bfd763a2f87ee4df48dc738529b3b7dde22e5c3a"
931
892
  },
932
893
  "fa045877518b517543a361119821a324b2d622188ae395f796912bdc07fe3296": {
933
894
  "translations": {
@@ -1001,7 +962,7 @@
1001
962
  "281": 23,
1002
963
  "290": 1
1003
964
  },
1004
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
965
+ "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
1005
966
  }
1006
967
  }
1007
968
  }
@@ -66,5 +66,5 @@ class DetectorModel extends aws_cdk_lib_1.Resource {
66
66
  }
67
67
  exports.DetectorModel = DetectorModel;
68
68
  _a = JSII_RTTI_SYMBOL_1;
69
- DetectorModel[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.DetectorModel", version: "2.16.0-alpha.0" };
69
+ DetectorModel[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.DetectorModel", version: "2.17.0-alpha.0" };
70
70
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV0ZWN0b3ItbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXRlY3Rvci1tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwyQ0FBMkM7QUFDM0MsNkNBQWtEO0FBRWxELDZEQUE2RDtBQWU3RDs7R0FFRztBQUNILElBQVksZUFZWDtBQVpELFdBQVksZUFBZTtJQUN6Qjs7O09BR0c7SUFDSCxrQ0FBZSxDQUFBO0lBRWY7OztPQUdHO0lBQ0gsb0NBQWlCLENBQUE7QUFDbkIsQ0FBQyxFQVpXLGVBQWUsR0FBZix1QkFBZSxLQUFmLHVCQUFlLFFBWTFCO0FBMEREOztHQUVHO0FBQ0gsTUFBYSxhQUFjLFNBQVEsc0JBQVE7SUFZekMsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUF5Qjs7UUFDakUsS0FBSyxDQUFD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pb24nKTtcbiAgICB9XG5cbiAgICBjb25zdCByb2xlID0gcHJvcHMucm9sZSA/PyBuZXcgaWFtLlJvbGUodGhpcywgJ0RldGVjdG9yTW9kZWxSb2xlJywge1xuICAgICAgYXNzdW1lZEJ5OiBuZXcgaWFtLlNlcnZpY2VQcmluY2lwYWwoJ2lvdGV2ZW50cy5hbWF6b25hd3MuY29tJyksXG4gICAgfSk7XG5cbiAgICBjb25zdCByZXNvdXJjZSA9IG5ldyBDZm5EZXRlY3Rvck1vZGVsKHRoaXMsICdSZXNvdXJjZScsIHtcbiAgICAgIGRldGVjdG9yTW9kZWxOYW1lOiB0aGlzLnBoeXNpY2FsTmFtZSxcbiAgICAgIGRldGVjdG9yTW9kZWxEZXNjcmlwdGlvbjogcHJvcHMuZGVzY3JpcHRpb24sXG4gICAgICBldmFsdWF0aW9uTWV0aG9kOiBwcm9wcy5ldmFsdWF0aW9uTWV0aG9kLFxuICAgICAga2V5OiBwcm9wcy5kZXRlY3RvcktleSxcbiAgICAgIGRldGVjdG9yTW9kZWxEZWZpbml0aW9uOiB7XG4gICAgICAgIGluaXRpYWxTdGF0ZU5hbWU6IHByb3BzLmluaXRpYWxTdGF0ZS5zdGF0ZU5hbWUsXG4gICAgICAgIHN0YXRlczogcHJvcHMuaW5pdGlhbFN0YXRlLl9jb2xsZWN0U3RhdGVKc29ucyh0aGlzLCB7IHJvbGUgfSwgbmV3IFNldDxTdGF0ZT4oKSksXG4gICAgICB9LFxuICAgICAgcm9sZUFybjogcm9sZS5yb2xlQXJuLFxuICAgIH0pO1xuXG4gICAgdGhpcy5kZXRlY3Rvck1vZGVsTmFtZSA9IHRoaXMuZ2V0UmVzb3VyY2VOYW1lQXR0cmlidXRlKHJlc291cmNlLnJlZik7XG4gIH1cbn1cbiJdfQ==
package/lib/expression.js CHANGED
@@ -51,7 +51,7 @@ class Expression {
51
51
  }
52
52
  exports.Expression = Expression;
53
53
  _a = JSII_RTTI_SYMBOL_1;
54
- Expression[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Expression", version: "2.16.0-alpha.0" };
54
+ Expression[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Expression", version: "2.17.0-alpha.0" };
55
55
  class StringExpression extends Expression {
56
56
  constructor(value) {
57
57
  super();
package/lib/input.js CHANGED
@@ -63,7 +63,7 @@ class Input extends InputBase {
63
63
  }
64
64
  exports.Input = Input;
65
65
  _a = JSII_RTTI_SYMBOL_1;
66
- Input[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Input", version: "2.16.0-alpha.0" };
66
+ Input[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Input", version: "2.17.0-alpha.0" };
67
67
  function arnForInput(inputName) {
68
68
  return `arn:${aws_cdk_lib_1.Aws.PARTITION}:iotevents:${aws_cdk_lib_1.Aws.REGION}:${aws_cdk_lib_1.Aws.ACCOUNT_ID}:input/${inputName}`;
69
69
  }
package/lib/state.js CHANGED
@@ -83,7 +83,7 @@ class State {
83
83
  }
84
84
  exports.State = State;
85
85
  _a = JSII_RTTI_SYMBOL_1;
86
- State[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.State", version: "2.16.0-alpha.0" };
86
+ State[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.State", version: "2.17.0-alpha.0" };
87
87
  function toEventsJson(scope, actionBindOptions, events) {
88
88
  return events === null || events === void 0 ? void 0 : events.map(event => {
89
89
  var _b, _c;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-iotevents-alpha",
3
- "version": "2.16.0-alpha.0",
3
+ "version": "2.17.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "The CDK Construct Library for AWS::IoTEvents",
6
6
  "main": "lib/index.js",
@@ -83,18 +83,18 @@
83
83
  },
84
84
  "license": "Apache-2.0",
85
85
  "devDependencies": {
86
- "@aws-cdk/cdk-build-tools": "2.16.0",
87
- "@aws-cdk/cdk-integ-tools": "2.16.0",
88
- "@aws-cdk/cfn2ts": "2.16.0",
89
- "@aws-cdk/pkglint": "2.16.0",
86
+ "@aws-cdk/cdk-build-tools": "2.17.0",
87
+ "@aws-cdk/cdk-integ-tools": "2.17.0",
88
+ "@aws-cdk/cfn2ts": "2.17.0",
89
+ "@aws-cdk/pkglint": "2.17.0",
90
90
  "@types/jest": "^27.4.1",
91
91
  "jest": "^27.5.1",
92
- "aws-cdk-lib": "2.16.0",
92
+ "aws-cdk-lib": "2.17.0",
93
93
  "constructs": "^10.0.0"
94
94
  },
95
95
  "dependencies": {},
96
96
  "peerDependencies": {
97
- "aws-cdk-lib": "^2.16.0",
97
+ "aws-cdk-lib": "^2.17.0",
98
98
  "constructs": "^10.0.0"
99
99
  },
100
100
  "engines": {