-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apigatewayv2: add arnForExecuteAPI
method to HTTP API and WebSocket API construct
#23301
Comments
I'm not super familiar with apigateway as a service, but it doesn't seem evident to me based on the docs that this feature exists for both HTTP and WebSocket APIs. There's this page for REST APIs. A similar page exists for WebSocket APIs, however it will require additional setup which wouldn't make the same method work. I didn't find a page on invoking HTTP APIs, though I expect this method would work for HTTP APIs. If we are able to port this to at least one of the API constructs in v2, it should be pretty simple 🙂 aws-cdk/packages/@aws-cdk/aws-apigateway/lib/restapi.ts Lines 378 to 393 in 9f41881
|
|
…aws#28400) This PR adds the arnForExecuteApi method, previously available only for REST API constructs, to both WebSocket and HTTP API constructs. Closes aws#23301 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the feature
RestApi construct has
arnForExecuteAPI
method to get ARN for itsexecute-api
resource easily.HttpApi and WebSocketApi should have the same method to be more consistent between apigateway and apigatewayv2 modules.
Use Case
Get ARN for execute-api of v2 API Gateways easily.
Proposed Solution
Since the formats of these ARNs are basically the same, we can copy the API of RestAPI construct. More details are in this document.
Other Information
No response
Acknowledgements
CDK version used
2.53.0
Environment details (OS name and version, etc.)
n/a
The text was updated successfully, but these errors were encountered: