AWS::Cognito::UserPoolClient TokenValidityUnits
The units in which the validity times are represented. The default unit for RefreshToken is days, and the default for ID and access tokens is 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 of
seconds
,minutes
,hours
, ordays
for the value that you set in theAccessTokenValidity
parameter. The defaultAccessTokenValidity
time unit is hours.Required: No
Type: String
Allowed values:
days | hours | minutes | seconds
Update requires: No interruption
IdToken
-
A time unit of
seconds
,minutes
,hours
, ordays
for the value that you set in theIdTokenValidity
parameter. The defaultIdTokenValidity
time unit is hours.Required: No
Type: String
Allowed values:
days | hours | minutes | seconds
Update requires: No interruption
RefreshToken
-
A time unit of
seconds
,minutes
,hours
, ordays
for the value that you set in theRefreshTokenValidity
parameter. The defaultRefreshTokenValidity
time unit is days.Required: No
Type: String
Allowed values:
days | hours | minutes | seconds
Update requires: No interruption