class HttpAlbIntegration
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.APIGatewayv2.Integrations.HttpAlbIntegration |
Java | software.amazon.awscdk.services.apigatewayv2.integrations.HttpAlbIntegration |
Python | aws_cdk.aws_apigatewayv2_integrations.HttpAlbIntegration |
TypeScript (source) | @aws-cdk/aws-apigatewayv2-integrations » HttpAlbIntegration |
Extends
Http
The Application Load Balancer integration resource for HTTP API.
Example
import { HttpAlbIntegration } from '@aws-cdk/aws-apigatewayv2-integrations';
declare const lb: elbv2.ApplicationLoadBalancer;
const listener = lb.addListener('listener', { port: 80 });
listener.addTargets('target', {
port: 80,
});
const httpEndpoint = new apigwv2.HttpApi(this, 'HttpProxyPrivateApi', {
defaultIntegration: new HttpAlbIntegration('DefaultIntegration', listener, {
parameterMapping: new apigwv2.ParameterMapping().custom('myKey', 'myValue'),
}),
});
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
Http
Route Integration Bind Options
Returns
Bind this integration to the route.