Show / Hide Table of Contents

Class IntegrationType

Inheritance
System.Object
IntegrationType
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class IntegrationType : Enum
Syntax (vb)
Public NotInheritable Class IntegrationType
    Inherits

     Enum
Remarks

ExampleMetadata: infused

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
    }
});

Synopsis

Fields

AWS

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

AWS_PROXY

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

HTTP

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

HTTP_PROXY

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

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

value__

Fields

AWS

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

public const IntegrationType AWS
Field Value
Type Description
IntegrationType
Remarks

With the Lambda function-invoking action, this is referred to as the Lambda custom integration. With any other AWS service action, this is known as AWS integration.

AWS_PROXY

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

public const IntegrationType AWS_PROXY
Field Value
Type Description
IntegrationType
Remarks

This integration is also referred to as the Lambda proxy integration

HTTP

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

public const IntegrationType HTTP
Field Value
Type Description
IntegrationType
Remarks

This integration is also referred to as the HTTP custom integration.

HTTP_PROXY

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.

public const IntegrationType HTTP_PROXY
Field Value
Type Description
IntegrationType
Remarks

This is also referred to as the HTTP proxy integration

MOCK

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

public const IntegrationType MOCK
Field Value
Type Description
IntegrationType

value__

public int value__
Field Value
Type Description
System.Int32
Back to top Generated by DocFX