enum ConnectionType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.APIGateway.ConnectionType |
Java | software.amazon.awscdk.services.apigateway.ConnectionType |
Python | aws_cdk.aws_apigateway.ConnectionType |
TypeScript (source) | @aws-cdk/aws-apigateway » ConnectionType |
Example
import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';
const vpc = new ec2.Vpc(this, 'VPC');
const nlb = new elbv2.NetworkLoadBalancer(this, 'NLB', {
vpc,
});
const link = new apigateway.VpcLink(this, 'link', {
targets: [nlb],
});
const integration = new apigateway.Integration({
type: apigateway.IntegrationType.HTTP_PROXY,
options: {
connectionType: apigateway.ConnectionType.VPC_LINK,
vpcLink: link,
},
});
Members
Name | Description |
---|---|
INTERNET | For connections through the public routable internet. |
VPC_LINK | For private connections between API Gateway and a network load balancer in a VPC. |
INTERNET
For connections through the public routable internet.
VPC_LINK
For private connections between API Gateway and a network load balancer in a VPC.