-
Notifications
You must be signed in to change notification settings - Fork 479
/
Copy pathCognitoCustomMessageResponse.cs
37 lines (34 loc) · 1.31 KB
/
CognitoCustomMessageResponse.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
using System.Runtime.Serialization;
namespace Amazon.Lambda.CognitoEvents
{
/// <summary>
/// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-message.html
/// </summary>
public class CognitoCustomMessageResponse : CognitoTriggerResponse
{
/// <summary>
/// The custom SMS message to be sent to your users. Must include the codeParameter value received in the request.
/// </summary>
[DataMember(Name = "smsMessage")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("smsMessage")]
#endif
public string SmsMessage { get; set; }
/// <summary>
/// The custom email message to be sent to your users. Must include the codeParameter value received in the request.
/// </summary>
[DataMember(Name = "emailMessage")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("emailMessage")]
#endif
public string EmailMessage { get; set; }
/// <summary>
/// The subject line for the custom message.
/// </summary>
[DataMember(Name = "emailSubject")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("emailSubject")]
#endif
public string EmailSubject { get; set; }
}
}