Skip to content

apigatewayv2: add arnForExecuteAPI method to HTTP API and WebSocket API construct #23301

@tmokmss

Description

@tmokmss

Describe the feature

RestApi construct has arnForExecuteAPI method to get ARN for its execute-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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.53.0

Environment details (OS name and version, etc.)

n/a

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-apigatewayv2Related to Amazon API Gateway v2effort/smallSmall work item – less than a day 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