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 |
Amazonka.Athena.UpdatePreparedStatement
Description
Updates a prepared statement.
Synopsis
- data UpdatePreparedStatement = UpdatePreparedStatement' {
- description :: Maybe Text
- statementName :: Text
- workGroup :: Text
- queryStatement :: Text
- newUpdatePreparedStatement :: Text -> Text -> Text -> UpdatePreparedStatement
- updatePreparedStatement_description :: Lens' UpdatePreparedStatement (Maybe Text)
- updatePreparedStatement_statementName :: Lens' UpdatePreparedStatement Text
- updatePreparedStatement_workGroup :: Lens' UpdatePreparedStatement Text
- updatePreparedStatement_queryStatement :: Lens' UpdatePreparedStatement Text
- data UpdatePreparedStatementResponse = UpdatePreparedStatementResponse' {
- httpStatus :: Int
- newUpdatePreparedStatementResponse :: Int -> UpdatePreparedStatementResponse
- updatePreparedStatementResponse_httpStatus :: Lens' UpdatePreparedStatementResponse Int
Creating a Request
data UpdatePreparedStatement Source #
See: newUpdatePreparedStatement
smart constructor.
Constructors
UpdatePreparedStatement' | |
Fields
|
Instances
newUpdatePreparedStatement Source #
Arguments
:: Text | |
-> Text | |
-> Text | |
-> UpdatePreparedStatement |
Create a value of UpdatePreparedStatement
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:description:UpdatePreparedStatement'
, updatePreparedStatement_description
- The description of the prepared statement.
$sel:statementName:UpdatePreparedStatement'
, updatePreparedStatement_statementName
- The name of the prepared statement.
$sel:workGroup:UpdatePreparedStatement'
, updatePreparedStatement_workGroup
- The workgroup for the prepared statement.
$sel:queryStatement:UpdatePreparedStatement'
, updatePreparedStatement_queryStatement
- The query string for the prepared statement.
Request Lenses
updatePreparedStatement_description :: Lens' UpdatePreparedStatement (Maybe Text) Source #
The description of the prepared statement.
updatePreparedStatement_statementName :: Lens' UpdatePreparedStatement Text Source #
The name of the prepared statement.
updatePreparedStatement_workGroup :: Lens' UpdatePreparedStatement Text Source #
The workgroup for the prepared statement.
updatePreparedStatement_queryStatement :: Lens' UpdatePreparedStatement Text Source #
The query string for the prepared statement.
Destructuring the Response
data UpdatePreparedStatementResponse Source #
See: newUpdatePreparedStatementResponse
smart constructor.
Constructors
UpdatePreparedStatementResponse' | |
Fields
|
Instances
newUpdatePreparedStatementResponse Source #
Create a value of UpdatePreparedStatementResponse
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:httpStatus:UpdatePreparedStatementResponse'
, updatePreparedStatementResponse_httpStatus
- The response's http status code.
Response Lenses
updatePreparedStatementResponse_httpStatus :: Lens' UpdatePreparedStatementResponse Int Source #
The response's http status code.