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();
 

See Also: