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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnUserPoolClient.TokenValidityUnitsPropertystatic final classAn implementation forCfnUserPoolClient.TokenValidityUnitsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringA time unit ofseconds,minutes,hours, ordaysfor the value that you set in theAccessTokenValidityparameter.default StringA time unit ofseconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter.default StringA time unit ofseconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessToken
A time unit ofseconds,minutes,hours, ordaysfor the value that you set in theAccessTokenValidityparameter.The default
AccessTokenValiditytime unit is hours.AccessTokenValidityduration can range from five minutes to one day. -
getIdToken
A time unit ofseconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter.The default
IdTokenValiditytime unit is hours.IdTokenValidityduration can range from five minutes to one day. -
getRefreshToken
A time unit ofseconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter.The default
RefreshTokenValiditytime unit is days.RefreshTokenValidityduration can range from 60 minutes to 10 years. -
builder
-