Open
Description
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 and constructB
contains a cognito user pool, and constructB
has depdendency on constructA
. 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
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.181.0
Environment details (OS name and version, etc.)
macOS