Skip to content

DescribeStatementResponse

Source code in docs_src/capo_redshift_data/types/describe_statement_response.py
class DescribeStatementResponse(TypedDict, closed=True):
    id: "capo_redshift_data.types.uuid.UUID"
    """<p>The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. </p>"""
    secret_arn: NotRequired["capo_redshift_data.types.secret_arn.SecretArn"]
    """<p>The name or Amazon Resource Name (ARN) of the secret that enables access to the database. </p>"""
    db_user: NotRequired["capo_redshift_data.types.string.String"]
    """<p>The database user name. </p>"""
    database: NotRequired["capo_redshift_data.types.string.String"]
    """<p>The name of the database. </p>"""
    cluster_identifier: NotRequired["capo_redshift_data.types.string.String"]
    """<p>The cluster identifier. </p>"""
    duration: "capo_redshift_data.types.long.Long"
    """<p>The amount of time in nanoseconds that the statement ran. </p>"""
    error: NotRequired["capo_redshift_data.types.string.String"]
    """<p>The error message from the cluster if the SQL statement encountered an error while running. </p>"""
    status: NotRequired["capo_redshift_data.types.status_string.StatusString"]
    """<p>The status of the SQL statement being described. Status values are defined as follows: </p> <ul> <li> <p>ABORTED - The query run was stopped by the user. </p> </li> <li> <p>ALL - A status value that includes all query statuses. This value can be used to filter results. </p> </li> <li> <p>FAILED - The query run failed. </p> </li> <li> <p>FINISHED - The query has finished running. </p> </li> <li> <p>PICKED - The query has been chosen to be run. </p> </li> <li> <p>STARTED - The query run has started. </p> </li> <li> <p>SUBMITTED - The query was submitted, but not yet processed. </p> </li> </ul>"""
    created_at: NotRequired["datetime.datetime"]
    """<p>The date and time (UTC) when the SQL statement was submitted to run. </p>"""
    updated_at: NotRequired["datetime.datetime"]
    """<p>The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed. </p>"""
    redshift_pid: "capo_redshift_data.types.long.Long"
    """<p>The process identifier from Amazon Redshift. </p>"""
    has_result_set: NotRequired["bool"]
    """<p>A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.</p>"""
    query_string: NotRequired[
        "capo_redshift_data.types.statement_string.StatementString"
    ]
    """<p>The SQL statement text. </p>"""
    result_rows: "capo_redshift_data.types.long.Long"
    """<p>Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A <code>-1</code> indicates the value is null.</p>"""
    result_size: "capo_redshift_data.types.long.Long"
    """<p>The size in bytes of the returned results. A <code>-1</code> indicates the value is null.</p>"""
    redshift_query_id: "capo_redshift_data.types.long.Long"
    """<p>The identifier of the query generated by Amazon Redshift. These identifiers are also available in the <code>query</code> column of the <code>STL_QUERY</code> system view. </p>"""
    query_parameters: NotRequired[
        "capo_redshift_data.types.sql_parameters_list.SqlParametersList"
    ]
    """<p>The parameters for the SQL statement.</p>"""
    sub_statements: NotRequired[
        "capo_redshift_data.types.sub_statement_list.SubStatementList"
    ]
    """<p>The SQL statements from a multiple statement run.</p>"""
    workgroup_name: NotRequired[
        "capo_redshift_data.types.workgroup_name_string.WorkgroupNameString"
    ]
    """<p>The serverless workgroup name or Amazon Resource Name (ARN).</p>"""
    result_format: NotRequired[
        "capo_redshift_data.types.result_format_string.ResultFormatString"
    ]
    """<p>The data format of the result of the SQL statement.</p>"""
    session_id: NotRequired["capo_redshift_data.types.string.String"]
    """<p>The session identifier of the query.</p>"""
    execution_mode: NotRequired["capo_redshift_data.types.execution_mode.ExecutionMode"]
    """<p>The execution mode of the batch request. <code>TRANSACTION</code> indicates all SQL statements are run as a single transaction. <code>AUTO_COMMIT</code> indicates each SQL statement is committed individually.</p>"""

cluster_identifier instance-attribute

cluster_identifier: NotRequired[String]

The cluster identifier.

created_at instance-attribute

created_at: NotRequired[datetime]

The date and time (UTC) when the SQL statement was submitted to run.

database instance-attribute

database: NotRequired[String]

The name of the database.

db_user instance-attribute

db_user: NotRequired[String]

The database user name.

duration instance-attribute

duration: Long

The amount of time in nanoseconds that the statement ran.

error instance-attribute

error: NotRequired[String]

The error message from the cluster if the SQL statement encountered an error while running.

execution_mode instance-attribute

execution_mode: NotRequired[ExecutionMode]

The execution mode of the batch request. TRANSACTION indicates all SQL statements are run as a single transaction. AUTO_COMMIT indicates each SQL statement is committed individually.

has_result_set instance-attribute

has_result_set: NotRequired[bool]

A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.

id instance-attribute

id: UUID

The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

query_parameters instance-attribute

query_parameters: NotRequired[SqlParametersList]

The parameters for the SQL statement.

query_string instance-attribute

query_string: NotRequired[StatementString]

The SQL statement text.

redshift_pid instance-attribute

redshift_pid: Long

The process identifier from Amazon Redshift.

redshift_query_id instance-attribute

redshift_query_id: Long

The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query column of the STL_QUERY system view.

result_format instance-attribute

result_format: NotRequired[ResultFormatString]

The data format of the result of the SQL statement.

result_rows instance-attribute

result_rows: Long

Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A -1 indicates the value is null.

result_size instance-attribute

result_size: Long

The size in bytes of the returned results. A -1 indicates the value is null.

secret_arn instance-attribute

secret_arn: NotRequired[SecretArn]

The name or Amazon Resource Name (ARN) of the secret that enables access to the database.

session_id instance-attribute

session_id: NotRequired[String]

The session identifier of the query.

status instance-attribute

status: NotRequired[StatusString]

The status of the SQL statement being described. Status values are defined as follows:

  • ABORTED - The query run was stopped by the user.

  • ALL - A status value that includes all query statuses. This value can be used to filter results.

  • FAILED - The query run failed.

  • FINISHED - The query has finished running.

  • PICKED - The query has been chosen to be run.

  • STARTED - The query run has started.

  • SUBMITTED - The query was submitted, but not yet processed.

sub_statements instance-attribute

sub_statements: NotRequired[SubStatementList]

The SQL statements from a multiple statement run.

updated_at instance-attribute

updated_at: NotRequired[datetime]

The date and time (UTC) that the metadata for the SQL statement 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).