Class CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cognito.CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty>
- Enclosing interface:
CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty
@Stability(Stable)
public static final class CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty>
A builder for
CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnUserPoolClientPropsMixin.RefreshTokenRotationProperty.getFeature()retryGracePeriodSeconds(Number retryGracePeriodSeconds)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
feature
@Stability(Stable) public CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty.Builder feature(String feature) Sets the value ofCfnUserPoolClientPropsMixin.RefreshTokenRotationProperty.getFeature()- Parameters:
feature- The state of refresh token rotation for the current app client.- Returns:
this
-
retryGracePeriodSeconds
@Stability(Stable) public CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty.Builder retryGracePeriodSeconds(Number retryGracePeriodSeconds) Sets the value ofCfnUserPoolClientPropsMixin.RefreshTokenRotationProperty.getRetryGracePeriodSeconds()- 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<CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty>- Returns:
- a new instance of
CfnUserPoolClientPropsMixin.RefreshTokenRotationProperty - Throws:
NullPointerException- if any required attribute was not provided
-