ApiEventConfigAuthProvider constructor
const
ApiEventConfigAuthProvider({
- required Input<
String> authType, - Input<
ApiEventConfigAuthProviderCognitoConfig?> ? cognitoConfig, - Input<
ApiEventConfigAuthProviderLambdaAuthorizerConfig?> ? lambdaAuthorizerConfig, - Input<
ApiEventConfigAuthProviderOpenidConnectConfig?> ? openidConnectConfig,
Creates a new ApiEventConfigAuthProvider.
authType Type of authentication provider. Valid values: API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS, OPENID_CONNECT, AWS_LAMBDA.
cognitoConfig Configuration for Cognito user pool authentication. Required when authType is AMAZON_COGNITO_USER_POOLS. See cognitoConfig Block below.
lambdaAuthorizerConfig Configuration for Lambda authorization. Required when authType is AWS_LAMBDA. See lambdaAuthorizerConfig Block below.
openidConnectConfig Configuration for OpenID Connect. Required when authType is OPENID_CONNECT. See openidConnectConfig Block below.
Implementation
const ApiEventConfigAuthProvider({
required this.authType,
this.cognitoConfig,
this.lambdaAuthorizerConfig,
this.openidConnectConfig,
});