[Python][Cognito][Appsync] Failed to associate user_pool_config in CfnGraphQLApi #8173
Labels
@aws-cdk/aws-appsync
Related to AWS AppSync
@aws-cdk/aws-cognito
Related to Amazon Cognito
bug
This issue is a bug.
language/python
Related to Python bindings
p2
I want to associate a
IUserPool
to aCfnGraphQLApi
as I set Cognito asauthentication_type
Reproduction Steps
Error Log
I get the following error message:
Environment
Other
Apparently, I should use the CDK construct
UserPoolConfigProperty
, which is not present in the construct library. This raises the following 2 questions:UserPoolConfig
construct?Additionally, the AWS AppSync Construct Library page is confusing.
For example, the following snippet:
I found these problems:
"authorization_config"
should be a construct from theaws_cdk
librarydefault_authorization
key, butdefault_authorization
does not acceptuser_pool
parameter (only (AuthMode)[https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_appsync/AuthMode.html#aws_cdk.aws_appsync.AuthMode]This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: