Class: Aws::CognitoIdentityProvider::Types::SessionDescriptionType

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

Overview

Describes an active user session. Amazon Cognito returns this type in the responses of ListUserSessions and AdminListUserSessions, for both token sessions and SSO sessions.

Constant Summary collapse

SENSITIVE =
[:client_id, :last_ip_address]

Instance Attribute Summary collapse

Instance Attribute Details

#client_id ⇒ String

The ID of the app client that the session belongs to.

Returns:

  • (String)


12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end

#create_date ⇒ Time

The date and time when the session was created.

Returns:

  • (Time)


12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end

#device_type ⇒ String

A description of the device associated with the most recent activity on the session, derived from the parsed user agent (operating system and browser or app). Amazon Cognito overwrites this value on each sign-in, refresh, and rotation. The value can be unknown. The maximum length is 1,024 characters.

Returns:

  • (String)


12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end

#is_current_session ⇒ Boolean

Specifies whether this session matches the access token supplied in the request. This value is always false for the AdminListUserSessions operation, which doesn't take an access token.

Returns:

  • (Boolean)


12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end

#last_active_date ⇒ Time

The date and time of the most recent activity on the session. For a token session, this is the most recent token refresh or rotation; a new authentication creates a new token session rather than updating an existing one. For an SSO session, this is the most recent authentication, token grant, or token rotation.

Returns:

  • (Time)


12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end

#last_ip_address ⇒ String

The IP address associated with the most recent activity on the session. Amazon Cognito overwrites this value on each refresh and rotation. The maximum length is 128 characters.

Returns:

  • (String)


12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end

#last_location ⇒ Types::SessionLocationType

The geographic location of the most recent activity on the session, derived from the IP address.



12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end

#origin_session_id ⇒ String

For a token session, the ID of the SSO session that the token session originated from. This value is null for sessions that were initiated through the API and didn't come through an SSO session. Amazon Cognito returns this value for token sessions only.

Returns:

  • (String)


12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end

#session_id ⇒ String

The unique identifier for the session. This is a 28-character string of lowercase letters and digits, prefixed with tkn for a token session or sso for an SSO session.

Returns:

  • (String)


12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end

#session_type ⇒ String

The type of the session. Valid values are TOKEN and SSO.

Returns:

  • (String)


12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
# File 'gems/aws-sdk-cognitoidentityprovider/lib/aws-sdk-cognitoidentityprovider/types.rb', line 12504

class SessionDescriptionType < Struct.new(
  :session_id,
  :session_type,
  :client_id,
  :create_date,
  :last_active_date,
  :device_type,
  :last_ip_address,
  :last_location,
  :origin_session_id,
  :is_current_session)
  SENSITIVE = [:client_id, :last_ip_address]
  include Aws::Structure
end