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