@aws-cdk/aws-iotevents-alpha 2.16.0-alpha.0 → 2.19.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.19.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -378,6 +378,19 @@
378
378
  }
379
379
  }
380
380
  },
381
+ "aws-cdk-lib.aws_billingconductor": {
382
+ "targets": {
383
+ "dotnet": {
384
+ "namespace": "Amazon.CDK.AWS.BillingConductor"
385
+ },
386
+ "java": {
387
+ "package": "software.amazon.awscdk.services.billingconductor"
388
+ },
389
+ "python": {
390
+ "module": "aws_cdk.aws_billingconductor"
391
+ }
392
+ }
393
+ },
381
394
  "aws-cdk-lib.aws_budgets": {
382
395
  "targets": {
383
396
  "dotnet": {
@@ -2043,6 +2056,19 @@
2043
2056
  }
2044
2057
  }
2045
2058
  },
2059
+ "aws-cdk-lib.aws_personalize": {
2060
+ "targets": {
2061
+ "dotnet": {
2062
+ "namespace": "Amazon.CDK.AWS.Personalize"
2063
+ },
2064
+ "java": {
2065
+ "package": "software.amazon.awscdk.services.personalize"
2066
+ },
2067
+ "python": {
2068
+ "module": "aws_cdk.aws_personalize"
2069
+ }
2070
+ }
2071
+ },
2046
2072
  "aws-cdk-lib.aws_pinpoint": {
2047
2073
  "targets": {
2048
2074
  "dotnet": {
@@ -2933,7 +2959,7 @@
2933
2959
  "stability": "experimental"
2934
2960
  },
2935
2961
  "homepage": "https://github.com/aws/aws-cdk",
2936
- "jsiiVersion": "1.54.0 (build b1b977a)",
2962
+ "jsiiVersion": "1.55.1 (build 07d2d90)",
2937
2963
  "keywords": [
2938
2964
  "aws",
2939
2965
  "cdk",
@@ -2986,7 +3012,7 @@
2986
3012
  "python": {
2987
3013
  "classifiers": [
2988
3014
  "Framework :: AWS CDK",
2989
- "Framework :: AWS CDK :: 1"
3015
+ "Framework :: AWS CDK :: 2"
2990
3016
  ],
2991
3017
  "distName": "aws-cdk.aws-iotevents-alpha",
2992
3018
  "module": "aws_cdk.aws_iotevents_alpha"
@@ -3429,7 +3455,7 @@
3429
3455
  "custom": {
3430
3456
  "exampleMetadata": "infused"
3431
3457
  },
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});",
3458
+ "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
3459
  "see": "https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html",
3434
3460
  "stability": "experimental",
3435
3461
  "summary": "Expression for events in Detector Model state."
@@ -4080,7 +4106,7 @@
4080
4106
  "custom": {
4081
4107
  "exampleMetadata": "infused"
4082
4108
  },
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});",
4109
+ "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
4110
  "stability": "experimental",
4085
4111
  "summary": "Defines a state of a detector."
4086
4112
  },
@@ -4168,7 +4194,7 @@
4168
4194
  "custom": {
4169
4195
  "exampleMetadata": "infused"
4170
4196
  },
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});",
4197
+ "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
4198
  "stability": "experimental",
4173
4199
  "summary": "Properties for defining a state of a detector."
4174
4200
  },
@@ -4352,6 +4378,6 @@
4352
4378
  "symbolId": "lib/state:TransitionOptions"
4353
4379
  }
4354
4380
  },
4355
- "version": "2.16.0-alpha.0",
4381
+ "version": "2.19.0-alpha.0",
4356
4382
  "fingerprint": "**********"
4357
4383
  }
