@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-14T20:30:54.625Z") @Stability(value=Experimental) public class HttpUrlIntegration extends HttpRouteIntegration
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());
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpUrlIntegration.Builder
(experimental) A fluent builder for
HttpUrlIntegration. |
| Modifier | Constructor and Description |
|---|---|
protected |
HttpUrlIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HttpUrlIntegration(software.amazon.jsii.JsiiObjectRef objRef) |
|
HttpUrlIntegration(String id,
String url) |
|
HttpUrlIntegration(String id,
String url,
HttpUrlIntegrationProps props) |
| Modifier and Type | Method and Description |
|---|---|
HttpRouteIntegrationConfig |
bind(HttpRouteIntegrationBindOptions _)
(experimental) Bind this integration to the route.
|
completeBindjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected HttpUrlIntegration(software.amazon.jsii.JsiiObjectRef objRef)
protected HttpUrlIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public HttpUrlIntegration(@NotNull
String id,
@NotNull
String url,
@Nullable
HttpUrlIntegrationProps props)
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.@Stability(value=Experimental) @NotNull public HttpRouteIntegrationConfig bind(@NotNull HttpRouteIntegrationBindOptions _)
bind in class HttpRouteIntegration_ - This parameter is required.Copyright © 2022. All rights reserved.