Interface LambdaRestApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,ResourceOptions,RestApiBaseProps,RestApiProps
- All Known Implementing Classes:
LambdaRestApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:30.336Z")
@Stability(Stable)
public interface LambdaRestApiProps
extends software.amazon.jsii.JsiiSerializable, RestApiProps
Example:
Queue sourceQueue;
Function fn = Function.Builder.create(this, "MyFunc")
.handler("index.handler")
.runtime(Runtime.NODEJS_LATEST)
.code(Code.fromInline("exports.handler = e => {}"))
.build();
LambdaRestApi restApi = LambdaRestApi.Builder.create(this, "MyRestAPI").handler(fn).build();
ApiGatewayTarget apiTarget = new ApiGatewayTarget(restApi);
Pipe pipe = Pipe.Builder.create(this, "Pipe")
.source(new SqsSource(sourceQueue))
.target(apiTarget)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLambdaRestApiPropsstatic final classAn implementation forLambdaRestApiProps -
Method Summary
Modifier and TypeMethodDescriptionstatic LambdaRestApiProps.Builderbuilder()The default Lambda function that handles all requests from this API.default LambdaIntegrationOptionsSpecific Lambda integration options.default BooleangetProxy()If true, route all requests to the Lambda Function.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.apigateway.ResourceOptions
getDefaultCorsPreflightOptions, getDefaultIntegration, getDefaultMethodOptionsMethods inherited from interface software.amazon.awscdk.services.apigateway.RestApiBaseProps
getCloudWatchRole, getCloudWatchRoleRemovalPolicy, getDeploy, getDeployOptions, getDescription, getDisableExecuteApiEndpoint, getDomainName, getEndpointConfiguration, getEndpointExportName, getEndpointTypes, getFailOnWarnings, getParameters, getPolicy, getRestApiName, getRetainDeploymentsMethods inherited from interface software.amazon.awscdk.services.apigateway.RestApiProps
getApiKeySourceType, getBinaryMediaTypes, getCloneFrom, getMinCompressionSize, getMinimumCompressionSize
-
Method Details
-
getHandler
The default Lambda function that handles all requests from this API.This handler will be used as a the default integration for all methods in this API, unless specified otherwise in
addMethod. -
getIntegrationOptions
Specific Lambda integration options.Default: see defaults defined in `LambdaIntegrationOptions`.
-
getProxy
If true, route all requests to the Lambda Function.If set to false, you will need to explicitly define the API model using
addResourceandaddMethod(oraddProxy).Default: true
-
builder
- Returns:
- a
LambdaRestApiProps.BuilderofLambdaRestApiProps
-