@aws-cdk/aws-iotevents-alpha 2.17.0-alpha.0 → 2.18.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.17.0",
11
+ "aws-cdk-lib": "^2.18.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": {
@@ -2946,7 +2959,7 @@
2946
2959
  "stability": "experimental"
2947
2960
  },
2948
2961
  "homepage": "https://github.com/aws/aws-cdk",
2949
- "jsiiVersion": "1.54.0 (build b1b977a)",
2962
+ "jsiiVersion": "1.55.1 (build 07d2d90)",
2950
2963
  "keywords": [
2951
2964
  "aws",
2952
2965
  "cdk",
@@ -4365,6 +4378,6 @@
4365
4378
  "symbolId": "lib/state:TransitionOptions"
4366
4379
  }
4367
4380
  },
4368
- "version": "2.17.0-alpha.0",
4381
+ "version": "2.18.0-alpha.0",
4369
4382
  "fingerprint": "**********"
4370
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": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
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"
@@ -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": "f7ca2813937c04c19889f9fb5e79f86a9b4eebd8da1774984f11d947951de0c6"
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": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
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": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
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": "d876055290fb6d6eff54b6d378386c5f6b1bc4a05567960c235d96743ece2f96"
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,7 +593,7 @@
557
593
  "281": 23,
558
594
  "290": 1
559
595
  },
560
- "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
596
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
561
597
  },
562
598
  "22a3fc319122ec2fadc144c02ca76ebdacd7b5834f2deb01fcc3d859273be013": {
563
599
  "translations": {
@@ -573,6 +609,10 @@
573
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();",
574
610
  "version": "1"
575
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})",
614
+ "version": "1"
615
+ },
576
616
  "$": {
577
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"
@@ -618,7 +658,7 @@
618
658
  "281": 5,
619
659
  "290": 1
620
660
  },
621
- "fqnsFingerprint": "2623699685719a77bff1e5d9bfd763a2f87ee4df48dc738529b3b7dde22e5c3a"
661
+ "fqnsFingerprint": "226d6c2fa5e69560f0fc23468378761ab44719798ab8b629d6c76141c0e46743"
622
662
  },
623
663
  "f0cdfe5941e7a22f9aa305b902ca0e450b4c1131ed6d11c2438107ccc0733ea1": {
624
664
  "translations": {
@@ -634,6 +674,10 @@
634
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();",
635
675
  "version": "1"
636
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
+ },
637
681
  "$": {
638
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});",
639
683
  "version": "0"
@@ -692,7 +736,7 @@
692
736
  "281": 23,
693
737
  "290": 1
694
738
  },
695
- "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
739
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
696
740
  },
697
741
  "833dd237b47b3631a61758ba59f707174b5ae295918de2c9566289e9f5d7ae7a": {
698
742
  "translations": {
@@ -708,6 +752,10 @@
708
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();",
709
753
  "version": "1"
710
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
+ },
711
759
  "$": {
712
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});",
713
761
  "version": "0"
@@ -766,7 +814,7 @@
766
814
  "281": 23,
767
815
  "290": 1
768
816
  },
769
- "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
817
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
770
818
  },
771
819
  "4da6ba49fc535dfaf9731525afcb884b6b732dca23f6efa4af5799b71a2c35fc": {
772
820
  "translations": {
@@ -782,6 +830,10 @@
782
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();",
783
831
  "version": "1"
784
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})",
835
+ "version": "1"
836
+ },
785
837
  "$": {
786
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});",
787
839
  "version": "0"
@@ -827,7 +879,7 @@
827
879
  "281": 5,
828
880
  "290": 1
829
881
  },
830
- "fqnsFingerprint": "2623699685719a77bff1e5d9bfd763a2f87ee4df48dc738529b3b7dde22e5c3a"
882
+ "fqnsFingerprint": "226d6c2fa5e69560f0fc23468378761ab44719798ab8b629d6c76141c0e46743"
831
883
  },
832
884
  "83394b2e287899f8923406ee7821847ec382ac3f3bdc6fa5ec43d46fbea1dbad": {
833
885
  "translations": {
@@ -843,6 +895,10 @@
843
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();",
844
896
  "version": "1"
845
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})",
900
+ "version": "1"
901
+ },
846
902
  "$": {
847
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});",
848
904
  "version": "0"
