using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Amazon.Lambda.CognitoEvents
{
///
/// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-authentication.html
///
[DataContract]
public class CognitoPreAuthenticationRequest : CognitoTriggerRequest
{
///
/// 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.
///
[DataMember(Name = "validationData")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("validationData")]
# endif
public Dictionary ValidationData { get; set; } = new Dictionary();
///
/// This boolean is populated when PreventUserExistenceErrors is set to ENABLED for your User Pool client.
///
[DataMember(Name = "userNotFound")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("userNotFound")]
#endif
public bool UserNotFound { get; set; }
}
}