amazonka-redshift-data-2.0: Amazon Redshift Data API Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RedshiftData.Types.SubStatementData

Description

 
Synopsis

Documentation

data SubStatementData Source #

Information about an SQL statement.

See: newSubStatementData smart constructor.

Constructors

SubStatementData' 

Fields

  • createdAt :: Maybe POSIX

    The date and time (UTC) the statement was created.

  • duration :: Maybe Integer

    The amount of time in nanoseconds that the statement ran.

  • error :: Maybe Text

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

  • hasResultSet :: Maybe 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.

  • queryString :: Maybe Text

    The SQL statement text.

  • redshiftQueryId :: Maybe Integer

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

  • resultRows :: Maybe 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.

  • resultSize :: Maybe Integer

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

  • status :: Maybe StatementStatusString

    The status of the SQL statement. An example is the that the SQL statement finished.

  • updatedAt :: Maybe POSIX

    The date and time (UTC) that the statement metadata was last updated.

  • id :: Text

    The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.

Instances

Instances details
FromJSON SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

Generic SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

Associated Types

type Rep SubStatementData :: Type -> Type #

Read SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

Show SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

NFData SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

Methods

rnf :: SubStatementData -> () #

Eq SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

Hashable SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

type Rep SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

type Rep SubStatementData = D1 ('MetaData "SubStatementData" "Amazonka.RedshiftData.Types.SubStatementData" "amazonka-redshift-data-2.0-Hy9KEgtH5Bc3altuyuPuYo" 'False) (C1 ('MetaCons "SubStatementData'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "hasResultSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "queryString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "redshiftQueryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "resultRows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "resultSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StatementStatusString)) :*: (S1 ('MetaSel ('Just "updatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newSubStatementData Source #

Create a value of SubStatementData with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:createdAt:SubStatementData', subStatementData_createdAt - The date and time (UTC) the statement was created.

$sel:duration:SubStatementData', subStatementData_duration - The amount of time in nanoseconds that the statement ran.

$sel:error:SubStatementData', subStatementData_error - The error message from the cluster if the SQL statement encountered an error while running.

$sel:hasResultSet:SubStatementData', subStatementData_hasResultSet - 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.

$sel:queryString:SubStatementData', subStatementData_queryString - The SQL statement text.

$sel:redshiftQueryId:SubStatementData', subStatementData_redshiftQueryId - The SQL statement identifier. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

$sel:resultRows:SubStatementData', subStatementData_resultRows - 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.

$sel:resultSize:SubStatementData', subStatementData_resultSize - The size in bytes of the returned results. A -1 indicates the value is null.

$sel:status:SubStatementData', subStatementData_status - The status of the SQL statement. An example is the that the SQL statement finished.

$sel:updatedAt:SubStatementData', subStatementData_updatedAt - The date and time (UTC) that the statement metadata was last updated.

$sel:id:SubStatementData', subStatementData_id - The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.

subStatementData_createdAt :: Lens' SubStatementData (Maybe UTCTime) Source #

The date and time (UTC) the statement was created.

subStatementData_duration :: Lens' SubStatementData (Maybe Integer) Source #

The amount of time in nanoseconds that the statement ran.

subStatementData_error :: Lens' SubStatementData (Maybe Text) Source #

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

subStatementData_hasResultSet :: Lens' SubStatementData (Maybe Bool) Source #

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.

subStatementData_redshiftQueryId :: Lens' SubStatementData (Maybe Integer) Source #

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

subStatementData_resultRows :: Lens' SubStatementData (Maybe Integer) Source #

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.

subStatementData_resultSize :: Lens' SubStatementData (Maybe Integer) Source #

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

subStatementData_status :: Lens' SubStatementData (Maybe StatementStatusString) Source #

The status of the SQL statement. An example is the that the SQL statement finished.

subStatementData_updatedAt :: Lens' SubStatementData (Maybe UTCTime) Source #

The date and time (UTC) that the statement metadata was last updated.

subStatementData_id :: Lens' SubStatementData Text Source #

The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.