io.quarkus.amazon.lambda.http.LambdaHttpConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-amazon-lambda-http Show documentation
Show all versions of quarkus-amazon-lambda-http Show documentation
Allow applications written for a servlet container to run in AWS Lambda
package io.quarkus.amazon.lambda.http;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
@ConfigRoot(phase = ConfigPhase.RUN_TIME)
public class LambdaHttpConfig {
/**
* If true, Quarkus will map claims from Cognito to Quarkus security roles.
* The "cognito:groups" claim will be used by default. Change cognitoRoleClaim
* config value to change the claim source.
*
* True by default
*/
@ConfigItem(defaultValue = "true")
public boolean mapCognitoToRoles;
/**
* Cognito claim that contains roles you want to map. Defaults to "cognito:groups"
*/
@ConfigItem(defaultValue = "cognito:groups")
public String cognitoRoleClaim;
/**
* Regular expression to locate role values within a Cognito claim string.
* By default it looks for space delimited strings enclosed in brackets
* "[^\[\] \t]+"
*/
@ConfigItem(defaultValue = "[^\\[\\] \\t]+")
public String cognitoClaimMatcher;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy