Class: Aws::CognitoIdentityProvider::Types::TokenValidityUnitsType

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb

Overview

Note:

When making an API call, you may pass TokenValidityUnitsType data as a 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.

Constant Summary collapse

SENSITIVE =
[]

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.

Returns:

  • (String)


8416
8417
8418
8419
8420
8421
8422
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 8416

class TokenValidityUnitsType < Struct.new(
  :access_token,
  :id_token,
  :refresh_token)
  SENSITIVE = []
  include Aws::Structure
end

#id_tokenString

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

Returns:

  • (String)


8416
8417
8418
8419
8420
8421
8422
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 8416

class TokenValidityUnitsType < Struct.new(
  :access_token,
  :id_token,
  :refresh_token)
  SENSITIVE = []
  include Aws::Structure
end

#refresh_tokenString

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

Returns:

  • (String)


8416
8417
8418
8419
8420
8421
8422
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 8416

class TokenValidityUnitsType < Struct.new(
  :access_token,
  :id_token,
  :refresh_token)
  SENSITIVE = []
  include Aws::Structure
end