Commit 0f9c0cd
committed
feat(lambda-events): add Control Tower lifecycle events module
Add a `controltower` module to `aws_lambda_events` covering all 13 AWS
Control Tower lifecycle events delivered via EventBridge as CloudTrail
service events.
Events covered:
- CreateManagedAccount / UpdateManagedAccount
- EnableGuardrail / DisableGuardrail
- SetupLandingZone / UpdateLandingZone
- RegisterOrganizationalUnit / DeregisterOrganizationalUnit
- PrecheckOrganizationalUnit
- EnableBaseline / ResetEnabledBaseline / UpdateEnabledBaseline / DisableBaseline
The `ServiceEventDetails` enum uses serde's externally-tagged
representation to match the `serviceEventDetails` JSON structure where
the key name identifies the event type.
Usage with the CloudWatchEvent or EventBridgeEvent envelope:
```
let event: CloudWatchEvent<ControlTowerLifecycleEvent> =
serde_json::from_slice(data)?;
```1 parent c565705 commit 0f9c0cd
File tree
11 files changed
+760
-0
lines changed- lambda-events
- src
- event
- controltower
- fixtures
11 files changed
+760
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
0 commit comments