Class HttpUrlIntegration.Builder
java.lang.Object
software.amazon.awscdk.aws_apigatewayv2_integrations.HttpUrlIntegration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpUrlIntegration>
- Enclosing class:
HttpUrlIntegration
@Stability(Stable)
public static final class HttpUrlIntegration.Builder
extends Object
implements software.amazon.jsii.Builder<HttpUrlIntegration>
A fluent builder for
HttpUrlIntegration.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static HttpUrlIntegration.Buildermethod(HttpMethod method) The HTTP method that must be used to invoke the underlying HTTP proxy.parameterMapping(ParameterMapping parameterMapping) Specifies how to transform HTTP requests before sending them to the backend.The maximum amount of time an integration will run before it returns without a response.
-
Method Details
-
create
- Parameters:
id- id of the underlying integration construct. This parameter is required.url- the URL to proxy to. This parameter is required.- Returns:
- a new instance of
HttpUrlIntegration.Builder.
-
method
The HTTP method that must be used to invoke the underlying HTTP proxy.Default: HttpMethod.ANY
- Parameters:
method- The HTTP method that must be used to invoke the underlying HTTP proxy. This parameter is required.- Returns:
this
-
parameterMapping
@Stability(Stable) public HttpUrlIntegration.Builder parameterMapping(ParameterMapping parameterMapping) Specifies how to transform HTTP requests before sending them to the backend.Default: undefined requests are sent to the backend unmodified
- Parameters:
parameterMapping- Specifies how to transform HTTP requests before sending them to the backend. This parameter is required.- Returns:
this- See Also:
-
timeout
The maximum amount of time an integration will run before it returns without a response.Must be between 50 milliseconds and 29 seconds.
Default: Duration.seconds(29)
- Parameters:
timeout- The maximum amount of time an integration will run before it returns without a response. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpUrlIntegration>- Returns:
- a newly built instance of
HttpUrlIntegration.
-