| 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 |
Amazonka.Athena.ListPreparedStatements
Description
Lists the prepared statements in the specfied workgroup.
Synopsis
- data ListPreparedStatements = ListPreparedStatements' {}
- newListPreparedStatements :: Text -> ListPreparedStatements
- listPreparedStatements_nextToken :: Lens' ListPreparedStatements (Maybe Text)
- listPreparedStatements_maxResults :: Lens' ListPreparedStatements (Maybe Natural)
- listPreparedStatements_workGroup :: Lens' ListPreparedStatements Text
- data ListPreparedStatementsResponse = ListPreparedStatementsResponse' {}
- newListPreparedStatementsResponse :: Int -> ListPreparedStatementsResponse
- listPreparedStatementsResponse_preparedStatements :: Lens' ListPreparedStatementsResponse (Maybe [PreparedStatementSummary])
- listPreparedStatementsResponse_nextToken :: Lens' ListPreparedStatementsResponse (Maybe Text)
- listPreparedStatementsResponse_httpStatus :: Lens' ListPreparedStatementsResponse Int
Creating a Request
data ListPreparedStatements Source #
See: newListPreparedStatements smart constructor.
Constructors
| ListPreparedStatements' | |
Fields
| |
Instances
newListPreparedStatements Source #
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:nextToken: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.
$sel:maxResults:ListPreparedStatements', listPreparedStatements_maxResults - The maximum number of results to return in this request.
$sel:workGroup:ListPreparedStatements', listPreparedStatements_workGroup - The workgroup to list the prepared statements for.
Request Lenses
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_maxResults :: Lens' ListPreparedStatements (Maybe Natural) Source #
The maximum number of results to return in this request.
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:
$sel:preparedStatements:ListPreparedStatementsResponse', listPreparedStatementsResponse_preparedStatements - The list of prepared statements for the workgroup.
$sel:nextToken: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:httpStatus:ListPreparedStatementsResponse', listPreparedStatementsResponse_httpStatus - The response's http status code.
Response Lenses
listPreparedStatementsResponse_preparedStatements :: Lens' ListPreparedStatementsResponse (Maybe [PreparedStatementSummary]) Source #
The list of prepared statements for the workgroup.
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_httpStatus :: Lens' ListPreparedStatementsResponse Int Source #
The response's http status code.