Class CfnGraphQLApiPropsMixin.UserPoolConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.appsync.mixins.CfnGraphQLApiPropsMixin.UserPoolConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGraphQLApiPropsMixin.UserPoolConfigProperty>
- Enclosing interface:
CfnGraphQLApiPropsMixin.UserPoolConfigProperty
@Stability(Stable)
public static final class CfnGraphQLApiPropsMixin.UserPoolConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGraphQLApiPropsMixin.UserPoolConfigProperty>
A builder for
CfnGraphQLApiPropsMixin.UserPoolConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappIdClientRegex(String appIdClientRegex) Sets the value ofCfnGraphQLApiPropsMixin.UserPoolConfigProperty.getAppIdClientRegex()Sets the value ofCfnGraphQLApiPropsMixin.UserPoolConfigProperty.getAwsRegion()build()Builds the configured instance.defaultAction(String defaultAction) Sets the value ofCfnGraphQLApiPropsMixin.UserPoolConfigProperty.getDefaultAction()userPoolId(String userPoolId) Sets the value ofCfnGraphQLApiPropsMixin.UserPoolConfigProperty.getUserPoolId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
appIdClientRegex
@Stability(Stable) public CfnGraphQLApiPropsMixin.UserPoolConfigProperty.Builder appIdClientRegex(String appIdClientRegex) Sets the value ofCfnGraphQLApiPropsMixin.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
@Stability(Stable) public CfnGraphQLApiPropsMixin.UserPoolConfigProperty.Builder awsRegion(String awsRegion) Sets the value ofCfnGraphQLApiPropsMixin.UserPoolConfigProperty.getAwsRegion()- Parameters:
awsRegion- The AWS Region in which the user pool was created.- Returns:
this
-
defaultAction
@Stability(Stable) public CfnGraphQLApiPropsMixin.UserPoolConfigProperty.Builder defaultAction(String defaultAction) Sets the value ofCfnGraphQLApiPropsMixin.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 forDefaultActiontoALLOWif specifyingAdditionalAuthenticationProviders.- Returns:
this
-
userPoolId
@Stability(Stable) public CfnGraphQLApiPropsMixin.UserPoolConfigProperty.Builder userPoolId(String userPoolId) Sets the value ofCfnGraphQLApiPropsMixin.UserPoolConfigProperty.getUserPoolId()- Parameters:
userPoolId- The user pool ID.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGraphQLApiPropsMixin.UserPoolConfigProperty>- Returns:
- a new instance of
CfnGraphQLApiPropsMixin.UserPoolConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-