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
show all
Defined in:
(unknown)

Overview

Note:

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

Instance Attribute Details

#access_tokenString

A time unit in “seconds”, “minutes”, “hours” or “days” for the value in AccessTokenValidity, defaults to hours.

Possible values:

  • seconds
  • minutes
  • hours
  • days

Returns:

  • (String)

    A time unit in “seconds”, “minutes”, “hours” or “days” for the value in AccessTokenValidity, defaults to hours.

#id_tokenString

A time unit in “seconds”, “minutes”, “hours” or “days” for the value in IdTokenValidity, defaults to hours.

Possible values:

  • seconds
  • minutes
  • hours
  • days

Returns:

  • (String)

    A time unit in “seconds”, “minutes”, “hours” or “days” for the value in IdTokenValidity, defaults to hours.

#refresh_tokenString

A time unit in “seconds”, “minutes”, “hours” or “days” for the value in RefreshTokenValidity, defaults to days.

Possible values:

  • seconds
  • minutes
  • hours
  • days

Returns:

  • (String)

    A time unit in “seconds”, “minutes”, “hours” or “days” for the value in RefreshTokenValidity, defaults to days.