Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions samtranslator/model/cognito.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class CognitoUserPool(Resource):
"AutoVerifiedAttributes": GeneratedProperty(),
"DeletionProtection": GeneratedProperty(),
"DeviceConfiguration": GeneratedProperty(),
"EmailAuthenticationMessage": GeneratedProperty(),
"EmailAuthenticationSubject": GeneratedProperty(),
"EmailConfiguration": GeneratedProperty(),
"EmailVerificationMessage": GeneratedProperty(),
"EmailVerificationSubject": GeneratedProperty(),
Expand All @@ -28,7 +30,10 @@ class CognitoUserPool(Resource):
"UserPoolAddOns": GeneratedProperty(),
"UserPoolName": GeneratedProperty(),
"UserPoolTags": GeneratedProperty(),
"UserPoolTier": GeneratedProperty(),
"VerificationMessageTemplate": GeneratedProperty(),
"WebAuthnRelyingPartyID": GeneratedProperty(),
"WebAuthnUserVerification": GeneratedProperty(),
}

runtime_attrs = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Transform: AWS::Serverless-2016-10-31
Resources:
MyUserPool:
Type: AWS::Cognito::UserPool
Properties:
UserPoolTier: PLUS
UserPoolName: MyUserPool
EmailAuthenticationMessage: Your verification code is {####}
EmailAuthenticationSubject: Your verification code
WebAuthnRelyingPartyID: id
WebAuthnUserVerification: required
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"Resources": {
"MyUserPool": {
"Properties": {
"EmailAuthenticationMessage": "Your verification code is {####}",
"EmailAuthenticationSubject": "Your verification code",
"UserPoolName": "MyUserPool",
"UserPoolTier": "PLUS",
"WebAuthnRelyingPartyID": "id",
"WebAuthnUserVerification": "required"
},
"Type": "AWS::Cognito::UserPool"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"Resources": {
"MyUserPool": {
"Properties": {
"EmailAuthenticationMessage": "Your verification code is {####}",
"EmailAuthenticationSubject": "Your verification code",
"UserPoolName": "MyUserPool",
"UserPoolTier": "PLUS",
"WebAuthnRelyingPartyID": "id",
"WebAuthnUserVerification": "required"
},
"Type": "AWS::Cognito::UserPool"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"Resources": {
"MyUserPool": {
"Properties": {
"EmailAuthenticationMessage": "Your verification code is {####}",
"EmailAuthenticationSubject": "Your verification code",
"UserPoolName": "MyUserPool",
"UserPoolTier": "PLUS",
"WebAuthnRelyingPartyID": "id",
"WebAuthnUserVerification": "required"
},
"Type": "AWS::Cognito::UserPool"
}
}
}