package/.jsii.tabl.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "2",
3
- "toolVersion": "1.54.0",
3
+ "toolVersion": "1.55.1",
4
4
  "snippets": {
5
5
  "ad9051cf8dce433b144a79c963be4edc0fffa865a24fece82d7287fc1050fc07": {
6
6
  "translations": {
@@ -16,6 +16,10 @@
16
16
  "source": "import software.amazon.awscdk.services.iotevents.alpha.*;",
17
17
  "version": "1"
18
18
  },
19
+ "go": {
20
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"",
21
+ "version": "1"
22
+ },
19
23
  "$": {
20
24
  "source": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';",
21
25
  "version": "0"
@@ -58,6 +62,10 @@
58
62
  "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();",
59
63
  "version": "1"
60
64
  },
65
+ "go": {
66
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"import lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar func iFunction\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 10\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.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"10\"))),\n\texecuting: []*iAction{\n\t\tactions.NewLambdaInvokeAction(func),\n\t},\n})\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, &transitionOptions{\n\twhen: iotevents.*expression.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"20\"))),\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})",
67
+ "version": "1"
68
+ },
61
69
  "$": {
62
70
  "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});",
63
71
  "version": "0"
@@ -117,7 +125,7 @@
117
125
  "281": 23,
118
126
  "290": 1
119
127
  },
120
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
128
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
121
129
  },
122
130
  "d85a7e5e892cdb1a876abe348db57360034479abb95e7fe40ce3182878d25875": {
123
131
  "translations": {
@@ -133,6 +141,10 @@
133
141
  "source": "import software.amazon.awscdk.services.iam.*;\nimport software.amazon.awscdk.services.iotevents.alpha.*;\n\nIGrantable grantable;\n\nIInput input = Input.fromInputName(this, \"MyInput\", \"my_input\");\n\ninput.grantWrite(grantable);",
134
142
  "version": "1"
135
143
  },
144
+ "go": {
145
+ "source": "import iam \"github.com/aws/aws-cdk-go/awscdk\"import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\n\nvar grantable iGrantable\ninput := iotevents.input.fromInputName(this, jsii.String(\"MyInput\"), jsii.String(\"my_input\"))\n\ninput.grantWrite(grantable)",
146
+ "version": "1"
147
+ },
136
148
  "$": {
137
149
  "source": "import * as iam from 'aws-cdk-lib/aws-iam';\nimport * as iotevents from '@aws-cdk/aws-iotevents-alpha';\n\ndeclare const grantable: iam.IGrantable;\nconst input = iotevents.Input.fromInputName(this, 'MyInput', 'my_input');\n\ninput.grantWrite(grantable);",
138
150
  "version": "0"
@@ -175,7 +187,7 @@
175
187
  "256": 2,
176
188
  "290": 1
177
189
  },
178
- "fqnsFingerprint": "c23c44b644893ce9b77d6f3314de04896f09d364be63c6697749d44be32c5a12"
190
+ "fqnsFingerprint": "7b6f85b242cca789db43a338893de9c0c352c469e7b47ae0e986b750fe73cc95"
179
191
  },
180
192
  "9cb494b0be43c5c9bd6c3dbe081787055c9f1cd78921e3c35d7f5602798d5322": {
181
193
  "translations": {
@@ -191,6 +203,10 @@
191
203
  "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.alpha.*;\nimport software.amazon.awscdk.services.iam.*;\n\nRole role;\n\nActionBindOptions actionBindOptions = ActionBindOptions.builder()\n .role(role)\n .build();",
192
204
  "version": "1"
193
205
  },
206
+ "go": {
207
+ "source": "import iotevents_alpha \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import awscdk \"github.com/aws/aws-cdk-go/awscdk\"import iam \"github.com/aws/aws-cdk-go/awscdk/aws_iam\"\n\nvar role role\nactionBindOptions := &actionBindOptions{\n\trole: role,\n}",
208
+ "version": "1"
209
+ },
194
210
  "$": {
195
211
  "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iotevents_alpha from '@aws-cdk/aws-iotevents-alpha';\nimport { aws_iam as iam } from 'aws-cdk-lib';\n\ndeclare const role: iam.Role;\nconst actionBindOptions: iotevents_alpha.ActionBindOptions = {\n role: role,\n};",
196
212
  "version": "0"
@@ -229,7 +245,7 @@
229
245
  "281": 1,
230
246
  "290": 1
231
247
  },
232
- "fqnsFingerprint": "4b60f052f8b6f23860429ac862ef85068c6687467aecfa050494227cb3a29912"
248
+ "fqnsFingerprint": "d933947ba2b67cd279189f842be453a6550a86414af6660ba73807aea9a1eb09"
233
249
  },
234
250
  "5a661e2425d516be4407efee50a19360f63e15bb1cc32635a032d3f985854b6d": {
235
251
  "translations": {
@@ -245,6 +261,10 @@
245
261
  "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.alpha.*;\n\nActionConfig actionConfig = ActionConfig.builder()\n .configuration(ActionProperty.builder()\n .clearTimer(ClearTimerProperty.builder()\n .timerName(\"timerName\")\n .build())\n .dynamoDb(DynamoDBProperty.builder()\n .hashKeyField(\"hashKeyField\")\n .hashKeyValue(\"hashKeyValue\")\n .tableName(\"tableName\")\n\n // the properties below are optional\n .hashKeyType(\"hashKeyType\")\n .operation(\"operation\")\n .payload(PayloadProperty.builder()\n .contentExpression(\"contentExpression\")\n .type(\"type\")\n .build())\n .payloadField(\"payloadField\")\n .rangeKeyField(\"rangeKeyField\")\n .rangeKeyType(\"rangeKeyType\")\n .rangeKeyValue(\"rangeKeyValue\")\n .build())\n .dynamoDBv2(DynamoDBv2Property.builder()\n .tableName(\"tableName\")\n\n // the properties below are optional\n .payload(PayloadProperty.builder()\n .contentExpression(\"contentExpression\")\n .type(\"type\")\n .build())\n .build())\n .firehose(FirehoseProperty.builder()\n .deliveryStreamName(\"deliveryStreamName\")\n\n // the properties below are optional\n .payload(PayloadProperty.builder()\n .contentExpression(\"contentExpression\")\n .type(\"type\")\n .build())\n .separator(\"separator\")\n .build())\n .iotEvents(IotEventsProperty.builder()\n .inputName(\"inputName\")\n\n // the properties below are optional\n .payload(PayloadProperty.builder()\n .contentExpression(\"contentExpression\")\n .type(\"type\")\n .build())\n .build())\n .iotSiteWise(IotSiteWiseProperty.builder()\n .propertyValue(AssetPropertyValueProperty.builder()\n .value(AssetPropertyVariantProperty.builder()\n .booleanValue(\"booleanValue\")\n .doubleValue(\"doubleValue\")\n .integerValue(\"integerValue\")\n .stringValue(\"stringValue\")\n .build())\n\n // the properties below are optional\n .quality(\"quality\")\n .timestamp(AssetPropertyTimestampProperty.builder()\n .timeInSeconds(\"timeInSeconds\")\n\n // the properties below are optional\n .offsetInNanos(\"offsetInNanos\")\n .build())\n .build())\n\n // the properties below are optional\n .assetId(\"assetId\")\n .entryId(\"entryId\")\n .propertyAlias(\"propertyAlias\")\n .propertyId(\"propertyId\")\n .build())\n .iotTopicPublish(IotTopicPublishProperty.builder()\n .mqttTopic(\"mqttTopic\")\n\n // the properties below are optional\n .payload(PayloadProperty.builder()\n .contentExpression(\"contentExpression\")\n .type(\"type\")\n .build())\n .build())\n .lambda(LambdaProperty.builder()\n .functionArn(\"functionArn\")\n\n // the properties below are optional\n .payload(PayloadProperty.builder()\n .contentExpression(\"contentExpression\")\n .type(\"type\")\n .build())\n .build())\n .resetTimer(ResetTimerProperty.builder()\n .timerName(\"timerName\")\n .build())\n .setTimer(SetTimerProperty.builder()\n .timerName(\"timerName\")\n\n // the properties below are optional\n .durationExpression(\"durationExpression\")\n .seconds(123)\n .build())\n .setVariable(SetVariableProperty.builder()\n .value(\"value\")\n .variableName(\"variableName\")\n .build())\n .sns(SnsProperty.builder()\n .targetArn(\"targetArn\")\n\n // the properties below are optional\n .payload(PayloadProperty.builder()\n .contentExpression(\"contentExpression\")\n .type(\"type\")\n .build())\n .build())\n .sqs(SqsProperty.builder()\n .queueUrl(\"queueUrl\")\n\n // the properties below are optional\n .payload(PayloadProperty.builder()\n .contentExpression(\"contentExpression\")\n .type(\"type\")\n .build())\n .useBase64(false)\n .build())\n .build())\n .build();",
246
262
  "version": "1"
247
263
  },
264
+ "go": {
265
+ "source": "import iotevents_alpha \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\nactionConfig := &actionConfig{\n\tconfiguration: &actionProperty{\n\t\tclearTimer: &clearTimerProperty{\n\t\t\ttimerName: jsii.String(\"timerName\"),\n\t\t},\n\t\tdynamoDb: &dynamoDBProperty{\n\t\t\thashKeyField: jsii.String(\"hashKeyField\"),\n\t\t\thashKeyValue: jsii.String(\"hashKeyValue\"),\n\t\t\ttableName: jsii.String(\"tableName\"),\n\n\t\t\t// the properties below are optional\n\t\t\thashKeyType: jsii.String(\"hashKeyType\"),\n\t\t\toperation: jsii.String(\"operation\"),\n\t\t\tpayload: &payloadProperty{\n\t\t\t\tcontentExpression: jsii.String(\"contentExpression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t\tpayloadField: jsii.String(\"payloadField\"),\n\t\t\trangeKeyField: jsii.String(\"rangeKeyField\"),\n\t\t\trangeKeyType: jsii.String(\"rangeKeyType\"),\n\t\t\trangeKeyValue: jsii.String(\"rangeKeyValue\"),\n\t\t},\n\t\tdynamoDBv2: &dynamoDBv2Property{\n\t\t\ttableName: jsii.String(\"tableName\"),\n\n\t\t\t// the properties below are optional\n\t\t\tpayload: &payloadProperty{\n\t\t\t\tcontentExpression: jsii.String(\"contentExpression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t},\n\t\tfirehose: &firehoseProperty{\n\t\t\tdeliveryStreamName: jsii.String(\"deliveryStreamName\"),\n\n\t\t\t// the properties below are optional\n\t\t\tpayload: &payloadProperty{\n\t\t\t\tcontentExpression: jsii.String(\"contentExpression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t\tseparator: jsii.String(\"separator\"),\n\t\t},\n\t\tiotEvents: &iotEventsProperty{\n\t\t\tinputName: jsii.String(\"inputName\"),\n\n\t\t\t// the properties below are optional\n\t\t\tpayload: &payloadProperty{\n\t\t\t\tcontentExpression: jsii.String(\"contentExpression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t},\n\t\tiotSiteWise: &iotSiteWiseProperty{\n\t\t\tpropertyValue: &assetPropertyValueProperty{\n\t\t\t\tvalue: &assetPropertyVariantProperty{\n\t\t\t\t\tbooleanValue: jsii.String(\"booleanValue\"),\n\t\t\t\t\tdoubleValue: jsii.String(\"doubleValue\"),\n\t\t\t\t\tintegerValue: jsii.String(\"integerValue\"),\n\t\t\t\t\tstringValue: jsii.String(\"stringValue\"),\n\t\t\t\t},\n\n\t\t\t\t// the properties below are optional\n\t\t\t\tquality: jsii.String(\"quality\"),\n\t\t\t\ttimestamp: &assetPropertyTimestampProperty{\n\t\t\t\t\ttimeInSeconds: jsii.String(\"timeInSeconds\"),\n\n\t\t\t\t\t// the properties below are optional\n\t\t\t\t\toffsetInNanos: jsii.String(\"offsetInNanos\"),\n\t\t\t\t},\n\t\t\t},\n\n\t\t\t// the properties below are optional\n\t\t\tassetId: jsii.String(\"assetId\"),\n\t\t\tentryId: jsii.String(\"entryId\"),\n\t\t\tpropertyAlias: jsii.String(\"propertyAlias\"),\n\t\t\tpropertyId: jsii.String(\"propertyId\"),\n\t\t},\n\t\tiotTopicPublish: &iotTopicPublishProperty{\n\t\t\tmqttTopic: jsii.String(\"mqttTopic\"),\n\n\t\t\t// the properties below are optional\n\t\t\tpayload: &payloadProperty{\n\t\t\t\tcontentExpression: jsii.String(\"contentExpression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t},\n\t\tlambda: &lambdaProperty{\n\t\t\tfunctionArn: jsii.String(\"functionArn\"),\n\n\t\t\t// the properties below are optional\n\t\t\tpayload: &payloadProperty{\n\t\t\t\tcontentExpression: jsii.String(\"contentExpression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t},\n\t\tresetTimer: &resetTimerProperty{\n\t\t\ttimerName: jsii.String(\"timerName\"),\n\t\t},\n\t\tsetTimer: &setTimerProperty{\n\t\t\ttimerName: jsii.String(\"timerName\"),\n\n\t\t\t// the properties below are optional\n\t\t\tdurationExpression: jsii.String(\"durationExpression\"),\n\t\t\tseconds: jsii.Number(123),\n\t\t},\n\t\tsetVariable: &setVariableProperty{\n\t\t\tvalue: jsii.String(\"value\"),\n\t\t\tvariableName: jsii.String(\"variableName\"),\n\t\t},\n\t\tsns: &snsProperty{\n\t\t\ttargetArn: jsii.String(\"targetArn\"),\n\n\t\t\t// the properties below are optional\n\t\t\tpayload: &payloadProperty{\n\t\t\t\tcontentExpression: jsii.String(\"contentExpression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t},\n\t\tsqs: &sqsProperty{\n\t\t\tqueueUrl: jsii.String(\"queueUrl\"),\n\n\t\t\t// the properties below are optional\n\t\t\tpayload: &payloadProperty{\n\t\t\t\tcontentExpression: jsii.String(\"contentExpression\"),\n\t\t\t\ttype: jsii.String(\"type\"),\n\t\t\t},\n\t\t\tuseBase64: jsii.Boolean(false),\n\t\t},\n\t},\n}",
266
+ "version": "1"
267
+ },
248
268
  "$": {
249
269
  "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iotevents_alpha from '@aws-cdk/aws-iotevents-alpha';\nconst actionConfig: iotevents_alpha.ActionConfig = {\n configuration: {\n clearTimer: {\n timerName: 'timerName',\n },\n dynamoDb: {\n hashKeyField: 'hashKeyField',\n hashKeyValue: 'hashKeyValue',\n tableName: 'tableName',\n\n // the properties below are optional\n hashKeyType: 'hashKeyType',\n operation: 'operation',\n payload: {\n contentExpression: 'contentExpression',\n type: 'type',\n },\n payloadField: 'payloadField',\n rangeKeyField: 'rangeKeyField',\n rangeKeyType: 'rangeKeyType',\n rangeKeyValue: 'rangeKeyValue',\n },\n dynamoDBv2: {\n tableName: 'tableName',\n\n // the properties below are optional\n payload: {\n contentExpression: 'contentExpression',\n type: 'type',\n },\n },\n firehose: {\n deliveryStreamName: 'deliveryStreamName',\n\n // the properties below are optional\n payload: {\n contentExpression: 'contentExpression',\n type: 'type',\n },\n separator: 'separator',\n },\n iotEvents: {\n inputName: 'inputName',\n\n // the properties below are optional\n payload: {\n contentExpression: 'contentExpression',\n type: 'type',\n },\n },\n iotSiteWise: {\n propertyValue: {\n value: {\n booleanValue: 'booleanValue',\n doubleValue: 'doubleValue',\n integerValue: 'integerValue',\n stringValue: 'stringValue',\n },\n\n // the properties below are optional\n quality: 'quality',\n timestamp: {\n timeInSeconds: 'timeInSeconds',\n\n // the properties below are optional\n offsetInNanos: 'offsetInNanos',\n },\n },\n\n // the properties below are optional\n assetId: 'assetId',\n entryId: 'entryId',\n propertyAlias: 'propertyAlias',\n propertyId: 'propertyId',\n },\n iotTopicPublish: {\n mqttTopic: 'mqttTopic',\n\n // the properties below are optional\n payload: {\n contentExpression: 'contentExpression',\n type: 'type',\n },\n },\n lambda: {\n functionArn: 'functionArn',\n\n // the properties below are optional\n payload: {\n contentExpression: 'contentExpression',\n type: 'type',\n },\n },\n resetTimer: {\n timerName: 'timerName',\n },\n setTimer: {\n timerName: 'timerName',\n\n // the properties below are optional\n durationExpression: 'durationExpression',\n seconds: 123,\n },\n setVariable: {\n value: 'value',\n variableName: 'variableName',\n },\n sns: {\n targetArn: 'targetArn',\n\n // the properties below are optional\n payload: {\n contentExpression: 'contentExpression',\n type: 'type',\n },\n },\n sqs: {\n queueUrl: 'queueUrl',\n\n // the properties below are optional\n payload: {\n contentExpression: 'contentExpression',\n type: 'type',\n },\n useBase64: false,\n },\n },\n};",
250
270
  "version": "0"
@@ -298,6 +318,10 @@
298
318
  "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();",
299
319
  "version": "1"
300
320
  },
321
+ "go": {
322
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"import lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar func iFunction\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 10\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.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"10\"))),\n\texecuting: []*iAction{\n\t\tactions.NewLambdaInvokeAction(func),\n\t},\n})\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, &transitionOptions{\n\twhen: iotevents.*expression.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"20\"))),\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})",
323
+ "version": "1"
324
+ },
301
325
  "$": {
302
326
  "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});",
303
327
  "version": "0"
@@ -356,7 +380,7 @@
356
380
  "281": 23,
357
381
  "290": 1
358
382
  },
359
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
383
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
360
384
  },
361
385
  "ab88c36fdb00c7b33321f3aac6efcc6ded02f883dc8bc01aa81e0a7077f77b32": {
362
386
  "translations": {
@@ -372,6 +396,10 @@
372
396
  "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();",
373
397
  "version": "1"
374
398
  },
399
+ "go": {
400
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"import lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar func iFunction\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 10\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.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"10\"))),\n\texecuting: []*iAction{\n\t\tactions.NewLambdaInvokeAction(func),\n\t},\n})\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, &transitionOptions{\n\twhen: iotevents.*expression.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"20\"))),\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})",
401
+ "version": "1"
402
+ },
375
403
  "$": {
376
404
  "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});",
377
405
  "version": "0"
@@ -430,7 +458,7 @@
430
458
  "281": 23,
431
459
  "290": 1
432
460
  },
433
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
461
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
434
462
  },
435
463
  "d826d52c39e72e0f171be749e9b4124fccfa91b80c2570f6767193205208b50a": {
436
464
  "translations": {
@@ -446,6 +474,10 @@
446
474
  "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.alpha.*;\n\nIAction action;\nExpression expression;\n\nEvent event = Event.builder()\n .eventName(\"eventName\")\n\n // the properties below are optional\n .actions(List.of(action))\n .condition(expression)\n .build();",
447
475
  "version": "1"
448
476
  },
477
+ "go": {
478
+ "source": "import iotevents_alpha \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"\n\nvar action iAction\nvar expression expression\nevent := &event{\n\teventName: jsii.String(\"eventName\"),\n\n\t// the properties below are optional\n\tactions: []*iAction{\n\t\taction,\n\t},\n\tcondition: expression,\n}",
479
+ "version": "1"
480
+ },
449
481
  "$": {
450
482
  "source": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as iotevents_alpha from '@aws-cdk/aws-iotevents-alpha';\n\ndeclare const action: iotevents_alpha.IAction;\ndeclare const expression: iotevents_alpha.Expression;\nconst event: iotevents_alpha.Event = {\n eventName: 'eventName',\n\n // the properties below are optional\n actions: [action],\n condition: expression,\n};",
451
483
  "version": "0"
@@ -483,7 +515,7 @@
483
515
  "281": 3,
484
516
  "290": 1
485
517
  },
486
- "fqnsFingerprint": "13db38f027f317aed53856ffa6f88cf83d289a56564c20b1a631c882ced20ea7"
518
+ "fqnsFingerprint": "e34556ff1d564da433765eae28b2ee0cce659e6ba6fe6ca7ae2d8fd48a6f213b"
487
519
  },
488
520
  "ba01fbaeaaa05d38b8f1b5ac8787ffe1b271ce296abd4890ebe91a816a44df60": {
489
521
  "translations": {
@@ -499,6 +531,10 @@
499
531
  "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();",
500
532
  "version": "1"
501
533
  },
534
+ "go": {
535
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"import lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar func iFunction\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 10\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.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"10\"))),\n\texecuting: []*iAction{\n\t\tactions.NewLambdaInvokeAction(func),\n\t},\n})\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, &transitionOptions{\n\twhen: iotevents.*expression.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"20\"))),\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})",
536
+ "version": "1"
537
+ },
502
538
  "$": {
503
539
  "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});",
504
540
  "version": "0"
@@ -557,24 +593,28 @@
557
593
  "281": 23,
558
594
  "290": 1
559
595
  },
560
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
596
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
561
597
  },
562
- "6a794fb862b5fcbb5029738a276cdd8183c7f3f30ab0eb1683192d1811acb35f": {
598
+ "22a3fc319122ec2fadc144c02ca76ebdacd7b5834f2deb01fcc3d859273be013": {
563
599
  "translations": {
564
600
  "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)",
601
+ "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
602
  "version": "2"
567
603
  },
568
604
  "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});",
605
+ "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
606
  "version": "1"
571
607
  },
572
608
  "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();",
609
+ "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();",
610
+ "version": "1"
611
+ },
612
+ "go": {
613
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import 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,\n\t\t\t\t[]interface{}{\n\t\t\t\t\tactions.NewSetVariableAction(jsii.String(\"MyVariable\"), iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\"))),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
574
614
  "version": "1"
575
615
  },
576
616
  "$": {
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});",
617
+ "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
618
  "version": "0"
579
619
  }
580
620
  },
@@ -587,51 +627,38 @@
587
627
  "field": "example"
588
628
  }
589
629
  },
590
- "didCompile": true,
630
+ "didCompile": false,
591
631
  "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",
632
+ "@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction",
597
633
  "@aws-cdk/aws-iotevents-alpha.Expression",
598
634
  "@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
599
- "@aws-cdk/aws-iotevents-alpha.Expression#eq",
600
- "@aws-cdk/aws-iotevents-alpha.Expression#fromString",
601
635
  "@aws-cdk/aws-iotevents-alpha.Expression#inputAttribute",
602
636
  "@aws-cdk/aws-iotevents-alpha.IInput",
603
- "@aws-cdk/aws-iotevents-alpha.Input",
604
- "@aws-cdk/aws-iotevents-alpha.InputProps",
605
637
  "@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"
638
+ "@aws-cdk/aws-iotevents-alpha.StateProps"
610
639
  ],
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}",
640
+ "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
641
  "syntaxKindCounter": {
613
- "10": 21,
614
- "75": 86,
615
- "104": 2,
642
+ "10": 6,
643
+ "75": 24,
616
644
  "130": 1,
617
645
  "153": 1,
618
646
  "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,
647
+ "192": 3,
648
+ "193": 2,
649
+ "194": 6,
650
+ "196": 2,
651
+ "197": 2,
652
+ "225": 2,
653
+ "242": 2,
654
+ "243": 2,
655
+ "254": 2,
656
+ "255": 2,
657
+ "256": 2,
658
+ "281": 5,
632
659
  "290": 1
633
660
  },
634
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
661
+ "fqnsFingerprint": "226d6c2fa5e69560f0fc23468378761ab44719798ab8b629d6c76141c0e46743"
635
662
  },
636
663
  "f0cdfe5941e7a22f9aa305b902ca0e450b4c1131ed6d11c2438107ccc0733ea1": {
637
664
  "translations": {
@@ -647,6 +674,10 @@
647
674
  "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();",
648
675
  "version": "1"
649
676
  },
677
+ "go": {
678
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"import lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar func iFunction\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 10\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.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"10\"))),\n\texecuting: []*iAction{\n\t\tactions.NewLambdaInvokeAction(func),\n\t},\n})\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, &transitionOptions{\n\twhen: iotevents.*expression.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"20\"))),\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})",
679
+ "version": "1"
680
+ },
650
681
  "$": {
651
682
  "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});",
652
683
  "version": "0"
@@ -705,7 +736,7 @@
705
736
  "281": 23,
706
737
  "290": 1
707
738
  },
708
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
739
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
709
740
  },
710
741
  "833dd237b47b3631a61758ba59f707174b5ae295918de2c9566289e9f5d7ae7a": {
711
742
  "translations": {
@@ -721,6 +752,10 @@
721
752
  "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();",
722
753
  "version": "1"
723
754
  },
755
+ "go": {
756
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"import lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar func iFunction\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 10\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.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"10\"))),\n\texecuting: []*iAction{\n\t\tactions.NewLambdaInvokeAction(func),\n\t},\n})\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, &transitionOptions{\n\twhen: iotevents.*expression.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"20\"))),\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})",
757
+ "version": "1"
758
+ },
724
759
  "$": {
725
760
  "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});",
726
761
  "version": "0"
@@ -779,24 +814,28 @@
779
814
  "281": 23,
780
815
  "290": 1
781
816
  },
782
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
817
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
783
818
  },
