Skip to content

appsync: support adding auth provider for AppSync Events after creating an api #33714

Open
@tmokmss

Description

@tmokmss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-appsyncRelated to AWS AppSynceffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions