Skip to content
v2.278.0

HttpApiHelper Facade ​

Calculations and operations for HTTP APIs.

Example ​

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
# 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
// 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);
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);
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): stringdef arn_for_execute_api(self, method: typing.Optional[str] = None, path: typing.Optional[str] = None, stage: typing.Optional[str] = None) -> strpublic String arnForExecuteApi(String method, String path, String stage)public string ArnForExecuteApi(string? method = null, string? path = null, string? stage = null)func 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@staticmethod def from_http_api(http_api: IHttpApiRef) -> HttpApiHelperpublic static HttpApiHelper fromHttpApi(IHttpApiRef httpApi)public static HttpApiHelper FromHttpApi(IHttpApiRef httpApi)func FromHttpApi(HttpApi IHttpApiRef) HttpApiHelper static #
Return an `HttpApiHelper` for the given HTTP API.