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 a paginated list of projects for an IoT SiteWise Monitor portal.
This operation returns paginated results.
Synopsis
- data ListProjects = ListProjects' {}
- newListProjects :: Text -> ListProjects
- listProjects_nextToken :: Lens' ListProjects (Maybe Text)
- listProjects_maxResults :: Lens' ListProjects (Maybe Natural)
- listProjects_portalId :: Lens' ListProjects Text
- data ListProjectsResponse = ListProjectsResponse' {}
- newListProjectsResponse :: Int -> ListProjectsResponse
- listProjectsResponse_nextToken :: Lens' ListProjectsResponse (Maybe Text)
- listProjectsResponse_httpStatus :: Lens' ListProjectsResponse Int
- listProjectsResponse_projectSummaries :: Lens' ListProjectsResponse [ProjectSummary]
Creating a Request
data ListProjects Source #
See: newListProjects
smart constructor.
Instances
Create a value of ListProjects
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:ListProjects'
, listProjects_nextToken
- The token to be used for the next set of paginated results.
$sel:maxResults:ListProjects'
, listProjects_maxResults
- The maximum number of results to return for each paginated request.
Default: 50
$sel:portalId:ListProjects'
, listProjects_portalId
- The ID of the portal.
Request Lenses
listProjects_nextToken :: Lens' ListProjects (Maybe Text) Source #
The token to be used for the next set of paginated results.
listProjects_maxResults :: Lens' ListProjects (Maybe Natural) Source #
The maximum number of results to return for each paginated request.
Default: 50
listProjects_portalId :: Lens' ListProjects Text Source #
The ID of the portal.
Destructuring the Response
data ListProjectsResponse Source #
See: newListProjectsResponse
smart constructor.
ListProjectsResponse' | |
|
Instances
newListProjectsResponse Source #
Create a value of ListProjectsResponse
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:ListProjects'
, listProjectsResponse_nextToken
- The token for the next set of results, or null if there are no
additional results.
$sel:httpStatus:ListProjectsResponse'
, listProjectsResponse_httpStatus
- The response's http status code.
$sel:projectSummaries:ListProjectsResponse'
, listProjectsResponse_projectSummaries
- A list that summarizes each project in the portal.
Response Lenses
listProjectsResponse_nextToken :: Lens' ListProjectsResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no additional results.
listProjectsResponse_httpStatus :: Lens' ListProjectsResponse Int Source #
The response's http status code.
listProjectsResponse_projectSummaries :: Lens' ListProjectsResponse [ProjectSummary] Source #
A list that summarizes each project in the portal.