784
- "3d54efc0e83b080a65f3649cf0b79f77b552b6168507d51f65425296de12420f": {
819
+ "4da6ba49fc535dfaf9731525afcb884b6b732dca23f6efa4af5799b71a2c35fc": {
785
820
  "translations": {
786
821
  "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)",
822
+ "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
823
  "version": "2"
789
824
  },
790
825
  "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});",
826
+ "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
827
  "version": "1"
793
828
  },
794
829
  "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();",
830
+ "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();",
831
+ "version": "1"
832
+ },
833
+ "go": {
834
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import 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,\n\t\t\t\t[]interface{}{\n\t\t\t\t\tactions.NewSetVariableAction(jsii.String(\"MyVariable\"), iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\"))),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
796
835
  "version": "1"
797
836
  },
798
837
  "$": {
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});",
838
+ "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
839
  "version": "0"
801
840
  }
802
841
  },
@@ -809,68 +848,59 @@
809
848
  "field": "example"
810
849
  }
811
850
  },
812
- "didCompile": true,
851
+ "didCompile": false,
813
852
  "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",
853
+ "@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction",
819
854
  "@aws-cdk/aws-iotevents-alpha.Expression",
820
855
  "@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
821
- "@aws-cdk/aws-iotevents-alpha.Expression#eq",
822
- "@aws-cdk/aws-iotevents-alpha.Expression#fromString",
823
856
  "@aws-cdk/aws-iotevents-alpha.Expression#inputAttribute",
