using System.Runtime.Serialization; namespace Amazon.Lambda.CognitoEvents { /// /// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-define-auth-challenge.html /// [DataContract] public class ChallengeResultElement { /// /// The challenge type.One of: CUSTOM_CHALLENGE, SRP_A, PASSWORD_VERIFIER, SMS_MFA, DEVICE_SRP_AUTH, DEVICE_PASSWORD_VERIFIER, or ADMIN_NO_SRP_AUTH. /// [DataMember(Name = "challengeName")] #if NETCOREAPP3_1 [System.Text.Json.Serialization.JsonPropertyName("challengeName")] # endif public string ChallengeName { get; set; } /// /// Set to true if the user successfully completed the challenge, or false otherwise. /// [DataMember(Name = "challengeResult")] #if NETCOREAPP3_1 [System.Text.Json.Serialization.JsonPropertyName("challengeResult")] # endif public bool ChallengeResult { get; set; } /// /// Your name for the custom challenge.Used only if challengeName is CUSTOM_CHALLENGE. /// [DataMember(Name = "challengeMetadata")] #if NETCOREAPP3_1 [System.Text.Json.Serialization.JsonPropertyName("challengeMetadata")] # endif public string ChallengeMetadata { get; set; } } }