Class CfnUserPoolClient.RefreshTokenRotationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPoolClient.RefreshTokenRotationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolClient.RefreshTokenRotationProperty>
- Enclosing interface:
CfnUserPoolClient.RefreshTokenRotationProperty
@Stability(Stable)
public static final class CfnUserPoolClient.RefreshTokenRotationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolClient.RefreshTokenRotationProperty>
A builder for
CfnUserPoolClient.RefreshTokenRotationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnUserPoolClient.RefreshTokenRotationProperty.getFeature()retryGracePeriodSeconds(Number retryGracePeriodSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
feature
@Stability(Stable) public CfnUserPoolClient.RefreshTokenRotationProperty.Builder feature(String feature) Sets the value ofCfnUserPoolClient.RefreshTokenRotationProperty.getFeature()- Parameters:
feature- The state of refresh token rotation for the current app client.- Returns:
this
-
retryGracePeriodSeconds
@Stability(Stable) public CfnUserPoolClient.RefreshTokenRotationProperty.Builder retryGracePeriodSeconds(Number retryGracePeriodSeconds) - Parameters:
retryGracePeriodSeconds- When you request a token refresh withGetTokensFromRefreshToken, the original refresh token that you're rotating out can remain valid for a period of time of up to 60 seconds. This allows for client-side retries. WhenRetryGracePeriodSecondsis0, the grace period is disabled and a successful request immediately invalidates the submitted refresh token.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPoolClient.RefreshTokenRotationProperty>- Returns:
- a new instance of
CfnUserPoolClient.RefreshTokenRotationProperty - Throws:
NullPointerException- if any required attribute was not provided
-