824
857
  "@aws-cdk/aws-iotevents-alpha.IInput",
825
- "@aws-cdk/aws-iotevents-alpha.Input",
826
- "@aws-cdk/aws-iotevents-alpha.InputProps",
827
858
  "@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"
859
+ "@aws-cdk/aws-iotevents-alpha.StateProps"
832
860
  ],
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}",
861
+ "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
862
  "syntaxKindCounter": {
835
- "10": 21,
836
- "75": 86,
837
- "104": 2,
863
+ "10": 6,
864
+ "75": 24,
838
865
  "130": 1,
839
866
  "153": 1,
840
867
  "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,
868
+ "192": 3,
869
+ "193": 2,
870
+ "194": 6,
871
+ "196": 2,
872
+ "197": 2,
873
+ "225": 2,
874
+ "242": 2,
875
+ "243": 2,
876
+ "254": 2,
877
+ "255": 2,
878
+ "256": 2,
879
+ "281": 5,
854
880
  "290": 1
855
881
  },
856
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
882
+ "fqnsFingerprint": "226d6c2fa5e69560f0fc23468378761ab44719798ab8b629d6c76141c0e46743"
857
883
  },
858
- "c590446bb644ef5b9a3216159ab9ea31baa0db85991c0bc33ed6834f399d84b4": {
884
+ "83394b2e287899f8923406ee7821847ec382ac3f3bdc6fa5ec43d46fbea1dbad": {
859
885
  "translations": {
860
886
  "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)",
887
+ "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
888
  "version": "2"
863
889
  },
864
890
  "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});",
891
+ "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
892
  "version": "1"
867
893
  },
868
894
  "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();",
895
+ "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();",
896
+ "version": "1"
897
+ },
898
+ "go": {
899
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import 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,\n\t\t\t\t[]interface{}{\n\t\t\t\t\tactions.NewSetVariableAction(jsii.String(\"MyVariable\"), iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\"))),\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t},\n})",
870
900
  "version": "1"
871
901
  },
872
902
  "$": {
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});",
903
+ "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
904
  "version": "0"
875
905
  }
876
906
  },
@@ -883,51 +913,38 @@
883
913
  "field": "example"
884
914
  }
885
915
  },
886
- "didCompile": true,
916
+ "didCompile": false,
887
917
  "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",
918
+ "@aws-cdk/aws-iotevents-actions-alpha.SetVariableAction",
893
919
  "@aws-cdk/aws-iotevents-alpha.Expression",
894
920
  "@aws-cdk/aws-iotevents-alpha.Expression#currentInput",
895
- "@aws-cdk/aws-iotevents-alpha.Expression#eq",
896
- "@aws-cdk/aws-iotevents-alpha.Expression#fromString",
897
921
  "@aws-cdk/aws-iotevents-alpha.Expression#inputAttribute",
898
922
  "@aws-cdk/aws-iotevents-alpha.IInput",
899
- "@aws-cdk/aws-iotevents-alpha.Input",
900
- "@aws-cdk/aws-iotevents-alpha.InputProps",
901
923
  "@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"
924
+ "@aws-cdk/aws-iotevents-alpha.StateProps"
906
925
  ],
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}",
926
+ "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
927
  "syntaxKindCounter": {
909
- "10": 21,
910
- "75": 86,
911
- "104": 2,
928
+ "10": 6,
929
+ "75": 24,
912
930
  "130": 1,
913
931
  "153": 1,
914
932
  "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,
933
+ "192": 3,
934
+ "193": 2,
935
+ "194": 6,
936
+ "196": 2,
937
+ "197": 2,
938
+ "225": 2,
939
+ "242": 2,
940
+ "243": 2,
941
+ "254": 2,
942
+ "255": 2,
943
+ "256": 2,
944
+ "281": 5,
928
945
  "290": 1
929
946
  },
