Skip to content

Commit 0f9c0cd

Browse files
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

11 files changed

+760
-0
lines changed

lambda-events/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ default = [
7979
"streams",
8080
"documentdb",
8181
"eventbridge",
82+
"controltower",
8283
"vpc_lattice"
8384
]
8485

@@ -103,6 +104,7 @@ codepipeline_job = []
103104
cognito = []
104105
config = []
105106
connect = []
107+
controltower = []
106108
dynamodb = ["chrono", "serde_dynamo", "streams"]
107109
ecr_scan = []
108110
firehose = ["chrono"]

0 commit comments

Comments
 (0)