interface UserPoolConfigProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppSync.CfnGraphQLApi.UserPoolConfigProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#CfnGraphQLApi_UserPoolConfigProperty |
![]() | software.amazon.awscdk.services.appsync.CfnGraphQLApi.UserPoolConfigProperty |
![]() | aws_cdk.aws_appsync.CfnGraphQLApi.UserPoolConfigProperty |
![]() | aws-cdk-lib » aws_appsync » CfnGraphQLApi » UserPoolConfigProperty |
The UserPoolConfig
property type specifies the optional authorization configuration for using Amazon Cognito user pools with your GraphQL endpoint for an AWS AppSync GraphQL API.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const userPoolConfigProperty: appsync.CfnGraphQLApi.UserPoolConfigProperty = {
appIdClientRegex: 'appIdClientRegex',
awsRegion: 'awsRegion',
defaultAction: 'defaultAction',
userPoolId: 'userPoolId',
};
Properties
Name | Type | Description |
---|---|---|
app | string | A regular expression for validating the incoming Amazon Cognito user pool app client ID. |
aws | string | The AWS Region in which the user pool was created. |
default | string | The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool authentication doesn't match the Amazon Cognito user pool configuration. |
user | string | The user pool ID. |
appIdClientRegex?
Type:
string
(optional)
A regular expression for validating the incoming Amazon Cognito user pool app client ID.
If this value isn't set, no filtering is applied.
awsRegion?
Type:
string
(optional)
The AWS Region in which the user pool was created.
defaultAction?
Type:
string
(optional)
The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool authentication doesn't match the Amazon Cognito user pool configuration.
When specifying Amazon Cognito user pools as the default authentication, you must set the value for DefaultAction
to ALLOW
if specifying AdditionalAuthenticationProviders
.
userPoolId?
Type:
string
(optional)
The user pool ID.