appsync: support adding auth provider for AppSync Events after creating an api #33714
Labels
@aws-cdk/aws-appsync
Related to AWS AppSync
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
It'd be great if
EventApi
has a public method to add auth provider. (e.g.EventApi.addAuthProvider
.)Use Case
Sometimes we want to create resources required for auth (e.g. Cognito UserPool) after the creation of event API. For example,
constrcutA
contains an AppSync Events API andconstructB
contains a cognito user pool, andconstructB
has depdendency onconstructA
. Currently it is difficult to achieve because EventApi expects all the resources to configure auth provider is available when it is defined by the authorizationConfig construct prop.Proposed Solution
add
EventApi.addAuthProvider(AppSyncAuthProvider)
method.Other Information
No response
Acknowledgements
CDK version used
2.181.0
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered: