@aws-cdk/aws-iotevents-alpha 2.38.1-alpha.0 → 2.40.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.38.1",
11
+ "aws-cdk-lib": "^2.40.0",
12
12
  "constructs": "^10.0.0"
13
13
  },
14
14
  "dependencyClosure": {
@@ -3024,7 +3024,7 @@
3024
3024
  "stability": "experimental"
3025
3025
  },
3026
3026
  "homepage": "https://github.com/aws/aws-cdk",
3027
- "jsiiVersion": "1.63.2 (build a8a8833)",
3027
+ "jsiiVersion": "1.66.0 (build 3c9512b)",
3028
3028
  "keywords": [
3029
3029
  "aws",
3030
3030
  "cdk",
@@ -3164,12 +3164,12 @@
3164
3164
  "assembly": "@aws-cdk/aws-iotevents-alpha",
3165
3165
  "base": "aws-cdk-lib.Resource",
3166
3166
  "docs": {
3167
+ "stability": "experimental",
3168
+ "summary": "Defines an AWS IoT Events detector model in this stack.",
3169
+ "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
3167
3170
  "custom": {
3168
3171
  "exampleMetadata": "infused"
3169
- },
3170
- "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
3171
- "stability": "experimental",
3172
- "summary": "Defines an AWS IoT Events detector model in this stack."
3172
+ }
3173
3173
  },
3174
3174
  "fqn": "@aws-cdk/aws-iotevents-alpha.DetectorModel",
3175
3175
  "initializer": {
@@ -3273,12 +3273,12 @@
3273
3273
  "assembly": "@aws-cdk/aws-iotevents-alpha",
3274
3274
  "datatype": true,
3275
3275
  "docs": {
3276
+ "stability": "experimental",
3277
+ "summary": "Properties for defining an AWS IoT Events detector model.",
3278
+ "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
3276
3279
  "custom": {
3277
3280
  "exampleMetadata": "infused"
3278
- },
3279
- "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
3280
- "stability": "experimental",
3281
- "summary": "Properties for defining an AWS IoT Events detector model."
3281
+ }
3282
3282
  },
3283
3283
  "fqn": "@aws-cdk/aws-iotevents-alpha.DetectorModelProps",
3284
3284
  "kind": "interface",
@@ -3481,12 +3481,12 @@
3481
3481
  "@aws-cdk/aws-iotevents-alpha.EventEvaluation": {
3482
3482
  "assembly": "@aws-cdk/aws-iotevents-alpha",
3483
3483
  "docs": {
3484
+ "stability": "experimental",
3485
+ "summary": "Information about the order in which events are evaluated and how actions are executed.",
3486
+ "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
3484
3487
  "custom": {
3485
3488
  "exampleMetadata": "infused"
3486
- },
3487
- "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
3488
- "stability": "experimental",
3489
- "summary": "Information about the order in which events are evaluated and how actions are executed."
3489
+ }
3490
3490
  },
3491
3491
  "fqn": "@aws-cdk/aws-iotevents-alpha.EventEvaluation",
3492
3492
  "kind": "enum",
@@ -3517,13 +3517,13 @@
3517
3517
  "abstract": true,
3518
3518
  "assembly": "@aws-cdk/aws-iotevents-alpha",
3519
3519
  "docs": {
3520
- "custom": {
3521
- "exampleMetadata": "infused"
3522
- },
3523
- "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 new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
3524
3520
  "see": "https://docs.aws.amazon.com/iotevents/latest/developerguide/iotevents-expressions.html",
3525
3521
  "stability": "experimental",
3526
- "summary": "Expression for events in Detector Model state."
3522
+ "summary": "Expression for events in Detector Model state.",
3523
+ "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 new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
3524
+ "custom": {
3525
+ "exampleMetadata": "infused"
3526
+ }
3527
3527
  },
3528
3528
  "fqn": "@aws-cdk/aws-iotevents-alpha.Expression",
3529
3529
  "initializer": {
@@ -4364,12 +4364,12 @@
4364
4364
  "assembly": "@aws-cdk/aws-iotevents-alpha",
4365
4365
  "base": "aws-cdk-lib.Resource",
4366
4366
  "docs": {
4367
+ "stability": "experimental",
4368
+ "summary": "Defines an AWS IoT Events input in this stack.",
4369
+ "example": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as iam from 'aws-cdk-lib/aws-iam';\n\ndeclare const role: iam.IRole;\n\nconst input = new iotevents.Input(this, 'MyInput', {\n attributeJsonPaths: ['payload.temperature', 'payload.transactionId'],\n});\nconst topicRule = new iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\n \"SELECT * FROM 'device/+/data'\",\n ),\n actions: [\n new actions.IotEventsPutMessageAction(input, {\n batchMode: true, // optional property, default is 'false'\n messageId: '${payload.transactionId}', // optional property, default is a new UUID\n role: role, // optional property, default is a new UUID\n }),\n ],\n});",
4367
4370
  "custom": {
4368
4371
  "exampleMetadata": "infused"
4369
- },
4370
- "example": "import * as iotevents from '@aws-cdk/aws-iotevents-alpha';\nimport * as iam from 'aws-cdk-lib/aws-iam';\n\ndeclare const role: iam.IRole;\n\nconst input = new iotevents.Input(this, 'MyInput', {\n attributeJsonPaths: ['payload.temperature', 'payload.transactionId'],\n});\nconst topicRule = new iot.TopicRule(this, 'TopicRule', {\n sql: iot.IotSql.fromStringAsVer20160323(\n \"SELECT * FROM 'device/+/data'\",\n ),\n actions: [\n new actions.IotEventsPutMessageAction(input, {\n batchMode: true, // optional property, default is 'false'\n messageId: '${payload.transactionId}', // optional property, default is a new UUID\n role: role, // optional property, default is a new UUID\n }),\n ],\n});",
4371
- "stability": "experimental",
4372
- "summary": "Defines an AWS IoT Events input in this stack."
4372
+ }
4373
4373
  },
4374
4374
  "fqn": "@aws-cdk/aws-iotevents-alpha.Input",
4375
4375
  "initializer": {
@@ -4547,12 +4547,12 @@
4547
4547
  "assembly": "@aws-cdk/aws-iotevents-alpha",
4548
4548
  "datatype": true,
4549
4549
  "docs": {
4550
+ "stability": "experimental",
4551
+ "summary": "Properties for defining an AWS IoT Events input.",
4552
+ "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
4550
4553
  "custom": {
4551
4554
  "exampleMetadata": "infused"
4552
- },
4553
- "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
4554
- "stability": "experimental",
4555
- "summary": "Properties for defining an AWS IoT Events input."
4555
+ }
4556
4556
  },
4557
4557
  "fqn": "@aws-cdk/aws-iotevents-alpha.InputProps",
4558
4558
  "kind": "interface",
@@ -4608,12 +4608,12 @@
4608
4608
  "@aws-cdk/aws-iotevents-alpha.State": {
4609
4609
  "assembly": "@aws-cdk/aws-iotevents-alpha",
4610
4610
  "docs": {
4611
+ "stability": "experimental",
4612
+ "summary": "Defines a state of a detector.",
4613
+ "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 new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
4611
4614
  "custom": {
4612
4615
  "exampleMetadata": "infused"
4613
- },
4614
- "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 new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
4615
- "stability": "experimental",
4616
- "summary": "Defines a state of a detector."
4616
+ }
4617
4617
  },
4618
4618
  "fqn": "@aws-cdk/aws-iotevents-alpha.State",
4619
4619
  "initializer": {
@@ -4696,12 +4696,12 @@
4696
4696
  "assembly": "@aws-cdk/aws-iotevents-alpha",
4697
4697
  "datatype": true,
4698
4698
  "docs": {
4699
+ "stability": "experimental",
4700
+ "summary": "Properties for defining a state of a detector.",
4701
+ "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 new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
4699
4702
  "custom": {
4700
4703
  "exampleMetadata": "infused"
4701
- },
4702
- "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 new actions.SetTimerAction('MyTimer', {\n duration: cdk.Duration.seconds(60),\n }),\n ],\n }],\n});",
4703
- "stability": "experimental",
4704
- "summary": "Properties for defining a state of a detector."
4704
+ }
4705
4705
  },
4706
4706
  "fqn": "@aws-cdk/aws-iotevents-alpha.StateProps",
4707
4707
  "kind": "interface",
@@ -4806,12 +4806,12 @@
4806
4806
  "assembly": "@aws-cdk/aws-iotevents-alpha",
4807
4807
  "datatype": true,
4808
4808
  "docs": {
4809
+ "stability": "experimental",
4810
+ "summary": "Properties for options of state transition.",
4811
+ "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
4809
4812
  "custom": {
4810
4813
  "exampleMetadata": "infused"
4811
- },
4812
- "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 less than 15\nwarmState.transitionTo(coldState, {\n eventName: 'to_coldState', // optional property, default by combining the names of the States\n when: iotevents.Expression.lt(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n executing: [new actions.LambdaInvokeAction(func)], // optional\n});\n// transit to warmState when temperature is greater than or equal to 15\ncoldState.transitionTo(warmState, {\n when: iotevents.Expression.gte(\n iotevents.Expression.inputAttribute(input, 'payload.temperature'),\n iotevents.Expression.fromString('15'),\n ),\n});\n\nnew iotevents.DetectorModel(this, 'MyDetectorModel', {\n detectorModelName: 'test-detector-model', // optional\n description: 'test-detector-model-description', // optional property, default is none\n evaluationMethod: iotevents.EventEvaluation.SERIAL, // optional property, default is iotevents.EventEvaluation.BATCH\n detectorKey: 'payload.deviceId', // optional property, default is none and single detector instance will be created and all inputs will be routed to it\n initialState: warmState,\n});",
4813
- "stability": "experimental",
4814
- "summary": "Properties for options of state transition."
4814
+ }
4815
4815
  },
4816
4816
  "fqn": "@aws-cdk/aws-iotevents-alpha.TransitionOptions",
4817
4817
  "kind": "interface",
@@ -4883,6 +4883,6 @@
4883
4883
  "symbolId": "lib/state:TransitionOptions"
4884
4884
  }
4885
4885
  },
4886
- "version": "2.38.1-alpha.0",
4886
+ "version": "2.40.0-alpha.0",
4887
4887
  "fingerprint": "**********"
4888
4888
  }
