interface AuthProviderProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppSync.Mixins.CfnApiPropsMixin.AuthProviderProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsappsync/mixins#CfnApiPropsMixin_AuthProviderProperty |
Java | software.amazon.awscdk.mixins.preview.services.appsync.mixins.CfnApiPropsMixin.AuthProviderProperty |
Python | aws_cdk.mixins_preview.aws_appsync.mixins.CfnApiPropsMixin.AuthProviderProperty |
TypeScript | @aws-cdk/mixins-preview » aws_appsync » mixins » CfnApiPropsMixin » AuthProviderProperty |
Describes an authorization provider.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as appsync_mixins } from '@aws-cdk/mixins-preview/aws-appsync';
const authProviderProperty: appsync_mixins.CfnApiPropsMixin.AuthProviderProperty = {
authType: 'authType',
cognitoConfig: {
appIdClientRegex: 'appIdClientRegex',
awsRegion: 'awsRegion',
userPoolId: 'userPoolId',
},
lambdaAuthorizerConfig: {
authorizerResultTtlInSeconds: 123,
authorizerUri: 'authorizerUri',
identityValidationExpression: 'identityValidationExpression',
},
openIdConnectConfig: {
authTtl: 123,
clientId: 'clientId',
iatTtl: 123,
issuer: 'issuer',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| auth | string | The authorization type. |
| cognito | IResolvable | Cognito | Describes an Amazon Cognito user pool configuration. |
| lambda | IResolvable | Lambda | A LambdaAuthorizerConfig specifies how to authorize AWS AppSync API access when using the AWS_LAMBDA authorizer mode. |
| open | IResolvable | Open | Describes an OpenID Connect (OIDC) configuration. |
authType?
Type:
string
(optional)
The authorization type.
cognitoConfig?
Type:
IResolvable | Cognito
(optional)
Describes an Amazon Cognito user pool configuration.
lambdaAuthorizerConfig?
Type:
IResolvable | Lambda
(optional)
A LambdaAuthorizerConfig specifies how to authorize AWS AppSync API access when using the AWS_LAMBDA authorizer mode.
Be aware that an AWS AppSync API can have only one AWS Lambda authorizer configured at a time.
openIdConnectConfig?
Type:
IResolvable | Open
(optional)
Describes an OpenID Connect (OIDC) configuration.

.NET
Go
Java
Python
TypeScript