Class: Aws::RedshiftDataAPIService::Types::DescribeStatementResponse
- Inherits:
-
Struct
- Object
- Struct
- Aws::RedshiftDataAPIService::Types::DescribeStatementResponse
- Defined in:
- gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb
Overview
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#cluster_identifier ⇒ String
The cluster identifier.
-
#created_at ⇒ Time
The date and time (UTC) when the SQL statement was submitted to run.
-
#database ⇒ String
The name of the database.
-
#db_user ⇒ String
The database user name.
-
#duration ⇒ Integer
The amount of time in nanoseconds that the statement ran.
-
#error ⇒ String
The error message from the cluster if the SQL statement encountered an error while running.
-
#has_result_set ⇒ Boolean
A value that indicates whether the statement has a result set.
-
#id ⇒ String
The identifier of the SQL statement described.
-
#query_parameters ⇒ Array<Types::SqlParameter>
The parameters for the SQL statement.
-
#query_string ⇒ String
The SQL statement text.
-
#redshift_pid ⇒ Integer
The process identifier from Amazon Redshift.
-
#redshift_query_id ⇒ Integer
The identifier of the query generated by Amazon Redshift.
-
#result_format ⇒ String
The data format of the result of the SQL statement.
-
#result_rows ⇒ Integer
Either the number of rows returned from the SQL statement or the number of rows affected.
-
#result_size ⇒ Integer
The size in bytes of the returned results.
-
#secret_arn ⇒ String
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
-
#session_id ⇒ String
The session identifier of the query.
-
#status ⇒ String
The status of the SQL statement being described.
-
#sub_statements ⇒ Array<Types::SubStatementData>
The SQL statements from a multiple statement run.
-
#updated_at ⇒ Time
The date and time (UTC) that the metadata for the SQL statement was last updated.
-
#workgroup_name ⇒ String
The serverless workgroup name or Amazon Resource Name (ARN).
Instance Attribute Details
#cluster_identifier ⇒ String
The cluster identifier.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#created_at ⇒ Time
The date and time (UTC) when the SQL statement was submitted to run.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#database ⇒ String
The name of the database.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#db_user ⇒ String
The database user name.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#duration ⇒ Integer
The amount of time in nanoseconds that the statement ran.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#error ⇒ String
The error message from the cluster if the SQL statement encountered an error while running.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#has_result_set ⇒ Boolean
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.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#id ⇒ String
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#query_parameters ⇒ Array<Types::SqlParameter>
The parameters for the SQL statement.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#query_string ⇒ String
The SQL statement text.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#redshift_pid ⇒ Integer
The process identifier from Amazon Redshift.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#redshift_query_id ⇒ Integer
The identifier of the query generated by Amazon Redshift. These
identifiers are also available in the query column of the
STL_QUERY system view.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#result_format ⇒ String
The data format of the result of the SQL statement.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#result_rows ⇒ Integer
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.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#result_size ⇒ Integer
The size in bytes of the returned results. A -1 indicates the
value is null.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#secret_arn ⇒ String
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#session_id ⇒ String
The session identifier of the query.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#status ⇒ String
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.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#sub_statements ⇒ Array<Types::SubStatementData>
The SQL statements from a multiple statement run.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#updated_at ⇒ Time
The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |
#workgroup_name ⇒ String
The serverless workgroup name or Amazon Resource Name (ARN).
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 464 class DescribeStatementResponse < Struct.new( :id, :secret_arn, :db_user, :database, :cluster_identifier, :duration, :error, :status, :created_at, :updated_at, :redshift_pid, :has_result_set, :query_string, :result_rows, :result_size, :redshift_query_id, :query_parameters, :sub_statements, :workgroup_name, :result_format, :session_id) SENSITIVE = [] include Aws::Structure end |