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 |
Returns a list of Amazon Managed Grafana workspaces in the account, with some information about each workspace. For more complete information about one workspace, use DescribeWorkspace.
This operation returns paginated results.
Synopsis
- data ListWorkspaces = ListWorkspaces' {}
- newListWorkspaces :: ListWorkspaces
- listWorkspaces_nextToken :: Lens' ListWorkspaces (Maybe Text)
- listWorkspaces_maxResults :: Lens' ListWorkspaces (Maybe Natural)
- data ListWorkspacesResponse = ListWorkspacesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- workspaces :: [WorkspaceSummary]
- newListWorkspacesResponse :: Int -> ListWorkspacesResponse
- listWorkspacesResponse_nextToken :: Lens' ListWorkspacesResponse (Maybe Text)
- listWorkspacesResponse_httpStatus :: Lens' ListWorkspacesResponse Int
- listWorkspacesResponse_workspaces :: Lens' ListWorkspacesResponse [WorkspaceSummary]
Creating a Request
data ListWorkspaces Source #
See: newListWorkspaces
smart constructor.
Instances
newListWorkspaces :: ListWorkspaces Source #
Create a value of ListWorkspaces
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:ListWorkspaces'
, listWorkspaces_nextToken
- The token for the next set of workspaces to return. (You receive this
token from a previous ListWorkspaces
operation.)
$sel:maxResults:ListWorkspaces'
, listWorkspaces_maxResults
- The maximum number of workspaces to include in the results.
Request Lenses
listWorkspaces_nextToken :: Lens' ListWorkspaces (Maybe Text) Source #
The token for the next set of workspaces to return. (You receive this
token from a previous ListWorkspaces
operation.)
listWorkspaces_maxResults :: Lens' ListWorkspaces (Maybe Natural) Source #
The maximum number of workspaces to include in the results.
Destructuring the Response
data ListWorkspacesResponse Source #
See: newListWorkspacesResponse
smart constructor.
ListWorkspacesResponse' | |
|
Instances
newListWorkspacesResponse Source #
Create a value of ListWorkspacesResponse
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:ListWorkspaces'
, listWorkspacesResponse_nextToken
- The token to use when requesting the next set of workspaces.
$sel:httpStatus:ListWorkspacesResponse'
, listWorkspacesResponse_httpStatus
- The response's http status code.
$sel:workspaces:ListWorkspacesResponse'
, listWorkspacesResponse_workspaces
- An array of structures that contain some information about the
workspaces in the account.
Response Lenses
listWorkspacesResponse_nextToken :: Lens' ListWorkspacesResponse (Maybe Text) Source #
The token to use when requesting the next set of workspaces.
listWorkspacesResponse_httpStatus :: Lens' ListWorkspacesResponse Int Source #
The response's http status code.
listWorkspacesResponse_workspaces :: Lens' ListWorkspacesResponse [WorkspaceSummary] Source #
An array of structures that contain some information about the workspaces in the account.