-
Notifications
You must be signed in to change notification settings - Fork 479
/
Copy pathGroupConfiguration.cs
39 lines (36 loc) · 1.38 KB
/
GroupConfiguration.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
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Amazon.Lambda.CognitoEvents
{
/// <summary>
/// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html
/// </summary>
[DataContract]
public class GroupConfiguration
{
/// <summary>
/// A list of the group names that are associated with the user that the identity token is issued for.
/// </summary>
[DataMember(Name = "groupsToOverride")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("groupsToOverride")]
# endif
public List<string> GroupsToOverride { get; set; } = new List<string>();
/// <summary>
/// A list of the current IAM roles associated with these groups.
/// </summary>
[DataMember(Name = "iamRolesToOverride")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("iamRolesToOverride")]
# endif
public List<string> IamRolesToOverride { get; set; } = new List<string>();
/// <summary>
/// A string indicating the preferred IAM role.
/// </summary>
[DataMember(Name = "preferredRole")]
#if NETCOREAPP3_1_OR_GREATER
[System.Text.Json.Serialization.JsonPropertyName("preferredRole")]
# endif
public string PreferredRole { get; set; }
}
}