# HttpApiHelper

Calculations and operations for HTTP APIs.

Obtainable from: HttpApiHelper.fromHttpApi

- Source: [`aws-apigatewayv2/lib/http/api-helper.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/api-helper.ts#L8)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';

declare const httpApiRef: apigatewayv2.IHttpApiRef;
const httpApiHelper = apigatewayv2.HttpApiHelper.fromHttpApi(httpApiRef);
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigatewayv2 as apigatewayv2

# http_api_ref: apigatewayv2.IHttpApiRef

http_api_helper = apigatewayv2.HttpApiHelper.from_http_api(http_api_ref)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;

IHttpApiRef httpApiRef;

HttpApiHelper httpApiHelper = HttpApiHelper.fromHttpApi(httpApiRef);
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Apigatewayv2;

IHttpApiRef httpApiRef;

var httpApiHelper = HttpApiHelper.FromHttpApi(httpApiRef);
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var httpApiRef IHttpApiRef

httpApiHelper := awscdk.Aws_apigatewayv2.HttpApiHelper_FromHttpApi(httpApiRef)
```

## Methods

- `arnForExecuteApi(method?: string, path?: string, stage?: string): string` — Get the "execute-api" ARN.

  When 'ANY' is passed to the method, an ARN with the method set to '*' is obtained.

- `fromHttpApi(httpApi: IHttpApiRef): HttpApiHelper // chainable` (static) — Return an `HttpApiHelper` for the given HTTP API.
