| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.RedshiftData.Types.StatementData
Description
Synopsis
- data StatementData = StatementData' {
- createdAt :: Maybe POSIX
- isBatchStatement :: Maybe Bool
- queryParameters :: Maybe (NonEmpty SqlParameter)
- queryString :: Maybe Text
- queryStrings :: Maybe [Text]
- secretArn :: Maybe Text
- statementName :: Maybe Text
- status :: Maybe StatusString
- updatedAt :: Maybe POSIX
- id :: Text
- newStatementData :: Text -> StatementData
- statementData_createdAt :: Lens' StatementData (Maybe UTCTime)
- statementData_isBatchStatement :: Lens' StatementData (Maybe Bool)
- statementData_queryParameters :: Lens' StatementData (Maybe (NonEmpty SqlParameter))
- statementData_queryString :: Lens' StatementData (Maybe Text)
- statementData_queryStrings :: Lens' StatementData (Maybe [Text])
- statementData_secretArn :: Lens' StatementData (Maybe Text)
- statementData_statementName :: Lens' StatementData (Maybe Text)
- statementData_status :: Lens' StatementData (Maybe StatusString)
- statementData_updatedAt :: Lens' StatementData (Maybe UTCTime)
- statementData_id :: Lens' StatementData Text
Documentation
data StatementData Source #
The SQL statement to run.
See: newStatementData smart constructor.
Constructors
| StatementData' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> StatementData |
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_queryString :: Lens' StatementData (Maybe Text) Source #
The 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.