Show / Hide Table of Contents

Interface ILambdaIntegrationOptions

Inherited Members
IIntegrationOptions.CacheKeyParameters
IIntegrationOptions.CacheNamespace
IIntegrationOptions.ConnectionType
IIntegrationOptions.ContentHandling
IIntegrationOptions.CredentialsPassthrough
IIntegrationOptions.CredentialsRole
IIntegrationOptions.IntegrationResponses
IIntegrationOptions.PassthroughBehavior
IIntegrationOptions.RequestParameters
IIntegrationOptions.RequestTemplates
IIntegrationOptions.Timeout
IIntegrationOptions.VpcLink
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ILambdaIntegrationOptions : IIntegrationOptions
Syntax (vb)
Public Interface ILambdaIntegrationOptions
    Inherits IIntegrationOptions
Remarks

ExampleMetadata: infused

Examples
Function backend;


var api = new LambdaRestApi(this, "myapi", new LambdaRestApiProps {
    Handler = backend,
    IntegrationOptions = new LambdaIntegrationOptions {
        AllowTestInvoke = false,
        Timeout = Duration.Seconds(1)
    }
});

Synopsis

Properties

AllowTestInvoke

Allow invoking method from AWS Console UI (for testing purposes).

Proxy

Use proxy integration or normal (request/response mapping) integration.

Properties

AllowTestInvoke

Allow invoking method from AWS Console UI (for testing purposes).

virtual Nullable<bool> AllowTestInvoke { get; }
Property Value

System.Nullable<System.Boolean>

Remarks

This will add another permission to the AWS Lambda resource policy which will allow the test-invoke-stage stage to invoke this handler. If this is set to false, the function will only be usable from the deployment endpoint.

Default: true

Proxy

Use proxy integration or normal (request/response mapping) integration.

virtual Nullable<bool> Proxy { get; }
Property Value

System.Nullable<System.Boolean>

Remarks

Default: true

See: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format

Back to top Generated by DocFX