Class WebSocketApiKeySelectionExpression

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.WebSocketApiKeySelectionExpression
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.106.0 (build e852934)", date="2025-02-12T12:31:57.370Z") @Stability(Stable) public class WebSocketApiKeySelectionExpression extends software.amazon.jsii.JsiiObject
Represents the currently available API Key Selection Expressions.

Example:

 WebSocketApi webSocketApi = WebSocketApi.Builder.create(this, "mywsapi")
         .apiKeySelectionExpression(WebSocketApiKeySelectionExpression.HEADER_X_API_KEY)
         .build();
 
  • Field Details

    • AUTHORIZER_USAGE_IDENTIFIER_KEY

      @Stability(Stable) public static final WebSocketApiKeySelectionExpression AUTHORIZER_USAGE_IDENTIFIER_KEY
      The API will extract the key value from the usageIdentifierKey attribute in the context map, returned by the Lambda Authorizer.

      See https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html

    • HEADER_X_API_KEY

      @Stability(Stable) public static final WebSocketApiKeySelectionExpression HEADER_X_API_KEY
      The API will extract the key value from the x-api-key header in the user request.
  • Constructor Details

    • WebSocketApiKeySelectionExpression

      protected WebSocketApiKeySelectionExpression(software.amazon.jsii.JsiiObjectRef objRef)
    • WebSocketApiKeySelectionExpression

      protected WebSocketApiKeySelectionExpression(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • WebSocketApiKeySelectionExpression

      @Stability(Stable) public WebSocketApiKeySelectionExpression(@NotNull String customApiKeySelector)
      Parameters:
      customApiKeySelector - The expression used by API Gateway. This parameter is required.
  • Method Details

    • getCustomApiKeySelector

      @Stability(Stable) @NotNull public String getCustomApiKeySelector()
      The expression used by API Gateway.