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();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WebSocketApiKeySelectionExpression
The API will extract the key value from theusageIdentifierKey
attribute in thecontext
map, returned by the Lambda Authorizer.static final WebSocketApiKeySelectionExpression
The API will extract the key value from thex-api-key
header in the user request. -
Constructor Summary
ConstructorsModifierConstructorDescriptionWebSocketApiKeySelectionExpression
(String customApiKeySelector) protected
WebSocketApiKeySelectionExpression
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
WebSocketApiKeySelectionExpression
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe expression used by API Gateway.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
AUTHORIZER_USAGE_IDENTIFIER_KEY
@Stability(Stable) public static final WebSocketApiKeySelectionExpression AUTHORIZER_USAGE_IDENTIFIER_KEYThe API will extract the key value from theusageIdentifierKey
attribute in thecontext
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
The API will extract the key value from thex-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
- Parameters:
customApiKeySelector
- The expression used by API Gateway. This parameter is required.
-
-
Method Details
-
getCustomApiKeySelector
The expression used by API Gateway.
-