| 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.ListWorkGroups
Description
Lists available workgroups for the account.
Synopsis
- data ListWorkGroups = ListWorkGroups' {}
- newListWorkGroups :: ListWorkGroups
- listWorkGroups_maxResults :: Lens' ListWorkGroups (Maybe Natural)
- listWorkGroups_nextToken :: Lens' ListWorkGroups (Maybe Text)
- data ListWorkGroupsResponse = ListWorkGroupsResponse' {
- nextToken :: Maybe Text
- workGroups :: Maybe [WorkGroupSummary]
- httpStatus :: Int
- newListWorkGroupsResponse :: Int -> ListWorkGroupsResponse
- listWorkGroupsResponse_nextToken :: Lens' ListWorkGroupsResponse (Maybe Text)
- listWorkGroupsResponse_workGroups :: Lens' ListWorkGroupsResponse (Maybe [WorkGroupSummary])
- listWorkGroupsResponse_httpStatus :: Lens' ListWorkGroupsResponse Int
Creating a Request
data ListWorkGroups Source #
See: newListWorkGroups smart constructor.
Constructors
| ListWorkGroups' | |
Fields
| |
Instances
newListWorkGroups :: ListWorkGroups Source #
Create a value of ListWorkGroups 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:ListWorkGroups', listWorkGroups_maxResults - The maximum number of workgroups to return in this request.
ListWorkGroups, listWorkGroups_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.
Request Lenses
listWorkGroups_maxResults :: Lens' ListWorkGroups (Maybe Natural) Source #
The maximum number of workgroups to return in this request.
listWorkGroups_nextToken :: Lens' ListWorkGroups (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.
Destructuring the Response
data ListWorkGroupsResponse Source #
See: newListWorkGroupsResponse smart constructor.
Constructors
| ListWorkGroupsResponse' | |
Fields
| |
Instances
newListWorkGroupsResponse Source #
Create a value of ListWorkGroupsResponse 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:
ListWorkGroups, listWorkGroupsResponse_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:workGroups:ListWorkGroupsResponse', listWorkGroupsResponse_workGroups - A list of WorkGroupSummary objects that include the names, descriptions,
creation times, and states for each workgroup.
$sel:httpStatus:ListWorkGroupsResponse', listWorkGroupsResponse_httpStatus - The response's http status code.
Response Lenses
listWorkGroupsResponse_nextToken :: Lens' ListWorkGroupsResponse (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.
listWorkGroupsResponse_workGroups :: Lens' ListWorkGroupsResponse (Maybe [WorkGroupSummary]) Source #
A list of WorkGroupSummary objects that include the names, descriptions, creation times, and states for each workgroup.
listWorkGroupsResponse_httpStatus :: Lens' ListWorkGroupsResponse Int Source #
The response's http status code.