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 |
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.
CreatePreparedStatement' | |
|
Instances
newCreatePreparedStatement Source #
:: 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:
$sel:description:CreatePreparedStatement'
, createPreparedStatement_description
- The description of the prepared statement.
$sel:statementName:CreatePreparedStatement'
, createPreparedStatement_statementName
- The name of the prepared statement.
$sel:workGroup:CreatePreparedStatement'
, createPreparedStatement_workGroup
- The name of the workgroup to which the prepared statement belongs.
$sel:queryStatement: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.
CreatePreparedStatementResponse' | |
|
Instances
Eq CreatePreparedStatementResponse Source # | |
Read CreatePreparedStatementResponse Source # | |
Show CreatePreparedStatementResponse Source # | |
Defined in Amazonka.Athena.CreatePreparedStatement | |
Generic CreatePreparedStatementResponse Source # | |
NFData CreatePreparedStatementResponse Source # | |
Defined in Amazonka.Athena.CreatePreparedStatement rnf :: CreatePreparedStatementResponse -> () # | |
type Rep CreatePreparedStatementResponse Source # | |
Defined in Amazonka.Athena.CreatePreparedStatement type Rep CreatePreparedStatementResponse = D1 ('MetaData "CreatePreparedStatementResponse" "Amazonka.Athena.CreatePreparedStatement" "libZSservicesZSamazonka-athenaZSamazonka-athena" 'False) (C1 ('MetaCons "CreatePreparedStatementResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.