AWS::Cognito::UserPoolClient TokenValidityUnits
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.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "AccessToken" :
String
, "IdToken" :String
, "RefreshToken" :String
}
YAML
AccessToken:
String
IdToken:String
RefreshToken:String
Properties
AccessToken
-
A time unit for the value that you set in the
AccessTokenValidity
parameter. The defaultAccessTokenValidity
time unit ishours
.AccessTokenValidity
duration can range from five minutes to one day.Required: No
Type: String
Allowed values:
seconds | minutes | hours | days
Update requires: No interruption
IdToken
-
A time unit for the value that you set in the
IdTokenValidity
parameter. The defaultIdTokenValidity
time unit ishours
.IdTokenValidity
duration can range from five minutes to one day.Required: No
Type: String
Allowed values:
seconds | minutes | hours | days
Update requires: No interruption
RefreshToken
-
A time unit for the value that you set in the
RefreshTokenValidity
parameter. The defaultRefreshTokenValidity
time unit isdays
.RefreshTokenValidity
duration can range from 60 minutes to 10 years.Required: No
Type: String
Allowed values:
seconds | minutes | hours | days
Update requires: No interruption