Table of Contents

Enum IntegrationType

Namespace
Amazon.CDK.AWS.APIGateway
Assembly
Amazon.CDK.AWS.APIGateway.dll
public enum IntegrationType

Fields

AWS = 0

For integrating the API method request with an AWS service action, including the Lambda function-invoking action.

AWS_PROXY = 1

For integrating the API method request with the Lambda function-invoking action with the client request passed through as-is.

HTTP = 2

For integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC.

HTTP_PROXY = 3

For integrating the API method request with an HTTP endpoint, including a private HTTP endpoint within a VPC, with the client request passed through as-is.

MOCK = 4

For integrating the API method request with API Gateway as a "loop-back" endpoint without invoking any backend.

Examples

using Amazon.CDK.AWS.ElasticLoadBalancingV2;


            var vpc = new Vpc(this, "VPC");
            var nlb = new NetworkLoadBalancer(this, "NLB", new NetworkLoadBalancerProps {
                Vpc = vpc
            });
            var link = new VpcLink(this, "link", new VpcLinkProps {
                Targets = new [] { nlb }
            });

            var integration = new Integration(new IntegrationProps {
                Type = IntegrationType.HTTP_PROXY,
                Options = new IntegrationOptions {
                    ConnectionType = ConnectionType.VPC_LINK,
                    VpcLink = link
                }
            });

Remarks

ExampleMetadata: infused