libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError Source #

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

_ExecuteStatementException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The SQL statement encountered an environmental error while running.

_InternalServerException :: AsError a => Getting (First ServiceError) a ServiceError Source #

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

_ActiveStatementsExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The number of active statements exceeds the limit.

_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #

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

_BatchExecuteStatementException :: AsError a => Getting (First ServiceError) a ServiceError Source #

An SQL statement encountered an environmental error while running.

StatementStatusString

newtype StatementStatusString Source #

Instances

Instances details
Eq StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

Ord StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

Read StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

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

NFData StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

Methods

rnf :: StatementStatusString -> () #

Hashable 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

FromJSON StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

FromJSONKey StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToLog StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToHeader StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

ToQuery 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

ToByteString 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

type Rep StatementStatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementStatusString

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

StatusString

newtype StatusString Source #

Constructors

StatusString' 

Instances

Instances details
Eq StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Ord StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Read StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Show StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Generic StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Associated Types

type Rep StatusString :: Type -> Type #

NFData StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

Methods

rnf :: StatusString -> () #

Hashable 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

FromJSON StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

FromJSONKey StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToLog StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToHeader StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

ToQuery StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

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 #

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

type Rep StatusString Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatusString

type Rep StatusString = D1 ('MetaData "StatusString" "Amazonka.RedshiftData.Types.StatusString" "libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data" '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
Eq ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

Read ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

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

NFData ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

Methods

rnf :: ColumnMetadata -> () #

Hashable ColumnMetadata Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.ColumnMetadata

FromJSON 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" "libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data" 'False) (C1 ('MetaCons "ColumnMetadata'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "typeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "isCaseSensitive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: (S1 ('MetaSel ('Just "columnDefault") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "isCurrency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "scale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: ((S1 ('MetaSel ('Just "precision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "schemaName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "isSigned") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "label") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "nullable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "tableName") '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:length:ColumnMetadata', columnMetadata_length - The length of the column.

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

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

$sel:columnDefault:ColumnMetadata', columnMetadata_columnDefault - The default value of the column.

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

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

$sel:precision:ColumnMetadata', columnMetadata_precision - The precision 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:name:ColumnMetadata', columnMetadata_name - The name of the column.

$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:nullable:ColumnMetadata', columnMetadata_nullable - A value that indicates whether the column is nullable.

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

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

The database-specific data type of the column.

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

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

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

The default value of the column.

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

A value that indicates whether the column contains currency values.

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

The scale value of a decimal number column.

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

The precision 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_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_tableName :: Lens' ColumnMetadata (Maybe Text) Source #

The name of the table that includes the column.

Field

data Field Source #

A data value in a column.

See: newField smart constructor.

Constructors

Field' 

Fields

Instances

Instances details
Eq Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

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

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

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 #

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 #

NFData Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

rnf :: Field -> () #

Hashable Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

Methods

hashWithSalt :: Int -> Field -> Int #

hash :: Field -> Int #

FromJSON Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

type Rep Field Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.Field

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

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:doubleValue:Field', field_doubleValue - A value of the double data type.

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

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

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

$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:isNull:Field', field_isNull - A value that indicates whether the data is NULL.

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

A value of the double data type.

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

A value of the string data type.

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

A value of the long data type.

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

A value of the Boolean 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_isNull :: Lens' Field (Maybe Bool) Source #

A value that indicates whether the data is NULL.

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 inforation, see Data types in the Amazon Redshift Database Developer Guide.

Instances

Instances details
Eq SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

Read SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

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

NFData SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

Methods

rnf :: SqlParameter -> () #

Hashable SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

ToJSON SqlParameter Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SqlParameter

FromJSON 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" "libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data" '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 inforation, 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 inforation, 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
Eq StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

Read StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

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

NFData StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

Methods

rnf :: StatementData -> () #

Hashable StatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.StatementData

FromJSON 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:status:StatementData', statementData_status - The status of the SQL statement. An example is the that the SQL statement finished.

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

$sel:queryParameters:StatementData', statementData_queryParameters - The parameters used in a 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:queryString:StatementData', statementData_queryString - The SQL statement.

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

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

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

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

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

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

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

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

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

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_statementName :: Lens' StatementData (Maybe Text) Source #

The name of the SQL statement.

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

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

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

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

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

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

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

  • status :: Maybe StatementStatusString

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

  • redshiftQueryId :: Maybe Integer

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

  • resultSize :: Maybe Integer

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

  • createdAt :: Maybe POSIX

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

  • error :: Maybe Text

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

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

  • hasResultSet :: Maybe Bool

    A value that indicates whether the statement has a result set. The result set can be empty.

  • queryString :: Maybe Text

    The SQL statement text.

  • updatedAt :: Maybe POSIX

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

  • duration :: Maybe Integer

    The amount of time in nanoseconds that the statement ran.

  • 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
Eq SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

Read SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

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

NFData SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

Methods

rnf :: SubStatementData -> () #

Hashable SubStatementData Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.SubStatementData

FromJSON 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" "libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data" 'False) (C1 ('MetaCons "SubStatementData'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StatementStatusString)) :*: S1 ('MetaSel ('Just "redshiftQueryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer))) :*: (S1 ('MetaSel ('Just "resultSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "error") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "resultRows") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "hasResultSet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "queryString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "updatedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: 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:status:SubStatementData', subStatementData_status - The status of the SQL statement. An example is the that the SQL statement finished.

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

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

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

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

$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:hasResultSet:SubStatementData', subStatementData_hasResultSet - A value that indicates whether the statement has a result set. The result set can be empty.

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

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

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

$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_status :: Lens' SubStatementData (Maybe StatementStatusString) Source #

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

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_resultSize :: Lens' SubStatementData (Maybe Integer) Source #

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

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

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

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

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

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_hasResultSet :: Lens' SubStatementData (Maybe Bool) Source #

A value that indicates whether the statement has a result set. The result set can be empty.

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

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

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

The amount of time in nanoseconds that the statement ran.

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

  • schema :: Maybe Text

    The schema containing the table.

  • name :: Maybe Text

    The name of 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
Eq TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

Read TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

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

NFData TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

Methods

rnf :: TableMember -> () #

Hashable TableMember Source # 
Instance details

Defined in Amazonka.RedshiftData.Types.TableMember

FromJSON 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" "libZSservicesZSamazonka-redshift-dataZSamazonka-redshift-data" 'False) (C1 ('MetaCons "TableMember'" 'PrefixI 'True) (S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "name") '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:schema:TableMember', tableMember_schema - The schema containing the table.

$sel:name:TableMember', tableMember_name - The name of 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_schema :: Lens' TableMember (Maybe Text) Source #

The schema containing the table.

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

The name of 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.