Cognito
The object describing a Cognito event source type.
Syntax
To declare this entity in your Amazon Serverless Application Model (Amazon SAM) template, use the following syntax.
Properties
-
Trigger -
The Lambda trigger configuration information for the new user pool.
Type: List
Required: Yes
Amazon CloudFormation compatibility: This property is passed directly to the
LambdaConfigproperty of anAWS::Cognito::UserPoolresource. -
UserPool -
Reference to UserPool defined in the same template
Type: String
Required: Yes
Amazon CloudFormation compatibility: This property is unique to Amazon SAM and doesn't have an Amazon CloudFormation equivalent.
Examples
Cognito Event
Cognito Event Example
YAML
CognitoUserPoolPreSignup: Type: Cognito Properties: UserPool: Ref: MyCognitoUserPool Trigger: PreSignUp