@Stability(value=Stable) public static final class UserPoolClientProps.Builder extends Object implements software.amazon.jsii.Builder<UserPoolClientProps>
UserPoolClientProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public UserPoolClientProps.Builder userPool(IUserPool userPool)
UserPoolClientProps.getUserPool()userPool - The UserPool resource this client will have access to. This parameter is required.this@Stability(value=Stable) public UserPoolClientProps.Builder accessTokenValidity(Duration accessTokenValidity)
UserPoolClientOptions.getAccessTokenValidity()accessTokenValidity - Validity of the access token.
Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity.this@Stability(value=Stable) public UserPoolClientProps.Builder authFlows(AuthFlow authFlows)
UserPoolClientOptions.getAuthFlows()authFlows - The set of OAuth authentication flows to enable on the client.this@Stability(value=Stable) public UserPoolClientProps.Builder disableOAuth(Boolean disableOAuth)
UserPoolClientOptions.getDisableOAuth()disableOAuth - Turns off all OAuth interactions for this client.this@Stability(value=Stable) public UserPoolClientProps.Builder enableTokenRevocation(Boolean enableTokenRevocation)
UserPoolClientOptions.getEnableTokenRevocation()enableTokenRevocation - Enable token revocation for this client.this@Stability(value=Stable) public UserPoolClientProps.Builder generateSecret(Boolean generateSecret)
UserPoolClientOptions.getGenerateSecret()generateSecret - Whether to generate a client secret.this@Stability(value=Stable) public UserPoolClientProps.Builder idTokenValidity(Duration idTokenValidity)
UserPoolClientOptions.getIdTokenValidity()idTokenValidity - Validity of the ID token.
Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity.this@Stability(value=Stable) public UserPoolClientProps.Builder oAuth(OAuthSettings oAuth)
UserPoolClientOptions.getOAuth()oAuth - OAuth settings for this client to interact with the app.
An error is thrown when this is specified and disableOAuth is set.this@Stability(value=Stable) public UserPoolClientProps.Builder preventUserExistenceErrors(Boolean preventUserExistenceErrors)
UserPoolClientOptions.getPreventUserExistenceErrors()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@Stability(value=Stable) public UserPoolClientProps.Builder readAttributes(ClientAttributes readAttributes)
UserPoolClientOptions.getReadAttributes()readAttributes - The set of attributes this client will be able to read.this@Stability(value=Stable) public UserPoolClientProps.Builder refreshTokenValidity(Duration refreshTokenValidity)
UserPoolClientOptions.getRefreshTokenValidity()refreshTokenValidity - Validity of the refresh token.
Values between 60 minutes and 10 years are valid.this@Stability(value=Stable) public UserPoolClientProps.Builder supportedIdentityProviders(List<? extends UserPoolClientIdentityProvider> supportedIdentityProviders)
UserPoolClientOptions.getSupportedIdentityProviders()supportedIdentityProviders - The list of identity providers that users should be able to use to sign in using this client.this@Stability(value=Stable) public UserPoolClientProps.Builder userPoolClientName(String userPoolClientName)
UserPoolClientOptions.getUserPoolClientName()userPoolClientName - Name of the application client.this@Stability(value=Stable) public UserPoolClientProps.Builder writeAttributes(ClientAttributes writeAttributes)
UserPoolClientOptions.getWriteAttributes()writeAttributes - The set of attributes this client will be able to write.this@Stability(value=Stable) public UserPoolClientProps build()
build in interface software.amazon.jsii.Builder<UserPoolClientProps>UserPoolClientPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.