Skip to content

(aws-apigatewayv2-authorizers): Expose Authorizer ID to make it reusable from other projects #31605

@JonWallsten

Description

@JonWallsten

Describe the feature

I need to be able to retrieve the Authorizer ID (the generated ID, not the one passed to the Construct) from the L2 construct.
Looking through the code I guess the issue is that the authorizer is not created until it's attached to a route. So I cannot personally create a PR for this since I don't know how references are resolved when the templates are generated.

Use Case

I want to be able to reuse the authorizer in other projects in the same account.

Proposed Solution

Expose the id the same way other constructs are.

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.159.0

Environment details (OS name and version, etc.)

Windows 11 23H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions