Class HttpUrlIntegration
(experimental) The HTTP Proxy integration resource for HTTP API.
Inherited Members
Namespace: Amazon.CDK.AWS.APIGatewayv2.Integrations
Assembly: Amazon.CDK.AWS.APIGatewayv2.Integrations.dll
Syntax (csharp)
public class HttpUrlIntegration : HttpRouteIntegration
Syntax (vb)
Public Class HttpUrlIntegration
Inherits HttpRouteIntegration
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.APIGatewayv2.Authorizers;
using Amazon.CDK.AWS.APIGatewayv2.Integrations;
// This function handles your auth logic
Function authHandler;
var authorizer = new HttpLambdaAuthorizer("BooksAuthorizer", authHandler, new HttpLambdaAuthorizerProps {
ResponseTypes = new [] { HttpLambdaResponseType.SIMPLE }
});
var api = new HttpApi(this, "HttpApi");
api.AddRoutes(new AddRoutesOptions {
Integration = new HttpUrlIntegration("BooksIntegration", "https://get-books-proxy.myproxy.internal"),
Path = "/books",
Authorizer = authorizer
});
Synopsis
Constructors
HttpUrlIntegration(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
HttpUrlIntegration(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
HttpUrlIntegration(String, String, IHttpUrlIntegrationProps) |
Methods
Bind(IHttpRouteIntegrationBindOptions) | (experimental) Bind this integration to the route. |
Constructors
HttpUrlIntegration(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected HttpUrlIntegration(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
HttpUrlIntegration(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected HttpUrlIntegration(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
HttpUrlIntegration(String, String, IHttpUrlIntegrationProps)
public HttpUrlIntegration(string id, string url, IHttpUrlIntegrationProps props = null)
Parameters
- id System.String
id of the underlying integration construct.
- url System.String
the URL to proxy to.
- props IHttpUrlIntegrationProps
properties to configure the integration.
Remarks
Stability: Experimental
Methods
Bind(IHttpRouteIntegrationBindOptions)
(experimental) Bind this integration to the route.
public override IHttpRouteIntegrationConfig Bind(IHttpRouteIntegrationBindOptions _)
Parameters
Returns
Overrides
Remarks
Stability: Experimental