Class HttpLambdaIntegrationProps.Builder
java.lang.Object
software.amazon.awscdk.aws_apigatewayv2_integrations.HttpLambdaIntegrationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpLambdaIntegrationProps>
- Enclosing interface:
HttpLambdaIntegrationProps
@Stability(Stable)
public static final class HttpLambdaIntegrationProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpLambdaIntegrationProps>
A builder for
HttpLambdaIntegrationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.parameterMapping(ParameterMapping parameterMapping) Sets the value ofHttpLambdaIntegrationProps.getParameterMapping()payloadFormatVersion(PayloadFormatVersion payloadFormatVersion) Sets the value ofHttpLambdaIntegrationProps.getPayloadFormatVersion()scopePermissionToRoute(Boolean scopePermissionToRoute) Sets the value ofHttpLambdaIntegrationProps.getScopePermissionToRoute()Sets the value ofHttpLambdaIntegrationProps.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
parameterMapping
@Stability(Stable) public HttpLambdaIntegrationProps.Builder parameterMapping(ParameterMapping parameterMapping) Sets the value ofHttpLambdaIntegrationProps.getParameterMapping()- Parameters:
parameterMapping- Specifies how to transform HTTP requests before sending them to the backend.- Returns:
this
-
payloadFormatVersion
@Stability(Stable) public HttpLambdaIntegrationProps.Builder payloadFormatVersion(PayloadFormatVersion payloadFormatVersion) Sets the value ofHttpLambdaIntegrationProps.getPayloadFormatVersion()- Parameters:
payloadFormatVersion- Version of the payload sent to the lambda handler.- Returns:
this
-
scopePermissionToRoute
@Stability(Stable) public HttpLambdaIntegrationProps.Builder scopePermissionToRoute(Boolean scopePermissionToRoute) Sets the value ofHttpLambdaIntegrationProps.getScopePermissionToRoute()- Parameters:
scopePermissionToRoute- Scope the permission for invoking the AWS Lambda down to the specific route associated with this integration. If this is set tofalse, the permission will allow invoking the AWS Lambda from any route. This is useful for reducing the AWS Lambda policy size for cases where the same AWS Lambda function is reused for many integrations.- Returns:
this
-
timeout
Sets the value ofHttpLambdaIntegrationProps.getTimeout()- Parameters:
timeout- The maximum amount of time an integration will run before it returns without a response. Must be between 50 milliseconds and 29 seconds.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpLambdaIntegrationProps>- Returns:
- a new instance of
HttpLambdaIntegrationProps - Throws:
NullPointerException- if any required attribute was not provided
-