Class: Aws::RedshiftDataAPIService::Types::SessionData

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

Overview

Contains the metadata for a session returned by ListSessions, including its status, compute target, database connection, and lifecycle timestamps.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cluster_identifierString

The cluster identifier. This element is not returned when connecting to a serverless workgroup.

Returns:

  • (String)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#created_atTime

The date and time (UTC) when the session was created.

Returns:

  • (Time)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#current_statement_idString

The identifier of the SQL statement currently running in the session. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. This element is returned only when the session status is BUSY.

Returns:

  • (String)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#databaseString

The name of the database that the session is connected to.

Returns:

  • (String)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#db_userString

The database user name.

Returns:

  • (String)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#session_alive_secondsInteger

The number of seconds that the session is kept alive after a query finishes.

Returns:

  • (Integer)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#session_idString

The session identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

Returns:

  • (String)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#session_ttlTime

The date and time (UTC) when the session is set to expire and be closed.

Returns:

  • (Time)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#statusString

The status of the session. Status values are defined as follows:

  • AVAILABLE – The session is open and ready to run a SQL statement.

  • BUSY – The session is currently running a SQL statement.

  • CLOSED – The session is closed and can no longer run SQL statements.

Returns:

  • (String)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#updated_atTime

The date and time (UTC) that the session metadata was last updated. An example is the time the status last changed.

Returns:

  • (Time)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end

#workgroup_nameString

The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.

Returns:

  • (String)


1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 1698

class SessionData < Struct.new(
  :session_id,
  :status,
  :created_at,
  :updated_at,
  :database,
  :db_user,
  :cluster_identifier,
  :workgroup_name,
  :session_alive_seconds,
  :session_ttl,
  :current_statement_id)
  SENSITIVE = []
  include Aws::Structure
end