Skip to content

Add ConfigEvent and IoTButtonEvent (issue #48)#632

Open
Dieg0R01 wants to merge 2 commits intotypelevel:mainfrom
Dieg0R01:feat/issue-48-ConfigEvent-IoTButtonEvent
Open

Add ConfigEvent and IoTButtonEvent (issue #48)#632
Dieg0R01 wants to merge 2 commits intotypelevel:mainfrom
Dieg0R01:feat/issue-48-ConfigEvent-IoTButtonEvent

Conversation

@Dieg0R01
Copy link

@Dieg0R01 Dieg0R01 commented Mar 7, 2026

Summary

Adds Scala event models (with Circe decoders) for two AWS Lambda triggers:

  • ConfigEvent — AWS Config custom rule invocation event (invokingEvent, ruleParameters, resultToken, eventLeftScope, executionRoleArn, configRuleArn, configRuleName, configRuleId, accountId, version). Config trigger is not yet in DefinitelyTyped (TODO); structure follows AWS Config Lambda docs.

  • IoTButtonEvent — AWS IoT Button payload (clickType, serialNumber, batteryVoltage) with ClickType ADT (SINGLE / DOUBLE / LONG). DefinitelyTyped trigger/iot.d.ts models IoTEvent as string | number | T; this model follows the documented AWS IoT Button payload.

Tests compare decoded JSON to expected instances using example payloads from AWS documentation.

Part of #48.

Dieg0R01 added 2 commits March 7, 2026 19:48
- ConfigEvent: AWS Config custom rule Lambda event (invokingEvent, ruleParameters, resultToken, etc.)
- IoTButtonEvent: AWS IoT Button payload with ClickType ADT (SINGLE/DOUBLE/LONG)
- Tests with expected instances and JSON from AWS docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant