Cognito - AWS Serverless Application Model
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Cognito

The object describing a Cognito event source type.

Syntax

To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.

YAML

Trigger: List UserPool: String

Properties

Trigger

The Lambda trigger configuration information for the new user pool.

Type: List

Required: Yes

CloudFormation compatibility: This property is passed directly to the LambdaConfig property of an AWS::Cognito::UserPool resource.

UserPool

Reference to UserPool defined in the same template

Type: String

Required: Yes

CloudFormation compatibility: This property is unique to AWS SAM and doesn't have an CloudFormation equivalent.

Examples

Cognito Event

Cognito Event Example

YAML

CognitoUserPoolPreSignup: Type: Cognito Properties: UserPool: Ref: MyCognitoUserPool Trigger: PreSignUp