Skip to content

Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.

fix(cognito): default AnalyticsConfiguration to None instead of empty dict (#322)

alexanderkrum-nexta3001e8f91a3
diff --git a/ministack/services/cognito.py b/ministack/services/cognito.py
index ad77bd90..34011c65 100644
--- a/ministack/services/cognito.py
+++ b/ministack/services/cognito.py
@@ -608,7 +608,7 @@ def _create_user_pool_client(data):
"AllowedOAuthFlows": data.get("AllowedOAuthFlows", []),
"AllowedOAuthScopes": data.get("AllowedOAuthScopes", []),
"AllowedOAuthFlowsUserPoolClient": data.get("AllowedOAuthFlowsUserPoolClient", False),
- "AnalyticsConfiguration": data.get("AnalyticsConfiguration", {}),
+ "AnalyticsConfiguration": data.get("AnalyticsConfiguration"),
"PreventUserExistenceErrors": data.get("PreventUserExistenceErrors", "ENABLED"),
"EnableTokenRevocation": data.get("EnableTokenRevocation", True),
"EnablePropagateAdditionalUserContextData": data.get("EnablePropagateAdditionalUserContextData", False),