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 |
Lists all the impersonation roles for the given WorkMail organization.
Synopsis
- data ListImpersonationRoles = ListImpersonationRoles' {}
- newListImpersonationRoles :: Text -> ListImpersonationRoles
- listImpersonationRoles_maxResults :: Lens' ListImpersonationRoles (Maybe Natural)
- listImpersonationRoles_nextToken :: Lens' ListImpersonationRoles (Maybe Text)
- listImpersonationRoles_organizationId :: Lens' ListImpersonationRoles Text
- data ListImpersonationRolesResponse = ListImpersonationRolesResponse' {
- nextToken :: Maybe Text
- roles :: Maybe [ImpersonationRole]
- httpStatus :: Int
- newListImpersonationRolesResponse :: Int -> ListImpersonationRolesResponse
- listImpersonationRolesResponse_nextToken :: Lens' ListImpersonationRolesResponse (Maybe Text)
- listImpersonationRolesResponse_roles :: Lens' ListImpersonationRolesResponse (Maybe [ImpersonationRole])
- listImpersonationRolesResponse_httpStatus :: Lens' ListImpersonationRolesResponse Int
Creating a Request
data ListImpersonationRoles Source #
See: newListImpersonationRoles
smart constructor.
ListImpersonationRoles' | |
|
Instances
newListImpersonationRoles Source #
Create a value of ListImpersonationRoles
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:ListImpersonationRoles'
, listImpersonationRoles_maxResults
- The maximum number of results returned in a single call.
ListImpersonationRoles
, listImpersonationRoles_nextToken
- The token used to retrieve the next page of results. The first call
doesn't require a token.
ListImpersonationRoles
, listImpersonationRoles_organizationId
- The WorkMail organization to which the listed impersonation roles
belong.
Request Lenses
listImpersonationRoles_maxResults :: Lens' ListImpersonationRoles (Maybe Natural) Source #
The maximum number of results returned in a single call.
listImpersonationRoles_nextToken :: Lens' ListImpersonationRoles (Maybe Text) Source #
The token used to retrieve the next page of results. The first call doesn't require a token.
listImpersonationRoles_organizationId :: Lens' ListImpersonationRoles Text Source #
The WorkMail organization to which the listed impersonation roles belong.
Destructuring the Response
data ListImpersonationRolesResponse Source #
See: newListImpersonationRolesResponse
smart constructor.
ListImpersonationRolesResponse' | |
|
Instances
newListImpersonationRolesResponse Source #
Create a value of ListImpersonationRolesResponse
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:
ListImpersonationRoles
, listImpersonationRolesResponse_nextToken
- The token to retrieve the next page of results. The value is null
when
there are no results to return.
$sel:roles:ListImpersonationRolesResponse'
, listImpersonationRolesResponse_roles
- The list of impersonation roles under the given WorkMail organization.
$sel:httpStatus:ListImpersonationRolesResponse'
, listImpersonationRolesResponse_httpStatus
- The response's http status code.
Response Lenses
listImpersonationRolesResponse_nextToken :: Lens' ListImpersonationRolesResponse (Maybe Text) Source #
The token to retrieve the next page of results. The value is null
when
there are no results to return.
listImpersonationRolesResponse_roles :: Lens' ListImpersonationRolesResponse (Maybe [ImpersonationRole]) Source #
The list of impersonation roles under the given WorkMail organization.
listImpersonationRolesResponse_httpStatus :: Lens' ListImpersonationRolesResponse Int Source #
The response's http status code.