@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:46:59.873Z") @Stability(value=Experimental) public class WebSocketApiKeySelectionExpression extends software.amazon.jsii.JsiiObject
Example:
WebSocketApi webSocketApi = WebSocketApi.Builder.create(this, "mywsapi")
.apiKeySelectionExpression(WebSocketApiKeySelectionExpression.HEADER_X_API_KEY)
.build();
| Modifier and Type | Field and Description |
|---|---|
static 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.
|
static WebSocketApiKeySelectionExpression |
HEADER_X_API_KEY
(experimental) The API will extract the key value from the `x-api-key` header in the user request.
|
| Modifier | Constructor and Description |
|---|---|
protected |
WebSocketApiKeySelectionExpression(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
WebSocketApiKeySelectionExpression(software.amazon.jsii.JsiiObjectRef objRef) |
|
WebSocketApiKeySelectionExpression(String customApiKeySelector) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCustomApiKeySelector()
(experimental) The expression used by API Gateway.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Experimental) public static final WebSocketApiKeySelectionExpression AUTHORIZER_USAGE_IDENTIFIER_KEY
See https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html
@Stability(value=Experimental) public static final WebSocketApiKeySelectionExpression HEADER_X_API_KEY
protected WebSocketApiKeySelectionExpression(software.amazon.jsii.JsiiObjectRef objRef)
protected WebSocketApiKeySelectionExpression(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public WebSocketApiKeySelectionExpression(@NotNull
String customApiKeySelector)
customApiKeySelector - The expression used by API Gateway. This parameter is required.@Stability(value=Experimental) @NotNull public String getCustomApiKeySelector()
Copyright © 2022. All rights reserved.