| 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.Glue.RunStatement
Description
Executes the statement.
Synopsis
- data RunStatement = RunStatement' {}
- newRunStatement :: Text -> Text -> RunStatement
- runStatement_requestOrigin :: Lens' RunStatement (Maybe Text)
- runStatement_sessionId :: Lens' RunStatement Text
- runStatement_code :: Lens' RunStatement Text
- data RunStatementResponse = RunStatementResponse' {
- id :: Maybe Int
- httpStatus :: Int
- newRunStatementResponse :: Int -> RunStatementResponse
- runStatementResponse_id :: Lens' RunStatementResponse (Maybe Int)
- runStatementResponse_httpStatus :: Lens' RunStatementResponse Int
Creating a Request
data RunStatement Source #
See: newRunStatement smart constructor.
Constructors
| RunStatement' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> RunStatement |
Create a value of RunStatement 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:requestOrigin:RunStatement', runStatement_requestOrigin - The origin of the request.
$sel:sessionId:RunStatement', runStatement_sessionId - The Session Id of the statement to be run.
RunStatement, runStatement_code - The statement code to be run.
Request Lenses
runStatement_requestOrigin :: Lens' RunStatement (Maybe Text) Source #
The origin of the request.
runStatement_sessionId :: Lens' RunStatement Text Source #
The Session Id of the statement to be run.
runStatement_code :: Lens' RunStatement Text Source #
The statement code to be run.
Destructuring the Response
data RunStatementResponse Source #
See: newRunStatementResponse smart constructor.
Constructors
| RunStatementResponse' | |
Fields
| |
Instances
newRunStatementResponse Source #
Arguments
| :: Int | |
| -> RunStatementResponse |
Create a value of RunStatementResponse 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:
RunStatementResponse, runStatementResponse_id - Returns the Id of the statement that was run.
$sel:httpStatus:RunStatementResponse', runStatementResponse_httpStatus - The response's http status code.
Response Lenses
runStatementResponse_id :: Lens' RunStatementResponse (Maybe Int) Source #
Returns the Id of the statement that was run.
runStatementResponse_httpStatus :: Lens' RunStatementResponse Int Source #
The response's http status code.