Interface LambdaIntegrationOptions
- All Superinterfaces:
IntegrationOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LambdaIntegrationOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:09:57.867Z")
@Stability(Stable)
public interface LambdaIntegrationOptions
extends software.amazon.jsii.JsiiSerializable, IntegrationOptions
Example:
Resource book;
Function backend;
LambdaIntegration getBookIntegration = LambdaIntegration.Builder.create(backend)
.scopePermissionToMethod(false)
.build();
LambdaIntegration createBookIntegration = LambdaIntegration.Builder.create(backend)
.scopePermissionToMethod(false)
.build();
book.addMethod("GET", getBookIntegration);
book.addMethod("POST", createBookIntegration);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLambdaIntegrationOptionsstatic final classAn implementation forLambdaIntegrationOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanAllow invoking method from AWS Console UI (for testing purposes).default BooleangetProxy()Use proxy integration or normal (request/response mapping) integration.default BooleanScope the permission for invoking the AWS Lambda down to the specific method associated with this integration.Methods inherited from interface software.amazon.awscdk.services.apigateway.IntegrationOptions
getCacheKeyParameters, getCacheNamespace, getConnectionType, getContentHandling, getCredentialsPassthrough, getCredentialsRole, getIntegrationResponses, getPassthroughBehavior, getRequestParameters, getRequestTemplates, getTimeout, getVpcLinkMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowTestInvoke
Allow invoking method from AWS Console UI (for testing purposes).This will add another permission to the AWS Lambda resource policy which will allow the
test-invoke-stagestage to invoke this handler. If this is set tofalse, the function will only be usable from the deployment endpoint.Note that this property is ignored when
scopePermissionToMethodisfalse.Default: true
-
getProxy
Use proxy integration or normal (request/response mapping) integration.Default: true
- See Also:
-
getScopePermissionToMethod
Scope the permission for invoking the AWS Lambda down to the specific method associated with this integration.If this is set to
false, the permission will allow invoking the AWS Lambda from any method. This is useful for reducing the AWS Lambda policy size for cases where the same AWS Lambda function is reused for many integrations.Note that this will always allow test invocations.
Default: true
-
builder
- Returns:
- a
LambdaIntegrationOptions.BuilderofLambdaIntegrationOptions
-