| 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.ListPreparedStatements
Description
Lists the prepared statements in the specified workgroup.
Synopsis
- data ListPreparedStatements = ListPreparedStatements' {}
- newListPreparedStatements :: Text -> ListPreparedStatements
- listPreparedStatements_maxResults :: Lens' ListPreparedStatements (Maybe Natural)
- listPreparedStatements_nextToken :: Lens' ListPreparedStatements (Maybe Text)
- listPreparedStatements_workGroup :: Lens' ListPreparedStatements Text
- data ListPreparedStatementsResponse = ListPreparedStatementsResponse' {}
- newListPreparedStatementsResponse :: Int -> ListPreparedStatementsResponse
- listPreparedStatementsResponse_nextToken :: Lens' ListPreparedStatementsResponse (Maybe Text)
- listPreparedStatementsResponse_preparedStatements :: Lens' ListPreparedStatementsResponse (Maybe [PreparedStatementSummary])
- listPreparedStatementsResponse_httpStatus :: Lens' ListPreparedStatementsResponse Int
Creating a Request
data ListPreparedStatements Source #
See: newListPreparedStatements smart constructor.
Constructors
| ListPreparedStatements' | |
Fields
| |
Instances
newListPreparedStatements Source #
Arguments
| :: Text | |
| -> ListPreparedStatements |
Create a value of ListPreparedStatements 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:maxResults:ListPreparedStatements', listPreparedStatements_maxResults - The maximum number of results to return in this request.
ListPreparedStatements, listPreparedStatements_nextToken - A token generated by the Athena service that specifies where to continue
pagination if a previous request was truncated. To obtain the next set
of pages, pass in the NextToken from the response object of the
previous page call.
ListPreparedStatements, listPreparedStatements_workGroup - The workgroup to list the prepared statements for.
Request Lenses
listPreparedStatements_maxResults :: Lens' ListPreparedStatements (Maybe Natural) Source #
The maximum number of results to return in this request.
listPreparedStatements_nextToken :: Lens' ListPreparedStatements (Maybe Text) Source #
A token generated by the Athena service that specifies where to continue
pagination if a previous request was truncated. To obtain the next set
of pages, pass in the NextToken from the response object of the
previous page call.
listPreparedStatements_workGroup :: Lens' ListPreparedStatements Text Source #
The workgroup to list the prepared statements for.
Destructuring the Response
data ListPreparedStatementsResponse Source #
See: newListPreparedStatementsResponse smart constructor.
Constructors
| ListPreparedStatementsResponse' | |
Fields
| |
Instances
newListPreparedStatementsResponse Source #
Create a value of ListPreparedStatementsResponse 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:
ListPreparedStatements, listPreparedStatementsResponse_nextToken - A token generated by the Athena service that specifies where to continue
pagination if a previous request was truncated. To obtain the next set
of pages, pass in the NextToken from the response object of the
previous page call.
$sel:preparedStatements:ListPreparedStatementsResponse', listPreparedStatementsResponse_preparedStatements - The list of prepared statements for the workgroup.
$sel:httpStatus:ListPreparedStatementsResponse', listPreparedStatementsResponse_httpStatus - The response's http status code.
Response Lenses
listPreparedStatementsResponse_nextToken :: Lens' ListPreparedStatementsResponse (Maybe Text) Source #
A token generated by the Athena service that specifies where to continue
pagination if a previous request was truncated. To obtain the next set
of pages, pass in the NextToken from the response object of the
previous page call.
listPreparedStatementsResponse_preparedStatements :: Lens' ListPreparedStatementsResponse (Maybe [PreparedStatementSummary]) Source #
The list of prepared statements for the workgroup.
listPreparedStatementsResponse_httpStatus :: Lens' ListPreparedStatementsResponse Int Source #
The response's http status code.