I have created Cognito UserPool and UserpoolClient via Resources in serverless.yml file like this -
CognitoUserPool: Type: AWS::Cognito::UserPool Properti