using System.Runtime.Serialization;
namespace Amazon.Lambda.CognitoEvents
{
///
/// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-define-auth-challenge.html
///
public class CognitoDefineAuthChallengeResponse : CognitoTriggerResponse
{
///
/// A string containing the name of the next challenge. If you want to present a new challenge to your user, specify the challenge name here.
///
[DataMember(Name = "challengeName")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("challengeName")]
#endif
public string ChallengeName { get; set; }
///
/// Set to true if you determine that the user has been sufficiently authenticated by completing the challenges, or false otherwise.
///
[DataMember(Name = "issueTokens")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("issueTokens")]
#endif
public bool IssueTokens { get; set; }
///
/// Set to true if you want to terminate the current authentication process, or false otherwise.
///
[DataMember(Name = "failAuthentication")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("failAuthentication")]
#endif
public bool FailAuthentication { get; set; }
}
}