Class IAMPrincipal

java.lang.Object
io.quarkus.amazon.lambda.http.IAMPrincipal
All Implemented Interfaces:
Principal

public class IAMPrincipal extends Object implements Principal
Used if IAM is used for authentication. Will only be allocated if requestContext.authorizer.iam.userId is set in the http event sent by API Gateway
  • Constructor Details

    • IAMPrincipal

      public IAMPrincipal(com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent.RequestContext.IAM iam)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Principal
    • getIam

      public com.amazonaws.services.lambda.runtime.events.APIGatewayV2HTTPEvent.RequestContext.IAM getIam()