AWS::Cognito::UserPoolClient TokenValidityUnits - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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: String IdToken: String RefreshToken: String

Properties

AccessToken

A time unit for the value that you set in the AccessTokenValidity parameter. The default AccessTokenValidity time unit is hours. 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 default IdTokenValidity time unit is hours. 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 default RefreshTokenValidity time unit is days. RefreshTokenValidity duration can range from 60 minutes to 10 years.

Required: No

Type: String

Allowed values: seconds | minutes | hours | days

Update requires: No interruption