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(Experimental)
public static final class WebSocketAuthorizer.Builder
extends Object
implements software.amazon.jsii.Builder<WebSocketAuthorizer>
(experimental) A fluent builder for
WebSocketAuthorizer.-
Method Summary
Modifier and TypeMethodDescriptionauthorizerName(String authorizerName) (experimental) Name of the authorizer.authorizerUri(String authorizerUri) (experimental) The authorizer's Uniform Resource Identifier (URI).build()static WebSocketAuthorizer.BuilderidentitySource(List<String> identitySource) (experimental) The identity source for which authorization is requested.type(WebSocketAuthorizerType type) (experimental) The type of authorizer.webSocketApi(IWebSocketApi webSocketApi) (experimental) WebSocket Api to attach the authorizer to.
-
Method Details
-
create
@Stability(Experimental) 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
@Stability(Experimental) public WebSocketAuthorizer.Builder identitySource(List<String> identitySource) (experimental) 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
(experimental) The type of authorizer.- Parameters:
type- The type of authorizer. This parameter is required.- Returns:
this
-
webSocketApi
@Stability(Experimental) public WebSocketAuthorizer.Builder webSocketApi(IWebSocketApi webSocketApi) (experimental) WebSocket Api to attach the authorizer to.- Parameters:
webSocketApi- WebSocket Api to attach the authorizer to. This parameter is required.- Returns:
this
-
authorizerName
(experimental) Name of the authorizer.Default: - id of the WebSocketAuthorizer construct.
- Parameters:
authorizerName- Name of the authorizer. This parameter is required.- Returns:
this
-
authorizerUri
(experimental) 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:
buildin interfacesoftware.amazon.jsii.Builder<WebSocketAuthorizer>- Returns:
- a newly built instance of
WebSocketAuthorizer.
-