| 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.WorkMail.ListResourceDelegates
Description
Lists the delegates associated with a resource. Users and groups can be resource delegates and answer requests on behalf of the resource.
This operation returns paginated results.
Synopsis
- data ListResourceDelegates = ListResourceDelegates' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- organizationId :: Text
- resourceId :: Text
- newListResourceDelegates :: Text -> Text -> ListResourceDelegates
- listResourceDelegates_maxResults :: Lens' ListResourceDelegates (Maybe Natural)
- listResourceDelegates_nextToken :: Lens' ListResourceDelegates (Maybe Text)
- listResourceDelegates_organizationId :: Lens' ListResourceDelegates Text
- listResourceDelegates_resourceId :: Lens' ListResourceDelegates Text
- data ListResourceDelegatesResponse = ListResourceDelegatesResponse' {}
- newListResourceDelegatesResponse :: Int -> ListResourceDelegatesResponse
- listResourceDelegatesResponse_delegates :: Lens' ListResourceDelegatesResponse (Maybe [Delegate])
- listResourceDelegatesResponse_nextToken :: Lens' ListResourceDelegatesResponse (Maybe Text)
- listResourceDelegatesResponse_httpStatus :: Lens' ListResourceDelegatesResponse Int
Creating a Request
data ListResourceDelegates Source #
See: newListResourceDelegates smart constructor.
Constructors
| ListResourceDelegates' | |
Fields
| |
Instances
newListResourceDelegates Source #
Arguments
| :: Text | |
| -> Text | |
| -> ListResourceDelegates |
Create a value of ListResourceDelegates 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:ListResourceDelegates', listResourceDelegates_maxResults - The number of maximum results in a page.
ListResourceDelegates, listResourceDelegates_nextToken - The token used to paginate through the delegates associated with a
resource.
ListResourceDelegates, listResourceDelegates_organizationId - The identifier for the organization that contains the resource for which
delegates are listed.
$sel:resourceId:ListResourceDelegates', listResourceDelegates_resourceId - The identifier for the resource whose delegates are listed.
Request Lenses
listResourceDelegates_maxResults :: Lens' ListResourceDelegates (Maybe Natural) Source #
The number of maximum results in a page.
listResourceDelegates_nextToken :: Lens' ListResourceDelegates (Maybe Text) Source #
The token used to paginate through the delegates associated with a resource.
listResourceDelegates_organizationId :: Lens' ListResourceDelegates Text Source #
The identifier for the organization that contains the resource for which delegates are listed.
listResourceDelegates_resourceId :: Lens' ListResourceDelegates Text Source #
The identifier for the resource whose delegates are listed.
Destructuring the Response
data ListResourceDelegatesResponse Source #
See: newListResourceDelegatesResponse smart constructor.
Constructors
| ListResourceDelegatesResponse' | |
Fields
| |
Instances
newListResourceDelegatesResponse Source #
Create a value of ListResourceDelegatesResponse 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:delegates:ListResourceDelegatesResponse', listResourceDelegatesResponse_delegates - One page of the resource's delegates.
ListResourceDelegates, listResourceDelegatesResponse_nextToken - The token used to paginate through the delegates associated with a
resource. While results are still available, it has an associated value.
When the last page is reached, the token is empty.
$sel:httpStatus:ListResourceDelegatesResponse', listResourceDelegatesResponse_httpStatus - The response's http status code.
Response Lenses
listResourceDelegatesResponse_delegates :: Lens' ListResourceDelegatesResponse (Maybe [Delegate]) Source #
One page of the resource's delegates.
listResourceDelegatesResponse_nextToken :: Lens' ListResourceDelegatesResponse (Maybe Text) Source #
The token used to paginate through the delegates associated with a resource. While results are still available, it has an associated value. When the last page is reached, the token is empty.
listResourceDelegatesResponse_httpStatus :: Lens' ListResourceDelegatesResponse Int Source #
The response's http status code.