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

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

API version 2019-12-20 of the Amazon Redshift Data API Service SDK configuration.

Errors

_ActiveStatementsExceededException :: AsError a => Fold a ServiceError Source #

The number of active statements exceeds the limit.

_BatchExecuteStatementException :: AsError a => Fold a ServiceError Source #

An SQL statement encountered an environmental error while running.

_DatabaseConnectionException :: AsError a => Fold a ServiceError Source #

Connection to a database failed.

_ExecuteStatementException :: AsError a => Fold a ServiceError Source #

The SQL statement encountered an environmental error while running.

_InternalServerException :: AsError a => Fold a ServiceError Source #

The Amazon Redshift Data API operation failed due to invalid input.

_ResourceNotFoundException :: AsError a => Fold a ServiceError Source #

The Amazon Redshift Data API operation failed due to a missing resource.

_ValidationException :: AsError a => Fold a ServiceError Source #

The Amazon Redshift Data API operation failed due to invalid input.

StatementStatusString

newtype StatementStatusString Source #

Instances

Instances details
FromJSON StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

FromJSONKey StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToJSON StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToJSONKey StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToByteString StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToHeader StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToLog StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToQuery StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

FromText StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToText StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

FromXML StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToXML StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

Generic StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

Associated Types

type Rep StatementStatusString :: Type -> Type #

Read StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

Show StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

NFData StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

Methods

rnf :: StatementStatusString -> () #

Eq StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

Ord StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

Hashable StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

type Rep StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

type Rep StatementStatusString = D1 ('MetaData "StatementStatusString" "Amazonka.RedshiftData.Types.StatementStatusString" "amazonka-redshift-data-2.0-Hy9KEgtH5Bc3altuyuPuYo" 'True) (C1 ('MetaCons "StatementStatusString'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromStatementStatusString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

StatusString

newtype StatusString Source #

Constructors

StatusString' 

Instances

Instances details
FromJSON StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

FromJSONKey StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToJSON StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToJSONKey StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToByteString StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToHeader StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToLog StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToQuery StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

FromText StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToText StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Methods

toText :: StatusString -> Text #

FromXML StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToXML StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Methods

toXML :: StatusString -> XML #

Generic StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Associated Types

type Rep StatusString :: Type -> Type #

Read StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Show StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

NFData StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Methods

rnf :: StatusString -> () #

Eq StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Ord StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Hashable StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

type Rep StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

type Rep StatusString = D1 ('MetaData "StatusString" "Amazonka.RedshiftData.Types.StatusString" "amazonka-redshift-data-2.0-Hy9KEgtH5Bc3altuyuPuYo" 'True) (C1 ('MetaCons "StatusString'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromStatusString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ColumnMetadata

data ColumnMetadata Source #

The properties (metadata) of a column.

See: newColumnMetadata smart constructor.

Constructors

ColumnMetadata' 

Fields

Instances

Instances details
FromJSON ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

Generic ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

Associated Types

type Rep ColumnMetadata :: Type -> Type #

Read ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

Show ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

NFData ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

Methods

rnf :: ColumnMetadata -> () #

Eq ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

Hashable ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

type Rep ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

type Rep ColumnMetadata = D1 ('MetaData "ColumnMetadata" "Amazonka.RedshiftData.Types.ColumnMetadata" "amazonka-redshift-data-2.0-Hy9KEgtH5Bc3altuyuPuYo" 'False) (C1 ('MetaCons "ColumnMetadata'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "columnDefault") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "isCaseSensitive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "isCurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "isSigned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "label") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nullable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "precision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "scale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "schemaName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "typeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newColumnMetadata :: ColumnMetadata Source #

Create a value of ColumnMetadata 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:columnDefault:ColumnMetadata', columnMetadata_columnDefault - The default value of the column.

$sel:isCaseSensitive:ColumnMetadata', columnMetadata_isCaseSensitive - A value that indicates whether the column is case-sensitive.

$sel:isCurrency:ColumnMetadata', columnMetadata_isCurrency - A value that indicates whether the column contains currency values.

$sel:isSigned:ColumnMetadata', columnMetadata_isSigned - A value that indicates whether an integer column is signed.

$sel:label:ColumnMetadata', columnMetadata_label - The label for the column.

$sel:length:ColumnMetadata', columnMetadata_length - The length of the column.

$sel:name:ColumnMetadata', columnMetadata_name - The name of the column.

$sel:nullable:ColumnMetadata', columnMetadata_nullable - A value that indicates whether the column is nullable.

$sel:precision:ColumnMetadata', columnMetadata_precision - The precision value of a decimal number column.

$sel:scale:ColumnMetadata', columnMetadata_scale - The scale value of a decimal number column.

$sel:schemaName:ColumnMetadata', columnMetadata_schemaName - The name of the schema that contains the table that includes the column.

$sel:tableName:ColumnMetadata', columnMetadata_tableName - The name of the table that includes the column.

$sel:typeName:ColumnMetadata', columnMetadata_typeName - The database-specific data type of the column.

columnMetadata_columnDefault :: Lens' ColumnMetadata (Maybe Text) Source #

The default value of the column.

columnMetadata_isCaseSensitive :: Lens' ColumnMetadata (Maybe Bool) Source #

A value that indicates whether the column is case-sensitive.

columnMetadata_isCurrency :: Lens' ColumnMetadata (Maybe Bool) Source #

A value that indicates whether the column contains currency values.

columnMetadata_isSigned :: Lens' ColumnMetadata (Maybe Bool) Source #

A value that indicates whether an integer column is signed.

columnMetadata_nullable :: Lens' ColumnMetadata (Maybe Int) Source #

A value that indicates whether the column is nullable.

columnMetadata_precision :: Lens' ColumnMetadata (Maybe Int) Source #

The precision value of a decimal number column.

columnMetadata_scale :: Lens' ColumnMetadata (Maybe Int) Source #

The scale value of a decimal number column.

columnMetadata_schemaName :: Lens' ColumnMetadata (Maybe Text) Source #

The name of the schema that contains the table that includes the column.

columnMetadata_tableName :: Lens' ColumnMetadata (Maybe Text) Source #

The name of the table that includes the column.

columnMetadata_typeName :: Lens' ColumnMetadata (Maybe Text) Source #

The database-specific data type of the column.

Field

data Field Source #

A data value in a column.

See: newField smart constructor.

Constructors

Field' 

Fields

Instances

Instances details
FromJSON Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Generic Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Associated Types

type Rep Field :: Type -> Type #

Methods

from :: Field -> Rep Field x #

to :: Rep Field x -> Field #

Read Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Show Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

showsPrec :: Int -> Field -> ShowS #

show :: Field -> String #

showList :: [Field] -> ShowS #

NFData Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

rnf :: Field -> () #

Eq Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

(==) :: Field -> Field -> Bool #

(/=) :: Field -> Field -> Bool #

Hashable Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

hashWithSalt :: Int -> Field -> Int #

hash :: Field -> Int #

type Rep Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

type Rep Field = D1 ('MetaData "Field" "Amazonka.RedshiftData.Types.Field" "amazonka-redshift-data-2.0-Hy9KEgtH5Bc3altuyuPuYo" 'False) (C1 ('MetaCons "Field'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "blobValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Base64)) :*: (S1 ('MetaSel ('Just "booleanValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "doubleValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))) :*: (S1 ('MetaSel ('Just "isNull") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "longValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "stringValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newField :: Field Source #

Create a value of Field 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:blobValue:Field', field_blobValue - A value of the BLOB data type.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

$sel:booleanValue:Field', field_booleanValue - A value of the Boolean data type.

$sel:doubleValue:Field', field_doubleValue - A value of the double data type.

$sel:isNull:Field', field_isNull - A value that indicates whether the data is NULL.

$sel:longValue:Field', field_longValue - A value of the long data type.

$sel:stringValue:Field', field_stringValue - A value of the string data type.

field_blobValue :: Lens' Field (Maybe ByteString) Source #

A value of the BLOB data type.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

field_booleanValue :: Lens' Field (Maybe Bool) Source #

A value of the Boolean data type.

field_doubleValue :: Lens' Field (Maybe Double) Source #

A value of the double data type.

field_isNull :: Lens' Field (Maybe Bool) Source #

A value that indicates whether the data is NULL.

field_longValue :: Lens' Field (Maybe Integer) Source #

A value of the long data type.

field_stringValue :: Lens' Field (Maybe Text) Source #

A value of the string data type.

SqlParameter

data SqlParameter Source #

A parameter used in a SQL statement.

See: newSqlParameter smart constructor.

Constructors

SqlParameter' 

Fields

  • name :: Text

    The name of the parameter.

  • value :: Text

    The value of the parameter. Amazon Redshift implicitly converts to the proper data type. For more information, see Data types in the Amazon Redshift Database Developer Guide.

Instances

Instances details
FromJSON SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

ToJSON SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

Generic SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

Associated Types

type Rep SqlParameter :: Type -> Type #

Read SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

Show SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

NFData SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

Methods

rnf :: SqlParameter -> () #

Eq SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

Hashable SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

type Rep SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

type Rep SqlParameter = D1 ('MetaData "SqlParameter" "Amazonka.RedshiftData.Types.SqlParameter" "amazonka-redshift-data-2.0-Hy9KEgtH5Bc3altuyuPuYo" 'False) (C1 ('MetaCons "SqlParameter'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newSqlParameter Source #

Create a value of SqlParameter 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:name:SqlParameter', sqlParameter_name - The name of the parameter.

$sel:value:SqlParameter', sqlParameter_value - The value of the parameter. Amazon Redshift implicitly converts to the proper data type. For more information, see Data types in the Amazon Redshift Database Developer Guide.

sqlParameter_name :: Lens' SqlParameter Text Source #

The name of the parameter.

sqlParameter_value :: Lens' SqlParameter Text Source #

The value of the parameter. Amazon Redshift implicitly converts to the proper data type. For more information, see Data types in the Amazon Redshift Database Developer Guide.

StatementData

data StatementData Source #

The SQL statement to run.

See: newStatementData smart constructor.

Constructors

StatementData' 

Fields

Instances

Instances details
FromJSON StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

Generic StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

Associated Types

type Rep StatementData :: Type -> Type #

Read StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

Show StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

NFData StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

Methods

rnf :: StatementData -> () #

Eq StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

Hashable StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

type Rep StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

newStatementData Source #

Create a value of StatementData 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:StatementData', statementData_createdAt - The date and time (UTC) the statement was created.

$sel:isBatchStatement:StatementData', statementData_isBatchStatement - A value that indicates whether the statement is a batch query request.

$sel:queryParameters:StatementData', statementData_queryParameters - The parameters used in a SQL statement.

$sel:queryString:StatementData', statementData_queryString - The SQL statement.

$sel:queryStrings:StatementData', statementData_queryStrings - One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.

$sel:secretArn:StatementData', statementData_secretArn - The name or Amazon Resource Name (ARN) of the secret that enables access to the database.

$sel:statementName:StatementData', statementData_statementName - The name of the SQL statement.

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

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

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

statementData_createdAt :: Lens' StatementData (Maybe UTCTime) Source #

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

statementData_isBatchStatement :: Lens' StatementData (Maybe Bool) Source #

A value that indicates whether the statement is a batch query request.

statementData_queryParameters :: Lens' StatementData (Maybe (NonEmpty SqlParameter)) Source #

The parameters used in a SQL statement.

statementData_queryStrings :: Lens' StatementData (Maybe [Text]) Source #

One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.

statementData_secretArn :: Lens' StatementData (Maybe Text) Source #

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

statementData_statementName :: Lens' StatementData (Maybe Text) Source #

The name of the SQL statement.

statementData_status :: Lens' StatementData (Maybe StatusString) Source #

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

statementData_updatedAt :: Lens' StatementData (Maybe UTCTime) Source #

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

statementData_id :: Lens' StatementData Text Source #

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

SubStatementData

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.

TableMember

data TableMember Source #

The properties of a table.

See: newTableMember smart constructor.

Constructors

TableMember' 

Fields

  • name :: Maybe Text

    The name of the table.

  • schema :: Maybe Text

    The schema containing the table.

  • type' :: Maybe Text

    The type of the table. Possible values include TABLE, VIEW, SYSTEM TABLE, GLOBAL TEMPORARY, LOCAL TEMPORARY, ALIAS, and SYNONYM.

Instances

Instances details
FromJSON TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

Generic TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

Associated Types

type Rep TableMember :: Type -> Type #

Read TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

Show TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

NFData TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

Methods

rnf :: TableMember -> () #

Eq TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

Hashable TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

type Rep TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

type Rep TableMember = D1 ('MetaData "TableMember" "Amazonka.RedshiftData.Types.TableMember" "amazonka-redshift-data-2.0-Hy9KEgtH5Bc3altuyuPuYo" 'False) (C1 ('MetaCons "TableMember'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newTableMember :: TableMember Source #

Create a value of TableMember 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:name:TableMember', tableMember_name - The name of the table.

$sel:schema:TableMember', tableMember_schema - The schema containing the table.

$sel:type':TableMember', tableMember_type - The type of the table. Possible values include TABLE, VIEW, SYSTEM TABLE, GLOBAL TEMPORARY, LOCAL TEMPORARY, ALIAS, and SYNONYM.

tableMember_name :: Lens' TableMember (Maybe Text) Source #

The name of the table.

tableMember_schema :: Lens' TableMember (Maybe Text) Source #

The schema containing the table.

tableMember_type :: Lens' TableMember (Maybe Text) Source #

The type of the table. Possible values include TABLE, VIEW, SYSTEM TABLE, GLOBAL TEMPORARY, LOCAL TEMPORARY, ALIAS, and SYNONYM.