Interface HttpRouteProps

All Superinterfaces:
BatchHttpRouteOptions, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
HttpRouteProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:02.180Z") @Stability(Stable) public interface HttpRouteProps extends software.amazon.jsii.JsiiSerializable, BatchHttpRouteOptions
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 software.amazon.awscdk.services.apigatewayv2.*;
 HttpApi httpApi;
 IHttpRouteAuthorizer httpRouteAuthorizer;
 HttpRouteIntegration httpRouteIntegration;
 HttpRouteKey httpRouteKey;
 HttpRouteProps httpRouteProps = HttpRouteProps.builder()
         .httpApi(httpApi)
         .integration(httpRouteIntegration)
         .routeKey(httpRouteKey)
         // the properties below are optional
         .authorizationScopes(List.of("authorizationScopes"))
         .authorizer(httpRouteAuthorizer)
         .build();
 
  • Method Details

    • getHttpApi

      @Stability(Stable) @NotNull IHttpApi getHttpApi()
      the API the route is associated with.
    • getRouteKey

      @Stability(Stable) @NotNull HttpRouteKey getRouteKey()
      The key to this route.

      This is a combination of an HTTP method and an HTTP path.

    • getAuthorizationScopes

      @Stability(Stable) @Nullable default List<String> getAuthorizationScopes()
      The list of OIDC scopes to include in the authorization.

      These scopes will be merged with the scopes from the attached authorizer

      Default: - no additional authorization scopes

    • getAuthorizer

      @Stability(Stable) @Nullable default IHttpRouteAuthorizer getAuthorizer()
      Authorizer for a WebSocket API or an HTTP API.

      Default: - No authorizer

    • builder

      @Stability(Stable) static HttpRouteProps.Builder builder()
      Returns:
      a HttpRouteProps.Builder of HttpRouteProps