| 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.LookoutVision.ListProjects
Description
Lists the Amazon Lookout for Vision projects in your AWS account that
are in the AWS Region in which you call ListProjects.
The ListProjects operation is eventually consistent. Recent calls to
CreateProject and DeleteProject might take a while to appear in the
response from ListProjects.
This operation requires permissions to perform the
lookoutvision:ListProjects operation.
This operation returns paginated results.
Synopsis
- data ListProjects = ListProjects' {}
- newListProjects :: ListProjects
- listProjects_maxResults :: Lens' ListProjects (Maybe Natural)
- listProjects_nextToken :: Lens' ListProjects (Maybe Text)
- 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: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.
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.
Request Lenses
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.
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.
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:
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.