@Stability(value=Experimental) public static final class UserPoolClient.Builder extends Object implements software.amazon.jsii.Builder<UserPoolClient>
UserPoolClient.| Modifier and Type | Method and Description |
|---|---|
UserPoolClient.Builder |
authFlows(AuthFlow authFlows)
(experimental) The set of OAuth authentication flows to enable on the client.
|
UserPoolClient |
build() |
static UserPoolClient.Builder |
create(software.constructs.Construct scope,
String id) |
UserPoolClient.Builder |
disableOAuth(Boolean disableOAuth)
(experimental) Turns off all OAuth interactions for this client.
|
UserPoolClient.Builder |
generateSecret(Boolean generateSecret)
(experimental) Whether to generate a client secret.
|
UserPoolClient.Builder |
oAuth(OAuthSettings oAuth)
(experimental) OAuth settings for this to client to interact with the app.
|
UserPoolClient.Builder |
preventUserExistenceErrors(Boolean preventUserExistenceErrors)
(experimental) Whether Cognito returns a UserNotFoundException exception when the user does not exist in the user pool (false), or whether it returns another type of error that doesn't reveal the user's absence.
|
UserPoolClient.Builder |
supportedIdentityProviders(List<? extends UserPoolClientIdentityProvider> supportedIdentityProviders)
(experimental) The list of identity providers that users should be able to use to sign in using this client.
|
UserPoolClient.Builder |
userPool(IUserPool userPool)
(experimental) The UserPool resource this client will have access to.
|
UserPoolClient.Builder |
userPoolClientName(String userPoolClientName)
(experimental) Name of the application client.
|
@Stability(value=Experimental) public static UserPoolClient.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.UserPoolClient.Builder.@Stability(value=Experimental) public UserPoolClient.Builder authFlows(AuthFlow authFlows)
Default: - all auth flows disabled
authFlows - The set of OAuth authentication flows to enable on the client. This parameter is required.thishttps://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html@Stability(value=Experimental) public UserPoolClient.Builder disableOAuth(Boolean disableOAuth)
Default: false
disableOAuth - Turns off all OAuth interactions for this client. This parameter is required.this@Stability(value=Experimental) public UserPoolClient.Builder generateSecret(Boolean generateSecret)
Default: false
generateSecret - Whether to generate a client secret. This parameter is required.this@Stability(value=Experimental) public UserPoolClient.Builder oAuth(OAuthSettings oAuth)
An error is thrown when this is specified and disableOAuth is set.
Default: - see defaults in `OAuthSettings`. meaningless if `disableOAuth` is set.
oAuth - OAuth settings for this to client to interact with the app. This parameter is required.this@Stability(value=Experimental) public UserPoolClient.Builder preventUserExistenceErrors(Boolean preventUserExistenceErrors)
Default: true for new stacks
preventUserExistenceErrors - Whether Cognito returns a UserNotFoundException exception when the user does not exist in the user pool (false), or whether it returns another type of error that doesn't reveal the user's absence. This parameter is required.thishttps://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-managing-errors.html@Stability(value=Experimental) public UserPoolClient.Builder supportedIdentityProviders(List<? extends UserPoolClientIdentityProvider> supportedIdentityProviders)
Default: - supports all identity providers that are registered with the user pool. If the user pool and/or identity providers are imported, either specify this option explicitly or ensure that the identity providers are registered with the user pool using the `UserPool.registerIdentityProvider()` API.
supportedIdentityProviders - The list of identity providers that users should be able to use to sign in using this client. This parameter is required.this@Stability(value=Experimental) public UserPoolClient.Builder userPoolClientName(String userPoolClientName)
Default: - cloudformation generated name
userPoolClientName - Name of the application client. This parameter is required.this@Stability(value=Experimental) public UserPoolClient.Builder userPool(IUserPool userPool)
userPool - The UserPool resource this client will have access to. This parameter is required.this@Stability(value=Experimental) public UserPoolClient build()
build in interface software.amazon.jsii.Builder<UserPoolClient>Copyright © 2020. All rights reserved.