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.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.341Z") @Stability(Experimental) public class WebSocketApiKeySelectionExpression extends software.amazon.jsii.JsiiObject
(experimental) 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(Experimental) public static final WebSocketApiKeySelectionExpression AUTHORIZER_USAGE_IDENTIFIER_KEY
      (experimental) 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(Experimental) public static final WebSocketApiKeySelectionExpression HEADER_X_API_KEY
      (experimental) 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(Experimental) public WebSocketApiKeySelectionExpression(@NotNull String customApiKeySelector)
      Parameters:
      customApiKeySelector - The expression used by API Gateway. This parameter is required.
  • Method Details

    • getCustomApiKeySelector

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