class HttpAlbIntegration
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AwsApigatewayv2Integrations.HttpAlbIntegration |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2integrations#HttpAlbIntegration |
Java | software.amazon.awscdk.aws_apigatewayv2_integrations.HttpAlbIntegration |
Python | aws_cdk.aws_apigatewayv2_integrations.HttpAlbIntegration |
TypeScript (source) | aws-cdk-lib » aws_apigatewayv2_integrations » HttpAlbIntegration |
Extends
Http
The Application Load Balancer integration resource for HTTP API.
Example
import { HttpAlbIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';
const vpc = new ec2.Vpc(this, 'VPC');
const lb = new elbv2.ApplicationLoadBalancer(this, 'lb', { vpc });
const listener = lb.addListener('listener', { port: 80 });
listener.addTargets('target', {
port: 80,
});
const httpEndpoint = new apigwv2.HttpApi(this, 'HttpProxyPrivateApi', {
defaultIntegration: new HttpAlbIntegration('DefaultIntegration', listener),
});
Initializer
new HttpAlbIntegration(id: string, listener: IApplicationListener, props?: HttpAlbIntegrationProps)
Parameters
- id
string— id of the underlying integration construct. - listener
IApplication— the ELB application listener.Listener - props
Http— properties to configure the integration.Alb Integration Props
Properties
| Name | Type | Description |
|---|---|---|
| connection | Http | |
| http | Http | |
| integration | Http | |
| payload | Payload |
connectionType
Type:
Http
httpMethod
Type:
Http
integrationType
Type:
Http
payloadFormatVersion
Type:
Payload
Methods
| Name | Description |
|---|---|
| bind(options) | Bind this integration to the route. |
bind(options)
public bind(options: HttpRouteIntegrationBindOptions): HttpRouteIntegrationConfig
Parameters
- options
HttpRoute Integration Bind Options
Returns
Bind this integration to the route.

.NET
Go
Java
Python
TypeScript (