Class WebSocketAuthorizerProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketAuthorizerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketAuthorizerProps>
- Enclosing interface:
- WebSocketAuthorizerProps
@Stability(Experimental)
public static final class WebSocketAuthorizerProps.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketAuthorizerProps>
A builder for
WebSocketAuthorizerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizerName(String authorizerName) Sets the value ofWebSocketAuthorizerProps.getAuthorizerName()authorizerUri(String authorizerUri) Sets the value ofWebSocketAuthorizerProps.getAuthorizerUri()build()Builds the configured instance.identitySource(List<String> identitySource) Sets the value ofWebSocketAuthorizerProps.getIdentitySource()type(WebSocketAuthorizerType type) Sets the value ofWebSocketAuthorizerProps.getType()webSocketApi(IWebSocketApi webSocketApi) Sets the value ofWebSocketAuthorizerProps.getWebSocketApi()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identitySource
@Stability(Experimental) public WebSocketAuthorizerProps.Builder identitySource(List<String> identitySource) Sets the value ofWebSocketAuthorizerProps.getIdentitySource()- Parameters:
identitySource- The identity source for which authorization is requested. This parameter is required.- Returns:
this
-
type
Sets the value ofWebSocketAuthorizerProps.getType()- Parameters:
type- The type of authorizer. This parameter is required.- Returns:
this
-
webSocketApi
@Stability(Experimental) public WebSocketAuthorizerProps.Builder webSocketApi(IWebSocketApi webSocketApi) Sets the value ofWebSocketAuthorizerProps.getWebSocketApi()- Parameters:
webSocketApi- WebSocket Api to attach the authorizer to. This parameter is required.- Returns:
this
-
authorizerName
@Stability(Experimental) public WebSocketAuthorizerProps.Builder authorizerName(String authorizerName) Sets the value ofWebSocketAuthorizerProps.getAuthorizerName()- Parameters:
authorizerName- Name of the authorizer.- Returns:
this
-
authorizerUri
@Stability(Experimental) public WebSocketAuthorizerProps.Builder authorizerUri(String authorizerUri) Sets the value ofWebSocketAuthorizerProps.getAuthorizerUri()- Parameters:
authorizerUri- The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, this must be a well-formed Lambda function URI.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WebSocketAuthorizerProps>- Returns:
- a new instance of
WebSocketAuthorizerProps - Throws:
NullPointerException- if any required attribute was not provided
-