AuthProvider
Optional authorization configuration for your additional GraphQL API authorization types.
Syntax
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
YAML
LambdaAuthorizer:LambdaAuthorizerConfigOpenIDConnect:OpenIDConnectConfigType:StringUserPool:UserPoolConfig
Properties
-
Specify the optional authorization configuration for your AWS Lambda function authorizer. You can configure this optional property when
Typeis specified asAWS_LAMBDA.Type: LambdaAuthorizerConfig
Required: No
CloudFormation compatibility: This property is passed directly to the
LambdaAuthorizerConfigproperty of anAWS::AppSync::GraphQLApiAdditionalAuthenticationProviderobject. OpenIDConnect-
Specify the optional authorization configuration for your OpenID Connect compliant service. You can configure this optional property when
Typeis specified asOPENID_CONNECT.Type: OpenIDConnectConfig
Required: No
CloudFormation compatibility: This property is passed directly to the
OpenIDConnectConfigproperty of anAWS::AppSync::GraphQLApiAdditionalAuthenticationProviderobject. Type-
The default authorization type between applications and your AWS AppSync GraphQL API.
For a list and description of allowed values, see Authorization and authentication in the AWS AppSync Developer Guide.
When you specify a Lambda authorizer (
AWS_LAMBDA), AWS SAM creates an AWS Identity and Access Management (IAM) policy to provision permissions between your GraphQL API and Lambda function.Type: String
Required: Yes
CloudFormation compatibility: This property is passed directly to the
AuthenticationTypeproperty of anAWS::AppSync::GraphQLApiAdditionalAuthenticationProviderobject. UserPool-
Specify the optional authorization configuration for using Amazon Cognito user pools. You can configure this optional property when
Typeis specified asAMAZON_COGNITO_USER_POOLS.Type: UserPoolConfig
Required: No
CloudFormation compatibility: This property is passed directly to the
UserPoolConfigproperty of anAWS::AppSync::GraphQLApiAdditionalAuthenticationProviderobject.