| 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.Athena.CreatePreparedStatement
Description
Creates a prepared statement for use with SQL queries in Athena.
Synopsis
- data CreatePreparedStatement = CreatePreparedStatement' {
- description :: Maybe Text
- statementName :: Text
- workGroup :: Text
- queryStatement :: Text
- newCreatePreparedStatement :: Text -> Text -> Text -> CreatePreparedStatement
- createPreparedStatement_description :: Lens' CreatePreparedStatement (Maybe Text)
- createPreparedStatement_statementName :: Lens' CreatePreparedStatement Text
- createPreparedStatement_workGroup :: Lens' CreatePreparedStatement Text
- createPreparedStatement_queryStatement :: Lens' CreatePreparedStatement Text
- data CreatePreparedStatementResponse = CreatePreparedStatementResponse' {
- httpStatus :: Int
- newCreatePreparedStatementResponse :: Int -> CreatePreparedStatementResponse
- createPreparedStatementResponse_httpStatus :: Lens' CreatePreparedStatementResponse Int
Creating a Request
data CreatePreparedStatement Source #
See: newCreatePreparedStatement smart constructor.
Constructors
| CreatePreparedStatement' | |
Fields
| |
Instances
newCreatePreparedStatement Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreatePreparedStatement |
Create a value of CreatePreparedStatement 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:
CreatePreparedStatement, createPreparedStatement_description - The description of the prepared statement.
CreatePreparedStatement, createPreparedStatement_statementName - The name of the prepared statement.
CreatePreparedStatement, createPreparedStatement_workGroup - The name of the workgroup to which the prepared statement belongs.
CreatePreparedStatement, createPreparedStatement_queryStatement - The query string for the prepared statement.
Request Lenses
createPreparedStatement_description :: Lens' CreatePreparedStatement (Maybe Text) Source #
The description of the prepared statement.
createPreparedStatement_statementName :: Lens' CreatePreparedStatement Text Source #
The name of the prepared statement.
createPreparedStatement_workGroup :: Lens' CreatePreparedStatement Text Source #
The name of the workgroup to which the prepared statement belongs.
createPreparedStatement_queryStatement :: Lens' CreatePreparedStatement Text Source #
The query string for the prepared statement.
Destructuring the Response
data CreatePreparedStatementResponse Source #
See: newCreatePreparedStatementResponse smart constructor.
Constructors
| CreatePreparedStatementResponse' | |
Fields
| |
Instances
newCreatePreparedStatementResponse Source #
Create a value of CreatePreparedStatementResponse 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:CreatePreparedStatementResponse', createPreparedStatementResponse_httpStatus - The response's http status code.
Response Lenses
createPreparedStatementResponse_httpStatus :: Lens' CreatePreparedStatementResponse Int Source #
The response's http status code.