You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CognitoIdentityProvider::Types::TokenValidityUnitsType
- Inherits:
-
Struct
- Object
- Struct
- Aws::CognitoIdentityProvider::Types::TokenValidityUnitsType
- Defined in:
- (unknown)
Overview
When passing TokenValidityUnitsType as input to an Aws::Client method, you can use a vanilla Hash:
{
access_token: "seconds", # accepts seconds, minutes, hours, days
id_token: "seconds", # accepts seconds, minutes, hours, days
refresh_token: "seconds", # accepts seconds, minutes, hours, days
}
The data type for TokenValidityUnits that specifics the time measurements for token validity.
Returned by:
Instance Attribute Summary collapse
-
#access_token ⇒ String
A time unit in “seconds”, “minutes”, “hours” or “days” for the value in AccessTokenValidity, defaults to hours.
-
#id_token ⇒ String
A time unit in “seconds”, “minutes”, “hours” or “days” for the value in IdTokenValidity, defaults to hours.
-
#refresh_token ⇒ String
A time unit in “seconds”, “minutes”, “hours” or “days” for the value in RefreshTokenValidity, defaults to days.
Instance Attribute Details
#access_token ⇒ String
A time unit in “seconds”, “minutes”, “hours” or “days” for the value in AccessTokenValidity, defaults to hours.
Possible values:
- seconds
- minutes
- hours
- days
#id_token ⇒ String
A time unit in “seconds”, “minutes”, “hours” or “days” for the value in IdTokenValidity, defaults to hours.
Possible values:
- seconds
- minutes
- hours
- days
#refresh_token ⇒ String
A time unit in “seconds”, “minutes”, “hours” or “days” for the value in RefreshTokenValidity, defaults to days.
Possible values:
- seconds
- minutes
- hours
- days