Class: Aws::RedshiftDataAPIService::Types::DescribeStatementResponse

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

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#cluster_identifierString

The cluster identifier.

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#created_atTime

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

Returns:

  • (Time)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#databaseString

The name of the database.

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#db_userString

The database user name.

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#durationInteger

The amount of time in nanoseconds that the statement ran.

Returns:

  • (Integer)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#errorString

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

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#execution_modeString

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.

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#has_result_setBoolean

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.

Returns:

  • (Boolean)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#idString

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

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#query_parametersArray<Types::SqlParameter>

The parameters for the SQL statement.

Returns:



541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#query_stringString

The SQL statement text.

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#redshift_pidInteger

The process identifier from Amazon Redshift.

Returns:

  • (Integer)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#redshift_query_idInteger

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

Returns:

  • (Integer)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#result_formatString

The data format of the result of the SQL statement.

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#result_rowsInteger

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.

Returns:

  • (Integer)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#result_sizeInteger

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

Returns:

  • (Integer)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#secret_arnString

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

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#session_idString

The session identifier of the query.

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#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.

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#sub_statementsArray<Types::SubStatementData>

The SQL statements from a multiple statement run.

Returns:



541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#updated_atTime

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

Returns:

  • (Time)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end

#workgroup_nameString

The serverless workgroup name or Amazon Resource Name (ARN).

Returns:

  • (String)


541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'gems/aws-sdk-redshiftdataapiservice/lib/aws-sdk-redshiftdataapiservice/types.rb', line 541

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,
  :execution_mode)
  SENSITIVE = []
  include Aws::Structure
end