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 |
Retrieves the prepared statement with the specified name from the specified workgroup.
Synopsis
- data GetPreparedStatement = GetPreparedStatement' {
- statementName :: Text
- workGroup :: Text
- newGetPreparedStatement :: Text -> Text -> GetPreparedStatement
- getPreparedStatement_statementName :: Lens' GetPreparedStatement Text
- getPreparedStatement_workGroup :: Lens' GetPreparedStatement Text
- data GetPreparedStatementResponse = GetPreparedStatementResponse' {}
- newGetPreparedStatementResponse :: Int -> GetPreparedStatementResponse
- getPreparedStatementResponse_preparedStatement :: Lens' GetPreparedStatementResponse (Maybe PreparedStatement)
- getPreparedStatementResponse_httpStatus :: Lens' GetPreparedStatementResponse Int
Creating a Request
data GetPreparedStatement Source #
See: newGetPreparedStatement
smart constructor.
GetPreparedStatement' | |
|
Instances
newGetPreparedStatement Source #
:: Text | |
-> Text | |
-> GetPreparedStatement |
Create a value of GetPreparedStatement
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:statementName:GetPreparedStatement'
, getPreparedStatement_statementName
- The name of the prepared statement to retrieve.
$sel:workGroup:GetPreparedStatement'
, getPreparedStatement_workGroup
- The workgroup to which the statement to be retrieved belongs.
Request Lenses
getPreparedStatement_statementName :: Lens' GetPreparedStatement Text Source #
The name of the prepared statement to retrieve.
getPreparedStatement_workGroup :: Lens' GetPreparedStatement Text Source #
The workgroup to which the statement to be retrieved belongs.
Destructuring the Response
data GetPreparedStatementResponse Source #
See: newGetPreparedStatementResponse
smart constructor.
GetPreparedStatementResponse' | |
|
Instances
newGetPreparedStatementResponse Source #
Create a value of GetPreparedStatementResponse
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:preparedStatement:GetPreparedStatementResponse'
, getPreparedStatementResponse_preparedStatement
- The name of the prepared statement that was retrieved.
$sel:httpStatus:GetPreparedStatementResponse'
, getPreparedStatementResponse_httpStatus
- The response's http status code.
Response Lenses
getPreparedStatementResponse_preparedStatement :: Lens' GetPreparedStatementResponse (Maybe PreparedStatement) Source #
The name of the prepared statement that was retrieved.
getPreparedStatementResponse_httpStatus :: Lens' GetPreparedStatementResponse Int Source #
The response's http status code.