Class HttpRouteAuthorizerConfig.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.HttpRouteAuthorizerConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpRouteAuthorizerConfig>
- Enclosing interface:
- HttpRouteAuthorizerConfig
@Stability(Experimental)
public static final class HttpRouteAuthorizerConfig.Builder
extends Object
implements software.amazon.jsii.Builder<HttpRouteAuthorizerConfig>
A builder for
HttpRouteAuthorizerConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationScopes
(List<String> authorizationScopes) Sets the value ofHttpRouteAuthorizerConfig.getAuthorizationScopes()
authorizationType
(String authorizationType) Sets the value ofHttpRouteAuthorizerConfig.getAuthorizationType()
authorizerId
(String authorizerId) Sets the value ofHttpRouteAuthorizerConfig.getAuthorizerId()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationType
@Stability(Experimental) public HttpRouteAuthorizerConfig.Builder authorizationType(String authorizationType) Sets the value ofHttpRouteAuthorizerConfig.getAuthorizationType()
- Parameters:
authorizationType
- The type of authorization. This parameter is required. Possible values are:- AWS_IAM - IAM Authorizer
- JWT - JSON Web Token Authorizer
- CUSTOM - Lambda Authorizer
- NONE - No Authorization
- Returns:
this
-
authorizationScopes
@Stability(Experimental) public HttpRouteAuthorizerConfig.Builder authorizationScopes(List<String> authorizationScopes) Sets the value ofHttpRouteAuthorizerConfig.getAuthorizationScopes()
- Parameters:
authorizationScopes
- The list of OIDC scopes to include in the authorization.- Returns:
this
-
authorizerId
Sets the value ofHttpRouteAuthorizerConfig.getAuthorizerId()
- Parameters:
authorizerId
- The authorizer id.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpRouteAuthorizerConfig>
- Returns:
- a new instance of
HttpRouteAuthorizerConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-