Class CfnGraphQLApi.UserPoolConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.CfnGraphQLApi.UserPoolConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLApi.UserPoolConfigProperty>
- Enclosing interface:
CfnGraphQLApi.UserPoolConfigProperty
@Stability(Stable)
public static final class CfnGraphQLApi.UserPoolConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraphQLApi.UserPoolConfigProperty>
A builder for
CfnGraphQLApi.UserPoolConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappIdClientRegex
(String appIdClientRegex) Sets the value ofCfnGraphQLApi.UserPoolConfigProperty.getAppIdClientRegex()
Sets the value ofCfnGraphQLApi.UserPoolConfigProperty.getAwsRegion()
build()
Builds the configured instance.defaultAction
(String defaultAction) Sets the value ofCfnGraphQLApi.UserPoolConfigProperty.getDefaultAction()
userPoolId
(String userPoolId) Sets the value ofCfnGraphQLApi.UserPoolConfigProperty.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appIdClientRegex
@Stability(Stable) public CfnGraphQLApi.UserPoolConfigProperty.Builder appIdClientRegex(String appIdClientRegex) Sets the value ofCfnGraphQLApi.UserPoolConfigProperty.getAppIdClientRegex()
- Parameters:
appIdClientRegex
- A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.- Returns:
this
-
awsRegion
Sets the value ofCfnGraphQLApi.UserPoolConfigProperty.getAwsRegion()
- Parameters:
awsRegion
- The AWS Region in which the user pool was created.- Returns:
this
-
defaultAction
@Stability(Stable) public CfnGraphQLApi.UserPoolConfigProperty.Builder defaultAction(String defaultAction) Sets the value ofCfnGraphQLApi.UserPoolConfigProperty.getDefaultAction()
- Parameters:
defaultAction
- The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool authentication doesn't match the Amazon Cognito user pool configuration. When specifying Amazon Cognito user pools as the default authentication, you must set the value forDefaultAction
toALLOW
if specifyingAdditionalAuthenticationProviders
.- Returns:
this
-
userPoolId
@Stability(Stable) public CfnGraphQLApi.UserPoolConfigProperty.Builder userPoolId(String userPoolId) Sets the value ofCfnGraphQLApi.UserPoolConfigProperty.getUserPoolId()
- Parameters:
userPoolId
- The user pool ID.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGraphQLApi.UserPoolConfigProperty>
- Returns:
- a new instance of
CfnGraphQLApi.UserPoolConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-