Interface CfnRouteProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRouteProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.223Z") @Stability(Stable) public interface CfnRouteProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnRoute.

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.*;
 Object requestModels;
 Object requestParameters;
 CfnRouteProps cfnRouteProps = CfnRouteProps.builder()
         .apiId("apiId")
         .routeKey("routeKey")
         // the properties below are optional
         .apiKeyRequired(false)
         .authorizationScopes(List.of("authorizationScopes"))
         .authorizationType("authorizationType")
         .authorizerId("authorizerId")
         .modelSelectionExpression("modelSelectionExpression")
         .operationName("operationName")
         .requestModels(requestModels)
         .requestParameters(requestParameters)
         .routeResponseSelectionExpression("routeResponseSelectionExpression")
         .target("target")
         .build();
 
  • Method Details

    • getApiId

      @Stability(Stable) @NotNull String getApiId()
      The API identifier.
    • getRouteKey

      @Stability(Stable) @NotNull String getRouteKey()
      The route key for the route.

      For HTTP APIs, the route key can be either $default , or a combination of an HTTP method and resource path, for example, GET /pets .

    • getApiKeyRequired

      @Stability(Stable) @Nullable default Object getApiKeyRequired()
      Specifies whether an API key is required for the route.

      Supported only for WebSocket APIs.

    • getAuthorizationScopes

      @Stability(Stable) @Nullable default List<String> getAuthorizationScopes()
      The authorization scopes supported by this route.
    • getAuthorizationType

      @Stability(Stable) @Nullable default String getAuthorizationType()
      The authorization type for the route.

      For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer. For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.

    • getAuthorizerId

      @Stability(Stable) @Nullable default String getAuthorizerId()
      The identifier of the Authorizer resource to be associated with this route.

      The authorizer identifier is generated by API Gateway when you created the authorizer.

    • getModelSelectionExpression

      @Stability(Stable) @Nullable default String getModelSelectionExpression()
      The model selection expression for the route.

      Supported only for WebSocket APIs.

    • getOperationName

      @Stability(Stable) @Nullable default String getOperationName()
      The operation name for the route.
    • getRequestModels

      @Stability(Stable) @Nullable default Object getRequestModels()
      The request models for the route.

      Supported only for WebSocket APIs.

    • getRequestParameters

      @Stability(Stable) @Nullable default Object getRequestParameters()
      The request parameters for the route.

      Supported only for WebSocket APIs.

    • getRouteResponseSelectionExpression

      @Stability(Stable) @Nullable default String getRouteResponseSelectionExpression()
      The route response selection expression for the route.

      Supported only for WebSocket APIs.

    • getTarget

      @Stability(Stable) @Nullable default String getTarget()
      The target for the route.
    • builder

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