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 |
Gets a list of the projects in an Amazon Web Services account.
Synopsis
- data ListProjects = ListProjects' {}
- newListProjects :: ListProjects
- listProjects_nameContains :: Lens' ListProjects (Maybe Text)
- listProjects_creationTimeAfter :: Lens' ListProjects (Maybe UTCTime)
- listProjects_nextToken :: Lens' ListProjects (Maybe Text)
- listProjects_sortOrder :: Lens' ListProjects (Maybe ProjectSortOrder)
- listProjects_creationTimeBefore :: Lens' ListProjects (Maybe UTCTime)
- listProjects_maxResults :: Lens' ListProjects (Maybe Natural)
- listProjects_sortBy :: Lens' ListProjects (Maybe ProjectSortBy)
- data ListProjectsResponse = ListProjectsResponse' {}
- newListProjectsResponse :: Int -> ListProjectsResponse
- listProjectsResponse_nextToken :: Lens' ListProjectsResponse (Maybe Text)
- listProjectsResponse_httpStatus :: Lens' ListProjectsResponse Int
- listProjectsResponse_projectSummaryList :: Lens' ListProjectsResponse [ProjectSummary]
Creating a Request
data ListProjects Source #
See: newListProjects
smart constructor.
ListProjects' | |
|
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:nameContains:ListProjects'
, listProjects_nameContains
- A filter that returns the projects whose name contains a specified
string.
$sel:creationTimeAfter:ListProjects'
, listProjects_creationTimeAfter
- A filter that returns the projects that were created after a specified
time.
$sel:nextToken:ListProjects'
, listProjects_nextToken
- If the result of the previous ListProjects
request was truncated, the
response includes a NextToken
. To retrieve the next set of projects,
use the token in the next request.
$sel:sortOrder:ListProjects'
, listProjects_sortOrder
- The sort order for results. The default is Ascending
.
$sel:creationTimeBefore:ListProjects'
, listProjects_creationTimeBefore
- A filter that returns the projects that were created before a specified
time.
$sel:maxResults:ListProjects'
, listProjects_maxResults
- The maximum number of projects to return in the response.
$sel:sortBy:ListProjects'
, listProjects_sortBy
- The field by which to sort results. The default is CreationTime
.
Request Lenses
listProjects_nameContains :: Lens' ListProjects (Maybe Text) Source #
A filter that returns the projects whose name contains a specified string.
listProjects_creationTimeAfter :: Lens' ListProjects (Maybe UTCTime) Source #
A filter that returns the projects that were created after a specified time.
listProjects_nextToken :: Lens' ListProjects (Maybe Text) Source #
If the result of the previous ListProjects
request was truncated, the
response includes a NextToken
. To retrieve the next set of projects,
use the token in the next request.
listProjects_sortOrder :: Lens' ListProjects (Maybe ProjectSortOrder) Source #
The sort order for results. The default is Ascending
.
listProjects_creationTimeBefore :: Lens' ListProjects (Maybe UTCTime) Source #
A filter that returns the projects that were created before a specified time.
listProjects_maxResults :: Lens' ListProjects (Maybe Natural) Source #
The maximum number of projects to return in the response.
listProjects_sortBy :: Lens' ListProjects (Maybe ProjectSortBy) Source #
The field by which to sort results. The default is CreationTime
.
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
- If the result of the previous ListCompilationJobs
request was
truncated, the response includes a NextToken
. To retrieve the next set
of model compilation jobs, use the token in the next request.
$sel:httpStatus:ListProjectsResponse'
, listProjectsResponse_httpStatus
- The response's http status code.
$sel:projectSummaryList:ListProjectsResponse'
, listProjectsResponse_projectSummaryList
- A list of summaries of projects.
Response Lenses
listProjectsResponse_nextToken :: Lens' ListProjectsResponse (Maybe Text) Source #
If the result of the previous ListCompilationJobs
request was
truncated, the response includes a NextToken
. To retrieve the next set
of model compilation jobs, use the token in the next request.
listProjectsResponse_httpStatus :: Lens' ListProjectsResponse Int Source #
The response's http status code.
listProjectsResponse_projectSummaryList :: Lens' ListProjectsResponse [ProjectSummary] Source #
A list of summaries of projects.