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 |
Provides a list of metadata entries about folders and objects in the specified folder.
- listItems :: ListItems
- data ListItems
- liPath :: Lens' ListItems (Maybe Text)
- liNextToken :: Lens' ListItems (Maybe Text)
- liMaxResults :: Lens' ListItems (Maybe Natural)
- listItemsResponse :: Int -> ListItemsResponse
- data ListItemsResponse
- lirsItems :: Lens' ListItemsResponse [Item]
- lirsNextToken :: Lens' ListItemsResponse (Maybe Text)
- lirsResponseStatus :: Lens' ListItemsResponse Int
Creating a Request
listItems :: ListItems Source #
Creates a value of ListItems
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
liPath
- The path in the container from which to retrieve items. Format: namenamenameliNextToken
- TheNextToken
received in theListItemsResponse
for the same container and path. Tokens expire after 15 minutes.liMaxResults
- The maximum results to return. The service might return fewer results.
See: listItems
smart constructor.
Request Lenses
liNextToken :: Lens' ListItems (Maybe Text) Source #
The NextToken
received in the ListItemsResponse
for the same container and path. Tokens expire after 15 minutes.
liMaxResults :: Lens' ListItems (Maybe Natural) Source #
The maximum results to return. The service might return fewer results.
Destructuring the Response
Creates a value of ListItemsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lirsItems
- Metadata entries for the folders and objects at the requested path.lirsNextToken
- TheNextToken
used to request the next page of results usingListItems
.lirsResponseStatus
- -- | The response status code.
data ListItemsResponse Source #
See: listItemsResponse
smart constructor.
Response Lenses
lirsItems :: Lens' ListItemsResponse [Item] Source #
Metadata entries for the folders and objects at the requested path.
lirsNextToken :: Lens' ListItemsResponse (Maybe Text) Source #
The NextToken
used to request the next page of results using ListItems
.
lirsResponseStatus :: Lens' ListItemsResponse Int Source #
- - | The response status code.