-
Notifications
You must be signed in to change notification settings - Fork 488
/
Copy pathAppSyncAuthorizerEvent.cs
65 lines (56 loc) · 2.22 KB
/
AppSyncAuthorizerEvent.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
namespace Amazon.Lambda.AppSyncEvents;
/// <summary>
/// Represents an AWS AppSync authorization event that is sent to a Lambda authorizer
/// for evaluating access permissions to the GraphQL API.
/// </summary>
public class AppSyncAuthorizerEvent
{
/// <summary>
/// Gets or sets the authorization token received from the client request.
/// This token is used to make authorization decisions.
/// </summary>
public string AuthorizationToken { get; set; }
/// <summary>
/// Gets or sets the headers from the client request.
/// Contains key-value pairs of HTTP header names and their values.
/// </summary>
public Dictionary<string, string> RequestHeaders { get; set; }
/// <summary>
/// Gets or sets the context information about the AppSync request.
/// Contains metadata about the API and the GraphQL operation being executed.
/// </summary>
public AppSyncRequestContext RequestContext { get; set; }
}
/// <summary>
/// Contains contextual information about the AppSync request being authorized.
/// This class provides details about the API, account, and GraphQL operation.
/// </summary>
public class AppSyncRequestContext
{
/// <summary>
/// Gets or sets the unique identifier of the AppSync API.
/// </summary>
public string ApiId { get; set; }
/// <summary>
/// Gets or sets the AWS account ID where the AppSync API is deployed.
/// </summary>
public string AccountId { get; set; }
/// <summary>
/// Gets or sets the unique identifier for this specific request.
/// </summary>
public string RequestId { get; set; }
/// <summary>
/// Gets or sets the GraphQL query string containing the operation to be executed.
/// </summary>
public string QueryString { get; set; }
/// <summary>
/// Gets or sets the name of the GraphQL operation to be executed.
/// This corresponds to the operation name in the GraphQL query.
/// </summary>
public string OperationName { get; set; }
/// <summary>
/// Gets or sets the variables passed to the GraphQL operation.
/// Contains key-value pairs of variable names and their values.
/// </summary>
public Dictionary<string, object> Variables { get; set; }
}