-
Notifications
You must be signed in to change notification settings - Fork 478
/
CognitoMigrateUserRequest.cs
47 lines (43 loc) · 2.2 KB
/
CognitoMigrateUserRequest.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
39
40
41
42
43
44
45
46
47
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Amazon.Lambda.CognitoEvents
{
/// <summary>
/// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-migrate-user.html
/// </summary>
public class CognitoMigrateUserRequest : CognitoTriggerRequest
{
/// <summary>
/// The username entered by the user.
/// </summary>
[DataMember(Name = "userName")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("userName")]
#endif
public string UserName { get; set; }
/// <summary>
/// The password entered by the user for sign-in. It is not set in the forgot-password flow.
/// </summary>
[DataMember(Name = "password")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("password")]
#endif
public string Password { get; set; }
/// <summary>
/// One or more name-value pairs containing the validation data in the request to register a user. The validation data is set and then passed from the client in the request to register a user. You can pass this data to your Lambda function by using the ClientMetadata parameter in the InitiateAuth and AdminInitiateAuth API actions.
/// </summary>
[DataMember(Name = "validationData")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("validationData")]
#endif
public Dictionary<string, string> ValidationData { get; set; } = new Dictionary<string, string>();
/// <summary>
/// One or more key-value pairs that you can provide as custom input to the Lambda function that you specify for the pre sign-up trigger. You can pass this data to your Lambda function by using the ClientMetadata parameter in the following API actions: AdminCreateUser, AdminRespondToAuthChallenge, ForgotPassword, and SignUp.
/// </summary>
[DataMember(Name = "clientMetadata")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("clientMetadata")]
#endif
public Dictionary<string, string> ClientMetadata { get; set; } = new Dictionary<string, string>();
}
}