SessionData
¶
Source code in docs_src/capo_redshift_data/types/session_data.py
cluster_identifier
instance-attribute
¶
cluster_identifier: NotRequired[String]
The cluster identifier. This element is not returned when connecting to a serverless workgroup.
created_at
instance-attribute
¶
created_at: datetime
The date and time (UTC) when the session was created.
current_statement_id
instance-attribute
¶
current_statement_id: NotRequired[UUID]
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.
database
instance-attribute
¶
database: NotRequired[String]
The name of the database that the session is connected to.
session_alive_seconds
instance-attribute
¶
session_alive_seconds: NotRequired[SessionAliveSeconds]
The number of seconds that the session is kept alive after a query finishes.
session_id
instance-attribute
¶
session_id: UUID
The session identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
session_ttl
instance-attribute
¶
session_ttl: NotRequired[datetime]
The date and time (UTC) when the session is set to expire and be closed.
status
instance-attribute
¶
status: SessionStatusString
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.
updated_at
instance-attribute
¶
updated_at: NotRequired[datetime]
The date and time (UTC) that the session metadata was last updated. An example is the time the status last changed.
workgroup_name
instance-attribute
¶
workgroup_name: NotRequired[WorkgroupNameString]
The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.