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 |
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' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- organizationId :: Text
- resourceId :: Text
- newListResourceDelegates :: Text -> Text -> ListResourceDelegates
- listResourceDelegates_nextToken :: Lens' ListResourceDelegates (Maybe Text)
- listResourceDelegates_maxResults :: Lens' ListResourceDelegates (Maybe Natural)
- 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.
ListResourceDelegates' | |
|
Instances
newListResourceDelegates Source #
:: 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:nextToken:ListResourceDelegates'
, listResourceDelegates_nextToken
- The token used to paginate through the delegates associated with a
resource.
$sel:maxResults:ListResourceDelegates'
, listResourceDelegates_maxResults
- The number of maximum results in a page.
$sel:organizationId: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_nextToken :: Lens' ListResourceDelegates (Maybe Text) Source #
The token used to paginate through the delegates associated with a resource.
listResourceDelegates_maxResults :: Lens' ListResourceDelegates (Maybe Natural) Source #
The number of maximum results in a page.
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.
ListResourceDelegatesResponse' | |
|
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.
$sel:nextToken: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.