AWS cognito: Fix JSON syntax in pre token generation Lambda examples
Summary
Removes trailing commas in the sample JSON payloads (preferredRole and cognito:user_status lines) so the examples are valid JSON.
Security assessment
The diff only corrects JSON syntax (trailing commas) in example payloads for the pre token generation Lambda trigger; it is a formatting fix with no security implications.
Evidence
+ "preferredRole": "arn:aws:iam::123456789012:role/new_role"
Diff
diff --git a/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.md b/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.md index 8e46e76..153e06f 100644 --- a//cognito/latest/developerguide/user-pool-lambda-pre-token-generation.md +++ b//cognito/latest/developerguide/user-pool-lambda-pre-token-generation.md @@ -409 +409 @@ JavaScript - "preferredRole": "arn:aws:iam::123456789012:role/new_role", + "preferredRole": "arn:aws:iam::123456789012:role/new_role" @@ -558 +558 @@ JSON - "cognito:user_status": "CONFIRMED" + "cognito:user_status": "CONFIRMED",