@@ -888,7 +944,7 @@
888
944
  "281": 5,
889
945
  "290": 1
890
946
  },
891
- "fqnsFingerprint": "2623699685719a77bff1e5d9bfd763a2f87ee4df48dc738529b3b7dde22e5c3a"
947
+ "fqnsFingerprint": "226d6c2fa5e69560f0fc23468378761ab44719798ab8b629d6c76141c0e46743"
892
948
  },
893
949
  "fa045877518b517543a361119821a324b2d622188ae395f796912bdc07fe3296": {
894
950
  "translations": {
@@ -904,6 +960,10 @@
904
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();",
905
961
  "version": "1"
906
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
+ },
907
967
  "$": {
908
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});",
909
969
  "version": "0"
@@ -962,7 +1022,7 @@
962
1022
  "281": 23,
963
1023
  "290": 1
964
1024
  },
965
- "fqnsFingerprint": "8fac9bbf67dbbc0cd94b565350ce5044b3049474cd2bf2f0ab64c47c62e0d77b"
1025
+ "fqnsFingerprint": "77d6df00a59d3dc17f90fa695a40a14c56e59243904e2fccd8843bd26af3e67d"
966
1026
  }
967
1027
  }
968
1028
  }
@@ -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.17.0-alpha.0" };
69
+ DetectorModel[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aW9uTWV0aG9kOiBwcm9wcy5ldmFsdWF0aW9uTWV0aG9kLFxuICAgICAga2V5OiBwcm9wcy5kZXRlY3RvcktleSxcbiAgICAgIGRldGVjdG9yTW9kZWxEZWZpbml0aW9uOiB7XG4gICAgICAgIGluaXRpYWxTdGF0ZU5hbWU6IHByb3BzLmluaXRpYWxTdGF0ZS5zdGF0ZU5hbWUsXG4gICAgICAgIHN0YXRlczogcHJvcHMuaW5pdGlhbFN0YXRlLl9jb2xsZWN0U3RhdGVKc29ucyh0aGlzLCB7IHJvbGUgfSwgbmV3IFNldDxTdGF0ZT4oKSksXG4gICAgICB9LFxuICAgICAgcm9sZUFybjogcm9sZS5yb2xlQXJuLFxuICAgIH0pO1xuXG4gICAgdGhpcy5kZXRlY3Rvck1vZGVsTmFtZSA9IHRoaXMuZ2V0UmVzb3VyY2VOYW1lQXR0cmlidXRlKHJlc291cmNlLnJlZik7XG4gIH1cbn1cbiJdfQ==
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.17.0-alpha.0" };
54
+ Expression[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Expression", version: "2.18.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.17.0-alpha.0" };
66
+ Input[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Input", version: "2.18.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.17.0-alpha.0" };
86
+ State[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.State", version: "2.18.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.17.0-alpha.0",
3
+ "version": "2.18.0-alpha.0",
4
4
  "private": false,
5
5
  "description": "The CDK Construct Library for AWS::IoTEvents",
6
6
  "main": "lib/index.js",
@@ -83,18 +83,18 @@
83
83
  },
84
84
  "license": "Apache-2.0",
85
85
  "devDependencies": {
86
- "@aws-cdk/cdk-build-tools": "2.17.0",
87
- "@aws-cdk/cdk-integ-tools": "2.17.0",
88
- "@aws-cdk/cfn2ts": "2.17.0",
89
- "@aws-cdk/pkglint": "2.17.0",
86
+ "@aws-cdk/cdk-build-tools": "2.18.0",
87
+ "@aws-cdk/cdk-integ-tools": "2.18.0",
88
+ "@aws-cdk/cfn2ts": "2.18.0",
89
+ "@aws-cdk/pkglint": "2.18.0",
90
90
  "@types/jest": "^27.4.1",
91
91
  "jest": "^27.5.1",
92
- "aws-cdk-lib": "2.17.0",
92
+ "aws-cdk-lib": "2.18.0",
93
93
  "constructs": "^10.0.0"
94
94
  },
95
95
  "dependencies": {},
96
96
  "peerDependencies": {
97
- "aws-cdk-lib": "^2.17.0",
97
+ "aws-cdk-lib": "^2.18.0",
98
98
  "constructs": "^10.0.0"
99
99
  },
100
100
  "engines": {