Class WebSocketLambdaAuthorizerProps.Builder
java.lang.Object
software.amazon.awscdk.aws_apigatewayv2_authorizers.WebSocketLambdaAuthorizerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketLambdaAuthorizerProps>
- Enclosing interface:
WebSocketLambdaAuthorizerProps
@Stability(Stable)
public static final class WebSocketLambdaAuthorizerProps.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketLambdaAuthorizerProps>
A builder for
WebSocketLambdaAuthorizerProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizerName
(String authorizerName) Sets the value ofWebSocketLambdaAuthorizerProps.getAuthorizerName()
build()
Builds the configured instance.identitySource
(List<String> identitySource) Sets the value ofWebSocketLambdaAuthorizerProps.getIdentitySource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizerName
@Stability(Stable) public WebSocketLambdaAuthorizerProps.Builder authorizerName(String authorizerName) Sets the value ofWebSocketLambdaAuthorizerProps.getAuthorizerName()
- Parameters:
authorizerName
- The name of the authorizer.- Returns:
this
-
identitySource
@Stability(Stable) public WebSocketLambdaAuthorizerProps.Builder identitySource(List<String> identitySource) Sets the value ofWebSocketLambdaAuthorizerProps.getIdentitySource()
- Parameters:
identitySource
- The identity source for which authorization is requested. Request parameter match'route.request.querystring|header.[a-zA-z0-9._-]+'
. Staged variable match'stageVariables.[a-zA-Z0-9._-]+'
. Context parameter match'context.[a-zA-Z0-9._-]+'
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<WebSocketLambdaAuthorizerProps>
- Returns:
- a new instance of
WebSocketLambdaAuthorizerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-