| 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.RolesAnywhere.ListSubjects
Description
Lists the subjects in the authenticated account and Amazon Web Services Region.
Required permissions: rolesanywhere:ListSubjects.
This operation returns paginated results.
Synopsis
- data ListSubjects = ListSubjects' {}
- newListSubjects :: ListSubjects
- listSubjects_nextToken :: Lens' ListSubjects (Maybe Text)
- listSubjects_pageSize :: Lens' ListSubjects (Maybe Int)
- data ListSubjectsResponse = ListSubjectsResponse' {
- nextToken :: Maybe Text
- subjects :: Maybe [SubjectSummary]
- httpStatus :: Int
- newListSubjectsResponse :: Int -> ListSubjectsResponse
- listSubjectsResponse_nextToken :: Lens' ListSubjectsResponse (Maybe Text)
- listSubjectsResponse_subjects :: Lens' ListSubjectsResponse (Maybe [SubjectSummary])
- listSubjectsResponse_httpStatus :: Lens' ListSubjectsResponse Int
Creating a Request
data ListSubjects Source #
See: newListSubjects smart constructor.
Constructors
| ListSubjects' | |
Instances
newListSubjects :: ListSubjects Source #
Create a value of ListSubjects 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:
ListSubjects, listSubjects_nextToken - A token that indicates where the output should continue from, if a
previous operation did not show all results. To get the next results,
call the operation again with this value.
ListSubjects, listSubjects_pageSize - The number of resources in the paginated list.
Request Lenses
listSubjects_nextToken :: Lens' ListSubjects (Maybe Text) Source #
A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.
listSubjects_pageSize :: Lens' ListSubjects (Maybe Int) Source #
The number of resources in the paginated list.
Destructuring the Response
data ListSubjectsResponse Source #
See: newListSubjectsResponse smart constructor.
Constructors
| ListSubjectsResponse' | |
Fields
| |
Instances
newListSubjectsResponse Source #
Arguments
| :: Int | |
| -> ListSubjectsResponse |
Create a value of ListSubjectsResponse 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:
ListSubjects, listSubjectsResponse_nextToken - A token that indicates where the output should continue from, if a
previous operation did not show all results. To get the next results,
call the operation again with this value.
$sel:subjects:ListSubjectsResponse', listSubjectsResponse_subjects - A list of subjects.
$sel:httpStatus:ListSubjectsResponse', listSubjectsResponse_httpStatus - The response's http status code.
Response Lenses
listSubjectsResponse_nextToken :: Lens' ListSubjectsResponse (Maybe Text) Source #
A token that indicates where the output should continue from, if a previous operation did not show all results. To get the next results, call the operation again with this value.
listSubjectsResponse_subjects :: Lens' ListSubjectsResponse (Maybe [SubjectSummary]) Source #
A list of subjects.
listSubjectsResponse_httpStatus :: Lens' ListSubjectsResponse Int Source #
The response's http status code.