This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
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:StringIdToken:StringRefreshToken:String
Properties
AccessToken-
A time unit for the value that you set in the
AccessTokenValidityparameter. The defaultAccessTokenValiditytime unit ishours.AccessTokenValidityduration can range from five minutes to one day.Required: No
Type: String
Allowed values:
seconds | minutes | hours | daysUpdate requires: No interruption
IdToken-
A time unit for the value that you set in the
IdTokenValidityparameter. The defaultIdTokenValiditytime unit ishours.IdTokenValidityduration can range from five minutes to one day.Required: No
Type: String
Allowed values:
seconds | minutes | hours | daysUpdate requires: No interruption
RefreshToken-
A time unit for the value that you set in the
RefreshTokenValidityparameter. The defaultRefreshTokenValiditytime unit isdays.RefreshTokenValidityduration can range from 60 minutes to 10 years.Required: No
Type: String
Allowed values:
seconds | minutes | hours | daysUpdate requires: No interruption