@Stability(value=Stable) public static final class CfnUserPoolClient.Builder extends Object implements software.amazon.jsii.Builder<CfnUserPoolClient>
CfnUserPoolClient.| Modifier and Type | Method and Description |
|---|---|
CfnUserPoolClient.Builder |
accessTokenValidity(Number accessTokenValidity)
The time limit, after which the access token is no longer valid and cannot be used.
|
CfnUserPoolClient.Builder |
allowedOAuthFlows(List<String> allowedOAuthFlows)
The allowed OAuth flows.
|
CfnUserPoolClient.Builder |
allowedOAuthFlowsUserPoolClient(Boolean allowedOAuthFlowsUserPoolClient)
Set to true if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
|
CfnUserPoolClient.Builder |
allowedOAuthFlowsUserPoolClient(IResolvable allowedOAuthFlowsUserPoolClient)
Set to true if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools.
|
CfnUserPoolClient.Builder |
allowedOAuthScopes(List<String> allowedOAuthScopes)
The allowed OAuth scopes.
|
CfnUserPoolClient.Builder |
analyticsConfiguration(CfnUserPoolClient.AnalyticsConfigurationProperty analyticsConfiguration)
The Amazon Pinpoint analytics configuration for collecting metrics for this user pool.
|
CfnUserPoolClient.Builder |
analyticsConfiguration(IResolvable analyticsConfiguration)
The Amazon Pinpoint analytics configuration for collecting metrics for this user pool.
|
CfnUserPoolClient |
build() |
CfnUserPoolClient.Builder |
callbackUrLs(List<String> callbackUrLs)
A list of allowed redirect (callback) URLs for the identity providers.
|
CfnUserPoolClient.Builder |
clientName(String clientName)
The client name for the user pool client you would like to create.
|
static CfnUserPoolClient.Builder |
create(Construct scope,
String id) |
CfnUserPoolClient.Builder |
defaultRedirectUri(String defaultRedirectUri)
The default redirect URI.
|
CfnUserPoolClient.Builder |
enableTokenRevocation(Boolean enableTokenRevocation)
Enables or disables token revocation.
|
CfnUserPoolClient.Builder |
enableTokenRevocation(IResolvable enableTokenRevocation)
Enables or disables token revocation.
|
CfnUserPoolClient.Builder |
explicitAuthFlows(List<String> explicitAuthFlows)
The authentication flows that are supported by the user pool clients.
|
CfnUserPoolClient.Builder |
generateSecret(Boolean generateSecret)
Boolean to specify whether you want to generate a secret for the user pool client being created.
|
CfnUserPoolClient.Builder |
generateSecret(IResolvable generateSecret)
Boolean to specify whether you want to generate a secret for the user pool client being created.
|
CfnUserPoolClient.Builder |
idTokenValidity(Number idTokenValidity)
The time limit, after which the ID token is no longer valid and cannot be used.
|
CfnUserPoolClient.Builder |
logoutUrLs(List<String> logoutUrLs)
A list of allowed logout URLs for the identity providers.
|
CfnUserPoolClient.Builder |
preventUserExistenceErrors(String preventUserExistenceErrors)
Use this setting to choose which errors and responses are returned by Cognito APIs during authentication, account confirmation, and password recovery when the user does not exist in the user pool.
|
CfnUserPoolClient.Builder |
readAttributes(List<String> readAttributes)
The read attributes.
|
CfnUserPoolClient.Builder |
refreshTokenValidity(Number refreshTokenValidity)
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
|
CfnUserPoolClient.Builder |
supportedIdentityProviders(List<String> supportedIdentityProviders)
A list of provider names for the identity providers that are supported on this client.
|
CfnUserPoolClient.Builder |
tokenValidityUnits(CfnUserPoolClient.TokenValidityUnitsProperty tokenValidityUnits)
The units in which the validity times are represented in.
|
CfnUserPoolClient.Builder |
tokenValidityUnits(IResolvable tokenValidityUnits)
The units in which the validity times are represented in.
|
CfnUserPoolClient.Builder |
userPoolId(String userPoolId)
The user pool ID for the user pool where you want to create a user pool client.
|
CfnUserPoolClient.Builder |
writeAttributes(List<String> writeAttributes)
The user pool attributes that the app client can write to.
|
@Stability(value=Stable) public static CfnUserPoolClient.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnUserPoolClient.AnalyticsConfigurationProperty.Builder.@Stability(value=Stable) public CfnUserPoolClient.Builder userPoolId(String userPoolId)
userPoolId - The user pool ID for the user pool where you want to create a user pool client. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder accessTokenValidity(Number accessTokenValidity)
accessTokenValidity - The time limit, after which the access token is no longer valid and cannot be used. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder allowedOAuthFlows(List<String> allowedOAuthFlows)
Set to code to initiate a code grant flow, which provides an authorization code as the response. This code can be exchanged for access tokens with the token endpoint.
Set to implicit to specify that the client should get the access token (and, optionally, ID token, based on scopes) directly.
Set to client_credentials to specify that the client should get the access token (and, optionally, ID token, based on scopes) from the token endpoint using a combination of client and client_secret.
allowedOAuthFlows - The allowed OAuth flows. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder allowedOAuthFlowsUserPoolClient(Boolean allowedOAuthFlowsUserPoolClient)
allowedOAuthFlowsUserPoolClient - Set to true if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder allowedOAuthFlowsUserPoolClient(IResolvable allowedOAuthFlowsUserPoolClient)
allowedOAuthFlowsUserPoolClient - Set to true if the client is allowed to follow the OAuth protocol when interacting with Cognito user pools. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder allowedOAuthScopes(List<String> allowedOAuthScopes)
Possible values provided by OAuth are: phone , email , openid , and profile . Possible values provided by AWS are: aws.cognito.signin.user.admin . Custom scopes created in Resource Servers are also supported.
allowedOAuthScopes - The allowed OAuth scopes. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder analyticsConfiguration(CfnUserPoolClient.AnalyticsConfigurationProperty analyticsConfiguration)
In regions where Pinpoint is not available, Cognito User Pools only supports sending events to Amazon Pinpoint projects in us-east-1. In regions where Pinpoint is available, Cognito User Pools will support sending events to Amazon Pinpoint projects within that same region.
analyticsConfiguration - The Amazon Pinpoint analytics configuration for collecting metrics for this user pool. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder analyticsConfiguration(IResolvable analyticsConfiguration)
In regions where Pinpoint is not available, Cognito User Pools only supports sending events to Amazon Pinpoint projects in us-east-1. In regions where Pinpoint is available, Cognito User Pools will support sending events to Amazon Pinpoint projects within that same region.
analyticsConfiguration - The Amazon Pinpoint analytics configuration for collecting metrics for this user pool. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder callbackUrLs(List<String> callbackUrLs)
A redirect URI must:
See OAuth 2.0 - Redirection Endpoint .
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
callbackUrLs - A list of allowed redirect (callback) URLs for the identity providers. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder clientName(String clientName)
clientName - The client name for the user pool client you would like to create. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder defaultRedirectUri(String defaultRedirectUri)
A redirect URI must:
See OAuth 2.0 - Redirection Endpoint .
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
defaultRedirectUri - The default redirect URI. Must be in the `CallbackURLs` list. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder enableTokenRevocation(Boolean enableTokenRevocation)
If you don't include this parameter, token revocation is automatically enabled for the new user pool client.
enableTokenRevocation - Enables or disables token revocation. For more information about revoking tokens, see [RevokeToken](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html) . This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder enableTokenRevocation(IResolvable enableTokenRevocation)
If you don't include this parameter, token revocation is automatically enabled for the new user pool client.
enableTokenRevocation - Enables or disables token revocation. For more information about revoking tokens, see [RevokeToken](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html) . This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder explicitAuthFlows(List<String> explicitAuthFlows)
Flow names without the ALLOW_ prefix are deprecated in favor of new names with the ALLOW_ prefix. Note that values with ALLOW_ prefix cannot be used along with values without ALLOW_ prefix.
Valid values include:
ALLOW_ADMIN_USER_PASSWORD_AUTH : Enable admin based user password authentication flow ADMIN_USER_PASSWORD_AUTH . This setting replaces the ADMIN_NO_SRP_AUTH setting. With this authentication flow, Cognito receives the password in the request instead of using the SRP (Secure Remote Password protocol) protocol to verify passwords.ALLOW_CUSTOM_AUTH : Enable Lambda trigger based authentication.ALLOW_USER_PASSWORD_AUTH : Enable user password-based authentication. In this flow, Cognito receives the password in the request instead of using the SRP protocol to verify passwords.ALLOW_USER_SRP_AUTH : Enable SRP based authentication.ALLOW_REFRESH_TOKEN_AUTH : Enable authflow to refresh tokens.explicitAuthFlows - The authentication flows that are supported by the user pool clients. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder generateSecret(Boolean generateSecret)
generateSecret - Boolean to specify whether you want to generate a secret for the user pool client being created. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder generateSecret(IResolvable generateSecret)
generateSecret - Boolean to specify whether you want to generate a secret for the user pool client being created. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder idTokenValidity(Number idTokenValidity)
idTokenValidity - The time limit, after which the ID token is no longer valid and cannot be used. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder logoutUrLs(List<String> logoutUrLs)
logoutUrLs - A list of allowed logout URLs for the identity providers. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder preventUserExistenceErrors(String preventUserExistenceErrors)
When set to ENABLED and the user does not exist, authentication returns an error indicating either the username or password was incorrect, and account confirmation and password recovery return a response indicating a code was sent to a simulated destination. When set to LEGACY , those APIs will return a UserNotFoundException exception if the user does not exist in the user pool.
preventUserExistenceErrors - Use this setting to choose which errors and responses are returned by Cognito APIs during authentication, account confirmation, and password recovery when the user does not exist in the user pool. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder readAttributes(List<String> readAttributes)
readAttributes - The read attributes. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder refreshTokenValidity(Number refreshTokenValidity)
refreshTokenValidity - The time limit, in days, after which the refresh token is no longer valid and cannot be used. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder supportedIdentityProviders(List<String> supportedIdentityProviders)
The following are supported: COGNITO , Facebook , SignInWithApple , Google and LoginWithAmazon .
supportedIdentityProviders - A list of provider names for the identity providers that are supported on this client. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder tokenValidityUnits(CfnUserPoolClient.TokenValidityUnitsProperty tokenValidityUnits)
Default for RefreshToken is days, and default for ID and access tokens are hours.
tokenValidityUnits - The units in which the validity times are represented in. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder tokenValidityUnits(IResolvable tokenValidityUnits)
Default for RefreshToken is days, and default for ID and access tokens are hours.
tokenValidityUnits - The units in which the validity times are represented in. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient.Builder writeAttributes(List<String> writeAttributes)
If your app client allows users to sign in through an identity provider, this array must include all attributes that are mapped to identity provider attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If your app client lacks write access to a mapped attribute, Amazon Cognito throws an error when it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User Pool .
writeAttributes - The user pool attributes that the app client can write to. This parameter is required.this@Stability(value=Stable) public CfnUserPoolClient build()
build in interface software.amazon.jsii.Builder<CfnUserPoolClient>Copyright © 2022. All rights reserved.