930
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
947
+ "fqnsFingerprint": "226d6c2fa5e69560f0fc23468378761ab44719798ab8b629d6c76141c0e46743"
931
948
  },
932
949
  "fa045877518b517543a361119821a324b2d622188ae395f796912bdc07fe3296": {
933
950
  "translations": {
@@ -943,6 +960,10 @@
943
960
  "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();",
944
961
  "version": "1"
945
962
  },
963
+ "go": {
964
+ "source": "import iotevents \"github.com/aws/aws-cdk-go/awscdkioteventsalpha\"import actions \"github.com/aws/aws-cdk-go/awscdkioteventsactionsalpha\"import lambda \"github.com/aws/aws-cdk-go/awscdk\"\n\nvar func iFunction\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 10\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.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"10\"))),\n\texecuting: []*iAction{\n\t\tactions.NewLambdaInvokeAction(func),\n\t},\n})\n// transit to warmState when temperature is 20\ncoldState.transitionTo(warmState, &transitionOptions{\n\twhen: iotevents.*expression.eq(iotevents.*expression.inputAttribute(input, jsii.String(\"payload.temperature\")), iotevents.*expression.fromString(jsii.String(\"20\"))),\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})",
965
+ "version": "1"
966
+ },
946
967
  "$": {
947
968
  "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});",
948
969
  "version": "0"
@@ -1001,7 +1022,7 @@
1001
1022
  "281": 23,
1002
1023
  "290": 1
1003
1024
  },
1004
- "fqnsFingerprint": "658afec51a3d6c7dc2d92525fd6212704345425598e407de7b9ccaa5b779567b"
1025
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
1005
1026
  }
1006
1027
  }
1007
1028
  }
package/.warnings.jsii.js CHANGED
@@ -10,8 +10,6 @@ function _aws_cdk_aws_iotevents_alpha_ActionConfig(p) {
10
10
  }
11
11
  function _aws_cdk_aws_iotevents_alpha_IAction(p) {
12
12
  }
