forked from aws/aws-lambda-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCognitoTriggerCallerContext.cs
More file actions
30 lines (27 loc) · 968 Bytes
/
CognitoTriggerCallerContext.cs
File metadata and controls
30 lines (27 loc) · 968 Bytes
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
using System.Runtime.Serialization;
namespace Amazon.Lambda.CognitoEvents
{
/// <summary>
/// https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html#cognito-user-pools-lambda-trigger-syntax-shared
/// </summary>
[DataContract]
public class CognitoTriggerCallerContext
{
/// <summary>
/// The AWS SDK version number.
/// </summary>
[DataMember(Name = "awsSdkVersion")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("awsSdkVersion")]
#endif
public string AwsSdkVersion { get; set; }
/// <summary>
/// The ID of the client associated with the user pool.
/// </summary>
[DataMember(Name = "clientId")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("clientId")]
#endif
public string ClientId { get; set; }
}
}