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 units that validity times are represented in.
The default unit for refresh tokens is days, and the default for ID and access tokens are 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:
-
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 for the value that you set in theAccessTokenValidityparameter.default StringA time unit for the value that you set in theIdTokenValidityparameter.default StringA time unit for the value that you set in theRefreshTokenValidityparameter.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessToken
A time unit for the value that you set in theAccessTokenValidityparameter.The default
AccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day.- See Also:
-
getIdToken
A time unit for the value that you set in theIdTokenValidityparameter.The default
IdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day.- See Also:
-
getRefreshToken
A time unit for the value that you set in theRefreshTokenValidityparameter.The default
RefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years.- See Also:
-
builder
-