

# AuthProvider
<a name="API_AuthProvider"></a>

Describes an authorization provider.

## Contents
<a name="API_AuthProvider_Contents"></a>

 ** authType **   <a name="appsync-Type-AuthProvider-authType"></a>
The authorization type.  
Type: String  
Valid Values: `API_KEY | AWS_IAM | AMAZON_COGNITO_USER_POOLS | OPENID_CONNECT | AWS_LAMBDA`   
Required: Yes

 ** cognitoConfig **   <a name="appsync-Type-AuthProvider-cognitoConfig"></a>
Describes an Amazon Cognito user pool configuration.  
Type: [CognitoConfig](API_CognitoConfig.md) object  
Required: No

 ** lambdaAuthorizerConfig **   <a name="appsync-Type-AuthProvider-lambdaAuthorizerConfig"></a>
A `LambdaAuthorizerConfig` specifies how to authorize Amazon AppSync API access when using the `AWS_LAMBDA` authorizer mode. Be aware that an Amazon AppSync API can have only one Amazon Lambda authorizer configured at a time.  
Type: [LambdaAuthorizerConfig](API_LambdaAuthorizerConfig.md) object  
Required: No

 ** openIDConnectConfig **   <a name="appsync-Type-AuthProvider-openIDConnectConfig"></a>
Describes an OpenID Connect (OIDC) configuration.  
Type: [OpenIDConnectConfig](API_OpenIDConnectConfig.md) object  
Required: No

## See Also
<a name="API_AuthProvider_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\+\+](https://docs.amazonaws.cn/goto/SdkForCpp/appsync-2017-07-25/AuthProvider) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/appsync-2017-07-25/AuthProvider) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/appsync-2017-07-25/AuthProvider) 