interface HttpRouteProps
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.APIGatewayv2.HttpRouteProps | 
|  Java | software.amazon.awscdk.services.apigatewayv2.HttpRouteProps | 
|  Python | aws_cdk.aws_apigatewayv2.HttpRouteProps | 
|  TypeScript (source) | @aws-cdk/aws-apigatewayv2»HttpRouteProps | 
Properties to initialize a new Route.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as apigatewayv2 from '@aws-cdk/aws-apigatewayv2';
declare const httpApi: apigatewayv2.HttpApi;
declare const httpRouteAuthorizer: apigatewayv2.IHttpRouteAuthorizer;
declare const httpRouteIntegration: apigatewayv2.HttpRouteIntegration;
declare const httpRouteKey: apigatewayv2.HttpRouteKey;
const httpRouteProps: apigatewayv2.HttpRouteProps = {
  httpApi: httpApi,
  integration: httpRouteIntegration,
  routeKey: httpRouteKey,
  // the properties below are optional
  authorizationScopes: ['authorizationScopes'],
  authorizer: httpRouteAuthorizer,
};
Properties
| Name | Type | Description | 
|---|---|---|
| http | IHttp | the API the route is associated with. | 
| integration | Http | The integration to be configured on this route. | 
| route | Http | The key to this route. | 
| authorization | string[] | The list of OIDC scopes to include in the authorization. | 
| authorizer? | IHttp | Authorizer for a WebSocket API or an HTTP API. | 
httpApi
Type:
IHttp
the API the route is associated with.
integration
Type:
Http
The integration to be configured on this route.
routeKey
Type:
Http
The key to this route.
This is a combination of an HTTP method and an HTTP path.
authorizationScopes?
Type:
string[]
(optional, default: no additional authorization scopes)
The list of OIDC scopes to include in the authorization.
These scopes will be merged with the scopes from the attached authorizer
authorizer?
Type:
IHttp
(optional, default: No authorizer)
Authorizer for a WebSocket API or an HTTP API.
