Class CognitoAuthorizerProps.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.openapigateway.CognitoAuthorizerProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CognitoAuthorizerProps>
- Enclosing interface:
- CognitoAuthorizerProps
@Stability(Experimental) public static final class CognitoAuthorizerProps.Builder extends Object implements software.amazon.jsii.Builder<CognitoAuthorizerProps>
A builder forCognitoAuthorizerProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CognitoAuthorizerProps.BuilderauthorizationScopes(List<String> authorizationScopes)Sets the value ofCognitoAuthorizerProps.getAuthorizationScopes()CognitoAuthorizerProps.BuilderauthorizerId(String authorizerId)Sets the value ofCognitoAuthorizerProps.getAuthorizerId()CognitoAuthorizerPropsbuild()Builds the configured instance.CognitoAuthorizerProps.BuilderuserPools(List<? extends software.amazon.awscdk.services.cognito.IUserPool> userPools)Sets the value ofCognitoAuthorizerProps.getUserPools()
-
-
-
Method Detail
-
authorizerId
@Stability(Experimental) public CognitoAuthorizerProps.Builder authorizerId(String authorizerId)
Sets the value ofCognitoAuthorizerProps.getAuthorizerId()- Parameters:
authorizerId- Unique identifier for this authorizer. This parameter is required.- Returns:
this
-
userPools
@Stability(Experimental) public CognitoAuthorizerProps.Builder userPools(List<? extends software.amazon.awscdk.services.cognito.IUserPool> userPools)
Sets the value ofCognitoAuthorizerProps.getUserPools()- Parameters:
userPools- The Cognito user pools associated with this authorizer. This parameter is required.- Returns:
this
-
authorizationScopes
@Stability(Experimental) public CognitoAuthorizerProps.Builder authorizationScopes(List<String> authorizationScopes)
Sets the value ofCognitoAuthorizerProps.getAuthorizationScopes()- Parameters:
authorizationScopes- A list of authorization scopes configured on the method. When used as the default authorizer, these scopes will be applied to all methods without an authorizer at the integration level.- Returns:
this
-
build
@Stability(Experimental) public CognitoAuthorizerProps build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CognitoAuthorizerProps>- Returns:
- a new instance of
CognitoAuthorizerProps - Throws:
NullPointerException- if any required attribute was not provided
-
-