using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Amazon.Lambda.CognitoEvents
{
///
/// https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-token-generation.html
///
[DataContract]
public class GroupConfiguration
{
///
/// A list of the group names that are associated with the user that the identity token is issued for.
///
[DataMember(Name = "groupsToOverride")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("groupsToOverride")]
# endif
public List GroupsToOverride { get; set; } = new List();
///
/// A list of the current IAM roles associated with these groups.
///
[DataMember(Name = "iamRolesToOverride")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("iamRolesToOverride")]
# endif
public List IamRolesToOverride { get; set; } = new List();
///
/// A string indicating the preferred IAM role.
///
[DataMember(Name = "preferredRole")]
#if NETCOREAPP3_1
[System.Text.Json.Serialization.JsonPropertyName("preferredRole")]
# endif
public string PreferredRole { get; set; }
}
}