-
Notifications
You must be signed in to change notification settings - Fork 487
/
Copy pathCognitoPreSignupResponse.cs
38 lines (35 loc) · 1.67 KB
/
CognitoPreSignupResponse.cs
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
using System.Runtime.Serialization;
namespace Amazon.Lambda.CognitoEvents
{
/// <summary>
/// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html
/// </summary>
[DataContract]
public class CognitoPreSignupResponse : CognitoTriggerResponse
{
/// <summary>
/// Set to true to auto-confirm the user, or false otherwise.
/// </summary>
[DataMember(Name = "autoConfirmUser")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("autoConfirmUser")]
#endif
public bool AutoConfirmUser { get; set; }
/// <summary>
/// Set to true to set as verified the email of a user who is signing up, or false otherwise. If autoVerifyEmail is set to true, the email attribute must have a valid, non-null value. Otherwise an error will occur and the user will not be able to complete sign-up.
/// </summary>
[DataMember(Name = "autoVerifyPhone")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("autoVerifyPhone")]
#endif
public bool AutoVerifyPhone { get; set; }
/// <summary>
/// Set to true to set as verified the phone number of a user who is signing up, or false otherwise. If autoVerifyPhone is set to true, the phone_number attribute must have a valid, non-null value. Otherwise an error will occur and the user will not be able to complete sign-up.
/// </summary>
[DataMember(Name = "autoVerifyEmail")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("autoVerifyEmail")]
#endif
public bool AutoVerifyEmail { get; set; }
}
}