namespace Amazon.Lambda.APIGatewayEvents { using System.Collections.Generic; using System.Runtime.Serialization; /// /// An object representing the expected format of an API Gateway authorization response. /// https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html /// [DataContract] public class APIGatewayCustomAuthorizerV2IamResponse { /// /// 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 Dictionary Context { get; set; } } }