package/.jsii.tabl.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "2",
3
- "toolVersion": "1.63.2",
3
+ "toolVersion": "1.66.0",
4
4
  "snippets": {
5
5
  "5eadfcc3b654c580b56719f14a9660d7775abd16a43034f03f413c6097b45851": {
6
6
  "translations": {
@@ -81,7 +81,7 @@
81
81
  "281": 23,
82
82
  "290": 1
83
83
  },
84
- "fqnsFingerprint": "f53670fdd6e9d2a2cd49713c7f85cd01fc73084731b16eb61e33b416baeaa8d3"
84
+ "fqnsFingerprint": "5b75c9ecf5c84b706214a4145ee71eb19bedb88f88735ac62e2ac676f562a3a9"
85
85
  },
86
86
  "d85a7e5e892cdb1a876abe348db57360034479abb95e7fe40ce3182878d25875": {
87
87
  "translations": {
@@ -144,7 +144,7 @@
144
144
  "256": 2,
145
145
  "290": 1
146
146
  },
147
- "fqnsFingerprint": "44b02c661522a87542363a3944f61e75f34c2b1db83819e3f8bc96ac55c1847d"
147
+ "fqnsFingerprint": "411c7165d63a5bcdd69d95d0a2cd627c01329f4639606edf47afa6fca4dd66d5"
148
148
  },
149
149
  "9cb494b0be43c5c9bd6c3dbe081787055c9f1cd78921e3c35d7f5602798d5322": {
150
150
  "translations": {
@@ -202,7 +202,7 @@
202
202
  "281": 1,
203
203
  "290": 1
204
204
  },
205
- "fqnsFingerprint": "5022bae68cfe9e6966418368776700e78d71658aa364868d9e71cbcc82ae9508"
205
+ "fqnsFingerprint": "e7d72431f57edb1f1066f46ec1ae170f6a3586126e18daad14f55ce422352e85"
206
206
  },
207
207
  "5a661e2425d516be4407efee50a19360f63e15bb1cc32635a032d3f985854b6d": {
208
208
  "translations": {
@@ -339,7 +339,7 @@
339
339
  "281": 23,
340
340
  "290": 1
341
341
  },
342
- "fqnsFingerprint": "f53670fdd6e9d2a2cd49713c7f85cd01fc73084731b16eb61e33b416baeaa8d3"
342
+ "fqnsFingerprint": "5b75c9ecf5c84b706214a4145ee71eb19bedb88f88735ac62e2ac676f562a3a9"
343
343
  },
344
344
  "926d39260c595933619a9441157843a7caad0dd80f098bda8f6d1e901f499715": {
345
345
  "translations": {
@@ -419,7 +419,7 @@
419
419
  "281": 23,
420
420
  "290": 1
421
421
  },
422
- "fqnsFingerprint": "f53670fdd6e9d2a2cd49713c7f85cd01fc73084731b16eb61e33b416baeaa8d3"
422
+ "fqnsFingerprint": "5b75c9ecf5c84b706214a4145ee71eb19bedb88f88735ac62e2ac676f562a3a9"
423
423
  },
424
424
  "d826d52c39e72e0f171be749e9b4124fccfa91b80c2570f6767193205208b50a": {
425
425
  "translations": {
@@ -476,7 +476,7 @@
476
476
  "281": 3,
477
477
  "290": 1
478
478
  },
479
- "fqnsFingerprint": "8d78437a878cc14fb319816ccf79bcd01f57f0c34452a2e15838ee570ef47a94"
479
+ "fqnsFingerprint": "cce6373d3e86fb99b78eb5114a7ae6aa5b933307d8e46b1929a2afeebc10e938"
480
480
  },
481
481
  "38bcbda95e8b900057136f1b56076fd272142c0f04a04aac2018ae80f6a143c0": {
482
482
  "translations": {
@@ -556,7 +556,7 @@
556
556
  "281": 23,
557
557
  "290": 1
558
558
  },
559
- "fqnsFingerprint": "f53670fdd6e9d2a2cd49713c7f85cd01fc73084731b16eb61e33b416baeaa8d3"
559
+ "fqnsFingerprint": "5b75c9ecf5c84b706214a4145ee71eb19bedb88f88735ac62e2ac676f562a3a9"
560
560
  },
561
561
  "d6356fb18c18a145864e2a4344a5c7330f007c4f9453e7f02f9c9f106ef56621": {
562
562
  "translations": {
@@ -622,7 +622,7 @@
622
622
  "281": 6,
623
623
  "290": 1
624
624
  },
625
- "fqnsFingerprint": "c6efda2bbc5c20750d629badf7af2ba32e317452cc604a1a619627d3b933b46e"
625
+ "fqnsFingerprint": "48e50a49af3b5e9a04db9d56541e6e8c085e79c300a451bf1a59eca0cadf6db9"
626
626
  },
627
627
  "21017a5eb11dfc05d752e757bf9cb93e6e70c6d0ba4e768adaa5ca2e5de67cc1": {
628
628
  "translations": {
@@ -693,7 +693,7 @@
693
693
  "281": 6,
694
694
  "290": 1
695
695
  },
696
- "fqnsFingerprint": "7596b97a6e2dc1d20a3ec11966af36a6c7a1fa381ae1e878a2a65ff6fd5fdda6"
696
+ "fqnsFingerprint": "b92a9d2c0282ae743763deca25d15c136369463350de12bf3a38ecf30725c3c2"
697
697
  },
698
698
  "40619d30cb359b66de405bb274eac8c70c25b471d51e50d484fc7fe944c98b17": {
699
699
  "translations": {
@@ -773,7 +773,7 @@
773
773
  "281": 23,
774
774
  "290": 1
775
775
  },
776
- "fqnsFingerprint": "f53670fdd6e9d2a2cd49713c7f85cd01fc73084731b16eb61e33b416baeaa8d3"
776
+ "fqnsFingerprint": "5b75c9ecf5c84b706214a4145ee71eb19bedb88f88735ac62e2ac676f562a3a9"
777
777
  },
778
778
  "0b01c667e6913422446b90598a1282a4f7a93071107464d6ff5a012a85c05540": {
779
779
  "translations": {
@@ -839,7 +839,7 @@
839
839
  "281": 6,
840
840
  "290": 1
841
841
  },
842
- "fqnsFingerprint": "c6efda2bbc5c20750d629badf7af2ba32e317452cc604a1a619627d3b933b46e"
842
+ "fqnsFingerprint": "48e50a49af3b5e9a04db9d56541e6e8c085e79c300a451bf1a59eca0cadf6db9"
843
843
  },
844
844
  "09ed3b4f51b5ba0a6ae04fd13bcce00ff6d87cd1664db4acd91d19a31a1a87a9": {
845
845
  "translations": {
@@ -905,7 +905,7 @@
905
905
  "281": 6,
906
906
  "290": 1
907
907
  },
908
- "fqnsFingerprint": "c6efda2bbc5c20750d629badf7af2ba32e317452cc604a1a619627d3b933b46e"
908
+ "fqnsFingerprint": "48e50a49af3b5e9a04db9d56541e6e8c085e79c300a451bf1a59eca0cadf6db9"
909
909
  },
910
910
  "51ca9b61975a5e0a097ee68db2769a7ecf42d3bc1bf0209da6585d4095f7c29d": {
911
911
  "translations": {
@@ -985,7 +985,7 @@
985
985
  "281": 23,
986
986
  "290": 1
987
987
  },
988
- "fqnsFingerprint": "f53670fdd6e9d2a2cd49713c7f85cd01fc73084731b16eb61e33b416baeaa8d3"
988
+ "fqnsFingerprint": "5b75c9ecf5c84b706214a4145ee71eb19bedb88f88735ac62e2ac676f562a3a9"
989
989
  }
990
990
  }
