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();
-
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
(experimental) The API will extract the key value from theusageIdentifierKey
attribute in thecontext
map, returned by the Lambda Authorizer.static final WebSocketApiKeySelectionExpression
(experimental) 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 TypeMethodDescription(experimental) The 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(Experimental) public static final WebSocketApiKeySelectionExpression AUTHORIZER_USAGE_IDENTIFIER_KEY(experimental) The 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
(experimental) 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
@Stability(Experimental) public WebSocketApiKeySelectionExpression(@NotNull String customApiKeySelector) - Parameters:
customApiKeySelector
- The expression used by API Gateway. This parameter is required.
-
-
Method Details
-
getCustomApiKeySelector
(experimental) The expression used by API Gateway.
-