Class UserPoolConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.UserPoolConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolConfig>
- Enclosing interface:
UserPoolConfig
@Stability(Stable)
public static final class UserPoolConfig.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolConfig>
A builder for
UserPoolConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappIdClientRegex
(String appIdClientRegex) Sets the value ofUserPoolConfig.getAppIdClientRegex()
build()
Builds the configured instance.defaultAction
(UserPoolDefaultAction defaultAction) Sets the value ofUserPoolConfig.getDefaultAction()
Sets the value ofUserPoolConfig.getUserPool()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userPool
Sets the value ofUserPoolConfig.getUserPool()
- Parameters:
userPool
- The Cognito user pool to use as identity source. This parameter is required.- Returns:
this
-
appIdClientRegex
Sets the value ofUserPoolConfig.getAppIdClientRegex()
- Parameters:
appIdClientRegex
- the optional app id regex.- Returns:
this
-
defaultAction
Sets the value ofUserPoolConfig.getDefaultAction()
- Parameters:
defaultAction
- Default auth action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolConfig>
- Returns:
- a new instance of
UserPoolConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-