public class AuthConfig
Configuration of the authentication mechanism.
This is only required if the authentication mechanism uses an existing AWS resources; a Cognito user pool or a custom auth lambda function. If the user pool or lambda are created as part of the same CloudFormation stack as the API and handlers then no configuration is necessary.
The AuthConfig must match the auth configuration of the API endpoints,
class CognitoUserPoolsAuth or class CustomAuth.
class CognitoUserPoolsAuth,
class CustomAuth| Modifier and Type | Class and Description |
|---|---|
static class |
AuthConfig.CognitoUserPools
Represents a Cognito user pool used for authentication.
|
static class |
AuthConfig.Custom
Represents a custom authentication lambda function.
|