Class WebSocketAuthorizer.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.WebSocketAuthorizer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WebSocketAuthorizer>
- Enclosing class:
WebSocketAuthorizer
@Stability(Stable)
public static final class WebSocketAuthorizer.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketAuthorizer>
A fluent builder for
WebSocketAuthorizer
.-
Method Summary
Modifier and TypeMethodDescriptionauthorizerName
(String authorizerName) Name of the authorizer.authorizerUri
(String authorizerUri) The authorizer's Uniform Resource Identifier (URI).build()
static WebSocketAuthorizer.Builder
identitySource
(List<String> identitySource) The identity source for which authorization is requested.type
(WebSocketAuthorizerType type) The type of authorizer.webSocketApi
(IWebSocketApi webSocketApi) WebSocket Api to attach the authorizer to.
-
Method Details
-
create
@Stability(Stable) public static WebSocketAuthorizer.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
WebSocketAuthorizer.Builder
.
-
identitySource
The identity source for which authorization is requested.- Parameters:
identitySource
- The identity source for which authorization is requested. This parameter is required.- Returns:
this
- See Also:
-
type
The type of authorizer.- Parameters:
type
- The type of authorizer. This parameter is required.- Returns:
this
-
webSocketApi
WebSocket Api to attach the authorizer to.- Parameters:
webSocketApi
- WebSocket Api to attach the authorizer to. This parameter is required.- Returns:
this
-
authorizerName
Name of the authorizer.Default: - id of the WebSocketAuthorizer construct.
- Parameters:
authorizerName
- Name of the authorizer. This parameter is required.- Returns:
this
-
authorizerUri
The authorizer's Uniform Resource Identifier (URI).For REQUEST authorizers, this must be a well-formed Lambda function URI.
Default: - required for Request authorizer types
- Parameters:
authorizerUri
- The authorizer's Uniform Resource Identifier (URI). This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<WebSocketAuthorizer>
- Returns:
- a newly built instance of
WebSocketAuthorizer
.
-