Class HttpUrlIntegration
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegration
software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.690Z")
@Stability(Experimental)
public class HttpUrlIntegration
extends HttpRouteIntegration
(experimental) The HTTP Proxy integration resource for HTTP API.
Example:
import software.amazon.awscdk.services.apigatewayv2.authorizers.HttpLambdaAuthorizer; import software.amazon.awscdk.services.apigatewayv2.authorizers.HttpLambdaResponseType; import software.amazon.awscdk.services.apigatewayv2.integrations.HttpUrlIntegration; // This function handles your auth logic Function authHandler; HttpLambdaAuthorizer authorizer = HttpLambdaAuthorizer.Builder.create("BooksAuthorizer", authHandler) .responseTypes(List.of(HttpLambdaResponseType.SIMPLE)) .build(); HttpApi api = new HttpApi(this, "HttpApi"); api.addRoutes(AddRoutesOptions.builder() .integration(new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.myproxy.internal")) .path("/books") .authorizer(authorizer) .build());
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forHttpUrlIntegration
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionHttpUrlIntegration
(String id, String url) HttpUrlIntegration
(String id, String url, HttpUrlIntegrationProps props) protected
HttpUrlIntegration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HttpUrlIntegration
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescription(experimental) Bind this integration to the route.Methods inherited from class software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegration
completeBind
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
HttpUrlIntegration
protected HttpUrlIntegration(software.amazon.jsii.JsiiObjectRef objRef) -
HttpUrlIntegration
protected HttpUrlIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
HttpUrlIntegration
@Stability(Experimental) public HttpUrlIntegration(@NotNull String id, @NotNull String url, @Nullable HttpUrlIntegrationProps props) - Parameters:
id
- id of the underlying integration construct. This parameter is required.url
- the URL to proxy to. This parameter is required.props
- properties to configure the integration.
-
HttpUrlIntegration
- Parameters:
id
- id of the underlying integration construct. This parameter is required.url
- the URL to proxy to. This parameter is required.
-
-
Method Details
-
bind
@Stability(Experimental) @NotNull public HttpRouteIntegrationConfig bind(@NotNull HttpRouteIntegrationBindOptions __) (experimental) Bind this integration to the route.- Specified by:
bind
in classHttpRouteIntegration
- Parameters:
__
- This parameter is required._
- This parameter is required.
-