991
991
  }
@@ -73,5 +73,5 @@ class DetectorModel extends aws_cdk_lib_1.Resource {
73
73
  }
74
74
  exports.DetectorModel = DetectorModel;
75
75
  _a = JSII_RTTI_SYMBOL_1;
76
- DetectorModel[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.DetectorModel", version: "2.38.1-alpha.0" };
76
+ DetectorModel[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.DetectorModel", version: "2.40.0-alpha.0" };
77
77
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV0ZWN0b3ItbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXRlY3Rvci1tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwyQ0FBMkM7QUFDM0MsNkNBQWtEO0FBRWxELDZEQUE2RDtBQWU3RDs7R0FFRztBQUNILElBQVksZUFZWDtBQVpELFdBQVksZUFBZTtJQUN6Qjs7O09BR0c7SUFDSCxrQ0FBZSxDQUFBO0lBRWY7OztPQUdHO0lBQ0gsb0NBQWlCLENBQUE7QUFDbkIsQ0FBQyxFQVpXLGVBQWUsR0FBZix1QkFBZSxLQUFmLHVCQUFlLFFBWTFCO0FBMEREOztHQUVHO0FBQ0gsTUFBYSxhQUFjLFNBQVEsc0JBQVE7SUFZekMsWUFBWSxLQUFnQixFQUFFLEVBQVUsRUFBRSxLQUF5QjtRQUNqRSxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsRUFBRTtZQUNmLFlBQVksRUFBRSxLQUFLLENBQUMsaUJBQWlCO1NBQ3RDLENBQUMsQ0FBQzs7Ozs7OytDQWZNLGFBQWE7Ozs7UUFpQnRCLElBQUksQ0FBQyxLQUFLLENBQUMsWUFBWSxDQUFDLHFDQUFxQyxFQUFFLEVBQUU7WUFDL0QsTUFBTSxJQUFJLEtBQUssQ0FBQyw4REFBOE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JyksXG4gICAgfSk7XG5cbiAgICBjb25zdCByZXNvdXJjZSA9IG5ldyBDZm5EZXRlY3Rvck1vZGVsKHRoaXMsICdSZXNvdXJjZScsIHtcbiAgICAgIGRldGVjdG9yTW9kZWxOYW1lOiB0aGlzLnBoeXNpY2FsTmFtZSxcbiAgICAgIGRldGVjdG9yTW9kZWxEZXNjcmlwdGlvbjogcHJvcHMuZGVzY3JpcHRpb24sXG4gICAgICBldmFsdWF0aW9uTWV0aG9kOiBwcm9wcy5ldmFsdWF0aW9uTWV0aG9kLFxuICAgICAga2V5OiBwcm9wcy5kZXRlY3RvcktleSxcbiAgICAgIGRldGVjdG9yTW9kZWxEZWZpbml0aW9uOiB7XG4gICAgICAgIGluaXRpYWxTdGF0ZU5hbWU6IHByb3BzLmluaXRpYWxTdGF0ZS5zdGF0ZU5hbWUsXG4gICAgICAgIHN0YXRlczogcHJvcHMuaW5pdGlhbFN0YXRlLl9jb2xsZWN0U3RhdGVKc29ucyh0aGlzLCB7IHJvbGUgfSwgbmV3IFNldDxTdGF0ZT4oKSksXG4gICAgICB9LFxuICAgICAgcm9sZUFybjogcm9sZS5yb2xlQXJuLFxuICAgIH0pO1xuXG4gICAgdGhpcy5kZXRlY3Rvck1vZGVsTmFtZSA9IHRoaXMuZ2V0UmVzb3VyY2VOYW1lQXR0cmlidXRlKHJlc291cmNlLnJlZik7XG4gIH1cbn1cbiJdfQ==
package/lib/expression.js CHANGED
@@ -315,7 +315,7 @@ class Expression {
315
315
  }
316
316
  exports.Expression = Expression;
317
317
  _a = JSII_RTTI_SYMBOL_1;
318
- Expression[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Expression", version: "2.38.1-alpha.0" };
318
+ Expression[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Expression", version: "2.40.0-alpha.0" };
319
319
  class StringExpression extends Expression {
320
320
  constructor(value) {
321
321
  super();
package/lib/input.js CHANGED
@@ -71,7 +71,7 @@ class Input extends InputBase {
71
71
  }
72
72
  exports.Input = Input;
73
73
  _a = JSII_RTTI_SYMBOL_1;
74
- Input[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Input", version: "2.38.1-alpha.0" };
74
+ Input[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.Input", version: "2.40.0-alpha.0" };
75
75
  function arnForInput(inputName) {
76
76
  return `arn:${aws_cdk_lib_1.Aws.PARTITION}:iotevents:${aws_cdk_lib_1.Aws.REGION}:${aws_cdk_lib_1.Aws.ACCOUNT_ID}:input/${inputName}`;
77
77
  }
package/lib/state.js CHANGED
@@ -97,7 +97,7 @@ class State {
97
97
  }
98
98
  exports.State = State;
99
99
  _a = JSII_RTTI_SYMBOL_1;
100
- State[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.State", version: "2.38.1-alpha.0" };
100
+ State[_a] = { fqn: "@aws-cdk/aws-iotevents-alpha.State", version: "2.40.0-alpha.0" };
101
101
  function toEventsJson(scope, actionBindOptions, events) {
102
102
  return events?.map(event => ({
103
103
  eventName: event.eventName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/aws-iotevents-alpha",
3
- "version": "2.38.1-alpha.0",
3
+ "version": "2.40.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.38.1",
87
- "@aws-cdk/integ-runner": "2.38.1",
88
- "@aws-cdk/cfn2ts": "2.38.1",
89
- "@aws-cdk/pkglint": "2.38.1",
86
+ "@aws-cdk/cdk-build-tools": "2.40.0",
87
+ "@aws-cdk/integ-runner": "2.40.0",
88
+ "@aws-cdk/cfn2ts": "2.40.0",
89
+ "@aws-cdk/pkglint": "2.40.0",
90
90
  "@types/jest": "^27.5.2",
91
91
  "jest": "^27.5.1",
92
- "aws-cdk-lib": "2.38.1",
92
+ "aws-cdk-lib": "2.40.0",
93
93
  "constructs": "^10.0.0"
94
94
  },
95
95
  "dependencies": {},
96
96
  "peerDependencies": {
97
- "aws-cdk-lib": "^2.38.1",
97
+ "aws-cdk-lib": "^2.40.0",
98
98
  "constructs": "^10.0.0"
99
99
  },
100
100
  "engines": {