Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Lists the delegates associated with a resource. Users and groups can be resource delegates and answer requests on behalf of the resource.
Synopsis
- listResourceDelegates :: Text -> Text -> ListResourceDelegates
- data ListResourceDelegates
- lrdNextToken :: Lens' ListResourceDelegates (Maybe Text)
- lrdMaxResults :: Lens' ListResourceDelegates (Maybe Natural)
- lrdOrganizationId :: Lens' ListResourceDelegates Text
- lrdResourceId :: Lens' ListResourceDelegates Text
- listResourceDelegatesResponse :: Int -> ListResourceDelegatesResponse
- data ListResourceDelegatesResponse
- lrdrsDelegates :: Lens' ListResourceDelegatesResponse [Delegate]
- lrdrsNextToken :: Lens' ListResourceDelegatesResponse (Maybe Text)
- lrdrsResponseStatus :: Lens' ListResourceDelegatesResponse Int
Creating a Request
listResourceDelegates Source #
Creates a value of ListResourceDelegates
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrdNextToken
- The token used to paginate through the delegates associated with a resource.lrdMaxResults
- The number of maximum results in a page.lrdOrganizationId
- The identifier for the organization that contains the resource for which delegates are listed.lrdResourceId
- The identifier for the resource whose delegates are listed.
data ListResourceDelegates Source #
See: listResourceDelegates
smart constructor.
Instances
Request Lenses
lrdNextToken :: Lens' ListResourceDelegates (Maybe Text) Source #
The token used to paginate through the delegates associated with a resource.
lrdMaxResults :: Lens' ListResourceDelegates (Maybe Natural) Source #
The number of maximum results in a page.
lrdOrganizationId :: Lens' ListResourceDelegates Text Source #
The identifier for the organization that contains the resource for which delegates are listed.
lrdResourceId :: Lens' ListResourceDelegates Text Source #
The identifier for the resource whose delegates are listed.
Destructuring the Response
listResourceDelegatesResponse Source #
Creates a value of ListResourceDelegatesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrdrsDelegates
- One page of the resource's delegates.lrdrsNextToken
- 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.lrdrsResponseStatus
- -- | The response status code.
data ListResourceDelegatesResponse Source #
See: listResourceDelegatesResponse
smart constructor.
Instances
Response Lenses
lrdrsDelegates :: Lens' ListResourceDelegatesResponse [Delegate] Source #
One page of the resource's delegates.
lrdrsNextToken :: 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.
lrdrsResponseStatus :: Lens' ListResourceDelegatesResponse Int Source #
- - | The response status code.