@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.313Z") @Stability(value=Experimental) public interface UserPoolClientOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
UserPoolClientOptions.Builder
A builder for
UserPoolClientOptions |
static class |
UserPoolClientOptions.Jsii$Proxy
An implementation for
UserPoolClientOptions |
| Modifier and Type | Method and Description |
|---|---|
static UserPoolClientOptions.Builder |
builder() |
default Duration |
getAccessTokenValidity()
(experimental) Validity of the access token.
|
default AuthFlow |
getAuthFlows()
(experimental) The set of OAuth authentication flows to enable on the client.
|
default Boolean |
getDisableOAuth()
(experimental) Turns off all OAuth interactions for this client.
|
default Boolean |
getGenerateSecret()
(experimental) Whether to generate a client secret.
|
default Duration |
getIdTokenValidity()
(experimental) Validity of the ID token.
|
default OAuthSettings |
getOAuth()
(experimental) OAuth settings for this client to interact with the app.
|
default Boolean |
getPreventUserExistenceErrors()
(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.
|
default ClientAttributes |
getReadAttributes()
(experimental) The set of attributes this client will be able to read.
|
default Duration |
getRefreshTokenValidity()
(experimental) Validity of the refresh token.
|
default List<UserPoolClientIdentityProvider> |
getSupportedIdentityProviders()
(experimental) The list of identity providers that users should be able to use to sign in using this client.
|
default String |
getUserPoolClientName()
(experimental) Name of the application client.
|
default ClientAttributes |
getWriteAttributes()
(experimental) The set of attributes this client will be able to write.
|
@Stability(value=Experimental) @Nullable default Duration getAccessTokenValidity()
Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity.
Default: Duration.minutes(60)
https://docs.aws.amazon.com/en_us/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html#amazon-cognito-user-pools-using-the-access-token@Stability(value=Experimental) @Nullable default AuthFlow getAuthFlows()
Default: - all auth flows disabled
https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html@Stability(value=Experimental) @Nullable default Boolean getDisableOAuth()
Default: false
@Stability(value=Experimental) @Nullable default Boolean getGenerateSecret()
Default: false
@Stability(value=Experimental) @Nullable default Duration getIdTokenValidity()
Values between 5 minutes and 1 day are valid. The duration can not be longer than the refresh token validity.
Default: Duration.minutes(60)
https://docs.aws.amazon.com/en_us/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html#amazon-cognito-user-pools-using-the-id-token@Stability(value=Experimental) @Nullable default OAuthSettings getOAuth()
An error is thrown when this is specified and disableOAuth is set.
Default: - see defaults in `OAuthSettings`. meaningless if `disableOAuth` is set.
@Stability(value=Experimental) @Nullable default Boolean getPreventUserExistenceErrors()
Default: true for new stacks
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-managing-errors.html@Stability(value=Experimental) @Nullable default ClientAttributes getReadAttributes()
Default: - all standard and custom attributes
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-attribute-permissions-and-scopes@Stability(value=Experimental) @Nullable default Duration getRefreshTokenValidity()
Values between 60 minutes and 10 years are valid.
Default: Duration.days(30)
https://docs.aws.amazon.com/en_us/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html#amazon-cognito-user-pools-using-the-refresh-token@Stability(value=Experimental) @Nullable default List<UserPoolClientIdentityProvider> getSupportedIdentityProviders()
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.
@Stability(value=Experimental) @Nullable default String getUserPoolClientName()
Default: - cloudformation generated name
@Stability(value=Experimental) @Nullable default ClientAttributes getWriteAttributes()
Default: - all standard and custom attributes
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-attributes.html#user-pool-settings-attribute-permissions-and-scopes@Stability(value=Experimental) static UserPoolClientOptions.Builder builder()
UserPoolClientOptions.Builder of UserPoolClientOptionsCopyright © 2021. All rights reserved.