namespace Amazon.Lambda.APIGatewayEvents
{
using System.Runtime.Serialization;
///
/// An object representing the expected format of an API Gateway authorization response.
///
[DataContract]
public class APIGatewayCustomAuthorizerResponse
{
///
/// Gets or sets the ID of the principal.
///
[DataMember(Name = "principalId")]
#if NETCOREAPP_3_1
[System.Text.Json.Serialization.JsonPropertyName("principalId")]
#endif
public string PrincipalID { get; set; }
///
/// Gets or sets the policy document.
///
[DataMember(Name = "policyDocument")]
#if NETCOREAPP_3_1
[System.Text.Json.Serialization.JsonPropertyName("policyDocument")]
#endif
public APIGatewayCustomAuthorizerPolicy PolicyDocument { get; set; } = new APIGatewayCustomAuthorizerPolicy();
///
/// Gets or sets the property.
///
[DataMember(Name = "context")]
#if NETCOREAPP_3_1
[System.Text.Json.Serialization.JsonPropertyName("context")]
#endif
public APIGatewayCustomAuthorizerContextOutput Context { get; set; }
///
/// Gets or sets the usageIdentifierKey.
///
[DataMember(Name = "usageIdentifierKey")]
#if NETCOREAPP_3_1
[System.Text.Json.Serialization.JsonPropertyName("usageIdentifierKey")]
#endif
public string UsageIdentifierKey { get; set; }
}
}