| 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.LookoutVision.ListProjects
Description
Lists the Amazon Lookout for Vision projects in your AWS account.
This operation requires permissions to perform the
lookoutvision:ListProjects operation.
This operation returns paginated results.
Synopsis
- data ListProjects = ListProjects' {}
- newListProjects :: ListProjects
- listProjects_nextToken :: Lens' ListProjects (Maybe Text)
- listProjects_maxResults :: Lens' ListProjects (Maybe Natural)
- data ListProjectsResponse = ListProjectsResponse' {
- nextToken :: Maybe Text
- projects :: Maybe [ProjectMetadata]
- httpStatus :: Int
- newListProjectsResponse :: Int -> ListProjectsResponse
- listProjectsResponse_nextToken :: Lens' ListProjectsResponse (Maybe Text)
- listProjectsResponse_projects :: Lens' ListProjectsResponse (Maybe [ProjectMetadata])
- listProjectsResponse_httpStatus :: Lens' ListProjectsResponse Int
Creating a Request
data ListProjects Source #
See: newListProjects smart constructor.
Constructors
| ListProjects' | |
Fields
| |
Instances
newListProjects :: ListProjects Source #
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 - If the previous response was incomplete (because there is more data to
retrieve), Amazon Lookout for Vision returns a pagination token in the
response. You can use this pagination token to retrieve the next set of
projects.
$sel:maxResults:ListProjects', listProjects_maxResults - The maximum number of results to return per paginated call. The largest
value you can specify is 100. If you specify a value greater than 100, a
ValidationException error occurs. The default value is 100.
Request Lenses
listProjects_nextToken :: Lens' ListProjects (Maybe Text) Source #
If the previous response was incomplete (because there is more data to retrieve), Amazon Lookout for Vision returns a pagination token in the response. You can use this pagination token to retrieve the next set of projects.
listProjects_maxResults :: Lens' ListProjects (Maybe Natural) Source #
The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
Destructuring the Response
data ListProjectsResponse Source #
See: newListProjectsResponse smart constructor.
Constructors
| ListProjectsResponse' | |
Fields
| |
Instances
newListProjectsResponse Source #
Arguments
| :: Int | |
| -> ListProjectsResponse |
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 - If the response is truncated, Amazon Lookout for Vision returns this
token that you can use in the subsequent request to retrieve the next
set of projects.
$sel:projects:ListProjectsResponse', listProjectsResponse_projects - A list of projects in your AWS account.
$sel:httpStatus:ListProjectsResponse', listProjectsResponse_httpStatus - The response's http status code.
Response Lenses
listProjectsResponse_nextToken :: Lens' ListProjectsResponse (Maybe Text) Source #
If the response is truncated, Amazon Lookout for Vision returns this token that you can use in the subsequent request to retrieve the next set of projects.
listProjectsResponse_projects :: Lens' ListProjectsResponse (Maybe [ProjectMetadata]) Source #
A list of projects in your AWS account.
listProjectsResponse_httpStatus :: Lens' ListProjectsResponse Int Source #
The response's http status code.