Interface CfnUserPoolClient.TokenValidityUnitsProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnUserPoolClient.TokenValidityUnitsProperty.Jsii$Proxy
Enclosing class:
CfnUserPoolClient

@Stability(Stable) public static interface CfnUserPoolClient.TokenValidityUnitsProperty extends software.amazon.jsii.JsiiSerializable
The time units you use when you set the duration of ID, access, and refresh tokens.

The default unit for RefreshToken is days, and the default for ID and access tokens is hours.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.cognito.*;
 TokenValidityUnitsProperty tokenValidityUnitsProperty = TokenValidityUnitsProperty.builder()
         .accessToken("accessToken")
         .idToken("idToken")
         .refreshToken("refreshToken")
         .build();
 
  • Method Details

    • getAccessToken

      @Stability(Stable) @Nullable default String getAccessToken()
      A time unit of seconds , minutes , hours , or days for the value that you set in the AccessTokenValidity parameter.

      The default AccessTokenValidity time unit is hours. AccessTokenValidity duration can range from five minutes to one day.

    • getIdToken

      @Stability(Stable) @Nullable default String getIdToken()
      A time unit of seconds , minutes , hours , or days for the value that you set in the IdTokenValidity parameter.

      The default IdTokenValidity time unit is hours. IdTokenValidity duration can range from five minutes to one day.

    • getRefreshToken

      @Stability(Stable) @Nullable default String getRefreshToken()
      A time unit of seconds , minutes , hours , or days for the value that you set in the RefreshTokenValidity parameter.

      The default RefreshTokenValidity time unit is days. RefreshTokenValidity duration can range from 60 minutes to 10 years.

    • builder

      @Stability(Stable) static CfnUserPoolClient.TokenValidityUnitsProperty.Builder builder()
      Returns:
      a CfnUserPoolClient.TokenValidityUnitsProperty.Builder of CfnUserPoolClient.TokenValidityUnitsProperty