-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
Copy pathcognito.py
39 lines (36 loc) · 1.71 KB
/
cognito.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from samtranslator.model import GeneratedProperty, Resource
from samtranslator.model.intrinsics import fnGetAtt, ref
class CognitoUserPool(Resource):
resource_type = "AWS::Cognito::UserPool"
property_types = {
"AccountRecoverySetting": GeneratedProperty(),
"AdminCreateUserConfig": GeneratedProperty(),
"AliasAttributes": GeneratedProperty(),
"AutoVerifiedAttributes": GeneratedProperty(),
"DeletionProtection": GeneratedProperty(),
"DeviceConfiguration": GeneratedProperty(),
"EmailConfiguration": GeneratedProperty(),
"EmailVerificationMessage": GeneratedProperty(),
"EmailVerificationSubject": GeneratedProperty(),
"EnabledMfas": GeneratedProperty(),
"LambdaConfig": GeneratedProperty(),
"MfaConfiguration": GeneratedProperty(),
"Policies": GeneratedProperty(),
"Schema": GeneratedProperty(),
"SmsAuthenticationMessage": GeneratedProperty(),
"SmsConfiguration": GeneratedProperty(),
"SmsVerificationMessage": GeneratedProperty(),
"UserAttributeUpdateSettings": GeneratedProperty(),
"UsernameAttributes": GeneratedProperty(),
"UsernameConfiguration": GeneratedProperty(),
"UserPoolAddOns": GeneratedProperty(),
"UserPoolName": GeneratedProperty(),
"UserPoolTags": GeneratedProperty(),
"VerificationMessageTemplate": GeneratedProperty(),
}
runtime_attrs = {
"name": lambda self: ref(self.logical_id),
"arn": lambda self: fnGetAtt(self.logical_id, "Arn"),
"provider_name": lambda self: fnGetAtt(self.logical_id, "ProviderName"),
"provider_url": lambda self: fnGetAtt(self.logical_id, "ProviderURL"),
}