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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnUserPoolClient.TokenValidityUnitsProperty
static final class
An implementation forCfnUserPoolClient.TokenValidityUnitsProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
A time unit ofseconds
,minutes
,hours
, ordays
for the value that you set in theAccessTokenValidity
parameter.default String
A time unit ofseconds
,minutes
,hours
, ordays
for the value that you set in theIdTokenValidity
parameter.default String
A time unit ofseconds
,minutes
,hours
, ordays
for the value that you set in theRefreshTokenValidity
parameter.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessToken
A time unit ofseconds
,minutes
,hours
, ordays
for the value that you set in theAccessTokenValidity
parameter.The default
AccessTokenValidity
time unit is hours.AccessTokenValidity
duration can range from five minutes to one day. -
getIdToken
A time unit ofseconds
,minutes
,hours
, ordays
for the value that you set in theIdTokenValidity
parameter.The default
IdTokenValidity
time unit is hours.IdTokenValidity
duration can range from five minutes to one day. -
getRefreshToken
A time unit ofseconds
,minutes
,hours
, ordays
for the value that you set in theRefreshTokenValidity
parameter.The default
RefreshTokenValidity
time unit is days.RefreshTokenValidity
duration can range from 60 minutes to 10 years. -
builder
-