Class DefaultRequestAuthorizer

  • All Implemented Interfaces:
    com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayCustomAuthorizerEvent,​AuthorizerResponse>

    public class DefaultRequestAuthorizer
    extends RequestAuthorizer
    A simple Lambda Authorizer. The class can be used by extending it and adding in the default constructor the principal id value.
    • Field Detail

      • API_KEY_SECRET_NAME

        public static final java.lang.String API_KEY_SECRET_NAME
      • API_KEY_SECRET_KEY

        public static final java.lang.String API_KEY_SECRET_KEY
    • Constructor Detail

      • DefaultRequestAuthorizer

        public DefaultRequestAuthorizer​(java.lang.String principalId)
        The constructor that should be inherited by the default constructor of the custom Lambda Authorizer.
        Parameters:
        principalId - A string describing the service tha is using the Authorizer.
      • DefaultRequestAuthorizer

        public DefaultRequestAuthorizer​(software.amazon.awssdk.services.secretsmanager.SecretsManagerClient secretsClient,
                                        java.lang.String principalId)