-
Notifications
You must be signed in to change notification settings - Fork 486
/
Copy pathCognitoMigrateUserResponse.cs
56 lines (51 loc) · 2.89 KB
/
CognitoMigrateUserResponse.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
48
49
50
51
52
53
54
55
56
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 CognitoMigrateUserResponse : CognitoTriggerResponse
{
/// <summary>
/// It must contain one or more name-value pairs representing user attributes to be stored in the user profile in your user pool. You can include both standard and custom user attributes. Custom attributes require the custom: prefix to distinguish them from standard attributes.
/// </summary>
[DataMember(Name = "userAttributes")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("userAttributes")]
#endif
public Dictionary<string, string> UserAttributes { get; set; } = new Dictionary<string, string>();
/// <summary>
/// During sign-in, this attribute can be set to CONFIRMED, or not set, to auto-confirm your users and allow them to sign-in with their previous passwords. This is the simplest experience for the user.
/// </summary>
[DataMember(Name = "finalUserStatus")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("finalUserStatus")]
#endif
public string FinalUserStatus { get; set; }
/// <summary>
/// This attribute can be set to "SUPPRESS" to suppress the welcome message usually sent by Amazon Cognito to new users. If this attribute is not returned, the welcome message will be sent.
/// </summary>
[DataMember(Name = "messageAction")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("messageAction")]
#endif
public string MessageAction { get; set; }
/// <summary>
/// This attribute can be set to "EMAIL" to send the welcome message by email, or "SMS" to send the welcome message by SMS. If this attribute is not returned, the welcome message will be sent by SMS.
/// </summary>
[DataMember(Name = "desiredDeliveryMediums")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("desiredDeliveryMediums")]
#endif
public List<string> DesiredDeliveryMediums { get; set; } = new List<string>();
/// <summary>
/// If this parameter is set to "true" and the phone number or email address specified in the UserAttributes parameter already exists as an alias with a different user, the API call will migrate the alias from the previous user to the newly created user. The previous user will no longer be able to log in using that alias.
/// </summary>
[DataMember(Name = "forceAliasCreation")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("forceAliasCreation")]
#endif
public bool ForceAliasCreation { get; set; }
}
}