13
- function _aws_cdk_aws_iotevents_alpha_State(p) {
14
- }
15
13
  function _aws_cdk_aws_iotevents_alpha_Event(p) {
16
14
  if (p == null)
17
15
  return;
@@ -22,6 +20,8 @@ function _aws_cdk_aws_iotevents_alpha_Event(p) {
22
20
  _aws_cdk_aws_iotevents_alpha_Expression(p.condition);
23
21
  visitedObjects.delete(p);
24
22
  }
23
+ function _aws_cdk_aws_iotevents_alpha_State(p) {
24
+ }
25
25
  function _aws_cdk_aws_iotevents_alpha_TransitionOptions(p) {
26
26
  if (p == null)
27
27
  return;
@@ -77,5 +77,5 @@ function print(name, deprecationMessage) {
77
77
  const visitedObjects = new Set();
78
78
  class DeprecationError extends Error {
79
79
  }
80
- module.exports = { print, _aws_cdk_aws_iotevents_alpha_EventEvaluation, _aws_cdk_aws_iotevents_alpha_InputProps, _aws_cdk_aws_iotevents_alpha_IDetectorModel, _aws_cdk_aws_iotevents_alpha_ActionBindOptions, _aws_cdk_aws_iotevents_alpha_ActionConfig, _aws_cdk_aws_iotevents_alpha_IAction, _aws_cdk_aws_iotevents_alpha_State, _aws_cdk_aws_iotevents_alpha_Event, _aws_cdk_aws_iotevents_alpha_TransitionOptions, _aws_cdk_aws_iotevents_alpha_StateProps, _aws_cdk_aws_iotevents_alpha_DetectorModelProps, _aws_cdk_aws_iotevents_alpha_IInput, _aws_cdk_aws_iotevents_alpha_DetectorModel, _aws_cdk_aws_iotevents_alpha_Expression, _aws_cdk_aws_iotevents_alpha_Input };
80
+ module.exports = { print, _aws_cdk_aws_iotevents_alpha_EventEvaluation, _aws_cdk_aws_iotevents_alpha_InputProps, _aws_cdk_aws_iotevents_alpha_IDetectorModel, _aws_cdk_aws_iotevents_alpha_ActionBindOptions, _aws_cdk_aws_iotevents_alpha_ActionConfig, _aws_cdk_aws_iotevents_alpha_IAction, _aws_cdk_aws_iotevents_alpha_Event, _aws_cdk_aws_iotevents_alpha_State, _aws_cdk_aws_iotevents_alpha_TransitionOptions, _aws_cdk_aws_iotevents_alpha_StateProps, _aws_cdk_aws_iotevents_alpha_DetectorModelProps, _aws_cdk_aws_iotevents_alpha_IInput, _aws_cdk_aws_iotevents_alpha_DetectorModel, _aws_cdk_aws_iotevents_alpha_Expression, _aws_cdk_aws_iotevents_alpha_Input };
81
81
  module.exports.DeprecationError = DeprecationError;
@@ -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.19.0-alpha.0" };
70
70
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV0ZWN0b3ItbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXRlY3Rvci1tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwyQ0FBMkM7QUFDM0MsNkNBQWtEO0FBRWxELDZEQUE2RDtBQWU3RDs7R0FFRztBQUNILElBQVksZUFZWDtBQVpELFdBQVksZUFBZTtJQUN6Qjs7O09BR0c7SUFDSCxrQ0FBZSxDQUFBO0lBRWY7OztPQUdHO0lBQ0gsb0NBQWlCLENBQUE7QUFDbkIsQ0FBQyxFQVpXLGVBQWUsR0FBZix1QkFBZSxLQUFmLHVCQUFlLFFBWTFCO0FBMEREOztHQUVHO0FBQ0gsTUFBYSxhQUFjLFNBQVEsc0JBQVE7SUFZekMsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUF5Qjs7UUFDakUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUU7WUFDZixZQUFZLEVBQUUsS0FBSyxDQUFDLGlCQUFpQjtTQUN0QyxDQUFDLENBQUM7O1FBRUgsSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLENBQUMscUNBQXFDLEVBQUUsRUFBRTtZQUMvRCxNQUFNLElBQUksS0FBSyxDQUFDLDhEQUE4RCxDQUFDLENBQUM7U0FDakY7UUFFRCxNQUFNLElBQUksU0FBRyxLQUFLLENBQUMsSUFBSSxtQ0FBSSxJQUFJLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLG1CQUFtQixFQUFFO1lBQ2pFLFNBQVMsRUFBRSxJQUFJLEdBQUcsQ0FBQyxnQkFBZ0IsQ0FBQyx5QkFBeUIsQ0FBQztTQUMvRCxDQUFDLENBQUM7UUFFSCxNQUFNLFFBQVEsR0FBRyxJQUFJLGdDQUFnQixDQUFDLElBQUksRUFBRSxVQUFVLEVBQUU7WUFDdEQsaUJBQWlCLEVBQUUsSUFBSSxDQUFDLFlBQVk7WUFDcEMsd0JBQXdCLEVBQUUsS0FBSyxDQUFDLFdBQVc7WUFDM0MsZ0JBQWdCLEVBQUUsS0FBSyxDQUFDLGdCQUFnQjtZQUN4QyxHQUFHLEVBQUUsS0FBSyxDQUFDLFdBQVc7WUFDdEIsdUJBQXVCLEVBQUU7Z0JBQ3ZCLGdCQUFnQixFQUFFLEtBQUssQ0FBQyxZQUFZLENBQUMsU0FBUztnQkFDOUMsTUFBTSxFQUFFLEtBQUssQ0FBQyxZQUFZLENBQUMsa0JBQWtCLENBQUMsSUFBSSxFQUFFLEVBQUUsSUFBSSxFQUFFLEVBQUUsSUFBSSxHQUFHLEVBQVMsQ0FBQzthQUNoRjtZQUNELE9BQU8sRUFBRSxJQUFJLENBQUMsT0FBTztTQUN0QixDQUFDLENBQUM7UUFFSCxJQUFJLENBQUMsaUJBQWlCLEdBQUcsSUFBSSxDQUFDLHdCQUF3QixDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsQ0FBQztLQUN0RTtJQXJDRDs7T0FFRztJQUNJLE1BQU0sQ0FBQyxxQkFBcUIsQ0FBQyxLQUFnQixFQUFFLEVBQVUsRUFBRSxpQkFBeUI7UUFDekYsT0FBTyxJQUFJLEtBQU0sU0FBUSxzQkFBUTtZQUF0Qjs7Z0JBQ08sc0JBQWlCLEdBQUcsaUJBQWlCLENBQUM7WUFDeEQsQ0FBQztTQUFBLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO0tBQ2Q7O0FBUkgsc0NBdUNDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgaWFtIGZyb20gJ2F3cy1jZGstbGliL2F3cy1pYW0nO1xuaW1wb3J0IHsgUmVzb3VyY2UsIElSZXNvdXJjZSB9IGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IENvbnN0cnVjdCB9IGZyb20gJ2NvbnN0cnVjdHMnO1xuaW1wb3J0IHsgQ2ZuRGV0ZWN0b3JNb2RlbCB9IGZyb20gJ2F3cy1jZGstbGliL2F3cy1pb3RldmVudHMnO1xuaW1wb3J0IHsgU3RhdGUgfSBmcm9tICcuL3N0YXRlJztcblxuLyoqXG4gKiBSZXByZXNlbnRzIGFuIEFXUyBJb1QgRXZlbnRzIGRldGVjdG9yIG1vZGVsLlxuICovXG5leHBvcnQgaW50ZXJmYWNlIElEZXRlY3Rvck1vZGVsIGV4dGVuZHMgSVJlc291cmNlIHtcbiAgLyoqXG4gICAqIFRoZSBuYW1lIG9mIHRoZSBkZXRlY3RvciBtb2RlbC5cbiAgICpcbiAgICogQGF0dHJpYnV0ZVxuICAgKi9cbiAgcmVhZG9ubHkgZGV0ZWN0b3JNb2RlbE5hbWU6IHN0cmluZztcbn1cblxuLyoqXG4gKiBJbmZvcm1hdGlvbiBhYm91dCB0aGUgb3JkZXIgaW4gd2hpY2ggZXZlbnRzIGFyZSBldmFsdWF0ZWQgYW5kIGhvdyBhY3Rpb25zIGFyZSBleGVjdXRlZC5cbiAqL1xuZXhwb3J0IGVudW0gRXZlbnRFdmFsdWF0aW9uIHtcbiAgLyoqXG4gICAqIFdoZW4gc2V0dGluZyB0byBCQVRDSCwgdmFyaWFibGVzIHdpdGhpbiBhIHN0YXRlIGFyZSB1cGRhdGVkIGFuZCBldmVudHMgd2l0aGluIGEgc3RhdGUgYXJlXG4gICAqIHBlcmZvcm1lZCBvbmx5IGFmdGVyIGFsbCBldmVudCBjb25kaXRpb25zIGFyZSBldmFsdWF0ZWQuXG4gICAqL1xuICBCQVRDSCA9ICdCQVRDSCcsXG5cbiAgLyoqXG4gICAqIFdoZW4gc2V0dGluZyB0byBTRVJJQUwsIHZhcmlhYmxlcyBhcmUgdXBkYXRlZCBhbmQgZXZlbnQgY29uZGl0aW9ucyBhcmUgZXZhbHVhdGVkIGluIHRoZSBvcmRlclxuICAgKiB0aGF0IHRoZSBldmVudHMgYXJlIGRlZmluZWQuXG4gICAqL1xuICBTRVJJQUwgPSAnU0VSSUFMJyxcbn1cblxuLyoqXG4gKiBQcm9wZXJ0aWVzIGZvciBkZWZpbmluZyBhbiBBV1MgSW9UIEV2ZW50cyBkZXRlY3RvciBtb2RlbC5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBEZXRlY3Rvck1vZGVsUHJvcHMge1xuICAvKipcbiAgICogVGhlIG5hbWUgb2YgdGhlIGRldGVjdG9yIG1vZGVsLlxuICAgKlxuICAgKiBAZGVmYXVsdCAtIENsb3VkRm9ybWF0aW9uIHdpbGwgZ2VuZXJhdGUgYSB1bmlxdWUgbmFtZSBvZiB0aGUgZGV0ZWN0b3IgbW9kZWxcbiAgICovXG4gIHJlYWRvbmx5IGRldGVjdG9yTW9kZWxOYW1lPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBBIGJyaWVmIGRlc2NyaXB0aW9uIG9mIHRoZSBkZXRlY3RvciBtb2RlbC5cbiAgICpcbiAgICogQGRlZmF1bHQgbm9uZVxuICAgKi9cbiAgcmVhZG9ubHkgZGVzY3JpcHRpb24/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIEluZm9ybWF0aW9uIGFib3V0IHRoZSBvcmRlciBpbiB3aGljaCBldmVudHMgYXJlIGV2YWx1YXRlZCBhbmQgaG93IGFjdGlvbnMgYXJlIGV4ZWN1dGVkLlxuICAgKlxuICAgKiBXaGVuIHNldHRpbmcgdG8gU0VSSUFMLCB2YXJpYWJsZXMgYXJlIHVwZGF0ZWQgYW5kIGV2ZW50IGNvbmRpdGlvbnMgYXJlIGV2YWx1YXRlZCBpbiB0aGUgb3JkZXJcbiAgICogdGhhdCB0aGUgZXZlbnRzIGFyZSBkZWZpbmVkLlxuICAgKiBXaGVuIHNldHRpbmcgdG8gQkFUQ0gsIHZhcmlhYmxlcyB3aXRoaW4gYSBzdGF0ZSBhcmUgdXBkYXRlZCBhbmQgZXZlbnRzIHdpdGhpbiBhIHN0YXRlIGFyZVxuICAgKiBwZXJmb3JtZWQgb25seSBhZnRlciBhbGwgZXZlbnQgY29uZGl0aW9ucyBhcmUgZXZhbHVhdGVkLlxuICAgKlxuICAgKiBAZGVmYXVsdCBFdmVudEV2YWx1YXRpb24uQkFUQ0hcbiAgICovXG4gIHJlYWRvbmx5IGV2YWx1YXRpb25NZXRob2Q/OiBFdmVudEV2YWx1YXRpb247XG5cbiAgLyoqXG4gICAqIFRoZSB2YWx1ZSB1c2VkIHRvIGlkZW50aWZ5IGEgZGV0ZWN0b3IgaW5zdGFuY2UuIFdoZW4gYSBkZXZpY2Ugb3Igc3lzdGVtIHNlbmRzIGlucHV0LCBhIG5ld1xuICAgKiBkZXRlY3RvciBpbnN0YW5jZSB3aXRoIGEgdW5pcXVlIGtleSB2YWx1ZSBpcyBjcmVhdGVkLiBBV1MgSW9UIEV2ZW50cyBjYW4gY29udGludWUgdG8gcm91dGVcbiAgICogaW5wdXQgdG8gaXRzIGNvcnJlc3BvbmRpbmcgZGV0ZWN0b3IgaW5zdGFuY2UgYmFzZWQgb24gdGhpcyBpZGVudGlmeWluZyBpbmZvcm1hdGlvbi5cbiAgICpcbiAgICogVGhpcyBwYXJhbWV0ZXIgdXNlcyBhIEpTT04tcGF0aCBleHByZXNzaW9uIHRvIHNlbGVjdCB0aGUgYXR0cmlidXRlLXZhbHVlIHBhaXIgaW4gdGhlIG1lc3NhZ2VcbiAgICogcGF5bG9hZCB0aGF0IGlzIHVzZWQgZm9yIGlkZW50aWZpY2F0aW9uLiBUbyByb3V0ZSB0aGUgbWVzc2FnZSB0byB0aGUgY29ycmVjdCBkZXRlY3RvciBpbnN0YW5jZSxcbiAgICogdGhlIGRldmljZSBtdXN0IHNlbmQgYSBtZXNzYWdlIHBheWxvYWQgdGhhdCBjb250YWlucyB0aGUgc2FtZSBhdHRyaWJ1dGUtdmFsdWUuXG4gICAqXG4gICAqIEBkZWZhdWx0IC0gbm9uZSAoc2luZ2xlIGRldGVjdG9yIGluc3RhbmNlIHdpbGwgYmUgY3JlYXRlZCBhbmQgYWxsIGlucHV0cyB3aWxsIGJlIHJvdXRlZCB0byBpdClcbiAgICovXG4gIHJlYWRvbmx5IGRldGVjdG9yS2V5Pzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgc3RhdGUgdGhhdCBpcyBlbnRlcmVkIGF0IHRoZSBjcmVhdGlvbiBvZiBlYWNoIGRldGVjdG9yLlxuICAgKi9cbiAgcmVhZG9ubHkgaW5pdGlhbFN0YXRlOiBTdGF0ZTtcblxuICAvKipcbiAgICogVGhlIHJvbGUgdGhhdCBncmFudHMgcGVybWlzc2lvbiB0byBBV1MgSW9UIEV2ZW50cyB0byBwZXJmb3JtIGl0cyBvcGVyYXRpb25zLlxuICAgKlxuICAgKiBAZGVmYXVsdCAtIGEgcm9sZSB3aWxsIGJlIGNyZWF0ZWQgd2l0aCBkZWZhdWx0IHBlcm1pc3Npb25zXG4gICAqL1xuICByZWFkb25seSByb2xlPzogaWFtLklSb2xlO1xufVxuXG4vKipcbiAqIERlZmluZXMgYW4gQVdTIElvVCBFdmVudHMgZGV0ZWN0b3IgbW9kZWwgaW4gdGhpcyBzdGFjay5cbiAqL1xuZXhwb3J0IGNsYXNzIERldGVjdG9yTW9kZWwgZXh0ZW5kcyBSZXNvdXJjZSBpbXBsZW1lbnRzIElEZXRlY3Rvck1vZGVsIHtcbiAgLyoqXG4gICAqIEltcG9ydCBhbiBleGlzdGluZyBkZXRlY3RvciBtb2RlbC5cbiAgICovXG4gIHB1YmxpYyBzdGF0aWMgZnJvbURldGVjdG9yTW9kZWxOYW1lKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcsIGRldGVjdG9yTW9kZWxOYW1lOiBzdHJpbmcpOiBJRGV0ZWN0b3JNb2RlbCB7XG4gICAgcmV0dXJuIG5ldyBjbGFzcyBleHRlbmRzIFJlc291cmNlIGltcGxlbWVudHMgSURldGVjdG9yTW9kZWwge1xuICAgICAgcHVibGljIHJlYWRvbmx5IGRldGVjdG9yTW9kZWxOYW1lID0gZGV0ZWN0b3JNb2RlbE5hbWU7XG4gICAgfShzY29wZSwgaWQpO1xuICB9XG5cbiAgcHVibGljIHJlYWRvbmx5IGRldGVjdG9yTW9kZWxOYW1lOiBzdHJpbmc7XG5cbiAgY29uc3RydWN0b3Ioc2NvcGU6IENvbnN0cnVjdCwgaWQ6IHN0cmluZywgcHJvcHM6IERldGVjdG9yTW9kZWxQcm9wcykge1xuICAgIHN1cGVyKHNjb3BlLCBpZCwge1xuICAgICAgcGh5c2ljYWxOYW1lOiBwcm9wcy5kZXRlY3Rvck1vZGVsTmFtZSxcbiAgICB9KTtcblxuICAgIGlmICghcHJvcHMuaW5pdGlhbFN0YXRlLl9vbkVudGVyRXZlbnRzSGF2ZUF0TGVhc3RPbmVDb25kaXRpb24oKSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCdEZXRlY3RvciBNb2RlbCBtdXN0IGhhdmUgYXQgbGVhc3Qgb25lIElucHV0IHdpdGggYSBjb25kaXRpb24nKTtcbiAgICB9XG5cbiAgICBjb25zdCByb2xlID0gcHJvcHMucm9sZSA/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.19.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.19.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.19.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.19.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "The CDK Construct Library for AWS::IoTEvents",
6
6
  "main": "lib/index.js",
@@ -25,7 +25,7 @@
25
25
  "module": "aws_cdk.aws_iotevents_alpha",
26
26
  "classifiers": [
27
27
  "Framework :: AWS CDK",
28
- "Framework :: AWS CDK :: 1"
28
+ "Framework :: AWS CDK :: 2"
29
29
  ]
30
30
  },
31
31
  "go": {
@@ -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.19.0",
87
+ "@aws-cdk/cdk-integ-tools": "2.19.0",
88
+ "@aws-cdk/cfn2ts": "2.19.0",
89
+ "@aws-cdk/pkglint": "2.19.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.19.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.19.0",
98
98
  "constructs": "^10.0.0"
99
99
  },
100
100
  "engines": {