/
AutoVerifiedAttrs.go
33 lines (30 loc) · 1.13 KB
/
AutoVerifiedAttrs.go
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
package awscognito
// Attributes that can be automatically verified for users in a user pool.
//
// Example:
// cognito.NewUserPool(this, jsii.String("myuserpool"), &UserPoolProps{
// // ...
// // ...
// SignInAliases: &SignInAliases{
// Username: jsii.Boolean(true),
// Email: jsii.Boolean(true),
// },
// AutoVerify: &AutoVerifiedAttrs{
// Email: jsii.Boolean(true),
// Phone: jsii.Boolean(true),
// },
// })
//
type AutoVerifiedAttrs struct {
// Whether the email address of the user should be auto verified at sign up.
//
// Note: If both `email` and `phone` is set, Cognito only verifies the phone number. To also verify email, see here -
// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html
// Default: - true, if email is turned on for `signIn`. false, otherwise.
//
Email *bool `field:"optional" json:"email" yaml:"email"`
// Whether the phone number of the user should be auto verified at sign up.
// Default: - true, if phone is turned on for `signIn`. false, otherwise.
//
Phone *bool `field:"optional" json:"phone" yaml:"phone"`
}