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 |
Returns summaries of the organization's resources.
This operation returns paginated results.
- listResources :: Text -> ListResources
- data ListResources
- lrNextToken :: Lens' ListResources (Maybe Text)
- lrMaxResults :: Lens' ListResources (Maybe Natural)
- lrOrganizationId :: Lens' ListResources Text
- listResourcesResponse :: Int -> ListResourcesResponse
- data ListResourcesResponse
- lrrsResources :: Lens' ListResourcesResponse [Resource]
- lrrsNextToken :: Lens' ListResourcesResponse (Maybe Text)
- lrrsResponseStatus :: Lens' ListResourcesResponse Int
Creating a Request
Creates a value of ListResources
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrNextToken
- The token to use to retrieve the next page of results. The first call does not contain any tokens.lrMaxResults
- The maximum number of results to return in a single call.lrOrganizationId
- The identifier for the organization under which the resources exist.
data ListResources Source #
See: listResources
smart constructor.
Request Lenses
lrNextToken :: Lens' ListResources (Maybe Text) Source #
The token to use to retrieve the next page of results. The first call does not contain any tokens.
lrMaxResults :: Lens' ListResources (Maybe Natural) Source #
The maximum number of results to return in a single call.
lrOrganizationId :: Lens' ListResources Text Source #
The identifier for the organization under which the resources exist.
Destructuring the Response
listResourcesResponse Source #
Creates a value of ListResourcesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrrsResources
- One page of the organization's resource representation.lrrsNextToken
- The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.lrrsResponseStatus
- -- | The response status code.
data ListResourcesResponse Source #
See: listResourcesResponse
smart constructor.
Response Lenses
lrrsResources :: Lens' ListResourcesResponse [Resource] Source #
One page of the organization's resource representation.
lrrsNextToken :: Lens' ListResourcesResponse (Maybe Text) Source #
The token used to paginate through all the organization's resources. While results are still available, it has an associated value. When the last page is reached, the token is empty.
lrrsResponseStatus :: Lens' ListResourcesResponse Int Source #
- - | The response status code.