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(Stable)
public static final class WebSocketAuthorizerProps.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketAuthorizerProps>
A builder for
WebSocketAuthorizerProps
-
Constructor Summary
-
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(Stable) 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
Sets the value ofWebSocketAuthorizerProps.getWebSocketApi()
- Parameters:
webSocketApi
- WebSocket Api to attach the authorizer to. This parameter is required.- Returns:
this
-
authorizerName
Sets the value ofWebSocketAuthorizerProps.getAuthorizerName()
- Parameters:
authorizerName
- Name of the authorizer.- Returns:
this
-
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:
build
in interfacesoftware.amazon.jsii.Builder<WebSocketAuthorizerProps>
- Returns:
- a new instance of
WebSocketAuthorizerProps
- Throws:
NullPointerException
- if any required attribute was not provided
-