AWS::Cognito::UserPoolClient TokenValidityUnits
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.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "AccessToken" :String, "IdToken" :String, "RefreshToken" :String}
YAML
AccessToken:StringIdToken:StringRefreshToken:String
Properties
AccessToken-
A time unit of
seconds,minutes,hours, ordaysfor the value that you set in theAccessTokenValidityparameter. The defaultAccessTokenValiditytime unit is hours.AccessTokenValidityduration can range from five minutes to one day.Required: No
Type: String
Allowed values:
days | hours | minutes | secondsUpdate requires: No interruption
IdToken-
A time unit of
seconds,minutes,hours, ordaysfor the value that you set in theIdTokenValidityparameter. The defaultIdTokenValiditytime unit is hours.IdTokenValidityduration can range from five minutes to one day.Required: No
Type: String
Allowed values:
days | hours | minutes | secondsUpdate requires: No interruption
RefreshToken-
A time unit of
seconds,minutes,hours, ordaysfor the value that you set in theRefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit is days.RefreshTokenValidityduration can range from 60 minutes to 10 years.Required: No
Type: String
Allowed values:
days | hours | minutes | secondsUpdate requires: No interruption